/* flowapps.store — l'accueil (30/10/2026).
   Lin et graphite : un papier clair, une encre presque noire, le laiton pour seul accent.
   La couleur vient des apps elles-mêmes (leur pigment). Nuit automatique avec le système.
   Le mouvement suit quatre durées et deux courbes, partout les mêmes. */

:root {
  --fond: #F2EDE3; --fond-2: #E9E2D5; --carte: #FBF8F2; --carte-2: #F6F1E8;
  --encre: #1B1A17; --encre-2: #4F4B44; --encre-3: #8B8479;
  --trait: rgba(27, 26, 23, .1); --trait-fort: rgba(27, 26, 23, .2);
  --laiton: #A27C44; --laiton-doux: rgba(162, 124, 68, .14);
  --ombre: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 18px 40px -26px rgba(40, 30, 15, .35);
  --texte: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", system-ui, "PingFang SC", "Hiragino Sans", "Apple SD Gothic Neo", "Noto Sans CJK SC", sans-serif;
  --titre: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", system-ui, "PingFang SC", "Hiragino Sans", "Apple SD Gothic Neo", sans-serif;
  --serif: "New York", ui-serif, "Iowan Old Style", "Charter", Georgia, serif;
  --chiffre: ui-monospace, "SF Mono", Menlo, monospace;
  --d1: 160ms; --d2: 260ms; --d3: 480ms; --d4: 820ms;
  --sortie: cubic-bezier(.16, 1, .3, 1);
  --ressort: cubic-bezier(.34, 1.36, .64, 1);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --fond: #141311; --fond-2: #1B1916; --carte: #1E1C19; --carte-2: #232019;
    --encre: #F1ECE2; --encre-2: #B9B1A4; --encre-3: #847D72;
    --trait: rgba(241, 236, 226, .09); --trait-fort: rgba(241, 236, 226, .18);
    --laiton: #CDA56A; --laiton-doux: rgba(205, 165, 106, .14);
    --ombre: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 18px 40px -24px rgba(0, 0, 0, .7);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; background: var(--fond); color: var(--encre); font: 400 16px/1.55 var(--texte); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
a { color: inherit; }
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--titre); font-weight: 600; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--laiton); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--laiton-doux); }
.lu, .evitement:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.evitement:focus { position: fixed; z-index: 50; top: 12px; left: 12px; padding: 10px 14px; background: var(--encre); color: var(--fond); border-radius: 10px; }

.cadre { width: min(1200px, 100% - 48px); margin-inline: auto; }
.cadre.etroit { width: min(820px, 100% - 48px); }
main, .pied { position: relative; z-index: 1; }

/* La scène : une seule toile, derrière tout, que le défilement fait changer de forme. */
.scene { position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; }
.etiquette { position: fixed; z-index: 30; left: 0; top: 0; padding: 5px 10px; border-radius: 8px; background: var(--encre); color: var(--fond); font: 500 13px/1.3 var(--texte); pointer-events: none; opacity: 0; transform: translate(-50%, -100%) translateY(-8px) scale(.96); transition: opacity var(--d1), transform var(--d2) var(--sortie); white-space: nowrap; }
.etiquette.vue { opacity: 1; transform: translate(-50%, -100%) translateY(-12px); }

/* Ce qui monte quand on arrive : une seule courbe, un décalage borné. */
.js .revele { opacity: 0; transform: translateY(16px); transition: opacity var(--d4) var(--sortie), transform var(--d4) var(--sortie); transition-delay: calc(var(--rang, 0) * 70ms); }
.js .revele.vu { opacity: 1; transform: none; }

