/* Dix minutes · système de design « Nuit et sable » */

@font-face {
  font-family: "Dix Chiffres";
  src: url("polices/inter-chiffres.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0030-0039;
  size-adjust: 92%;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("polices/atkinson-hyperlegible-next.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- Jetons ---------- */
:root {
  color-scheme: light;
  --fond: #F4F2ED;
  --surface: #FFFFFF;
  --surface-2: #EBE8E1;
  --trait: #DCD7CC;
  --contour: #8A8478;
  --encre: #1B2130;
  --encre-2: #4E5466;
  --encre-3: #5F6472;
  --accent: #2F3C73;
  --accent-appui: #263163;
  --sur-accent: #FFFFFF;
  --accent-texte: #2F3C73;
  --accent-doux: #E3E5F0;
  --lueur: #B86B22;
  --lueur-texte: #8E4F14;
  --lueur-doux: #F6EDE4;
  --secours: #B3261E;
  --secours-texte: #B3261E;
  --voile: rgb(14 18 32 / .40);
  --ombre-1: 0 1px 2px rgb(27 33 48 / .06), 0 1px 1px rgb(27 33 48 / .04);
  --ombre-2: 0 2px 8px rgb(27 33 48 / .08), 0 1px 2px rgb(27 33 48 / .06);
  --ombre-3: 0 12px 32px rgb(27 33 48 / .16), 0 2px 6px rgb(27 33 48 / .08);
  --nuit-profonde: #1D2547;
  --lune: #F1E7D3;
  --vague: #2F3C73;
  --orbe: rgb(47 60 115 / .08);
  --orbe-bord: rgb(47 60 115 / .6);

  --police: "Dix Chiffres", "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --marge: clamp(16px, 5vw, 20px);
  --r-champ: 12px;
  --r-bouton: 14px;
  --r-carte: 20px;
  --r-feuille: 28px;
  --d1: 100ms;
  --d2: 180ms;
  --d3: 280ms;
  --d4: 420ms;
  --d5: 700ms;
  --c-standard: cubic-bezier(.2, 0, 0, 1);
  --c-entree: cubic-bezier(.05, .7, .1, 1);
  --c-sortie: cubic-bezier(.3, 0, .8, .15);
  --c-feuille: cubic-bezier(.32, .72, 0, 1);
  --c-douce: cubic-bezier(.22, 1, .36, 1);
  --c-souffle: cubic-bezier(.37, 0, .63, 1);
  --mouvement: 1;
  --barre: 64px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --fond: #0E1220;
    --surface: #171C2B;
    --surface-2: #20263A;
    --trait: #2A3146;
    --contour: #6F7690;
    --encre: #ECE9E2;
    --encre-2: #B3B7C4;
    --encre-3: #9196A7;
    --accent: #5F6DBD;
    --accent-appui: #5463B0;
    --accent-texte: #AEB8EE;
    --accent-doux: #252D4D;
    --lueur: #E3B26E;
    --lueur-texte: #E3B26E;
    --lueur-doux: #343134;
    --secours-texte: #FF8A80;
    --voile: rgb(0 0 0 / .60);
    --ombre-1: 0 0 #0000;
    --ombre-2: 0 0 #0000;
    --ombre-3: 0 0 0 1px rgb(255 255 255 / .06);
    --vague: #F1E7D3;
    --orbe: rgb(174 184 238 / .18);
    --orbe-bord: rgb(174 184 238 / .6);
  }
}

:root[data-theme="dark"],
.nuit {
  color-scheme: dark;
  --fond: #0E1220;
  --surface: #171C2B;
  --surface-2: #20263A;
  --trait: #2A3146;
  --contour: #6F7690;
  --encre: #ECE9E2;
  --encre-2: #B3B7C4;
  --encre-3: #9196A7;
  --accent: #5F6DBD;
  --accent-appui: #5463B0;
  --accent-texte: #AEB8EE;
  --accent-doux: #252D4D;
  --lueur: #E3B26E;
  --lueur-texte: #E3B26E;
  --lueur-doux: #343134;
  --secours-texte: #FF8A80;
  --voile: rgb(0 0 0 / .60);
  --ombre-1: 0 0 #0000;
  --ombre-2: 0 0 #0000;
  --ombre-3: 0 0 0 1px rgb(255 255 255 / .06);
  --vague: #F1E7D3;
  --orbe: rgb(174 184 238 / .18);
  --orbe-bord: rgb(174 184 238 / .6);
}

:root[data-calme] { --mouvement: 0; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html.couche-ouverte, html.couche-ouverte body { overflow: hidden; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--fond);
}
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--fond);
  color: var(--encre);
  font: 400 1.0625rem/1.53 var(--police);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  overflow-wrap: break-word;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--accent-texte); text-underline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
