/* =========================================================================
   TakeBack — système de design web
   Direction : design.md (calme, premium, humain, orienté action), avec la
   grammaire visuelle de Headspace comme référence d'expérience — fond clair
   et chaleureux, grands panneaux teintés, titres généreux, produit visible
   dès le premier écran — sans en reprendre l'identité.
   Tous les contrastes de texte sont vérifiés au niveau WCAG AA.
   ========================================================================= */

@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("/fonts/figtree-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("/fonts/figtree-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --- Jetons ----------------------------------------------------------- */
:root {
  /* Couleurs de marque */
  --brand: #0B6B60;            /* sarcelle profond : action principale */
  --brand-hover: #095A51;
  --brand-pressed: #07483F;
  --brand-deep: #0A3B38;       /* panneaux sombres, pied de page */
  --fresh: #3CC88A;            /* vert frais : accents, illustrations */
  --fresh-soft: #9BE3BD;
  --sun: #F6C453;              /* chaleur, récompense (illustrations) */

  /* Surfaces */
  --bg: #FBF8F3;               /* blanc cassé chaud */
  --surface: #FFFFFF;
  --sand: #F4EEE4;
  --sand-strong: #EADFCF;
  --mint: #E4F4EE;
  --sky: #E8F0F6;

  /* Texte */
  --text: #14302E;
  --text-2: #4E6563;
  --text-3: #5A6C6A;
  --on-brand: #FFFFFF;
  --on-deep: #EAF4F1;
  --on-deep-2: #A8C7C0;

  /* Sémantique */
  --reward: #8A6508;
  --reward-soft: #FBF1DC;
  --warning: #8A5A00;
  --warning-soft: #FBF1DC;
  --danger: #B42318;           /* vraies erreurs uniquement */
  --danger-soft: #FDEEEC;
  --success: #0B6B60;

  /* Traits */
  --border: #E7E0D5;
  --border-strong: #7C8D89;    /* champs de saisie : 3,48:1 sur blanc */
  --track: #E8E1D6;
  --focus: #0B6B60;

  /* Typographie */
  --font: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --fs-display: clamp(2.375rem, 1.6rem + 3.2vw, 3.5rem);
  --fs-title: clamp(1.875rem, 1.4rem + 2vw, 2.75rem);
  --fs-heading: 1.3125rem;
  --fs-lead: clamp(1.125rem, 1.05rem + 0.35vw, 1.25rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-caption: 0.8125rem;

  /* Espacement : 4 / 8 / 12 / 16 / 24 / 32 / 48 / 64 / 80 / 96 */
  --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: 80px; --s-10: 96px;

  /* Arrondis */
  --r-control: 10px;
  --r-button: 14px;
  --r-card: 20px;
  --r-panel: 28px;
  --r-pill: 999px;

  /* Élévation : discrète, uniquement là où elle a un sens */
  --shadow-sm: 0 1px 2px rgba(20, 48, 46, 0.06);
  --shadow-md: 0 6px 20px -6px rgba(20, 48, 46, 0.14);
  --shadow-lg: 0 24px 48px -16px rgba(20, 48, 46, 0.22);

  /* Mouvement */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur-fast: 150ms;
  --dur: 260ms;

  /* Mise en page */
  --max: 1240px;
  --measure: 64ch;
  --gutter: 20px;
  --section: var(--s-8);
  --header-h: 68px;

  color-scheme: light;
}

@media (min-width: 768px) {
  :root { --gutter: 32px; --section: var(--s-10); --header-h: 76px; }
}

/* Thème sombre : sur choix explicite uniquement. */
:root[data-theme="dark"] {
  --brand: #4FD9AE;
  --brand-hover: #6BE3BE;
  --brand-pressed: #3CC89C;
  --brand-deep: #071210;
  --bg: #0C1716;
  --surface: #13221F;
  --sand: #18302B;
  --sand-strong: #1E3833;
  --mint: #11332C;
  --sky: #132A33;
  --text: #EAF2EF;
  --text-2: #A9BDB8;
  --text-3: #93A8A3;
  --on-brand: #062520;
  --on-deep: #EAF2EF;
  --on-deep-2: #A9BDB8;
  --reward: #F2C45E;
  --reward-soft: #2B2616;
  --warning: #F2C45E;
  --warning-soft: #2B2616;
  --danger: #FF8A80;
  --danger-soft: #331A1A;
  --border: #24403B;
  --border-strong: #5E7B75;
  --track: #24403B;
  --focus: #4FD9AE;
  --shadow-md: 0 6px 20px -6px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 24px 48px -16px rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}

/* --- Base -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + var(--s-4)); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

::selection { background: var(--fresh-soft); color: #0A3B38; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

/* --- Typographie ------------------------------------------------------- */
h1, .t-display {
  font-size: var(--fs-display);
  line-height: 1.05;
  font-weight: 750;
  letter-spacing: -0.025em;
  margin: 0 0 var(--s-5);
  text-wrap: balance;
}
h2, .t-title {
  font-size: var(--fs-title);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 var(--s-4);
  text-wrap: balance;
}
h3, .t-heading {
  font-size: var(--fs-heading);
  line-height: 1.3;
  font-weight: 650;
  letter-spacing: -0.01em;
  margin: 0 0 var(--s-2);
}
h4 { font-size: var(--fs-body); font-weight: 650; margin: 0 0 var(--s-2); }
p { margin: 0 0 var(--s-4); }
p:last-child { margin-bottom: 0; }

.t-lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--text-2); }
.t-small { font-size: var(--fs-small); line-height: 1.55; }
.t-caption { font-size: var(--fs-caption); line-height: 1.5; color: var(--text-3); }
.text-2 { color: var(--text-2); }
.text-3 { color: var(--text-3); }
.text-center { text-align: center; }
.text-brand { color: var(--brand); }
.nowrap { white-space: nowrap; }

a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

/* Étiquette de section : phrase courte, arrondie, jamais criarde. */
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-2);
  padding: 6px 14px;
  border-radius: var(--r-pill);
  background: var(--mint);
  color: var(--brand);
  font-size: var(--fs-small); font-weight: 650; line-height: 1.3;
  margin: 0 0 var(--s-4);
}
.eyebrow--sand { background: var(--sand); color: var(--text-2); }
.eyebrow--on-deep { background: rgba(255, 255, 255, 0.1); color: var(--on-deep); }
.eyebrow__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--fresh); flex: none; }

