/* =========================================================
   SAKINA BIEN-ÊTRE — CSS PRINCIPAL
   DA "Nude & Nature" · Beige + Vert forêt + Doré
   Référence : Aesop / Susanne Kaufmann / Le Labo
   ========================================================= */

/* =========================================================
   1. PALETTE & VARIABLES
   ========================================================= */
:root {
  /* Beiges (fonds chauds) */
  --beige:          #F4EFE6;
  --beige-clair:    #FBF7F0;
  --beige-accent:   #D4C4A8;
  --beige-card:     #ECE4D5;
  --beige-deep:     #DCCDB5;

  /* Verts forêt (signature Nature) */
  --vert-foret:     #2D3F2A;
  --vert-foret-soft:#3D5239;
  --sauge:          #7A8A6E;
  --sauge-clair:    #A8B59E;

  /* Dorés (signature) */
  --dore:           #B89968;
  --dore-clair:     #D4B488;
  --dore-profond:   #8A6E45;

  /* Textes */
  --texte:          #2C2620;
  --texte-soft:     #6E665C;
  --texte-faible:   #A39885;

  /* Bordures */
  --bordure:        #E5DDD0;
  --bordure-douce:  rgba(184, 153, 104, .2);
  --bordure-vert:   rgba(45, 63, 42, .15);

  /* Typographie */
  --font-titre:     'Cormorant Garamond', Georgia, serif;
  --font-body:      'Inter', system-ui, sans-serif;
  --font-signature: 'Italiana', serif;

  /* Animation */
  --ease:           cubic-bezier(.16, .84, .32, 1);
  --ease-out:       cubic-bezier(.22, 1, .36, 1);
}

/* =========================================================
   2. RESET & BASE
   ========================================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  background: var(--beige);
  color: var(--texte);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  display: block;
}

/* A11y : utilitaire pour cacher visuellement mais garder accessible aux lecteurs d'écran */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Perf : skip rendering du contenu hors viewport (gain LCP / FCP) */
section,
article.scene,
.corps-card,
.testimonial-card,
.benefit-card,
.timeline-step,
.related-card,
.tarif-card {
  content-visibility: auto;
  contain-intrinsic-size: auto 600px;
}
/* Sections critiques (above-the-fold) : pas de skip */
.hero,
section.hero,
#nav,
.reading-progress {
  content-visibility: visible;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* =========================================================
   3. PROGRESS BAR (lecture)
   ========================================================= */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--dore), var(--vert-foret));
  z-index: 1000;
  width: 0%;
  transition: width .15s linear;
  box-shadow: 0 0 8px rgba(184, 153, 104, .4);
}

/* =========================================================
   4. NAVIGATION (sticky, globale)
   ========================================================= */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 18px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  background: rgba(244, 239, 230, .95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--bordure-douce);
  box-shadow: 0 4px 20px -10px rgba(45, 63, 42, .08);
  transition: all .5s var(--ease);
}

#nav .brand {
  font-family: var(--font-titre);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: .12em;
  color: var(--vert-foret);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: opacity .3s var(--ease);
}
#nav .brand:hover {
  opacity: .75;
}

#nav .brand-mark {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  transition: transform .5s var(--ease);
}
#nav .brand:hover .brand-mark {
  transform: rotate(8deg);
}

#nav .brand .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--dore);
  animation: pulse 2.5s ease-in-out infinite;
  margin-left: 4px;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(184, 153, 104, .5);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(184, 153, 104, 0);
    transform: scale(1.2);
  }
}

#nav .links {
  display: flex;
  gap: 6px;
  align-items: center;
}

#nav .links a {
  color: var(--vert-foret);
  font-size: 11px;
  letter-spacing: .25em;
  text-transform: uppercase;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: all .35s var(--ease);
  font-weight: 500;
}

#nav .links a:hover {
  background: rgba(45, 63, 42, .06);
}

#nav .links a.is-current {
  background: rgba(184, 153, 104, .15);
  color: var(--dore-profond);
}

