/* ─────────────────────────────────────────────────────────
   Émotivance · Hi-fi design system
   Palette : crème / encre / terracotta / sauge
   Typo    : Special Elite (display) + Geist (sans)
   ───────────────────────────────────────────────────────── */

:root {
  /* Palette — Carbon Black · Dusty Olive · Golden Pollen */
  /* Fond : stone-cream légèrement vert/gris qui équilibre le sage (--accent)
     et fait ressortir le pollen jaune (--accent-2). Plus reposant que l'ancien
     crème jaune, complémentaire des deux accents en même temps. */
  --paper:    #ebe9de;
  --paper-2:  #ddd9c9;
  --paper-3:  #c9c4ad;
  --paper-4:  #b5af96;
  --ink:      #1c2121;
  --ink-2:    #232827;   /* presque ink — gris très foncé, lecture nette */
  --ink-3:    #3a4040;   /* secondaire foncé (avant gris moyen #6b7070) */
  --ink-4:    #5d6362;   /* tertiaire foncé (avant gris clair #a4a8a8) */
  --accent:   #677d61;
  --accent-2: #ffd23f;
  --line:     rgba(28, 33, 33, 0.14);
  --line-2:   rgba(28, 33, 33, 0.08);

  /* Typography */
  --display: 'Special Elite', 'Cormorant Garamond', Georgia, serif;
  --sans:    'Geist', 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mono:    'Geist Mono', 'JetBrains Mono', ui-monospace, monospace;

  /* Type scale */
  /* Type scale — fluide entre 360px et 1320px de viewport.
     Special Elite étant typewriter et lisiblement plus "gros" qu'un serif fin,
     les tailles cibles sont réduites ~12-15% vs l'ancienne échelle Instrument Serif. */
  --t-eyebrow:  clamp(10px, 0.5vw + 9px, 11px);
  --t-body:     clamp(14px, 0.25vw + 13.5px, 15px);
  --t-body-lg:  clamp(15px, 0.5vw + 14px, 16.5px);
  --t-h6:       clamp(14px, 0.4vw + 13px, 16px);
  --t-h5:       clamp(16px, 0.6vw + 15px, 20px);
  --t-h4:       clamp(19px, 0.9vw + 17.5px, 24px);
  --t-h3:       clamp(22px, 1.4vw + 20px, 30px);
  --t-h2:       clamp(28px, 3.2vw + 14px, 48px);
  --t-h1:       clamp(36px, 5vw + 16px, 72px);
  --t-hero:     clamp(44px, 7.5vw + 18px, 104px);

  /* Spacing */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;

  /* Radii */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 16px;
  --r-pill: 999px;

  /* Container */
  --container: 1280px;
  --gutter: 32px;
}

/* ─── Reset ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--paper);        /* fond posé sur html pour laisser passer les blobs derrière le body */
}
body {
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--t-body);
  line-height: 1.5;
  font-feature-settings: "ss01", "cv01", "cv11";
  text-rendering: optimizeLegibility;
  position: relative;              /* crée un contexte de stacking pour le contenu */
  z-index: 1;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
hr { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ─── Typography ──────────────────────────────────────── */
.display {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 0.95;
  color: var(--ink);
}
.display em {
  font-style: italic;
  color: var(--accent);
  font-feature-settings: "ss01";
}
.display.italic { font-style: italic; }

.hero      { font-size: var(--t-hero); }
.h1        { font-size: var(--t-h1); }
.h2        { font-size: var(--t-h2); }
.h3        { font-size: var(--t-h3); }
.h4        { font-size: var(--t-h4); }
.h5        { font-size: var(--t-h5); }
.h6        { font-size: var(--t-h6); }

.body      { font-size: var(--t-body); line-height: 1.55; color: var(--ink-2); }
.body-lg   { font-size: var(--t-body-lg); line-height: 1.55; color: var(--ink-2); }
.body-sm   { font-size: clamp(12px, 0.2vw + 11.5px, 13px); line-height: 1.55; color: var(--ink-3); }
.body-xs   { font-size: clamp(11px, 0.15vw + 10.5px, 12px); line-height: 1.5;  color: var(--ink-3); }

.eyebrow {
  font-family: var(--mono);
  font-size: var(--t-eyebrow);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}
.eyebrow .dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--accent-2);
  margin-right: 8px;
  vertical-align: middle;
  transform: translateY(-1px);
}

/* ─── Layout ──────────────────────────────────────────── */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container-tight { max-width: 960px; margin: 0 auto; padding: 0 var(--gutter); }
.container-text  { max-width: 680px; margin: 0 auto; padding: 0 var(--gutter); }
.row { display: flex; }
.col { display: flex; flex-direction: column; }
.between { justify-content: space-between; }
.center  { align-items: center; }
.middle  { justify-content: center; }
.aend    { align-items: flex-end; }
.astart  { align-items: flex-start; }
.text-center { text-align: center; }
.gap-1 { gap: var(--s-1); }
.gap-2 { gap: var(--s-2); }
.gap-3 { gap: var(--s-3); }
.gap-4 { gap: var(--s-4); }
.gap-5 { gap: var(--s-5); }
.gap-6 { gap: var(--s-6); }
.gap-7 { gap: var(--s-7); }
.gap-8 { gap: var(--s-8); }

/* ─── Header / Nav ────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid var(--line-2);
}
.site-header__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  color: #2e5a54;                /* couleur native du wordmark (fill currentColor) */
  transition: opacity 0.2s ease;
}
.brand:hover { opacity: 0.75; }
.brand__logo {
  height: 28px;
  width: auto;
  display: block;
}
/* Sur fond sombre (CTA `surface-ink`, thème midnight), le wordmark vert (#2e5a54)
   est peu lisible — on l'éclaircit vers la couleur paper via un filter CSS. */
.surface-ink .brand__logo,
[data-theme="midnight"] .brand__logo {
  filter: brightness(0) saturate(100%) invert(93%) sepia(11%) saturate(449%) hue-rotate(348deg) brightness(98%) contrast(92%);
}
@media (max-width: 540px) {
  .brand__logo { height: 22px; }
}
.nav { display: flex; align-items: center; gap: 28px; }
.nav__link {
  font-size: 13.5px;
  color: var(--ink-2);
  font-weight: 450;
  transition: color 0.2s;
  position: relative;
}
.nav__link:hover { color: var(--ink); }
.nav__link.is-active { color: var(--ink); font-weight: 500; }
.nav__link.is-active::after {
  content: "";
  position: absolute;
  bottom: -6px; left: 0; right: 0;
  height: 1px;
  background: var(--accent);
}

