/* ==========================================================
   LE CABINET DE SUNLLYS — DESIGN SYSTEM
   Palette : Terracotta & Sauge — professionnel, doux, bienveillant
   Polices : Playfair Display (titres) / Nunito (texte courant)
   ========================================================== */

/* ---------- 1. VARIABLES ---------- */
:root{
  /* Couleurs de marque */
  --terracotta:        #C1613F;
  --terracotta-dark:    #A24E31;
  --terracotta-darker:  #7E3C24;
  --terracotta-light:   #E9C3AE;
  --terracotta-pale:    #F6E4D9;

  --sauge:              #7C9070;
  --sauge-dark:         #5E7154;
  --sauge-darker:       #46543E;
  --sauge-light:        #DAE3D1;
  --sauge-pale:         #EEF2E9;

  --gold:               #C89A5B;

  /* Marron chocolat (en-tête + pied de page) */
  --chocolate:          #C29368;
  --chocolate-dark:     #96703F;

  /* Neutres chauds */
  --cream:              #FBF6EF;
  --cream-deep:         #F3EAD9;
  --sand:               #EFE3CF;
  --ink:                #452A1A;
  --ink-soft:           #1A1A1A;
  --ink-faint:          #9C9086;
  --border:             #E6D9C4;
  --white:              #FFFFFF;

  /* États */
  --success:            #5E7154;
  --success-bg:         #EEF2E9;
  --caution:            #B4592F;
  --caution-bg:         #FBEFE6;
  --info:               #6E7F8C;
  --info-bg:            #EEF2F4;
  --error:              #B3402D;

  /* Typo */
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Rythme / formes */
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 30px;
  --radius-pill: 999px;
  --shadow-sm: 0 2px 10px rgba(54, 46, 39, .06);
  --shadow-md: 0 10px 30px rgba(54, 46, 39, .10);
  --shadow-lg: 0 20px 50px rgba(54, 46, 39, .16);
  --container-w: 1180px;
  /* --header-top-h : hauteur de la seule rangée du logo (celle qui reste
     "collée" en haut de l'écran au défilement).
     --header-h : hauteur totale de l'en-tête (logo + barre de nav),
     utilisée pour le décalage des ancres et le panneau mobile. */
  --header-top-h: 104px;
  --header-h: 104px;
}

