/* Les maux par les mots — styles
   Palette : sauge & terre cuite. Élégant, doux, professionnel.
   Typographie : serif éditorial (Fraunces) + sans humaniste (DM Sans) + accent (Cormorant)
*/

:root {
  /* palette light — sauge / terracotta / lin */
  --bg: #f6f2ec;             /* lin chaud */
  --bg-2: #efe9df;           /* lin plus saturé */
  --bg-3: #e8e1d3;           /* sable */
  --ink: #2b2a26;            /* encre chaude */
  --ink-2: #58564f;          /* gris taupe */
  --ink-3: #8a8780;          /* gris léger */
  --line: rgba(43,42,38,.12);

  --sage: #6b7f63;           /* sauge profonde */
  --sage-2: #8fa085;         /* sauge clair */
  --sage-3: #d8dfd0;         /* sauge brume */
  --sage-4: #eef1e8;         /* sauge laiteux */

  --terra: #b9603e;          /* terre cuite */
  --terra-2: #c9805f;        /* terre cuite clair */
  --terra-3: #ead7c8;        /* nude rosé */

  --gold: #b08a4a;

  --shadow-soft: 0 1px 0 rgba(255,255,255,.6) inset, 0 18px 40px -22px rgba(43,42,38,.25);
  --shadow-card: 0 1px 0 rgba(255,255,255,.5) inset, 0 24px 60px -28px rgba(43,42,38,.30);

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --radius-xl: 40px;

  --font-serif: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'DM Sans', ui-sans-serif, system-ui, sans-serif;
  --font-display: 'Fraunces', Georgia, serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --gap: 28px;
  --pad: clamp(20px, 4vw, 56px);

  --maxw: 1240px;
}

[data-theme="dark"] {
  --bg: #1a1916;
  --bg-2: #221f1b;
  --bg-3: #2a2722;
  --ink: #f0ebe1;
  --ink-2: #c5beb0;
  --ink-3: #8e887d;
  --line: rgba(240,235,225,.14);

  --sage: #a9bc9f;
  --sage-2: #8fa085;
  --sage-3: #3a4537;
  --sage-4: #2a3128;

  --terra: #d68261;
  --terra-2: #c9805f;
  --terra-3: #4a2e22;

  --shadow-soft: 0 1px 0 rgba(255,255,255,.04) inset, 0 18px 40px -22px rgba(0,0,0,.6);
  --shadow-card: 0 1px 0 rgba(255,255,255,.05) inset, 0 24px 60px -28px rgba(0,0,0,.7);
}

[data-density="compact"] {
  --gap: 18px;
  --pad: clamp(16px, 3vw, 40px);
  --section-y: 64px;
}
[data-density="aere"] {
  --gap: 36px;
  --pad: clamp(24px, 5vw, 72px);
  --section-y: 140px;
}
:root { --section-y: 100px; }

/* — base — */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

::selection { background: var(--sage-3); color: var(--ink); }

/* — type — */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}
h1 {
  font-size: clamp(48px, 7vw, 104px);
  line-height: 0.98;
  letter-spacing: calc(-0.025em + var(--letter-tracking, 0em));
  font-weight: var(--heading-weight, 350);
}
h2 {
  font-size: clamp(36px, 4.5vw, 64px);
  line-height: 1.02;
  letter-spacing: calc(-0.02em + var(--letter-tracking, 0em));
  font-weight: var(--heading-weight, 380);
}
h3 {
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.2;
  font-weight: 450;
}
.italic, em { font-family: var(--font-serif); font-style: italic; }

p { margin: 0; color: var(--ink-2); text-wrap: pretty; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: .6;
}

/* — layout — */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.section {
  padding: var(--section-y) 0;
  position: relative;
}

