/* ═══════════════════════════════════════════════════════════════════════════
   Auto-appel · page d'accueil
   Système de design « Sobre » — réutilisable tel quel pour le site de
   téléchargement, l'app web et les pages légales : couleurs, typographie
   (Geist + Geist Mono), espaces, rayons, bordures, ombres, mouvement.
   Changer la marque : --accent / --accent-nuit / --accent-rgb ci-dessous,
   et remplacer le fichier site/logo.svg (une seule source pour le logo).
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --bord-page: max(var(--gouttiere), calc((100vw - var(--max)) / 2));
  /* ── Couleurs : encre + blanc chaud + gris neutres ── */
  --blanc: #fdfcf9;           /* blanc chaud (fond du logo) */
  --gris-0: #f8f7f3;          /* fond alterné */
  --gris-1: #f2f1ec;          /* surfaces, cadres d'objets */
  --gris-2: #e6e4de;          /* bordures 1 px */
  --gris-3: #d4d1c9;          /* filets appuyés */
  --gris-5: #6b6a65;          /* texte secondaire · 5,3:1 sur blanc chaud */
  --gris-7: #3a3935;          /* texte courant appuyé */
  --noir: #0d0c0b;            /* encre du logo : texte, sections sombres */
  --noir-2: #161513;          /* surfaces sombres */
  --gris-nuit: #a3a19b;       /* texte secondaire sur noir · 7,9:1 */
  --bord-nuit: rgba(255, 255, 255, .1);

  /* ── Accent : le jaune signal du logo, seule couleur, en touches (jamais en texte sur fond clair) ── */
  --accent: #fed705;          /* remplissages : points, états actifs, « dernier domino » */
  --accent-rgb: 254, 215, 5;
  --sur-accent: #0d0c0b;      /* texte posé sur le jaune · 14:1 */
  --accent-nuit: #fed705;     /* sur fond noir, le jaune peut aussi servir de texte · 13:1 */
  --logo-taille: 22px;

  /* ── Typographie ── */
  --f-texte: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --f-titre: var(--f-texte);
  --f-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --f-ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, system-ui, sans-serif; /* répliques d'interface */
  --t-1: clamp(2.75rem, 6.1vw, 5.5rem);     /* 44 → 88 px */
  --t-2: clamp(2.125rem, 4.4vw, 3.75rem);   /* 34 → 60 px */
  --t-3: clamp(1.375rem, 2vw, 1.75rem);     /* 22 → 28 px */
  --t-sous: clamp(1.0625rem, 1.3vw, 1.25rem);
  --t-texte: 1rem;
  --t-petit: .875rem;
  --t-mono: .75rem;
  --g-titre: 600;
  --g-sous: 500;
  --ap-1: -.045em;
  --ap-2: -.038em;
  --ap-3: -.022em;
  --i-titre: 1.02;
  --i-texte: 1.55;

  /* ── Espaces ── */
  --gouttiere: clamp(16px, 4vw, 64px);
  --max: 1200px;
  --section: clamp(96px, 15vh, 176px);

  /* ── Rayons, bordures, ombres (très fines) ── */
  --r-bouton: 999px;          /* capsules, comme le verre liquide */
  --r-carte: 16px;
  --r-media: 20px;
  --r-objet: 24px;
  --bord: 1px solid var(--gris-2);
  --ombre-1: 0 1px 2px rgba(10, 10, 11, .05);
  --ombre-2: 0 1px 2px rgba(10, 10, 11, .04), 0 10px 28px -14px rgba(10, 10, 11, .14);
  --ombre-3: 0 1px 2px rgba(10, 10, 11, .04), 0 28px 56px -28px rgba(10, 10, 11, .22);

  /* ── Mouvement : fondus, montées de 8 à 16 px, masques de lignes ── */
  --c-sortie: cubic-bezier(.2, .8, .2, 1);
  --c-doux: cubic-bezier(.25, 1, .5, 1);
  --c-io: cubic-bezier(.65, 0, .35, 1);
  --c-ressort: cubic-bezier(.34, 1.4, .64, 1);   /* réservé aux répliques du logiciel */
  --d-1: .2s;
  --d-2: .5s;
  --d-3: .8s;
  --montee: 14px;
  --decalage: 60ms;

  /* ── Thème courant (clair) ── */
  --fond: var(--blanc);
  --texte: var(--noir);
  --texte-2: var(--gris-5);
  --trait: var(--gris-2);
  --accent-t: var(--noir);
}
.sombre {
  --fond: var(--noir);
  --texte: #fafafa;
  --texte-2: var(--gris-nuit);
  --trait: var(--bord-nuit);
  --accent-t: var(--accent-nuit);
  color: var(--texte);
  background-color: var(--fond);
}

/* ═══ Base ═══ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 72px; overflow-x: clip; background: var(--blanc); }
body { margin: 0; min-height: 100vh; background: var(--blanc); color: var(--noir); font: 400 var(--t-texte)/var(--i-texte) var(--f-texte); font-synthesis: none; font-feature-settings: "ss01" 0; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; overflow-x: clip; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, video, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; }
kbd { font: inherit; }
::selection { background: rgba(var(--accent-rgb), .55); color: var(--noir); }
:focus-visible { outline: 2px solid var(--accent-t); outline-offset: 3px; border-radius: 4px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 16px; height: 16px; flex: none; }
.evite { position: fixed; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--noir); color: #fff; border-radius: var(--r-bouton); font-weight: 500; text-decoration: none; transition: top .3s var(--c-sortie); }
.evite:focus { top: 12px; }
.grain { display: none; }
.avance { position: fixed; inset: 0 0 auto; z-index: 61; height: 2px; pointer-events: none; }
.avance i { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(var(--avance, 0)); }
@supports (animation-timeline: scroll()) {
  .avance i { animation: avance linear both; animation-timeline: scroll(root); }
  @keyframes avance { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}

/* ═══ Mise en page commune ═══ */
.cadre { width: 100%; max-width: calc(var(--max) + 2 * var(--gouttiere)); margin-inline: auto; padding-inline: var(--gouttiere); }
.etiquette { display: flex; align-items: center; gap: 10px; font: 500 var(--t-mono)/1.2 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--texte-2); }
.etiquette .num { display: inline-flex; align-items: center; gap: 8px; color: var(--texte); }
.etiquette .num::before { content: ""; width: 6px; height: 6px; border-radius: 1.5px; background: var(--accent); }
.titre-2 { font: var(--g-titre) var(--t-2)/var(--i-titre) var(--f-titre); letter-spacing: var(--ap-2); text-wrap: balance; }
.titre-2 i, .ouv-titre i, .final-t i, .moment h3 i, .doss-tx h3 i, .fen-leg h3 i { font-style: normal; color: var(--texte-2); }
.titre-2 em, .ouv-titre em, .principe-t em { font-style: normal; }
.sous { font: var(--g-sous) var(--t-sous)/1.4 var(--f-texte); letter-spacing: -.01em; color: var(--texte-2); }
.mention { font: 400 11.5px/1.5 var(--f-mono); letter-spacing: .01em; color: var(--texte-2); }
.mention-centre { text-align: center; margin-top: 20px; }
.tete { display: grid; gap: 18px; padding-top: var(--section); }
.tete .titre-2 { max-width: 16ch; }
.tete-centre { justify-items: center; text-align: center; }