/* ─── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border: 1px solid var(--ink);
  background: transparent;
  border-radius: var(--r-pill);
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.005em;
  transition: background 0.2s, color 0.2s, transform 0.15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary {
  background: var(--ink);
  color: var(--paper);
}
.btn--primary:hover { background: var(--ink-2); }
.btn--accent {
  background: var(--accent-2);
  color: var(--ink);
  border-color: var(--accent-2);
}
.btn--accent:hover { background: color-mix(in srgb, var(--accent-2) 88%, black); }
.btn--ghost {
  border-color: transparent;
  padding-left: 6px;
  padding-right: 6px;
}
.btn--ghost:hover { color: var(--accent); }
.btn--lg { padding: 16px 28px; font-size: 14.5px; }
.btn--sm { padding: 8px 16px; font-size: 12px; }
.btn .arrow {
  display: inline-block;
  transition: transform 0.2s;
}
.btn:hover .arrow { transform: translateX(3px); }

/* ─── Pills / chips ───────────────────────────────────── */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--paper);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.pill--accent { background: color-mix(in srgb, var(--accent) 14%, var(--paper)); color: var(--accent); border-color: color-mix(in srgb, var(--accent) 30%, transparent); }
.pill--sage   { background: color-mix(in srgb, var(--accent-2) 14%, var(--paper)); color: var(--accent-2); border-color: color-mix(in srgb, var(--accent-2) 30%, transparent); }
.pill--ink    { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ─── Photo placeholder (signed) ──────────────────────── */
.photo {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--paper-2);
}
.photo--rounded { border-radius: var(--r-lg); }
.photo--soft { border-radius: 50% 48% 52% 50% / 50% 50% 48% 52%; }

/* gradient + subtle pattern for unfilled placeholders */
.photo:not(.photo--filled) {
  background:
    radial-gradient(ellipse at 30% 20%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 55%),
    radial-gradient(ellipse at 70% 80%, color-mix(in srgb, var(--accent-2) 16%, transparent), transparent 60%),
    linear-gradient(135deg, var(--paper-3), var(--paper-2));
}
.photo:not(.photo--filled)::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(28,26,23,0.08) 1px, transparent 1.5px);
  background-size: 12px 12px;
  opacity: 0.4;
}
.photo__caption {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--ink-2);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  border: 1px solid var(--line-2);
  padding: 6px 10px;
  border-radius: var(--r-sm);
  z-index: 1;
  line-height: 1.4;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.photo__caption .arrow {
  color: var(--accent);
  margin-right: 4px;
}

/* ─── Cards / surfaces ────────────────────────────────── */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.3, 1),
              box-shadow 0.25s cubic-bezier(0.2, 0.7, 0.3, 1),
              border-color 0.2s;
}
a.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px -16px rgba(28, 33, 33, 0.18);
  border-color: color-mix(in srgb, var(--ink) 35%, var(--line));
}
[data-theme="midnight"] a.card:hover {
  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.5);
}
.surface-cream  { background: var(--paper-2); }
.surface-sand   { background: var(--paper-3); }
.surface-ink    { background: var(--ink); color: var(--paper); }
.surface-ink .body,
.surface-ink .body-lg,
.surface-ink .body-sm { color: color-mix(in srgb, var(--paper) 75%, transparent); }
.surface-ink .display { color: var(--paper); }
.surface-ink .eyebrow { color: color-mix(in srgb, var(--paper) 65%, transparent); }

/* ─── Sections ────────────────────────────────────────── */
.section {
  padding: var(--s-10) 0;
}
.section--sm { padding: var(--s-9) 0; }
.section--tight { padding: var(--s-8) 0; }

/* ─── Footer ──────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper-2);
  padding: var(--s-9) 0 var(--s-6);
}
.site-footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
}
.site-footer__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.site-footer__bottom {
  margin-top: var(--s-7);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ─── Page transitions / reveal ───────────────────────────
   Le JS (app.js) ajoute la classe `js-ready` sur <html>, puis pose
   `.is-in` sur chaque `.reveal` qui entre dans le viewport (IO) ou qui
   est visible au load (avec un léger stagger). Le filet de sécurité à
   1.2s force `.is-in` partout pour éviter tout flash invisible. */

