/* ============================================================
   Happy Ménopause — Landing Page premium
   ============================================================ */

:root {
  --cream: #FFF8EF;
  --cream-dark: #F7EAD8;
  --yellow-soft: #F4EEA9;
  --peach: #F9B38A;
  --orange: #D5550B;
  --orange-dark: #A93F05;
  --brown: #3F332C;
  --text: #4A3A32;
  --muted: #8A6F61;
  --white: #FFFFFF;

  --shadow-soft: 0 20px 60px rgba(213, 85, 11, 0.12);
  --shadow-card: 0 14px 40px rgba(213, 85, 11, 0.10);
  --shadow-hover: 0 26px 60px rgba(213, 85, 11, 0.20);
  --radius-pill: 999px;
  --radius-lg: 28px;
  --maxw: 1200px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Poppins', sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: 'Cormorant Garamond', serif; font-weight: 600; line-height: 1.16; color: var(--brown); }
.script { font-family: 'Parisienne', cursive; font-weight: 400; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

.overline {
  text-transform: uppercase; letter-spacing: 3px; font-size: 13px;
  font-weight: 600; color: var(--orange); margin-bottom: 16px;
}
.overline-center { text-align: center; }
.accent { color: var(--orange); }

.divider-heart { display: block; color: var(--peach); font-size: 18px; margin: 14px 0 18px; }
.divider-heart.center { text-align: center; }

/* ---------- Buttons (hover premium) ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: var(--radius-pill);
  padding: 15px 32px; font-weight: 500; font-size: 15px; cursor: pointer;
  border: 1.6px solid transparent;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease),
              background .3s var(--ease), color .3s var(--ease);
  isolation: isolate;
}
.btn::before {  /* effet de brillance au survol */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,.35) 50%, transparent 100%);
  transform: translateX(-120%); transition: transform .6s var(--ease);
}
.btn:hover::before { transform: translateX(120%); }
.btn-primary {
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: var(--white); box-shadow: 0 10px 26px rgba(213, 85, 11, 0.28);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 38px rgba(213, 85, 11, 0.38); }
.btn-ghost { background: transparent; color: var(--orange); border-color: var(--orange); }
.btn-ghost:hover { background: var(--orange); color: var(--white); transform: translateY(-3px); }
.btn-lg { padding: 18px 46px; font-size: 17px; }

/* ============================================================
   NAVBAR (Flexbox)
   ============================================================ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255, 248, 239, 0.82); backdrop-filter: blur(14px);
  transition: box-shadow .3s var(--ease), background .3s var(--ease);
}
.navbar.scrolled { background: rgba(255,248,239,.94); }
/* Vague douce sous la navbar (remplace le trait droit) */
.nav-wave {
  position: absolute; left: 0; bottom: -19px; width: 100%; height: 20px;
  line-height: 0; pointer-events: none;
  filter: drop-shadow(0 5px 7px rgba(213, 85, 11, 0.06));
}
.nav-wave svg { width: 100%; height: 100%; display: block; }
.navbar.scrolled .nav-wave svg path { fill: rgba(255, 248, 239, 0.97); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 54px; height: 54px; object-fit: contain; }
.brand-text { font-family: 'Playfair Display', serif; font-size: 23px; line-height: 1; color: var(--brown); }
.brand-text strong { color: var(--orange); font-weight: 700; }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links > a:not(.btn),
.nav-links .dropdown-toggle {
  font-family: 'Playfair Display', serif; font-style: italic;
  font-size: 17px; font-weight: 500; letter-spacing: .3px;
  color: var(--text); position: relative; cursor: pointer;
}
.nav-links > a:not(.btn).active { color: var(--orange); }
.nav-links > a:not(.btn)::after,
.nav-links .dropdown-toggle::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--orange); transition: width .3s var(--ease);
}
.nav-links > a:not(.btn).active::after { width: 100%; }
.nav-links > a:not(.btn):hover { color: var(--orange); }
.nav-links > a:not(.btn):hover::after,
.has-dropdown:hover .dropdown-toggle::after { width: 100%; }
.nav-links .dropdown-toggle:hover { color: var(--orange); }