img, svg { display: block; }
:focus-visible { outline: 3px solid var(--accent-texte); outline-offset: 2px; }
[tabindex="-1"]:focus { outline: none; }
.lecteur {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
a.lecteur:focus {
  position: fixed !important;
  top: 8px; left: 8px;
  width: auto; height: auto;
  margin: 0; padding: 10px 14px;
  overflow: visible; clip: auto; white-space: normal;
  z-index: 1000;
  background: var(--surface); color: var(--encre);
  border-radius: 12px; box-shadow: var(--ombre-3);
}
.ico { width: 24px; height: 24px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.ico-20 { width: 20px; height: 20px; }
.ico-26 { width: 26px; height: 26px; }

/* ---------- Structure ---------- */
.app { min-height: 100vh; min-height: 100dvh; }
.entete {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: calc(env(safe-area-inset-top, 0px) + 8px) var(--marge) 8px;
  background: var(--fond);
}
.entete-titre {
  font-size: .9375rem;
  font-weight: 600;
  color: var(--encre-2);
  letter-spacing: .01em;
  opacity: 0;
  transition: opacity var(--d2) linear;
}
.entete.a-defile .entete-titre { opacity: 1; }
.entete.a-defile { box-shadow: 0 1px 0 var(--trait); }

.bouton-aide {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  min-width: 44px;
  padding: 0 14px 0 10px;
  border: 0;
  border-radius: 999px;
  background: var(--surface);
  color: var(--encre);
  font-weight: 600;
  font-size: .9375rem;
  box-shadow: var(--ombre-1), inset 0 0 0 1px var(--trait);
  transition: transform var(--d2) var(--c-standard);
}
.bouton-aide:active { transform: scale(calc(1 - .03 * var(--mouvement))); }
.bouton-aide .ico { color: var(--lueur-texte); }

.contenu {
  width: 100%;
  max-width: 36rem;
  margin: 0 auto;
  padding: 4px var(--marge) calc(var(--barre) + env(safe-area-inset-bottom, 0px) + 32px);
}
.vue { display: none; }
.vue.est-active { display: block; animation: fondu var(--d2) linear both; }
@keyframes fondu { from { opacity: 0; } }

.titre-voix {
  font-size: 1.875rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -.01em;
  text-wrap: balance;
  margin: 8px 0 10px;
}
.titre-2 { font-size: 1.375rem; line-height: 1.27; font-weight: 700; letter-spacing: -.005em; text-wrap: balance; }
.titre-3 { font-size: 1.125rem; line-height: 1.33; font-weight: 600; }
.chapo { color: var(--encre-2); margin: 0 0 20px; text-wrap: pretty; }
.legende { font-size: .8125rem; line-height: 1.38; font-weight: 600; letter-spacing: .01em; color: var(--encre-3); }
.secondaire { font-size: .9375rem; line-height: 1.47; color: var(--encre-2); }
.section { margin-top: 32px; }
.section > .legende { display: block; margin: 0 4px 8px; text-transform: uppercase; }
.pile > * + * { margin-top: 12px; }
.pile-petite > * + * { margin-top: 8px; }
.centre { text-align: center; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 12px 20px;
  border: 0;
  border-radius: var(--r-bouton);
  background: var(--accent);
  color: var(--sur-accent);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: transform var(--d2) var(--c-standard), background-color var(--d2) linear;
}
.btn:active { transform: scale(calc(1 - .03 * var(--mouvement))); background-color: var(--accent-appui); transition-duration: var(--d1); }
.btn-2 { background: var(--accent-doux); color: var(--accent-texte); }
.btn-2:active { background: var(--accent-doux); }
.btn-texte {
  background: transparent;
  color: var(--accent-texte);
  min-height: 44px;
  width: auto;
  padding: 10px 12px;
}
.btn-texte:active { background: var(--surface-2); }
.btn-secours { background: var(--secours); color: #FFFFFF; }
.btn-secours:active { background: #9A1F18; }
.btn-danger { background: transparent; color: var(--secours-texte); box-shadow: inset 0 0 0 1.5px currentColor; }
.btn-petit { width: auto; min-height: 44px; padding: 8px 16px; font-size: .9375rem; }
.btn-geant { min-height: 64px; font-size: 1.1875rem; border-radius: 18px; }
.rangee { display: flex; gap: 10px; flex-wrap: wrap; }
.rangee > .btn { flex: 1 1 140px; }
.rangee-serree { margin-top: 4px; }
.btn-icone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--encre);
}
.btn-icone:active { background: var(--surface-2); }
.lien-pourquoi {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: none;
  color: var(--accent-texte);
  font-weight: 600;
  font-size: .9375rem;
}

/* ---------- Cartes et listes ---------- */
.carte {
  background: var(--surface);
  border-radius: var(--r-carte);
  padding: 20px;
  box-shadow: var(--ombre-1);
}
.carte-lueur { background: var(--lueur-doux); box-shadow: none; }
.carte-accent { background: var(--accent-doux); box-shadow: none; }
.carte-secours { background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--secours-texte); }
.carte .titre-3 + * { margin-top: 6px; }
.carte-plan { display: flex; gap: 12px; align-items: flex-start; }
.carte-plan .ico { color: var(--lueur-texte); margin-top: 2px; }

.liste {
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--surface);
  border-radius: var(--r-carte);
  box-shadow: var(--ombre-1);
  overflow: hidden;
}
.liste li + li .ligne { position: relative; }
.liste li + li .ligne::before { content: ""; position: absolute; top: 0; left: 54px; right: 0; height: 1px; background: var(--trait); }
.liste > .coche + .coche, .liste > .bascule + .bascule { box-shadow: 0 -1px 0 var(--trait); }
.ligne {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 56px;
  padding: 12px 16px;
  border: 0;
  background: transparent;
  color: var(--encre);
  text-align: left;
  text-decoration: none;
  transition: background-color var(--d2) linear;
}
.ligne:active { background: var(--surface-2); }
.ligne .ico { color: var(--encre-2); }
.ligne-texte { flex: 1 1 auto; min-width: 0; }
.ligne-texte b { display: block; font-weight: 600; }
.ligne-texte small { display: block; color: var(--encre-2); font-size: .9375rem; line-height: 1.4; }
.ligne .chevron { width: 20px; height: 20px; color: var(--encre-3); }
.ligne-valeur { color: var(--encre-2); font-size: .9375rem; }

