/* Mirza, site vitrine V1 (30/10/2026). La DA de Mirza : noir, gris iOS, un seul bleu. Aucun doré, aucun dégradé décoratif, aucun néon.
   Référence : 07-plateforme/mirza-brand-kit.md. Sombre seulement (le clair du kit n'est pas encore validé). */

/* Inter, servie par le site lui-même (V1.2) : plus de Google Fonts, donc l'adresse IP des visiteurs ne part pas chez Google.
   Sur Mac et iPhone, c'est la police d'Apple qui s'affiche (SF Pro, en tête de --police) ; Inter sert aux autres appareils. */
@font-face { font-family: "Inter"; src: url(fonts/inter-latin.woff2) format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --fond: #000;
  --panneau: #1c1c1e;
  --eleve: #2c2c2e;
  --eleve-2: #3a3a3c;
  --verre: rgba(28, 28, 30, .72);
  --verre-plein: rgba(28, 28, 30, .9);
  --trait: rgba(255, 255, 255, .09);
  --texte: #f5f5f7;
  --doux: rgba(235, 235, 245, .76);
  --gris: #8e8e93;
  --bleu: #0a84ff;          /* le bleu Mirza : ce qui attend, le focus, ce que fait Mirza */
  --bleu-bouton: #0a72e6;   /* le même bleu, en fond de bouton avec texte blanc (4,6:1, Brand Kit) */
  --bleu-texte: #5eb0ff;
  --vert: #30d158;
  --orange: #ff9f0a;
  --rouge: #ff453a;
  --courbe: cubic-bezier(.22, 1, .36, 1);
  --gouttiere: max(16px, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));   /* en paysage, rien sous l'encoche */
  --large: 1200px;
  --section: clamp(96px, 11vw, 160px);        /* l'espace au-dessus de chaque section (V1.2 : il grandissait vers la fin de la page) */
  --place-mirza: clamp(76px, 8vw, 110px);     /* la place réservée au-dessus de ce sur quoi Mirza s'assoit */
  --police: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", system-ui, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}
@media (min-width: 640px) { :root { --gouttiere: max(28px, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px)); } }
@media (min-width: 1024px) { :root { --gouttiere: max(48px, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px)); } }

*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--fond);
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  scrollbar-color: var(--eleve-2) var(--fond);
}
body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font-family: var(--police);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -.011em;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
::selection { background: rgba(255, 255, 255, .24); color: var(--texte); }
img { display: block; max-width: 100%; }
a { color: inherit; }
p, h1, h2, ol, ul, fieldset { margin: 0; padding: 0; }
ol, ul { list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--bleu); outline-offset: 3px; border-radius: 10px; }
input, textarea, select { font: inherit; font-size: 17px; caret-color: var(--bleu); }
button, a, [role="button"], label.puce, .consent { touch-action: manipulation; }
button, .btn, .puce, .domaines li { -webkit-user-select: none; user-select: none; }
.btn { -webkit-touch-callout: none; }   /* un appui long sur « Rejoindre la liste » n'ouvre pas l'aperçu du lien */
html.sur-mirza, html.sur-mirza * { cursor: grab; }
html.tient-mirza, html.tient-mirza * { cursor: grabbing !important; -webkit-user-select: none; user-select: none; }

.saut {
  position: fixed; left: 16px; top: -60px; z-index: 100; padding: 12px 18px; border-radius: 999px;
  background: var(--texte); color: #000; text-decoration: none; font-weight: 600; transition: top .2s var(--courbe);
}
.saut:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }

/* ---------------------------------------------------------------- Mirza (le calque) */
#scene-mirza { position: fixed; inset: 0; z-index: 30; pointer-events: none; transition: opacity .45s var(--courbe); }
/* La vidéo la montre déjà : une seule Mirza à l'écran */
.mirza-cachee #scene-mirza, .mirza-cachee .bulle { opacity: 0 !important; }
.mirza-sous-barre #scene-mirza { opacity: 0; }
.bulle {
  position: fixed; left: 0; top: 0; z-index: 35; pointer-events: none;
  max-width: min(260px, calc(100vw - 32px));
  padding: 10px 15px; border-radius: 18px 18px 18px 6px;
  background: var(--verre-plein); border: 1px solid var(--trait);
  -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
  font-size: 15px; font-weight: 600; letter-spacing: -.01em; line-height: 1.3;
  opacity: 0; transform: translate3d(var(--bx, -999px), var(--by, -999px), 0) scale(.86);
  transform-origin: 0 100%;
  transition: opacity .25s var(--courbe), scale .35s var(--courbe);
  will-change: transform;
}
.bulle.visible { opacity: 1; transform: translate3d(var(--bx), var(--by), 0) scale(1); }

/* ---------------------------------------------------------------- La barre */
.barre {
  position: fixed; z-index: 40; left: 50%; top: calc(10px + env(safe-area-inset-top, 0px));
  transform: translateX(-50%);
  width: min(calc(var(--large) + 28px), calc(100% - 20px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px))); height: 56px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 8px 0 14px; border-radius: 999px;
  background: var(--verre); border: 1px solid var(--trait);
  -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}
.marque { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 700; font-size: 19px; letter-spacing: -.02em; }
.marque img { border-radius: 8px; }

/* ---------------------------------------------------------------- Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 26px; border: 0; border-radius: 999px; cursor: pointer;
  font-size: 17px; font-weight: 600; letter-spacing: -.015em; white-space: nowrap; text-decoration: none;
  transition: transform .14s var(--courbe), background-color .2s, opacity .2s;
}
.btn:active { transform: scale(.97); }
.btn-plein { background: var(--bleu-bouton); color: #fff; }
.btn-verre { background: rgba(255, 255, 255, .1); color: var(--texte); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.btn-gris { background: var(--eleve); color: var(--texte); }
.btn-petit { height: 44px; padding: 0 18px; font-size: 15px; }
.btn-large { width: 100%; height: 58px; font-size: 18px; }
.btn .ic { margin-left: -6px; }
@media (hover: hover) and (pointer: fine) {
  .btn-plein:hover { background: #0a6ad8; }
  .btn-verre:hover { background: rgba(255, 255, 255, .16); }
  .btn-gris:hover { background: var(--eleve-2); }
  .mention a:hover, .pied a:hover { color: var(--texte); }
}
.ic { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------------------------------------------------------------- Typo commune */
.titre-section {
  font-size: clamp(36px, 5.4vw, 76px); font-weight: 700; letter-spacing: -.03em; line-height: 1.03;
  text-wrap: balance;
}
.texte-section { margin-top: 20px; font-size: clamp(17px, 1.45vw, 21px); line-height: 1.5; color: var(--doux); max-width: 46ch; text-wrap: pretty; }