/* La barre. */
.barre { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--fond) 80%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color var(--d2); }
.barre.posee { border-bottom-color: var(--trait); }
.barre-dedans { display: flex; align-items: center; gap: 22px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 700 15px var(--titre); letter-spacing: .16em; text-decoration: none; }
.logo-f { position: relative; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--encre); color: var(--fond); font: 700 15px var(--serif); letter-spacing: 0; }
.logo-f i { position: absolute; right: 4px; bottom: 4px; width: 5px; height: 5px; border-radius: 50%; background: var(--laiton); }
.liens { display: flex; gap: 4px; margin-left: 12px; }
.liens a { padding: 7px 11px; border-radius: 8px; color: var(--encre-2); font-size: 14px; text-decoration: none; transition: background var(--d1), color var(--d1); }
.liens a:hover { background: var(--trait); color: var(--encre); }
.segment { display: flex; margin-left: auto; padding: 3px; border: 1px solid var(--trait); border-radius: 10px; }
.segment a { padding: 4px 7px; border-radius: 7px; color: var(--encre-3); font: 600 11px var(--chiffre); letter-spacing: .04em; text-decoration: none; transition: background var(--d1), color var(--d1); }
.segment a:hover { color: var(--encre); }
.segment a[aria-current] { background: var(--encre); color: var(--fond); }
.avance { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--laiton); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.ouvrir-menu { display: none; width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent; color: var(--encre); cursor: pointer; }
.ouvrir-menu i { display: block; width: 18px; height: 1.6px; margin: 5px auto; background: currentColor; transition: transform var(--d2) var(--sortie); }
.ouvrir-menu[aria-expanded="true"] i:first-child { transform: translateY(3.3px) rotate(45deg); }
.ouvrir-menu[aria-expanded="true"] i:last-child { transform: translateY(-3.3px) rotate(-45deg); }
.menu { position: fixed; z-index: 19; inset: 64px 0 0; padding: 24px; background: var(--fond); overflow: auto; }
.menu-grand { margin: 0; padding: 0; list-style: none; }
.menu-grand a { display: block; padding: 12px 0; border-bottom: 1px solid var(--trait); font: 600 26px var(--titre); text-decoration: none; }
.menu-langues { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; }
.menu-langues a { display: block; padding: 8px 12px; border: 1px solid var(--trait); border-radius: 999px; font-size: 14px; text-decoration: none; }
.menu-langues a[aria-current] { background: var(--encre); color: var(--fond); }

/* Les boutons. */
.boutons { display: flex; flex-wrap: wrap; gap: 10px; }
.bouton { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 20px; border-radius: 12px; font: 600 15px var(--texte); text-decoration: none; transition: transform var(--d2) var(--ressort), background var(--d1), border-color var(--d1); }
.bouton span { transition: transform var(--d2) var(--sortie); }
.bouton:hover span { transform: translateX(3px); }
.bouton:active { transform: scale(.97); }
.bouton.plein { background: var(--encre); color: var(--fond); }
.bouton.creux { border: 1px solid var(--trait-fort); }
.bouton.creux:hover { border-color: var(--encre-3); }
.bouton.petit { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 10px; }