/* ---------- Choix (niveaux, puces, segments) ---------- */
.choix-niveaux { display: grid; gap: 8px; }
.choix-niveaux.horizontal { grid-template-columns: repeat(5, 1fr); }
.choix {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 10px 14px;
  border: 0;
  border-radius: var(--r-bouton);
  background: var(--surface);
  color: var(--encre);
  font-weight: 600;
  text-align: center;
  box-shadow: inset 0 0 0 1.5px var(--contour);
  transition: background-color var(--d2) linear, color var(--d2) linear, transform var(--d2) var(--c-standard);
}
.choix:active { transform: scale(calc(1 - .03 * var(--mouvement))); }
.choix[aria-pressed="true"], .choix[aria-checked="true"] { background: var(--accent); color: var(--sur-accent); box-shadow: none; }
.choix-gauche { justify-content: flex-start; text-align: left; }
.choix .niveau-barres { display: inline-flex; gap: 3px; margin-right: 12px; }
.choix .niveau-barres i { width: 4px; height: 16px; border-radius: 2px; background: currentColor; opacity: .25; }
.choix .niveau-barres i.on { opacity: 1; }

.puces { display: flex; flex-wrap: wrap; gap: 8px; }
.puce {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  border: 0;
  border-radius: 999px;
  background: var(--surface);
  color: var(--encre);
  font-size: 1rem;
  font-weight: 600;
  box-shadow: inset 0 0 0 1.5px var(--contour);
  transition: background-color var(--d2) linear, color var(--d2) linear;
}
.puce[aria-pressed="true"] { background: var(--accent); color: var(--sur-accent); box-shadow: none; }

.segment {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 2px;
  padding: 3px;
  border-radius: 12px;
  background: var(--surface-2);
}
.segment button {
  min-height: 44px;
  padding: 6px 8px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--encre);
  font-weight: 600;
  font-size: .9375rem;
  transition: background-color var(--d2) linear, color var(--d2) linear;
}
.segment button[aria-checked="true"] { background: var(--accent); color: var(--sur-accent); }

/* ---------- Champs ---------- */
.champ { display: block; }
.champ > span { display: block; margin: 0 0 6px; font-weight: 600; }
.champ > small { display: block; margin: 6px 0 0; color: var(--encre-2); font-size: .9375rem; }
.champ input, .champ textarea, .champ select {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 0;
  border-radius: var(--r-champ);
  background: var(--surface);
  color: var(--encre);
  font-size: 1.0625rem;
  box-shadow: inset 0 0 0 1px var(--contour);
  resize: none;
}
.champ textarea { min-height: 96px; line-height: 1.45; }
.champ input:focus-visible, .champ textarea:focus-visible, .champ select:focus-visible {
  outline: 0;
  box-shadow: inset 0 0 0 2px var(--accent-texte);
}
.champ input::placeholder, .champ textarea::placeholder { color: var(--encre-3); }