section { position: relative; }

/* ---------------------------------------------------------------- 1. Haut de page */
.haut {
  min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: calc(84px + env(safe-area-inset-top, 0px)) var(--gouttiere) 48px; text-align: center;
}
.ancre { pointer-events: none; }
.ancre-haut { width: 100%; height: clamp(190px, 31svh, 300px); flex: none; }
.titre-haut {
  font-size: clamp(40px, 10.4vw, 104px); font-weight: 700; letter-spacing: -.034em; line-height: 1;
  margin-top: 8px;
}
.titre-haut .ligne { display: block; overflow: hidden; padding-bottom: .06em; }
.titre-haut .ligne > span { display: inline-block; }
.chapo { margin-top: 22px; max-width: 34ch; font-size: clamp(18px, 1.7vw, 22px); line-height: 1.42; color: var(--doux); text-wrap: balance; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }

/* L'entrée du haut de page : visible par défaut, l'animation part d'un état déjà lisible */
@media (prefers-reduced-motion: no-preference) {
  .js .titre-haut .ligne > span { animation: monte 1.1s var(--courbe) both; }
  .js .titre-haut .ligne:nth-child(2) > span { animation-delay: .09s; }
  .js .chapo { animation: apparait 1s .25s var(--courbe) both; }
  .js .actions { animation: apparait 1s .36s var(--courbe) both; }
  .js .barre { animation: barre 1s .1s var(--courbe) both; }
}
@keyframes monte { from { transform: translateY(105%); } to { transform: none; } }
@keyframes apparait { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes barre { from { opacity: 0; transform: translate(-50%, -14px); } to { opacity: 1; transform: translateX(-50%); } }

/* ---------------------------------------------------------------- La vidéo */
.video { padding: clamp(110px, 12vw, 150px) var(--gouttiere) 0; }
.lecteur {
  --s: 1; --r: 28px;
  position: relative; width: min(var(--large), 100%); margin: 0 auto; aspect-ratio: 16 / 9;
  border-radius: var(--r); overflow: hidden; background: #0c0c0d;
  box-shadow: inset 0 0 0 1px var(--trait);
  transform: scale(var(--s)); transform-origin: 50% 0;
}
.lecteur::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); pointer-events: none; }
.lecteur video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; opacity: 0; transition: opacity .5s; }
.lecteur[data-etat="pret"] video, .lecteur[data-etat="lecture"] video { opacity: 1; }
.attente { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 16px; text-align: center; transition: opacity .4s; }
.attente img { border-radius: 18px; box-shadow: 0 0 0 1px var(--trait); }
.attente { gap: 0; }
.attente img { margin-bottom: 20px; }
.attente-titre { font-size: clamp(19px, 2vw, 28px); font-weight: 700; letter-spacing: -.025em; }
.attente-texte { margin-top: 6px; font-size: clamp(15px, 1.3vw, 17px); color: var(--gris); }
.lecteur:not([data-etat="attente"]) .attente { opacity: 0; pointer-events: none; }
.lire {
  position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px;
  display: grid; place-items: center; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, .16); color: #fff;
  -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25);
  transition: transform .2s var(--courbe), opacity .3s;
}
.lire svg { margin-left: 4px; }
.lire:active { transform: scale(.94); }
.lecteur:not([data-etat="pret"]) .lire { opacity: 0; pointer-events: none; }
@media (hover: hover) and (pointer: fine) { .lire:hover { transform: scale(1.06); } }