@media (prefers-reduced-motion: no-preference) {
  .js-ready .reveal {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
    transition:
      opacity      0.85s cubic-bezier(0.16, 1, 0.3, 1),
      transform    0.85s cubic-bezier(0.16, 1, 0.3, 1),
      filter       0.85s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
  }
  .js-ready .reveal.is-in {
    opacity: 1;
    transform: none;
    filter: none;
  }

  /* Variantes : ajouter une de ces classes à côté de .reveal */
  .js-ready .reveal--left   { transform: translate3d(-28px, 0, 0); }
  .js-ready .reveal--right  { transform: translate3d(28px, 0, 0); }
  .js-ready .reveal--scale  { transform: scale(0.96); }
  .js-ready .reveal--blur   { filter: blur(6px); }
  .js-ready .reveal--up-lg  { transform: translate3d(0, 32px, 0); }
  .js-ready .reveal--tilt   { transform: translate3d(0, 24px, 0) rotate(-1.6deg); }
  .js-ready .reveal--zoom   { transform: scale(0.88); filter: blur(4px); }
  .js-ready .reveal--rise   { transform: translate3d(0, 44px, 0); transition-duration: 1.1s; }

  /* Fade-only (sans transform) — utilisé en combo avec .parallax pour éviter
     que reveal et parallax se battent pour la propriété transform. */
  .js-ready .reveal--fade {
    transform: none;
    filter: blur(8px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), filter 1s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .js-ready .reveal--fade.is-in { filter: none; }

  /* Apparition par lignes pour grands titres : on clip + slide-up */
  .js-ready .reveal--mask {
    -webkit-mask-image: linear-gradient(180deg, #000 0 70%, transparent 100%);
            mask-image: linear-gradient(180deg, #000 0 70%, transparent 100%);
    -webkit-mask-size: 100% 200%; mask-size: 100% 200%;
    -webkit-mask-position: 0 100%; mask-position: 0 100%;
    transition:
      opacity   0.85s cubic-bezier(0.16, 1, 0.3, 1),
      transform 0.85s cubic-bezier(0.16, 1, 0.3, 1),
      -webkit-mask-position 1.1s cubic-bezier(0.16, 1, 0.3, 1),
              mask-position 1.1s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .js-ready .reveal--mask.is-in {
    -webkit-mask-position: 0 0; mask-position: 0 0;
  }

  /* ─── Parallax (scroll-driven via JS) ─────────────────
     Le JS pose un `transform: translate3d(...)` inline (priorité sur la cascade)
     pour ne pas se battre avec les transforms des classes .reveal--*.
     Le facteur de profondeur vient de [data-parallax-speed] (0..1). */
  .parallax { will-change: transform; }
  /* Inverse pour effet "le sujet remonte plus vite que le fond" */
  .parallax--rise { --parallax-sign: -1; }
  .parallax--sink { --parallax-sign:  1; }
  /* Rotation lente continue ajoutable aux médaillons */
  .spin-slow { animation: spin-slow 90s linear infinite; }
  @keyframes spin-slow { to { transform: rotate(360deg); } }
}

/* Reduced-motion : aucune parallax, aucun spin */
@media (prefers-reduced-motion: reduce) {
  .parallax { transform: none !important; }
  .spin-slow { animation: none !important; }

  /* Stagger automatique : sur un parent .reveal-group, les enfants
     .reveal s'animent en cascade. Travaille jusqu'à ~8 enfants. */
  .js-ready .reveal-group > .reveal:nth-child(1)        { transition-delay:   0ms; }
  .js-ready .reveal-group > .reveal:nth-child(2)        { transition-delay:  80ms; }
  .js-ready .reveal-group > .reveal:nth-child(3)        { transition-delay: 160ms; }
  .js-ready .reveal-group > .reveal:nth-child(4)        { transition-delay: 240ms; }
  .js-ready .reveal-group > .reveal:nth-child(5)        { transition-delay: 320ms; }
  .js-ready .reveal-group > .reveal:nth-child(6)        { transition-delay: 400ms; }
  .js-ready .reveal-group > .reveal:nth-child(7)        { transition-delay: 480ms; }
  .js-ready .reveal-group > .reveal:nth-child(n+8)      { transition-delay: 560ms; }

  /* Fade global au tout premier chargement de page (body) — discret */
  .js-ready body { animation: page-in 0.6s ease-out both; }
  @keyframes page-in {
    from { opacity: 0; }
    to   { opacity: 1; }
  }
}

/* Pas de movement si l'utilisateur a coché "réduire le mouvement" */
@media (prefers-reduced-motion: reduce) {
  .js-ready .reveal,
  .js-ready .reveal.is-in { opacity: 1; transform: none; filter: none; transition: none; }
}

/* ─── Subtle paper grain ──────────────────────────────── */
.has-grain { position: relative; }
.has-grain::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.1  0 0 0 0 0.1  0 0 0 0 0.1  0 0 0 0.08 0'/></filter><rect width='180' height='180' filter='url(%23n)'/></svg>");
  opacity: 0.4;
  mix-blend-mode: multiply;
  z-index: 0;
}

/* ─── Diagram pieces (used on Approche) ───────────────── */
.snc-orb {
  width: 160px; height: 160px;
  border-radius: 999px;
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.snc-orb__core {
  position: absolute;
  inset: 30%;
  border-radius: 999px;
  opacity: 0.85;
}
.snc-orb__ring {
  position: absolute;
  inset: 12%;
  border-radius: 999px;
  border: 1px solid currentColor;
  opacity: 0.4;
}
.snc-orb__outer {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 1px dashed currentColor;
  opacity: 0.25;
}

/* Cache tout le contenu pendant le chargement initial, sauf le loader.
   Évite le flash de contenu non animé pendant que app.js (defer) charge. */
html.is-loading body > *:not(.page-loader) { visibility: hidden; }

/* ─── Modal légal (mentions / confidentialité) ─────────
   Injecté à la demande par app.js. Backdrop avec blur, panel scrollable,
   focus trap simple via tabindex, fermeture par bouton/ESC/clic backdrop. */
.legal-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.legal-modal.is-open { opacity: 1; visibility: visible; }
.legal-modal__backdrop {
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--ink) 28%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}
.legal-modal__panel {
  position: relative;
  max-width: 720px;
  width: 100%;
  max-height: min(86vh, 800px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(28,33,33,0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(12px) scale(0.98);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.legal-modal.is-open .legal-modal__panel { transform: none; }
.legal-modal__close {
  position: absolute;
  top: 14px; right: 14px;
  width: 36px; height: 36px;
  border-radius: 999px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  cursor: pointer;
  font: 400 22px/1 var(--display);
  color: var(--ink-2);
  transition: background 0.2s ease, color 0.2s ease;
  z-index: 2;
}
.legal-modal__close:hover { background: var(--paper-3); color: var(--ink); }
.legal-modal__head {
  padding: 28px 30px 16px;
  border-bottom: 1px solid var(--line-2);
}
.legal-modal__eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 6px;
}
.legal-modal__title {
  font-family: var(--display);
  font-size: clamp(24px, 2.6vw + 16px, 34px);
  line-height: 1.1;
  margin: 0;
  color: var(--ink);
}
.legal-modal__body {
  padding: 22px 30px 30px;
  overflow-y: auto;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-2);
}
.legal-modal__body h2 {
  font-family: var(--display);
  font-size: 18px;
  margin: 22px 0 8px;
  color: var(--ink);
  font-weight: 600;
}
.legal-modal__body h2:first-child { margin-top: 0; }
.legal-modal__body h3 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--mono);
  color: var(--ink-3);
  margin: 18px 0 6px;
}
.legal-modal__body p   { margin: 0 0 12px; }
.legal-modal__body ul  { margin: 0 0 12px; padding-left: 20px; }
.legal-modal__body li  { margin: 4px 0; }
.legal-modal__body a   { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.legal-modal__body strong { color: var(--ink); font-weight: 500; }
.legal-modal__skel {
  height: 12px; border-radius: 6px;
  background: linear-gradient(90deg, var(--paper-2), var(--paper-3), var(--paper-2));
  background-size: 200% 100%;
  animation: legal-shimmer 1.4s ease-in-out infinite;
  margin: 0 0 10px;
}
.legal-modal__skel.is-short { width: 60%; }
@keyframes legal-shimmer { from { background-position: 200% 0 } to { background-position: -200% 0 } }
body.legal-open { overflow: hidden; }

@media (max-width: 600px) {
  .legal-modal { padding: 0; }
  .legal-modal__panel { border-radius: 0; max-height: 100vh; height: 100vh; }
}

/* ─── Page loader (public site) — réutilise le motif admin ─
   Affiché tant que <html> a la classe `is-loading`. Retiré par
   cms-loader.js quand le contenu CMS est chargé, ou par un timeout
   de sécurité dans app.js. */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 38%),
    var(--paper);
  opacity: 1;
  visibility: visible;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}
html:not(.is-loading) .page-loader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.page-loader__inner {
  display: grid;
  place-items: center;
  gap: 14px;
  transform: translateY(-1vh);
}
.page-loader__spinner {
  width: 112px;
  height: 112px;
  filter: url(#em-pl-goo);
}
.page-loader__stop-1 { stop-color: var(--accent); }
.page-loader__stop-2 { stop-color: var(--accent-2); }
.page-loader__half {
  animation: emPlSpin 10s infinite linear;
  stroke-dasharray: 180 800;
  fill: none;
  stroke: url(#em-pl-gradient);
  stroke-width: 22;
  stroke-linecap: round;
}
.page-loader__dash {
  animation: emPlSpin 3s infinite linear;
  stroke-dasharray: 26 54;
  fill: none;
  stroke: url(#em-pl-gradient);
  stroke-width: 22;
  stroke-linecap: round;
}
.page-loader__label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
@keyframes emPlSpin {
  from { stroke-dashoffset: 0; }
  to   { stroke-dashoffset: -403px; }
}
@media (prefers-reduced-motion: reduce) {
  .page-loader__half,
  .page-loader__dash { animation-duration: 18s; }
}

/* ─── Burger menu mobile + drawer plein écran ──────────
   Inspiré du composant menu-vertical (flèche qui glisse depuis la gauche
   au hover/focus, label qui se décale, easing soyeux). Pur CSS, vanilla. */
.nav-burger {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  position: relative;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  border-radius: var(--r-pill);
  transition: background 0.2s ease;
}
.nav-burger:hover,
.nav-burger:focus-visible {
  background: color-mix(in srgb, var(--ink) 7%, transparent);
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 1.6px;
  background: var(--ink);
  border-radius: 999px;
  transition:
    transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.3s ease,
    width 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.3s ease;
  transform-origin: center;
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; width: 4px; transform: scaleX(0); }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Drawer plein écran — injecté par app.js comme premier enfant de <body> */
.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 1000;
  visibility: hidden;
  pointer-events: none;
}
.nav-drawer.is-open { visibility: visible; pointer-events: auto; }
.nav-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--ink) 14%, transparent);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  opacity: 0;
  transition: opacity 0.26s ease;
}
.nav-drawer.is-open .nav-drawer__backdrop { opacity: 1; }
.nav-drawer__panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: max(76px, calc(env(safe-area-inset-top) + 48px)) 32px 32px;
  transform: translateY(-100%);
  transition: transform 0.34s cubic-bezier(0.16, 1, 0.3, 1);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 8%, transparent), transparent 60%),
    repeating-linear-gradient(0deg, rgba(28,33,33,.025) 0 1px, transparent 1px 18px),
    var(--paper);
  overflow-y: auto;
  outline: none;
}
.nav-drawer.is-open .nav-drawer__panel { transform: translateY(0); }
.nav-drawer__close {
  position: absolute;
  top: 18px; right: 22px;
  width: 44px; height: 44px;
  background: transparent;
  border: 0;
  color: var(--ink);
  font: 400 28px/1 var(--display);
  cursor: pointer;
  display: grid;
  place-items: center;
  border-radius: 999px;
  transition: background 0.2s ease;
}
.nav-drawer__close:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.nav-drawer__list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px 8px;
}
.nav-drawer__link {
  display: flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: var(--ink);
  cursor: pointer;
  overflow: visible;
  position: relative;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-drawer__link:focus-visible {
  outline: 1px solid color-mix(in srgb, var(--accent) 72%, transparent);
  outline-offset: 8px;
  border-radius: 2px;
}
.nav-drawer.is-open .nav-drawer__link {
  opacity: 1;
  transform: none;
}
/* Stagger d'entrée : chaque lien arrive en cascade après l'ouverture du panel */
.nav-drawer.is-open .nav-drawer__link:nth-child(1) { transition-delay: 0.08s; }
.nav-drawer.is-open .nav-drawer__link:nth-child(2) { transition-delay: 0.13s; }
.nav-drawer.is-open .nav-drawer__link:nth-child(3) { transition-delay: 0.18s; }
.nav-drawer.is-open .nav-drawer__link:nth-child(4) { transition-delay: 0.23s; }
.nav-drawer.is-open .nav-drawer__link:nth-child(5) { transition-delay: 0.28s; }

.nav-drawer__arrow {
  display: inline-flex;
  width: 1.1em;
  flex-shrink: 0;
  font-family: var(--display);
  color: var(--accent);
  opacity: 0;
  transform: translateX(-100%);
  transition:
    transform 0.42s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.42s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-drawer__label {
  font-family: var(--display);
  font-size: clamp(34px, 8.2vw, 52px);
  line-height: 1;
  letter-spacing: -0.01em;
  transform: translateX(0);
  transition:
    transform 0.42s cubic-bezier(0.16, 1, 0.3, 1),
    color 0.42s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-drawer__link:hover  .nav-drawer__arrow,
.nav-drawer__link:focus  .nav-drawer__arrow,
.nav-drawer__link.is-active .nav-drawer__arrow {
  transform: translateX(0);
  opacity: 1;
}
.nav-drawer__link:hover  .nav-drawer__label,
.nav-drawer__link:focus  .nav-drawer__label,
.nav-drawer__link.is-active .nav-drawer__label {
  transform: translateX(0.08em);
  color: var(--accent);
}
.nav-drawer__footer {
  margin-top: auto;
  padding: 24px 8px 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-2);
}
.nav-drawer__footer a { color: var(--ink); text-decoration: none; font-weight: 500; }

/* Body lock quand drawer ouvert */
body.nav-locked { overflow: hidden; }

/* ── Bascule : burger visible / nav cachée sous 900px (large mobile + tablette) */
@media (max-width: 900px) {
  .nav { display: none; }
  .nav-burger { display: inline-flex; }
  /* Compactage CTA principal sur mobile pour laisser place au burger */
  .site-header .btn--primary.btn--sm { padding: 8px 12px; font-size: 12px; }
  .site-header .btn--primary.btn--sm .arrow { display: none; }
}
@media (max-width: 480px) {
  .site-header .btn--primary.btn--sm { display: none; }
  .nav-drawer__panel { padding-left: 24px; padding-right: 24px; }
  .nav-drawer__list { gap: 16px; padding-left: 0; padding-right: 0; }
  .nav-drawer__label { font-size: clamp(32px, 9.6vw, 42px); }
}
@media (prefers-reduced-motion: reduce) {
  .nav-drawer__panel,
  .nav-drawer__link,
  .nav-drawer__arrow,
  .nav-drawer__label { transition-duration: 0.1s; }
}

/* ── Patches responsive ciblés : neutralise les largeurs rigides imposées
   en inline style sur certains éléments, qui causent du scroll horizontal
   en dessous de leur min-width sur petit écran. */
@media (max-width: 768px) {
  /* Formulaire de booking : 480px forcés → fluide */
  #booking-form[style*="min-width: 480px"] { min-width: 0 !important; width: 100%; }
  /* Photos portrait (Approche · La praticienne, Offres) : 380/420px → 100% */
  .photo[style*="flex: 0 0 380px"],
  .photo[style*="flex: 0 0 420px"] {
    flex: 1 1 auto !important;
    width: 100% !important;
    max-width: 480px;
    margin: 0 auto;
  }
  /* Section sticky-left du contact : retire sticky pour permettre le scroll */
  .container.row.gap-8 > .col[style*="position: sticky"] {
    position: static !important;
    max-width: 100% !important;
  }
  /* Container row.gap-8 doit empiler sur mobile */
  .container.row.gap-8 { gap: 32px !important; }
}

/* ─── Background blobs (taches organiques ultra-lentes) ─
   Injectés en JS comme premiers enfants de <body>. Restent fixés en arrière-plan,
   ne capturent pas les events, et s'effacent en prefers-reduced-motion. */
.bg-blobs {
  position: fixed;
  inset: 0;
  z-index: 0;            /* derrière le contenu (body > * a z-index 1 via body) */
  pointer-events: none;
  overflow: hidden;
}
.bg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0.55;
  mix-blend-mode: multiply;  /* tons doux sur le crème, pas de halo flashy */
  transform-origin: 50% 50%;
  will-change: transform, border-radius;
}
.bg-blob--1 {
  width: 46vmax; height: 46vmax;
  background: var(--accent);                       /* sauge */
  top: -14%; left: -12%;
  animation: blob-drift-a 52s ease-in-out infinite alternate;
}
.bg-blob--2 {
  width: 52vmax; height: 52vmax;
  background: var(--accent-2);                     /* pollen */
  bottom: -18%; right: -14%;
  animation: blob-drift-b 64s ease-in-out infinite alternate;
  opacity: 0.4;
}
.bg-blob--3 {
  width: 38vmax; height: 38vmax;
  background: #e3a987;                             /* abricot soft */
  top: 38%; left: 48%;
  animation: blob-drift-c 78s ease-in-out infinite alternate;
  opacity: 0.45;
}

@keyframes blob-drift-a {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
    border-radius: 58% 42% 55% 45% / 50% 60% 40% 50%;
  }
  33% {
    transform: translate3d(8vw, 6vh, 0) rotate(40deg) scale(1.08);
    border-radius: 42% 58% 30% 70% / 65% 35% 65% 35%;
  }
  66% {
    transform: translate3d(-4vw, 9vh, 0) rotate(90deg) scale(0.94);
    border-radius: 70% 30% 50% 50% / 40% 60% 40% 60%;
  }
  100% {
    transform: translate3d(6vw, -3vh, 0) rotate(140deg) scale(1.04);
    border-radius: 50% 50% 65% 35% / 45% 55% 45% 55%;
  }
}
@keyframes blob-drift-b {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
    border-radius: 65% 35% 50% 50% / 50% 65% 35% 50%;
  }
  40% {
    transform: translate3d(-9vw, -7vh, 0) rotate(-60deg) scale(1.12);
    border-radius: 30% 70% 65% 35% / 40% 50% 50% 60%;
  }
  80% {
    transform: translate3d(-2vw, -12vh, 0) rotate(-110deg) scale(0.96);
    border-radius: 55% 45% 35% 65% / 60% 40% 60% 40%;
  }
  100% {
    transform: translate3d(-6vw, -4vh, 0) rotate(-160deg) scale(1.06);
    border-radius: 60% 40% 60% 40% / 35% 55% 45% 65%;
  }
}
@keyframes blob-drift-c {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
    border-radius: 50% 50% 60% 40% / 55% 45% 55% 45%;
  }
  50% {
    transform: translate3d(-7vw, 5vh, 0) rotate(80deg) scale(1.15);
    border-radius: 40% 60% 30% 70% / 60% 40% 60% 40%;
  }
  100% {
    transform: translate3d(5vw, -6vh, 0) rotate(150deg) scale(0.92);
    border-radius: 65% 35% 55% 45% / 50% 50% 50% 50%;
  }
}