.bascule {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 56px;
  padding: 12px 16px;
  border: 0;
  background: transparent;
  color: var(--encre);
  text-align: left;
}
.bascule .ligne-texte small { color: var(--encre-2); }
.bascule-piste {
  position: relative;
  flex: 0 0 auto;
  width: 52px;
  height: 32px;
  border-radius: 999px;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1.5px var(--contour);
  transition: background-color var(--d2) linear;
}
.bascule-piste::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--encre-2);
  transition: transform var(--d3) var(--c-standard), background-color var(--d2) linear;
}
.bascule[aria-checked="true"] .bascule-piste { background: var(--accent); box-shadow: none; }
.bascule[aria-checked="true"] .bascule-piste::after { transform: translateX(20px); background: #FFFFFF; }

.coche {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border: 0;
  background: transparent;
  color: var(--encre);
  text-align: left;
}
.coche-case {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-top: 1px;
  border-radius: 8px;
  box-shadow: inset 0 0 0 2px var(--contour);
  transition: background-color var(--d2) linear;
}
.coche-case svg { width: 18px; height: 18px; fill: none; stroke: #FFFFFF; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.coche-case path { stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset 260ms var(--c-standard); }
.coche[aria-checked="true"] .coche-case { background: var(--accent); box-shadow: none; }
.coche[aria-checked="true"] .coche-case path { stroke-dashoffset: 0; }


/* ---------- Groupes de boutons radio (bilan, réglages) ---------- */
fieldset.signal { margin: 0; padding: 0; border: 0; min-width: 0; }
fieldset.signal legend { display: block; padding: 0; margin: 0 0 8px; font-weight: 600; line-height: 1.4; }
.segment-radio { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; }
.segment-radio.vertical { grid-auto-flow: row; }
.segment-radio label { position: relative; min-width: 0; }
.pile > fieldset.signal + fieldset.signal { margin-top: 24px; }
.trois { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.segment-radio input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.segment-radio span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 48px;
  height: 100%;
  padding: 8px 6px;
  border-radius: 12px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1.5px var(--contour);
  font-weight: 600;
  font-size: .9375rem;
  line-height: 1.25;
  text-align: center;
  transition: background-color var(--d2) linear, color var(--d2) linear;
}
.segment-radio input:checked + span { background: var(--accent); color: var(--sur-accent); box-shadow: none; }
.segment-radio input:focus-visible + span { outline: 3px solid var(--accent-texte); outline-offset: 2px; }

/* ---------- Barre d'onglets ---------- */
.barre-onglets {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  background: var(--surface);
  box-shadow: 0 -1px 0 var(--trait);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.barre-onglets ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 36rem;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.onglet {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 100%;
  min-height: var(--barre);
  padding: 8px 4px;
  border: 0;
  background: transparent;
  color: var(--encre-2);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .01em;
  text-decoration: none;
}
.onglet[aria-current="page"] { color: var(--accent-texte); }
.onglet[aria-current="page"] .ico { stroke-width: 2.2; }

/* ---------- Maintenant ---------- */
.accueil-haut { padding-top: 8px; }
.bloc-action { margin-top: 24px; }
.compteur {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 20px;
  color: var(--encre-2);
}
.compteur b {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--encre);
  font-variant-numeric: tabular-nums;
}
.pied-aide { margin-top: 28px; font-size: .9375rem; color: var(--encre-2); line-height: 1.5; }
.pied-aide a { font-weight: 700; }

/* ---------- Couches : pages, feuilles, séance ---------- */
dialog {
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--encre);
  background: transparent;
}
dialog::backdrop { background: transparent; }

.page {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: var(--fond);
  overflow: hidden;
}
.page[open] { display: flex; flex-direction: column; }
.page.entre { animation: page-entre var(--d4) var(--c-feuille) both; }
.page.sort { animation: page-sort var(--d3) var(--c-sortie) both; }
@keyframes page-entre { from { transform: translateX(calc(100% * var(--mouvement))); opacity: var(--mouvement); } }
@keyframes page-sort { to { transform: translateX(calc(100% * var(--mouvement))); opacity: calc(var(--mouvement)); } }
.page-entete {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: calc(env(safe-area-inset-top, 0px) + 8px) calc(var(--marge) - 8px) 8px;
  background: var(--fond);
}
.page-entete .retour { display: inline-flex; align-items: center; gap: 2px; padding-left: 4px; }
.page-entete .espace { flex: 1 1 auto; }
.page-corps {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.page-corps .interieur {
  max-width: 36rem;
  margin: 0 auto;
  padding: 4px var(--marge) calc(env(safe-area-inset-bottom, 0px) + 40px);
}
.etape { animation: etape-entre 320ms var(--c-entree) both; }
@keyframes etape-entre { from { opacity: 0; transform: translateX(calc(24px * var(--mouvement))); } }
.pied-etape { margin-top: 28px; }
.pied-etape > * + * { margin-top: 10px; }
.progression { display: flex; gap: 6px; margin: 4px 0 20px; }
.progression i { flex: 1; height: 4px; border-radius: 2px; background: var(--surface-2); }
.progression i.on { background: var(--accent-texte); }

.feuille {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: var(--voile);
}
.feuille[open] { display: flex; align-items: flex-end; justify-content: center; }
.feuille-boite {
  width: 100%;
  max-width: 36rem;
  max-height: 92vh;
  max-height: 92dvh;
  display: flex;
  flex-direction: column;
  background: var(--fond);
  border-radius: var(--r-feuille) var(--r-feuille) 0 0;
  box-shadow: var(--ombre-3);
  overflow: hidden;
}
.feuille.entre { animation: voile-entre var(--d4) linear both; }
.feuille.entre .feuille-boite { animation: feuille-entre var(--d4) var(--c-feuille) both; }
.feuille.sort { animation: voile-sort var(--d3) linear both; }
.feuille.sort .feuille-boite { animation: feuille-sort var(--d3) var(--c-sortie) both; }
@keyframes voile-entre { from { background: transparent; } }
@keyframes voile-sort { to { background: transparent; } }
@keyframes feuille-entre { from { transform: translateY(calc(100% * var(--mouvement))); opacity: var(--mouvement); } }
@keyframes feuille-sort { to { transform: translateY(calc(100% * var(--mouvement))); opacity: var(--mouvement); } }
:root[data-calme] .feuille.entre .feuille-boite { animation-name: fondu; }
:root[data-calme] .page.entre { animation-name: fondu; }
.feuille-poignee { width: 36px; height: 5px; margin: 8px auto 0; border-radius: 3px; background: var(--trait); }
.feuille-entete { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 8px 4px 20px; }
.feuille-corps { overflow-y: auto; overscroll-behavior: contain; padding: 4px 20px calc(env(safe-area-inset-bottom, 0px) + 28px); }

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--barre) + env(safe-area-inset-bottom, 0px) + 16px);
  z-index: 100;
  max-width: min(32rem, calc(100% - 32px));
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--encre);
  color: var(--fond);
  font-size: .9375rem;
  font-weight: 600;
  box-shadow: var(--ombre-3);
  transform: translate(-50%, 16px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--d2) linear, transform var(--d3) var(--c-standard);
}
.toast.visible { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast button { margin-left: 12px; border: 0; background: none; color: inherit; font-weight: 700; text-decoration: underline; min-height: 32px; }

/* ---------- Aide ---------- */
.aide-groupe + .aide-groupe { margin-top: 24px; }
.aide-groupe > .legende { display: block; margin: 0 4px 8px; text-transform: uppercase; }
.numero {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--surface);
  border-radius: 16px;
  box-shadow: var(--ombre-1);
}
.numero + .numero { margin-top: 8px; }
.numero-texte { flex: 1 1 auto; min-width: 0; }
.numero-texte b { display: block; font-weight: 700; }
.numero-texte p { font-size: .9375rem; color: var(--encre-2); line-height: 1.42; margin-top: 2px; }
.numero-texte .etat { display: inline-block; margin-top: 4px; font-size: .8125rem; font-weight: 700; color: var(--encre-3); }
.numero-texte .etat.ouvert { color: var(--accent-texte); }
.numero .btn { flex: 0 0 auto; width: auto; min-width: 96px; min-height: 44px; padding: 8px 14px; font-size: .9375rem; }
.numero.ferme .btn { background: var(--accent-doux); color: var(--accent-texte); }
.numero-urgence .numero-texte b { color: var(--secours-texte); }