/* ═══ Boutons et liens ═══ */
.bouton { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 46px; padding: 0 20px; border-radius: var(--r-bouton); background: var(--noir); color: #fff; font: 500 15px/1 var(--f-texte); letter-spacing: -.01em; text-decoration: none; white-space: nowrap; box-shadow: var(--ombre-1), inset 0 1px 0 rgba(255, 255, 255, .12); transition: background-color var(--d-1) ease, transform var(--d-2) var(--c-sortie), box-shadow var(--d-1); }
.bouton:hover { background: #26262b; }
.bouton:active { transform: scale(.98); }
.bouton .ic { transition: transform var(--d-2) var(--c-sortie); }
.bouton:hover .ic { transform: translate3d(3px, 0, 0); }
.sombre .bouton, .bouton-clair { background: #fff; color: var(--noir); box-shadow: var(--ombre-1); }
.sombre .bouton:hover, .bouton-clair:hover { background: #e9e9ec; }
.bouton-petit { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 9px; }
.lien-trait { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 6px; font: 500 15px/1 var(--f-texte); letter-spacing: -.01em; text-decoration: none; color: inherit; opacity: .85; transition: opacity var(--d-1); }
.lien-trait:hover { opacity: 1; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }

/* ═══ Révélations (sobres) ═══ */
.l { display: block; overflow: clip; padding-bottom: .08em; margin-bottom: -.08em; }
.l > span { display: inline-block; }
.js .rv-l .l > span, .js .ouv-titre .l > span { transform: translate3d(0, 105%, 0); transition: transform 1s var(--c-doux); transition-delay: calc(var(--li, 0) * 90ms + var(--retard, 0ms)); }
.js .rv-l.is-in .l > span, .js .ouv.is-in .ouv-titre .l > span { transform: none; }
.js .rv { opacity: 0; transform: translate3d(0, var(--montee), 0); transition: opacity var(--d-3) var(--c-sortie), transform 1s var(--c-doux); transition-delay: calc(var(--d, 0) * var(--decalage)); }
.js .rv.is-in { opacity: 1; transform: none; }

/* ═══ En-tête : pilule de verre flottante ═══ */
.nav { position: fixed; top: 12px; left: 50%; z-index: 60; display: flex; align-items: center; gap: 20px; width: min(1120px, calc(100% - 24px)); height: 52px; padding: 0 7px 0 18px; border-radius: 999px; color: var(--nav-c, var(--noir)); --verre-fond: rgba(253, 252, 249, .62); transform: translate3d(-50%, 0, 0); transition: color .4s var(--c-sortie), transform .6s var(--c-doux), background-color .4s var(--c-sortie); }
.nav.sur-sombre { --nav-c: #fafafa; --verre-fond: rgba(18, 17, 16, .36); }
.nav.cache:not(.ouvert) { transform: translate3d(-50%, calc(-100% - 20px), 0); }
.marque { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font: 700 17px/1 var(--f-texte); letter-spacing: -.04em; flex: none; }
.marque-symbole { height: var(--logo-taille); width: auto; aspect-ratio: 124 / 61; flex: none; overflow: visible; }
.marque-logo { height: 24px; width: auto; flex: none; }
.marque-sombre { display: none; }
.nav.sur-sombre .marque-clair { display: none; }
.nav.sur-sombre .marque-sombre { display: block; }
.nav-liens { display: none; gap: 2px; margin-left: auto; }
.nav-liens a { padding: 8px 12px; border-radius: 999px; font-size: 14px; text-decoration: none; color: inherit; opacity: .7; transition: opacity var(--d-1), background-color var(--d-1); }
.nav-liens a:hover { opacity: 1; }
.nav-liens a { position: relative; }
.nav-liens a.cur { opacity: 1; }
.nav-liens a::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 12px; height: 2px; margin-left: -6px; border-radius: 1px; background: var(--accent); transform: scaleX(0); transition: transform var(--d-2) var(--c-doux); }
.nav-liens a.cur::after { transform: none; }
.nav-act { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.nav-lien { display: none; font-size: 14px; text-decoration: none; opacity: .7; }
.nav-lien:hover { opacity: 1; }
.nav .bouton-petit .lg { display: none; }
.nav .bouton-petit { height: 38px; }
.nav.sur-sombre .bouton-petit { background: #fff; color: var(--noir); }
.nav-menu { display: inline-flex; align-items: center; gap: 10px; height: 36px; padding: 0 2px; font: 500 13px/1 var(--f-texte); }
.nav-menu i { position: relative; width: 16px; height: 7px; }
.nav-menu i::before, .nav-menu i::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; border-radius: 1px; background: currentColor; transition: transform var(--d-2) var(--c-doux); }
.nav-menu i::before { top: 0; }
.nav-menu i::after { bottom: 0; }
.nav.ouvert .nav-menu i::before { transform: translate3d(0, 2.75px, 0) rotate(45deg); }
.nav.ouvert .nav-menu i::after { transform: translate3d(0, -2.75px, 0) rotate(-45deg); }
.nav-feuille { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: -2; max-height: calc(100svh - 84px); overflow: auto; padding: 8px 20px 22px; border-radius: 24px; background: rgba(13, 12, 11, .96); color: #fafafa; display: grid; gap: 20px; box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .6); }
.nav-feuille[hidden] { display: none; }
.nav-feuille nav { display: grid; }
.nav-feuille nav a { display: flex; align-items: baseline; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--bord-nuit); text-decoration: none; font: 600 22px/1.1 var(--f-texte); letter-spacing: -.025em; }
.nav-feuille nav a span { font: 500 11px/1 var(--f-mono); color: var(--gris-nuit); }
.nav-feuille .bouton { justify-self: start; }
.nav.ouvert { --nav-c: #fafafa; --verre-fond: rgba(13, 12, 11, .82); }
@media (min-width: 560px) { .nav .bouton-petit .lg { display: inline; } .nav .bouton-petit .sm { display: none; } }
@media (min-width: 1080px) {
  .nav-liens { display: flex; }
  .nav-act { margin-left: 8px; }
  .nav-lien { display: inline; }
  .nav-menu, .nav-feuille { display: none !important; }
}

/* ═══ Verre liquide (façon iOS 26 / macOS Tahoe) ═══
   Partout : verre dépoli (flou + saturation) et reflets spéculaires fins.
   Chromium (html.lg) : vraie réfraction — app.js pose un filtre SVG feDisplacementMap calculé à la
   taille de chaque surface (bords qui dévient le fond comme une lentille, légère dispersion). Peu de
   surfaces : la pilule d'en-tête, la barre posée sur la vidéo, un bouton, la lentille, le rapport. */
.verre { position: relative; isolation: isolate; background: var(--verre-fond, rgba(255, 255, 255, .16)); -webkit-backdrop-filter: blur(16px) saturate(1.7); backdrop-filter: blur(16px) saturate(1.7); box-shadow: inset 1.5px 1.5px 0 -.5px rgba(255, 255, 255, .7), inset -1px -1px 0 -.5px rgba(255, 255, 255, .28), inset 0 0 22px -8px rgba(255, 255, 255, .45), 0 0 0 .5px rgba(13, 12, 11, .14), 0 14px 36px -18px rgba(0, 0, 0, .35); }
.verre::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; padding: 1px; pointer-events: none; background: linear-gradient(150deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .16) 32%, rgba(255, 255, 255, 0) 56%, rgba(255, 255, 255, .42)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.nav.verre { position: fixed; }
html.lg .verre { --lg-flou: 5px; }
html.lg .nav.verre { --lg-flou: 9px; }
html.lg .rapport.verre { --lg-flou: 18px; }
.bouton-verre { position: relative; color: #fafafa; --verre-fond: rgba(255, 255, 255, .1); }
.bouton-verre:hover { --verre-fond: rgba(255, 255, 255, .2); background: var(--verre-fond); }
.lentille { display: none; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  html.lg .lentille { display: block; position: absolute; z-index: 5; left: 0; top: 0; width: 176px; height: 176px; margin: -88px 0 0 -88px; border-radius: 50%; pointer-events: none; --verre-fond: rgba(255, 255, 255, .04); --lg-flou: 0px; opacity: 0; transform: translate3d(var(--lx, 50vw), var(--ly, 50vh), 0) scale(.6); transition: opacity .35s var(--c-sortie), transform .5s var(--c-doux); }
  html.lg .ouv.lentille-on .lentille { opacity: 1; transform: translate3d(var(--lx), var(--ly), 0) scale(1); transition: opacity .35s var(--c-sortie), transform .12s linear; }
}
@media (prefers-reduced-transparency: reduce) {
  .verre { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; background: rgba(253, 252, 249, .96); }
  .nav.sur-sombre.verre, .nav.ouvert.verre, .bouton-verre { background: rgba(18, 17, 16, .92); }
}

/* ═══ Ouverture ═══ */
.ouv { position: relative; height: 100svh; min-height: 600px; background: var(--noir); }
.ouv-colle { position: relative; height: 100svh; min-height: 600px; overflow: hidden; }
.ouv-cadre { position: absolute; inset: 0; overflow: hidden; background: var(--noir-2); clip-path: inset(calc(var(--cadre, 0) * 10svh) calc(var(--cadre, 0) * var(--gouttiere)) calc(var(--cadre, 0) * 24svh) calc(var(--cadre, 0) * var(--gouttiere)) round calc(var(--cadre, 0) * var(--r-objet))); }
.ouv-video, .ouv-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; transform: scale(calc(1.08 - var(--cadre, 0) * .06)); transform-origin: 50% 42%; }
.ouv-video { z-index: 1; opacity: 0; transition: opacity 1.2s var(--c-sortie); }
.ouv-video.joue { opacity: 1; }
.js .ouv-image { animation: ouv-entree 1.8s var(--c-doux) both; }
@keyframes ouv-entree { from { transform: scale(1.14); opacity: .4; } }
.ouv-voile { position: absolute; inset: 0; z-index: 2; background: linear-gradient(180deg, rgba(10, 10, 11, .5) 0%, rgba(10, 10, 11, 0) 24%), linear-gradient(0deg, rgba(10, 10, 11, .86) 0%, rgba(10, 10, 11, .55) 28%, rgba(10, 10, 11, 0) 60%); opacity: calc(1 - var(--cadre, 0) * .6); }
.ouv-meta { position: absolute; z-index: 3; right: var(--bord-page); top: 88px; font: 500 var(--t-mono)/1.3 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: rgba(250, 250, 250, .72); opacity: calc(1 - var(--titre, 0) * 1.6); }
.ouv-texte { position: absolute; z-index: 3; left: var(--bord-page); right: var(--bord-page); bottom: clamp(28px, 7svh, 80px); display: grid; gap: clamp(20px, 3svh, 32px); color: #fafafa; transform: translate3d(0, calc(var(--titre, 0) * -10svh), 0); opacity: calc(1 - var(--titre, 0) * 1.25); }
.ouv-titre { font: var(--g-titre) var(--t-1)/1 var(--f-titre); letter-spacing: var(--ap-1); }
.ouv-titre .l:nth-child(1) > span { --li: 0; }
.ouv-titre .l:nth-child(2) > span { --li: 1; }
.js .ouv-titre .l > span { --retard: 200ms; }
.ouv-bas { display: grid; gap: 22px; }
.ouv-sous { font: var(--g-sous) var(--t-sous)/1.4 var(--f-texte); letter-spacing: -.01em; color: rgba(250, 250, 250, .72); }
.ouv-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.ouv-cta .bouton:not(.bouton-verre) { background: #fff; color: var(--noir); }
.ouv-cta .bouton:not(.bouton-verre):hover { background: #e9e9ec; }
.ouv-cta .bouton-verre { background: var(--verre-fond); color: #fafafa; }
.js .ouv-bas, .js .ouv-meta { opacity: 0; transform: translate3d(0, 10px, 0); transition: opacity .9s var(--c-sortie) .7s, transform 1s var(--c-doux) .7s; }
.js .ouv.is-in .ouv-bas, .js .ouv.is-in .ouv-meta { opacity: 1; transform: none; }
.js .ouv.is-in .ouv-meta { opacity: calc(1 - var(--titre, 0) * 1.6); }
.ouv-pose { display: none; }
.ouv-defile { position: absolute; z-index: 3; right: max(20px, calc(var(--bord-page) - 96px)); bottom: clamp(28px, 7svh, 80px); display: none; align-items: center; gap: 12px; font: 500 11px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: rgba(250, 250, 250, .6); opacity: calc(1 - var(--titre, 0) * 3); }
.ouv-defile i { position: relative; width: 1px; height: 40px; overflow: hidden; background: rgba(250, 250, 250, .22); }
.ouv-defile i::after { content: ""; position: absolute; inset: 0; background: #fafafa; transform: translate3d(0, -100%, 0); }
@media (prefers-reduced-motion: no-preference) { .ouv-defile i::after { animation: goutte 2.6s var(--c-io) infinite 2s; } }
@keyframes goutte { 0% { transform: translate3d(0, -100%, 0); } 55% { transform: none; } 100% { transform: translate3d(0, 100%, 0); } }
@media (min-width: 760px) {
  .ouv-bas { grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 40px; }
}
@media (min-width: 1100px) {
  .ouv-defile { display: flex; }
  .ouv-texte { right: calc(var(--bord-page) + 40px); }
}
@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  .ouv { height: 250svh; }
  .ouv-colle { position: sticky; top: 0; }
  .ouv-pose { display: block; position: absolute; z-index: 4; inset: 0; pointer-events: none; }
  .ouv-pose-t { position: absolute; left: var(--gouttiere); right: var(--gouttiere); bottom: 12svh; transform: translate3d(0, calc((1 - var(--legende, 0)) * 12px + 50%), 0); text-align: center; font: var(--g-sous) clamp(1.125rem, 1.6vw, 1.5rem)/1.2 var(--f-texte); letter-spacing: -.02em; color: rgba(250, 250, 250, .78); opacity: var(--legende, 0); }
  .ouv-barre { position: absolute; left: 50%; bottom: calc(24svh + 22px); width: min(1060px, calc(100% - 2 * var(--gouttiere) - 48px)); transform: translate3d(-50%, calc((1 - var(--barre, 0)) * 36svh), 0) scale(calc(.94 + var(--barre, 0) * .06)); opacity: clamp(0, calc(var(--barre, 0) * 2.5), 1); transform-origin: 50% 100%; }
}

/* ═══ Le principe ═══ */
.principe { background: var(--blanc); padding: var(--section) 0; }
.principe-t { font: var(--g-titre) clamp(2.5rem, 6vw, 5.5rem)/1.04 var(--f-titre); letter-spacing: var(--ap-1); text-align: center; }
.principe-t > span, .principe-t > em { display: block; }
.js .principe-t.coupe .mot { color: color-mix(in srgb, var(--noir) calc(clamp(.14, calc(.14 + (var(--p, 0) - .22 - .3 * var(--i) / var(--n)) * 14), 1) * 100%), var(--gris-2)); }

/* ═══ 01 · La barre, en grand (anatomie) ═══ */
.barre-s { background: var(--gris-0); border-top: var(--bord); padding-bottom: var(--section); overflow: clip; }
.anat { width: 100%; max-width: calc(1180px + 2 * var(--gouttiere)); margin: clamp(48px, 7vh, 80px) auto 0; padding-inline: var(--gouttiere); }
.anat-scene { position: relative; }
.anat-page { position: relative; display: block; height: clamp(220px, 28vw, 360px); border-radius: var(--r-objet) var(--r-objet) 8px 8px; background: var(--blanc); border: var(--bord); box-shadow: var(--ombre-2); overflow: hidden; }
.anat-page > span { position: absolute; display: block; }
.ap-top { inset: 0 0 auto; height: 44px; display: flex !important; align-items: center; gap: 7px; padding: 0 18px; border-bottom: var(--bord); }
.ap-top i { width: 10px; height: 10px; border-radius: 50%; background: var(--gris-2); }
.ap-top b { margin-left: 18px; width: 34%; height: 18px; border-radius: 9px; background: var(--gris-1); }
.ap-side { left: 0; top: 44px; bottom: 0; width: 15%; border-right: var(--bord); background: var(--gris-0); }
.ap-main { left: 15%; right: 0; top: 44px; bottom: 0; padding: 22px 28px; display: grid !important; align-content: start; gap: 12px; }
.ap-main b { width: 22%; height: 14px; border-radius: 4px; background: var(--gris-2); margin-bottom: 8px; }
.ap-main u { height: 10px; border-radius: 4px; background: linear-gradient(90deg, var(--gris-1) 0 28%, transparent 28% 34%, var(--gris-1) 34% 52%, transparent 52% 58%, var(--gris-1) 58% 74%, transparent 74%); }
.anat-barre { position: absolute; left: 50%; bottom: 18px; width: min(1060px, calc(100% - 24px)); transform: translate3d(-50%, 0, 0); }
.anat-leg { counter-reset: leg; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 12px 24px; margin-top: 32px; }
.anat-leg li { counter-increment: leg; display: flex; align-items: baseline; gap: 10px; padding-top: 12px; border-top: var(--bord); font-size: 14px; }
.anat-leg li::before { content: "0" counter(leg); font: 500 11px/1 var(--f-mono); color: var(--gris-5); }
.anat-leg b { font-weight: 500; color: var(--gris-7); }
.anat-traits { position: absolute; inset: 0; pointer-events: none; }
.anat-traits i { position: absolute; top: 0; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; display: grid; place-items: center; font: 600 10px/1 var(--f-mono); font-style: normal; color: var(--sur-accent); background: var(--accent); box-shadow: 0 0 0 1px var(--noir); opacity: 0; transform: translate3d(0, 6px, 0); transition: opacity .5s var(--c-sortie), transform .7s var(--c-doux); transition-delay: calc(var(--k) * 60ms + 500ms); }
.anat.is-in .anat-traits i { opacity: 1; transform: none; }
.anat .mention { margin-top: 24px; }
@media (min-width: 1180px) {
  .anat-traits { display: none; }
  .anat-leg { position: relative; display: block; height: 150px; margin-top: 0; }
  .anat-leg li { position: absolute; left: var(--x, 0); top: calc(var(--rang, 0) * 54px + 46px); width: max-content; max-width: 220px; padding: 0 0 0 12px; border: 0; transform: translate3d(-.5px, 0, 0); }
  .anat-leg li::before { content: ""; position: absolute; left: 0; bottom: 50%; width: 1px; height: calc(var(--rang, 0) * 54px + 64px); background: var(--gris-3); transform-origin: 50% 0; transform: scaleY(0); transition: transform .8s var(--c-doux); transition-delay: calc(var(--k) * 60ms + 450ms); }
  .anat-leg li.droite { padding: 0 12px 0 0; transform: translate3d(calc(-100% + .5px), 0, 0); }
  .anat-leg li.droite::before { left: auto; right: 0; }
  .anat-leg li::after { content: ""; position: absolute; left: -2.5px; top: calc(-1 * (var(--rang, 0) * 54px + 64px) + 50% - 6px); width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 1px var(--noir); opacity: 0; transition: opacity .4s var(--c-sortie); transition-delay: calc(var(--k) * 60ms + 400ms); }
  .anat-leg li.droite::after { left: auto; right: -2.5px; }
  .anat-leg li > * { display: block; opacity: 0; transform: translate3d(0, 8px, 0); transition: opacity .6s var(--c-sortie), transform .8s var(--c-doux); transition-delay: calc(var(--k) * 60ms + 700ms); white-space: nowrap; }
  .anat.is-in .anat-leg li::before { transform: none; }
  .anat.is-in .anat-leg li::after { opacity: 1; }
  .anat.is-in .anat-leg li > * { opacity: 1; transform: none; }
  .anat .mention { margin-top: 0; }
}
.js .anat .anat-page { opacity: 0; transform: translate3d(0, 16px, 0); transition: opacity .9s var(--c-sortie), transform 1.1s var(--c-doux); }
.js .anat .aa-in { opacity: 0; transform: translate3d(0, 16px, 0) scale(.98); transition: opacity .8s var(--c-sortie) .15s, transform 1.1s var(--c-doux) .15s; }
.js .anat .aa-in > :not(.prog) { opacity: 0; transition: opacity .6s var(--c-sortie); transition-delay: calc(var(--k, 0) * 50ms + 400ms); }
.js .anat.is-in .anat-page, .js .anat.is-in .aa-in, .js .anat.is-in .aa-in > :not(.prog) { opacity: 1; transform: none; }

/* ═══ Réplique de la barre d'action (verre clair, comme dans qhare) ═══ */
.aa { --c: #9aa3b2; container: aa / inline-size; width: 100%; font: 500 13px/1.4 var(--f-ui); color: #1d1d1f; -webkit-font-smoothing: antialiased; text-align: left; letter-spacing: normal; }
.aa[data-p=compose], .aa[data-p=sonne] { --c: #3b6cf6; }
.aa[data-p=ecoute] { --c: #5e5ce6; }
.aa[data-p=enligne] { --c: #0a84ff; }
.aa[data-p=attente], .aa[data-p=repondeur] { --c: #f59e0b; }
.aa[data-p=horaires] { --c: #8b5cf6; }
.aa svg { fill: currentColor; }
.aa-in { position: relative; display: flex; align-items: center; gap: 8px; height: 68px; padding: 0 12px; border-radius: 34px; background: linear-gradient(180deg, rgba(255, 255, 255, .86), rgba(248, 249, 251, .9)); -webkit-backdrop-filter: blur(22px) saturate(1.8); backdrop-filter: blur(22px) saturate(1.8); box-shadow: inset 0 1px 1px #fff, inset 0 0 0 1px rgba(255, 255, 255, .45), 0 0 0 .5px rgba(0, 0, 0, .1), 0 20px 50px -22px rgba(10, 10, 11, .3), 0 2px 8px rgba(0, 0, 0, .1); }
.aa-in::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(130px 64px at 34px 50%, color-mix(in srgb, var(--c) 32%, transparent), transparent 72%); opacity: .75; pointer-events: none; transition: background .5s; }
.orbe { position: relative; flex: none; width: 40px; height: 40px; display: grid; place-items: center; color: var(--c); transition: color .45s; }
.orbe i { position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%; background: currentColor; display: grid; place-items: center; box-shadow: 0 0 18px -2px currentColor; transition: background .45s, box-shadow .45s; }
.orbe i svg { width: 14px; height: 14px; color: #fff; }
.orbe b { position: absolute; inset: 0; border-radius: 50%; border: 2px solid currentColor; opacity: 0; }
.orbe .pz { position: absolute; inset: 4px; z-index: 2; border-radius: 50%; background: linear-gradient(180deg, #fff, rgba(255, 255, 255, .8)); box-shadow: inset 0 1px 0 #fff, 0 0 0 .5px rgba(0, 0, 0, .1), 0 2px 6px -2px rgba(0, 0, 0, .2); display: grid; place-items: center; opacity: 0; transform: scale(.4); transition: opacity .25s, transform .45s var(--c-sortie); }
.orbe .pz svg { width: 11px; height: 11px; color: #1d1d1f; }
.aa.arrete:not(.en-appel) .orbe .pz { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .aa:is([data-p=sonne], [data-p=compose]) .orbe b { animation: onde 1.8s ease-out infinite; }
  .aa:is([data-p=sonne], [data-p=compose]) .orbe b + b { animation-delay: .9s; }
  .aa[data-p=sonne] .orbe i svg { animation: vibre 1.1s ease-in-out infinite; }
  .aa:is([data-p=ecoute], [data-p=enligne]) .orbe i { animation: respire 2s ease-in-out infinite; }
  .aa[data-p=attente] .invite i::after { animation: ping 1.4s ease-out infinite; }
}
@keyframes onde { from { opacity: .7; transform: scale(.7); } to { opacity: 0; transform: scale(1.75); } }
@keyframes vibre { 0%, 45%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(-15deg); } 20%, 40% { transform: rotate(15deg); } }
@keyframes respire { 50% { transform: scale(1.1); } }
@keyframes ping { from { opacity: .8; transform: scale(.6); } to { opacity: 0; transform: scale(1.6); } }
.info { position: relative; flex: none; width: 178px; min-width: 0; display: flex; flex-direction: column; gap: 2px; overflow: hidden; }
.l1 { display: flex; gap: 8px; align-items: baseline; white-space: nowrap; font-weight: 650; font-size: 14px; color: #1d1d1f; }
.chrono { font-size: 12px; color: #6e6e73; font-weight: 600; font-variant-numeric: tabular-nums; }
.qui { display: flex; align-items: center; gap: 6px; min-height: 18px; font-size: 12.5px; color: #6e6e73; white-space: nowrap; }
.nm { overflow: hidden; text-overflow: ellipsis; }
.nrp { flex: none; font-size: 10.5px; font-weight: 700; color: #3a3a3e; background: rgba(0, 0, 0, .07); border-radius: 6px; padding: 1px 6px; }
.nrp em { font-style: normal; }
.dpe { flex: none; width: 17px; height: 17px; border-radius: 5px; display: grid; place-items: center; background: var(--d); color: var(--dt, #fff); font-size: 10.5px; font-weight: 800; }
.swap { animation: swap .5s var(--c-sortie); }
.pop { animation: pop .7s var(--c-ressort); }
@keyframes swap { from { opacity: 0; transform: translate3d(0, 7px, 0); } }
@keyframes pop { 0% { transform: scale(1); } 35% { transform: scale(1.35); background: rgba(245, 158, 11, .3); } 100% { transform: scale(1); } }
.milieu { position: relative; flex: 1; min-width: 0; height: 100%; }
.milieu > * { position: absolute; left: 0; top: 50%; transform: translate3d(0, -50%, 0); white-space: nowrap; transition: opacity .35s ease, transform .5s var(--c-sortie); }
.jour-s { display: flex; gap: 14px; font-size: 12px; color: #6e6e73; }
.jour-s b { color: #2d2d31; font-weight: 700; margin-right: 4px; font-variant-numeric: tabular-nums; }
.aa:not([data-p=pause]):not([data-p=horaires]) .jour-s { opacity: 0; transform: translate3d(0, calc(-50% - 6px), 0); }
.entendu { right: 0; overflow: hidden; font-size: 12.5px; font-style: italic; color: #5b5b5f; opacity: 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 22px); mask-image: linear-gradient(90deg, transparent, #000 22px); padding-left: 18px; }
.aa.has-ent .entendu { opacity: 1; }
.invite { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: #a86a00; opacity: 0; }
.invite i { position: relative; width: 7px; height: 7px; border-radius: 50%; background: #f59e0b; }
.invite i::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #f59e0b; opacity: 0; }
.aa[data-p=attente] .invite { opacity: 1; }
.msg { left: auto; right: 2px; font-size: 11.5px; font-weight: 700; color: #a35f00; background: rgba(251, 191, 36, .16); border: 1px solid rgba(245, 158, 11, .38); border-radius: 9px; padding: 3px 9px; opacity: 0; transform: translate3d(0, -50%, 0) scale(.9); }
.aa.has-msg .msg { opacity: 1; transform: translate3d(0, -50%, 0) scale(1); }
.aa.has-msg .entendu { opacity: 0; }
.actions { position: relative; flex: none; display: flex; align-items: center; gap: 6px; }
.ico, .suiv, .cloche { background: linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .52)); color: #3a3a3c; box-shadow: inset 0 1px 0 #fff, inset 0 -1px 1px rgba(0, 0, 0, .04), 0 0 0 .5px rgba(0, 0, 0, .08), 0 2px 6px -2px rgba(0, 0, 0, .14); }
.ico { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; }
.ico svg { width: 17px; height: 17px; }
.ico.rouge { color: #e5352b; }
.appel-seul { transition: opacity .3s, transform .55s var(--c-ressort); }
.aa:not(.en-appel) .appel-seul { opacity: 0; transform: scale(.5); }
.pil { height: 40px; padding: 0 15px 0 13px; border-radius: 22px; display: flex; align-items: center; gap: 8px; font-weight: 650; font-size: 13px; white-space: nowrap; }
.pil svg { width: 13px; height: 13px; flex: none; }
.go { background: linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(255, 255, 255, .56)); color: #1d1d1f; box-shadow: inset 0 1px 0 #fff, 0 0 0 .5px rgba(0, 0, 0, .1), 0 3px 10px -3px rgba(0, 0, 0, .2); transition: background .3s, color .3s, box-shadow .3s, transform .5s var(--c-ressort); }
.aa.arrete .go { background: linear-gradient(180deg, #3a3a3c, #0b0b0c); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), inset 0 -1px 0 rgba(0, 0, 0, .6), 0 0 0 .5px rgba(0, 0, 0, .5), 0 8px 20px -6px rgba(0, 0, 0, .55); }
.go .g-play, .go .t-l { display: none; }
.aa.arrete .go .g-play { display: block; }
.aa.arrete .go .t-l { display: inline; }
.aa.arrete .go .g-pause, .aa.arrete .go .t-p { display: none; }
.aa.press .go { transform: scale(1.12); }
.suiv { color: #303034; }
.sep { width: 1px; height: 28px; background: rgba(0, 0, 0, .08); flex: none; }
.onglets { flex: none; display: flex; padding: 3px; border-radius: 20px; background: rgba(120, 120, 128, .12); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .06); }
.onglets span { height: 32px; padding: 0 11px; border-radius: 17px; display: grid; place-items: center; font-weight: 600; font-size: 12.5px; color: #6e6e73; }
.onglets .on { color: #1d1d1f; background: linear-gradient(180deg, #fff, rgba(255, 255, 255, .84)); box-shadow: inset 0 1px 0 #fff, 0 0 0 .5px rgba(0, 0, 0, .06), 0 3px 10px -2px rgba(0, 0, 0, .18); }
.cloche { position: relative; flex: none; height: 40px; padding: 0 13px 0 11px; border-radius: 22px; display: flex; align-items: center; gap: 7px; font-weight: 650; font-size: 12.5px; }
.cloche svg { width: 16px; height: 16px; fill: none; stroke: currentColor; }
.cloche b { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #ff3b30; color: #fff; font-size: 10.5px; font-weight: 700; display: grid; place-items: center; box-shadow: 0 0 0 2px #fff; }
.prog { position: absolute; left: 30px; right: 30px; bottom: 0; height: 2px; border-radius: 2px; overflow: hidden; opacity: 0; background: rgba(0, 0, 0, .04); transition: opacity .3s; }
.prog u { display: block; height: 100%; background: var(--c); transform-origin: left; transform: scaleX(0); }
.aa.has-prog .prog { opacity: 1; }
@media (prefers-reduced-motion: no-preference) { .aa.has-prog .prog u { animation: prog 6s linear infinite; } }
@keyframes prog { to { transform: scaleX(1); } }
@container aa (max-width: 1040px) { .aa .onglets, .aa .sep { display: none; } }
@container aa (max-width: 860px) { .aa .ico.hp, .aa .ico.rep { display: none; } }
@container aa (max-width: 700px) {
  .aa .cloche > span { display: none; }
  .aa .cloche { width: 40px; padding: 0; justify-content: center; }
  .aa .jour-s > span:nth-child(3) { display: none; }
}
@container aa (max-width: 540px) {
  .aa .milieu, .aa .ico.rouge { display: none; }
  .aa .info { flex: 1; width: auto; }
  .aa .suiv > span { display: none; }
  .aa .suiv { width: 40px; padding: 0; justify-content: center; }
  .aa .aa-in { height: 64px; gap: 6px; padding: 0 10px; }
}
@container aa (max-width: 360px) {
  .aa .cloche { display: none; }
  .aa .go { width: 40px; padding: 0; justify-content: center; }
  .aa .go span { display: none !important; }
}


/* ═══ 02 · Une journée ═══ */
.jour { position: relative; background: var(--blanc); border-top: var(--bord); }
.jour-colle { position: relative; padding: var(--section) 0; }
.jour-ciel { display: none; }
.jour-tete { display: grid; gap: 16px; }
.jour-t { font: var(--g-titre) var(--t-2)/var(--i-titre) var(--f-titre); letter-spacing: var(--ap-2); }
.jour-horloge, .jour-vis, .frise { display: none; }
.jour-scene { position: sticky; bottom: 12px; z-index: 2; margin-top: 32px; padding: 0 var(--gouttiere); }
.js .jour:not(.lit) .jour-scene { opacity: 0; transform: translate3d(0, 16px, 0); }
.jour-scene { transition: opacity .5s var(--c-sortie), transform .7s var(--c-doux); }
.jour-barre { max-width: 560px; margin-inline: auto; }
.moments { display: grid; gap: 28px; margin-top: 48px; }
.moment { display: grid; gap: 8px; padding-top: 18px; border-top: var(--bord); }
.m-h { display: flex; align-items: baseline; gap: 12px; }
.m-h time { font: 500 clamp(2.25rem, 9vw, 3rem)/1 var(--f-titre); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.m-h span { display: inline-flex; align-items: center; gap: 8px; font: 500 var(--t-mono)/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--gris-5); }
.m-h span::before { content: ""; width: 6px; height: 6px; border-radius: 1.5px; background: var(--accent); box-shadow: 0 0 0 .5px rgba(13, 12, 11, .25); }
.moment h3 { font: var(--g-titre) clamp(1.5rem, 5vw, 2rem)/1.1 var(--f-titre); letter-spacing: var(--ap-3); }
@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  .jour { height: 640svh; }
  .jour-colle { position: sticky; top: 0; height: 100svh; min-height: 640px; overflow: hidden; padding: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
  .jour-tete { padding-top: 96px; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; }
  .jour-t { font-size: clamp(1.25rem, 1.6vw, 1.5rem); letter-spacing: -.02em; color: var(--gris-5); font-weight: 500; }
  .jour-grille { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: center; min-height: 0; }
  .jour-horloge { display: grid; gap: 14px; grid-column: 1 / span 6; }
  .horloge { display: flex; align-items: baseline; font: 500 clamp(6rem, 12.5vw, 11.5rem)/.86 var(--f-titre); letter-spacing: -.055em; font-variant-numeric: tabular-nums; color: var(--noir); }
  .hd { position: relative; display: inline-block; height: .86em; width: .6em; overflow: hidden; }
  .hd-col { position: absolute; left: 0; right: 0; top: 0; display: grid; text-align: center; transform: translate3d(0, calc(var(--v, 0) * -.86em), 0); transition: transform .8s var(--c-doux); }
  .hd-col span { height: .86em; display: block; }
  .hsep { width: .28em; text-align: center; color: var(--gris-3); }
  .jour-compte { display: flex; align-items: center; gap: 14px; }
  .jour-compte b { font: 500 clamp(1.75rem, 2.4vw, 2.25rem)/1 var(--f-mono); letter-spacing: -.04em; font-variant-numeric: tabular-nums; min-width: 3ch; }
  .jour-compte > span { display: grid; font-size: 14px; color: var(--gris-7); }
  .jour-compte small { font: 400 11px/1.4 var(--f-mono); color: var(--gris-5); }
  .moments { grid-column: 8 / -1; display: grid; margin: 0; gap: 0; }
  .moment { grid-area: 1 / 1; border: 0; padding: 0; align-content: center; gap: 14px; }
  .moment .m-h time { display: none; }
  .moment h3 { font-size: clamp(2rem, 3.4vw, 3.25rem); line-height: 1.04; letter-spacing: var(--ap-2); }
  .js .moment > * { opacity: 0; transform: translate3d(0, 14px, 0); transition: opacity .4s var(--c-sortie), transform .7s var(--c-doux); }
  .js .moment.passe > * { transform: translate3d(0, -14px, 0); }
  .js .moment.on > * { opacity: 1; transform: none; transition-duration: .7s, 1s; }
  .js .moment.on > :nth-child(2) { transition-delay: 60ms; }
  .js .jour .jour-scene { opacity: 1; transform: none; }
  .jour-scene { position: relative; display: grid; justify-items: center; gap: 16px; padding: 0 var(--gouttiere) 30px; }
  .jour-barre { width: min(1060px, 100%); }
  .jour-vis { display: block; position: relative; width: min(1060px, 100%); height: 112px; }
  .jour-vis > .jv { position: absolute; right: 0; bottom: 6px; opacity: 0; transform: translate3d(0, 12px, 0); transition: opacity .4s var(--c-sortie), transform .7s var(--c-doux); pointer-events: none; }
  .jour-vis > .jv.toast { width: 340px; }
  .jour-vis > .jv-2 { right: auto; left: calc(50% - 190px); }
  .jour-vis > .jv-3 { right: auto; left: calc(50% - 270px); }
  .jour-vis > .jv-6 { right: auto; left: calc(50% - 250px); }
  .jour[data-m="1"] .jv-1, .jour[data-m="2"] .jv-2, .jour[data-m="3"] .jv-3, .jour[data-m="4"] .jv-4, .jour[data-m="5"] .jv-5, .jour[data-m="6"] .jv-6 { opacity: 1; transform: none; }
  .frise { width: min(1060px, 100%); display: grid; gap: 8px; }
  .frise-h { display: flex; justify-content: space-between; font: 500 10.5px/1 var(--f-mono); color: var(--gris-5); }
  .frise-h i { font-style: normal; width: 2ch; text-align: center; }
  .frise-l { position: relative; height: 1px; background: var(--gris-2); }
  .frise-l u { position: absolute; inset: 0; background: var(--noir); transform-origin: 0 50%; transform: scaleX(var(--jp, 0)); }
  .frise-l::after { content: ""; position: absolute; top: -3.5px; left: 0; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 1px var(--noir); transform: translate3d(calc(var(--jp, 0) * min(1060px, 100vw - 2 * var(--gouttiere))), 0, 0); }
}
/* Petits visuels de la journée */
.cascade { display: flex; gap: 8px; font-family: var(--f-ui); }
.cas-p { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 14px 0 10px; border-radius: 14px; background: #fff; border: var(--bord); box-shadow: var(--ombre-1); font-size: 12.5px; color: #6e6e73; }
.cas-p i { width: 16px; height: 26px; border-radius: 5px; border: 1.5px solid currentColor; opacity: .7; }
.cas-p b { font-weight: 600; }
.cas-p.gagne { color: #1d7a4c; border-color: rgba(48, 164, 108, .45); background: #f2fbf6; }
.cas-p em { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(48, 164, 108, .14); }
.cas-p em svg { width: 13px; height: 13px; fill: none; stroke: currentColor; }
.win.carte.mini { width: 540px; padding: 14px 14px 16px; }
.carte.mini .grille { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.carte.mini .ch { margin-bottom: 10px; }
.win.bilan { display: grid; grid-template-columns: repeat(4, auto); gap: 6px; padding: 8px; border-radius: 18px; }
.bilan .kpi { padding: 8px 14px; box-shadow: none; }
.bilan .kpi b { font-size: 20px; }

/* ═══ 03 · Répondeurs ═══ */
.repo { position: relative; }
.rep-colle { position: relative; display: grid; gap: 32px; padding: var(--section) 0 72px; }
.rep-tete { display: grid; gap: 16px; }
.rep-scene { position: relative; width: 100%; max-width: calc(var(--max) + 2 * var(--gouttiere)); margin-inline: auto; padding-inline: var(--gouttiere); display: grid; gap: 22px; }
.rep-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; font: 500 11.5px/1 var(--f-mono); letter-spacing: .05em; text-transform: uppercase; color: var(--gris-nuit); }
.rep-live { display: inline-flex; align-items: center; gap: 10px; color: #fafafa; }
.rep-live i { position: relative; width: 7px; height: 7px; border-radius: 50%; background: #f87171; }
.rep-live i::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid #f87171; opacity: 0; }
@media (prefers-reduced-motion: no-preference) { .repo:not(.fige) .rep-live i::after { animation: ping 1.6s ease-out infinite; } }
.repo.fige .rep-live i { background: var(--accent); }
.rep-tc { margin-left: auto; font-variant-numeric: tabular-nums; }
.rep-dit { font: 500 clamp(1.375rem, 3vw, 2.625rem)/1.2 var(--f-titre); letter-spacing: -.03em; max-width: 30ch; color: #fafafa; text-wrap: balance; }
.js .rep-dit > span { display: inline-block; color: color-mix(in srgb, #fafafa calc(clamp(.18, calc(.18 + (var(--p, 0) - .12 - .36 * var(--i) / var(--n)) * 14), 1) * 100%), #2a2a2e); }
.rep-onde { position: relative; height: clamp(110px, 20svh, 210px); }
.rep-onde canvas { width: 100%; height: 100%; }
.rep-coupe { position: absolute; top: 0; bottom: 0; right: 0; width: 1px; background: var(--accent-nuit); opacity: 0; transition: opacity .4s; }
.repo.fige .rep-coupe { opacity: 1; }
.rep-verdict { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; min-height: 40px; }
.rep-tampon { display: inline-flex; align-items: center; gap: 10px; height: 38px; padding: 0 14px; border-radius: 999px; background: var(--accent); border: 0; color: var(--sur-accent); font: 500 12.5px/1 var(--f-mono); letter-spacing: .03em; opacity: 0; transform: translate3d(0, 8px, 0); transition: opacity .4s var(--c-sortie), transform .7s var(--c-doux); }
.rep-tampon svg { width: 15px; height: 15px; fill: none; stroke: currentColor; }
.rep-suite { font: 500 15px/1.2 var(--f-texte); color: var(--gris-nuit); opacity: 0; transform: translate3d(-8px, 0, 0); transition: opacity .5s var(--c-sortie) .25s, transform .8s var(--c-doux) .25s; }
.repo.fige .rep-tampon { opacity: 1; transform: none; }
.repo.fini .rep-suite { opacity: 1; transform: none; }
.rep-note { margin-top: 8px; }
@keyframes ping { from { opacity: .8; transform: scale(.6); } to { opacity: 0; transform: scale(1.6); } }
@media (prefers-reduced-motion: no-preference) {
  .repo { height: 280svh; }
  .rep-colle { position: sticky; top: 0; height: 100svh; min-height: 560px; padding: 88px 0 36px; align-content: center; gap: clamp(18px, 3.6svh, 40px); overflow: hidden; }
}

/* ═══ 04 · Avant / après ═══ */
.cmp { background: var(--blanc); border-top: var(--bord); padding-bottom: var(--section); }
.cmp .tete { margin-bottom: clamp(40px, 6vh, 64px); }
.cmp-cadre { position: relative; min-height: 520px; border-radius: var(--r-media); overflow: hidden; user-select: none; -webkit-user-select: none; touch-action: pan-y; cursor: ew-resize; border: var(--bord); box-shadow: var(--ombre-2); }
.cmp-a, .cmp-b { position: absolute; inset: 0; padding: clamp(22px, 3.6vw, 48px); display: flex; flex-direction: column; gap: 22px; }
.cmp-a { background: var(--gris-1); color: var(--noir); }
.cmp-b { background: var(--noir); color: #fafafa; align-items: flex-end; text-align: right; clip-path: inset(0 0 0 calc(var(--x) * 1%)); }
.cmp-k { font: 500 var(--t-mono)/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--gris-5); }
.cmp-b .cmp-k { color: var(--gris-nuit); }
.cmp-etapes { counter-reset: e; display: grid; gap: 9px; max-width: 46%; font-size: clamp(13px, 1.15vw, 15px); color: var(--gris-7); }
.cmp-etapes li { counter-increment: e; display: flex; gap: 12px; align-items: baseline; }
.cmp-etapes li::before { content: counter(e, decimal-leading-zero); font: 500 10.5px/1 var(--f-mono); color: var(--gris-5); }
.cmp-mots { display: grid; font: var(--g-titre) clamp(2.25rem, 5vw, 4.75rem)/1 var(--f-titre); letter-spacing: var(--ap-1); max-width: 50%; }
.cmp-mots em { font-style: normal; color: var(--gris-nuit); }
.cmp-chiffre { margin-top: auto; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; max-width: 48%; }
.cmp-b .cmp-chiffre { justify-content: flex-end; }
.cmp-chiffre span { font: var(--g-titre) clamp(2.75rem, 6vw, 5.5rem)/.9 var(--f-titre); letter-spacing: var(--ap-1); font-variant-numeric: tabular-nums; }
.cmp-chiffre small { font: 500 11.5px/1.2 var(--f-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--gris-5); }
.cmp-b .cmp-chiffre small { color: var(--gris-nuit); }
.cmp-poignee { position: absolute; top: 0; bottom: 0; left: calc(var(--x) * 1%); width: 0; z-index: 3; pointer-events: none; }
.cmp-poignee::before { content: ""; position: absolute; top: 0; bottom: 0; left: -.5px; width: 1px; background: #fff; box-shadow: 0 0 0 .5px rgba(10, 10, 11, .15); }
.cmp-poignee span { position: absolute; top: 50%; left: 0; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--noir); border: var(--bord); box-shadow: var(--ombre-2); transition: transform var(--d-2) var(--c-sortie); }
.cmp-poignee svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cmp-cadre.tire .cmp-poignee span { transform: scale(1.06); }
.cmp-range { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.cmp-cadre:has(.cmp-range:focus-visible) .cmp-poignee span { outline: 2px solid var(--noir); outline-offset: 3px; }
@media (min-width: 900px) { .cmp-cadre { aspect-ratio: 16 / 8; min-height: 540px; } }
@media (max-width: 599px) {
  .cmp-cadre { min-height: 520px; }
  .cmp-mots { max-width: 60%; font-size: 2rem; }
  .cmp-etapes { max-width: 52%; font-size: 12.5px; }
  .cmp-chiffre { max-width: 50%; }
  .cmp-chiffre span { font-size: 2.4rem; }
}

/* ═══ 05 · Les fenêtres (galerie horizontale) ═══ */
.fen { position: relative; background: var(--gris-0); border-top: var(--bord); }
.fen-colle { position: relative; padding: var(--section) 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
.fen-tete { display: grid; gap: 16px; }
.fen-compte { display: none; }
.fen-piste { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px var(--gouttiere) 24px; scrollbar-width: none; overscroll-behavior-x: contain; }
.fen-piste::-webkit-scrollbar { display: none; }
.fen-p { flex: none; width: min(88vw, 560px); scroll-snap-align: center; display: grid; gap: 18px; align-content: start; }
.fen-objet { order: -1; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; min-height: 440px; padding: 22px 12px; border-radius: var(--r-media); background: var(--gris-1); border: var(--bord); overflow: hidden; }
.fen-objet > .win { max-width: 100%; }
.fen-leg { display: grid; gap: 6px; align-content: start; }
.fen-num { font: 500 var(--t-mono)/1 var(--f-mono); color: var(--gris-5); }
.fen-leg h3 { font: var(--g-titre) var(--t-3)/1.15 var(--f-titre); letter-spacing: var(--ap-3); }
.fen-cap { font: 400 12.5px/1.4 var(--f-mono); color: var(--gris-5); }
.fen-pied { display: flex; align-items: center; gap: 24px; justify-content: space-between; }
.fen-rail { display: none; }
@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  .fen-colle { position: sticky; top: 0; height: 100svh; min-height: 640px; padding: 92px 0 28px; overflow: hidden; grid-template-rows: auto minmax(0, 1fr) auto; gap: 22px; }
  .fen-tete { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
  .fen-tete .etiquette { grid-column: 1 / -1; }
  .fen-compte { display: block; font: 500 13px/1 var(--f-mono); color: var(--gris-5); }
  .fen-compte .fc-n { color: var(--noir); }
  .fen-piste { overflow: visible; scroll-snap-type: none; padding: 0 0 0 max(var(--gouttiere), calc(50vw - min(1120px, 82vw) / 2)); gap: 5vw; align-items: center; transform: translate3d(calc(var(--tx, 0) * -1px), 0, 0); will-change: transform; }
  .fen-p { width: min(1120px, 82vw); grid-template-columns: minmax(0, 3fr) minmax(0, 7fr); grid-template-rows: minmax(0, 1fr); gap: 4vw; align-items: stretch; height: 100%; max-height: 620px; }
  .fen-objet { order: 0; min-height: 0; }
  .fen-leg { align-self: center; }
  .fen-objet > .win { transform: scale(calc((1 - var(--va, 0) * .06) * var(--echelle, 1))); opacity: calc(1 - var(--va, 0) * .5); }
  .fen-objet > .carte, .fen-objet > .rappels { --echelle: 1.14; }
  .fen-objet > .script { --echelle: 1.08; }
  .fen-objet > .fiche { --echelle: .96; }
  .fen-leg { opacity: calc(1 - var(--va, 0) * 1.5); transform: translate3d(calc(var(--v, 0) * 24px), 0, 0); }
  .fen-rail { display: block; position: relative; flex: 1; height: 1px; background: var(--gris-2); }
  .fen-rail u { position: absolute; inset: 0; background: var(--noir); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
}

/* Fenêtres en verre (répliques) */
.win { position: relative; font: 500 13px/1.4 var(--f-ui); color: #1d1d1f; text-align: left; letter-spacing: normal; background: linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(247, 248, 250, .93)); -webkit-backdrop-filter: blur(22px) saturate(1.8); backdrop-filter: blur(22px) saturate(1.8); box-shadow: inset 0 1px 1px #fff, inset 0 0 0 1px rgba(255, 255, 255, .45), 0 0 0 .5px rgba(0, 0, 0, .1), 0 24px 56px -28px rgba(10, 10, 11, .28), 0 4px 12px -4px rgba(0, 0, 0, .1); border-radius: 22px; }
.win svg { fill: currentColor; }
.av { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 700 11px/1 var(--f-ui); background: color-mix(in srgb, var(--a) 18%, #fff); color: color-mix(in srgb, var(--a) 75%, #000); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--a) 22%, transparent); }
.dp { flex: none; width: 18px; height: 18px; border-radius: 5px; display: grid; place-items: center; background: var(--d); color: var(--dt, #fff); font: 800 10.5px/1 var(--f-ui); }
.nr { flex: none; min-width: 20px; height: 18px; padding: 0 5px; border-radius: 6px; background: rgba(0, 0, 0, .06); font-size: 10.5px; font-weight: 700; color: #3a3a3e; display: grid; place-items: center; }

/* Quel état ? */
.carte { width: min(560px, 100%); padding: 18px 18px 22px; }
.carte .ch { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.carte .ch > span:last-child { display: grid; min-width: 0; }
.carte .ch b { font-size: 16px; font-weight: 720; letter-spacing: -.015em; }
.carte .ch small { font-size: 12px; color: #6e6e73; }
.carte .ch .av { width: 40px; height: 40px; font-size: 13px; }
.carte .grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.carte .e { position: relative; display: flex; align-items: center; gap: 9px; min-height: 44px; padding: 6px 9px 6px 13px; border-radius: 15px; background: rgba(255, 255, 255, .72); box-shadow: 0 0 0 .5px rgba(0, 0, 0, .08); font-weight: 600; font-size: 13px; color: #1d1d1f; transition: background .35s, box-shadow .35s, transform .6s var(--c-ressort), opacity .5s var(--c-sortie); }
.carte .e i { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--ce); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ce) 20%, transparent); }
.carte .e span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.carte kbd { flex: none; display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 6px; font: 600 11px/1 var(--f-ui); color: #6e6e73; background: rgba(120, 120, 128, .12); }
.carte .pied { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.carte .compte { flex: 1; min-width: 0; font-size: 11.5px; color: #6e6e73; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.carte .pl { height: 34px; padding: 0 13px; border-radius: 17px; display: grid; place-items: center; font-size: 12.5px; font-weight: 650; background: rgba(120, 120, 128, .12); color: #303034; white-space: nowrap; }
.carte .pl.ok { background: #1d1d1f; color: #fff; }
.carte .jauge { position: absolute; left: 20px; right: 20px; bottom: 0; height: 3px; border-radius: 3px; overflow: hidden; background: rgba(0, 0, 0, .04); }
.carte .curseur { position: absolute; left: 84%; top: 70px; width: 22px; height: 22px; opacity: 0; transform: translate3d(56px, 96px, 0); transition: transform 1s var(--c-doux) .25s, opacity .3s ease .25s; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .25)); pointer-events: none; }
.carte .curseur svg { width: 22px; height: 22px; }
.on .carte .curseur { opacity: 1; transform: none; }
.carte .jauge u { display: block; height: 100%; background: #f59e0b; transform-origin: left; transform: scaleX(1); }
.on .carte .e-pick, .carte.choisi .e-pick { background: color-mix(in srgb, var(--ce) 18%, #fff); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ce) 70%, transparent); transform: scale(1.03); transition-delay: 1.2s; }
.on .carte .jauge u { transform: scaleX(.25); transition: transform 3.2s linear .4s; }
@media (min-width: 600px) { .carte .grille { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Fiche client */
.fiche { width: min(420px, 100%); display: grid; gap: 12px; padding: 18px 18px 20px; }
.fx-tete { display: grid; justify-items: center; text-align: center; gap: 2px; }
.fx-av { border-radius: 50%; padding: 3px; background: #fff; box-shadow: 0 0 0 2.5px #0a84ff, 0 14px 28px -14px #0a84ff; margin-bottom: 6px; }
.fx-av .av { width: 52px; height: 52px; font-size: 18px; }
.fx-nom { font-size: 19px; font-weight: 750; letter-spacing: -.03em; }
.fx-sous { font-size: 12px; color: #6e6e73; }
.fx-puces { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin-top: 6px; }
.badge { height: 24px; display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; border-radius: 12px; font-size: 11.5px; font-weight: 650; background: color-mix(in srgb, var(--e) 14%, #fff); color: color-mix(in srgb, var(--e) 78%, #000); }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--e); }
.dpe-b { padding-left: 4px; background: color-mix(in srgb, var(--d) 16%, #fff); color: color-mix(in srgb, var(--d) 65%, #000); }
.dpe-b::before { display: none; }
.dpe-b i { font-style: normal; width: 17px; height: 17px; border-radius: 5px; background: var(--d); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 10px; }
.fx-nrp { display: inline-flex; align-items: center; height: 24px; border-radius: 12px; background: rgba(0, 0, 0, .055); font-size: 11.5px; }
.fx-nrp i { font-style: normal; width: 24px; text-align: center; color: #6e6e73; font-weight: 700; }
.fx-nrp b { font-weight: 700; padding: 0 1px; }
.fx-appeler { display: flex; align-items: center; justify-content: center; gap: 12px; height: 50px; border-radius: 25px; color: #fff; background: linear-gradient(180deg, #34c759, #2aa24a); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 14px 28px -14px rgba(48, 164, 108, .8); font-size: 15.5px; font-weight: 700; }
.fx-appeler svg { width: 19px; height: 19px; }
.fx-appeler > span { display: grid; line-height: 1.15; }
.fx-appeler small { font-size: 11px; font-weight: 600; opacity: .85; font-variant-numeric: tabular-nums; }
.fx-rac { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 2px; }
.fiche .r { display: grid; justify-items: center; gap: 5px; font-size: 10.5px; font-weight: 600; color: #3a3a3c; white-space: nowrap; transition: opacity .45s var(--c-sortie), transform .7s var(--c-ressort); transition-delay: calc(var(--k) * 60ms + 200ms); }
.fiche .r > span { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--t); background: color-mix(in srgb, var(--t) 11%, #fff); box-shadow: inset 0 1px 0 #fff, 0 0 0 .5px rgba(0, 0, 0, .08), 0 8px 18px -12px var(--t); }
.fiche .r svg { width: 18px; height: 18px; fill: none; stroke: currentColor; }
.fx-g { border-radius: 16px; background: rgba(255, 255, 255, .74); box-shadow: 0 0 0 .5px rgba(0, 0, 0, .07), 0 10px 26px -18px rgba(0, 0, 0, .35); padding: 2px 12px 8px; }
.fx-gh { font-size: 11px; font-weight: 650; color: #6e6e73; padding: 9px 2px 3px; }
.ev { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 9px; padding: 5px 0; transition: opacity .45s var(--c-sortie), transform .7s var(--c-doux); transition-delay: calc(var(--k) * 90ms + 450ms); }
.ev > i { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 14%, transparent); color: var(--c); }
.ev svg { width: 13px; height: 13px; }
.ev p { font-size: 12px; line-height: 1.35; color: #1d1d1f; min-width: 0; }
.ev small { display: block; font-size: 10.5px; color: #8e8e93; }
.js .fen-p:not(.on) .fiche .r { opacity: 0; transform: translate3d(0, 8px, 0) scale(.5); }
.js .fen-p:not(.on) .fiche .ev { opacity: 0; transform: translate3d(0, 10px, 0); }

/* Script */
.script { width: min(412px, 100%); border-radius: 28px; padding-bottom: 14px; }
.script .sh { display: flex; align-items: center; gap: 10px; padding: 14px 14px 10px 16px; }
.lettre { flex: none; width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; font-weight: 750; font-size: 14px; color: #fff; background: linear-gradient(180deg, #5eb0ff, #0a84ff); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 0 0 .5px rgba(0, 0, 0, .08), 0 4px 10px -3px rgba(10, 132, 255, .6); }
.script .st { flex: 1; min-width: 0; }
.script .st b { display: block; font-size: 15px; font-weight: 700; letter-spacing: -.015em; }
.script .st small { display: block; font-size: 12px; color: #6e6e73; }
.script .bt { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: #48484a; background: linear-gradient(180deg, rgba(255, 255, 255, .94), rgba(255, 255, 255, .56)); box-shadow: inset 0 1px 0 #fff, 0 0 0 .5px rgba(0, 0, 0, .08), 0 2px 6px -2px rgba(0, 0, 0, .16); }
.script .bt svg { width: 14px; height: 14px; fill: none; }
.sc-rail { display: flex; align-items: center; gap: 4px; padding: 2px 16px 12px 14px; box-shadow: inset 0 -.5px 0 rgba(0, 0, 0, .08); }
.sc-pt { width: 24px; height: 24px; border-radius: 12px; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #8e8e93; background: rgba(120, 120, 128, .1); }
.sc-pt.fait { color: #fff; background: #30a46c; }
.sc-pt.on { color: #fff; background: #0a84ff; box-shadow: 0 0 0 3px rgba(10, 132, 255, .2); }
.sc-lib { margin-left: 8px; font-size: 12.5px; font-weight: 650; color: #0a6cdf; }
.sc-carte { margin: 12px 12px 0; padding: 14px 16px; border-radius: 18px; background: #fff; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .06), 0 10px 24px -18px rgba(0, 0, 0, .35); }
.sc-t { font-size: 15px; line-height: 1.55; color: #1d1d1f; }
.var { position: relative; display: inline-grid; vertical-align: baseline; }
.var > span { grid-area: 1 / 1; padding: 0 5px; border-radius: 6px; font-weight: 650; transition: opacity .4s, transform .6s var(--c-ressort); transition-delay: calc(var(--k) * 160ms + 500ms); }
.var > span:first-child { color: #5e5ce6; background: rgba(94, 92, 230, .1); font-family: var(--f-mono); font-size: .86em; font-weight: 500; }
.var > span:last-child { color: #0a6cdf; background: rgba(10, 132, 255, .1); opacity: 0; transform: translate3d(0, 6px, 0); }
.on .var > span:first-child { opacity: 0; transform: translate3d(0, -6px, 0); }
.on .var > span:last-child { opacity: 1; transform: none; }
.sc-q { margin: 10px 12px 0; padding: 4px 14px 6px; border-radius: 18px; background: rgba(255, 255, 255, .7); box-shadow: 0 0 0 .5px rgba(0, 0, 0, .06); display: grid; }
.sc-qh { font-size: 11px; font-weight: 650; color: #6e6e73; padding: 8px 0 4px; }
.sc-c { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 13px; border-top: .5px solid rgba(0, 0, 0, .06); }
.sc-c i { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid #c7c7cc; display: grid; place-items: center; transition: background .3s, border-color .3s; transition-delay: 1.3s; }
.on .sc-c.on i { background: #0a84ff; border-color: #0a84ff; box-shadow: inset 0 0 0 3px #fff; }

/* Accueil */
.accueil { width: min(600px, 100%); padding: 14px; display: grid; gap: 12px; border-radius: 28px; background: linear-gradient(180deg, rgba(246, 246, 249, .94), rgba(238, 238, 242, .95)); }
.ac-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "tx ob" "rc rc"; gap: 6px 14px; align-items: center; padding: 18px 18px 16px 20px; border-radius: 24px; background: radial-gradient(90% 130% at 100% 0%, rgba(10, 132, 255, .12), transparent 62%), linear-gradient(180deg, rgba(255, 255, 255, .95), rgba(255, 255, 255, .7)); box-shadow: 0 0 0 .5px rgba(0, 0, 0, .06), 0 10px 24px -18px rgba(0, 0, 0, .3); }
.ac-hero-tx { grid-area: tx; min-width: 0; }
.ac-date { display: block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #0a6cdf; }
.ac-salut { display: block; margin: 2px 0 4px; font-size: 26px; font-weight: 780; letter-spacing: -.035em; line-height: 1.1; }
.ac-resume { font-size: 13px; line-height: 1.45; color: #3a3a3c; max-width: 30ch; }
.ac-obj { grid-area: ob; position: relative; width: 96px; height: 96px; }
.ac-anneau { width: 96px; height: 96px; transform: rotate(-90deg); }
.ac-anneau circle { fill: none; stroke-width: 10; }
.ac-anneau .fond { stroke: rgba(120, 120, 128, .14); }
.ac-anneau .val { stroke: #30a46c; stroke-linecap: round; stroke-dasharray: 0 100; transition: stroke-dasharray 1.6s var(--c-doux) .3s; }
.on .ac-anneau .val { stroke-dasharray: 100 0; }
.ac-obj-tx { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1.1; }
.ac-obj-tx b { font-size: 24px; font-weight: 780; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.ac-obj-tx small { font-size: 10.5px; font-weight: 600; color: #6e6e73; }
.ac-rac { grid-area: rc; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ac-r { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 13px 0 10px; border-radius: 16px; font-size: 12px; font-weight: 620; background: linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(255, 255, 255, .64)); box-shadow: inset 0 1px 0 #fff, 0 0 0 .5px rgba(0, 0, 0, .08), 0 2px 6px -2px rgba(0, 0, 0, .14); white-space: nowrap; }
.ac-r svg { width: 13px; height: 13px; color: #0a6cdf; fill: none; stroke: currentColor; }
.ac-r.noir { color: #fff; background: linear-gradient(180deg, #3a3a3c, #0b0b0c); }
.ac-r.noir svg { width: 10px; height: 10px; color: #fff; fill: currentColor; stroke: none; }
.ac-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.kpi { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "i l" "n n" "m m"; column-gap: 7px; padding: 11px 13px; border-radius: 20px; background: linear-gradient(180deg, rgba(255, 255, 255, .95), rgba(255, 255, 255, .72)); box-shadow: 0 0 0 .5px rgba(0, 0, 0, .06), 0 10px 24px -18px rgba(0, 0, 0, .3); transition: opacity .5s var(--c-sortie), transform .8s var(--c-ressort); }
.kpi i { grid-area: i; align-self: center; width: 8px; height: 8px; border-radius: 50%; background: var(--k); box-shadow: 0 0 0 3px color-mix(in srgb, var(--k) 20%, transparent); }
.kpi > span { grid-area: l; font-size: 12px; font-weight: 650; color: #3a3a3c; }
.kpi b { grid-area: n; margin-top: 4px; font-size: 25px; font-weight: 760; letter-spacing: -.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.kpi small { grid-area: m; font-size: 11px; color: #6e6e73; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.js .fen-p:not(.on) .kpi { opacity: 0; transform: translate3d(0, 12px, 0) scale(.96); }
.kpi:nth-child(2) { transition-delay: 80ms; } .kpi:nth-child(3) { transition-delay: 160ms; } .kpi:nth-child(4) { transition-delay: 240ms; }
@media (min-width: 600px) { .ac-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Recherche intelligente */
.recherche { width: min(440px, 100%); padding: 14px; display: flex; flex-direction: column; gap: 9px; min-height: 420px; }
.srch { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 5px 0 12px; border-radius: 20px; background: rgba(120, 120, 128, .12); color: #6e6e73; transition: box-shadow .3s, background .3s; }
.recherche.tape .srch { background: #fff; box-shadow: 0 0 0 2px rgba(10, 132, 255, .45); }
.srch > svg { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; }
.srch-q { flex: 1; min-width: 0; display: flex; align-items: center; font-size: 13.5px; white-space: nowrap; overflow: hidden; }
.srch-ph { color: #8e8e93; overflow: hidden; text-overflow: ellipsis; }
.srch.has-q .srch-ph { display: none; }
.srch-t { color: #1d1d1f; font-weight: 550; }
.caret { flex: none; width: 1.5px; height: 16px; margin-left: 1px; background: #0a84ff; opacity: 0; }
.recherche.tape .caret { opacity: 1; }
@media (prefers-reduced-motion: no-preference) { .recherche.tape .caret { animation: clignote 1s steps(1) infinite; } }
@keyframes clignote { 50% { opacity: 0; } }
.srch-f { width: 30px; height: 30px; border-radius: 15px; display: grid; place-items: center; background: #fff; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .08); }
.srch-f svg { width: 13px; height: 13px; fill: none; stroke: currentColor; }
.puces { display: grid; min-height: 60px; }
.pzone { grid-area: 1 / 1; display: flex; flex-wrap: wrap; gap: 6px; align-content: flex-start; transition: opacity .35s, transform .55s var(--c-sortie); }
.pu { display: inline-flex; align-items: center; gap: 6px; height: 27px; padding: 0 11px; border-radius: 14px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.pu.idee { background: rgba(0, 0, 0, .05); color: #3a3a3e; }
.pu.on { background: color-mix(in srgb, var(--cd) 15%, #fff); color: color-mix(in srgb, var(--cd) 72%, #000); }
.pu.on::before { content: ""; width: 8px; height: 8px; border-radius: 3px; background: var(--cd); }
.pu.flt { background: #fff; color: #3a3a3c; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); }
.pz-b { opacity: 0; transform: translate3d(0, 6px, 0); }
.recherche.trouve .pz-a { opacity: 0; transform: translate3d(0, -6px, 0); }
.recherche.trouve .pz-b { opacity: 1; transform: none; }
.esp-c { font-size: 11.5px; color: #8e8e93; padding: 0 4px; }
.esp-c b { color: #3a3a3c; font-variant-numeric: tabular-nums; }
.lists { position: relative; flex: 1; display: grid; }
.lst { grid-area: 1 / 1; display: grid; align-content: start; gap: 1px; transition: opacity .35s, transform .6s var(--c-sortie); }
.lst-fg { opacity: 0; transform: translate3d(0, 10px, 0); }
.recherche.trouve .lst-all { opacity: 0; transform: translate3d(0, -8px, 0); }
.recherche.trouve .lst-fg { opacity: 1; transform: none; }
.lst li { display: flex; align-items: center; gap: 9px; padding: 7px 8px; border-radius: 12px; }
.lst li.sel { background: rgba(10, 132, 255, .1); }
.lt { flex: 1; min-width: 0; display: grid; }
.lt b { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lt small { font-size: 11px; color: #8e8e93; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lt em { font-style: normal; color: #8e5a00; background: rgba(255, 159, 10, .16); padding: 0 6px; border-radius: 99px; font-weight: 650; }

/* Mes rappels */
.rappels { width: min(390px, 100%); padding: 14px 14px 12px; }
.rp-h { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 10px; }
.rp-h b { font-size: 15px; font-weight: 700; }
.rp-h span { font-size: 12px; font-weight: 650; color: #0a84ff; }
.rp-i { display: flex; align-items: center; gap: 10px; padding: 10px 6px; border-top: .5px solid rgba(0, 0, 0, .08); transition: opacity .5s var(--c-sortie), transform .8s var(--c-doux); transition-delay: calc(var(--k) * 90ms + 150ms); }
.rp-i time { flex: none; min-width: 58px; height: 24px; padding: 0 6px; border-radius: 8px; display: grid; place-items: center; font-size: 11.5px; font-weight: 700; color: color-mix(in srgb, var(--c) 80%, #000); background: color-mix(in srgb, var(--c) 12%, #fff); font-variant-numeric: tabular-nums; }
.rp-i p { display: grid; font-size: 12.5px; min-width: 0; }
.rp-i b { font-weight: 650; }
.rp-i small { font-size: 11px; color: #8e8e93; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-m { display: flex; align-items: center; gap: 10px; margin-top: 6px; padding: 10px; border-radius: 14px; background: rgba(10, 132, 255, .07); transition: background .4s .9s, box-shadow .4s .9s; }
.on .rp-m { background: rgba(10, 132, 255, .14); box-shadow: inset 0 0 0 1.5px rgba(10, 132, 255, .45); }
.rp-m > svg { width: 18px; height: 18px; color: #0a84ff; flex: none; fill: none; stroke: currentColor; }
.rp-m > span:nth-child(2) { flex: 1; min-width: 0; display: grid; }
.rp-m b { font-size: 12.5px; font-weight: 650; }
.rp-m small { font-size: 11px; color: #6e6e73; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-go { flex: none; height: 28px; padding: 0 11px; border-radius: 14px; background: #0a84ff; color: #fff; font-size: 11.5px; font-weight: 650; display: grid; place-items: center; }
.js .fen-p:not(.on) .rp-i { opacity: 0; transform: translate3d(16px, 0, 0); }

/* Notifications */
.win.toast { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; }
.toast .tk { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: #fff; background: var(--c); }
.toast .tk svg { width: 16px; height: 16px; fill: none; stroke: currentColor; }
.toast > span:nth-child(2) { flex: 1; min-width: 0; display: grid; }
.toast b { font-size: 12.5px; font-weight: 650; }
.toast small { font-size: 11.5px; color: #6e6e73; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toast time { align-self: flex-start; font-size: 10.5px; color: #8e8e93; }


/* ═══ 06 · Sur ton iPhone ═══ */
.tel { position: relative; overflow: clip; }
.tel-photo { position: relative; height: 62vw; max-height: 520px; overflow: hidden; }
.tel-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.tel-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--noir) 0%, rgba(10, 10, 11, 0) 55%); }
.tel-in { position: relative; display: grid; gap: 44px; padding-top: 8px; padding-bottom: var(--section); }
.tel-tx { display: grid; gap: 18px; align-content: start; }
.tel-objet { display: grid; justify-items: center; gap: 16px; }
.iph { position: relative; width: clamp(232px, 64vw, 284px); aspect-ratio: 268 / 552; border-radius: 46px; padding: 9px; background: linear-gradient(145deg, #3a3a3d, #0d0d0f); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .14), 0 0 0 1px rgba(0, 0, 0, .5), 0 60px 100px -30px rgba(0, 0, 0, .8), 0 24px 40px -24px rgba(0, 0, 0, .6); font-family: var(--f-ui); }
.iph-scr { position: relative; height: 100%; border-radius: 38px; overflow: hidden; background: #f2f2f7; color: #1d1d1f; font-size: 13px; line-height: 1.35; }
.iph svg { fill: currentColor; }
.iph-isl { position: absolute; top: 9px; left: 50%; width: 80px; height: 23px; margin-left: -40px; border-radius: 14px; background: #000; z-index: 5; }
.iph-bar { display: flex; justify-content: space-between; align-items: center; height: 42px; padding: 2px 24px 0 26px; font-size: 12.5px; font-weight: 650; }
.iph-sig { display: flex; align-items: flex-end; gap: 2px; height: 10px; }
.iph-sig i { width: 3px; border-radius: 1px; background: #1d1d1f; }
.iph-sig i:nth-child(1) { height: 4px; } .iph-sig i:nth-child(2) { height: 6px; } .iph-sig i:nth-child(3) { height: 8px; } .iph-sig i:nth-child(4) { height: 10px; }
.ps { position: absolute; inset: 42px 0 0; padding: 12px 14px 22px; display: flex; flex-direction: column; opacity: 0; transform: translate3d(28px, 0, 0); transition: opacity .45s ease, transform .7s var(--c-sortie); pointer-events: none; }
.iph[data-s="0"] .ps-a, .iph[data-s="1"] .ps-b, .iph[data-s="2"] .ps-c, .iph[data-s="3"] .ps-d { opacity: 1; transform: none; }
.ps-k { font-size: 12px; font-weight: 650; color: #8e8e93; text-transform: uppercase; letter-spacing: .04em; padding: 4px 4px 8px; }
.ps-card { display: grid; justify-items: center; gap: 4px; padding: 18px 12px 16px; border-radius: 20px; background: #fff; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .06), 0 10px 24px -18px rgba(0, 0, 0, .35); text-align: center; }
.ps-card .av { width: 54px; height: 54px; font-size: 18px; margin-bottom: 6px; }
.ps-nom { font-size: 18px; font-weight: 750; letter-spacing: -.02em; }
.ps-card small, .ps-b small { font-size: 12px; color: #6e6e73; }
.ps-tags { display: flex; gap: 6px; margin-top: 6px; }
.nrp-t { height: 18px; padding: 0 7px; border-radius: 6px; background: rgba(0, 0, 0, .06); font-size: 10.5px; font-weight: 700; display: grid; place-items: center; }
.ps-go { margin-top: auto; display: grid; justify-items: center; gap: 8px; font-size: 13px; font-weight: 650; color: #1f8a3e; }
.ps-btn { position: relative; width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(180deg, #34c759, #28a745); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 16px 30px -14px rgba(52, 199, 89, .8); transition: transform .2s; }
.ps-btn svg { width: 28px; height: 28px; }
.iph.tap0 .ps-btn { transform: scale(.9); }
.ps-b { align-items: center; text-align: center; gap: 6px; padding-top: 40px; }
.ps-ring { position: relative; display: grid; place-items: center; margin-bottom: 14px; }
.ps-ring::before, .ps-ring::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid rgba(52, 199, 89, .5); opacity: 0; }
@media (prefers-reduced-motion: no-preference) { .iph[data-s="1"] .ps-ring::before { animation: onde 1.8s ease-out infinite; } .iph[data-s="1"] .ps-ring::after { animation: onde 1.8s ease-out .9s infinite; } }
.av.big { width: 84px; height: 84px; font-size: 26px; }
.ps-time { font-variant-numeric: tabular-nums; }
.ps-row { display: flex; gap: 28px; margin-top: auto; }
.ps-r { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: rgba(120, 120, 128, .16); color: #1d1d1f; }
.ps-r svg { width: 22px; height: 22px; fill: none; stroke: currentColor; }
.ps-r.red { background: #ff3b30; color: #fff; }
.ps-r.red svg { fill: currentColor; stroke: none; width: 26px; height: 26px; }
.ps-q { font-size: 19px; font-weight: 750; letter-spacing: -.02em; padding: 10px 4px 14px; }
.ps-opts { display: grid; gap: 7px; }
.ps-opts li { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .06); font-weight: 600; transition: background .25s, transform .3s var(--c-ressort); }
.ps-opts i { width: 10px; height: 10px; border-radius: 50%; background: var(--ce); }
.iph.tap2 .ps-opts .tap { background: color-mix(in srgb, var(--ce) 18%, #fff); transform: scale(.97); }
.ps-d { align-items: center; justify-content: center; text-align: center; gap: 6px; }
.ps-ok { width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: #30a46c; margin-bottom: 10px; box-shadow: 0 16px 30px -14px rgba(48, 164, 108, .8); }
.ps-ok svg { width: 30px; height: 30px; fill: none; stroke: currentColor; }
.ps-d b { font-size: 17px; font-weight: 750; }
.ps-d small { font-size: 12.5px; color: #6e6e73; }

@media (min-width: 900px) {
  .tel { min-height: 100svh; display: grid; }
  .tel-photo { position: absolute; inset: 0; height: auto; max-height: none; }
  .tel-photo img { transform: translate3d(0, calc((var(--p, .5) - .5) * -5%), 0) scale(1.14); filter: blur(9px) brightness(.8); }
  .tel-photo::after { background: linear-gradient(90deg, rgba(10, 10, 11, .94) 0%, rgba(10, 10, 11, .8) 38%, rgba(10, 10, 11, .12) 74%), linear-gradient(0deg, rgba(10, 10, 11, .55), transparent 40%); }
  .tel-in { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: center; padding-top: var(--section); }
  .tel-tx { grid-column: 1 / span 6; }
  .tel-objet { grid-column: 8 / span 4; }
  .iph { transform: translate3d(0, calc((var(--p, .5) - .5) * -90px), 0); }
}

/* ═══ 07 · Dossier ═══ */
.doss { background: var(--blanc); border-top: var(--bord); padding-bottom: var(--section); }
.doss .tete { margin-bottom: clamp(40px, 6vh, 64px); }
.doss-grille { display: grid; gap: 20px; }
.doss-mpr, .doss-sol { position: relative; display: grid; grid-template-rows: auto auto; border-radius: var(--r-media); overflow: hidden; border: var(--bord); }
.doss-mpr { background: var(--gris-0); }
.doss-sol { border-color: var(--noir); }
.doss-tx { display: grid; gap: 8px; padding: 24px clamp(22px, 3vw, 36px) 28px; }
.doss-tx h3 { font: var(--g-titre) var(--t-3)/1.15 var(--f-titre); letter-spacing: var(--ap-3); }
.mpr-vis { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: center; padding: clamp(28px, 4vw, 44px) clamp(18px, 3vw, 36px) 8px; min-height: 340px; }
.doc { position: relative; overflow: hidden; display: grid; gap: 9px; padding: 18px 16px 22px; border-radius: 6px; background: #fff; box-shadow: var(--ombre-2); transform: rotate(-2.5deg); font-family: var(--f-ui); }
.doc-h { display: grid; gap: 2px; margin-bottom: 4px; }
.doc-h b { font-size: 13px; font-weight: 750; }
.doc-h span { font-size: 10.5px; color: #8e8e93; }
.doc-l { height: 6px; border-radius: 3px; width: var(--w); background: rgba(10, 10, 11, .07); }
.doc-f { display: flex; justify-content: space-between; gap: 8px; padding: 6px 8px; border-radius: 6px; font-size: 10.5px; background: rgba(var(--accent-rgb), 0); transition: background .5s var(--c-sortie), box-shadow .5s; }
.doc-f span { color: #6e6e73; }
.doc-f b { font-weight: 700; }
.doss-mpr.lu .doc-f { background: rgba(var(--accent-rgb), .42); box-shadow: none; }
.doss-mpr.lu .doc-f.f2 { transition-delay: .2s; }
.scan { position: absolute; left: 0; right: 0; top: 0; height: 40px; margin-top: -20px; background: linear-gradient(180deg, transparent, rgba(var(--accent-rgb), .16) 45%, rgba(var(--accent-rgb), .7) 50%, rgba(var(--accent-rgb), .16) 55%, transparent); transform: translate3d(0, calc(var(--scan, 0) * 300px), 0); opacity: calc(1 - var(--scan-f, 0)); pointer-events: none; }
.mpr-out { display: grid; gap: 12px; font-family: var(--f-ui); }
.mpr-k { font: 500 11px/1.2 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--gris-5); }
.cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.cats span { position: relative; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 12px; background: rgba(255, 255, 255, .6); box-shadow: 0 0 0 .5px rgba(0, 0, 0, .06); font-size: 13px; font-weight: 650; color: #1d1d1f; transition: transform .7s var(--c-ressort), background .4s, box-shadow .4s; }
.cats span::before { content: ""; width: 12px; height: 12px; border-radius: 4px; background: var(--k); }
.doss-mpr.lu .cats .on { background: #fff; box-shadow: inset 0 0 0 2px var(--k), 0 12px 24px -14px var(--k); transform: scale(1.06); transition-delay: .5s; }
.mpr-ok { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 650; color: #1d7a4c; opacity: 0; transform: translate3d(0, 6px, 0); transition: opacity .5s var(--c-sortie) .9s, transform .8s var(--c-doux) .9s; }
.mpr-ok svg { width: 16px; height: 16px; fill: none; stroke: currentColor; }
.doss-mpr.lu .mpr-ok { opacity: 1; transform: none; }

.sol-vis { position: relative; min-height: 340px; overflow: hidden; }
.sol-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .3; transform: scale(1.06); }
.sol-vis::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 10, 11, .25), rgba(10, 10, 11, .88)); }
.sol-3d { position: relative; z-index: 1; padding: clamp(20px, 3vw, 36px) clamp(18px, 3vw, 36px) 0; }
.roof { width: 100%; height: auto; overflow: visible; }
.so-wall { fill: rgba(250, 250, 250, .06); stroke: rgba(250, 250, 250, .55); stroke-width: .7; }
.so-win { fill: rgba(250, 250, 250, .08); stroke: rgba(250, 250, 250, .45); stroke-width: .6; }
.so-roof { fill: rgba(250, 250, 250, .08); stroke: rgba(250, 250, 250, .75); stroke-width: .8; }
.so-ridge { stroke: rgba(250, 250, 250, .9); stroke-width: 1; }
.so-pts circle { fill: rgba(250, 250, 250, .75); }
.so-pts { opacity: clamp(0, calc((var(--p, 0) - .22 - var(--k) * .02) * 10), .85); }
.so-avoid { fill: rgba(var(--accent-rgb), .08); stroke: rgba(var(--accent-rgb), .8); stroke-width: .7; stroke-dasharray: 3 2.5; }
.so-velux, .so-chim-s, .so-chim-r, .so-chim-t { fill: rgba(250, 250, 250, .12); stroke: rgba(250, 250, 250, .7); stroke-width: .6; }
.so-velux-in { fill: rgba(143, 152, 255, .2); stroke: none; }
.so-pan polygon { fill: rgba(250, 250, 250, .14); stroke: rgba(250, 250, 250, .85); stroke-width: .7; }
.so-pan polyline { fill: none; stroke: rgba(170, 177, 255, .6); stroke-width: .4; }
.so-pan { opacity: 0; transform: translate3d(0, -14px, 0); transition: opacity .5s var(--c-sortie), transform .9s var(--c-ressort); transition-delay: calc(var(--k) * 70ms + .5s); }
.doss-sol.pose .so-pan { opacity: 1; transform: none; }

.sol-tag { position: absolute; z-index: 2; height: 26px; padding: 0 10px; display: inline-flex; align-items: center; border-radius: 999px; background: rgba(10, 10, 11, .7); border: 1px solid var(--bord-nuit); font: 500 10.5px/1 var(--f-mono); letter-spacing: .03em; color: #e5e7eb; opacity: 0; transform: translate3d(0, 8px, 0); transition: opacity .6s var(--c-sortie), transform .8s var(--c-doux); }
.sol-tag.t1 { left: clamp(18px, 3vw, 36px); top: 18px; transition-delay: .2s; }
.sol-tag.t2 { right: clamp(18px, 3vw, 36px); top: 52%; transition-delay: 1.2s; }
.sol-tag.t3 { left: 40%; bottom: 6px; transition-delay: 1.5s; }
.doss-sol.pose .sol-tag { opacity: 1; transform: none; }
@media (min-width: 1000px) {
  .doss-grille { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .mpr-vis, .sol-vis { min-height: 420px; }
}

/* ═══ 08 · Manager ═══ */
.equipe { position: relative; overflow: clip; }
.equipe-photo { position: relative; height: 66vw; max-height: 560px; overflow: hidden; }
.equipe-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 40%; }
.equipe-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--noir) 0%, rgba(10, 10, 11, 0) 55%); }
.equipe-in { position: relative; display: grid; gap: 44px; padding-bottom: var(--section); }
.equipe-tx { display: grid; gap: 22px; align-content: start; }
.equipe-ligne { font: 400 15px/1.6 var(--f-texte); color: var(--gris-nuit); max-width: 52ch; }
.equipe-ligne span { color: #4b5563; padding: 0 4px; }
.rapport { width: min(380px, 100%); justify-self: center; padding: 20px 20px 16px; border-radius: 22px; background: #fff; color: var(--noir); box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), 0 40px 100px -40px rgba(0, 0, 0, .8); font-family: var(--f-ui); }
.rapport .rp-t { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.rapport .rp-t b { font-size: 14.5px; font-weight: 700; }
.rapport .rp-t span { font-size: 11.5px; color: #8e8e93; }
.rapport .rows { display: grid; gap: 10px; }
.rapport .row { display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: center; gap: 10px; font-size: 12.5px; font-weight: 600; }
.rapport .row i { height: 10px; border-radius: 5px; background: rgba(10, 10, 11, .07); overflow: hidden; }
.rapport .row u { display: block; height: 100%; border-radius: 5px; background: var(--noir); transform-origin: 0 50%; transform: scaleX(var(--v)); transition: transform 1.4s var(--c-doux); transition-delay: calc(var(--k) * 120ms + .3s); }
.js .rapport:not(.is-in) .row u { transform: scaleX(0); }
.rapport .rp-s { margin: 18px 0 8px; font-size: 11.5px; font-weight: 650; color: #6e6e73; }
.hours { width: 100%; height: 64px; }
.rapport .row:first-child u { background: var(--accent); box-shadow: inset 0 0 0 .5px rgba(13, 12, 11, .3); }
.hours rect:nth-child(3) { fill: var(--accent); }
.hours rect { fill: rgba(13, 12, 11, .16); transform-box: fill-box; transform-origin: 50% 100%; transition: transform 1s var(--c-ressort); transition-delay: calc(var(--k) * 50ms + .6s); }
.js .rapport:not(.is-in) .hours rect { transform: scaleY(0); }
.hours-l { display: flex; justify-content: space-between; margin-top: 6px; font: 500 10.5px/1 var(--f-mono); color: #8e8e93; }
.rp-n { margin-top: 12px; font: 400 10.5px/1 var(--f-mono); color: #8e8e93; }

@media (min-width: 900px) {
  .equipe { min-height: 100svh; display: grid; }
  .equipe-photo { position: absolute; inset: 0; height: auto; max-height: none; }
  .equipe-photo img { transform: translate3d(0, calc((var(--p, .5) - .5) * -4%), 0) scale(1.08); }
  .equipe-photo::after { background: linear-gradient(90deg, rgba(10, 10, 11, .95) 0%, rgba(10, 10, 11, .82) 40%, rgba(10, 10, 11, .2) 76%), linear-gradient(0deg, rgba(10, 10, 11, .5), transparent 45%); }
  .equipe-in { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: center; padding-top: var(--section); }
  .equipe-tx { grid-column: 1 / span 6; }
  .rapport { grid-column: 9 / span 4; transform: translate3d(0, calc((var(--p, .5) - .5) * -70px), 0); }
}

/* ═══ 09 · Compatibilité ═══ */
.compat { background: var(--blanc); border-top: var(--bord); padding: var(--section) 0; }
.compat-grille { display: grid; gap: 44px; }
.compat-tx { display: grid; gap: 26px; align-content: start; }
.plateformes { display: grid; border-top: var(--bord); }
.plateformes > div { display: grid; gap: 2px; padding: 14px 0; border-bottom: var(--bord); }
.plateformes dt { font-weight: 600; font-size: 16px; letter-spacing: -.015em; }
.plateformes dd { font-size: 14.5px; color: var(--gris-5); }
.crm { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-weight: 500; font-size: 16px; letter-spacing: -.01em; }
.crm span { height: 26px; padding: 0 10px; display: inline-flex; align-items: center; border-radius: 999px; border: var(--bord); background: var(--gris-0); font: 500 11.5px/1 var(--f-mono); color: var(--gris-7); }
.compat-media { display: grid; }
.compat-video { position: relative; aspect-ratio: 1; border-radius: var(--r-media); overflow: hidden; background: var(--gris-1) url("images/bureau-640.webp") center / cover; border: var(--bord); }
.compat-video video { width: 100%; height: 100%; object-fit: cover; }
.touches { margin-top: clamp(64px, 10vh, 112px); display: grid; gap: 20px; }
.touches-l { display: flex; flex-wrap: wrap; gap: 12px 14px; }
.touche { display: grid; justify-items: start; gap: 10px; min-width: 120px; }
.touche kbd { display: inline-grid; place-items: center; min-width: 52px; height: 52px; padding: 0 16px; border-radius: 12px; background: #fff; border: var(--bord); box-shadow: 0 1px 0 var(--gris-2), 0 2px 0 var(--gris-1), var(--ombre-1); font: 500 15px/1 var(--f-mono); color: var(--noir); }
.touche small { font: 400 12.5px/1.3 var(--f-texte); color: var(--gris-5); }
@media (min-width: 1000px) {
  .compat-grille { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: center; }
  .compat-tx { grid-column: 1 / span 6; }
  .plateformes > div { grid-template-columns: 180px minmax(0, 1fr); align-items: baseline; }
  .compat-media { grid-column: 8 / -1; }
  .touches-l { gap: 16px 28px; }
}

/* ═══ Final ═══ */
.final { position: relative; overflow: clip; padding-top: var(--section); }
.final-in { display: grid; gap: 32px; }
.final-t { font: var(--g-titre) var(--t-2)/var(--i-titre) var(--f-titre); letter-spacing: var(--ap-2); }
.final-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.logotype { margin-top: clamp(72px, 12vh, 140px); padding: 0 var(--gouttiere) clamp(24px, 4vw, 56px); display: flex; justify-content: center; align-items: center; gap: .14em; font: 700 clamp(3rem, 13.6vw, 14.5rem)/.9 var(--f-titre); letter-spacing: -.06em; color: #fafafa; white-space: nowrap; overflow: clip; transform: translate3d(0, calc((1 - var(--p, 1)) * 4vw), 0); }
.logotype-symbole { height: .7em; width: auto; aspect-ratio: 124 / 61; flex: none; overflow: visible; }
.logotype-img { width: min(100%, 1400px); height: auto; }
.js .logotype > * { opacity: 0; transform: translate3d(0, 24px, 0); transition: opacity .9s var(--c-sortie), transform 1.1s var(--c-doux); }
.js .logotype > :nth-child(2) { transition-delay: 120ms; }
.js .final.is-in .logotype > * { opacity: 1; transform: none; }
/* Effet domino : les pièces tombent l'une après l'autre, la jaune reste debout */
.js :is(.marque, .logotype) svg g path { transform-box: fill-box; transform-origin: 100% 100%; transition: transform 1.1s var(--c-doux); }
.js :is(.marque, .logotype) svg g path:nth-child(1) { --a: 49deg; transition-delay: .1s; }
.js :is(.marque, .logotype) svg g path:nth-child(2) { --a: 30deg; transition-delay: .24s; }
.js :is(.marque, .logotype) svg g path:nth-child(3) { --a: 20deg; transition-delay: .38s; }
.js :is(.marque, .logotype) svg g path:nth-child(4) { --a: 10deg; transition-delay: .52s; }
.js .nav:not(.tombe) .marque svg g path, .js .final:not(.is-in) .logotype svg g path { transform: rotate(var(--a)); }
@media (min-width: 1000px) {
  .final-in { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
}

/* ═══ Pied de page ═══ */
.pied-page { padding: 56px 0 28px; border-top: 1px solid var(--bord-nuit); }
.pied-in { display: grid; gap: 36px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
.pied-marque { display: grid; gap: 10px; align-content: start; max-width: 34ch; }
.pied-nom { display: flex; align-items: center; gap: 10px; font: 700 19px/1 var(--f-texte); letter-spacing: -.04em; }
.pied-nom svg { height: 20px; width: auto; aspect-ratio: 124 / 61; }
.pied-nom img { height: 30px; width: auto; }
.pied-marque p:not(.pied-nom) { color: var(--gris-nuit); font-size: 14px; }
.pied-col h3 { font: 500 var(--t-mono)/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--gris-nuit); margin-bottom: 14px; }
.pied-col ul { display: grid; gap: 8px; }
.pied-col a { font-size: 14px; text-decoration: none; opacity: .86; }
.pied-col a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.pied-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 28px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--bord-nuit); font: 400 11.5px/1.5 var(--f-mono); color: var(--gris-nuit); }
@media (min-width: 1000px) { .pied-in { grid-template-columns: 2fr 1fr 1fr 1fr; } }

/* ═══ Mouvement réduit : tout est posé, rien ne boucle ═══ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .js .rv, .js .rv-l .l > span, .js .ouv-titre .l > span, .js .ouv-bas, .js .ouv-meta, .js .logotype > * { opacity: 1; transform: none; }
  .ouv-video { display: none; }
  .js .principe-t.coupe .mot { color: var(--noir); }
  .js .rep-dit > span { color: #fafafa; }
  .repo .rep-tampon, .repo .rep-suite { opacity: 1; transform: none; }
}

/* La barre posée sur la vidéo est en verre (comme dans qhare, version « Liquid Glass ») */
.ouv-barre .aa-in.verre { --verre-fond: linear-gradient(180deg, rgba(255, 255, 255, .5), rgba(248, 248, 250, .58)); background: var(--verre-fond); box-shadow: inset 1.5px 1.5px 0 -.5px rgba(255, 255, 255, .85), inset -1px -1px 0 -.5px rgba(255, 255, 255, .4), inset 0 0 24px -8px rgba(255, 255, 255, .6), 0 0 0 .5px rgba(0, 0, 0, .12), 0 24px 60px -22px rgba(0, 0, 0, .55); }
html.lg .ouv-barre .aa-in.verre { --verre-fond: linear-gradient(180deg, rgba(255, 255, 255, .56), rgba(248, 248, 250, .66)); --lg-flou: 7px; }
/* Le rapport du manager, en verre clair sur la photo */
.rapport.verre { --verre-fond: rgba(253, 252, 249, .66); background: var(--verre-fond); }
html.lg .rapport.verre { --verre-fond: rgba(253, 252, 249, .5); }

/* Logo officiel « Effet domino » (kit site/marque/domino) : dominos séparés pour l'animation de chute */
.logo-marque, .logo-final, .logo-pied { width: auto; aspect-ratio: 1807.22 / 275.45; flex: none; overflow: visible; display: block; }
.logo-marque { height: var(--logo-taille); }
.logo-pied { height: 20px; }
.logo-final { height: .62em; max-width: 100%; }

/* ═══ La vidéo : la barre en 34 secondes ═══ */
.film { background: var(--blanc); border-top: var(--bord); padding-bottom: var(--section); }
.film-tete { margin-bottom: clamp(28px, 4vw, 52px); }
.film-cadre { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-objet); overflow: hidden; background: var(--gris-1) url("images/montage-960.webp") center / cover; border: var(--bord); box-shadow: var(--ombre-3); }
.film-video { width: 100%; height: 100%; object-fit: cover; background: transparent; }
.film-lecture { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; padding-bottom: clamp(16px, 6%, 48px); transition: opacity var(--d-2) var(--c-sortie); }
.film-pilule { display: inline-flex; align-items: center; gap: 12px; height: 56px; padding: 0 22px 0 6px; border-radius: 999px; background: rgba(13, 12, 11, .84); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); color: #fafafa; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 18px 40px -16px rgba(13, 12, 11, .5); transition: transform var(--d-2) var(--c-sortie), background-color var(--d-1); }
.film-rond { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--sur-accent); }
.film-rond svg { width: 18px; height: 18px; margin-left: 2px; }
.film-lib { font: 500 15px/1 var(--f-texte); letter-spacing: -.01em; }
.film-duree { font: 500 12px/1 var(--f-mono); color: var(--gris-nuit); letter-spacing: .04em; }
.film-lecture:hover .film-pilule { transform: translate3d(0, -2px, 0) scale(1.02); background: rgba(13, 12, 11, .92); }
.film-lecture:active .film-pilule { transform: scale(.98); }
.film.joue .film-lecture { opacity: 0; pointer-events: none; }
/* lecture automatique, sans le son (règle des navigateurs) : « Activer le son » en bas à gauche */
.film-son { position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 12px; border-radius: 999px; background: rgba(13, 12, 11, .78); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #fafafa; font: 500 13.5px/1 var(--f-texte); opacity: 0; transform: translate3d(0, 6px, 0); pointer-events: none; transition: opacity var(--d-2) var(--c-sortie), transform var(--d-2) var(--c-sortie), background-color var(--d-1); }
.film-son svg { width: 17px; height: 17px; }
.film-son:hover { background: rgba(13, 12, 11, .9); }
.film.auto .film-son { opacity: 1; transform: none; pointer-events: auto; }
.film.auto .film-lecture { opacity: 0; pointer-events: none; }
@media (max-width: 640px) {
  .film-cadre { border-radius: var(--r-media); }
  .film-lecture { padding-bottom: 12px; }
  .film-pilule { height: 42px; gap: 9px; padding: 0 14px 0 5px; }
  .film-rond { width: 32px; height: 32px; }
  .film-rond svg { width: 14px; height: 14px; }
  .film-lib { font-size: 13.5px; }
  .film-duree { font-size: 11px; }
}

/* ═══ Demande de démo (fenêtre) ═══ */
html:has(dialog.demo[open]) { overflow: hidden; }
.demo { width: min(600px, calc(100vw - 32px)); max-width: none; max-height: calc(100svh - 32px); margin: auto; padding: 0; border: 0; border-radius: 28px; background: var(--blanc); color: var(--noir); box-shadow: 0 1px 2px rgba(10, 10, 11, .06), 0 48px 120px -36px rgba(10, 10, 11, .55); overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.demo::backdrop { background: rgba(13, 12, 11, .42); -webkit-backdrop-filter: blur(10px) saturate(1.2); backdrop-filter: blur(10px) saturate(1.2); }
.demo[open] { animation: demo-in var(--d-2) var(--c-sortie); }
.demo[open]::backdrop { animation: demo-fond var(--d-2) ease; }
@keyframes demo-in { from { opacity: 0; transform: translate3d(0, 16px, 0) scale(.985); } }
@keyframes demo-fond { from { opacity: 0; } }
.demo-in { position: relative; }
.demo-corps { padding: clamp(24px, 3.6vw, 36px); }
.demo-fermer { position: absolute; top: 16px; right: 16px; z-index: 1; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--gris-1); color: var(--gris-7); transition: background-color var(--d-1); }
.demo-fermer:hover { background: var(--gris-2); }
.demo-corps > .etiquette { flex-wrap: wrap; row-gap: 4px; padding-right: 52px; }
.demo-t { margin-top: 14px; max-width: 18ch; font: var(--g-titre) clamp(1.75rem, 3.4vw, 2.375rem)/1.04 var(--f-titre); letter-spacing: var(--ap-2); text-wrap: balance; }
.demo-t i { font-style: normal; color: var(--gris-5); }
.demo-t .nw { white-space: nowrap; }
.demo-s { margin-top: 12px; max-width: 46ch; color: var(--gris-5); font-size: 15px; }
.demo-form { display: grid; gap: 18px; margin-top: 24px; }
.demo-grille { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; }
.demo .large { grid-column: 1 / -1; }
.champ { display: grid; gap: 7px; align-content: start; }
.champ > span, .choix legend { font: 500 13px/1.2 var(--f-texte); color: var(--gris-7); letter-spacing: -.005em; }
.champ em, .choix legend em { font-style: normal; font-weight: 400; color: var(--gris-5); margin-left: 4px; }
.champ input, .champ textarea { width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--gris-2); border-radius: 12px; background: #fff; color: var(--noir); font: 400 16px/1.3 var(--f-texte); box-shadow: var(--ombre-1); transition: border-color var(--d-1), box-shadow var(--d-1); -webkit-appearance: none; appearance: none; }
.champ textarea { height: auto; min-height: 76px; padding: 12px 14px; resize: vertical; line-height: 1.45; }
.champ input::placeholder, .champ textarea::placeholder { color: #a3a19b; }
.champ input:hover, .champ textarea:hover { border-color: var(--gris-3); }
.champ input:focus, .champ textarea:focus { outline: none; border-color: var(--noir); box-shadow: 0 0 0 4px rgba(13, 12, 11, .07); }
.champ.erreur input, .choix.erreur .demo-puces span { border-color: #c4320a; }
.champ-err { color: #b42318; font-size: 12.5px; line-height: 1.3; }
.champ-err:empty { display: none; }
.choix { display: grid; gap: 9px; min-width: 0; margin: 0; padding: 0; border: 0; }
.choix legend { padding: 0; margin-bottom: 9px; }
.demo-puces { display: flex; flex-wrap: wrap; gap: 8px; }
.demo-puces label { position: relative; display: block; }
.demo-puces input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.demo-puces span { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border: 1px solid var(--gris-2); border-radius: 999px; background: #fff; font: 500 14px/1 var(--f-texte); letter-spacing: -.01em; transition: background-color var(--d-1), color var(--d-1), border-color var(--d-1); }
.demo-puces label:hover span { border-color: var(--gris-3); }
.demo-puces input:checked + span { background: var(--noir); border-color: var(--noir); color: #fff; }
.demo-puces input:checked + span::before { content: ""; width: 6px; height: 6px; border-radius: 1.5px; background: var(--accent); }
.demo-puces input:focus-visible + span { outline: 2px solid var(--noir); outline-offset: 2px; }
.accord { display: flex; gap: 12px; align-items: flex-start; color: var(--gris-5); font-size: 13px; line-height: 1.5; cursor: pointer; }
.accord input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--noir); cursor: pointer; }
.accord a { color: var(--gris-7); text-underline-offset: 3px; }
.accord-err { margin-top: -12px; }
.piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.demo-bas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.demo-envoyer { height: 52px; padding: 0 26px; }
.demo-envoyer[disabled] { opacity: .65; cursor: progress; }
.demo-envoyer[disabled] .ic { animation: demo-attente 1s var(--c-io) infinite alternate; }
@keyframes demo-attente { to { transform: translate3d(4px, 0, 0); } }
.demo-statut { color: var(--gris-5); font-size: 13.5px; }
.demo-statut.err { color: #b42318; }
.demo-merci { display: grid; justify-items: start; gap: 14px; padding: clamp(36px, 5vw, 56px) clamp(26px, 4.4vw, 44px); }
.demo-merci .demo-t { margin-top: 6px; max-width: none; }
.demo-merci .demo-t:focus { outline: none; }
.demo-merci .bouton { margin-top: 10px; }
.demo-ok { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: var(--noir); color: var(--accent); animation: demo-ok .7s var(--c-ressort) both; }
.demo-ok svg { width: 26px; height: 26px; }
@keyframes demo-ok { from { opacity: 0; transform: scale(.6); } }
@media (max-width: 640px) {
  .demo { width: 100%; max-height: 94svh; margin: auto 0 0; border-radius: 26px 26px 0 0; }
  .demo[open] { animation-name: demo-feuille; }
  @keyframes demo-feuille { from { transform: translate3d(0, 40px, 0); opacity: .4; } }
  .demo-grille { grid-template-columns: 1fr; }
  .demo-envoyer { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .demo[open], .demo[open]::backdrop, .demo-ok { animation: none; }
}


/* ═══ Compte : connexion Google (en-tête, menu, démo) ═══
   Seulement sur le site lui-même (html.compte-ok, posé dans <head>) : la page de téléchargement reprend
   ce HTML sans la connexion. */
.nav-compte, .nf-compte, .demo-google, .demo-ou { display: none; }
.compte-ok .nav-compte { display: block; position: relative; }
.compte-ok .nf-compte { display: grid; gap: 12px; justify-items: start; }
.compte-ok .demo-google { display: grid; gap: 10px; }
.compte-ok .demo-ou { display: flex; }
.demo-google[hidden], .demo-ou[hidden] { display: none !important; }
.ic-g { width: 16px; height: 16px; flex: none; }
.nc-bouton { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 5px; border-radius: 999px; color: inherit; font: 500 14px/1 var(--f-texte); letter-spacing: -.01em; box-shadow: inset 0 0 0 1px rgba(13, 12, 11, .14); transition: background-color var(--d-1), box-shadow var(--d-1); }
.nc-bouton:hover { background: rgba(13, 12, 11, .05); }
.nav.sur-sombre .nc-bouton, .nav.ouvert .nc-bouton { box-shadow: inset 0 0 0 1px rgba(250, 250, 250, .26); }
.nav.sur-sombre .nc-bouton:hover, .nav.ouvert .nc-bouton:hover { background: rgba(250, 250, 250, .1); }
.nc-av { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; overflow: hidden; flex: none; background: #fff; color: var(--noir); font: 600 12.5px/1 var(--f-texte); box-shadow: 0 0 0 1px rgba(13, 12, 11, .08); }
.nc-av img { width: 100%; height: 100%; object-fit: cover; }
.nc-av.nc-lettre { background: var(--accent); color: var(--sur-accent); }
.nc-t { display: none; padding-right: 7px; }
@media (min-width: 560px) { .nc-t { display: inline; } }
.nc-menu { position: absolute; top: calc(100% + 12px); right: 0; z-index: 2; display: grid; gap: 2px; width: 268px; padding: 8px; border-radius: 20px; background: rgba(253, 252, 249, .98); color: var(--noir); box-shadow: 0 0 0 1px rgba(13, 12, 11, .08), 0 28px 70px -24px rgba(13, 12, 11, .5); transform-origin: 90% 0; animation: nc-in var(--d-2) var(--c-sortie); }
.nc-menu[hidden] { display: none; }
@keyframes nc-in { from { opacity: 0; transform: translate3d(0, -6px, 0) scale(.97); } }
.nc-qui { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; padding: 8px 10px 12px; border-bottom: 1px solid var(--gris-2); }
.nc-qui .nc-av { width: 36px; height: 36px; font-size: 15px; }
.nc-id { display: grid; gap: 3px; min-width: 0; }
.nc-id b { font-size: 14.5px; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nc-id small { font-size: 12.5px; color: var(--gris-5); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nc-lien { display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 10px; border-radius: 12px; color: inherit; font: 500 14.5px/1.2 var(--f-texte); letter-spacing: -.01em; text-align: left; text-decoration: none; transition: background-color var(--d-1); }
.nc-lien:hover { background: var(--gris-1); }
.nc-lien .ic { width: 16px; height: 16px; }
.nc-sortir { color: var(--gris-5); font-weight: 400; }
.nf-compte .bouton-google { width: auto; height: 46px; }
.nf-sortir { padding: 4px 0; color: var(--gris-nuit); font: 400 14px/1 var(--f-texte); text-decoration: underline; text-underline-offset: 3px; }
.nf-compte [hidden] { display: none; }

/* Bouton Google (blanc, contour fin, logo en couleurs) */
.bouton-google { display: inline-flex; align-items: center; justify-content: center; gap: 12px; width: 100%; height: 52px; padding: 0 20px; border-radius: var(--r-bouton); background: #fff; color: var(--noir); font: 500 15.5px/1 var(--f-texte); letter-spacing: -.01em; white-space: nowrap; box-shadow: inset 0 0 0 1px rgba(13, 12, 11, .16), 0 1px 2px rgba(13, 12, 11, .06); transition: box-shadow var(--d-1), background-color var(--d-1), opacity var(--d-1); }
.bouton-google:hover { background: #fbfbf9; box-shadow: inset 0 0 0 1px rgba(13, 12, 11, .3), 0 10px 24px -14px rgba(13, 12, 11, .35); }
.bouton-google:active { transform: scale(.99); }
.bouton-google .ic-g { width: 20px; height: 20px; }
[data-compte][aria-busy="true"] { opacity: .65; cursor: progress; }
.demo-google-s { color: var(--gris-5); font-size: 13px; line-height: 1.4; text-align: center; }
.demo-ou { align-items: center; gap: 14px; margin: 2px 0 -4px; color: var(--gris-5); font: 500 11px/1 var(--f-mono); letter-spacing: .07em; text-transform: uppercase; }
.demo-ou::before, .demo-ou::after { content: ""; flex: 1; height: 1px; background: var(--gris-2); }
.demo-connecte { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border-radius: 16px; background: var(--gris-0); box-shadow: inset 0 0 0 1px var(--gris-2); }
.demo-connecte[hidden] { display: none; }
.demo-connecte .nc-av { width: 38px; height: 38px; font-size: 15px; }
.demo-connecte p { display: grid; flex: 1; gap: 3px; min-width: 0; }
.demo-connecte small { color: var(--gris-5); font-size: 12px; }
.demo-connecte b { font-size: 14.5px; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dc-changer { flex: none; padding: 6px 2px; color: var(--gris-7); font: 500 13.5px/1 var(--f-texte); text-decoration: underline; text-underline-offset: 3px; }
.demo-merci-act { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.demo-merci-act .bouton { margin-top: 0; }
.demo-merci .bouton-clair { box-shadow: inset 0 0 0 1px var(--gris-2); }

/* ═══ Ouverture du soir : demande transmise, compte connecté ═══ */
.ouv-video.du-soir, .ouv-image.du-soir { display: none; }
.attente .ouv-video.de-jour, .attente .ouv-image.de-jour { display: none; }
.attente .ouv-video.du-soir, .attente .ouv-image.du-soir { display: block; }
.attente .ouv-voile { background: linear-gradient(180deg, rgba(7, 7, 9, .55) 0%, rgba(7, 7, 9, 0) 26%), linear-gradient(0deg, rgba(7, 7, 9, .9) 0%, rgba(7, 7, 9, .48) 32%, rgba(7, 7, 9, .06) 64%); }
.ouv.change .ouv-cadre { animation: ouv-change 1.1s var(--c-sortie); }
@keyframes ouv-change { from { filter: brightness(.35); } }
.ouv-statut { display: inline-flex; align-items: center; gap: 10px; justify-self: start; height: 32px; padding: 0 14px 0 12px; border-radius: 999px; background: rgba(250, 250, 250, .1); box-shadow: inset 0 0 0 1px rgba(250, 250, 250, .2); color: rgba(250, 250, 250, .92); font: 500 11.5px/1 var(--f-mono); letter-spacing: .07em; text-transform: uppercase; -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); }
.ouv-statut[hidden] { display: none; }
.ouv-statut i { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.ouv-statut i::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid var(--accent); opacity: 0; }
@media (prefers-reduced-motion: no-preference) { .ouv-statut i::after { animation: ouv-onde 2.4s var(--c-sortie) infinite; } }
@keyframes ouv-onde { 0% { opacity: .9; transform: scale(.55); } 100% { opacity: 0; transform: scale(2.3); } }
.js .ouv-statut { opacity: 0; transform: translate3d(0, 10px, 0); transition: opacity .8s var(--c-sortie) .1s, transform .9s var(--c-doux) .1s; }
.js .ouv.is-in .ouv-statut { opacity: 1; transform: none; }
.attente .ouv-defile { display: none; } /* (boutons plus larges : « Accéder à mon espace » ; l'invite à défiler sert surtout aux nouveaux visiteurs) */