/* Reduced-motion : on garde la teinte de fond, on coupe le mouvement. */
@media (prefers-reduced-motion: reduce) {
  .bg-blob { animation: none !important; }
}

/* Pages qui ne veulent pas des blobs : <body data-no-blobs="true"> ou .no-blobs sur html */
[data-no-blobs="true"] .bg-blobs,
.no-blobs .bg-blobs { display: none; }

/* ─── Carrousel témoignages (home · auto-slide) ──────── */
.testimonials {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}
.testimonials__track {
  position: relative;
  /* La hauteur est mesurée par JS et appliquée en inline-style sur le track
     pour éviter le saut de layout entre témoignages de longueurs différentes. */
  min-height: 220px;
  display: grid;
}
.testimonial {
  grid-column: 1; grid-row: 1;
  display: flex; flex-direction: column;
  align-items: center; gap: 18px;
  padding: 0 8px;
  opacity: 0;
  transform: translateY(8px);
  visibility: hidden;
  transition:
    opacity   0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0s linear 0.7s;
}
.testimonial.is-on {
  opacity: 1;
  transform: none;
  visibility: visible;
  transition:
    opacity   0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.testimonial blockquote {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(20px, 1.8vw + 12px, 28px);
  line-height: 1.35;
  color: var(--ink);
  max-width: 820px;
  margin: 0;
  text-align: center;
  letter-spacing: -0.01em;
}
.testimonial__author {
  display: flex; align-items: center; gap: 12px;
  margin-top: 6px;
}
.testimonial__avatar {
  width: 44px; height: 44px; border-radius: 999px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 40%, var(--paper)), var(--paper-2));
  border: 1px solid var(--line);
  flex: 0 0 44px;
}
.testimonial__info { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.testimonial__name { font-size: 13.5px; color: var(--ink); font-weight: 500; }
.testimonial__meta { font-size: 12px; color: var(--ink-3); }

/* Pagination — dots cliquables sous le carrousel */
.testimonials__dots {
  display: flex; gap: 8px; justify-content: center;
  margin-top: 28px;
}
.testimonial-dot {
  width: 8px; height: 8px; padding: 0;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--ink-2) 35%, transparent);
  background: transparent;
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.testimonial-dot:hover  { background: color-mix(in srgb, var(--ink-2) 20%, transparent); }
.testimonial-dot.is-on  {
  background: var(--ink);
  border-color: var(--ink);
  transform: scale(1.2);
}

