/* =========================================================================
   ANTHASMA NATUROPATHIE — Design System
   Warm, organic, premium. Soft humanist sans. Light mode.
   ========================================================================= */

:root {
  /* --- Palette : crème, sauge, argile, sable, olive --- */
  --paper:        #F4EEE2;   /* fond principal, papier chaud  */
  --paper-deep:   #EBE2D1;   /* sections alternées            */
  --ivory:        #FBF7EF;   /* cartes, surfaces claires      */
  --sand:         #E4D7BF;   /* sable, séparateurs doux       */

  --sage:         #8C9A7B;   /* sauge feutrée                 */
  --sage-deep:    #2f4a38;   /* sauge profonde, boutons/texte */
  --sage-tint:    #DDE2D2;   /* sauge très claire, fonds      */
  --olive:        #6B6F47;   /* olive clair                   */

  --clay:         #B9805F;   /* argile / terracotta douce     */
  --clay-soft:    #D7B49B;   /* argile claire                 */
  --clay-tint:    #EFDFD0;   /* argile très claire, fonds     */

  --ink:          #33342C;   /* texte principal, presque noir chaud */
  --ink-soft:     #5C5D51;   /* texte secondaire              */
  --ink-faint:    #8A8A7C;   /* légendes, méta                */

  --line:         rgba(51, 52, 44, 0.12);
  --line-soft:    rgba(51, 52, 44, 0.07);

  --shadow-sm:    0 1px 2px rgba(51,52,44,.04), 0 4px 16px rgba(51,52,44,.05);
  --shadow-md:    0 4px 14px rgba(51,52,44,.06), 0 18px 50px rgba(51,52,44,.09);
  --shadow-lg:    0 10px 30px rgba(51,52,44,.08), 0 40px 90px rgba(51,52,44,.13);

  /* --- Typographie --- */
  --font-display: "Hanken Grotesk", -apple-system, system-ui, sans-serif;
  --font-body:    "Mulish", -apple-system, system-ui, sans-serif;

  /* --- Rythme --- */
  --container:    1240px;
  --container-narrow: 880px;
  --pad-x:        clamp(1.4rem, 5vw, 4rem);
  --section-y:    clamp(5rem, 10vw, 9rem);
  --radius-lg:    26px;
  --radius-md:    18px;
  --radius-sm:    12px;
  --header-h:     162px;

  --ease:         cubic-bezier(.22, .61, .36, 1);
}

/* ----------------------------------------------------------------- Reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.72;
  font-weight: 400;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* --------------------------------------------------------------- Layout */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--pad-x); }
.narrow    { max-width: var(--container-narrow); }
.section   { padding-block: var(--section-y); }
.bg-deep   { background: var(--paper-deep); }
.bg-sage   { background: var(--sage-tint); }
.bg-ink    { background: #2C2D26; color: var(--paper); }

/* ------------------------------------------------------------ Typography */
.eyebrow {
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--clay);
  display: inline-flex;
  align-items: center;
  gap: .7rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--clay);
  opacity: .6;
}
.eyebrow.center::before { display: none; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.08; letter-spacing: -.02em; color: var(--ink); }

.display {
  font-size: clamp(2.7rem, 5.6vw, 4.6rem);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -.025em;
}
h2.title {
  font-size: clamp(2rem, 3.7vw, 3.1rem);
  font-weight: 300;
  letter-spacing: -.022em;
}
h3.sub { font-size: clamp(1.3rem, 2vw, 1.6rem); font-weight: 500; letter-spacing: -.01em; }

.lead {
  font-size: clamp(1.12rem, 1.55vw, 1.32rem);
  line-height: 1.65;
  color: var(--ink-soft);
  font-weight: 400;
}
.muted { color: var(--ink-soft); }
.faint { color: var(--ink-faint); }
em.serif { font-style: italic; }
.accent  { color: var(--clay); }

/* ---------------------------------------------------------------- Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .01em;
  padding: .95rem 1.7rem;
  border-radius: 100px;
  transition: transform .4s var(--ease), background .3s var(--ease), color .3s var(--ease), box-shadow .4s var(--ease), border-color .3s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--sage-deep); color: var(--ivory); box-shadow: 0 6px 18px rgba(94,107,80,.28); }
.btn-primary:hover { background: #2f4a38; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(94,107,80,.34); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--sage-deep); color: var(--sage-deep); transform: translateY(-2px); }
.btn-clay { background: var(--clay); color: var(--ivory); box-shadow: 0 6px 18px rgba(185,128,95,.3); }
.btn-clay:hover { background: #A87053; transform: translateY(-2px); }
.btn-light { background: var(--ivory); color: var(--ink); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.link-arrow {
  font-family: var(--font-display);
  font-weight: 600; font-size: .95rem;
  color: var(--sage-deep);
  display: inline-flex; align-items: center; gap: .5rem;
  transition: gap .35s var(--ease), color .3s;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.link-arrow:hover { gap: .8rem; color: var(--clay); }

/* ----------------------------------------------------------- Image slots */
image-slot {
  --is-bg: var(--sand);
  background: var(--clay-tint);
  color: var(--ink-faint);
  font-family: var(--font-display);
  box-shadow: var(--shadow-md);
}