/* ---------- Séance : nuit ---------- */
.seance {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: var(--fond);
  color: var(--encre);
  overflow: hidden;
}
.seance[open] { display: flex; flex-direction: column; }
.seance.entre { animation: fondu var(--d5) var(--c-douce) both; }
.seance.sort { animation: voile-fondu-sortie var(--d3) linear both; }
@keyframes voile-fondu-sortie { to { opacity: 0; } }
.seance-haut {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: calc(env(safe-area-inset-top, 0px) + 8px) calc(var(--marge) - 4px) 0;
}
.seance-actions { display: flex; gap: 8px; }
.aide-seance { margin: 0 0 12px; }
.texte-note { white-space: pre-wrap; }
.etat-note { display: inline-block; font-size: .8125rem; font-weight: 700; color: var(--accent-texte); }
.seance-haut .bouton-aide { background: transparent; box-shadow: inset 0 0 0 1px var(--trait); color: var(--encre-2); }
.seance-haut .bouton-aide .ico { color: var(--encre-2); }
.decompte {
  min-width: 64px;
  padding: 0 6px;
  font-size: 1.0625rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--encre-3);
}
.seance-vue {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 34rem;
  margin: 0 auto;
  padding: 8px var(--marge) calc(env(safe-area-inset-bottom, 0px) + 16px);
  overflow-y: auto;
  min-height: 0;
}
/* Centré quand il y a la place, sans rien couper en haut quand ça déborde. */
.seance-vue.question > :first-child { margin-top: auto; }
.seance-vue.question > :last-child { margin-bottom: auto; }
.seance-vue .titre-2 { margin-bottom: 8px; }
.seance-vue .chapo { margin-bottom: 20px; }

.orbe-zone {
  flex: 1 1 auto;
  display: grid;
  place-items: center;
  min-height: 200px;
}
.orbe-cadre {
  position: relative;
  width: min(60vw, 240px, 34vh);
  aspect-ratio: 1;
  animation: orbe-entree 600ms var(--c-entree) 300ms both;
}
.orbe, .halo { position: absolute; inset: 0; border-radius: 50%; }
.orbe {
  background: var(--orbe);
  box-shadow: inset 0 0 0 1.5px var(--orbe-bord);
  transform: scale(.72);
  animation: souffle 10s var(--c-souffle) infinite both;
  will-change: transform;
}
.halo {
  inset: -9%;
  box-shadow: inset 0 0 0 1px rgb(174 184 238 / .45);
  opacity: 0;
  animation: halo 10s var(--c-souffle) infinite both;
}
.etiquette {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: .01em;
}
.etiquette.insp { animation: insp 10s linear infinite both; }
.etiquette.exp { opacity: 0; animation: exp 10s linear infinite both; }
@keyframes souffle { 0% { transform: scale(.72); } 40% { transform: scale(1); } 100% { transform: scale(.72); } }
@keyframes halo { 0% { opacity: 0; transform: scale(.8); } 40% { opacity: .6; transform: scale(1); } 100% { opacity: 0; transform: scale(.8); } }
@keyframes insp { 0%, 36% { opacity: 1; } 38%, 98% { opacity: 0; } 100% { opacity: 1; } }
@keyframes exp { 0%, 39% { opacity: 0; } 41%, 95% { opacity: 1; } 97%, 100% { opacity: 0; } }
@keyframes orbe-entree { from { opacity: 0; transform: scale(calc(1 - .17 * var(--mouvement))); } }
:root[data-calme] .orbe { transform: scale(.86); animation-name: souffle-calme; }
:root[data-calme] .halo { display: none; }
@keyframes souffle-calme { 0% { opacity: .45; } 40% { opacity: 1; } 100% { opacity: .45; } }
.seance.en-pause .orbe, .seance.en-pause .halo, .seance.en-pause .etiquette { animation-play-state: paused; }

.consigne {
  min-height: 7.5em;
  margin: 8px 0 4px;
  text-align: center;
}
.consigne p {
  font-size: 1.25rem;
  line-height: 1.4;
  text-wrap: balance;
}
.consigne.change { animation: monte var(--d4) var(--c-standard) both; }
@keyframes monte { from { opacity: 0; transform: translateY(calc(8px * var(--mouvement))); } }
.consigne-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 12px; margin-top: 8px; }
.consigne-actions .btn { width: auto; min-height: 44px; padding: 8px 18px; font-size: 1rem; }

.bande { position: relative; height: 56px; margin: 12px 0 8px; }
.bande svg { width: 100%; height: 100%; overflow: visible; }
.bande .horizon { stroke: var(--trait); stroke-width: 2; }
.bande .parcouru { stroke: var(--vague); stroke-width: 2; opacity: .9; }
.bande .repere { stroke: var(--contour); stroke-width: 1.5; }
.point {
  position: absolute;
  left: 0;
  top: 50%;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: var(--lueur);
  will-change: transform;
}
.point::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 1.5px var(--lueur);
  opacity: 0;
}
.point.pose::after { animation: onde 900ms var(--c-douce) 1; }
@keyframes onde { from { opacity: .6; transform: scale(1); } to { opacity: 0; transform: scale(calc(1 + 1.4 * var(--mouvement))); } }

.mi-parcours {
  margin: 4px 0 8px;
  padding: 12px;
  border-radius: 16px;
  background: var(--surface);
  text-align: center;
  animation: monte var(--d4) var(--c-standard) both;
}
.mi-parcours p { font-weight: 600; margin-bottom: 8px; }
.mi-parcours .choix-niveaux { grid-template-columns: repeat(5, 1fr); gap: 6px; }
.mi-parcours .choix { min-height: 48px; padding: 4px; font-size: .8125rem; line-height: 1.15; }

.seance-bas { display: flex; gap: 10px; }
.seance-bas .btn { flex: 1 1 0; }