/* Barre de progression discrète sous le track (autoplay indicator) */
.testimonials__progress {
  position: absolute;
  left: 12%; right: 12%; bottom: -8px;
  height: 1px;
  background: color-mix(in srgb, var(--ink-2) 12%, transparent);
  border-radius: 999px;
  overflow: hidden;
  pointer-events: none;
}
.testimonials__progress::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--ink);
  transform-origin: left;
  transform: scaleX(0);
  animation: testi-progress var(--testi-duration, 6s) linear infinite;
}
.testimonials.is-paused .testimonials__progress::after { animation-play-state: paused; }
.testimonials[data-paged] .testimonials__progress::after { animation: none; transform: scaleX(0); }
@keyframes testi-progress { to { transform: scaleX(1); } }

@media (prefers-reduced-motion: reduce) {
  .testimonial { transition: opacity 0.2s ease; transform: none; }
  .testimonials__progress::after { animation: none; }
}

/* ─── Nervous-System states (Approche · 3 états) ──────── */
.ns-states {
  --ns-card-w: 320px;
  position: relative;
}

/* Ligne de circulation derrière les cartes — visible en desktop */
.ns-flow {
  position: absolute;
  inset: 110px 6% auto 6%;
  height: 80px;
  pointer-events: none;
  opacity: 0;
  z-index: -1;
}
.ns-flow path {
  stroke: var(--ink-3);
  stroke-width: 1;
  fill: none;
  stroke-dasharray: 4 6;
  animation: ns-flow-dash 18s linear infinite;
}
@keyframes ns-flow-dash { to { stroke-dashoffset: -100; } }

.ns-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, var(--ns-card-w)));
  gap: 16px;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.ns-state {
  --state-color: var(--accent);
  appearance: none;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px 22px 22px;
  text-align: center;
  cursor: pointer;
  font: inherit;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  transition:
    transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.3s ease,
    background 0.3s ease;
}
.ns-state:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(28,33,33,0.08); border-color: var(--state-color); }
.ns-state:focus-visible { outline: 2px solid var(--state-color); outline-offset: 4px; }
.ns-state.is-active {
  transform: translateY(-6px);
  box-shadow: 0 22px 50px rgba(28,33,33,0.12);
  border-color: var(--state-color);
  background: color-mix(in srgb, var(--state-color) 6%, var(--paper));
}

/* Orbe — coeur + ring + souffle */
.ns-orb {
  position: relative;
  width: 96px; height: 96px;
  display: grid; place-items: center;
}
.ns-orb__core {
  width: 56px; height: 56px;
  border-radius: 999px;
  background: var(--state-color);
  display: grid; place-items: center;
  font-family: var(--display);
  font-size: 22px;
  color: var(--paper);
  position: relative; z-index: 2;
  box-shadow: 0 6px 18px color-mix(in srgb, var(--state-color) 35%, transparent);
}
.ns-orb__ring,
.ns-orb__halo {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--state-color) 55%, transparent);
}
.ns-orb__halo {
  border-style: dashed;
  border-color: color-mix(in srgb, var(--state-color) 30%, transparent);
  inset: -10px;
}
/* Pulse "respiratoire" — 4s, easing doux. La carte active respire plus fort. */
.ns-state .ns-orb__ring  { animation: ns-breathe 4s ease-in-out infinite; }
.ns-state .ns-orb__halo  { animation: ns-breathe 4s ease-in-out infinite; animation-delay: -1.2s; opacity: 0.7; }
.ns-state.is-active .ns-orb__ring,
.ns-state.is-active .ns-orb__halo { animation-duration: 3.4s; }
@keyframes ns-breathe {
  0%, 100% { transform: scale(1);    opacity: 0.55; }
  50%      { transform: scale(1.18); opacity: 0.18; }
}

