/* ════════════════════════════════════════════════════════════════
   Aurore Esthétique — feuille de styles commune
   Couvre : polices, reset, palette, header, footer, modal, dropdown,
   mobile nav. Les règles propres à une page restent dans son <style>.
   ════════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────
   Polices auto-hébergées
   ───────────────────────────────────────── */
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 400 600; font-display: swap; src: url('fonts/cormorant-italic-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 400 600; font-display: swap; src: url('fonts/cormorant-italic-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('fonts/cormorant-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('fonts/cormorant-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Mulish'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('fonts/mulish-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Mulish'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('fonts/mulish-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ─────────────────────────────────────────
   Reset, palette Eucalyptus, base body
   ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; font-synthesis: none; -webkit-font-synthesis: none; }
:root {
  --bg: #DEEAE3;
  --surface: #ECF3EE;
  --peach: #B5CFC2;
  --peach-deep: #7DA290;
  --sage: #4F8273;
  --sage-deep: #2F574B;
  --accent: #2F6B5F;
  --ink: #1A332C;
  --muted: #5A6F65;
  --cta: #B46948;
  --btn-radius: 999px;
}
body { margin: 0; font-family: 'Mulish', system-ui, sans-serif; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
@keyframes auroreUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* ─────────────────────────────────────────
   Conteneur largeur de page
   ───────────────────────────────────────── */
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 clamp(20px,5vw,48px); }

/* ─────────────────────────────────────────
   Soulignement animé des liens de nav
   ───────────────────────────────────────── */
.nav-ln { position: relative; }
.nav-ln::after { content: ''; position: absolute; left: 0; right: 0; bottom: -7px; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left center; transition: transform .34s cubic-bezier(.4,0,.2,1); }
.nav-ln:hover::after { transform: scaleX(1); }

/* ─────────────────────────────────────────
   Header sticky
   ───────────────────────────────────────── */
header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgba(0,0,0,.05); }
.header-inner { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 clamp(18px,4vw,44px); height: 90px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }

/* Logo */
.logo-link { display: flex; align-items: center; text-decoration: none; color: inherit; flex: none; }
.logo-link img { height: 78px; width: auto; display: block; }
.logo-name { display: flex; flex-direction: column; line-height: .96; margin-left: 12px; font-family: 'Cormorant Garamond', serif; font-weight: 600; font-size: 21px; letter-spacing: .01em; }
.logo-name span:first-child { color: var(--ink); }
.logo-name span:last-child  { font-style: italic; color: var(--accent); }

/* Nav principale */
.main-nav { display: flex; align-items: center; gap: 24px; }
.main-nav a { font: 500 15px 'Mulish', sans-serif; color: var(--ink); text-decoration: none; white-space: nowrap; transition: color .2s; }
.main-nav a:hover { color: var(--accent); }
.main-nav a.active { color: var(--accent); font-weight: 700; }

/* Dropdown « Nos soins » */
.soins-group { position: relative; display: flex; align-items: center; }
.dropdown-panel { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); padding-top: 16px; display: none; z-index: 60; }
.dropdown-inner { background: var(--surface); border: 1px solid rgba(0,0,0,.06); border-radius: 16px; box-shadow: 0 18px 40px rgba(26,51,44,.16); padding: 10px; min-width: 230px; display: flex; flex-direction: column; gap: 2px; }
.dropdown-inner a { font: 600 14px 'Mulish', sans-serif; color: var(--ink); text-decoration: none; padding: 11px 14px; border-radius: 10px; transition: background .15s, color .15s; }
.dropdown-inner a:hover { background: var(--peach); color: var(--accent); }
.dropdown-inner a.active { background: var(--peach); color: var(--accent); font-weight: 700; }

/* CTA principal du header */
.nav-cta { display: inline-flex; align-items: center; gap: 8px; background: var(--cta); color: #fff; padding: 11px 20px; border-radius: var(--btn-radius); font: 700 13px 'Mulish', sans-serif; text-decoration: none; flex: none; box-shadow: 0 8px 20px rgba(180,105,72,.24); transition: transform .25s ease, box-shadow .25s ease; }
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(180,105,72,.32); }