/* ---------------------------------------------------------------- 2. Le concept */
.concept {
  width: min(var(--large), 100% - 2 * var(--gouttiere)); margin: 0 auto;
  padding: var(--section) 0 clamp(110px, 13vw, 180px);
  display: grid; gap: 24px;
}
.ancre-concept { height: 190px; }
.manifeste { font-size: clamp(28px, 3.9vw, 54px); font-weight: 650; letter-spacing: -.022em; line-height: 1.14; text-wrap: pretty; }
.manifeste .mot { color: var(--texte); transition: color .35s var(--courbe); }
.js:not(.statique) .manifeste .mot { color: #636366; }
.js:not(.statique) .manifeste .mot.allume { color: var(--texte); }
.manifeste-suite { margin-top: 32px; max-width: 38ch; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.45; color: var(--gris); }
@media (min-width: 900px) {
  .concept { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; align-items: start; }
  .ancre-concept { position: sticky; top: calc(50svh - 160px); height: 320px; }
}

/* ---------------------------------------------------------------- 3. La journée */
/* 30svh par moment (58, puis 36 le 30/10 au matin ; Camille : « ça reste trop longtemps sur le sommeil et les pas »).
   La carte du moment se remplit sur 85 % du moment, l'horloge avance à chaque cran de molette */
.journee { height: calc(var(--etapes) * 30svh + 100svh); }
.scene {
  position: sticky; top: 0; height: 100svh; overflow: hidden;
  width: min(var(--large), 100% - 2 * var(--gouttiere)); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr);
  padding: calc(84px + env(safe-area-inset-top, 0px)) 0 calc(24px + env(safe-area-inset-bottom, 0px));
}
.scene-gauche .titre-section { font-size: clamp(30px, 4.6vw, 64px); }
.domaines {
  display: flex; gap: 18px; margin: 18px calc(-1 * var(--gouttiere)) 0; padding: 0 var(--gouttiere);
  overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 calc(var(--gouttiere) + 20px), #000 calc(100% - 40px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 calc(var(--gouttiere) + 20px), #000 calc(100% - 40px), transparent);
}
.domaines::-webkit-scrollbar { display: none; }
.domaines li { flex: none; font-size: 15px; font-weight: 600; color: #636366; transition: color .3s var(--courbe); white-space: nowrap; }
.domaines li.passe { color: var(--gris); }
.domaines li.actif { color: var(--texte); }
.scene-gauche { min-width: 0; }
.scene-droite { display: flex; flex-direction: column; min-width: 0; min-height: 0; padding-top: 58px; }
.horloge-bloc { flex: none; }
.jour { font-size: clamp(17px, 1.6vw, 22px); font-weight: 600; color: var(--doux); letter-spacing: -.01em; }
.horloge {
  display: inline-flex; margin-top: 2px;
  font-size: clamp(84px, 13.5vw, 200px); font-weight: 700; letter-spacing: -.045em; line-height: 1;
  font-variant-numeric: tabular-nums; transition: opacity .8s var(--courbe), color .8s;
}
.horloge .chiffre { display: inline-block; height: 1em; overflow: hidden; }
.horloge .rouleau { display: block; transition: transform .45s var(--courbe); transform: translateY(calc(var(--d, 0) * -10%)); }
.horloge .rouleau span { display: block; height: 1em; line-height: 1; }
.horloge .deux-points { display: inline-block; height: 1em; line-height: .92; padding: 0 .02em; }
.scene.nuit .horloge { color: #636366; }
.pile { position: relative; flex: 1; min-height: 0; margin-top: clamp(18px, 3svh, 36px); max-width: 480px; }
.js:not(.statique) .pile .notif { position: absolute; left: 0; right: 0; top: 0; }
.notif {
  display: flex; gap: 12px; padding: 14px 16px 15px 14px; border-radius: 22px;
  background: #242426; border: 1px solid rgba(255, 255, 255, .06);   /* sur fond noir, le flou ne floutait rien et coûtait cher au téléphone */
  box-shadow: 0 12px 32px rgba(0, 0, 0, .5);
  transition: transform .75s var(--courbe), opacity .5s var(--courbe), filter .6s var(--courbe);
  transform-origin: 50% 0; will-change: transform, opacity;
}
.js:not(.statique) .notif { opacity: 0; transform: translateY(-30px) scale(.94); }
.notif-ic { flex: none; width: 38px; height: 38px; border-radius: 10px; }
.notif-corps { min-width: 0; flex: 1; }
.notif-haut { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--gris); font-weight: 500; line-height: 1.2; }
.notif-haut span { color: var(--doux); font-weight: 600; }
.notif-titre { margin-top: 3px; font-size: 15.5px; font-weight: 650; line-height: 1.3; letter-spacing: -.01em; }
.notif-texte { margin-top: 2px; font-size: 15px; line-height: 1.36; color: var(--doux); }
.notif-actions { display: flex; gap: 8px; margin-top: 10px; }
.pastille-action { display: inline-flex; align-items: center; height: 30px; padding: 0 14px; border-radius: 999px; background: rgba(255, 255, 255, .1); font-size: 14px; font-weight: 600; }
.pastille-action.bleue { background: var(--bleu-bouton); color: #fff; }
.phrase-nuit {
  position: absolute; left: 0; right: 0; bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  font-size: clamp(26px, 3.6vw, 48px); font-weight: 700; letter-spacing: -.035em; line-height: 1.08; text-wrap: balance;
  opacity: 0; transform: translateY(20px); filter: blur(8px);
  transition: opacity .8s var(--courbe), transform .8s var(--courbe), filter .8s var(--courbe);
  pointer-events: none;
}
.scene.nuit .phrase-nuit { opacity: 1; transform: none; filter: none; }
@media (min-width: 900px) {
  .scene { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: minmax(0, 1fr); column-gap: 48px; padding-top: 120px; padding-bottom: 48px; }
  .scene-gauche { padding-top: 12svh; }
  .domaines { flex-direction: column; gap: 10px; margin: 36px 0 0; padding: 0; overflow: visible; -webkit-mask-image: none; mask-image: none; }
  .domaines li { font-size: 19px; }
  .scene-droite { padding-top: 10svh; }
  .phrase-nuit { left: 0; right: auto; bottom: 64px; max-width: 13ch; }
  .scene.nuit .scene-gauche .domaines { opacity: .0; transition: opacity .6s; }
}
/* Téléphone : la nuit, on lit ce qu'elle fait (la carte le dit déjà : « Pendant que tu dors, je prépare demain »), sans la phrase par-dessus */
@media (max-width: 899px) {
  .js:not(.statique) .phrase-nuit { display: none; }
}

@media (min-width: 900px) and (max-height: 860px) {
  .scene { padding-top: 92px; padding-bottom: 28px; }
  .scene-gauche { padding-top: 4svh; }
  .scene-droite { padding-top: 6svh; }   /* la place de Mirza, assise sur l'horloge, sous la barre */
  .domaines { gap: 4px; margin-top: 24px; }
  .domaines li { font-size: 16px; line-height: 1.3; }
  .horloge { font-size: clamp(84px, min(13.5vw, 22svh), 200px); }
}
@media (max-width: 899px) and (max-height: 760px) {
  .scene-droite { padding-top: 44px; }
  .horloge { font-size: 68px; }
  .pile { margin-top: 12px; }
}
@media (max-width: 520px) { .pj-ligne > span:not(.prix) { display: none; } }

/* Version statique de la journée (mouvement réduit, ou sans JS) : une liste lisible, sans défilement accroché */
.sans-js .journee, .statique .journee { height: auto; }
.sans-js .scene, .statique .scene { position: static; height: auto; overflow: visible; padding-top: 100px; padding-bottom: 40px; }
.sans-js .horloge-bloc, .statique .horloge-bloc, .sans-js .domaines, .statique .domaines { display: none; }
.sans-js .pile, .statique .pile { display: grid; gap: 12px; max-width: 520px; }
.sans-js .phrase-nuit, .statique .phrase-nuit { position: static; opacity: 1; transform: none; filter: none; margin-top: 40px; grid-column: 1 / -1; }

/* ---------------------------------------------------------------- La journée : ce qu'elle a fait, sous chaque notification
   --p (0 → 1) avance avec le défilement pendant le moment (app.js). Rien ne bouge tout seul : on scrolle, ça se remplit.
   Sans JS ou en mouvement réduit, --p vaut 1 : tout est déjà rempli. */
@property --p { syntax: "<number>"; inherits: true; initial-value: 1; }
.notif { --p: 1; }
.js:not(.statique) .notif { transition: transform .75s var(--courbe), opacity .5s var(--courbe), filter .6s var(--courbe), --p .22s linear; }
.js:not(.statique) .notif:not(.active) .pj { display: none; }
.pj { margin-top: 12px; padding: 12px; border-radius: 14px; background: rgba(0, 0, 0, .3); }
.ap { opacity: clamp(0, (var(--p) - var(--a, 0)) * 7, 1); translate: 0 calc(clamp(0, (var(--a, 0) - var(--p)) * 60 + 6, 8) * 1px); }
.pj-legende { margin-top: 10px; font-size: 13.5px; line-height: 1.3; color: var(--doux); }
.pj-legende b, .pj-gros b { color: var(--texte); font-weight: 700; font-variant-numeric: tabular-nums; }
.pj-lignes .pj-legende { margin-top: 4px; }
.etiquette {
  flex: none; display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px;
  font-style: normal; font-size: 12px; font-weight: 650; white-space: nowrap; background: rgba(255, 255, 255, .1); color: var(--doux);
}
.etiquette.bleue { background: rgba(10, 132, 255, .18); color: var(--bleu-texte); }
.etiquette.verte { background: rgba(48, 209, 88, .16); color: var(--vert); }
.etiquette.orange { background: rgba(255, 159, 10, .16); color: var(--orange); }

/* Les barres (sommeil, vues) : la barre du jour monte avec --p */
.barres { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; align-items: end; }
.barres span { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.barres i { display: block; width: 100%; max-width: 24px; height: calc(var(--h) * 56px); border-radius: 6px; background: rgba(255, 255, 255, .16); }
.barres .cible i { height: calc(var(--h) * 56px * min(1, var(--p) * 1.3)); background: var(--bleu); }
.barres b { font-size: 11px; font-weight: 600; color: var(--gris); line-height: 1; }

/* Les lignes (mails, abonnements) */
.pj-lignes { display: grid; gap: 6px; }
.pj-ligne { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, .05); font-size: 13.5px; line-height: 1.25; }
.pj-ligne b { flex: none; font-weight: 650; }
.pj-ligne span { flex: 1 1 7em; min-width: 0; color: var(--gris); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pj-ligne .prix { color: var(--doux); font-variant-numeric: tabular-nums; }
.pj-ligne s { color: var(--gris); margin-right: 3px; }
.pj-ligne .etiquette { margin-left: auto; }

/* L'agenda : une frise de 10 h 30 à 14 h 30 (25 % par heure) */
.frise {
  position: relative; height: 50px; border-radius: 10px;
  background-image: linear-gradient(90deg, transparent calc(50% - .5px), rgba(255, 255, 255, .1) 0 calc(50% + .5px), transparent 0);
  background-size: 25% 100%;
}
.bloc {
  position: absolute; top: 6px; height: 38px; width: calc(25% - 4px); padding: 0 9px; border-radius: 8px;
  display: flex; align-items: center; font-size: 12.5px; font-weight: 650; white-space: nowrap; overflow: hidden;
}
.bloc-rdv { left: calc(12.5% + 2px + 12.5% * min(1, var(--p) * 2.2)); background: rgba(255, 255, 255, .16); }
.bloc-dej { left: calc(50% + 2px + 12.5% * clamp(0, (var(--p) - .45) * 2.5, 1)); background: rgba(10, 132, 255, .18); color: var(--bleu-texte); box-shadow: inset 0 0 0 1px rgba(10, 132, 255, .55); }
.bloc .court { display: none; }
@media (max-width: 520px) { .bloc { padding: 0 7px; font-size: 12px; } .bloc .long { display: none; } .bloc .court { display: inline; } }
.heures { position: relative; height: 14px; margin-top: 5px; font-size: 11px; line-height: 1; color: var(--gris); }
.heures span { position: absolute; top: 0; transform: translateX(-50%); }
.heures span:nth-child(1) { left: 12.5%; } .heures span:nth-child(2) { left: 37.5%; } .heures span:nth-child(3) { left: 62.5%; } .heures span:nth-child(4) { left: 87.5%; }

/* L'anneau (concentration, pas) et les puces */
.pj-concentration { display: flex; align-items: center; gap: 14px; }
.anneau { position: relative; flex: none; width: 60px; height: 60px; display: grid; place-items: center; }
.anneau::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(var(--bleu) calc(var(--v) * min(1, var(--p) * 1.25) * 1turn), rgba(255, 255, 255, .12) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 5px));
}
.anneau i { font-style: normal; font-size: 12.5px; font-weight: 700; }
.pj-gros { font-size: 14px; line-height: 1.3; color: var(--doux); }
.pj-gros b { font-size: 20px; }
.puces { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.puces span { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 999px; background: rgba(255, 255, 255, .08); font-size: 12px; font-weight: 600; color: var(--doux); white-space: nowrap; }

/* La jauge (nutrition) */
.jauge { height: 10px; border-radius: 999px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.jauge i { display: block; height: 100%; width: calc(var(--v) * min(1, var(--p) * 1.4) * 100%); border-radius: inherit; background: var(--bleu); }

/* Le visa : les jours passés sur place, et ceux de l'année pays par pays (le côté nomade, Camille 30/10) */
.visa-tete { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 13px; color: var(--doux); }
.visa-tete > b { font-size: 13.5px; color: var(--texte); }
.visa-tete span b { font-size: 15px; color: var(--orange); font-variant-numeric: tabular-nums; }
.jauge-visa { margin-top: 8px; }
.jauge-visa i { background: var(--orange); }
.visa-label { margin-top: 12px; font-size: 12px; font-weight: 600; color: var(--gris); }
.pj-visa .puces { margin-top: 6px; }

/* L'espagnol : on peut dire non, elle le reproposera (Camille 30/10 : « pas le couteau sous la gorge ») */
.notif-actions:has(.choix-auto) { --c: clamp(0, (var(--p) - .5) * 9, 1); }
.notif-actions:has(.choix-auto) .bleue { background: color-mix(in srgb, rgba(255, 255, 255, .1) calc(var(--c) * 100%), var(--bleu-bouton)); }
.pastille-action.choix-auto {
  background: color-mix(in srgb, var(--texte) calc(var(--c) * 100%), rgba(255, 255, 255, .1));
  color: color-mix(in srgb, #000 calc(var(--c) * 100%), var(--texte));
}
.pj-reponse { display: flex; align-items: center; gap: 9px; padding: 10px 12px; font-size: 14px; line-height: 1.3; color: var(--doux); }
.pj-reponse img { flex: none; border-radius: 5px; }

/* Le coucher */
.pj-coucher { display: grid; gap: 6px; }
.coucher-ligne { display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, .05); font-size: 13.5px; color: var(--gris); }
.coucher-ligne b { color: var(--texte); font-weight: 650; font-variant-numeric: tabular-nums; }

/* Le contact (proches) */
.pj-contact { display: flex; gap: 12px; align-items: flex-start; }
.avatar { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--eleve-2); font-weight: 700; }
.contact-nom { font-size: 14px; font-weight: 650; line-height: 1.3; }
.contact-nom span { color: var(--gris); font-weight: 500; }
.note { margin-top: 6px; padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, .06); font-size: 13px; line-height: 1.35; color: var(--doux); }

/* Les cartes (langues) */
.pj-cartes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.carte { display: grid; gap: 2px; padding: 10px 6px; border-radius: 10px; background: rgba(255, 255, 255, .07); text-align: center; font-size: 15px; font-weight: 650; }
.carte b { font-size: 12px; font-weight: 600; color: var(--gris); }

/* Les coches (la nuit) */
.pj-coches { display: grid; gap: 8px; }
.pj-coches p { position: relative; padding-left: 28px; font-size: 13.5px; line-height: 1.3; }
.pj-coches p::before { content: ""; position: absolute; left: 0; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%; background: var(--vert); }
.pj-coches p::after { content: ""; position: absolute; left: 6.5px; top: 50%; width: 4px; height: 8px; margin-top: -6px; border: solid #000; border-width: 0 2px 2px 0; transform: rotate(45deg); }
/* La nuit : chaque tâche tourne (anneau bleu), puis se coche quand le défilement passe son --f */
.pj-travail p { --k: clamp(0, (var(--p) - var(--f, 0)) * 14, 1); color: color-mix(in srgb, var(--texte) calc(50% + var(--k) * 50%), transparent); }
.pj-travail p::before { background: color-mix(in srgb, var(--vert) calc(var(--k) * 100%), transparent); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--bleu) calc((1 - var(--k)) * 100%), transparent); }
.pj-travail p::after { opacity: var(--k); }