.ns-state__title {
  font-family: var(--display);
  font-size: var(--t-h4);
  line-height: 1;
  letter-spacing: -0.01em;
}
.ns-state__lede {
  font-size: 13.5px; line-height: 1.55;
  color: var(--ink-2);
  margin: 0;
  max-width: 26ch;
}

/* Signaux corporels — masqués, révélés au survol/active */
.ns-signals {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px;
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height 0.45s ease, opacity 0.35s ease, margin 0.45s ease;
  margin: 0;
}
@media (hover: hover) and (pointer: fine) {
  .ns-state:hover .ns-signals { max-height: 80px; opacity: 1; margin-top: 2px; }
}
.ns-state:focus-visible .ns-signals { max-height: 80px; opacity: 1; margin-top: 2px; }
.ns-signal {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: var(--ink-2);
  background: color-mix(in srgb, var(--state-color) 12%, transparent);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--state-color) 25%, transparent);
}

.ns-state__pill {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

/* Bandeau "comment revenir vers la sécurité" qui change selon l'état actif */
.ns-back {
  margin-top: 28px;
  display: flex; align-items: center; gap: 14px;
  padding: 16px 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  max-width: 720px; margin-left: auto; margin-right: auto;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.ns-back__bullet {
  flex: 0 0 10px; width: 10px; height: 10px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 18%, transparent);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.ns-back__text {
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.5;
  margin: 0;
}
.ns-back__text strong { color: var(--ink); font-weight: 500; }

/* Responsive */
@media (max-width: 900px) {
  .ns-cards { grid-template-columns: 1fr; gap: 12px; }
  .ns-flow  { display: none; }
  .ns-state { padding: 22px 20px; }
  .ns-orb   { width: 80px; height: 80px; }
  .ns-orb__core { width: 48px; height: 48px; font-size: 19px; }
  .ns-back  { border-radius: 16px; padding: 14px 16px; }
}

/* Reduced motion : on coupe les animations */
@media (prefers-reduced-motion: reduce) {
  .ns-flow path,
  .ns-state .ns-orb__ring,
  .ns-state .ns-orb__halo { animation: none; }
}

/* ─── Form fields ─────────────────────────────────────── */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field__label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.field__input,
.field__textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--paper);
  font: inherit;
  color: var(--ink);
  transition: border-color 0.2s, background 0.2s;
}
.field__input::placeholder,
.field__textarea::placeholder {
  color: var(--ink-4);
}
.field__input:focus,
.field__textarea:focus {
  outline: none;
  border-color: var(--ink);
  background: var(--paper);
}
.field__textarea { min-height: 140px; resize: vertical; }

/* Option chips (booking) */
.optchip {
  flex: 1;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--paper);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s, background 0.2s;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.optchip:hover { border-color: var(--ink-3); }
.optchip.is-on { border-color: var(--ink); background: var(--paper-2); }
.optchip__t { font-weight: 500; font-size: 14px; }
.optchip__d { font-size: 12px; color: var(--ink-3); }

/* Time slot */
.slot {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--paper);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.slot:hover { border-color: var(--ink-3); }
.slot.is-on {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--paper);
}

/* Day picker */
.day {
  flex: 1;
  padding: 12px 6px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--paper);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.day:hover { border-color: var(--ink-3); }
.day.is-on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.day__dow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.day.is-on .day__dow { color: color-mix(in srgb, var(--paper) 70%, transparent); }
.day__n { font-family: var(--display); font-size: 22px; line-height: 1; margin-top: 4px; }
.day.is-on .day__n { color: var(--paper); }
.day:disabled {
  cursor: not-allowed;
  pointer-events: none;
}

.booking-week-controls {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.week-btn {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--paper);
  color: var(--ink);
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.week-btn:hover {
  border-color: var(--ink-3);
  transform: translateY(-1px);
}
.week-btn:disabled {
  opacity: 0.34;
  cursor: not-allowed;
  transform: none;
}

/* ─── Article cards ───────────────────────────────────── */
.article-card { display: flex; flex-direction: column; gap: 14px; transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.3, 1); }
a.article-card:hover { transform: translateY(-2px); }
.article-card .photo {
  aspect-ratio: 4 / 3;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.3, 1);
}
a.article-card:hover .photo {
  transform: scale(1.02);
}
.article-card__title {
  font-family: var(--display);
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
  transition: color 0.2s;
}
.article-card:hover .article-card__title { color: var(--accent); }
.article-card__meta { font-size: 12px; color: var(--ink-3); }
.home-journal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.home-journal-card {
  min-width: 0;
}
.home-journal-card__cover {
  background-position: center;
  background-size: cover;
}
.home-journal-card__excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}
@media (max-width: 980px) {
  .home-journal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .home-journal-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ─── Hover tactility : photos & cards ───────────────────
   Reserve aux curseurs precis et aux utilisateurs qui acceptent le mouvement. */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .photo {
    transition:
      transform 420ms cubic-bezier(0.16, 1, 0.3, 1),
      box-shadow 420ms cubic-bezier(0.16, 1, 0.3, 1);
  }
  .photo::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(120deg, transparent 18%, rgba(255,255,255,0.13) 46%, transparent 68%);
    opacity: 0;
    transform: translateX(-22%);
    transition: opacity 320ms ease, transform 560ms cubic-bezier(0.16, 1, 0.3, 1);
  }
  .photo:hover,
  a.card:hover .photo {
    transform: translateY(-2px) scale(1.008);
    box-shadow: 0 18px 42px -24px rgba(28, 33, 33, 0.34);
  }
  .js-ready .photo.reveal.is-in:hover {
    transform: translateY(-2px) scale(1.008);
  }
  .photo:hover::after,
  a.card:hover .photo::after {
    opacity: 1;
    transform: translateX(18%);
  }
  .photo__caption {
    transition:
      transform 320ms cubic-bezier(0.16, 1, 0.3, 1),
      background 260ms ease,
      border-color 260ms ease;
  }
  .photo:hover .photo__caption,
  a.card:hover .photo__caption {
    transform: translateY(-2px);
    background: color-mix(in srgb, var(--paper) 97%, transparent);
    border-color: color-mix(in srgb, var(--accent) 26%, var(--line-2));
  }

  .card:not(form),
  .dim-card,
  .method-card {
    transition:
      transform 320ms cubic-bezier(0.16, 1, 0.3, 1),
      box-shadow 320ms cubic-bezier(0.16, 1, 0.3, 1),
      border-color 240ms ease,
      background-color 240ms ease;
  }
  .card:not(form):hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--accent) 30%, var(--line));
    box-shadow: 0 16px 42px -25px rgba(28, 33, 33, 0.3);
  }
  .js-ready .card.reveal.is-in:not(form):hover {
    transform: translateY(-3px);
  }
  .dim-card:hover {
    background: color-mix(in srgb, var(--accent) 4%, transparent);
    transform: translateY(-2px);
  }
  .method-card:hover {
    transform: translateX(4px);
  }
  a.article-card:hover .photo {
    transform: translateY(-2px) scale(1.02);
  }
}