#nav .links a.cta {
  background: var(--vert-foret);
  color: var(--beige-clair);
  letter-spacing: .2em;
  padding: 12px 28px;
  margin-left: 14px;
}
#nav .links a.cta:hover {
  background: var(--vert-foret-soft);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px -8px rgba(45, 63, 42, .4);
}

/* =========================================================
   5. BREADCRUMB
   ========================================================= */
.breadcrumb {
  max-width: 1300px;
  margin: 0 auto;
  padding: 130px 60px 0;
  font-size: 12px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--texte-faible);
}

.breadcrumb a {
  color: var(--texte-soft);
  transition: color .3s var(--ease);
}
.breadcrumb a:hover {
  color: var(--dore);
}

.breadcrumb .sep {
  margin: 0 10px;
  color: var(--texte-faible);
}

.breadcrumb .current {
  color: var(--vert-foret);
  font-weight: 500;
}

/* =========================================================
   6. BOUTONS COMMUNS
   ========================================================= */
.btn-primary,
.btn-secondary,
.btn-light {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  font-size: 12px;
  letter-spacing: .25em;
  text-transform: uppercase;
  font-weight: 500;
  border-radius: 999px;
  transition: all .35s var(--ease);
  cursor: pointer;
}

.btn-primary {
  background: var(--vert-foret);
  color: var(--beige-clair);
}
.btn-primary:hover {
  background: var(--vert-foret-soft);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -10px rgba(45, 63, 42, .5);
}

.btn-secondary {
  background: transparent;
  color: var(--vert-foret);
  border: 1px solid var(--vert-foret);
}
.btn-secondary:hover {
  background: var(--vert-foret);
  color: var(--beige-clair);
}

.btn-light {
  background: var(--dore);
  color: var(--vert-foret);
}
.btn-light:hover {
  background: var(--dore-clair);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -10px rgba(184, 153, 104, .5);
}

/* Flèche animée commune */
.btn-primary .arrow,
.btn-secondary .arrow,
.btn-light .arrow {
  transition: transform .35s var(--ease);
}
.btn-primary:hover .arrow,
.btn-secondary:hover .arrow,
.btn-light:hover .arrow {
  transform: translateX(4px);
}

/* =========================================================
   7. TYPOGRAPHIE COMMUNE
   ========================================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-titre);
  font-weight: 400;
  line-height: 1.15;
  color: var(--vert-foret);
}

h1 em, h2 em, h3 em {
  font-family: var(--font-signature);
  font-style: normal;
  color: var(--dore);
}

.ch {
  font-size: 11px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--dore-profond);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.ch::before {
  content: '';
  width: 30px;
  height: 1px;
  background: var(--dore);
}

.eyebrow {
  font-size: 11px;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--dore-profond);
  font-weight: 500;
  margin-bottom: 24px;
}

/* =========================================================
   8. REVEAL ON SCROLL (animation)
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   9. FOOTER GLOBAL
   ========================================================= */
footer {
  background: var(--vert-foret);
  color: var(--beige-clair);
  padding: 80px 60px 30px;
  margin-top: 100px;
}

footer .footer-top,
footer .container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

footer .footer-brand .brand-name {
  font-family: var(--font-titre);
  font-size: 26px;
  letter-spacing: .12em;
  color: var(--beige-clair);
  margin-bottom: 16px;
  font-weight: 500;
}

footer .footer-brand .tagline {
  font-size: 14px;
  line-height: 1.75;
  color: rgba(244, 239, 230, .7);
  margin-bottom: 14px;
}

footer .footer-brand .insta {
  display: inline-block;
  color: var(--dore-clair);
  font-size: 14px;
  margin-top: 6px;
  transition: opacity .3s;
}
footer .footer-brand .insta:hover {
  opacity: .7;
}

footer .footer-col h3 {
  font-family: var(--font-titre);
  font-size: 18px;
  color: var(--dore-clair);
  margin-bottom: 20px;
  font-weight: 500;
}

footer .footer-col ul li {
  margin-bottom: 10px;
}