/* ------------------------------------------------------------- Reveal anim */
/* Gated by html.js so content is fully visible if JS never runs (SEO, no-JS). */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  will-change: opacity, transform;
}
html.js [data-reveal].in { opacity: 1; transform: none; }
html.js [data-reveal][data-delay="1"] { transition-delay: .09s; }
html.js [data-reveal][data-delay="2"] { transition-delay: .18s; }
html.js [data-reveal][data-delay="3"] { transition-delay: .27s; }
html.js [data-reveal][data-delay="4"] { transition-delay: .36s; }
@media (prefers-reduced-motion: reduce) {
  html.js [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================================
   Burn-out — modale « En savoir plus »
   ========================================================================= */
.burnout-more-btn {
  align-self: center;
  margin-left: .6rem;
  color: var(--clay);
  background: none;
  border: 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .95rem;
}

.bo-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0px, 4vw, 3rem);
  visibility: hidden;
  opacity: 0;
  transition: opacity .45s var(--ease), visibility 0s linear .45s;
}
.bo-modal.open {
  visibility: visible;
  opacity: 1;
  transition: opacity .45s var(--ease);
}

.bo-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(38, 42, 32, .46);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}

.bo-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(820px, 100%);
  max-height: 100%;
  background: var(--paper);
  border-radius: clamp(0px, 2vw, var(--radius-lg));
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: translateY(26px) scale(.985);
  transition: transform .55s var(--ease);
}
.bo-modal.open .bo-panel { transform: none; }
@media (max-width: 640px) {
  .bo-modal { padding: 0; }
  .bo-panel { max-height: 100%; height: 100%; border-radius: 0; width: 100%; }
}

.bo-close {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  z-index: 3;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 100px;
  background: var(--ivory);
  color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: color .3s, transform .35s var(--ease), background .3s;
}
.bo-close svg { width: 19px; height: 19px; }
.bo-close:hover { color: var(--clay); transform: rotate(90deg); }

.bo-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 5vw, 4rem) clamp(2rem, 5vw, 3.4rem);
  -webkit-overflow-scrolling: touch;
}
@media (max-width: 640px) {
  .bo-scroll { padding-top: 3.4rem; }
}
.bo-scroll::-webkit-scrollbar { width: 9px; }
.bo-scroll::-webkit-scrollbar-thumb { background: var(--clay-soft); border-radius: 100px; border: 3px solid var(--paper); }
.bo-scroll::-webkit-scrollbar-track { background: transparent; }

.bo-head { margin-bottom: 2.6rem; }
.bo-head .eyebrow { margin-bottom: 1rem; }
.bo-h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.7rem, 3.6vw, 2.55rem);
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--ink);
  text-wrap: balance;
}
.bo-kicker {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--clay);
  margin-top: 1rem;
}
.bo-intro {
  margin-top: 1.5rem;
  font-size: 1.06rem;
  line-height: 1.78;
  color: var(--ink-soft);
}

.bo-block { padding-block: 1.9rem; border-top: 1px solid var(--line); }
.bo-block > p { color: var(--ink-soft); line-height: 1.78; }
.bo-block > p + p { margin-top: .9rem; }
.bo-h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.32rem, 2.6vw, 1.78rem);
  line-height: 1.18;
  letter-spacing: -.018em;
  color: var(--ink);
  margin-bottom: 1.1rem;
  text-wrap: balance;
}
.bo-label { margin-top: 1.25rem !important; font-weight: 500; color: var(--ink) !important; }

.bo-list {
  list-style: none;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.bo-list li {
  position: relative;
  padding-left: 1.7rem;
  color: var(--ink-soft);
  line-height: 1.6;
}
.bo-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 7px;
  height: 7px;
  border-radius: 100px;
  background: var(--clay);
}
.bo-list-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .6rem 1.6rem;
}
@media (max-width: 520px) { .bo-list-two { grid-template-columns: 1fr; } }

.bo-chips {
  list-style: none;
  margin-top: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}
.bo-chips li {
  font-family: var(--font-display);
  font-size: .92rem;
  font-weight: 500;
  color: var(--sage-deep);
  background: var(--sage-tint);
  padding: .5rem 1rem;
  border-radius: 100px;
}
.bo-emphasis {
  margin-top: 1.4rem !important;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.16rem;
  color: var(--ink) !important;
}

.bo-steps {
  margin-top: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}
.bo-step {
  display: flex;
  gap: 1.2rem;
  background: var(--ivory);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow-sm);
}
.bo-step-num {
  flex: none;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 100px;
  background: var(--clay);
  color: var(--ivory);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
}
.bo-step-body h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.12rem;
  color: var(--ink);
  margin-bottom: .5rem;
  letter-spacing: -.01em;
}
.bo-step-body p { color: var(--ink-soft); line-height: 1.7; }
.bo-step-body .bo-list { margin-top: .7rem; }
.bo-quote {
  margin-top: .6rem !important;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--clay) !important;
}

.bo-ikigai {
  background: var(--clay-tint);
  border-top: 0;
  border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 4vw, 2.6rem);
  margin-top: 2rem;
}
.bo-ikigai .eyebrow { margin-bottom: .9rem; }
.bo-ikigai .bo-list li::before { background: var(--clay); }

.bo-closing {
  text-align: center;
  padding-top: 2.6rem;
  margin-top: .4rem;
}
.bo-closing > p { color: var(--ink-soft); line-height: 1.75; }
.bo-closing-lead {
  font-family: var(--font-display);
  font-size: clamp(1.18rem, 2.4vw, 1.5rem);
  line-height: 1.3;
  color: var(--ink) !important;
  margin-bottom: 1.2rem;
  text-wrap: balance;
}
.bo-regain {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .6rem .8rem;
  margin: 1.2rem 0 0;
}
.bo-regain li {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--sage-deep);
  background: var(--sage-tint);
  padding: .5rem 1.1rem;
  border-radius: 100px;
}
.bo-cta { margin-top: 2rem; }

body.bo-locked { overflow: hidden; }