/* ---------------------------------------------------------------- Les réseaux : cinq tuiles */
.reseaux {
  width: min(var(--large), 100% - 2 * var(--gouttiere)); margin: 0 auto;
  padding: var(--section) 0 0;
}
.reseaux-tete { max-width: 780px; }
.bento { display: grid; grid-template-columns: minmax(0, 1fr); gap: 56px 16px; margin-top: var(--place-mirza); }   /* la place de Mirza, assise sur la tuile, sans cacher le texte */
.tuile {
  position: relative; min-width: 0; display: flex; flex-direction: column; gap: 16px;
  padding: 22px; border-radius: 28px; background: var(--panneau); border: 1px solid var(--trait);
}
.tuile-titre { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; margin: 0; }
.tuile-titre span { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--eleve); color: var(--doux); font-size: 13px; }
.mot-mirza { display: flex; gap: 10px; align-items: flex-start; margin-top: auto; padding: 12px 14px; border-radius: 16px; background: var(--eleve); font-size: 15px; line-height: 1.4; }
.mot-mirza img { flex: none; margin-top: 1px; border-radius: 6px; }
.tuile-pied { display: flex; align-items: center; gap: 10px; margin-top: auto; font-size: 13.5px; color: var(--gris); }

.chiffres-tete { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.chiffres-grand { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 15px; color: var(--doux); }
.chiffres-grand b { font-size: clamp(36px, 4.2vw, 52px); font-weight: 700; letter-spacing: -.035em; line-height: 1; color: var(--texte); font-variant-numeric: tabular-nums; }
.chiffres-grand .etiquette { align-self: center; }
/* Les logos des réseaux, en petites icônes d'appli. Seule exception à « un seul bleu » : ce sont leurs couleurs à eux, pas les nôtres. */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.logo { flex: none; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; }
.logo svg { width: 64%; height: 64%; fill: #fff; overflow: visible; }
.logo-ig { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.logo-tt { background: #000; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
.logo-tt .tt-c { fill: #25f4ee; transform: translate(-1.1px, -.9px); }
.logo-tt .tt-r { fill: #fe2c55; transform: translate(1.1px, .9px); }
.logo-yt { background: #fff; }
.logo-yt svg { width: 72%; height: 72%; fill: #ff0033; }
.avec-logo { display: inline-flex; align-items: center; gap: 7px; min-width: 0; }
.avec-logo .logo { width: 18px; height: 18px; border-radius: 5px; }
.plateformes { display: flex; flex-wrap: wrap; gap: 8px; }
.plateformes li { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px 0 7px; border-radius: 999px; background: var(--eleve); font-size: 13.5px; font-weight: 600; color: var(--doux); }
.plateformes b { color: var(--texte); font-variant-numeric: tabular-nums; }
.graphe { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; align-items: end; }
.graphe span { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.graphe i { display: block; width: 100%; max-width: 60px; height: calc(var(--h) * 120px); border-radius: 10px; background: var(--eleve-2); transform-origin: 50% 100%; }
.graphe .cible i { background: var(--bleu); }
.graphe b { font-size: 12.5px; font-weight: 600; color: var(--gris); line-height: 1; }
.graphe .cible b { color: var(--texte); }

.idees { display: grid; gap: 8px; }
.idees li { display: grid; justify-items: start; gap: 7px; padding: 12px 14px; border-radius: 16px; background: var(--eleve); }
.idees p { font-size: 15.5px; font-weight: 600; line-height: 1.3; }

.script { display: grid; gap: 3px; padding: 16px; border-radius: 16px; background: var(--eleve); }
.script-label { margin-top: 10px; font-size: 12px; font-weight: 650; color: #a1a1a6; }
.script-label:first-child { margin-top: 0; }
.script-accroche { font-size: 17px; font-weight: 650; line-height: 1.3; letter-spacing: -.01em; }
.script-accroche .pas-encore { color: transparent; }
.script-accroche:not(.fini) > span:first-child::after { content: ""; display: inline-block; width: 2px; height: 1.05em; margin-left: 1px; vertical-align: -.15em; background: var(--bleu); }
.script-plan { counter-reset: s; display: grid; gap: 1px; font-size: 14.5px; color: var(--doux); }
.script-plan li::before { counter-increment: s; content: counter(s) ". "; color: var(--gris); }
.script-texte { font-size: 14.5px; line-height: 1.4; color: var(--doux); }

.semaine { display: grid; gap: 6px; }
.semaine li { display: grid; grid-template-columns: 34px 42px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 14px; background: var(--eleve); font-size: 14px; }
.semaine time { font-size: 13px; color: #a1a1a6; font-variant-numeric: tabular-nums; }
.semaine span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.semaine li.occupe { background: transparent; box-shadow: inset 0 0 0 1px var(--trait); color: var(--gris); }

.messages { display: grid; gap: 6px; }
.messages li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 10px 12px; border-radius: 14px; background: var(--eleve); }
.messages b { font-size: 13px; font-weight: 600; color: #a1a1a6; }
.messages span { grid-column: 1; font-size: 14.5px; line-height: 1.3; }
.messages .etiquette { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.messages .messages-reste { display: flex; align-items: flex-start; gap: 8px; padding: 2px 12px; background: none; font-size: 13.5px; color: var(--gris); }
.messages-reste .logo { margin-top: 1px; }
.brouillon { margin-top: auto; padding: 14px; border-radius: 16px; background: var(--eleve); box-shadow: inset 0 0 0 1px rgba(10, 132, 255, .5); }
.brouillon-label { font-size: 12px; font-weight: 650; color: var(--bleu-texte); }
.brouillon-texte { margin-top: 4px; font-size: 15px; line-height: 1.38; }
.brouillon-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }

@media (min-width: 700px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tuile-chiffres { grid-column: 1 / -1; }
  .tuile { padding: 24px; }
}
@media (min-width: 1000px) {
  .bento { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
  .tuile-chiffres { grid-column: span 4; }
  .tuile-idees, .tuile-script, .tuile-semaine, .tuile-messages { grid-column: span 2; }
  .graphe i { height: calc(var(--h) * 175px); }
}
@media (max-width: 699px) {
  .graphe { gap: 6px; }
  .graphe i { height: calc(var(--h) * 96px); }
}

/* Les tuiles arrivent en montant, puis leur contenu se remplit (barres, lignes) */
@media (prefers-reduced-motion: no-preference) {
  .js:not(.statique) .tuile { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--courbe), transform .9s var(--courbe); transition-delay: calc(var(--i) * 70ms); }
  .js:not(.statique) .tuile.vu { opacity: 1; transform: none; }
  .js:not(.statique) .graphe i { transform: scaleY(0); transition: transform 1.1s var(--courbe); }
  .js:not(.statique) .tuile.vu .graphe i { transform: none; }
  .graphe span:nth-child(2) i { transition-delay: .35s; } .graphe span:nth-child(3) i { transition-delay: .41s; }
  .graphe span:nth-child(4) i { transition-delay: .47s; } .graphe span:nth-child(5) i { transition-delay: .53s; }
  .graphe span:nth-child(6) i { transition-delay: .59s; } .graphe span:nth-child(7) i { transition-delay: .65s; }
  .graphe span:nth-child(1) i { transition-delay: .29s; }
  .js:not(.statique) :is(.idees li, .semaine li, .messages li, .brouillon, .script-plan li, .tuile-pied) { opacity: 0; transform: translateY(8px); transition: opacity .6s var(--courbe), transform .6s var(--courbe); }
  .js:not(.statique) .tuile.vu :is(.idees li, .semaine li, .messages li, .brouillon, .script-plan li, .tuile-pied) { opacity: 1; transform: none; }
  .tuile.vu :is(.idees, .semaine, .messages, .script-plan) li:nth-child(1) { transition-delay: .3s; }
  .tuile.vu :is(.idees, .semaine, .messages, .script-plan) li:nth-child(2) { transition-delay: .42s; }
  .tuile.vu :is(.idees, .semaine, .messages, .script-plan) li:nth-child(3) { transition-delay: .54s; }
  .tuile.vu :is(.idees, .semaine, .messages, .script-plan) li:nth-child(4) { transition-delay: .66s; }
  .tuile.vu :is(.idees, .semaine, .messages, .script-plan) li:nth-child(5) { transition-delay: .78s; }
  .tuile.vu .brouillon { transition-delay: .9s; }
  .tuile.vu .tuile-pied { transition-delay: 2.6s; }
}

/* ---------------------------------------------------------------- La voix et la mémoire */
.voix {
  width: min(var(--large), 100% - 2 * var(--gouttiere)); margin: 0 auto;
  padding: var(--section) 0 0;
  display: grid; gap: 28px;
}
/* Une conversation qui se déroule quand on arrive : tu parles, elle répond, elle retient. Le samedi, elle s'en sert. */
.voix-texte { display: contents; }
.voix .titre-section { order: 1; }
.voix .texte-section { order: 2; }
.voix-scene { order: 3; padding-top: var(--place-mirza); }
.memoire { order: 4; }
.conversation {
  display: flex; flex-direction: column; gap: 10px; max-width: 520px;
  padding: 20px; border-radius: 28px; background: var(--panneau); border: 1px solid var(--trait);
}
.conv-jour { align-self: center; margin: 6px 0 2px; font-size: 12.5px; font-weight: 600; color: var(--gris); }
.conv-jour:first-child { margin-top: 0; }
.msg { position: relative; max-width: 84%; padding: 9px 14px 11px; border-radius: 20px; font-size: 16px; line-height: 1.38; }
.msg-qui { display: flex; align-items: center; gap: 5px; margin-bottom: 2px; font-size: 12px; font-weight: 600; color: var(--gris); }
.msg-qui .ic { stroke-width: 2; }
.msg-toi { align-self: flex-end; background: var(--eleve-2); border-bottom-right-radius: 6px; }
.msg-mirza { align-self: flex-start; background: var(--eleve); border-bottom-left-radius: 6px; }
.msg-toi .msg-qui { color: var(--doux); }
.msg mark { background: rgba(10, 132, 255, .22); color: var(--texte); border-radius: 5px; padding: 0 3px; -webkit-box-decoration-break: clone; box-decoration-break: clone; white-space: nowrap; }
.points-ecrit { position: absolute; left: 14px; bottom: 15px; display: none; gap: 4px; }
.points-ecrit i { width: 7px; height: 7px; border-radius: 50%; background: var(--gris); animation: point 1s infinite ease-in-out; }
.points-ecrit i:nth-child(2) { animation-delay: .15s; } .points-ecrit i:nth-child(3) { animation-delay: .3s; }
.js:not(.statique) .msg, .js:not(.statique) .conv-jour { opacity: 0; transform: translateY(10px); transition: opacity .45s var(--courbe), transform .45s var(--courbe); }
.js:not(.statique) .msg.ecrit, .js:not(.statique) .msg.vu, .js:not(.statique) .conv-jour.vu { opacity: 1; transform: none; }
.js:not(.statique) .msg.ecrit > p { opacity: 0; }
.js:not(.statique) .msg.ecrit .points-ecrit { display: inline-flex; }
.msg > p { transition: opacity .35s var(--courbe); }
.memoire { margin-top: 36px; }
.memoire-titre { font-size: 15px; font-weight: 600; color: var(--gris); }
.memoire-liste { display: grid; gap: 8px; margin-top: 12px; }
.memoire-liste li {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-radius: 16px; background: var(--panneau);
  font-size: 17px; line-height: 1.35;
  transition: opacity .6s var(--courbe), transform .6s var(--courbe), box-shadow .6s var(--courbe);
}
.memoire-nouveau { box-shadow: inset 0 0 0 1px rgba(10, 132, 255, .55); }
.js:not(.statique) .memoire-liste li { opacity: 0; transform: translateY(10px); }
.js:not(.statique) .memoire-liste li.vu { opacity: 1; transform: none; }
@media (min-width: 900px) {
  .voix { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); grid-template-rows: auto auto 1fr; column-gap: 64px; row-gap: 0; align-items: start; }
  .voix .titre-section { font-size: clamp(36px, 4.6vw, 64px); }
  .voix .titre-section, .voix .texte-section, .memoire { grid-column: 1; }
  .voix-scene { grid-column: 2; grid-row: 1 / span 3; justify-self: end; width: 100%; max-width: 520px; }
}

/* ---------------------------------------------------------------- 4. La confiance */
.confiance {
  width: min(var(--large), 100% - 2 * var(--gouttiere)); margin: 0 auto;
  padding: var(--section) 0 0;
  display: grid; gap: 56px;
}
.confiance-demo { padding-top: var(--place-mirza); }
.feuille {
  position: relative; max-width: 430px; padding: 22px; border-radius: 28px;
  background: var(--verre-plein); border: 1px solid var(--trait);
  -webkit-backdrop-filter: blur(30px) saturate(180%); backdrop-filter: blur(30px) saturate(180%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .05);
}
.feuille-tete { display: flex; align-items: center; gap: 12px; font-size: 17px; font-weight: 650; letter-spacing: -.015em; }
.feuille-tete img { border-radius: 9px; }
.feuille-message {
  margin-top: 16px; padding: 14px 16px; border-radius: 18px; background: var(--eleve);
  font-size: 17px; line-height: 1.4; outline: none; min-height: 52px;
}
.feuille-message[contenteditable="true"] { box-shadow: 0 0 0 2px var(--bleu); }
.feuille-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.feuille-actions .btn { width: 100%; height: 50px; }
.feuille-fait { display: none; align-items: center; gap: 12px; margin-top: 16px; min-height: 50px; font-size: 16px; color: var(--doux); }
.feuille-fait p { flex: 1; }
.feuille[data-etat="fait"] .feuille-actions { display: none; }
.feuille[data-etat="fait"] .feuille-fait { display: flex; animation: apparait .5s var(--courbe) both; }
.coche { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--vert); color: #000; }
.lien { border: 0; background: none; min-height: 44px; padding: 8px 4px; font-size: 16px; font-weight: 600; color: var(--bleu-texte); cursor: pointer; }
.note-demo { margin-top: 14px; font-size: 13px; color: var(--gris); }
.engagements { display: grid; gap: 22px; margin-top: 40px; max-width: 44ch; }
.engagements li { display: flex; gap: 14px; align-items: flex-start; font-size: 18px; line-height: 1.4; }
.engagements .ic { margin-top: 1px; color: var(--gris); }
@media (min-width: 900px) {
  .confiance { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: center; }
}

/* ---------------------------------------------------------------- Pourquoi Mirza (V1.3) : une lettre de Camille, signée de sa photo.
   Mirza se pose sur la photo. Sur ordi, la photo reste à gauche pendant qu'on lit ; sur téléphone : le titre, la photo, puis la lettre */
.pourquoi {
  width: min(var(--large), 100% - 2 * var(--gouttiere)); margin: 0 auto;
  padding: var(--section) 0 0;
  display: grid; gap: 0;
}
.auteur { margin: 0; padding-top: var(--place-mirza); }
/* height: auto, sinon l'attribut height="512" l'emporte sur aspect-ratio */
.auteur img {
  width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 30%;
  border-radius: 28px; background: var(--panneau); box-shadow: 0 0 0 1px var(--trait);
}
.auteur figcaption { display: grid; gap: 2px; margin-top: 14px; font-size: 15px; color: var(--gris); }
.auteur strong { font-size: 17px; font-weight: 650; letter-spacing: -.015em; color: var(--texte); }
.lettre { margin-top: 40px; max-width: 34ch; font-size: clamp(20px, 1.85vw, 25px); line-height: 1.5; letter-spacing: -.014em; text-wrap: pretty; }
.lettre p + p { margin-top: 1.05em; }
.lettre .signature { margin-top: 1.4em; font-weight: 650; }
.lettre .ps { margin-top: 2.2em; font-size: clamp(15px, 1.25vw, 17px); line-height: 1.5; color: var(--gris); }
@media (min-width: 900px) {
  .pourquoi { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: auto 1fr; column-gap: 72px; align-items: start; }
  .pourquoi .titre-section { grid-column: 2; grid-row: 1; }
  .auteur { grid-column: 1; grid-row: 1 / span 2; position: sticky; top: 84px; max-width: 340px; }
  .auteur img { aspect-ratio: 4 / 5; object-position: 62% 50%; }
  .lettre { grid-column: 2; grid-row: 2; }
}
@media (min-width: 900px) and (max-height: 760px) { .auteur { max-width: 280px; } }   /* écran peu haut : la photo et son nom restent entiers */
@media (max-width: 899px) {
  .pourquoi .titre-section { margin-bottom: 8px; }
  .lettre { margin-top: 32px; }
}

/* ---------------------------------------------------------------- 5. L'inscription */
.liste {
  width: min(760px, 100% - 2 * var(--gouttiere)); margin: 0 auto;
  padding: var(--section) 0 clamp(80px, 10vw, 140px);
}
.liste-tete .texte-section { max-width: 40ch; }
.panneau {
  position: relative; margin-top: var(--place-mirza); border-radius: 30px; background: var(--panneau);
  padding: clamp(20px, 4.5vw, 40px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05);
}
.form { display: grid; gap: 26px; }
.champs-duo { display: grid; gap: 20px; }
@media (min-width: 640px) { .champs-duo { grid-template-columns: 1fr 1.4fr; } }
.champ { display: grid; gap: 8px; align-content: start; border: 0; min-width: 0; }
.champ > label, legend { font-size: 15px; font-weight: 600; color: var(--doux); padding: 0; }
.champ > .consent { font-weight: 400; }
legend { margin-bottom: 12px; }
.facultatif { display: inline-block; font-weight: 400; color: var(--gris); margin-left: 6px; white-space: nowrap; }
.champ input[type="text"], .champ input[type="email"] {
  width: 100%; height: 54px; padding: 0 16px; border-radius: 14px; border: 1px solid transparent;
  background: var(--eleve); color: var(--texte); font-size: 17px; letter-spacing: -.01em;
  transition: border-color .2s, box-shadow .2s, background-color .2s; -webkit-appearance: none; appearance: none;
}
.champ input:focus { outline: none; border-color: var(--bleu); box-shadow: 0 0 0 4px rgba(10, 132, 255, .22); background: #303033; }
.champ input[aria-invalid="true"] { border-color: var(--rouge); }
.champ input[aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(255, 69, 58, .2); }
.erreur { display: none; align-items: flex-start; gap: 6px; font-size: 14px; line-height: 1.35; color: #ff6b61; font-weight: 500; }
.erreur.visible { display: flex; animation: apparait .35s var(--courbe) both; }
.erreur.visible::before {
  content: "!"; flex: none; display: grid; place-items: center; width: 17px; height: 17px; margin-top: 1px; border-radius: 50%;
  background: var(--rouge); color: #000; font-size: 12px; font-weight: 800;
}
.choix { display: flex; flex-wrap: wrap; gap: 8px; }
.puce { position: relative; cursor: pointer; }
.puce input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.puce span {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: 999px;
  background: var(--eleve); font-size: 15px; font-weight: 500; letter-spacing: -.01em;
  transition: background-color .2s var(--courbe), color .2s, transform .14s var(--courbe);
}
.puce:active span { transform: scale(.96); }
.puce input:checked + span { background: var(--texte); color: #000; font-weight: 600; }
.puce input:focus-visible + span { outline: 2px solid var(--bleu); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .puce:hover input:not(:checked) + span { background: var(--eleve-2); } }
.piege { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: 14px; align-items: flex-start; cursor: pointer; font-size: 15px; line-height: 1.45; color: var(--doux); }
.consent input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.consent .case {
  flex: none; display: grid; place-items: center; width: 26px; height: 26px; margin-top: -1px; border-radius: 8px;
  border: 1.5px solid rgba(255, 255, 255, .32); color: transparent; transition: background-color .2s, border-color .2s, color .2s, transform .14s;
}
.consent:active .case { transform: scale(.92); }
.consent input:checked + .case { background: var(--texte); border-color: var(--texte); color: #000; }
.consent input:focus-visible + .case { outline: 2px solid var(--bleu); outline-offset: 2px; }
#champ-consent.invalide .case { border-color: var(--rouge); }
.btn .points { display: none; gap: 5px; }
.btn .points i { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: point 1s infinite ease-in-out; }
.btn .points i:nth-child(2) { animation-delay: .15s; }
.btn .points i:nth-child(3) { animation-delay: .3s; }
@keyframes point { 0%, 80%, 100% { opacity: .35; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.btn.envoi { pointer-events: none; }
.btn.envoi .btn-texte { display: none; }
.btn.envoi .points { display: inline-flex; }
.erreur-generale { justify-content: center; margin-top: -12px; }
.mention { font-size: 13px; line-height: 1.5; color: var(--gris); }
.mention a { color: var(--doux); text-underline-offset: 3px; }
.succes { display: none; text-align: center; padding: 28px 0 18px; outline: none; }
.panneau[data-etat="succes"] .form { display: none; }
.panneau[data-etat="succes"] .succes { display: grid; justify-items: center; gap: 10px; animation: apparait .7s var(--courbe) both; }
.coche-grande { width: 60px; height: 60px; margin-bottom: 8px; }
.succes-titre { font-size: clamp(30px, 4vw, 44px); font-weight: 700; letter-spacing: -.035em; line-height: 1.08; }
.succes-texte { font-size: 17px; color: var(--doux); max-width: 32ch; text-wrap: balance; }

/* ---------------------------------------------------------------- Le bas de page */
.pied {
  width: min(var(--large), 100% - 2 * var(--gouttiere)); margin: 0 auto;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px;
  padding: 28px 0 calc(32px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--trait);
  font-size: 14px; color: var(--gris);
}
.pied-marque { display: inline-flex; align-items: center; gap: 10px; }
.pied-marque img { border-radius: 6px; }
.pied a { color: var(--doux); text-underline-offset: 3px; }
.engagements li span, .feuille-message, .pj-legende, .notif-texte, .mot-mirza span, .msg p, .memoire-liste li span, .texte-section { text-wrap: pretty; }
.notif-titre { text-wrap: balance; }
.pied-liens { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }

/* ---------------------------------------------------------------- Apparitions au défilement */
@media (prefers-reduced-motion: no-preference) {
  .js .revele { opacity: 0; transition: opacity .5s var(--courbe); }
  .js .revele.vu { opacity: 1; }
}

@media (prefers-reduced-transparency: reduce) {
  .barre, .bulle, .notif, .feuille, .btn-verre, .lire { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--panneau); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Captures automatiques (onglet en arrière-plan) : les états finaux tout de suite, sans transition */
html.capture *, html.capture *::before, html.capture *::after { transition: none !important; animation: none !important; }

/* Téléphone : le titre d'abord, puis la scène, puis le détail */
@media (max-width: 899px) {
  .concept { padding-top: 72px; }
  .ancre-concept { height: 120px; }
  .voix { gap: 0; }
  .confiance-texte { order: -1; }
  .confiance { gap: 0; }
}
