/* ============================================================
   STYLE.CSS — FEUILLE DE STYLE COMMUNE À TOUTES LES PAGES
   Couleurs, typographie, navigation, footer, composants partagés
   ============================================================ */

/* ── POLICES GOOGLE ── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400;1,600&family=Cinzel:wght@400;500;600&family=Nunito:wght@300;400;600&display=swap');

/* ── VARIABLES DE COULEUR ──
   Modifiez ici pour changer les couleurs de tout le site */
:root {
  --blanc:        #ffffff;           /* Fond principal blanc */
  --blanc-casse:  #faf8f5;           /* Blanc légèrement chaud */
  --creme:        #f5ede0;           /* Beige très clair */
  --beige:        #ede0cc;           /* Beige section alternée */
  --or:           #c9a84c;           /* Or principal (titres, accents) */
  --or-clair:     #e8c97a;           /* Or clair (hover) */
  --terre:        #b5884a;           /* Brun-or (boutons) */
  --terre-fonce:  #8b6331;           /* Brun foncé */
  --marron:       #5c3d2e;           /* Marron texte */
  --marron-fonce: #3d2b1f;           /* Marron très foncé */
  --fumee:        #7a6a5a;           /* Gris-brun (texte secondaire) */
  --gris-clair:   #e8e0d4;           /* Gris clair (bordures) */
  --ombre:        rgba(61,43,31,.12);/* Ombre légère */
}

/* ── RESET & BASE ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Nunito', sans-serif;
  background: var(--blanc);
  color: var(--marron);
  overflow-x: hidden;
  line-height: 1.7;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ── BARRE DE NAVIGATION ──
   Présente sur toutes les pages */
nav.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6%;
  height: 72px;
  background: var(--blanc);
  border-bottom: 1px solid var(--gris-clair);
  box-shadow: 0 2px 20px var(--ombre);
  transition: all .35s;
}

/* Logo du site */
.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo img {
  height: 42px;
  width: auto;
  display: block;
}

.nav-logo-symbol {
  display: none; /* caché quand on utilise le logo image */
}

/* Liens du menu principal */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-family: 'Nunito', sans-serif;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fumee);
  text-decoration: none;
  transition: color .3s;
  position: relative;
  padding-bottom: 3px;
}

/* Soulignement animé au survol */
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--or);
  transition: width .35s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--marron-fonce);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Bouton "Prenota" dans le menu */
.nav-cta {
  background: var(--terre) !important;
  color: var(--blanc) !important;
  padding: .5rem 1.4rem !important;
  border-radius: 2px;
  letter-spacing: .1em !important;
  transition: background .3s !important;
}

.nav-cta::after { display: none !important; }

.nav-cta:hover {
  background: var(--or) !important;
  color: var(--blanc) !important;
}

/* ── MENU HAMBURGER (mobile) ──
   S'affiche en dessous de 900px */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
  z-index: 1100;
}

/* Les 3 barres du hamburger */
.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--marron-fonce);
  border-radius: 2px;
  transition: all .35s cubic-bezier(.25,.46,.45,.94);
  transform-origin: center;
}

/* Animation en croix quand le menu est ouvert */
.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Overlay sombre derrière le menu mobile */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 900;
}
.nav-overlay.show { display: block; }

/* ── CONTENEUR PRINCIPAL ── */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 6%;
}

/* ── ESPACEMENT DES SECTIONS ── */
section {
  padding: 100px 0;
}

section.section-alt {
  background: var(--creme);
}

/* ── ÉTIQUETTE DE SECTION ── */
.section-tag {
  display: inline-block;
  font-family: 'Cinzel', serif;
  font-size: .68rem;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--or);
  margin-bottom: 1rem;
}

/* ── TITRE DE SECTION ── */
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 300;
  line-height: 1.2;
  color: var(--marron-fonce);
  margin-bottom: 1.2rem;
}

.section-title em {
  font-style: italic;
  color: var(--terre);
}

/* ── LIGNE DÉCORATIVE OR ── */
.gold-line {
  width: 50px;
  height: 2px;
  background: linear-gradient(to right, var(--or), var(--or-clair));
  margin-bottom: 1.8rem;
}

.gold-line.center { margin-left: auto; margin-right: auto; }