/* — buttons — */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.005em;
  border: 1px solid transparent;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--ink);
  color: var(--bg);
}
.btn-primary:hover { background: var(--terra); }
.btn-terra {
  background: var(--terra);
  color: #fff;
}
.btn-terra:hover { background: #a4543a; }
.btn-sage {
  background: var(--sage);
  color: #fff;
}
.btn-sage:hover { background: #5b6e54; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { background: var(--bg-3); }

.btn-arrow {
  width: 22px; height: 22px; border-radius: 999px;
  background: rgba(255,255,255,.18);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px;
}

/* — nav — */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav--scrolled {
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  background: color-mix(in oklab, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(255,255,255,.5) inset, 0 4px 20px -8px rgba(43,42,38,.12);
  transition: background .3s ease, box-shadow .3s ease, border-color .3s ease;
}
body[data-navsticky="off"] .nav { position: relative; }
body[data-nav="minimal"] .nav-phone { display: none; }
body[data-nav="minimal"] .nav-links { gap: 22px; font-size: 13px; }
body[data-nav="centered"] .nav-inner { display: grid; grid-template-columns: 1fr auto 1fr; }
body[data-nav="centered"] .nav-links { justify-content: center; }
body[data-btnshape="rounded"] .btn { border-radius: 12px; }
body[data-btnshape="sharp"] .btn { border-radius: 2px; }
body[data-btnstyle="outline"] .btn-primary,
body[data-btnstyle="outline"] .btn-terra,
body[data-btnstyle="outline"] .btn-sage { background: transparent; color: var(--ink); border-color: var(--ink); }
body[data-btnstyle="outline"] .btn-primary:hover { background: var(--ink); color: var(--bg); }
body[data-btnstyle="underline"] .btn { background: transparent !important; color: var(--ink) !important; border-radius: 0; border: 0; border-bottom: 1px solid currentColor; padding: 8px 2px; }
body[data-card="bordered"] .card { box-shadow: none; border: 1px solid var(--line); }
body[data-card="elevated"] .card { box-shadow: 0 18px 40px -22px rgba(0,0,0,.25); border-color: transparent; }
body[data-card="inset"] .card { background: var(--bg-3); border: 0; box-shadow: inset 0 1px 0 rgba(0,0,0,.04); }
body[data-imgfilter="warm"] .imgph.has-src { filter: saturate(1.05) hue-rotate(-4deg) brightness(1.02); }
body[data-imgfilter="desat"] .imgph.has-src { filter: saturate(0.55); }
body[data-imgfilter="sepia"] .imgph.has-src { filter: sepia(0.35) saturate(0.85); }
body[data-imgfilter="bw"] .imgph.has-src { filter: grayscale(1) contrast(1.05); }
body[data-grain="on"]::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: 0.4; mix-blend-mode: multiply; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
body[data-shadows="off"] .card,
body[data-shadows="off"] .testimonial-card { box-shadow: none !important; }
body[data-ulinks="on"] .nav-links a { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
body[data-italics="off"] em,
body[data-italics="off"] .it,
body[data-italics="off"] .italic { color: inherit !important; font-style: normal !important; font-family: inherit !important; }
.spacer-removed {
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--pad);
  max-width: var(--maxw);
  margin: 0 auto;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: -0.01em;
  font-weight: 400;
}
.brand-logo {
  height: 44px;
  width: auto;
  display: block;
  object-fit: contain;
}
.brand-mark {
  width: 34px; height: 34px;
  border-radius: 999px;
  background: var(--sage);
  display: grid;
  place-items: center;
  color: #fff;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 17px;
  font-weight: 500;
}
.brand small {
  display: block;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  color: var(--ink-3);
  text-transform: uppercase;
  margin-top: 2px;
  font-weight: 400;
}
.nav-links {
  display: flex;
  gap: 30px;
  font-size: 14px;
  color: var(--ink-2);
}
.nav-links a {
  position: relative;
  padding: 4px 0;
  transition: color .2s;
}
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  display: flex;
  align-items: center;
  gap: 14px;
}
.nav-phone {
  font-size: 13px;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 1080px) {
  .nav-links { display: none; }
}
@media (max-width: 720px) {
  .nav-phone { display: none; }
}

/* — image placeholders — */
.imgph {
  position: relative;
  background: var(--bg-3);
  border-radius: var(--radius);
  overflow: hidden;
  background-image:
    repeating-linear-gradient(135deg,
      rgba(43,42,38,.04) 0 1px,
      transparent 1px 14px);
}
.imgph::after {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 16px;
  text-align: center;
}
.imgph.sage { background-color: var(--sage-3); }
.imgph.terra { background-color: var(--terra-3); }
.imgph.dark { background-color: var(--ink); }
.imgph.dark::after { color: rgba(255,255,255,.6); }

/* with real image — apply when --src is set */
.imgph.has-src {
  background-image: var(--src);
  background-size: cover;
  background-position: center;
}
.imgph.has-src::after { content: ""; }

/* — cards — */
.card {
  background: var(--bg-2);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--line);
}
.card-soft {
  background: var(--bg-2);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.card-sage {
  background: var(--sage);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 32px;
}
.card-sage h2, .card-sage h3 { color: #fff; }
.card-terra {
  background: var(--terra);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 32px;
}
.card-terra h2, .card-terra h3 { color: #fff; }

/* — pill — */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--bg-3);
  border-radius: 999px;
  font-size: 12px;
  color: var(--ink-2);
  border: 1px solid var(--line);
}
.pill .dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--sage);
}
.pill.terra .dot { background: var(--terra); }
.pill.dark { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* — divider rule with label — */
.rule {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
}
.rule::before, .rule::after {
  content: "";
  height: 1px;
  background: var(--line);
}

/* — hero specifics — */
.hero {
  padding-top: 20px;
  position: relative;
  padding-bottom: clamp(40px, 8vw, 80px) 0 clamp(60px, 8vw, 120px);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: top;
}
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
}