/* Bouton burger (mobile) — 3 bars stylisés en CSS pur */
.nav-burger { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid rgba(0,0,0,.1); background: var(--surface); cursor: pointer; flex: none; }
.nav-burger > span { display: flex; flex-direction: column; gap: 4px; }
.nav-burger > span > span { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; display: block; }

/* Nav mobile (panneau qui apparaît au clic burger) */
.mobile-nav { display: none; flex-direction: column; background: var(--bg); padding: 0 clamp(20px,5vw,44px) 24px; border-bottom: 1px solid rgba(0,0,0,.07); overflow-y: auto; max-height: calc(100vh - 90px); }
.mobile-nav a { font-family: 'Cormorant Garamond', serif; font-weight: 600; font-size: 26px; color: var(--ink); text-decoration: none; padding: 12px 0; border-bottom: 1px solid rgba(0,0,0,.08); }
.mobile-nav a.active { color: var(--accent); }
.mobile-nav .mobile-cta { margin-top: 22px; display: flex; align-items: center; justify-content: center; gap: 10px; background: var(--cta); color: #fff; padding: 16px; border-radius: 12px; font: 700 15px 'Mulish', sans-serif; text-decoration: none; }
header.menu-open .mobile-nav { display: flex; }

/* ─────────────────────────────────────────
   Footer
   ───────────────────────────────────────── */
footer { background: var(--ink); color: rgba(255,255,255,.72); }
.footer-inner { width: 100%; max-width: 1240px; margin: 0 auto; padding: clamp(52px,6vw,80px) clamp(20px,5vw,48px) 36px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(200px,1fr)); gap: clamp(32px,4vw,56px); margin-bottom: clamp(40px,5vw,56px); }
.footer-brand-name { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-dot { width: 32px; height: 32px; border-radius: 50%; background: radial-gradient(circle at 50% 120%, var(--accent) 0%, var(--peach-deep) 55%, var(--sage) 120%); display: block; flex: none; }
.footer-brand-text { font-family: 'Cormorant Garamond', serif; font-weight: 600; font-size: 21px; color: #fff; }
.footer-tagline { font: 400 14px/1.65 'Mulish', sans-serif; color: rgba(255,255,255,.6); margin: 0 0 18px; }
.footer-social { display: flex; flex-wrap: wrap; gap: 8px; }
.btn-social { display: inline-flex; align-items: center; gap: 8px; font: 700 13px 'Mulish', sans-serif; color: #fff; text-decoration: none; border: 1px solid rgba(255,255,255,.2); padding: 9px 16px; border-radius: var(--btn-radius); transition: background .2s; }
.btn-social:hover { background: rgba(255,255,255,.08); }
.footer-col-title { font: 700 12px 'Mulish', sans-serif; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.45); display: block; margin-bottom: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; list-style: none; padding: 0; margin: 0; }
.footer-links a { font: 500 14px 'Mulish', sans-serif; color: rgba(255,255,255,.72); text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: #fff; }
.footer-links a.active { color: #fff; font-weight: 700; }
.footer-contact { display: flex; flex-direction: column; gap: 10px; font: 400 14px/1.5 'Mulish', sans-serif; color: rgba(255,255,255,.72); }
.footer-contact a { color: rgba(255,255,255,.72); text-decoration: none; transition: color .2s; }
.footer-contact a:hover { color: #fff; }
.footer-hours { display: flex; flex-direction: column; gap: 8px; font: 400 13.5px 'Mulish', sans-serif; color: rgba(255,255,255,.72); }
.footer-hours .closed { color: rgba(255,255,255,.5); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.footer-copy { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.footer-copy span { font: 500 13px 'Mulish', sans-serif; color: rgba(255,255,255,.5); }
.btn-legal { background: none; border: none; cursor: pointer; padding: 0; font: 500 13px 'Mulish', sans-serif; color: rgba(255,255,255,.6); text-decoration: underline; text-underline-offset: 3px; transition: color .2s; }
.btn-legal:hover { color: #fff; }
.btn-rdv-footer { display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--ink); padding: 11px 20px; border-radius: var(--btn-radius); font: 700 13px 'Mulish', sans-serif; text-decoration: none; box-shadow: 0 8px 20px rgba(180,105,72,.0); transition: transform .25s ease, box-shadow .25s ease; }
.btn-rdv-footer:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(180,105,72,.32); }

/* ─────────────────────────────────────────
   Modal mentions légales
   ───────────────────────────────────────── */
.modal-backdrop { display: none; position: fixed; inset: 0; z-index: 80; align-items: center; justify-content: center; padding: 24px; }
.modal-backdrop.open { display: flex; }
.modal-overlay { position: absolute; inset: 0; background: rgba(26,51,44,.55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.modal-box { position: relative; background: var(--surface); border-radius: 24px; max-width: 620px; width: 100%; max-height: 86vh; overflow-y: auto; box-shadow: 0 30px 70px rgba(0,0,0,.32); padding: clamp(28px,4vw,44px); }
.modal-close { position: absolute; top: 18px; right: 18px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(0,0,0,.1); background: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--ink); }
.modal-box h2 { font-family: 'Cormorant Garamond', serif; font-weight: 600; font-size: 34px; line-height: 1.05; color: var(--ink); margin: 12px 0 24px; }
.modal-section { margin-bottom: 22px; }
.modal-section h3 { font: 800 12px 'Mulish', sans-serif; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.modal-section p { font: 400 15px/1.65 'Mulish', sans-serif; color: var(--ink); margin: 0; }

/* ─────────────────────────────────────────
   Responsive — bascule mobile (header)
   ───────────────────────────────────────── */
@media (max-width: 1079px) {
  .main-nav, .nav-cta { display: none; }
  .nav-burger { display: flex; }
}

/* ─────────────────────────────────────────
   Skip link — accessibilité clavier
   « Aller au contenu principal », masqué par défaut,
   visible quand l'utilisateur appuie sur Tab.
   ───────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  z-index: 10000;
  background: var(--ink, #1A332C);
  color: #fff;
  padding: 12px 20px;
  border-radius: 10px;
  font: 700 14px 'Mulish', sans-serif;
  text-decoration: none;
  transition: top .25s ease;
}
.skip-link:focus {
  top: 12px;
  outline: 3px solid var(--cta, #B46948);
  outline-offset: 2px;
}

/* ─────────────────────────────────────────
   Reveal au scroll — chaque <section> fade in
   quand elle entre dans le viewport.
   Géré par IntersectionObserver dans site.js.
   ───────────────────────────────────────── */
section {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s cubic-bezier(.16, 1, .3, 1), transform .8s cubic-bezier(.16, 1, .3, 1);
  will-change: opacity, transform;
}
section.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  section { opacity: 1; transform: none; transition: none; }
}

/* ─────────────────────────────────────────
   Formulaire de contact — états & sécurité
   ───────────────────────────────────────── */

/* Honeypot anti-bot : visuellement caché mais accessible pour les bots */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  tab-index: -1;
}

/* Bouton "Envoyer" — état de chargement (spinner) */
.btn-submit {
  position: relative;
}
.btn-submit .btn-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: aurore-spin .8s linear infinite;
}
.btn-submit.is-loading {
  cursor: wait;
  opacity: .85;
  transform: none !important;
}
.btn-submit.is-loading .btn-label { display: none; }
.btn-submit.is-loading .btn-spinner { display: inline-block; }
@keyframes aurore-spin {
  to { transform: rotate(360deg); }
}

/* Message d'erreur affiché par JS */
.form-error {
  background: rgba(180, 105, 72, .08);
  border: 1px solid rgba(180, 105, 72, .35);
  color: var(--cta, #B46948);
  padding: 12px 16px;
  border-radius: 10px;
  font: 600 13.5px 'Mulish', sans-serif;
  line-height: 1.5;
}

/* Mention reCAPTCHA obligatoire (texte sous le formulaire) */
.form-recaptcha-note {
  font: 400 11px/1.5 'Mulish', sans-serif;
  color: var(--muted, #5A6F65);
  text-align: center;
  margin: 4px 0 0;
}
.form-recaptcha-note a {
  color: var(--accent, #2F6B5F);
  text-decoration: none;
  transition: color .2s;
}
.form-recaptcha-note a:hover {
  color: var(--ink, #1A332C);
  text-decoration: underline;
}

/* Mention RGPD courte au-dessus de reCAPTCHA */
.form-rgpd-note {
  font: 400 12px/1.6 'Mulish', sans-serif;
  color: var(--muted, #5A6F65);
  text-align: center;
  margin: 8px 0 0;
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
}
.form-rgpd-link {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: var(--accent, #2F6B5F);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color .2s;
}
.form-rgpd-link:hover {
  color: var(--cta, #B46948);
}

/* État erreur pour les champs invalides après tentative d'envoi */
.contact-form input:user-invalid,
.contact-form textarea:user-invalid,
.contact-form input.is-invalid,
.contact-form textarea.is-invalid {
  border-color: #c43c2e !important;
  background: rgba(196, 60, 46, .04);
}
.contact-form input:user-invalid:focus,
.contact-form textarea:user-invalid:focus,
.contact-form input.is-invalid:focus,
.contact-form textarea.is-invalid:focus {
  border-color: #c43c2e !important;
  box-shadow: 0 0 0 3px rgba(196, 60, 46, .15);
}

/* Cache le badge flottant reCAPTCHA puisqu'on affiche la mention texte */
.grecaptcha-badge {
  visibility: hidden !important;
}

/* ─────────────────────────────────────────
   Bandeau de consentement RGPD / cookies
   ───────────────────────────────────────── */

.cookie-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 9000;
  max-width: 880px;
  margin: 0 auto;
  background: var(--surface, #ECF3EE);
  border: 1px solid rgba(26, 51, 44, .12);
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(26, 51, 44, .22);
  padding: 20px 22px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .35s ease, transform .35s ease;
  font-family: 'Mulish', system-ui, sans-serif;
  color: var(--ink, #1A332C);
}
.cookie-banner.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.cookie-banner-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cookie-banner-title {
  margin: 0;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 22px;
  line-height: 1.15;
  color: var(--ink, #1A332C);
}
.cookie-banner-desc {
  margin: 0;
  font: 400 14px/1.6 'Mulish', sans-serif;
  color: var(--ink, #1A332C);
}
.cookie-banner-desc strong { color: var(--accent, #2F6B5F); }
.cookie-banner-link {
  color: var(--accent, #2F6B5F);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.cookie-banner-link:hover { color: var(--ink, #1A332C); }

.cookie-banner-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.cookie-btn {
  flex: 1 1 auto;
  min-width: 130px;
  padding: 12px 22px;
  border-radius: 999px;
  font: 700 13.5px 'Mulish', sans-serif;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s, border-color .2s, color .2s;
  text-align: center;
}
.cookie-btn-accept {
  background: var(--cta, #B46948);
  color: #fff;
  border: 1.5px solid var(--cta, #B46948);
  box-shadow: 0 8px 20px rgba(180, 105, 72, .24);
}
.cookie-btn-accept:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(180, 105, 72, .32);
}
.cookie-btn-refuse {
  background: transparent;
  color: var(--ink, #1A332C);
  border: 1.5px solid rgba(26, 51, 44, .35);
}
.cookie-btn-refuse:hover {
  background: rgba(26, 51, 44, .04);
  border-color: var(--ink, #1A332C);
}

/* Sur les écrans plus larges, mise en page horizontale */
@media (min-width: 720px) {
  .cookie-banner-inner {
    flex-direction: row;
    align-items: center;
    gap: 24px;
  }
  .cookie-banner-text { flex: 1; }
  .cookie-banner-buttons { flex: none; flex-direction: column; min-width: 180px; }
  .cookie-btn { flex: 0 0 auto; }
}

/* Cache le back-to-top quand le bandeau est visible (évite chevauchement) */
body.has-cookie-banner .aurore-back-to-top {
  display: none;
}

/* Lien "Cookies" dans le footer (injecté par JS) */
.btn-cookies {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font: 500 13px 'Mulish', sans-serif;
  color: rgba(255, 255, 255, .6);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .2s;
}
.btn-cookies:hover { color: #fff; }