/* Les textes communs aux sections. */
.section { padding: clamp(80px, 11vw, 150px) 0 0; }
.tete { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.sur { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; color: var(--encre-3); font: 600 12px var(--chiffre); letter-spacing: .08em; text-transform: uppercase; }
.sur::before { content: ""; width: 18px; height: 1px; background: var(--laiton); }
.tete h2, .contact h2 { font-size: clamp(30px, 4.2vw, 54px); line-height: 1.04; letter-spacing: -.035em; }
.chapeau { margin-top: 18px; color: var(--encre-2); font-size: clamp(16px, 1.5vw, 19px); line-height: 1.55; }

/* 1 · L'ouverture. */
.ouverture { position: relative; padding-top: clamp(28px, 5vh, 56px); }
.ouverture-dedans { display: flex; flex-direction: column; min-height: calc(100svh - 64px); padding-bottom: 28px; }
.ouverture-scene { flex: 1 1 auto; min-height: 220px; height: clamp(220px, 40vh, 460px); margin: 8px 0 18px; }
.ouverture h1 { max-width: 15ch; font-size: clamp(40px, 6.8vw, 100px); line-height: .98; letter-spacing: -.045em; }
.ouverture h1 em { font: italic 400 1em/1 var(--serif); letter-spacing: -.02em; color: var(--encre-2); }
:lang(zh) .ouverture h1 em, :lang(ja) .ouverture h1 em, :lang(ko) .ouverture h1 em { font-style: normal; font-family: var(--titre); }
:lang(zh) .ouverture h1, :lang(ja) .ouverture h1, :lang(ko) .ouverture h1 { letter-spacing: -.01em; max-width: 20ch; }
.ouverture-bas { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; margin-top: 26px; }
.ouverture-bas .chapeau { max-width: 520px; margin: 0; }
.indice { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 30px; padding-top: 16px; border-top: 1px solid var(--trait); color: var(--encre-3); font-size: 13px; }
.pause { margin-left: auto; padding: 4px 10px; border: 1px solid var(--trait); border-radius: 999px; background: transparent; color: var(--encre-2); font: 500 12px var(--texte); cursor: pointer; }
.pause:hover { border-color: var(--trait-fort); }
.sans-js .indice, html:not(.js) .indice { display: none; }

/* 2 · Les chiffres. */
.chiffres { padding-top: clamp(40px, 6vw, 70px); }
.chiffres-liste { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--trait); }
.chiffres-liste li { padding: 22px 16px 0 0; }
.chiffres-liste li + li { padding-left: 18px; border-left: 1px solid var(--trait); }
.chiffres-liste b { display: block; font: 600 clamp(34px, 4vw, 54px)/1 var(--titre); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.chiffres-liste span { display: block; margin-top: 10px; color: var(--encre-3); font-size: 13px; line-height: 1.35; }

/* Les icônes : une case de la planche commune. */
.ico { flex: none; display: block; width: 52px; height: 52px; border-radius: 12px; background: url(/assets/univers/icones.jpg) no-repeat var(--c);
  background-size: calc(var(--cols) * 100%) calc(var(--rangs) * 100%);
  background-position: calc(var(--x) * 100% / (var(--cols) - 1)) calc(var(--y) * 100% / (var(--rangs) - 1));
  box-shadow: 0 0 0 1px var(--trait) inset; }
.ico.sans { display: grid; place-items: center; background: var(--c); color: #F3EEE4; font: 600 20px var(--serif); }
.ico.grand { width: 58px; height: 58px; border-radius: 14px; }
.ico.mini { width: 26px; height: 26px; border-radius: 7px; }

/* 3 · Les nouvelles venues. */
.nvs { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.nv { perspective: 900px; }
.nv-dedans { position: relative; height: 100%; display: flex; flex-direction: column; gap: 12px; padding: 22px; border: 1px solid var(--trait); border-radius: 20px; background: var(--carte); box-shadow: var(--ombre); overflow: hidden; isolation: isolate;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform var(--d3) var(--sortie), border-color var(--d2); }
.nv-dedans::before { content: ""; position: absolute; z-index: -1; inset: -40% -40% auto auto; width: 90%; aspect-ratio: 1; background: radial-gradient(closest-side, color-mix(in srgb, var(--c) 30%, transparent), transparent); opacity: .5; transform: translate(var(--gx, 0px), var(--gy, 0px)); transition: opacity var(--d3); }
.nv:hover .nv-dedans { border-color: var(--trait-fort); }
.nv:hover .nv-dedans::before { opacity: 1; }
.nv-tete { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 6px; }
.badge { padding: 4px 9px; border-radius: 999px; background: var(--laiton-doux); color: var(--laiton); font: 600 11px var(--chiffre); letter-spacing: .06em; text-transform: uppercase; }
.nv h3 { font-size: 21px; letter-spacing: -.02em; }
.nv p { color: var(--encre-2); font-size: 14.5px; line-height: 1.5; }
.nv .nv-pied { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 8px; }
.nv-pied span { padding: 3px 9px; border: 1px solid var(--trait); border-radius: 999px; color: var(--encre-3); font-size: 12px; }

/* 4 · Ce que toutes les apps savent faire. */
.grille { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.case { display: flex; flex-direction: column; gap: 8px; padding: 18px 18px 22px; border: 1px solid var(--trait); border-radius: 20px; background: var(--carte); box-shadow: var(--ombre); }
.case.large { grid-column: span 2; }
.case h3 { margin-top: 10px; font-size: 18px; letter-spacing: -.015em; }
.case p { color: var(--encre-2); font-size: 14.5px; line-height: 1.5; }
.demo { position: relative; display: grid; place-items: center; height: 128px; border-radius: 14px; background: var(--carte-2); box-shadow: 0 0 0 1px var(--trait) inset; overflow: hidden; }
.demo svg { width: 78%; height: 78%; overflow: visible; }
.case:not(.joue) .demo *, .calme .demo * { animation-play-state: paused !important; }

.d-langues .mot { font: 600 clamp(30px, 3.4vw, 44px)/1.1 var(--titre); letter-spacing: -.03em; transition: opacity var(--d2) var(--sortie), transform var(--d3) var(--sortie), filter var(--d2); }
.d-langues .mot.sort { opacity: 0; transform: translateY(-14px); filter: blur(3px); }
.d-langues .mot.entre { opacity: 0; transform: translateY(14px); filter: blur(3px); transition: none; }
.d-langues .compte-l { position: absolute; top: 12px; right: 14px; color: var(--laiton); font: 600 12px var(--chiffre); }

.d-synchro .app { fill: none; stroke: var(--encre-3); stroke-width: 1.5; }
.d-synchro .voie { stroke: var(--trait-fort); stroke-width: 1.5; stroke-dasharray: 3 5; }
.d-synchro circle { fill: var(--laiton); }
.d-synchro .go { animation: aller 3s var(--sortie) infinite; }
.d-synchro .retour { animation: retour 3s var(--sortie) 1.5s infinite; opacity: 0; }
@keyframes aller { 0% { transform: translateX(0); opacity: 0; } 8% { opacity: 1; } 42% { transform: translateX(50px); opacity: 1; } 50%, 100% { transform: translateX(50px); opacity: 0; } }
@keyframes retour { 0% { transform: translateX(0); opacity: 0; } 8% { opacity: 1; } 42% { transform: translateX(-50px); opacity: 1; } 50%, 100% { transform: translateX(-50px); opacity: 0; } }

.d-jours { grid-template-columns: repeat(7, 16px); gap: 6px; place-content: center; }
.d-jours i { width: 16px; height: 16px; border-radius: 4px; background: var(--trait); animation: remplir 4.4s var(--sortie) infinite; animation-delay: calc((27 - var(--i, 0)) * 55ms); }
.d-jours i:last-child { box-shadow: 0 0 0 1.5px var(--encre) inset; }
@keyframes remplir { 0%, 6% { background: var(--trait); transform: scale(.85); } 16%, 78% { background: color-mix(in srgb, var(--laiton) 75%, transparent); transform: none; } 100% { background: var(--trait); transform: scale(.85); } }

.d-rappels { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; place-content: center; }
.d-rappels span { padding: 7px 12px; border: 1px solid var(--trait-fort); border-radius: 999px; background: var(--carte); font: 600 13px var(--chiffre); animation: puce 3.6s var(--sortie) infinite; opacity: 0; }
.d-rappels span:nth-child(2) { animation-delay: .22s; }
.d-rappels span:nth-child(3) { animation-delay: .44s; }
@keyframes puce { 0% { opacity: 0; transform: translateY(10px) scale(.96); } 12%, 82% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; transform: translateY(-6px); } }

.d-clavier { display: flex; gap: 8px; place-content: center; align-items: center; }
.d-clavier kbd { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: var(--carte); box-shadow: 0 0 0 1px var(--trait-fort) inset, 0 3px 0 var(--trait-fort); font: 600 17px var(--texte); animation: appui 3s var(--sortie) infinite; }
.d-clavier kbd:nth-child(2) { animation-delay: .1s; }
.d-clavier kbd:nth-child(3) { margin-left: 14px; animation-delay: 1.5s; }
.d-clavier kbd:nth-child(4) { animation-delay: 1.6s; }
@keyframes appui { 0%, 18%, 100% { transform: none; box-shadow: 0 0 0 1px var(--trait-fort) inset, 0 3px 0 var(--trait-fort); } 6%, 12% { transform: translateY(3px); box-shadow: 0 0 0 1px var(--laiton) inset, 0 0 0 var(--trait-fort); color: var(--laiton); } }

.d-widget rect { fill: var(--carte); stroke: var(--trait-fort); }
.d-widget circle { fill: none; stroke-width: 8; }
.d-widget .fond { stroke: var(--trait); }
.d-widget .anneau { stroke: var(--laiton); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transform: rotate(-90deg); transform-origin: 48px 48px; animation: anneau 3.6s var(--sortie) infinite; }
@keyframes anneau { 0% { stroke-dashoffset: 100; } 55%, 85% { stroke-dashoffset: 28; } 100% { stroke-dashoffset: 100; } }

.d-pont .fil { fill: none; stroke: var(--trait-fort); stroke-width: 1.5; }
.d-pont .vif { fill: none; stroke: var(--laiton); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 16 84; stroke-dashoffset: 100; animation: courir 2.8s linear infinite; }
.d-pont .v2 { animation-delay: 1.4s; }
.d-pont circle { fill: var(--encre-3); }
.d-pont circle:nth-of-type(odd) { fill: var(--encre); }
@keyframes courir { to { stroke-dashoffset: 0; } }

.d-onglets { gap: 14px; place-content: center; justify-items: center; }
.d-onglets .ong { position: relative; display: grid; grid-template-columns: repeat(4, 54px); padding: 4px; border-radius: 10px; background: var(--trait); }
.d-onglets .ong i { height: 22px; margin: 0 12px; display: block; position: relative; z-index: 1; }
.d-onglets .ong i::after { content: ""; position: absolute; inset: 9px 0; border-radius: 2px; background: var(--encre-3); }
.d-onglets .ong b { position: absolute; top: 4px; left: 4px; width: 54px; height: 22px; border-radius: 7px; background: var(--carte); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); animation: onglet 6s var(--sortie) infinite; }
.d-onglets .lignes { display: grid; gap: 7px; width: 216px; }
.d-onglets .lignes i { height: 8px; border-radius: 4px; background: var(--trait); animation: ligne 6s var(--sortie) infinite; transform-origin: 0 50%; }
.d-onglets .lignes i:nth-child(2) { animation-delay: .08s; width: 80%; }
.d-onglets .lignes i:nth-child(3) { animation-delay: .16s; width: 60%; }
@keyframes onglet { 0%, 20% { transform: none; } 25%, 45% { transform: translateX(54px); } 50%, 70% { transform: translateX(108px); } 75%, 95% { transform: translateX(162px); } 100% { transform: none; } }
@keyframes ligne { 0%, 20%, 25%, 45%, 50%, 70%, 75%, 95% { transform: none; opacity: 1; } 22%, 47%, 72%, 97% { transform: scaleX(.3); opacity: .3; } }

/* 5 · Les univers. */
.u-grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 60px); }
.u-liste { margin: 0; padding: 0; list-style: none; counter-reset: u; }
.u-ligne { display: grid; grid-template-columns: 52px minmax(0, 1fr); padding: 30px 0; border-top: 1px solid var(--trait); opacity: .38; transition: opacity var(--d3) var(--sortie); }
.u-ligne.actif, .u-ligne:hover, .u-ligne:focus-within { opacity: 1; }
.u-num { padding-top: 6px; color: var(--laiton); font: 600 12px var(--chiffre); }
.u-ligne h3 { font-size: clamp(22px, 2.4vw, 32px); letter-spacing: -.03em; line-height: 1.1; }
.u-ligne h3::after { content: ""; display: inline-block; width: 8px; height: 8px; margin-left: 12px; vertical-align: middle; border-radius: 50%; background: var(--c); transform: scale(0); transition: transform var(--d3) var(--ressort); }
.u-ligne.actif h3::after { transform: none; }
.u-ligne p { margin-top: 10px; color: var(--encre-2); max-width: 46ch; }
.u-minis { display: none; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.u-lien { display: inline-flex; gap: 8px; margin-top: 14px; color: var(--encre); font-size: 14px; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--trait-fort); padding-bottom: 2px; }
.u-lien span { transition: transform var(--d2) var(--sortie); }
.u-lien:hover span { transform: translateX(3px); }
.u-place { position: relative; }
.u-scene { position: sticky; top: 96px; height: min(640px, calc(100svh - 140px)); border-radius: 28px; border: 1px solid var(--trait); background: radial-gradient(70% 60% at 50% 45%, color-mix(in srgb, var(--uc, var(--laiton)) 12%, transparent), transparent 70%), color-mix(in srgb, var(--carte) 55%, transparent); transition: --uc var(--d4); }
.u-nom { position: absolute; left: 22px; bottom: 18px; color: var(--encre-2); font: 600 12px var(--chiffre); letter-spacing: .08em; text-transform: uppercase; }