.hero-img {
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}

.hero-h1 .it {
  font-style: italic;
  font-family: var(--font-serif);
  font-weight: 350;
  color: var(--terra);
}
.hero-h1 .underline {
  position: relative;
  display: inline-block;
}
.hero-h1 .underline::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.06em;
  height: 0.36em;
  background: var(--sage-3);
  z-index: -1;
  border-radius: 2px;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 28px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.hero-meta-sep { width: 1px; height: 14px; background: var(--line); }

/* hero variant 2 — full bleed */
.hero-fullbleed {
  position: relative;
  min-height: 86vh;
  display: grid;
  align-items: end;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 0 var(--pad);
  margin-top: 24px;
}
.hero-fullbleed .imgph {
  position: absolute; inset: 0;
  border-radius: var(--radius-lg);
}
.hero-fullbleed::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.0) 30%, rgba(0,0,0,.55) 100%);
}
.hero-fullbleed .hero-content {
  position: relative;
  z-index: 1;
  padding: 56px;
  color: #fff;
  max-width: 800px;
}
.hero-fullbleed h1 { color: #fff; }

/* hero variant 3 — split editorial */
.hero-edit {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.hero-edit-top {
  text-align: center;
  padding: clamp(30px, 6vw, 64px) var(--pad);
  border-bottom: 1px solid var(--line);
}
.hero-edit-top h1 {
  font-size: clamp(60px, 11vw, 180px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  font-weight: 320;
}
.hero-edit-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1px;
  background: var(--line);
}
.hero-edit-bottom > * {
  background: var(--bg);
  padding: 36px var(--pad);
}
@media (max-width: 880px) {
  .hero-edit-bottom { grid-template-columns: 1fr; }
}

/* — about — */
.stat {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 84px);
  line-height: 1;
  font-weight: 350;
  letter-spacing: -0.025em;
}
.stat sup {
  font-size: 0.4em;
  vertical-align: top;
  color: var(--terra);
  font-family: var(--font-display);
  font-style: italic;
}

/* — problematique tabs — */
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
  margin-bottom: 36px;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: 0 0 auto;
  padding: 16px 22px;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--ink-3);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  font-family: var(--font-sans);
  white-space: nowrap;
  transition: all .2s;
  margin-bottom: -1px;
}
.tab:hover { color: var(--ink-2); }
.tab.active {
  color: var(--ink);
  border-bottom-color: var(--terra);
}
.tab-num {
  font-family: var(--font-mono);
  font-size: 10px;
  margin-right: 8px;
  color: var(--ink-3);
}

.prob-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (max-width: 720px) {
  .prob-grid { grid-template-columns: 1fr; }
}
.prob-cell {
  background: var(--bg);
  padding: 28px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 12px;
  min-height: 200px;
  transition: background .2s;
}
.prob-cell:hover { background: var(--bg-2); }
.prob-cell-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.1em;
}
.prob-cell-title {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.15;
  font-weight: 420;
  letter-spacing: -0.01em;
}
.prob-cell-desc {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.55;
}

/* — séance steps — */
.steps {
  display: grid;
  gap: 0;
}
.step {
  display: grid;
  grid-template-columns: 80px 1fr 1fr;
  gap: 36px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--terra);
  letter-spacing: 0.12em;
  padding-top: 6px;
}
.step-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.5vw, 32px);
  font-weight: 380;
  line-height: 1.1;
  letter-spacing: -0.015em;
}
.step-desc { color: var(--ink-2); padding-top: 6px; }
@media (max-width: 720px) {
  .step { grid-template-columns: 1fr; gap: 12px; }
}