/* ---- Menu déroulant "Accompagnement" ---- */
.nav-item.has-dropdown { position: relative; display: flex; align-items: center; }
.caret { font-size: 11px; transition: transform .3s var(--ease); display: inline-block; }
.has-dropdown:hover .caret, .has-dropdown:focus-within .caret { transform: rotate(180deg); }
.dropdown-menu {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%) translateY(8px);
  min-width: 220px; list-style: none; padding: 10px;
  background: var(--white); border: 1px solid rgba(213,85,11,.08);
  border-radius: 18px; box-shadow: 0 20px 50px rgba(213,85,11,.16);
  opacity: 0; visibility: hidden; transition: opacity .28s var(--ease), transform .28s var(--ease);
  z-index: 1001;
}
.dropdown-menu::before { /* petit pont invisible pour le survol */
  content: ""; position: absolute; top: -16px; left: 0; right: 0; height: 16px;
}
.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.dropdown-menu li a {
  display: block; padding: 11px 16px; border-radius: 12px;
  font-family: 'Poppins', sans-serif; font-style: normal; font-size: 15px;
  color: var(--text); transition: background .25s var(--ease), color .25s var(--ease), padding-left .25s var(--ease);
}
.dropdown-menu li a:hover {
  background: var(--cream-dark); color: var(--orange); padding-left: 22px;
}
.nav-cta { margin-left: 6px; padding: 12px 24px; }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.burger span { width: 26px; height: 2.4px; background: var(--brown); border-radius: 2px; transition: transform .3s, opacity .3s; }
.burger.open span:nth-child(1) { transform: translateY(7.4px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7.4px) rotate(-45deg); }

/* ============================================================
   HERO (Grid)
   ============================================================ */