.outil { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; text-align: center; }
.iso-nom { font-size: 1.25rem; line-height: 1.4; min-height: 3em; text-wrap: balance; }
.iso-chiffre { font-size: 3.5rem; line-height: 1; font-weight: 300; font-variant-numeric: tabular-nums; color: var(--accent-texte); margin: 12px 0 4px; }
.iso-phase { font-size: 1.125rem; font-weight: 600; }
.grille {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  width: min(80vw, 300px, 40vh);
  margin: 12px auto;
}
.case {
  aspect-ratio: 1;
  border: 0;
  border-radius: 14px;
  background: var(--accent);
  color: #FFFFFF;
  font-size: 1.75rem;
  font-weight: 700;
  touch-action: manipulation;
  transition: transform var(--d2) var(--c-standard);
}
.case:active { transform: scale(.96); }
.case.vide { background: transparent; box-shadow: inset 0 0 0 2px var(--trait); }

.courbe { margin: 8px 0 4px; }
.courbe svg { width: 100%; height: 120px; overflow: visible; }
.courbe .axe { stroke: var(--trait); stroke-width: 1.5; }
.courbe .trace { fill: none; stroke: var(--vague); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.courbe .trace.attente { opacity: 0; }
.courbe .trace.dessine { animation: dessine var(--d5) var(--c-douce) both; }
@keyframes dessine { from { stroke-dashoffset: var(--longueur, 600); } }
:root[data-calme] .courbe .trace.dessine { animation: none; }
.courbe .pt { fill: var(--lueur); }
.courbe .onde { fill: none; stroke: var(--lueur); stroke-width: 2; transform-box: fill-box; transform-origin: center; opacity: 0; animation: onde-svg 900ms var(--c-douce) 400ms 1; }
@keyframes onde-svg { from { opacity: .7; transform: scale(1); } to { opacity: 0; transform: scale(calc(1 + 1.4 * var(--mouvement))); } }
.courbe text { fill: var(--encre-2); font-size: 12px; font-family: var(--police); font-weight: 600; }
.courbe-legende { display: flex; justify-content: space-between; color: var(--encre-2); font-size: .9375rem; }

.atterrissage { text-align: center; padding-top: 12px; }
.atterrissage .titre-2 { animation: monte var(--d4) var(--c-standard) 300ms both; }
.roule { display: inline-block; }
.roule span { display: inline-block; animation: roule var(--d4) var(--c-douce) both; }
@keyframes roule { from { transform: translateY(calc(100% * var(--mouvement))); opacity: 0; } }


/* ---------- v2 : exercices des 10 minutes ---------- */
.seance-vue.cours { gap: 0; }
.cours-centre { flex: 1 0 auto; display: flex; flex-direction: column; }
.cours-centre::before, .cours-centre::after, .outil-zone::before, .outil-zone::after { content: ""; flex: 1 0 0; }
.seance:not(.respire) .orbe-zone { display: none; }
.orbe-zone[hidden] { display: none; }
.respire .orbe-zone { flex: 0 1 auto; min-height: 180px; }
.banniere { margin: 4px 0 8px; padding: 10px 14px; border-radius: 14px; background: var(--lueur-doux); color: var(--encre); text-align: center; font-weight: 600; animation: monte var(--d4) var(--c-standard) both; }
.banniere[hidden] { display: none; }
.info-exo { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 8px; margin: 0 0 8px; color: var(--encre-2); font-size: .9375rem; text-align: center; }
.info-exo[hidden] { display: none; }
.exo { padding: 18px 16px 14px; border-radius: var(--r-carte); background: var(--surface); text-align: center; }
.exo.change { animation: monte var(--d4) var(--c-standard) both; }
.exo-tete { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 10px; font-size: .8125rem; font-weight: 700; color: var(--encre-3); letter-spacing: .01em; }
.preuve { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .8125rem; font-weight: 700; line-height: 1.5; background: var(--accent-doux); color: var(--accent-texte); }
.preuve-piste { background: var(--surface-2); color: var(--encre-2); }
.preuve-prouve { background: var(--lueur-doux); color: var(--lueur-texte); }
.exo-nom { margin: 8px 0 6px; font-size: 1.375rem; line-height: 1.25; font-weight: 700; text-wrap: balance; }
.exo-texte { font-size: 1.125rem; line-height: 1.45; text-wrap: pretty; }
.exo .consigne-actions { margin-top: 12px; }
.retour { margin-top: 12px; padding-top: 12px; box-shadow: 0 -1px 0 var(--trait); }
.retour-q { font-size: .9375rem; font-weight: 600; color: var(--encre-2); margin-bottom: 8px; }
.puces-centre { justify-content: center; }
.retour .puce { min-height: 44px; padding: 6px 14px; font-size: .9375rem; }
.bande { height: 40px; margin: 8px 0 4px; }

.outil-vue .titre-3 { text-align: center; margin-top: 8px; }
.outil-zone { flex: 1 0 auto; display: flex; flex-direction: column; align-items: stretch; gap: 8px; text-align: center; padding: 8px 0; }
.outil-consigne { max-width: 30rem; margin: 0 auto 4px; }
.etapes-points { display: flex; justify-content: center; gap: 6px; margin: 4px 0; }
.etapes-points i { width: 8px; height: 8px; border-radius: 50%; background: var(--trait); }
.etapes-points i.on { background: var(--accent-texte); opacity: .5; }
.etapes-points i.actif { background: var(--lueur); }
.compteur-bouton { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 132px; height: 132px; border: 0; border-radius: 50%; background: var(--accent); color: var(--sur-accent); font-weight: 700; font-size: 1rem; box-shadow: var(--ombre-2); touch-action: manipulation; transition: transform var(--d2) var(--c-standard); }
.compteur-bouton:active { transform: scale(calc(1 - .05 * var(--mouvement))); }
.compteur-bouton .ico { width: 30px; height: 30px; }
.rangee-centre { justify-content: center; }
.rangee-centre > .btn { flex: 0 1 auto; }
.blocs-cadre, .neige-cadre, .dessin-cadre { display: flex; justify-content: center; }
.blocs { border-radius: 10px; box-shadow: 0 0 0 1px var(--trait); touch-action: manipulation; }
.pad { display: grid; grid-template-columns: repeat(4, 64px); justify-content: center; gap: 10px; margin-top: 4px; }
.pad-btn { display: grid; place-items: center; height: 56px; border: 0; border-radius: 16px; background: var(--surface-2); color: var(--encre); touch-action: manipulation; }
.pad-btn:active { background: var(--trait); }
.pad-btn:nth-child(4) .ico { transform: none; }
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: min(78vw, 270px, 38vh); margin: 4px auto; }
.case-memo { aspect-ratio: 1; border: 0; border-radius: 16px; background: var(--surface-2); box-shadow: inset 0 0 0 1.5px var(--trait); transition: background-color 200ms linear; touch-action: manipulation; }
.case-memo.allumee { background: var(--lueur); box-shadow: none; }
.case-memo.touchee { background: var(--accent-texte); box-shadow: none; }
:root[data-calme] .case-memo { transition: none; }
.neige, .dessin { border-radius: 14px; box-shadow: 0 0 0 1px var(--trait); }
.dessin { touch-action: none; background: var(--surface); }
.pensee-grande { font-size: 1.5rem; line-height: 1.35; font-weight: 600; text-wrap: balance; margin: 8px 0 12px; }
.riviere { position: relative; height: 150px; overflow: hidden; border-radius: 18px; background: linear-gradient(180deg, var(--accent-doux), var(--surface-2)); }
.feuille-pensee { position: absolute; left: 0; top: 50%; max-width: 70%; padding: 6px 14px; border-radius: 999px 4px 999px 4px; background: var(--surface); color: var(--encre); font-weight: 600; font-size: .9375rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: var(--ombre-2); animation: derive 9s linear both; }
.feuille-pensee:nth-child(3n) { top: 22%; }
.feuille-pensee:nth-child(3n+1) { top: 62%; }
@keyframes derive { 0% { transform: translate(-100%, -50%); opacity: 0; } 8% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translate(calc(100vw), -50%); opacity: 0; } }
:root[data-calme] .feuille-pensee { left: 50%; animation: derive-calme 9s linear both; }
@keyframes derive-calme { 0% { transform: translate(-50%, -50%); opacity: 0; } 10%, 70% { opacity: 1; } 100% { transform: translate(-50%, -50%); opacity: 0; } }