/* — testimonials — */
.testimonial-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 18px;
  height: 100%;
}
.testimonial-quote {
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.4;
  font-weight: 380;
  color: var(--ink);
  letter-spacing: -0.005em;
  flex: 1;
}
.testimonial-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.testimonial-avatar {
  width: 36px; height: 36px;
  border-radius: 999px;
  background: var(--sage-3);
  display: grid;
  place-items: center;
  color: var(--sage);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14px;
}
.stars {
  color: var(--terra);
  font-size: 13px;
  letter-spacing: 2px;
}

/* — info / contact — */
.info-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
}
@media (max-width: 880px) { .info-grid { grid-template-columns: 1fr; } }

.kv {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
  align-items: start;
}
.kv:last-child { border-bottom: 1px solid var(--line); }
.kv-k {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-top: 3px;
}
.kv-v { color: var(--ink); }

/* — booking widget — */
.booking {
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.booking h3 { color: var(--bg); }
.booking p { color: rgba(240,235,225,.7); }
.booking .btn-primary { background: var(--bg); color: var(--ink); }
.booking .btn-primary:hover { background: var(--terra); color: #fff; }
.booking .btn-ghost { color: var(--bg); border-color: rgba(255,255,255,.18); }
.booking .btn-ghost:hover { background: rgba(255,255,255,.06); }

/* — footer — */
.footer {
  background: var(--ink);
  color: var(--bg);
  padding: clamp(48px, 6vw, 84px) 0 36px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
.footer h4 {
  color: rgba(240,235,225,.5);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 16px;
}
.footer a { color: rgba(240,235,225,.78); font-size: 14px; }
.footer a:hover { color: var(--bg); }
.footer-bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  color: rgba(240,235,225,.45);
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}
.footer-brand-big {
  font-family: var(--font-display);
  font-size: clamp(60px, 12vw, 180px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-weight: 320;
  font-style: italic;
  color: var(--bg);
  padding: 24px 0 12px;
  text-wrap: balance;
}

/* — float / decorative — */
.flourish {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--terra);
}

/* — marquee / values strip — */
.values-strip {
  display: flex;
  gap: 56px;
  align-items: center;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  flex-wrap: wrap;
  justify-content: center;
}
.value-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 400;
  color: var(--ink-2);
  letter-spacing: -0.01em;
}
.value-item .star {
  color: var(--terra);
  font-size: 0.7em;
}

/* — accent square — */
.accent-block {
  border-radius: var(--radius);
  padding: 24px;
  background: var(--sage-4);
  border-left: 0;
  display: grid;
  gap: 10px;
}

/* — anchor offset — */
section[id] { scroll-margin-top: 80px; }

/* — layout grids (définitions CSS pour permettre le responsive) — */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: center;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.hypnose-cards {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.ben-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  align-items: start;
}
.ben-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.prob-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: end;
  margin-bottom: 48px;
}
.testi-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: end;
  margin-bottom: 48px;
}
.testi-pagination {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: flex-end;
}
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* — hamburger button — */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-burger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s cubic-bezier(.22,.61,.36,1), opacity .2s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* — mobile drawer — */
@keyframes drawer-in {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: none; }
}
.nav-drawer {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: var(--bg);
  z-index: 40;
  padding: clamp(76px, 14vw, 96px) var(--pad) clamp(32px, 6vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 16px 56px -16px rgba(43,42,38,.22);
  animation: drawer-in 0.28s cubic-bezier(.22,.61,.36,1) both;
}
.nav-drawer-links {
  display: flex;
  flex-direction: column;
}
.nav-drawer-links a {
  font-family: var(--font-display);
  font-size: clamp(22px, 5.5vw, 36px);
  font-weight: 360;
  letter-spacing: -0.02em;
  color: var(--ink);
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color .2s;
}
.nav-drawer-links a::after {
  content: '→';
  font-family: var(--font-sans);
  font-size: 0.52em;
  color: var(--ink-3);
  transition: transform .2s, color .2s;
}
.nav-drawer-links a:hover { color: var(--terra); }
.nav-drawer-links a:hover::after { transform: translateX(6px); color: var(--terra); }
.nav-drawer-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.nav-drawer-cta .btn { justify-content: center; }

/* — responsive breakpoints — */
@media (max-width: 1080px) {
  .nav-burger { display: flex; }
  .nav-cta .btn-terra { display: none; }
}
@media (max-width: 600px) {
  .nav-cta { display: none; }
}

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-grid .hero-img { aspect-ratio: 16/9; max-height: 380px; }
}
@media (max-width: 768px) {
  .hypnose-cards { grid-template-columns: 1fr; gap: 16px; }
  .ben-grid { grid-template-columns: 1fr; gap: 28px; }
  .prob-head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 32px; }
  .testi-head { grid-template-columns: 1fr; gap: 20px; margin-bottom: 28px; }
  .testi-pagination { justify-content: flex-start; }
  .testi-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { gap: 16px; }
}
@media (max-width: 520px) {
  .testi-grid { grid-template-columns: 1fr; }
  .ben-list { grid-template-columns: 1fr; gap: 20px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 90px 1fr; gap: 10px; }
  .hero-meta { flex-direction: column; align-items: flex-start; gap: 8px; }
  .hero-meta-sep { display: none; }
}