/* --- Mise en page ------------------------------------------------------ */
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(760px + 2 * var(--gutter)); }
.container--article { max-width: calc(1080px + 2 * var(--gutter)); }

.section { padding-block: var(--section); }
.section--sm { padding-block: calc(var(--section) * 0.5); }
.section--flush-top { padding-top: 0; }
.section + .section, .hero + .section, .section + .hero { padding-top: 0; }

.section-head { max-width: 720px; margin: 0 auto var(--s-7); text-align: center; }
.section-head .t-lead { margin-inline: auto; }
.section-head--left { margin-inline: 0; text-align: left; }
.section-head--left .t-lead { margin-inline: 0; }

/* Sous-menu des rubriques de guides, par thème (pilules). */
.subnav { margin-bottom: var(--s-6); }
.subnav__list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.subnav__link {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px;
  border-radius: 999px; background: var(--sand); color: var(--text-2);
  border: 1px solid var(--border); font-size: var(--fs-small); font-weight: 600;
  text-decoration: none; white-space: nowrap;
}
.subnav__link:hover { color: var(--text); }
.subnav__link.is-active { background: var(--text); color: var(--bg); border-color: var(--text); }

.stack { display: flex; flex-direction: column; gap: var(--s-4); }
.stack--sm { gap: var(--s-2); }
.stack--lg { gap: var(--s-6); }
.stack--xl { gap: var(--s-7); }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); }
.cluster--center { justify-content: center; }

.grid { display: grid; gap: var(--s-5); }
@media (min-width: 640px) { .grid-2, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 640px) and (max-width: 899px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Deux colonnes texte / visuel, qui s'empilent sur mobile. */
.split { display: grid; gap: var(--s-7); align-items: center; }
@media (min-width: 960px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-9); }
  .split--reverse > :first-child { order: 2; }
  .split--wide-text { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
  .split--top { align-items: start; }
}

.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-4 { margin-top: var(--s-4); } .mt-5 { margin-top: var(--s-5); }
.mt-6 { margin-top: var(--s-6); } .mt-7 { margin-top: var(--s-7); }
.mx-auto { margin-inline: auto; }
.max-measure { max-width: var(--measure); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
@media (max-width: 767px) { .hide-sm { display: none !important; } }
@media (min-width: 768px) { .show-sm { display: none !important; } }

/* --- Icônes ------------------------------------------------------------ */
.icon { display: inline-block; vertical-align: middle; width: 24px; height: 24px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon--sm { width: 18px; height: 18px; }
.icon--lg { width: 28px; height: 28px; }

.icon-tile {
  display: inline-grid; place-items: center;
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--mint); color: var(--brand); flex: none;
}
.icon-tile--sand { background: var(--sand); color: var(--text); }
.icon-tile--sky { background: var(--sky); color: var(--brand); }
.icon-tile--sun { background: var(--reward-soft); color: var(--reward); }
.icon-tile--sm { width: 40px; height: 40px; border-radius: 12px; }
/* Logo d'application : la tuile `-icon` est autoportante, on l'affiche telle quelle. */
.app-logo { width: 48px; height: 48px; border-radius: 14px; flex: none; display: block; object-fit: cover; }
.panel--mint .icon-tile:not([class*="icon-tile--"]), .card--mint .icon-tile:not([class*="icon-tile--"]), .notice--mint .icon-tile:not([class*="icon-tile--"]) { background: var(--surface); }

/* --- Boutons ----------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 52px; padding: 0 var(--s-5);
  border-radius: var(--r-button);
  border: 1.5px solid transparent;
  font-family: inherit; font-size: var(--fs-body); font-weight: 650; line-height: 1.2;
  text-decoration: none; text-align: center; cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--brand); color: var(--on-brand); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--brand-hover); }
.btn--primary:active { background: var(--brand-pressed); }

.btn--secondary { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn--secondary:hover { border-color: var(--brand); color: var(--brand); }
.btn--secondary:active { background: var(--mint); }

.btn--ghost { background: transparent; color: var(--brand); padding-inline: var(--s-3); }
.btn--ghost:hover { background: var(--mint); }

.btn--light { background: #FFFFFF; color: #0A3B38; }
.btn--light:hover { background: #E4F4EE; }
.btn--outline-light { background: transparent; color: var(--on-deep); border-color: rgba(234, 244, 241, 0.55); }
.btn--outline-light:hover { border-color: #FFFFFF; background: rgba(255, 255, 255, 0.08); }

.btn--sm { min-height: 44px; padding: 0 var(--s-4); font-size: var(--fs-small); border-radius: 12px; }
.btn--lg { min-height: 58px; padding: 0 var(--s-6); font-size: 1.125rem; }
.btn--block { width: 100%; }
@media (max-width: 559px) { .btn--block-sm { width: 100%; } }

.btn[disabled], .btn[aria-disabled="true"] {
  background: transparent; color: var(--text-3);
  border: 1.5px dashed var(--border-strong); box-shadow: none;
  cursor: not-allowed; transform: none;
}

/* État de chargement : le libellé reste lisible par les lecteurs d'écran. */
.btn.is-loading { color: transparent !important; pointer-events: none; }
.btn.is-loading::after {
  content: ""; position: absolute; width: 20px; height: 20px;
  border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent;
  color: var(--on-brand); animation: spin 0.7s linear infinite;
}
.btn--secondary.is-loading::after { color: var(--brand); }
@keyframes spin { to { transform: rotate(360deg); } }

.btn .icon { width: 20px; height: 20px; }
.btn-note { font-size: var(--fs-small); color: var(--text-3); margin: var(--s-3) 0 0; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 650; text-decoration: none; color: var(--brand);
}
.link-arrow .icon { width: 18px; height: 18px; transition: transform var(--dur-fast) var(--ease); }
.link-arrow:hover .icon { transform: translateX(3px); }
.link-arrow:hover { text-decoration: none; }
.link-arrow--on-deep { color: var(--on-deep); }
.trust-links { display: flex; flex-wrap: wrap; gap: var(--s-4) var(--s-6); }

/* Partage / intégration d'un calculateur */
.share { }
.share__row { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }
.share__row .input { flex: 1 1 220px; }
.share__embed summary { cursor: pointer; font-weight: 650; font-size: var(--fs-small); margin-top: var(--s-2); }
.share__code { width: 100%; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: var(--fs-caption); white-space: pre; }

/* Version intégrable autonome (/embed) */
.embed-body { background: var(--bg); padding: var(--s-4); }
.embed { max-width: 560px; margin: 0 auto; }
.embed .tool__aside { position: static; }
.embed__credit { text-align: center; margin: var(--s-5) 0 0; font-size: var(--fs-caption); }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 44px; min-height: 44px; padding: 0 10px;
  border-radius: 12px; border: 1px solid var(--border); background: var(--surface);
  color: var(--text-2); cursor: pointer; font-size: var(--fs-small); font-weight: 650;
  transition: border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.icon-btn:hover { border-color: var(--brand); color: var(--brand); }
.icon-btn .icon { width: 20px; height: 20px; }

/* --- Cartes et panneaux ----------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: var(--s-5);
}
@media (min-width: 768px) { .card { padding: var(--s-6); } }
.card > :last-child { margin-bottom: 0; }
.card--flat { background: var(--sand); border-color: transparent; }
.card--mint { background: var(--mint); border-color: transparent; }
.card--highlight { border: 2px solid var(--brand); box-shadow: var(--shadow-md); }
.card--compact { padding: var(--s-5); }
.card__icon { margin-bottom: var(--s-4); }
.card__title { margin-bottom: var(--s-2); }
.card__body { color: var(--text-2); font-size: var(--fs-small); line-height: 1.6; }

a.card, .card--interactive {
  display: block; color: inherit; text-decoration: none;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
a.card:hover, .card--interactive:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: transparent; }
a.card:hover .card__title { color: var(--brand); }

.panel { border-radius: var(--r-panel); padding: var(--s-7) var(--s-5); position: relative; overflow: hidden; }
@media (min-width: 768px) { .panel { padding: var(--s-8); } }
.panel--sand { background: var(--sand); }
.panel--mint { background: var(--mint); }
.panel--sky { background: var(--sky); }
.panel--deep { background: var(--brand-deep); color: var(--on-deep); }
.panel--deep .t-lead, .panel--deep .text-2 { color: var(--on-deep-2); }
.panel--deep a:not(.btn) { color: var(--fresh-soft); }

/* --- Badges ------------------------------------------------------------ */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: var(--r-pill);
  font-size: var(--fs-caption); font-weight: 650; line-height: 1.4;
  background: var(--sand); color: var(--text-2);
}
.badge__dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge--live { background: var(--mint); color: var(--brand); }
.badge--beta { background: var(--reward-soft); color: var(--reward); }
.badge--planned { background: var(--sand); color: var(--text-2); }