/* ---------- v2 : ce qui compte pour moi ---------- */
.barre-progres { height: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.barre-progres i { display: block; height: 100%; border-radius: 999px; background: var(--lueur); transition: width var(--d5) var(--c-douce); }
.carte-echeance { display: flex; align-items: center; gap: 14px; width: 100%; border: 0; text-align: left; color: var(--encre); font: inherit; }
.carte-echeance .ico { color: var(--lueur-texte); flex: 0 0 auto; }
.carte-echeance .ligne-texte small:first-child { font-weight: 700; color: var(--lueur-texte); }
.carte-echeance .chevron { width: 20px; height: 20px; color: var(--encre-3); }
.compteur-argent { font-weight: 600; color: var(--encre-2); }
.gain-argent .titre-3 { color: var(--accent-texte); }
.liste-simple { margin: 0; padding-left: 1.2em; }
.liste-simple li + li { margin-top: 6px; }
.deux { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: end; }
@media (max-width: 340px) { .deux { grid-template-columns: 1fr; } }
.mesures { margin: 4px 0 0; padding-left: 1.2em; color: var(--encre-2); }
.exo-ligne { padding: 12px 0; }
.exo-ligne + .exo-ligne { box-shadow: 0 -1px 0 var(--trait); }
.exo-ligne .bascule { padding-left: 0; padding-right: 0; background: transparent; }

/* ---------- Carnet ---------- */
.collection { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.vaguette { padding: 8px 8px 6px; border-radius: 12px; background: var(--surface-2); text-align: center; }
.vaguette svg { width: 100%; height: 32px; overflow: visible; }
.vaguette path { fill: none; stroke: var(--accent-texte); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.vaguette.pas path { stroke: var(--encre-3); stroke-dasharray: 3 4; }
.vaguette small { display: block; margin-top: 4px; font-size: .75rem; color: var(--encre-2); font-weight: 600; }
.semaines svg { width: 100%; height: 96px; overflow: visible; }
.semaines .barre { fill: var(--accent-texte); }
.semaines .barre.chargee { fill: var(--lueur); }
.semaines .base { stroke: var(--trait); stroke-width: 1.5; }
.semaines .ecart { fill: var(--encre-3); }
.semaines text { fill: var(--encre-2); font-size: 11px; font-family: var(--police); font-weight: 600; }
.grand-chiffre { font-size: 3rem; line-height: 1; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

details.replie { background: var(--surface); border-radius: var(--r-carte); box-shadow: var(--ombre-1); }
details.replie > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 12px 16px;
  list-style: none;
  font-weight: 600;
  cursor: pointer;
}
details.replie > summary::-webkit-details-marker { display: none; }
details.replie > summary .chevron { width: 20px; height: 20px; color: var(--encre-3); transition: transform var(--d3) var(--c-standard); }
details.replie[open] > summary .chevron { transform: rotate(90deg); }
details.replie > .replie-corps { padding: 0 16px 16px; }
.entree + .entree { margin-top: 12px; padding-top: 12px; box-shadow: 0 -1px 0 var(--trait); }
.entree time { display: block; font-size: .8125rem; font-weight: 700; color: var(--encre-3); margin-bottom: 4px; }
.entree p { font-size: .9375rem; line-height: 1.45; }

/* ---------- Accueil (première ouverture) ---------- */
.marque { display: flex; align-items: center; gap: 12px; margin: 12px 0 20px; }
.marque svg { width: 56px; height: 56px; border-radius: 14px; }
.marque .vague-trace { stroke-dasharray: 100; animation: trace-vague 1200ms var(--c-douce) 200ms both; }
@keyframes trace-vague { from { stroke-dashoffset: 100; } }
:root[data-calme] .marque .vague-trace { animation: none; }
.points-accueil { margin: 20px 0 0; padding: 0; list-style: none; }
.points-accueil li { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; }
.points-accueil .ico { color: var(--accent-texte); margin-top: 1px; }
.etapes-install { margin: 16px 0 0; padding: 0; list-style: none; counter-reset: e; }
.etapes-install li { display: flex; gap: 14px; align-items: flex-start; padding: 10px 0; }
.etapes-install li::before {
  counter-increment: e;
  content: counter(e);
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent-doux);
  color: var(--accent-texte);
  font-weight: 700;
}
.apercu-aide { display: inline-flex; vertical-align: middle; pointer-events: none; transform: scale(.9); }

.texte-long p + p { margin-top: 12px; }
.texte-long h3 { margin: 24px 0 8px; }
.texte-long ul { margin: 8px 0 0; padding-left: 1.2em; }
.texte-long li + li { margin-top: 6px; }
.sources li { font-size: .9375rem; color: var(--encre-2); }

.apercu-fond { display: flex; justify-content: center; margin: 12px 0; }
.apercu-fond canvas { width: 160px; height: auto; border-radius: 18px; box-shadow: var(--ombre-2), 0 0 0 1px var(--trait); }

@media (min-width: 600px) {
  .titre-voix { font-size: 2.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}
@media print {
  .barre-onglets, .entete, .bouton-aide { display: none !important; }
}
.compteur { flex-wrap: wrap; }
.message-ia { padding: 12px 14px; border-radius: 14px; background: var(--surface-2); color: var(--encre-2); font-size: .9375rem; line-height: 1.45; text-align: left; }
.gauche { text-align: left; }

/* ---------- 2.2 : fêtes, mer, preuves ---------- */
.carte-fete { background: var(--lueur-doux); box-shadow: none; animation: monte var(--d5) var(--c-douce) both; }
.fete-ligne { display: flex; align-items: center; gap: 10px; }
.fete-ligne .ico { color: var(--lueur-texte); flex: 0 0 auto; }
:root[data-calme] .carte-fete { animation: none; }
.phrase-vraie { margin-top: 20px; font-size: 1.125rem; font-weight: 600; color: var(--encre-2); }
p.compteur-argent { margin-top: 4px; color: var(--encre-2); font-weight: 600; }
.mer-cadre { border-radius: 16px; overflow: hidden; }
.mer { display: block; width: 100%; height: auto; }
.mer-ciel { fill: #DDE4F2; }
.mer-eau { fill: #A9BCE0; }
.mer-vague { fill: none; stroke: #F4F2ED; stroke-width: 1.5; opacity: .6; }
.el-voile { fill: #FFFFFF; }
.el-coque { fill: #8E4F14; }
.el-mouette { fill: none; stroke: #4E5466; stroke-width: 1.5; stroke-linecap: round; }
.el-etoile { fill: #B86B22; }
.el-nuage { fill: #FFFFFF; opacity: .9; }
.el-poisson { fill: #E3B26E; }
.el-coquillage { fill: #F6EDE4; }
.el-phare { fill: #FFFFFF; stroke: #B3261E; stroke-width: 1.5; }
.el-lumiere { fill: #E3B26E; }
.el-lune { fill: #F6EDE4; stroke: #E3B26E; stroke-width: 1.5; }
.el-ile { fill: #E3D3B0; }
.el-palmier { fill: none; stroke: #4E7A3A; stroke-width: 2; stroke-linecap: round; }
.el-arc { fill: none; stroke: #E3B26E; stroke-width: 4; opacity: .7; }
:root[data-theme="dark"] .mer-ciel, .nuit .mer-ciel { fill: #1D2547; }
:root[data-theme="dark"] .mer-eau, .nuit .mer-eau { fill: #2F3C73; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .mer-ciel { fill: #1D2547; }
  :root:not([data-theme="light"]) .mer-eau { fill: #2F3C73; }
  :root:not([data-theme="light"]) .el-etoile { fill: #F1E7D3; }
  :root:not([data-theme="light"]) .el-mouette { stroke: #ECE9E2; }
}
.nuit .el-etoile, :root[data-theme="dark"] .el-etoile { fill: #F1E7D3; }
.nuit .el-mouette, :root[data-theme="dark"] .el-mouette { stroke: #ECE9E2; }
.mer-atterrissage .mer-cadre { max-width: 260px; margin: 0 auto 6px; }
.liste-preuves { margin: 0; padding: 0; list-style: none; }
.liste-preuves li { padding: 10px 0; }
.liste-preuves li + li { box-shadow: 0 -1px 0 var(--trait); }
.liste-preuves time { display: block; font-size: .8125rem; font-weight: 700; color: var(--encre-3); }
.legende-ex { display: block; font-weight: 400; font-size: .875rem; color: var(--encre-2); margin-top: 2px; }
.ligne-3114 { margin-top: 10px; padding: 12px 14px; }
.ligne-3114 .btn { margin-top: 8px; }
.coche-seule { width: 100%; border-radius: var(--r-carte); background: var(--surface); box-shadow: var(--ombre-1); }