/* ─── Quote / pull-quote ──────────────────────────────── */
.pullquote {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.pullquote .mark {
  display: block;
  font-family: var(--display);
  font-size: clamp(48px, 5vw + 16px, 72px);
  line-height: 0.6;
  color: var(--accent);
  margin-bottom: 8px;
}

/* ─── Marquee / signature line ────────────────────────── */
.divider-mark {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--ink-3);
}
.divider-mark::before,
.divider-mark::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* ─── Tweaks panel-related overrides (palette switch) ── */
[data-theme="pollen"] {
  --paper:    #ebe9de;
  --paper-2:  #ddd9c9;
  --paper-3:  #c9c4ad;
  --ink:      #1c2121;
  --accent:   #677d61;
  --accent-2: #ffd23f;
}
[data-theme="midnight"] {
  --paper:    #1c2121;
  --paper-2:  #252b2b;
  --paper-3:  #2f3636;
  --paper-4:  #3a4141;
  --ink:      #f4ede0;
  --ink-2:    #d4cdbf;
  --ink-3:    #9a948a;
  --ink-4:    #6a655e;
  --accent:   #8ba582;
  --accent-2: #ffd23f;
  --line:     rgba(244, 237, 224, 0.12);
  --line-2:   rgba(244, 237, 224, 0.06);
}
[data-theme="midnight"] .surface-cream { background: var(--paper-2); }
[data-theme="midnight"] .surface-sand  { background: var(--paper-3); }
[data-theme="midnight"] .surface-ink   { background: #0e1212; color: var(--ink); }
[data-theme="midnight"] .site-header {
  background: color-mix(in srgb, var(--paper) 90%, transparent);
}
[data-theme="midnight"] .card { background: var(--paper-2); border-color: var(--line); }
[data-theme="midnight"] .btn { border-color: var(--ink); }
[data-theme="midnight"] .btn--primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
[data-theme="midnight"] .btn--primary:hover { background: var(--ink-2); }
[data-theme="midnight"] .pill { background: var(--paper-2); color: var(--ink-2); border-color: var(--line); }
[data-theme="midnight"] .pill--ink { background: var(--ink); color: var(--paper); border-color: var(--ink); }
[data-theme="midnight"] .field__input,
[data-theme="midnight"] .field__textarea { background: var(--paper-2); border-color: var(--line); color: var(--ink); }
[data-theme="midnight"] .field__input::placeholder,
[data-theme="midnight"] .field__textarea::placeholder { color: var(--ink-4); }
[data-theme="midnight"] .optchip { background: var(--paper-2); border-color: var(--line); }
[data-theme="midnight"] .optchip.is-on { background: var(--paper-3); border-color: var(--ink); }
[data-theme="midnight"] .day { background: var(--paper-2); border-color: var(--line); }
[data-theme="midnight"] .day.is-on { background: var(--ink); color: var(--paper); }
[data-theme="midnight"] .day.is-on .day__n { color: var(--paper); }
[data-theme="midnight"] .slot { background: var(--paper-2); border-color: var(--line); color: var(--ink); }
[data-theme="midnight"] .photo:not(.photo--filled) {
  background:
    radial-gradient(ellipse at 30% 20%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 55%),
    radial-gradient(ellipse at 70% 80%, color-mix(in srgb, var(--accent-2) 18%, transparent), transparent 60%),
    linear-gradient(135deg, var(--paper-2), var(--paper-3));
}
[data-theme="midnight"] .photo:not(.photo--filled)::before {
  background-image: radial-gradient(circle at 1px 1px, rgba(244,237,224,0.08) 1px, transparent 1.5px);
}
[data-theme="midnight"] .photo__caption {
  background: color-mix(in srgb, var(--paper-2) 92%, transparent);
  color: var(--ink-2);
  border-color: var(--line);
}
[data-theme="midnight"] [data-faq] { color: var(--ink); }
[data-theme="midnight"] [data-faq] .plus { color: var(--ink-3); }
[data-theme="warm"] {
  --paper:    #f6f3ec;
  --paper-2:  #ece7dc;
  --paper-3:  #ddd4c2;
  --ink:      #1c1a17;
  --accent:   #c96442;
  --accent-2: #6d8569;
}

[data-density="airy"]  { --s-7: 56px; --s-8: 80px; --s-9: 112px; --s-10: 144px; }
[data-density="cozy"]  { --s-7: 48px; --s-8: 64px; --s-9: 96px;  --s-10: 128px; }
[data-density="dense"] { --s-7: 36px; --s-8: 52px; --s-9: 72px;  --s-10: 96px;  }

/* ─── Responsive ─────────────────────────────────────────
   Tablet & phone adjustments. The hi-fi layout was tuned
   for desktop first; below 980px we collapse multi-column
   sections to single column, shrink type, drop sticky nav. */

@media (max-width: 1024px) {
  :root {
    --gutter: 24px;
    --t-h1: 64px;
    --t-h2: 44px;
    --t-h3: 30px;
    --s-10: 96px;
    --s-9: 72px;
  }
}

@media (max-width: 820px) {
  :root {
    --gutter: 20px;
    --t-hero: 80px;
    --t-h1: 52px;
    --t-h2: 36px;
    --t-h3: 26px;
    --t-h4: 22px;
    --t-body-lg: 16px;
    --s-10: 72px;
    --s-9: 56px;
    --s-8: 44px;
  }

  /* Header: hide nav links, keep brand + CTA */
  .site-header__inner { padding: 14px var(--gutter); gap: 12px; }
  .nav { display: none; }

  /* Stack all horizontal rows to vertical */
  .row { flex-wrap: wrap; }
  .row.gap-7 > *, .row.gap-8 > * { flex: 1 1 100% !important; }
  .row.gap-6 > * { flex: 1 1 100% !important; }

  /* Photo aspect ratios get a sane floor on mobile */
  .photo[style*="aspect-ratio: 21/9"] { aspect-ratio: 16/9 !important; }
  .photo[style*="flex: 0 0 380px"],
  .photo[style*="flex: 0 0 420px"],
  .photo[style*="flex: 0 0 620px"] {
    flex: 1 1 100% !important;
    aspect-ratio: 4/3 !important;
  }

  /* Card padding */
  .card { padding: 24px; }
  .section { padding: var(--s-9) 0; }
  .section--sm { padding: var(--s-8) 0; }

  /* SNC diagram: stack orbs full width */
  .snc-orb { width: 120px; height: 120px; }
  body[data-screen-label="02 Approche"] section > div.container > .row.gap-6 {
    gap: 32px !important;
  }
  body[data-screen-label="02 Approche"] .snc-orb { margin-bottom: 4px; }

  /* 4-column dimension grid → 2 columns then 1 */
  .row[style*="border-top: 1px solid var(--line)"][style*="border-bottom: 1px solid var(--line)"] {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    border: 1px solid var(--line) !important;
    border-radius: var(--r-lg);
  }
  .row[style*="border-top: 1px solid var(--line)"][style*="border-bottom: 1px solid var(--line)"] > article {
    border-right: none !important;
    border-bottom: 1px solid var(--line) !important;
    padding: 28px 20px !important;
  }
  /* Last row of the 2-col grid loses its bottom border */
  .row[style*="border-top: 1px solid var(--line)"][style*="border-bottom: 1px solid var(--line)"] > article:nth-last-child(-n+2) {
    border-bottom: none !important;
  }

  /* Footer: stack to 2 columns */
  .site-footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .site-footer__bottom { flex-wrap: wrap; gap: 16px; }

  /* Booking page — sticky-left becomes static, form stacks below */
  body[data-screen-label="05 Contact"] .col[style*="sticky"] {
    position: static !important;
    max-width: 100% !important;
  }
  body[data-screen-label="05 Contact"] form[class*="card"] {
    min-width: 0 !important;
  }

  /* Buttons: full width on mobile inside hero CTAs */
  .row.gap-3 > .btn--lg { flex: 1; justify-content: center; }

  /* Big numbers (parcours, approche) */
  .display[style*="font-size: 96px"] { font-size: 56px !important; }
  .display[style*="font-size: 80px"] { font-size: 48px !important; }

  /* Approche — numbered items collapse */
  body[data-screen-label="02 Approche"] article.row {
    flex-direction: column;
    gap: 16px !important;
  }
  body[data-screen-label="02 Approche"] article.row > div[style*="flex: 0 0 140px"] {
    flex: 0 0 auto !important;
  }

  /* Booking grid: full width chips */
  .optchip { padding: 12px 14px; }
  .day { padding: 10px 4px; }
  .day__n { font-size: 18px; }

  /* Hero specials */
  body[data-screen-label="01 Accueil"] .hero { font-size: 72px !important; }

  /* Pullquote */
  .pullquote { font-size: 26px !important; }
  .pullquote .mark { font-size: 60px; }

  /* Article content */
  .article-content { font-size: 16px; line-height: 1.65; }
  .article-content > h2 { font-size: 28px; }
  .article-content > h3 { font-size: 22px; }
  .article-content > .lede { font-size: 20px; }
  .article-content > .pull { font-size: 24px; margin: 40px auto; }
}

@media (max-width: 540px) {
  :root {
    --gutter: 16px;
    --t-hero: 56px;
    --t-h1: 40px;
    --t-h2: 30px;
  }
  body[data-screen-label="01 Accueil"] .hero { font-size: 54px !important; }
  .site-header__inner .btn--sm { padding: 8px 14px; font-size: 11px; }
  .site-header__inner .btn--sm .arrow { display: none; }
  .site-footer__top { grid-template-columns: 1fr; }
  .row.gap-3 { flex-direction: column; align-items: stretch !important; }
  .row.gap-3 > .btn { width: 100%; justify-content: center; }
  .photo__caption { font-size: 9.5px; padding: 5px 8px; bottom: 8px; left: 8px; right: 8px; }
  .card { padding: 20px; }

  /* Booking — day picker scrolls horizontally */
  .day { min-width: 64px; flex: 0 0 auto; }
  .row.gap-2[data-toggle-group] {
    overflow-x: auto;
    padding-bottom: 4px;
    flex-wrap: nowrap;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .row.gap-2[data-toggle-group]::-webkit-scrollbar { display: none; }
  .row.gap-2[data-toggle-group] > .day { scroll-snap-align: start; }

  /* Booking type chips stack */
  body[data-screen-label="05 Contact"] .row.gap-3[data-toggle-group] {
    flex-direction: column;
  }
  body[data-screen-label="05 Contact"] .row.gap-3[data-toggle-group] > .optchip {
    width: 100%;
  }

  /* SNC diagram — full stack */
  body[data-screen-label="02 Approche"] .row.gap-6 > div { flex-basis: 100% !important; max-width: none !important; }

  /* 4-column dimension grid → 1 column */
  .row[style*="border-top: 1px solid var(--line)"][style*="border-bottom: 1px solid var(--line)"] {
    grid-template-columns: 1fr !important;
  }
  .row[style*="border-top: 1px solid var(--line)"][style*="border-bottom: 1px solid var(--line)"] > article {
    border-bottom: 1px solid var(--line) !important;
  }
  .row[style*="border-top: 1px solid var(--line)"][style*="border-bottom: 1px solid var(--line)"] > article:last-child {
    border-bottom: none !important;
  }

  /* Offres — anchor tabs scroll */
  body[data-screen-label="03 Offres"] .container.row.gap-5 {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }

  /* Smaller numbered display */
  .display[style*="font-size: 96px"] { font-size: 44px !important; }
}

/* Tweaks panel — minimal glass card, bottom-right */
.twk {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 260px;
  z-index: 9999;
  background: color-mix(in srgb, #faf9f7 78%, transparent);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 0.5px solid rgba(255,255,255,0.6);
  border-radius: 14px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.5) inset, 0 12px 40px rgba(0,0,0,0.18);
  font-family: var(--sans);
  font-size: 11.5px;
  color: #29261b;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s;
}
.twk.is-open { opacity: 1; pointer-events: auto; transform: translateY(0); }
.twk__hd {
  padding: 10px 8px 10px 14px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 0.5px solid rgba(0,0,0,0.06);
}
.twk__hd strong { font-size: 12px; font-weight: 600; letter-spacing: 0.01em; }
.twk__x {
  border: 0; background: transparent;
  color: rgba(41,38,27,0.55);
  width: 22px; height: 22px; border-radius: 6px;
  font-size: 14px; line-height: 1;
}
.twk__x:hover { background: rgba(0,0,0,0.06); color: #29261b; }
.twk__body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 10px; }
.twk__sect {
  font-size: 10px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: rgba(41,38,27,0.55);
  margin-top: 4px;
}
.twk__row { display: flex; gap: 6px; }
.twk__sw {
  flex: 1; height: 38px; border-radius: 8px;
  border: 1.5px solid rgba(0,0,0,0.08);
  position: relative; cursor: pointer;
  display: flex; align-items: flex-end; padding: 4px;
  gap: 2px;
  transition: border-color 0.15s, transform 0.15s;
}
.twk__sw:hover { transform: translateY(-1px); }
.twk__sw.is-on { border-color: #1c1a17; }
.twk__sw i { display: block; width: 8px; height: 8px; border-radius: 999px; }
.twk__seg button {
  flex: 1; padding: 8px 0; border: 1px solid rgba(0,0,0,0.1);
  background: transparent; border-radius: 7px; cursor: pointer;
  font-size: 11.5px; color: rgba(41,38,27,0.7); font-family: inherit;
}
.twk__seg button.is-on { background: #1c1a17; color: #fafaf7; border-color: #1c1a17; }

/* FAQ */
[data-faq-item] {
  border-bottom: 1px solid var(--line);
}
[data-faq] {
  width: 100%; text-align: left;
  padding: 22px 0;
  border: 0; background: transparent;
  font-family: var(--sans); font-size: 16px; font-weight: 450;
  color: var(--ink); cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
}
[data-faq] .plus {
  font-family: var(--display);
  font-size: 28px;
  color: var(--ink-3);
  transition: transform 0.25s;
  line-height: 1;
}
[data-faq-item].is-open [data-faq] .plus {
  transform: rotate(45deg);
  color: var(--accent);
}
[data-faq-body] {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
[data-faq-item].is-open [data-faq-body] {
  max-height: 400px;
}
[data-faq-body] p {
  margin: 0 0 22px;
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.6;
  max-width: 720px;
}