footer .footer-col ul li a {
  color: rgba(244, 239, 230, .92);
  font-size: 14px;
  transition: color .3s var(--ease);
}
footer .footer-col ul li a:hover {
  color: var(--dore-clair);
}

footer .footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 30px;
  border-top: 1px solid rgba(244, 239, 230, .1);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(244, 239, 230, .5);
  letter-spacing: .05em;
  flex-wrap: wrap;
  gap: 20px;
}

footer .footer-bottom a {
  color: rgba(244, 239, 230, .5);
  transition: color .3s var(--ease);
}
footer .footer-bottom a:hover {
  color: var(--dore-clair);
}

/* =========================================================
   10. PLACEHOLDER (visuels d'attente)
   ========================================================= */
.placeholder {
  display: inline-block;
  padding: 2px 10px;
  background: rgba(184, 153, 104, .08);
  border: 1px dashed var(--dore);
  border-radius: 4px;
  font-style: italic;
  color: var(--dore-profond);
  font-size: 0.9em;
}

/* =========================================================
   11. RESPONSIVE (point de bascule mobile)
   ========================================================= */
@media (max-width: 1000px) {
  #nav {
    padding: 14px 24px;
  }
  #nav .links a:not(.cta) {
    display: none;
  }

  .breadcrumb {
    padding: 100px 24px 0;
    font-size: 11px;
  }

  footer {
    padding: 60px 24px 30px;
  }
  footer .footer-top,
  footer .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  footer .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn-primary,
  .btn-secondary,
  .btn-light {
    padding: 14px 24px;
    font-size: 11px;
  }
}

/* =========================================================
   12. MOBILE FIXES GLOBAUX (priorité maximale, override inline)
   Corrige : overflow horizontal, grid min-content, tap targets,
   typographie démesurée, padding excessif. Appliqué <= 768px.
   ========================================================= */