/* 6 · Les principes. */
.principes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.principes li { padding: 22px 20px 26px; border-top: 1px solid var(--encre); }
.p-num { color: var(--laiton); font: 600 12px var(--chiffre); }
.barre-mot { margin: 18px 0 6px; color: var(--encre-3); font-size: 14px; }
.barre-mot s { text-decoration: none; background: linear-gradient(currentColor, currentColor) no-repeat 0 56% / 0% 1.5px; transition: background-size var(--d4) var(--sortie) .35s; }
.vu .barre-mot s, html:not(.js) .barre-mot s { background-size: 100% 1.5px; }
.principes h3 { font-size: 22px; letter-spacing: -.02em; }
.principes p:last-child { margin-top: 10px; color: var(--encre-2); font-size: 15px; }
.regle { margin: clamp(60px, 8vw, 110px) auto 0; max-width: 900px; text-align: center; }
.regle .sur { justify-content: center; }
.regle-mot { font: italic 400 clamp(30px, 4.4vw, 58px)/1.08 var(--serif); letter-spacing: -.02em; text-wrap: balance; }
:lang(zh) .regle-mot, :lang(ja) .regle-mot, :lang(ko) .regle-mot { font-style: normal; font-family: var(--titre); font-weight: 600; }

/* 7 · Toute la gamme. */
.outils { position: sticky; top: 64px; z-index: 5; display: flex; flex-wrap: wrap; gap: 12px; margin: 0 -12px 24px; padding: 12px; border-radius: 16px; background: color-mix(in srgb, var(--fond) 86%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.recherche { position: relative; display: flex; align-items: center; flex: 1 1 280px; max-width: 420px; }
.recherche svg { position: absolute; left: 13px; width: 17px; height: 17px; fill: none; stroke: var(--encre-3); stroke-width: 1.8; stroke-linecap: round; }
.recherche input { width: 100%; height: 44px; padding: 0 40px 0 40px; border: 1px solid var(--trait-fort); border-radius: 12px; background: var(--carte); color: var(--encre); font: 400 15px var(--texte); transition: border-color var(--d1), box-shadow var(--d2); }
.recherche input:focus { outline: 0; border-color: var(--laiton); box-shadow: 0 0 0 4px var(--laiton-doux); }
.recherche kbd { position: absolute; right: 10px; padding: 1px 7px; border: 1px solid var(--trait-fort); border-radius: 6px; color: var(--encre-3); font: 500 12px var(--chiffre); }
.puces { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; flex: 1 1 100%; }
.puces::-webkit-scrollbar { display: none; }
.puce { flex: none; display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border: 1px solid var(--trait); border-radius: 999px; background: transparent; color: var(--encre-2); font: 500 13px var(--texte); cursor: pointer; transition: background var(--d1), color var(--d1), border-color var(--d1); }
.puce span { color: var(--encre-3); font: 500 11px var(--chiffre); }
.puce:hover { border-color: var(--trait-fort); }
.puce.actif { background: var(--encre); border-color: var(--encre); color: var(--fond); }
.puce.actif span { color: inherit; opacity: .7; }
.vide { padding: 40px 0; color: var(--encre-3); }
.groupe { margin-top: 44px; }
.groupe[hidden] { display: none; }
.groupe-tete { display: grid; grid-template-columns: 1fr auto; gap: 4px 20px; align-items: baseline; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--trait); }
.groupe-tete h3 { font-size: 22px; letter-spacing: -.02em; }
.groupe-tete h3::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 10px; border-radius: 50%; background: var(--c); vertical-align: middle; }
.groupe-tete p { grid-column: 1; color: var(--encre-3); font-size: 14px; }
.groupe-n { grid-row: 1; grid-column: 2; color: var(--encre-3); font: 500 12px var(--chiffre); }
.cartes { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.cartes li[hidden] { display: none; }
.carte { display: flex; gap: 14px; height: 100%; padding: 14px; border: 1px solid var(--trait); border-radius: 16px; background: var(--carte); text-decoration: none; transition: border-color var(--d1), transform var(--d2) var(--sortie), box-shadow var(--d2); }
a.carte:hover, .carte:hover { border-color: var(--trait-fort); transform: translateY(-2px); box-shadow: var(--ombre); }
.carte-texte { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.carte-nom { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-weight: 600; font-size: 15.5px; }
.etat { padding: 2px 7px; border-radius: 999px; background: var(--laiton-doux); color: var(--laiton); font: 600 10.5px var(--chiffre); letter-spacing: .03em; }
.carte-ligne { color: var(--encre-2); font-size: 14px; line-height: 1.45; }
.carte-plat { margin-top: 2px; color: var(--encre-3); font-size: 12px; }
.carte.eclair { animation: eclair 1.6s var(--sortie); }
@keyframes eclair { 0%, 40% { border-color: var(--laiton); box-shadow: 0 0 0 4px var(--laiton-doux); } 100% { box-shadow: 0 0 0 0 transparent; } }

/* 8 · Les questions. */
.faq { border-top: 1px solid var(--trait); }
.faq details { border-bottom: 1px solid var(--trait); interpolate-size: allow-keywords; }
.faq summary { position: relative; display: block; padding: 20px 40px 20px 0; font: 600 17px var(--titre); letter-spacing: -.01em; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 13px; height: 1.6px; background: var(--encre-2); transition: transform var(--d3) var(--sortie); }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0); }
.faq details::details-content { height: 0; overflow: clip; transition: height var(--d3) var(--sortie), content-visibility var(--d3) allow-discrete; }
.faq details[open]::details-content { height: auto; }
.faq details p { padding: 0 40px 22px 0; color: var(--encre-2); }