/* ---------- 2. RESET & BASE ---------- */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body{
  margin:0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img{ max-width:100%; display:block; }
a{ color: var(--terracotta-dark); text-decoration: none; }
a:hover{ color: var(--terracotta-darker); }
ul{ margin:0; padding:0; list-style:none; }
button{ font-family: inherit; cursor:pointer; }
h1,h2,h3,h4{
  font-family: var(--font-heading);
  color: var(--ink);
  line-height: 1.22;
  margin: 0 0 .6em;
  font-weight: 600;
}
h1{ font-size: clamp(2.1rem, 4vw, 3.1rem); }
h2{ font-size: clamp(1.7rem, 3vw, 2.35rem); }
h3{ font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4{ font-size: 1.1rem; }
p{ margin: 0 0 1em; color: var(--ink-soft); }
p:last-child{ margin-bottom:0; }
strong{ color: var(--ink); }

/* Accessibilité : focus visible cohérent partout */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, summary:focus-visible{
  outline: 3px solid var(--sauge);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link{
  position:absolute; left:-999px; top:auto;
  background: var(--terracotta); color:#fff; padding:.85rem 1.4rem;
  border-radius: 0 0 var(--radius-sm) 0; z-index: 999; font-weight:700;
}
.skip-link:focus{ left:0; top:0; }

.hidden{ display:none !important; }

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior:auto !important; }
}

/* ---------- 3. LAYOUT UTILITAIRES ---------- */
.container{
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}
main{ display:block; }
.section{ padding: clamp(3rem, 6vw, 5.5rem) 0; }
.section-alt{ background: var(--cream-deep); }
.section-title{
  text-align:center;
  margin-bottom: .5rem;
  position:relative;
}
.section-title::after{
  content:"";
  display:block;
  width:56px; height:3px;
  margin: .75rem auto 0;
  background: linear-gradient(90deg, var(--terracotta), var(--sauge));
  border-radius: var(--radius-pill);
}
.section-intro{
  max-width: 700px;
  margin: 0 auto 2.75rem;
  text-align:center;
  font-size: 1.08rem;
}
.pillars-title{ text-align:center; margin: 2.5rem 0 1.5rem; }

/* Animation d'apparition au scroll */
.fade-in{ opacity:0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.fade-in.visible{ opacity:1; transform:none; }

/* ---------- 4. BOUTONS ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:.5rem;
  padding: .9rem 1.9rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: .98rem;
  border: 2px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
  cursor:pointer;
  white-space: nowrap;
}
.btn-primary{
  background: var(--chocolate);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover{ transform: translateY(-2px); box-shadow: var(--shadow-md); color: var(--ink); }
.btn-secondary{
  background: transparent;
  border-color: var(--sauge);
  color: var(--sauge-darker);
}
.btn-secondary:hover{ background: var(--sauge-pale); color: var(--sauge-darker); transform: translateY(-2px); }
.footer-cta{ margin-top: .9rem; }

/* ---------- 5. HEADER / NAVIGATION ----------
   Header en deux rangées, pensé pour être plus élégant : le logo,
   agrandi, est centré seul sur la première rangée ; la navigation
   occupe une seconde rangée en marron chocolat au lait, juste en
   dessous, elle aussi centrée. */
.site-header{
  position: sticky; top:0; z-index: 500;
  background: rgba(251, 246, 239, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s ease, border-color .3s ease;
}
.site-header.scrolled{
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--border);
}

/* Rangée 1 : logo agrandi et centré ; le burger (mobile) est
   superposé à droite sans perturber le centrage du logo. */
.header-top{
  max-width: var(--container-w);
  margin:0 auto;
  padding: .75rem clamp(1.25rem, 4vw, 2.5rem);
  display:flex; align-items:center; justify-content:center;
  position:relative;
}
.logo{ display:inline-flex; }
.logo img{ height: 80px; width:auto; transition: height .25s ease; }

/* Rangée 2 : barre de navigation marron chocolat au lait — collée juste
   sous la rangée du logo au défilement (comme avant, le header entier
   restait visible en haut de l'écran). */
.header-nav-bar{
  position: sticky; top: var(--header-top-h); z-index: 490;
  background: var(--chocolate);
}
.header-nav-bar .main-nav{ max-width: 1260px; margin:0 auto; }
.main-nav ul{
  display:flex; align-items:center; justify-content:center; gap: 1rem; flex-wrap:wrap;
  padding: .6rem clamp(1rem, 3vw, 2rem);
}
.nav-link{
  color: var(--cream);
  text-shadow: 0 1px 2px rgba(54,46,39,.35);
  font-weight: 700;
  font-size: .9rem;
  position:relative;
  padding: .3rem 0;
}
.nav-link::after{
  content:""; position:absolute; left:0; right:100%; bottom:-3px; height:2px;
  background: var(--gold);
  transition: right .25s ease;
  border-radius: var(--radius-pill);
}
.nav-link:hover, .nav-link.active{ color: #fff; }
.nav-link:hover::after, .nav-link.active::after{ right:0; }

.burger{
  display:none;
  width: 44px; height: 44px;
  border:none; background: var(--sauge-pale);
  border-radius: var(--radius-sm);
  position:absolute; right: clamp(1.25rem, 4vw, 2.5rem); top:50%;
  transform: translateY(-50%);
}
.burger span{
  position:absolute; left:11px; right:11px; height:2.5px; background: var(--ink);
  border-radius: 2px; transition: transform .25s ease, opacity .25s ease;
}
.burger span:nth-child(1){ top:15px; }
.burger span:nth-child(2){ top:21px; }
.burger span:nth-child(3){ top:27px; }
.burger.active span:nth-child(1){ transform: translateY(6px) rotate(45deg); }
.burger.active span:nth-child(2){ opacity:0; }
.burger.active span:nth-child(3){ transform: translateY(-6px) rotate(-45deg); }

/* Le grand logo centré et sa barre de nav ne prennent tout leur
   volume qu'à partir du desktop ; --header-h est redéfini ici pour
   que le décalage des ancres (#rendezvous...) et le panneau sticky
   du parcours d'inscription suivent automatiquement la nouvelle
   hauteur du header. */
@media (min-width: 901px){
  :root{ --header-top-h: 154px; --header-h: 202px; }
  .logo img{ height: 130px; }
}

@media (max-width: 900px){
  .burger{ display:block; }
  .header-nav-bar{ background:none; }
  .main-nav{
    position:fixed; inset: var(--header-h) 0 0 0; z-index: 900;
    background: var(--chocolate);
    transform: translateY(-12px);
    opacity:0; visibility:hidden;
    transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
    overflow-y:auto;
    padding: 1.5rem 0 3rem;
  }
  .main-nav.open{ opacity:1; visibility:visible; transform:none; }
  .main-nav ul{ flex-direction:column; align-items:stretch; justify-content:flex-start; gap:0; padding: 0 clamp(1.25rem,4vw,2.5rem); }
  .main-nav .nav-link{
    display:block; padding: 1rem 0; font-size:1.05rem;
    border-bottom: 1px solid rgba(251,246,239,.25);
  }
  .nav-link::after{ display:none; }
}

/* ---------- 6. HERO (ACCUEIL) ---------- */
.hero{ padding-top: clamp(2.5rem, 5vw, 4rem); }
.hero-grid{
  display:grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem);
  align-items:center;
}
.hero-text h1{ margin-bottom:1.1rem; }
.hero-text .hero-subtitle{
  font-family: var(--font-body); font-weight:700; font-size:1.15rem;
  color: var(--ink); margin: 0 0 .3rem;
}
.hero-text .lead{ font-size: 1.12rem; color: var(--ink-soft); }
.hero-text .btn{ margin-top: 1rem; }
@media (max-width: 900px){
  .hero-grid{ grid-template-columns: 1fr; }
  .hero-text{ order:2; text-align:center; }
  .hero-text .btn{ margin-inline:auto; }
}

.hero-events{ padding-bottom: 1rem; text-align:center; }
.hero-events .lead{ max-width: 720px; margin: 0 auto; }

/* ---------- 7. CARROUSEL ---------- */
.carousel{
  position:relative; border-radius: var(--radius-lg); overflow:hidden;
  box-shadow: var(--shadow-md); background: var(--white);
}
.carousel-track{ display:flex; transition: transform .55s cubic-bezier(.65,0,.35,1); }
.carousel-slide{ min-width:100%; }
.carousel-slide img{ width:100%; height:100%; object-fit:cover; }
.carousel:not(.carousel-adaptive){ aspect-ratio: 4/3; }
.carousel:not(.carousel-adaptive) .carousel-slide{ height:100%; }
.carousel-adaptive{ height:auto; }
/* En mode adaptatif, le rail doit suivre la hauteur (fixée en JS
   selon l'image active) plutôt que de s'étirer sur la plus haute
   image du groupe — sinon les images plus "courtes" se retrouvent
   agrandies et recadrées par erreur (object-fit:cover) pour remplir
   le gabarit de la plus haute. */
.carousel-adaptive .carousel-track{ height:100%; }
.carousel-arrow{
  position:absolute; top:50%; transform: translateY(-50%);
  width:42px; height:42px; border-radius:50%;
  background: rgba(255,255,255,.88); border:none;
  color: var(--terracotta-dark); font-size:1.1rem;
  display:flex; align-items:center; justify-content:center;
  box-shadow: var(--shadow-sm); transition: background .2s ease, transform .2s ease;
}
.carousel-arrow:hover{ background:#fff; transform: translateY(-50%) scale(1.06); }
.carousel-arrow.prev{ left:14px; }
.carousel-arrow.next{ right:14px; }
.carousel-dots{ position:absolute; left:0; right:0; bottom:14px; display:flex; justify-content:center; gap:.5rem; }
.carousel-dots .dot{
  width:9px; height:9px; border-radius:50%; border:none; background: rgba(255,255,255,.7);
  box-shadow: 0 0 0 1px rgba(54,46,39,.15);
}
.carousel-dots .dot.active{ background: var(--terracotta); }

/* ---------- 8. À PROPOS ---------- */
.about-grid{ display:grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem,5vw,3.5rem); align-items:center; margin-bottom: 2.5rem; }
.about-image img{ border-radius: var(--radius-lg); box-shadow: var(--shadow-md); aspect-ratio: 3/4; object-fit:cover; }
@media (max-width: 800px){ .about-grid{ grid-template-columns:1fr; } .about-image{ max-width:340px; margin:0 auto; } }

.pillars{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-bottom: 2.25rem; }
.pillar-card{
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 1.75rem; text-align:center; box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.pillar-card:hover{ transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pillar-card h4{ color: var(--terracotta-dark); }
@media (max-width: 800px){ .pillars{ grid-template-columns:1fr; } }
.about-closing{ max-width: 820px; margin: 0 auto; text-align:center; font-size: 1.05rem; }

/* ---------- 9. SERVICES (accordéon) ---------- */
.services-list{ display:flex; flex-direction:column; gap: 1rem; max-width: 900px; margin: 0 auto; }
.service-item{
  background: var(--white); border:1px solid var(--border); border-radius: var(--radius-md);
  overflow:hidden; box-shadow: var(--shadow-sm);
}
.service-item summary{
  list-style:none; cursor:pointer; display:flex; align-items:center; justify-content:space-between;
  padding: 1.35rem 1.75rem; font-family: var(--font-heading); font-weight:600; font-size:1.15rem;
  gap: 1rem;
}
.service-item summary::-webkit-details-marker{ display:none; }
.service-toggle{
  flex-shrink:0; width:34px; height:34px; border-radius:50%; background: var(--sauge-pale);
  color: var(--sauge-darker); display:flex; align-items:center; justify-content:center;
  font-size:1.3rem; transition: transform .25s ease, background .25s ease;
}
.service-item[open] .service-toggle{ transform: rotate(45deg); background: var(--terracotta-pale); color: var(--terracotta-dark); }
.service-item[open] summary{ border-bottom:1px solid var(--border); }
.service-content{ padding: 1.5rem 1.75rem 1.85rem; }
.service-img{ border-radius: var(--radius-md); margin: 0 auto 1.1rem; width:100%; max-width: 380px; height:auto; display:block; }
.service-content.no-image{ padding-top: 1.5rem; }
.price{
  display:inline-block; margin-top: .75rem; font-weight:800; color: var(--terracotta-darker);
  background: var(--terracotta-pale); padding: .5rem 1rem; border-radius: var(--radius-pill);
}
.sub-list{ display:flex; flex-direction:column; gap: 1rem; margin-top: 1rem; }
.sub-list li{
  border-left: 3px solid var(--sauge); padding: .25rem 0 .25rem 1.1rem;
}
.sub-list strong{ display:block; margin-bottom:.25rem; color: var(--sauge-darker); }
.service-cta{ margin-top: 1.25rem; }
.service-item.highlight{
  background: linear-gradient(135deg, var(--terracotta-pale), var(--sauge-pale));
  border-color: var(--terracotta-light);
}
.service-cta-block{ text-align:center; padding: 2.25rem 1.75rem; }
.mention-legale{ text-align:center; font-size:.85rem; color: var(--ink-faint); margin-top: .75rem; }

/* ---------- 10. WARNING / MESSAGE BOXES ---------- */
.warning{
  display:flex; gap: 1rem; align-items:flex-start; padding: 1.25rem 1.4rem;
  border-radius: var(--radius-md); margin: 1.5rem 0; border: 1px solid transparent;
}
.warning-icon{ flex-shrink:0; width:34px; height:34px; }
.warning-icon svg{ width:100%; height:100%; }
.warning-content h3{ margin-bottom:.25rem; font-size:1.05rem; }
.warning-info{ background: var(--info-bg); border-color:#D7E0E6; color: var(--info); }
.warning-info .warning-icon{ color: var(--info); }
.warning-success{ background: var(--success-bg); border-color: var(--sauge-light); }
.warning-success .warning-icon{ color: var(--success); }
.warning-caution{ background: var(--caution-bg); border-color: var(--terracotta-light); }
.warning-caution .warning-icon{ color: var(--caution); }

/* ---------- 11. FORMULAIRES ---------- */
.contact-form{ display:flex; flex-direction:column; gap: 1.1rem; }
.contact-form label{
  display:flex; flex-direction:column; gap:.4rem; font-weight:700; font-size:.92rem; color: var(--ink);
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form input[type="date"],
.contact-form select,
.contact-form textarea,
input[type="text"], input[type="email"], input[type="tel"], input[type="date"], select, textarea{
  font-family: inherit; font-size: 1rem; padding: .8rem 1rem; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border); background: var(--white); color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus{
  border-color: var(--sauge); box-shadow: 0 0 0 4px var(--sauge-pale); outline:none;
}
.contact-form textarea{ resize: vertical; min-height: 90px; }
.form-row{ display:grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width:640px){ .form-row{ grid-template-columns:1fr; } }
.field-error{ color: var(--error); font-weight:700; font-size:.9rem; min-height:1.2em; }
.field-notice{ color: var(--terracotta-darker); font-weight:700; font-size:.88rem; margin-top:.4rem; }
.field-hint{ color: var(--ink-faint); font-size: .88rem; margin-top:.5rem; }
.theme-description{ background: var(--sauge-pale); border-left: 3px solid var(--sauge); color: var(--ink-soft); font-size:.92rem; line-height:1.55; padding:.8rem 1rem; border-radius: var(--radius-sm); margin-top:.6rem; }
.consent-label{ flex-direction:row !important; align-items:flex-start; gap:.6rem !important; font-weight:500 !important; }
.consent-label input[type="checkbox"]{ margin-top:.2rem; accent-color: var(--terracotta); width:18px; height:18px; flex-shrink:0; }
input[type="radio"]{ accent-color: var(--terracotta); margin-right:.3rem; }

/* Question à choix Oui/Non (critères d'exclusion, suivi médical) : le
   texte de la question et les deux options sont désormais dans des
   éléments séparés (plus dans un seul <label> géant) pour permettre un
   vrai retour à la ligne entre chaque question et un alignement propre
   des boutons radio. */
.radio-question{ display:flex; flex-direction:column; gap:.5rem; margin-bottom:1.1rem; }
.radio-question:last-child{ margin-bottom:0; }
.radio-question-text{ font-weight:700; font-size:.92rem; color: var(--ink); }
.radio-options{ display:flex; flex-wrap:wrap; gap:.5rem 1.5rem; }
.radio-option{
  display:flex !important; flex-direction:row !important; align-items:center;
  gap:.35rem; font-weight:500 !important; color: var(--ink-soft); cursor:pointer;
}

fieldset{ border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1.25rem 1.4rem; margin: 0 0 1.4rem; }
legend{ font-family: var(--font-heading); font-weight:600; padding: 0 .5rem; color: var(--terracotta-dark); }

.appointment-card{
  max-width: 760px; margin: 0 auto; background: var(--white); border:1px solid var(--border);
  border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: var(--shadow-md);
}

/* ---------- 12. CONTACT & ACCÈS ---------- */
.contact-grid-main{ display:grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
@media (max-width: 860px){ .contact-grid-main{ grid-template-columns:1fr; } }
.contact-block{
  background: var(--white); border:1px solid var(--border); border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem); box-shadow: var(--shadow-sm);
}
.map-embed{ border-radius: var(--radius-md); overflow:hidden; margin-bottom: 1.25rem; }
.contact-mediation{ margin-top: 2rem; }
.mediation-row p{ font-size: .92rem; }

/* ---------- 13. FAQ ---------- */
.faq-container{ max-width: 820px; margin:0 auto; padding: clamp(3rem,6vw,5rem) clamp(1.25rem,4vw,2.5rem); }
.faq-header{ text-align:center; margin-bottom: 2.5rem; }
.faq-tag{
  display:inline-block; background: var(--sauge-pale); color: var(--sauge-darker);
  padding: .35rem 1rem; border-radius: var(--radius-pill); font-weight:800; font-size:.82rem;
  letter-spacing:.03em; text-transform:uppercase; margin-bottom: 1rem;
}
.faq-list{ display:flex; flex-direction:column; gap: .85rem; }
.faq-item{
  background: var(--white); border:1px solid var(--border); border-radius: var(--radius-md);
  overflow:hidden;
}
.faq-question{
  width:100%; text-align:left; background:none; border:none; padding: 1.2rem 1.5rem;
  display:flex; justify-content:space-between; align-items:center; gap:1rem;
  font-family: var(--font-heading); font-weight:600; font-size:1.05rem; color: var(--ink);
}
.faq-icon{
  flex-shrink:0; width:30px; height:30px; border-radius:50%; background: var(--terracotta-pale);
  color: var(--terracotta-dark); display:flex; align-items:center; justify-content:center;
  transition: transform .25s ease;
}
.faq-item.active .faq-icon{ transform: rotate(45deg); }
.faq-answer{ max-height:0; overflow:hidden; transition: max-height .35s ease; padding: 0 1.5rem; }
.faq-item.active .faq-answer{ padding: 0 1.5rem 1.4rem; }
.faq-cta{
  margin-top: 3rem; text-align:center; background: var(--cream-deep); border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 2.5rem);
}
.faq-cta-form{ text-align:left; max-width: 520px; margin: 1.5rem auto 0; }

/* ---------- 14. HYPNOTHÉRAPIE (page info) ---------- */
.info-block{
  display:grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4vw, 3.5rem); align-items:center;
  margin: 3rem 0;
}
.info-block.reverse{ direction: rtl; }
.info-block.reverse > *{ direction: ltr; }
.info-image img{ border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
@media (max-width: 820px){ .info-block, .info-block.reverse{ grid-template-columns:1fr; direction:ltr; } }

/* ---------- 15. ÉVÈNEMENTS ---------- */
.workshop-list{ display:grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 1.5rem; }
.workshop-card{
  background: var(--white); border:1px solid var(--border); border-radius: var(--radius-md);
  padding: 1.5rem; box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease;
}
.workshop-card:hover{ transform: translateY(-3px); box-shadow: var(--shadow-md); }
.workshop-date{ color: var(--terracotta-dark); font-weight:800; margin-bottom:.4rem; }
.workshop-theme-desc{ font-size: .95rem; }
.workshop-spots{ font-weight:700; color: var(--sauge-darker); margin: .75rem 0 1rem; }
.workshop-spots.is-full{ color: var(--error); }

/* ---------- 16. INSCRIPTION ATELIERS (simulateur) ---------- */
.simulateur{ padding: clamp(2.5rem, 5vw, 4rem) clamp(1.25rem,4vw,2.5rem); max-width: 980px; }
.simulateur.wide, #main-container.wide{ max-width: 1180px; }
.simulateur h1{ text-align:center; margin-bottom: 2rem; }

.progress-container{ max-width: 480px; margin: 0 auto 3rem; }
.progress-steps{ display:flex; justify-content:space-between; margin-bottom:.6rem; }
.progress-step{
  width:34px; height:34px; border-radius:50%; background: var(--white); border:2px solid var(--border);
  color: var(--ink-faint); display:flex; align-items:center; justify-content:center; font-weight:800;
  font-size:.9rem;
}
.progress-step.active{ border-color: var(--terracotta); color: var(--terracotta-dark); background: var(--terracotta-pale); }
.progress-step.completed{ border-color: var(--sauge); background: var(--sauge); color:#fff; }
.progress-bar-track{ height:4px; background: var(--border); border-radius: var(--radius-pill); overflow:hidden; }
.progress-bar-fill{ height:100%; background: linear-gradient(90deg, var(--terracotta), var(--sauge)); transition: width .3s ease; }
.progress-label{ text-align:center; font-size:.85rem; color: var(--ink-faint); margin-top:.5rem; }

.step-section{ background: var(--white); border:1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(1.5rem,4vw,2.75rem); box-shadow: var(--shadow-sm); }
.step-section.step-fade{ animation: stepFade .35s ease; }
@keyframes stepFade{ from{ opacity:0; transform: translateY(10px);} to{ opacity:1; transform:none; } }

.btn-back{
  display:inline-flex; align-items:center; gap:.4rem; background:none; border:none; color: var(--sauge-darker);
  font-weight:700; padding:0; margin-bottom: 1.25rem;
}
.btn-back svg{ width:18px; height:18px; }

.choice-container{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 1.5rem; }
@media (max-width: 800px){ .choice-container{ grid-template-columns:1fr; } }
.choice-card{
  background: var(--cream-deep); border: 1.5px solid var(--border); border-radius: var(--radius-md);
  padding: 1.5rem; text-align:left; display:flex; gap:1rem; align-items:flex-start;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.choice-card:hover{ transform: translateY(-3px); border-color: var(--terracotta); box-shadow: var(--shadow-sm); }
.choice-card-icon{ flex-shrink:0; width:38px; height:38px; color: var(--terracotta-dark); }
.choice-card-icon svg{ width:100%; height:100%; }
.choice-card-text h3{ font-size: 1.05rem; margin-bottom:.3rem; }
.choice-card-text p{ font-size:.9rem; }

.btn-step{
  display:inline-flex; align-items:center; justify-content:center; width:100%;
  padding: 1rem 1.5rem; border-radius: var(--radius-pill); border:none;
  background: var(--chocolate); color: var(--ink);
  font-weight:800; font-size:1rem; margin-top: 1.5rem; transition: opacity .2s ease, transform .2s ease;
}
.btn-step:disabled{ opacity:.45; cursor:not-allowed; }
.btn-step:not(:disabled):hover{ transform: translateY(-2px); }
.btn-step-secondary{
  display:inline-flex; align-items:center; justify-content:center; padding:.6rem 1.1rem;
  border-radius: var(--radius-pill); border:1.5px solid var(--sauge); background: var(--white);
  color: var(--sauge-darker); font-weight:700; font-size:.88rem;
}
.btn-step-secondary:hover{ background: var(--sauge-pale); }

.plan-grid{ display:grid; grid-template-columns: 1.5fr 1fr; gap: 2rem; align-items:start; }
@media (max-width: 900px){ .plan-grid{ grid-template-columns:1fr; } }
.plan-col-sticky{ position:sticky; top: calc(var(--header-h) + 16px); }
.plan-col-count{ font-size:.9rem; color: var(--ink-faint); font-weight:600; }
.calendar-list{ display:flex; flex-direction:column; gap: 1rem; max-height: 640px; overflow-y:auto; padding-right:.25rem; }

.workshop-card.selected{ border-color: var(--terracotta); box-shadow: 0 0 0 3px var(--terracotta-pale); }
.workshop-card.pending{ border-color: var(--sauge); }
.workshop-card.is-full{ opacity:.65; }
.workshop-main{ display:flex; align-items:flex-start; gap: .85rem; cursor:pointer; }
.workshop-checkbox{ width:20px; height:20px; margin-top:.2rem; accent-color: var(--terracotta); flex-shrink:0; }
.workshop-checkbox:disabled{ cursor:not-allowed; }
.workshop-heading{ display:flex; flex-direction:column; gap:.2rem; }
.workshop-date-badge{ font-size:.8rem; font-weight:800; color: var(--terracotta-dark); text-transform:uppercase; letter-spacing:.02em; }
.workshop-title-text{ font-weight:700; }
.workshop-spots-badge{
  display:inline-block; margin-top:.2rem; font-size:.75rem; font-weight:800; color: var(--sauge-darker);
  background: var(--sauge-pale); padding:.2rem .6rem; border-radius: var(--radius-pill); width:fit-content;
}
.workshop-spots-badge.is-full{ color: var(--error); background: var(--caution-bg); }
.workshop-pending-badge{
  display:inline-block; margin-top:.2rem; font-size:.75rem; font-weight:800; color: var(--sauge-darker);
  background: var(--sauge-pale); padding:.2rem .6rem; border-radius: var(--radius-pill); width:fit-content;
}
.workshop-desc{ font-size:.9rem; margin: .6rem 0 0 2.05rem; }
.workshop-toggle-alt{
  display:flex; align-items:center; gap:.4rem; background:none; border:none; color: var(--sauge-darker);
  font-weight:700; font-size:.85rem; margin: .85rem 0 0 2.05rem; padding:0;
}
.chevron{ width:16px; height:16px; transition: transform .2s ease; }
.workshop-toggle-alt[aria-expanded="true"] .chevron{ transform: rotate(180deg); }
.workshop-alt{ margin: .85rem 0 0 2.05rem; padding-top: .85rem; border-top: 1px dashed var(--border); }
.workshop-alt-slots{ display:flex; flex-direction:column; gap:.6rem; }
.alt-chip{
  display:flex; flex-direction:column; gap:.35rem; padding: .7rem .9rem; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border); background: var(--cream); font-size: .85rem; text-align:left;
}
.alt-chip.is-selected, button.alt-chip.is-selected{ border-color: var(--terracotta); background: var(--terracotta-pale); }
.alt-chip.is-full{ opacity:.6; cursor:not-allowed; }
.alt-chip.is-full .alt-chip-status{ color: var(--error); font-weight:700; }
.alt-chip-date{ font-weight:800; }
.alt-chip-status{ color: var(--ink-faint); }
.alt-chip.is-at-risk{ border-color: var(--caution); background: var(--caution-bg); }
.alt-chip-risk-msg{ color: var(--caution); margin:0; font-weight:600; }
.alt-chip.is-following{ border-color: var(--sauge); }
.alt-chip-following-msg{ margin:0; color: var(--sauge-darker); }
.alt-chip-interest-btn{
  align-self:flex-start; background: var(--sauge); color:#fff; border:none; padding:.4rem .9rem;
  border-radius: var(--radius-pill); font-weight:700; font-size:.8rem; margin-top:.25rem;
}
.workshop-propose{ margin-top: 1rem; padding-top: 1rem; border-top: 1px dashed var(--border); }
.propose-row{ display:flex; gap:.6rem; flex-wrap:wrap; align-items:center; margin-top:.5rem; }
.propose-date, .propose-time{ flex:1; min-width:130px; }
.propose-feedback{ font-size:.85rem; margin-top:.5rem; font-weight:600; }
.propose-feedback.is-error{ color: var(--error); }
.propose-feedback.is-success{ color: var(--sauge-darker); }

.estimate-panel{
  background: var(--cream-deep); border-radius: var(--radius-md); padding: 1.5rem; text-align:center; margin-bottom: 1.25rem;
}
.estimate-count{ font-weight:700; margin-bottom:.4rem; }
.estimate-amount{ font-family: var(--font-heading); font-size: 2rem; color: var(--terracotta-dark); margin:0; }
.estimate-reco{ font-size:.85rem; color: var(--sauge-darker); font-weight:700; margin-top:.4rem; }
.promo-box{
  background: var(--terracotta-pale); border: 1px dashed var(--terracotta); border-radius: var(--radius-sm);
  padding: .85rem 1rem; font-size:.88rem; font-weight:700; color: var(--terracotta-darker); margin-bottom: 1.25rem;
}
.carnet-code-block{
  background: var(--sauge-pale); border: 1px solid var(--sauge); border-radius: var(--radius-sm);
  padding: .9rem 1.1rem; margin-bottom: 1.25rem;
}
.carnet-code-block label{ font-weight:700; font-size:.92rem; }
.carnet-code-block .form-row{ grid-template-columns: 1fr auto; gap:.6rem; margin-top:.4rem; align-items:center; }
.carnet-code-block input[type="text"]{ margin:0; }
.carnet-code-block .field-hint:first-of-type{ margin-top:.6rem; font-weight:700; }
.formule-list{ display:flex; flex-direction:column; gap:.75rem; }
.formule-card{
  display:flex; align-items:center; justify-content:space-between; gap:1rem; padding: 1rem 1.2rem;
  border: 1.5px solid var(--border); border-radius: var(--radius-md); background: var(--white); cursor:pointer;
  transition: border-color .2s ease, transform .2s ease;
}
.formule-card:hover{ transform: translateY(-2px); }
.formule-card.selected{ border-color: var(--terracotta); background: var(--terracotta-pale); }
.formule-card.recommended{ border-color: var(--sauge); }
.formule-card.disabled{ opacity:.45; cursor:not-allowed; }
.formule-card h3{ font-size: .98rem; margin-bottom:.2rem; }
.formule-card p{ font-size:.82rem; margin:0; }
.formule-price{ font-family: var(--font-heading); font-weight:700; font-size:1.3rem; color: var(--terracotta-dark); flex-shrink:0; }

.group-panel{ max-width: 640px; margin:0 auto; }
.recap-list{ display:flex; flex-direction:column; gap:.6rem; margin: 1.25rem 0; }
.recap-list li{
  display:flex; justify-content:space-between; align-items:center; gap:1rem; padding:.8rem 1rem;
  background: var(--cream-deep); border-radius: var(--radius-sm); font-size:.92rem;
}
.recap-status{ font-weight:800; font-size:.82rem; color: var(--ink-faint); }
.recap-status.ok{ color: var(--sauge-darker); }
.recap-status.excluded{ color: var(--error); }
.privacy-person{ flex-direction:column; align-items:flex-start !important; gap:.6rem !important; }
.privacy-actions{ display:flex; flex-wrap:wrap; gap:.6rem; align-items:center; }
.queue-progress{ font-weight:800; color: var(--sauge-darker); margin-bottom: .5rem; }
.pricing-summary{ background: var(--cream-deep); border-radius: var(--radius-sm); padding: 1rem 1.2rem; margin: 1.25rem 0; }
.total-line{ font-weight:800; color: var(--terracotta-dark); }
.deposit-line{ font-weight:800; color: var(--terracotta-dark); }

/* ---------- 17. QUIZ (test.html) ---------- */
.quiz .question{ display:none; }
.quiz .question.active{ display:flex; flex-direction:column; gap: .8rem; max-width: 640px; margin:0 auto; }
.quiz .question p{ font-weight:700; color: var(--ink); font-size:1.05rem; }
.quiz .question button{
  text-align:left; background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius-md);
  padding: 1rem 1.25rem; font-size:.98rem; color: var(--ink); transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
.quiz .question button:hover{ border-color: var(--terracotta); background: var(--terracotta-pale); transform: translateX(4px); }
#resultat{ max-width: 640px; margin: 0 auto; }

/* ---------- 18. LIGHTBOX ---------- */
.lightbox-overlay{
  position: fixed; inset:0; background: rgba(54,46,39,.9); display:none; align-items:center; justify-content:center;
  z-index: 2000; padding: 2rem;
}
.lightbox-overlay.active{ display:flex; }
.lightbox-overlay img{ max-width: min(92vw, 1100px); max-height: 88vh; border-radius: var(--radius-md); box-shadow: var(--shadow-lg); }
.lightbox-close{
  position:absolute; top: 1.25rem; right: 1.5rem; background: rgba(255,255,255,.15); border:none; color:#fff;
  width:44px; height:44px; border-radius:50%; font-size:1.6rem; line-height:1;
}
.lightbox-close:hover{ background: rgba(255,255,255,.3); }

/* ---------- 19. FOOTER ---------- */
.site-footer{
  background: var(--chocolate);
  color: var(--cream); margin-top: clamp(3rem, 6vw, 5rem);
  text-shadow: 0 1px 2px rgba(54,46,39,.3);
}
.footer-grid{
  display:grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2.5rem;
  padding: clamp(2.5rem, 5vw, 3.5rem) clamp(1.25rem,4vw,2.5rem) 2rem;
}
@media (max-width: 760px){ .footer-grid{ grid-template-columns:1fr; text-align:center; } }
.footer-brand-name{ font-family: var(--font-heading); font-size:1.3rem; color: var(--cream); margin-bottom:.6rem; }
.footer-grid p{ color: var(--cream); font-size:.92rem; }
.footer-address{ margin-top:.5rem; font-weight:700; color: var(--cream) !important; }
.footer-col h4{ color: var(--cream); font-size:1rem; margin-bottom:1rem; }
.footer-nav{ display:flex; flex-direction:column; gap:.65rem; }
.footer-nav a, .footer-contact a{ color: var(--cream); font-size:.92rem; }
.footer-nav a:hover, .footer-contact a:hover{ color: #fff; }
.footer-contact p{ margin-bottom:.5rem; }
.footer-bottom{
  border-top: 1px solid rgba(251,246,239,.25);
  padding: 1.25rem clamp(1.25rem,4vw,2.5rem);
  display:flex; flex-wrap:wrap; gap: .5rem 1.5rem; justify-content:space-between; align-items:center;
  font-size:.82rem; color: var(--cream);
}
.footer-bottom a{ color: var(--cream); }
.footer-bottom a:hover{ color: #fff; }

/* Le pied de page est maintenant du même noisette que le bouton
   "Prendre Rendez-vous" (.btn-primary) : sans cette exception, le
   bouton se fondrait dans son propre arrière-plan. On l'inverse en
   crème pour qu'il reste visible et cliquable. */
.site-footer .btn-primary{ background: var(--cream); color: var(--ink); }
.site-footer .btn-primary:hover{ background: #fff; color: var(--ink); }
.footer-legal-links{ display:flex; flex-wrap:wrap; gap: .4rem 1.1rem; }

/* ---------- 20. BANNIÈRE COOKIES ---------- */
.cookie-banner{
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 3000;
  max-width: 620px; margin: 0 auto;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 1.5rem clamp(1.25rem, 3vw, 1.85rem);
  transform: translateY(140%); transition: transform .45s cubic-bezier(.2,.9,.3,1);
}
.cookie-banner.visible{ transform: translateY(0); }
.cookie-banner h2{ font-size: 1.1rem; margin-bottom:.5rem; }
.cookie-banner p{ font-size: .9rem; }
.cookie-banner-actions{ display:flex; flex-wrap:wrap; gap:.75rem; margin-top: 1.1rem; }
.cookie-banner-actions .btn{ flex:1; min-width:150px; padding: .75rem 1.25rem; font-size:.9rem; }
.cookie-settings-btn{
  position: fixed; left: 1rem; bottom: 1rem; z-index: 2900;
  background: var(--white); border: 1.5px solid var(--border); color: var(--ink-soft);
  width: 42px; height: 42px; border-radius: 50%; box-shadow: var(--shadow-sm);
  display:flex; align-items:center; justify-content:center;
}
.cookie-settings-btn svg{ width: 20px; height: 20px; }
.cookie-settings-btn:hover{ border-color: var(--sauge); color: var(--sauge-darker); }

/* ---------- 21. PAGES LÉGALES ---------- */
.legal-page{ max-width: 820px; margin: 0 auto; padding: clamp(3rem,6vw,4.5rem) clamp(1.25rem,4vw,2.5rem); }
.legal-page h2{ margin-top: 2.25rem; }
.legal-page h2:first-of-type{ margin-top: 0; }
.legal-page h3{ margin-top: 1.5rem; color: var(--terracotta-dark); }
.legal-page ul{ list-style: disc; padding-left: 1.4rem; margin-bottom: 1em; }
.legal-page li{ margin-bottom: .5rem; color: var(--ink-soft); }
.legal-updated{ color: var(--ink-faint); font-size:.88rem; margin-bottom: 2rem; }
.legal-table{ width:100%; border-collapse: collapse; margin: 1.25rem 0; font-size:.92rem; }
.legal-table th, .legal-table td{ border:1px solid var(--border); padding:.7rem .9rem; text-align:left; vertical-align:top; }
.legal-table th{ background: var(--cream-deep); font-family: var(--font-heading); }

/* ---------- 22. PRINT ---------- */
@media print{
  .site-header, .header-nav-bar, .cookie-banner, .cookie-settings-btn, .site-footer, .burger{ display:none !important; }
}