@media (max-width: 768px) {
  /* --- Anti-overflow : containment universel --- */
  html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
  }

  /* Grid + flex items doivent pouvoir rétrécir sous leur min-content (fix global) */
  [style*="display: grid"] > *,
  [style*="display:grid"] > *,
  .intro-grid > *,
  .scene-inner > *,
  .corps-grid > *,
  .corps-header > *,
  .cures-grid > *,
  .testimonials-grid > *,
  .faq-grid > *,
  .info-row > *,
  .footer-top > *,
  .journal-grid > *,
  .journal-header > *,
  .stats-row > *,
  .related-grid > *,
  .related-soins-grid > *,
  .gifts-content > *,
  .gifts-amounts > *,
  .gifts-grid > *,
  .price-grid > *,
  .pricing-grid > *,
  .horaires-grid > *,
  .contact-grid > *,
  .reserver-grid > *,
  .timeline > *,
  .benefits-grid > * {
    min-width: 0 !important;
  }
  /* Conversion : toutes grilles 2+ colonnes en 1 colonne sur mobile */
  .gifts-content,
  .gifts-amounts,
  .price-grid,
  .pricing-grid,
  .contact-grid,
  .reserver-grid,
  .benefits-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  /* --- Word wrapping pour titres et paragraphes --- */
  h1, h2, h3, h4, h5, h6, p, li, .ch, .desc, .lede {
    overflow-wrap: anywhere;
    word-break: normal;
  }

  /* --- Tailles de titres : éviter font-size > viewport --- */
  h1 {
    font-size: clamp(36px, 9vw, 54px) !important;
    line-height: 1.05 !important;
  }
  .hero h1 {
    font-size: clamp(38px, 10vw, 60px) !important;
  }
  .intro-text h2,
  .corps-header h2,
  .cures-section h2,
  .testimonials h2,
  .faq-section h2,
  .final-cta h2,
  .ritual-header h2,
  .quote-immersive h2,
  .journal-section h2,
  section h2 {
    font-size: clamp(32px, 8vw, 48px) !important;
    line-height: 1.1 !important;
  }
  .intro-side h3,
  .scene-text h3,
  .corps-card h3,
  .testimonial-card h3 {
    font-size: clamp(28px, 7vw, 42px) !important;
    line-height: 1.15 !important;
  }
  /* Chiffres XL (stats, prix) */
  .stat-block .num,
  .price-section .amt,
  .num-xl {
    font-size: clamp(40px, 10vw, 56px) !important;
    line-height: 1 !important;
  }

  /* --- Padding sections : compacter sur mobile --- */
  .hero {
    padding: 100px 20px 60px !important;
  }
  .intro,
  .ritual-section,
  .corps-section,
  .cures-section,
  .testimonials,
  .faq-section,
  .final-cta,
  .quote-immersive,
  .journal-section {
    padding-left: 20px !important;
    padding-right: 20px !important;
    padding-top: 70px !important;
    padding-bottom: 70px !important;
  }
  .scene {
    padding: 60px 20px !important;
  }
  .ritual-header,
  .corps-header,
  .cures-header,
  .testimonials-header,
  .faq-header,
  .journal-header {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-bottom: 40px !important;
    text-align: left !important;
  }
  .ritual-header { text-align: center !important; }

  /* --- Décoratifs : contenir absolus qui débordent --- */
  .hero-decor,
  .hero-bg-decor,
  .intro::before,
  .scene::before,
  .corps-section::before,
  .ritual-section::before {
    max-width: 60vw !important;
    max-height: 60vw !important;
    opacity: .35 !important;
  }
  .ring,
  .ring-2,
  .ring-3,
  .circle-gold {
    max-width: 280px !important;
    max-height: 280px !important;
  }

  /* --- Ticker marquee : garantir le débordement contenu --- */
  .ticker {
    overflow: hidden !important;
  }
  .ticker-item {
    font-size: 18px !important;
    gap: 40px !important;
  }

  /* --- Stats row : 3 colonnes serrées --- */
  .stats-row {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 12px !important;
    margin-top: 40px !important;
    padding-top: 30px !important;
  }
  .stat-block .lbl {
    font-size: 9px !important;
    letter-spacing: .15em !important;
  }

  /* --- Boutons : tap target min 44px --- */
  .btn-primary,
  .btn-secondary,
  .btn-light,
  .btn,
  button,
  nav a.cta,
  .hero-actions a {
    min-height: 44px !important;
    padding: 14px 22px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .hero-actions {
    flex-direction: column !important;
    gap: 12px !important;
    width: 100% !important;
  }
  .hero-actions a {
    width: 100% !important;
  }

  /* --- Inputs : empêcher zoom iOS (font-size >= 16px) --- */
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  input[type="search"],
  input[type="date"],
  textarea,
  select {
    font-size: 16px !important;
  }

  /* --- Liens nav mobile : taille tap --- */
  nav .links a,
  nav a {
    min-height: 44px;
  }

  /* --- Images : sécurité responsive --- */
  img, picture, video, iframe {
    max-width: 100% !important;
    height: auto;
  }
  iframe {
    width: 100% !important;
  }

  /* --- Hero meta : masquer sur mobile (infos dans footer/header) --- */
  .hero-meta-l,
  .hero-meta-r {
    display: none !important;
  }
  .hero-meta {
    justify-content: center !important;
  }
  .scroll-indicator { margin: 0 auto !important; }

  /* --- Footer : empiler proprement --- */
  footer .footer-top {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  footer .footer-bottom {
    flex-direction: column !important;
    gap: 12px !important;
    text-align: center !important;
  }

  /* --- Cards : éviter shadow blur excessif qui débord --- */
  .corps-card,
  .testimonial-card,
  .journal-card,
  .cure-card,
  .related-card {
    max-width: 100% !important;
  }

  /* --- Tableaux : scroll horizontal contrôlé --- */
  table {
    display: block !important;
    overflow-x: auto !important;
    width: 100% !important;
  }

  /* --- Sticky desktop devient static --- */
  .intro-side,
  .faq-side,
  .sticky-side {
    position: static !important;
    top: auto !important;
  }
}

/* --- Tap target accessibilité : min 44px sur tous écrans tactiles --- */
@media (pointer: coarse) {
  a, button, [role="button"], summary {
    min-height: 32px;
  }
}