/* 9 · Le contact. */
.contact { padding: clamp(40px, 6vw, 72px); border: 1px solid var(--trait); border-radius: 28px; background: var(--carte); box-shadow: var(--ombre); text-align: center; }
.contact .sur { justify-content: center; }
.contact .chapeau { margin: 16px auto 28px; max-width: 520px; }

.pied { margin-top: clamp(80px, 10vw, 130px); padding: 28px 0 40px; border-top: 1px solid var(--trait); }
.pied-dedans { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.pied-mention { color: var(--encre-3); font-size: 13px; }
.pied nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-left: auto; color: var(--encre-3); font-size: 13px; }
.pied nav a { text-decoration: none; }
.pied nav a:hover { color: var(--encre); }

/* Écrans moyens et petits. */
@media (max-width: 1080px) {
  .liens { display: none; }
  .grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .principes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chiffres-liste { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .chiffres-liste li:nth-child(4) { border-left: 0; padding-left: 0; }
  .chiffres-liste li:nth-child(n+4) { margin-top: 22px; border-top: 1px solid var(--trait); }
}
@media (max-width: 900px) {
  .u-grille { grid-template-columns: 1fr; }
  .u-place { display: none; }
  .u-ligne { opacity: 1; }
  .u-minis { display: flex; }
}
@media (max-width: 760px) {
  .cadre, .cadre.etroit { width: calc(100% - 32px); }
  .segment, .barre .bouton.petit { display: none; }
  .ouvrir-menu { display: block; margin-left: auto; }
  .barre-dedans { height: 58px; }
  .menu { inset: 58px 0 0; }
  html { scroll-padding-top: 70px; }
  .ouverture-scene { height: 34vh; min-height: 200px; }
  .grille, .principes { grid-template-columns: 1fr; }
  .case.large { grid-column: auto; }
  .chiffres-liste { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chiffres-liste li:nth-child(n) { border-left: 0; padding-left: 0; }
  .chiffres-liste li:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--trait); }
  .chiffres-liste li:nth-child(n+3) { margin-top: 18px; border-top: 1px solid var(--trait); }
  .outils { top: 58px; }
  .cartes { grid-template-columns: 1fr; }
  .pied nav { margin-left: 0; }
  .pause { margin-left: 0; }
}

/* Mouvement réduit : tout est là, rien ne bouge. */
@media (prefers-reduced-motion: reduce) {
  .js .revele { opacity: 1; transform: none; transition: none; }
  .demo *, .demo { animation: none !important; transition: none !important; }
  .barre-mot s { background-size: 100% 1.5px; transition: none; }
  .nv-dedans { transform: none !important; }
  .d-synchro circle, .d-rappels span { opacity: 1; }
}
.banc *, .banc *::before, .banc *::after { transition-duration: 0s !important; transition-delay: 0s !important; }