/* --- En-tête ----------------------------------------------------------- */
.skip-link {
  position: absolute; left: var(--s-4); top: -100px; z-index: 100;
  background: var(--brand); color: var(--on-brand); padding: 12px 18px;
  border-radius: var(--r-control); font-weight: 650; text-decoration: none;
}
.skip-link:focus { top: var(--s-3); }

.header {
  position: sticky; top: 0; z-index: 40;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
@supports (backdrop-filter: blur(1px)) {
  .header { background: rgba(251, 248, 243, 0.88); backdrop-filter: saturate(160%) blur(14px); }
  :root[data-theme="dark"] .header { background: rgba(12, 23, 22, 0.88); }
}
.header.is-scrolled { border-bottom-color: var(--border); }

.header__inner { display: flex; align-items: center; gap: var(--s-5); height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); flex: none; }
.brand__mark { width: 38px; height: 38px; border-radius: 11px; background: #FFFFFF; box-shadow: 0 0 0 1px var(--border); }
.brand__name { font-size: 1.1875rem; font-weight: 750; letter-spacing: -0.02em; }

.nav { margin-inline: auto; }
.nav__list { display: flex; align-items: center; gap: var(--s-1); list-style: none; margin: 0; padding: 0; }
.nav__link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  border-radius: 12px;
  color: var(--text-2); text-decoration: none; font-size: var(--fs-small); font-weight: 600; white-space: nowrap;
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.nav__link:hover { color: var(--text); background: var(--sand); text-decoration: none; }
.nav__link[aria-current="page"] { color: var(--brand); background: var(--mint); }

.header__actions { display: flex; align-items: center; gap: var(--s-2); margin-left: auto; }
.nav + .header__actions { margin-left: 0; }

.lang { position: relative; }
.lang__menu {
  position: absolute; right: 0; top: calc(100% + 8px);
  min-width: 170px; margin: 0; padding: 6px; list-style: none;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; box-shadow: var(--shadow-lg); z-index: 60;
}
.lang__menu a {
  display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 0 12px;
  border-radius: 10px; color: var(--text); text-decoration: none; font-weight: 600; font-size: var(--fs-small);
}
.lang__menu a:hover { background: var(--sand); }
.lang__menu a[aria-current="true"] { color: var(--brand); }

.nav-toggle { display: none; }

@media (max-width: 1279px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; margin: 0;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: var(--s-4) var(--gutter) var(--s-6);
    box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__list { flex-direction: column; align-items: stretch; gap: var(--s-1); }
  .nav__link { min-height: 56px; padding: 0 var(--s-4); font-size: 1.0625rem; border-radius: 14px; }
  .nav__lang { margin-top: var(--s-4); padding-top: var(--s-4); border-top: 1px solid var(--border); }
}
@media (min-width: 1280px) { .nav__lang { display: none; } }
@media (min-width: 768px) { .nav__lang { display: none; } }
@media (max-width: 767px) { .header .lang { display: none; } }
.header__cta { white-space: nowrap; }
.nav__lang-list { display: flex; flex-wrap: wrap; gap: var(--s-2); list-style: none; margin: var(--s-3) 0 0; padding: 0; }
.nav__lang-list a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s-4); border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text); text-decoration: none; font-weight: 600; }
.nav__lang-list a[aria-current="true"] { border-color: var(--brand); color: var(--brand); background: var(--mint); }
@media (max-width: 420px) { .brand__name { font-size: 1.0625rem; } }