/* ── TEXTE DE CORPS ── */
.body-text {
  font-size: 1rem;
  line-height: 1.95;
  color: var(--fumee);
  font-weight: 300;
}

/* ── BOUTONS ── */
.btn-primary {
  display: inline-block;
  padding: .9rem 2.4rem;
  background: var(--terre);
  color: var(--blanc);
  font-family: 'Cinzel', serif;
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  border-radius: 2px;
  transition: all .35s;
  text-decoration: none;
}

.btn-primary:hover {
  background: var(--or);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(181,136,74,.3);
}

.btn-outline {
  display: inline-block;
  padding: .85rem 2.2rem;
  border: 1.5px solid var(--terre);
  color: var(--terre);
  font-family: 'Cinzel', serif;
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 2px;
  transition: all .35s;
  text-decoration: none;
  background: transparent;
}

.btn-outline:hover {
  background: var(--terre);
  color: var(--blanc);
  transform: translateY(-2px);
}

/* ── CARTE GÉNÉRIQUE ── */
.card {
  background: var(--blanc);
  border: 1px solid var(--gris-clair);
  border-radius: 4px;
  padding: 2.4rem 2rem;
  transition: all .35s;
  box-shadow: 0 2px 12px var(--ombre);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(181,136,74,.15);
  border-color: var(--or);
}

/* ── ANIMATIONS AU DÉFILEMENT ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .85s ease, transform .85s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: .15s; }
.reveal-delay-2 { transition-delay: .30s; }
.reveal-delay-3 { transition-delay: .45s; }
.reveal-delay-4 { transition-delay: .60s; }

/* ── BOUTON FLOTTANT WHATSAPP ── */
.float-wa {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 500;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.45);
  text-decoration: none;
  transition: transform .3s;
}

.float-wa:hover { transform: scale(1.12); }

.float-wa svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

.float-wa .wa-tip {
  position: absolute;
  right: 68px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--marron-fonce);
  color: var(--blanc);
  font-size: .75rem;
  white-space: nowrap;
  padding: .4rem .9rem;
  border-radius: 3px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}

.float-wa:hover .wa-tip { opacity: 1; }

/* ── FOOTER ── */
footer {
  background: var(--blanc);
  color: var(--fumee);
  padding: 2.5rem 0 2rem;
  border-top: 1px solid var(--gris-clair);
  text-align: center;
}

.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 1.4rem;
  list-style: none;
}

.footer-nav a {
  font-family: 'Cinzel', serif;
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fumee);
  text-decoration: none;
  transition: color .3s;
}

.footer-nav a:hover { color: var(--terre); }

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 1.4rem;
  margin-bottom: 1.4rem;
}

.footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .3s;
  text-decoration: none;
}

.footer-socials a:hover {
  transform: translateY(-3px);
}

.footer-socials svg {
  width: 36px;
  height: 36px;
}

.footer-copy {
  font-size: .78rem;
  color: var(--fumee);
  opacity: .7;
}

/* ── SCRIPT NAVIGATION PARTAGÉ ── */

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  nav.navbar { padding: 0 5%; }

  .hamburger { display: flex; }

  .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    height: 100dvh; /* dynamic viewport height pour iOS Safari */
    background: var(--blanc);
    padding: 90px 2rem 2rem;
    gap: 1.6rem;
    box-shadow: -5px 0 30px var(--ombre);
    transition: right .38s cubic-bezier(.25,.46,.45,.94);
    z-index: 1000;
    align-items: flex-start;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav-links.open { right: 0; }

  .nav-links a {
    font-size: 1rem;
    letter-spacing: .1em;
    min-height: 44px; /* touch target minimum iOS/Android */
    display: flex;
    align-items: center;
  }

  .nav-cta {
    margin-top: .5rem;
    display: flex !important;
    justify-content: center;
    text-align: center;
    width: 100%;
    min-height: 44px;
  }

  .footer-nav { gap: 1.2rem; }

  section { padding: 70px 0; }

  /* Boutons touch-friendly */
  .btn-primary, .btn-outline, .btn-white {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 560px) {
  .footer-nav { flex-direction: column; gap: .8rem; align-items: center; }

  /* Évite le zoom auto sur iOS lors du focus sur les inputs */
  input, select, textarea {
    font-size: 16px !important;
  }

  /* Espacement confortable sur petits écrans */
  .container { padding: 0 5%; }
}