.hero {
  position: relative; padding: 150px 0 130px;
  background:
    radial-gradient(circle at 88% 16%, rgba(244, 238, 169, 0.55), transparent 38%),
    radial-gradient(circle at 4% 78%, rgba(249, 179, 138, 0.38), transparent 40%),
    linear-gradient(180deg, var(--cream) 0%, #FFFBF4 100%);
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; }
.hero h1 { font-size: 56px; margin-bottom: 6px; font-weight: 600; }
.hero-lead { font-size: 18px; color: var(--muted); max-width: 440px; margin-bottom: 18px; }
.hero-script { font-size: 27px; color: var(--orange); margin-bottom: 34px; line-height: 1.3; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

/* Hero visual — photo fondue dans le fond, sans cadre */
.hero-visual { position: relative; display: flex; justify-content: flex-end; align-items: center; min-height: 560px; }
.hero-arc {
  position: absolute; width: 96%; height: 108%; top: -6%; right: 2%;
  border-radius: 50%; border: 1.5px solid var(--peach);
  border-left-color: transparent; border-bottom-color: transparent;
  opacity: .45; transform: rotate(12deg); z-index: 0;
}
.hero-photo-wrap {
  position: relative; z-index: 2; width: 100%; max-width: 560px;
}
.hero-photo {
  width: 100%; height: auto; display: block;
  /* Fondu 4 bords (intersection) : doux en HAUT/GAUCHE (5%) pour garder le texte
     manuscrit de la photo, plus marqué à DROITE/BAS (18%) pour fondre le contour */
  -webkit-mask-image:
    linear-gradient(to right,  transparent 0, #000 5%, #000 82%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 5%, #000 82%, transparent 100%);
          mask-image:
    linear-gradient(to right,  transparent 0, #000 5%, #000 82%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 5%, #000 82%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-composite: intersect;
  transition: transform .8s var(--ease);
}
.hero-photo-wrap:hover .hero-photo { transform: scale(1.03); }

/* Décors floraux (images) */
.deco { position: absolute; z-index: 3; pointer-events: none; filter: drop-shadow(0 8px 18px rgba(213,85,11,.12)); }
.deco-about { width: 90px; left: -22px; bottom: 14px; }

/* Pétales flottants (images aquarelle) */
.petal { position: absolute; z-index: 1; pointer-events: none; opacity: .85; }
.petal-1 { width: 46px; top: 150px; left: 43%; animation: float 7s ease-in-out infinite; }
.petal-2 { width: 30px; top: 540px; left: 68%; animation: float 9s ease-in-out infinite 1s; }
.petal-3 { width: 38px; top: 230px; left: 52%; animation: float 8s ease-in-out infinite .5s; }
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-22px) rotate(18deg); }
}

/* Séparateurs organiques SVG */
.wave-sep { position: absolute; left: 0; right: 0; line-height: 0; z-index: 4; }
.wave-sep svg { width: 100%; height: 100%; display: block; }
.wave-top { bottom: -1px; height: 110px; }
.wave-bottom { bottom: -1px; height: 120px; }
.wave-axes { bottom: -1px; height: 90px; }

/* ============================================================
   3 AXES (Grid)
   ============================================================ */
.axes { position: relative; padding: 80px 0 100px; background: var(--white); overflow: hidden; }
.blob { position: absolute; pointer-events: none; opacity: .45; z-index: 0; }
.blob-tl { width: 260px; top: -40px; left: -70px; }
.blob-br { width: 220px; bottom: -50px; right: -60px; }
.section-head { position: relative; z-index: 1; text-align: center; max-width: 700px; margin: 0 auto 56px; }
.section-head h2 { font-size: 42px; margin-bottom: 6px; }
.section-sub { color: var(--muted); font-size: 17px; }

.cards { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  background: linear-gradient(180deg, var(--white), var(--cream));
  border: 1px solid rgba(213, 85, 11, 0.07);
  border-radius: var(--radius-lg); padding: 46px 34px;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.card:hover { transform: translateY(-10px); box-shadow: var(--shadow-hover); border-color: rgba(213,85,11,.16); }
.card-icon {
  height: 96px; margin-bottom: 18px;
  display: flex; align-items: center; justify-content: center;
  transition: transform .4s var(--ease);
}
.card-icon img { height: 96px; width: auto; display: block; mix-blend-mode: multiply; }
.card:hover .card-icon { transform: scale(1.08); }
.card h3 { font-size: 24px; color: var(--orange); margin-bottom: 14px; }
.card p { color: var(--muted); font-size: 15.5px; margin-bottom: 20px; }
.card-link {
  margin-top: auto; color: var(--orange); font-weight: 600; font-size: 14.5px;
  display: inline-flex; align-items: center; gap: 6px;
}
.card-link span { transition: transform .3s var(--ease); }
.card-link:hover span { transform: translateX(6px); }

/* ============================================================
   QUI SUIS-JE (Grid)
   ============================================================ */
.about {
  position: relative; padding: 100px 0 140px;
  background:
    radial-gradient(circle at 8% 24%, rgba(244, 238, 169, 0.4), transparent 36%),
    radial-gradient(circle at 95% 80%, rgba(249, 179, 138, 0.25), transparent 40%),
    var(--cream);
}
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: center; }
.about-visual { position: relative; display: flex; justify-content: center; }
/* Photo de Corinne : arc doré et fleurs déjà intégrés -> on masque les décors CSS en double */
.about-arc, .deco-about { display: none; }
.about-photo-wrap {
  position: relative; z-index: 1; width: 100%; max-width: 420px; aspect-ratio: 1 / 1;
  border-radius: 30px; overflow: hidden; box-shadow: var(--shadow-soft);
}
.about-photo { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.about-photo-wrap:hover .about-photo { transform: scale(1.05); }
.about-text h2 { font-size: 40px; margin-bottom: 4px; }
.about-text > p { color: var(--muted); margin-bottom: 12px; max-width: 520px; }

.benefits { list-style: none; margin: 28px 0 34px; display: grid; gap: 18px; }
.benefits li { display: flex; gap: 16px; align-items: center; }
.benefit-icon {
  flex: none; width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--yellow-soft); transition: transform .35s var(--ease), background .35s var(--ease);
}
.benefits li:hover .benefit-icon { transform: scale(1.1); background: var(--peach); }
.benefits strong { display: block; color: var(--brown); font-weight: 600; font-size: 16px; }
.benefits span { color: var(--muted); font-size: 14.5px; }

/* ============================================================
   CTA FINAL
   ============================================================ */
.cta-final {
  position: relative; text-align: center; padding: 70px 0 84px;
  background: radial-gradient(circle at 20% 20%, rgba(255,255,255,.55), transparent 42%), var(--yellow-soft);
}
.cta-inner { max-width: 760px; margin: 0 auto; }
.cta-script { font-size: 46px; color: var(--orange-dark); line-height: 1.2; margin-bottom: 12px; }
.cta-sub { font-size: 19px; color: var(--brown); margin-bottom: 34px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { position: relative; background: #9B3E08; color: #F8E6D6; padding: 52px 0; text-align: center; }
/* Vague douce en haut du footer (remplace le trait droit) */
.footer-wave { position: absolute; left: 0; top: -69px; width: 100%; height: 70px; line-height: 0; pointer-events: none; }
.footer-wave svg { width: 100%; height: 100%; display: block; }
.footer-brand { color: #fff; font-size: 25px; }
.footer-brand strong { color: var(--yellow-soft); }
.footer-inner p { margin: 12px 0 6px; letter-spacing: 2px; font-size: 14px; color: #F9CBA8; }
.footer-inner small { color: #E7B894; font-size: 13px; }

/* ============================================================
   ANIM (état initial avant GSAP) — fallback no-JS
   ============================================================ */
.anim { opacity: 0; transform: translateY(28px); }
.no-gsap .anim { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) { .hero h1 { font-size: 46px; } .about-grid { gap: 44px; } }
@media (max-width: 860px) {
  .nav-links {
    position: fixed; top: 80px; right: 0; flex-direction: column; align-items: flex-start;
    background: var(--cream); width: min(80vw, 320px); height: calc(100vh - 80px);
    padding: 36px 30px; gap: 26px; box-shadow: -10px 0 40px rgba(63,51,44,0.12);
    transform: translateX(105%); transition: transform .4s var(--ease);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-cta { margin-left: 0; }
  .burger { display: flex; }

  /* Sous-menu déplié dans le panneau mobile */
  .nav-item.has-dropdown { flex-direction: column; align-items: flex-start; }
  .dropdown-menu {
    position: static; transform: none; opacity: 1; visibility: visible;
    box-shadow: none; border: none; background: transparent; padding: 8px 0 0 14px;
    min-width: 0; margin-top: 4px; border-left: 2px solid var(--peach);
  }
  .dropdown-menu li a { padding: 7px 12px; }
  .caret { display: none; }

  .hero { padding: 120px 0 90px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-text { text-align: center; }
  .hero-lead, .hero-script { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-visual { order: 2; min-height: 440px; }
  .divider-heart { text-align: center; }

  .cards { grid-template-columns: 1fr; gap: 24px; max-width: 460px; margin: 0 auto; }

  .about-grid { grid-template-columns: 1fr; }
  .about-visual { order: 1; }
  .about-text { order: 2; text-align: center; }
  .about-text > p { margin-left: auto; margin-right: auto; }
  .benefits li { text-align: left; }
  .section-head h2 { font-size: 34px; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 36px; }
  .hero-script { font-size: 23px; }
  .cta-script { font-size: 34px; }
  .container { padding: 0 20px; }
  .deco-peony { width: 130px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .anim { opacity: 1 !important; transform: none !important; }
}