/* --- Héros ------------------------------------------------------------- */
.hero { padding-block: var(--s-7) var(--s-8); }
@media (min-width: 768px) { .hero { padding-block: var(--s-8) var(--s-9); } }
.hero__content > .t-lead { max-width: 36rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }
@media (max-width: 559px) { .hero__actions .btn { width: 100%; } }

.hero--center { text-align: center; }
.hero--center .hero__content { max-width: 800px; margin-inline: auto; }
.hero--center .hero__content > .t-lead { margin-inline: auto; }
.hero--center .hero__actions { justify-content: center; }

/* Zone visuelle du héros : panneau teinté, formes douces, produit au centre. */
.showcase {
  position: relative;
  border-radius: 32px;
  background: var(--sand);
  min-height: 460px;
  display: grid; place-items: center;
  padding: var(--s-7) var(--s-4);
  overflow: hidden;
  isolation: isolate;
}
.showcase--mint { background: var(--mint); }
.showcase--sky { background: var(--sky); }
.showcase__shape { position: absolute; z-index: -1; pointer-events: none; }
.showcase__shape--sun { width: 140px; height: 140px; border-radius: 50%; background: var(--sun); top: -30px; right: -30px; opacity: 0.9; }
.showcase__shape--leaf { width: 200px; bottom: -40px; left: -50px; color: var(--fresh-soft); }
.showcase__shape--ring { width: 220px; height: 220px; border-radius: 50%; border: 22px solid var(--mint); bottom: 40px; right: -80px; }
.showcase--mint .showcase__shape--ring { border-color: rgba(255, 255, 255, 0.7); }
.showcase__caption { position: absolute; bottom: 12px; left: 0; right: 0; text-align: center; font-size: var(--fs-caption); color: var(--text-3); }