/* — keyframes — */
@keyframes rv-up {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
@keyframes rv-down {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: none; }
}
@keyframes hero-eyebrow {
  from { opacity: 0; transform: translateX(-28px); }
  to   { opacity: 1; transform: none; }
}
@keyframes hero-h1 {
  from { opacity: 0; transform: translateY(60px) scale(0.97); filter: blur(12px); }
  55%  { filter: blur(0); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes hero-img {
  from { opacity: 0; transform: scale(0.93) translateY(28px); }
  to   { opacity: 1; transform: none; }
}
@keyframes footer-brand {
  from { opacity: 0; transform: translateY(72px); filter: blur(10px); }
  50%  { filter: blur(0); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}

/* — nav & hero : animations pures CSS au chargement — */
.nav              { animation: rv-down     0.5s  cubic-bezier(.22,.61,.36,1)   0ms both; }
.hero .eyebrow    { animation: hero-eyebrow 0.7s  cubic-bezier(.22,.61,.36,1)  60ms both; }
.hero h1          { animation: hero-h1      1.1s  cubic-bezier(.16,.86,.36,1) 160ms both; }
.hero .hero-img,
.hero-fullbleed   { animation: hero-img     1.1s  cubic-bezier(.16,.86,.36,1)  80ms both; }
.hero .hero-desc  { animation: rv-up        0.7s  cubic-bezier(.22,.61,.36,1) 380ms both; }
.hero .hero-btns  { animation: rv-up        0.7s  cubic-bezier(.22,.61,.36,1) 460ms both; }
.hero .hero-meta  { animation: rv-up        0.7s  cubic-bezier(.22,.61,.36,1) 560ms both; }
.hero .card-sage  { animation: hero-img     0.75s cubic-bezier(.16,.86,.36,1) 320ms both; }
.hero .card-terra { animation: hero-img     0.75s cubic-bezier(.16,.86,.36,1) 400ms both; }
.hero-edit-bottom > * { animation: rv-up 0.7s cubic-bezier(.22,.61,.36,1) calc(280ms + var(--i, 0) * 90ms) both; }

/* — footer — */

/* Neutralise le système rv sur le container — les lignes animent séparément */
.footer-brand-big.rv         { opacity: 1; transform: none; }
.footer-brand-big.rv.rv-in   { animation: none; }

/* État initial des lignes (invisible avant que rv-in ne soit ajouté au parent) */
.fbb-line {
  display: block;
  opacity: 0;
  transform: translateY(72px) skewY(1.2deg);
  filter: blur(10px);
  will-change: transform, opacity, filter;
}

/* Déclenchement quand le parent reçoit rv-in via l'IntersectionObserver */
.footer-brand-big.rv-in .fbb-line {
  animation: fbb-reveal 1.4s cubic-bezier(.12,.82,.28,1) calc(60ms + var(--i, 0) * 340ms) both;
}

@keyframes fbb-reveal {
  0%  { opacity: 0; transform: translateY(72px) skewY(1.2deg); filter: blur(10px); }
  35% { opacity: 1; filter: blur(0); }
  100%{ opacity: 1; transform: none; filter: blur(0); }
}

.footer-col.rv-in {
  animation: rv-up 0.7s cubic-bezier(.22,.61,.36,1) var(--rv-d, 0ms) both;
}

/* — scroll reveal (sections hors hero) — */
.rv { opacity: 0; transform: translateY(18px); }
.rv.rv-in { animation: rv-up 0.65s cubic-bezier(.22,.61,.36,1) var(--rv-d, 0ms) both; }
/* switch d'onglet / de page */
.rv-enter { animation: rv-up 0.65s cubic-bezier(.22,.61,.36,1) var(--rv-d, 0ms) both; }