/* Cartes flottantes autour du téléphone */
.float-card {
  position: absolute; z-index: 2;
  display: flex; align-items: center; gap: var(--s-3);
  background: var(--surface); color: var(--text);
  border-radius: 18px; padding: 12px 16px;
  box-shadow: var(--shadow-lg);
  font-size: var(--fs-small); line-height: 1.35; max-width: 210px;
}
.float-card strong { display: block; font-weight: 700; }
.float-card span { color: var(--text-2); font-size: var(--fs-caption); }
.float-card--tl { top: 20%; left: 5%; }
.float-card--br { bottom: 22%; left: 5%; }
.showcase--floats { justify-items: end; padding-right: 11%; }
@media (min-width: 960px) and (max-width: 1239px) {
  .showcase--floats { justify-items: center; padding-right: var(--s-4); }
  .showcase--floats .float-card { display: none; }
}
@media (max-width: 559px) {
  .float-card { position: static; max-width: none; width: 100%; margin-top: var(--s-3); box-shadow: var(--shadow-md); }
  .showcase, .showcase--floats { display: flex; flex-direction: column; align-items: center; padding-right: var(--s-4); }
}
@media (prefers-reduced-motion: no-preference) {
  .float-card { animation: float 7s ease-in-out infinite; }
  .float-card--br { animation-delay: -3.5s; }
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* --- Maquette de téléphone (écrans de l'application) ------------------- */
.phone {
  position: relative; z-index: 1;
  width: 264px; max-width: 100%;
  aspect-ratio: 9 / 18.5;
  border-radius: 42px;
  background: #0C1220;
  padding: 10px;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px #2A3447;
}
.phone::before {
  content: ""; position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  width: 78px; height: 20px; border-radius: 12px; background: #0C1220; z-index: 2;
}
.phone--sm { width: 236px; }
@media (max-width: 559px) { .phone { width: 236px; } .phone--sm { width: 216px; } .showcase { min-height: 0; padding-block: var(--s-6) var(--s-7); } }

/* L'écran reprend les jetons exacts de l'application (thème sombre). */
.app {
  height: 100%; border-radius: 33px; overflow: hidden;
  background: #070C15; color: #E6EEF6;
  font-family: var(--font); font-size: 12px; line-height: 1.4;
  padding: 44px 16px 16px;
  display: flex; flex-direction: column; gap: 10px;
  text-align: left;
}
.app__spacer { flex: 1; }
.app__week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.app__week span { font-size: 9px; color: #8A9DB5; font-weight: 700; }
.app__week i { display: block; width: 18px; height: 18px; margin: 4px auto 0; border-radius: 50%; background: #2A3A50; }
.app__week i.is-on { background: #00CFA8; }
.app__week i.is-today { box-shadow: inset 0 0 0 2px #00CFA8; background: transparent; }
.app__pill { display: inline-flex; align-self: flex-start; padding: 3px 8px; border-radius: 99px; background: rgba(0, 207, 168, 0.12); color: #00CFA8; font-size: 10px; font-weight: 700; }
.app__top { display: flex; align-items: center; justify-content: space-between; }
.app__label { font-size: 9.5px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; color: #8A9DB5; }
.app__label--mint { color: #00CFA8; }
.app__label--gold { color: #F0B429; }
.app__big { font-size: 34px; line-height: 1; font-weight: 750; letter-spacing: -1px; color: #E6EEF6; }
.app__unit { font-size: 13px; color: #8A9DB5; font-weight: 600; margin-left: 4px; letter-spacing: 0; }
.app__card { background: #1C2A42; border-radius: 14px; padding: 12px; }
.app__row { display: flex; gap: 8px; }
.app__row > * { flex: 1; }
.app__metric { font-size: 17px; font-weight: 700; color: #E6EEF6; }
.app__muted { color: #8A9DB5; font-size: 10.5px; }
.app__btn { display: flex; align-items: center; justify-content: center; gap: 6px; height: 40px; border-radius: 12px; background: #00CFA8; color: #050F0C; font-weight: 700; font-size: 12.5px; }
.app__btn--ghost { background: transparent; color: #E6EEF6; box-shadow: inset 0 0 0 1.5px #2A3A50; }
.app__bar { height: 6px; border-radius: 99px; background: #2A3A50; overflow: hidden; }
.app__bar > span { display: block; height: 100%; border-radius: 99px; background: #00CFA8; }
.fill-42 { width: 42%; } .fill-58 { width: 58%; } .fill-100 { width: 100%; }
.app__bar--gold > span { background: #F0B429; }
.app__breath { flex: 1; display: grid; place-items: center; }
.app__breath-circle {
  width: 150px; height: 150px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 207, 168, 0.35) 0%, rgba(0, 207, 168, 0.1) 60%, transparent 70%);
  box-shadow: inset 0 0 0 2px rgba(0, 207, 168, 0.6);
  display: grid; place-items: center; text-align: center;
}
@media (prefers-reduced-motion: no-preference) {
  .app__breath-circle { animation: app-breath 11s ease-in-out infinite; }
}
@keyframes app-breath { 0%, 100% { transform: scale(0.78); } 36% { transform: scale(1); } 60% { transform: scale(1); } }
.app__days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.app__day { aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; font-size: 10px; font-weight: 700; background: #1C2A42; color: #8A9DB5; }
.app__day--done { background: #00CFA8; color: #050F0C; }
.app__day--current { box-shadow: inset 0 0 0 2px #00CFA8; color: #E6EEF6; }
.app__spark { display: flex; align-items: flex-end; gap: 4px; height: 54px; }
.app__spark span { flex: 1; border-radius: 4px 4px 2px 2px; background: #2A3A50; }
.h-30 { height: 30%; } .h-40 { height: 40%; } .h-45 { height: 45%; } .h-55 { height: 55%; } .h-60 { height: 60%; } .h-100 { height: 100%; }
.app__spark span.is-peak { background: #F0B429; }

/* --- Sélecteur « par quoi commencer » --------------------------------- */
.intents { display: grid; gap: var(--s-3); }
@media (min-width: 720px) { .intents { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .intents { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.intent {
  display: flex; align-items: center; gap: var(--s-4);
  min-height: 72px; padding: var(--s-3) var(--s-4) var(--s-3) var(--s-3);
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
  color: var(--text); text-decoration: none; font-weight: 650;
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.intent:hover { border-color: var(--brand); box-shadow: var(--shadow-md); text-decoration: none; }
.intent__label { flex: 1; line-height: 1.3; }
.intent__label small { display: block; font-weight: 500; color: var(--text-3); font-size: var(--fs-caption); margin-top: 2px; }
.intent__chevron { color: var(--text-3); transition: transform var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease); }
.intent:hover .intent__chevron { transform: translateX(3px); color: var(--brand); }

/* --- Listes d'éléments ------------------------------------------------- */
.feature { display: flex; gap: var(--s-4); align-items: flex-start; }
.feature__body h3 { font-size: 1.125rem; margin-bottom: var(--s-1); }
.feature__body p { color: var(--text-2); font-size: var(--fs-small); }

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.checklist li { display: flex; gap: var(--s-3); align-items: flex-start; }
.checklist .icon { width: 20px; height: 20px; color: var(--brand); margin-top: 3px; stroke-width: 2.2; }
.panel--deep .checklist .icon { color: var(--fresh); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-6) var(--s-5); counter-reset: step; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .steps--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.step { counter-increment: step; }
.step::before {
  content: counter(step);
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--brand); color: var(--on-brand);
  font-weight: 700; margin-bottom: var(--s-4);
}
.step h3 { font-size: 1.125rem; margin-bottom: var(--s-1); }
.step p { color: var(--text-2); font-size: var(--fs-small); }

/* Jalons : titre qui encourage, détail qui informe. */
.milestones { list-style: none; margin: 0; padding: 0; position: relative; }
.milestones::before { content: ""; position: absolute; left: 19px; top: 8px; bottom: 8px; width: 2px; background: var(--track); }
.milestone { position: relative; display: grid; grid-template-columns: 40px 1fr; gap: var(--s-4); padding-bottom: var(--s-6); }
.milestone:last-child { padding-bottom: 0; }
.milestone__dot { font-weight: 700; width: 40px; height: 40px; border-radius: 50%; background: var(--surface); border: 2px solid var(--brand); display: grid; place-items: center; color: var(--brand); z-index: 1; }
.milestone__dot .icon { width: 18px; height: 18px; stroke-width: 2.2; }
.milestone__when { display: inline-block; font-size: var(--fs-caption); font-weight: 700; color: var(--brand); background: var(--mint); padding: 2px 10px; border-radius: var(--r-pill); margin-bottom: 6px; }
.milestone h3 { font-size: 1.125rem; margin-bottom: 4px; }
.milestone p { color: var(--text-2); font-size: var(--fs-small); }

/* --- Avis et encarts --------------------------------------------------- */
.notice {
  display: flex; gap: var(--s-4); align-items: flex-start;
  padding: var(--s-5); border-radius: var(--r-card);
  background: var(--sand); color: var(--text);
}
.notice > .icon { color: var(--text-2); margin-top: 2px; }
.notice__title { font-weight: 700; margin-bottom: var(--s-1); }
.notice__body { font-size: var(--fs-small); color: var(--text-2); }
.notice__body p { margin-bottom: var(--s-2); }
.notice--info { background: var(--sky); }
.notice--info > .icon { color: var(--brand); }
.notice--mint { background: var(--mint); }
.notice--mint > .icon { color: var(--brand); }
.notice--warning { background: var(--warning-soft); }
.notice--warning > .icon { color: var(--warning); }
.notice--crisis { background: var(--surface); border: 1.5px solid var(--danger); }
.notice--crisis > .icon { color: var(--danger); }
.notice--health { background: transparent; border: 1px solid var(--border); }

.crisis-lines { list-style: none; margin: var(--s-4) 0 0; padding: 0; display: grid; gap: var(--s-3); }
@media (min-width: 640px) { .crisis-lines { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.crisis-line { display: flex; flex-direction: column; padding: var(--s-3) var(--s-4); border-radius: 14px; background: var(--danger-soft); }
.crisis-line__number { font-size: 1.375rem; font-weight: 750; color: var(--text); text-decoration: none; letter-spacing: -0.01em; }
.crisis-line__meta { font-size: var(--fs-caption); color: var(--text-2); }

/* --- FAQ --------------------------------------------------------------- */
.faq { display: grid; gap: var(--s-3); }
.faq__item { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; transition: border-color var(--dur-fast) var(--ease); }
.faq__item[open] { border-color: var(--border-strong); }
.faq__q {
  display: flex; justify-content: space-between; align-items: center; gap: var(--s-4);
  min-height: 64px; padding: var(--s-4) var(--s-5);
  cursor: pointer; list-style: none; font-weight: 650; line-height: 1.35;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q .icon { color: var(--brand); transition: transform var(--dur) var(--ease); }
.faq__item[open] .faq__q .icon { transform: rotate(45deg); }
.faq__a { padding: 0 var(--s-5) var(--s-5); color: var(--text-2); }

/* --- Fil d'Ariane ------------------------------------------------------ */
.breadcrumb { padding-top: var(--s-5); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; padding: 0; font-size: var(--fs-small); }
.breadcrumb li { display: inline-flex; align-items: center; gap: 6px; color: var(--text-3); }
.breadcrumb li + li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--border-strong); opacity: 0.6; }
.breadcrumb a { color: var(--text-2); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand); text-decoration: underline; }

/* --- Formulaires ------------------------------------------------------- */
.field { display: block; }
.field + .field { margin-top: var(--s-5); }
.field__label { display: block; font-weight: 650; font-size: var(--fs-small); margin-bottom: var(--s-2); }
.field__hint { display: block; font-size: var(--fs-caption); color: var(--text-3); margin-top: 6px; }
.input, .select {
  width: 100%; min-height: 52px; padding: 0 var(--s-4);
  background: var(--surface); color: var(--text);
  border: 1.5px solid var(--border-strong); border-radius: var(--r-control);
  font-family: inherit; font-size: var(--fs-body);
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.input:hover, .select:hover { border-color: var(--text-2); }
.input:focus, .select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--mint); }
.input[aria-invalid="true"] { border-color: var(--danger); }
.select {
  appearance: none; padding-right: 44px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%234E6563' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 8 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.input-wrap { position: relative; }
.input-wrap .input { padding-right: 56px; }
.input-wrap__affix { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--text-3); font-weight: 600; pointer-events: none; }

.form-grid { display: grid; gap: var(--s-5); }
@media (min-width: 560px) { .form-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Choix sous forme de tuiles : zones tactiles généreuses. */
.choices { display: grid; gap: var(--s-2); grid-template-columns: repeat(2, minmax(0, 1fr)); border: 0; padding: 0; margin: 0; }
@media (min-width: 640px) { .choices--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); } .choices--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .choices--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.choices legend { grid-column: 1 / -1; padding: 0; margin-bottom: var(--s-2); font-weight: 650; font-size: var(--fs-small); }
.choice { position: relative; display: flex; }
.choice__box { flex: 1; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice__box {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-height: 72px; padding: var(--s-3) var(--s-2); text-align: center;
  border: 1.5px solid var(--border); border-radius: 14px; background: var(--surface);
  font-size: var(--fs-small); font-weight: 600; line-height: 1.25; color: var(--text-2);
  transition: border-color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.choice__box .icon { width: 22px; height: 22px; }
.choice:hover .choice__box { border-color: var(--border-strong); }
.choice input:checked + .choice__box { border-color: var(--brand); background: var(--mint); color: var(--brand); }
.choice input:focus-visible + .choice__box { outline: 3px solid var(--focus); outline-offset: 2px; }

/* Options de questionnaire : une ligne par réponse. */
.options { display: grid; gap: var(--s-3); border: 0; margin: 0; padding: 0; }
.option { position: relative; }
.option input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.option__box {
  display: flex; align-items: center; gap: var(--s-3);
  min-height: 60px; padding: var(--s-3) var(--s-4);
  background: var(--surface); border: 1.5px solid var(--border); border-radius: 16px;
  font-weight: 600; line-height: 1.35;
  transition: border-color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}
.option__box::before {
  content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--border-strong); background: var(--surface);
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.option:hover .option__box { border-color: var(--border-strong); }
.option input:checked + .option__box { border-color: var(--brand); background: var(--mint); }
.option input:checked + .option__box::before { border-color: var(--brand); box-shadow: inset 0 0 0 5px var(--surface); background: var(--brand); }
.option input:focus-visible + .option__box { outline: 3px solid var(--focus); outline-offset: 2px; }

.form-status { font-size: var(--fs-small); margin-top: var(--s-3); min-height: 1.5em; }
.form-status--error { color: var(--danger); }
.form-status--success { color: var(--brand); }

.consent { display: flex; gap: var(--s-3); align-items: flex-start; font-size: var(--fs-small); color: var(--text-2); cursor: pointer; }
.consent input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--brand); flex: none; }

/* --- Progression ------------------------------------------------------- */
.progress { height: 10px; border-radius: var(--r-pill); background: var(--track); overflow: hidden; }
.progress__fill { height: 100%; border-radius: var(--r-pill); background: var(--brand); transition: width var(--dur) var(--ease); }

.ring { position: relative; width: 112px; height: 112px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring__track { stroke: var(--track); }
.ring__fill { stroke: var(--brand); transition: stroke-dashoffset 600ms var(--ease); }
.ring__label { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1.1; }
.ring__value { font-size: 1.75rem; font-weight: 750; letter-spacing: -0.02em; }
.ring__caption { font-size: var(--fs-caption); color: var(--text-3); }

/* --- Résultats d'outils ------------------------------------------------ */
.tool { display: grid; gap: var(--s-5); align-items: start; }
@media (min-width: 960px) { .tool { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: var(--s-6); } .tool__aside { position: sticky; top: calc(var(--header-h) + var(--s-5)); } }

.result { border-radius: var(--r-panel); background: var(--brand-deep); color: var(--on-deep); padding: var(--s-6) var(--s-5); }
@media (min-width: 768px) { .result { padding: var(--s-7) var(--s-6); } }
.result__caption { font-size: var(--fs-small); font-weight: 600; color: var(--on-deep-2); margin-bottom: var(--s-2); }
.result__value { font-size: clamp(2.5rem, 1.8rem + 3vw, 3.5rem); line-height: 1; font-weight: 750; letter-spacing: -0.03em; color: #FFFFFF; margin-bottom: var(--s-3); }
.result__hint { color: var(--on-deep-2); font-size: var(--fs-small); }
.result__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-2); margin: var(--s-5) 0 0; padding: 0; }
.result__grid div { background: rgba(255, 255, 255, 0.07); border-radius: 14px; padding: var(--s-3) var(--s-4); }
.result__grid dt { font-size: var(--fs-caption); color: var(--on-deep-2); }
.result__grid dd { margin: 2px 0 0; font-size: 1.25rem; font-weight: 700; color: #FFFFFF; }
.result--light { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.result--light .result__caption, .result--light .result__hint { color: var(--text-2); }
.result--light .result__value { color: var(--brand); }

/* Liste de préparation et jalons dans le résultat de date */
.plan-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.plan-list li { display: grid; grid-template-columns: 28px 1fr; gap: var(--s-3); align-items: start; }
.plan-list__n { width: 28px; height: 28px; border-radius: 50%; background: rgba(255, 255, 255, 0.12); display: grid; place-items: center; font-size: var(--fs-caption); font-weight: 700; }
.plan-list__date { display: block; font-size: var(--fs-caption); color: var(--on-deep-2); }

/* --- Défi : un jour à la fois ----------------------------------------- */
.challenge-status { display: flex; align-items: center; gap: var(--s-5); flex-wrap: wrap; }
.challenge-status__text { flex: 1; min-width: 200px; }

.daypicker { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: var(--s-2); list-style: none; margin: 0; padding: 0; }
.daypicker__btn {
  width: 100%; text-decoration: none; min-height: 56px; border-radius: 16px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  background: var(--surface); border: 1.5px solid var(--border); color: var(--text-2);
  font-weight: 700; cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.daypicker__btn small { font-size: 11px; font-weight: 600; color: var(--text-3); }
.daypicker__btn:hover { border-color: var(--border-strong); text-decoration: none; }
.daypicker__btn[aria-current="step"] { border-color: var(--brand); color: var(--brand); box-shadow: 0 0 0 3px var(--mint); }
.daypicker__btn.is-done { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.daypicker__btn.is-done small { color: var(--on-brand); opacity: 0.85; }
.daypicker__btn .icon { width: 18px; height: 18px; stroke-width: 2.6; }

.day { scroll-margin-top: calc(var(--header-h) + var(--s-5)); }
@media (max-width: 559px) { .day__action { flex-direction: column; } .notice--crisis { flex-direction: column; } }
.day__action { display: flex; gap: var(--s-4); align-items: flex-start; background: var(--mint); border-radius: 18px; padding: var(--s-5); margin-block: var(--s-5); }
.day__action .icon-tile { background: var(--surface); }
.day__action-label { font-size: var(--fs-small); font-weight: 700; color: var(--brand); margin-bottom: 4px; }
.day__reflection { display: flex; gap: var(--s-3); align-items: flex-start; color: var(--text-2); font-style: italic; }
.day__footer { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; justify-content: space-between; margin-top: var(--s-6); padding-top: var(--s-5); border-top: 1px solid var(--border); }
.day__done-msg { display: flex; align-items: center; gap: var(--s-2); color: var(--brand); font-weight: 650; }

/* Sans JavaScript, tous les jours restent visibles : le contenu est indexable. */
.js .day[data-hidden="true"] { display: none; }

.celebrate { text-align: center; }
@media (prefers-reduced-motion: no-preference) {
  .celebrate.is-revealed { animation: reveal 520ms var(--ease) both; }
}
@keyframes reveal { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: none; } }

/* --- Tarifs ------------------------------------------------------------ */
.plans { display: grid; gap: var(--s-5); align-items: stretch; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.plan { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); padding: var(--s-6); position: relative; }
.plan--recommended { border: 2px solid var(--brand); box-shadow: var(--shadow-md); }
.plan__badge { position: absolute; top: -13px; left: var(--s-6); }
.plan__name { font-weight: 700; font-size: 1.125rem; margin-bottom: var(--s-3); }
.plan__price { font-size: 2.75rem; line-height: 1; font-weight: 750; letter-spacing: -0.03em; }
.plan__freq { color: var(--text-2); margin: var(--s-2) 0 var(--s-5); }
.plan .checklist { flex: 1; align-content: start; margin-bottom: var(--s-6); font-size: var(--fs-small); }
.plan__cta { margin-top: auto; }

.terms { display: grid; gap: 0; margin: 0; }
.terms > div { display: grid; gap: var(--s-2); padding: var(--s-5) 0; border-top: 1px solid var(--border); }
@media (min-width: 720px) { .terms > div { grid-template-columns: 200px 1fr; gap: var(--s-6); } }
.terms dt { font-weight: 700; }
.terms dd { margin: 0; color: var(--text-2); }

/* --- Guides ------------------------------------------------------------ */
.article { display: grid; gap: var(--s-7); }
@media (min-width: 1000px) { .article { grid-template-columns: minmax(0, 1fr) 300px; gap: var(--s-8); } .article__aside { position: sticky; top: calc(var(--header-h) + var(--s-5)); align-self: start; } }

.prose { font-size: 1.125rem; line-height: 1.75; max-width: 70ch; }
.prose > * + * { margin-top: var(--s-5); }
.prose p { margin-bottom: 0; }
.prose h2 { font-size: 1.75rem; margin-top: var(--s-8); margin-bottom: 0; }
.prose h3 { font-size: 1.25rem; margin-top: var(--s-6); margin-bottom: 0; }
.prose ul, .prose ol { padding-left: 1.4em; margin-bottom: 0; }
.prose li + li { margin-top: var(--s-2); }
.prose li::marker { color: var(--brand); }
.prose strong { font-weight: 700; }
.prose > p:first-child { font-size: 1.25rem; line-height: 1.65; color: var(--text); }
.prose blockquote { margin: var(--s-6) 0; padding: var(--s-5); border-radius: 18px; background: var(--mint); }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--fs-small); line-height: 1.5; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose th { font-weight: 700; background: var(--sand); }
.prose thead th:first-child { border-top-left-radius: 12px; }
.prose thead th:last-child { border-top-right-radius: 12px; }
.prose code { background: var(--sand); padding: 2px 6px; border-radius: 6px; font-size: 0.9em; }
.table-scroll { overflow-x: auto; }
.heading-anchor { color: var(--text-3); text-decoration: none; margin-left: 8px; opacity: 0; font-weight: 400; }
.prose h2:hover .heading-anchor, .prose h3:hover .heading-anchor, .heading-anchor:focus { opacity: 1; }

.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.toc a { display: block; padding: 6px 10px; border-radius: 10px; color: var(--text-2); text-decoration: none; font-size: var(--fs-small); line-height: 1.4; }
.toc a:hover { background: var(--sand); color: var(--text); }
.toc .lvl-3 a { padding-left: 22px; font-size: var(--fs-caption); }

.meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-4); color: var(--text-3); font-size: var(--fs-small); }
.meta-row span { display: inline-flex; align-items: center; gap: 6px; }
.meta-row .icon { width: 16px; height: 16px; }

/* Bloc auteur (signaux d'expertise sur les guides santé) */
.author-block { display: flex; flex-direction: column; gap: var(--s-2); }
.author-block__by { display: flex; align-items: flex-start; gap: 8px; margin: 0; font-size: var(--fs-small); color: var(--text-2); }
.author-block__by .icon { width: 18px; height: 18px; color: var(--brand); flex: none; margin-top: 1px; }
.author-block__by strong { color: var(--text); font-weight: 600; }
.author-block__review { color: var(--text-3); font-size: var(--fs-caption); }
.author-block__review .icon { color: var(--text-3); }
.author-block__meta { margin: var(--s-1) 0 0; }

.sources ol { margin: var(--s-3) 0 0; padding-left: 1.2em; font-size: var(--fs-small); color: var(--text-2); display: grid; gap: var(--s-2); }

/* --- Illustrations ----------------------------------------------------- */
.illus { width: 100%; height: auto; }
.illus-frame { background: var(--surface); border-radius: var(--r-panel); padding: var(--s-5); box-shadow: var(--shadow-sm); }
.illus--path .stop-a { stop-color: var(--text-3); stop-opacity: 0.55; }
.illus--path .stop-b { stop-color: var(--brand); }
.illus--path .path-line { stroke: url(#tb-path-gradient); }
.illus--path .path-dot { fill: var(--fresh); }
.illus--path .path-start { fill: var(--text-3); opacity: 0.6; }
.illus--path .path-sun { fill: var(--sun); }
.illus--path .path-hill { fill: var(--mint); }
.illus--path .path-label { fill: var(--text-3); font: 600 15px var(--font); }
@media (prefers-reduced-motion: no-preference) {
  .illus--path .path-line { stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: draw 2.8s var(--ease) 0.2s forwards; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }

/* --- Respiration guidée (SOS) ----------------------------------------- */
.sheet { position: fixed; inset: 0; z-index: 90; display: flex; align-items: flex-end; justify-content: center; }
.sheet__backdrop { position: absolute; inset: 0; background: rgba(10, 30, 28, 0.55); opacity: 0; transition: opacity var(--dur) var(--ease); }
.sheet__panel {
  position: relative; width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto;
  background: var(--bg); color: var(--text);
  border-radius: 28px 28px 0 0; padding: var(--s-6) var(--s-5) calc(var(--s-6) + env(safe-area-inset-bottom, 0px));
  transform: translateY(24px); opacity: 0;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
@media (min-width: 720px) { .sheet { align-items: center; } .sheet__panel { border-radius: 28px; padding: var(--s-7); } }
.sheet.is-open .sheet__backdrop { opacity: 1; }
.sheet.is-open .sheet__panel { transform: none; opacity: 1; }
.sheet__close { position: absolute; top: var(--s-4); right: var(--s-4); }
.sheet__grab { width: 44px; height: 5px; border-radius: 99px; background: var(--border); margin: calc(-1 * var(--s-3)) auto var(--s-5); }
@media (min-width: 720px) { .sheet__grab { display: none; } }

.breath { display: grid; place-items: center; margin: var(--s-6) auto; }
.breath__circle {
  width: 220px; height: 220px; border-radius: 50%;
  display: grid; place-items: center; text-align: center;
  background: radial-gradient(circle at 50% 50%, var(--mint) 0%, var(--mint) 55%, transparent 56%);
  box-shadow: 0 0 0 2px var(--brand) inset;
  transform: scale(0.72);
  transition: transform 4s cubic-bezier(0.45, 0, 0.55, 1);
}
.breath__circle[data-phase="in"] { transform: scale(1); transition-duration: 4s; }
.breath__circle[data-phase="hold"] { transform: scale(1); transition-duration: 0.2s; }
.breath__circle[data-phase="out"] { transform: scale(0.72); transition-duration: 7s; }
.breath__phase { font-size: 1.375rem; font-weight: 700; color: var(--text); }
.breath__count { font-size: 2.5rem; font-weight: 750; color: var(--brand); line-height: 1; margin-top: 4px; }
.breath__cycles { text-align: center; color: var(--text-3); font-size: var(--fs-small); }

/* --- Pied de page ------------------------------------------------------ */
.footer { background: var(--brand-deep); color: var(--on-deep); margin-top: var(--section); padding-block: var(--s-8) var(--s-6); }
.footer a { color: var(--on-deep); text-decoration: none; }
.footer a:hover { color: #FFFFFF; text-decoration: underline; }
.footer__grid { display: grid; gap: var(--s-6); }
@media (min-width: 720px) { .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .footer__grid { grid-template-columns: 1.5fr repeat(4, minmax(0, 1fr)); } }
.footer__brand .brand { color: #FFFFFF; }
.footer__brand .brand__mark { box-shadow: none; }
.footer__tagline { color: var(--on-deep-2); margin: var(--s-4) 0 var(--s-5); max-width: 32ch; }
.footer__title { font-size: var(--fs-small); font-weight: 700; color: #FFFFFF; margin-bottom: var(--s-4); }
.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); font-size: var(--fs-small); }
.footer__list a { color: var(--on-deep-2); }
.footer__bottom { margin-top: var(--s-8); padding-top: var(--s-5); border-top: 1px solid rgba(234, 244, 241, 0.14); display: grid; gap: var(--s-2); font-size: var(--fs-caption); color: var(--on-deep-2); }
.footer__bottom p { margin: 0; }
.footer__commitments { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.footer__commitments .badge { background: rgba(255, 255, 255, 0.08); color: var(--on-deep); }
.form-grid > .field + .field { margin-top: 0; }
.options legend { padding: 0; margin-bottom: var(--s-4); }
.choices legend { margin-bottom: var(--s-3); }
.brand picture { display: contents; }
