/* Pages servies par le serveur (maquette 4.6.0) : pages légales, refus (429), interface absente, maintenance.
   Direction de la page d'accueil « Vue éclatée » (prototypes/j52) : Graphite et Porcelaine, Mona Sans, barre du haut,
   objets du bot en vue éclatée avec de vraies ombres. Rayons : 20, 16, 14, 12, 8. Aucune pilule, aucun halo. */

/* ---------- Police : Mona Sans locale, servie à /polices/ (trois fichiers, un par plage de caractères) ---------- */
@font-face { font-family: 'Mona Sans'; font-style: normal; font-weight: 200 900; font-stretch: 75% 125%; font-display: swap; src: url(/polices/mona-sans-vietnamese.woff2) format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Mona Sans'; font-style: normal; font-weight: 200 900; font-stretch: 75% 125%; font-display: swap; src: url(/polices/mona-sans-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Mona Sans'; font-style: normal; font-weight: 200 900; font-stretch: 75% 125%; font-display: swap; src: url(/polices/mona-sans-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Jetons : Porcelaine (clair) en base, Graphite (sombre) selon le système ou le choix posé sur <html> ---------- */
:root {
  --police: "Mona Sans", system-ui, sans-serif;
  --courbe: cubic-bezier(0.2, 0.8, 0.2, 1);
  color-scheme: light;
  --accent: #18794e; --on-accent: #ffffff; --secondaire: #8b8d94;
  --bg: #f4f4f1; --bg-accent: #e9e9e4; --card: #ffffff; --muted: #f6f6f3; --border: #e2e2dc;
  --fg: #121316; --fg-2: #585a61; --fg-3: #66686f;
  --selection: #0b0b0d; --sur-selection: #f4f4f5;
  --plan-1: #f9f9f7; --plan-2: #ffffff; --plan-3: #ffffff;
  --trait: rgba(18, 19, 22, 0.07); --trait-fort: rgba(18, 19, 22, 0.12); --lisere: rgba(255, 255, 255, 0.9);
  --bouton: #121316; --sur-bouton: #ffffff;
  --positif: #186e3d; --negatif: #b42318; --avis: #a35a06;
  --ombre-1: 0 1px 2px rgba(18, 19, 22, 0.06), 0 16px 40px -20px rgba(18, 19, 22, 0.2);
  --o-leve: 0 0 0 1px rgba(18, 19, 22, 0.08), 0 2px 4px rgba(18, 19, 22, 0.08), 0 30px 50px -22px rgba(18, 19, 22, 0.35);
  --creux: inset 0 1px 2px rgba(18, 19, 22, 0.06);
  --barre-fond: rgba(244, 244, 241, 0.97);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
  color-scheme: dark;
  --accent: #4cc38a; --on-accent: #0b0b0d; --secondaire: #8e8e96;
  --bg: #0b0b0d; --bg-accent: #1f1f24; --card: #17171b; --muted: #0f0f12; --border: #26262b;
  --fg: #f4f4f5; --fg-2: #a6a6ae; --fg-3: #8a8a93;
  --selection: #f4f4f1; --sur-selection: #121316;
  --plan-1: #111114; --plan-2: #17171b; --plan-3: #1f1f24;
  --trait: rgba(255, 255, 255, 0.07); --trait-fort: rgba(255, 255, 255, 0.12); --lisere: rgba(255, 255, 255, 0.07);
  --bouton: #f4f4f5; --sur-bouton: #0b0b0d;
  --positif: #4cc38a; --negatif: #f0675f; --avis: #e5a54b;
  --ombre-1: 0 1px 1px rgba(0, 0, 0, 0.5), 0 16px 32px -16px rgba(0, 0, 0, 0.7);
  --o-leve: 0 0 0 1px rgba(255, 255, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 2px 4px rgba(0, 0, 0, 0.45), 0 30px 50px -18px rgba(0, 0, 0, 0.9);
  --creux: inset 0 1px 2px rgba(0, 0, 0, 0.5);
  --barre-fond: rgba(11, 11, 13, 0.96);
  --police: "Mona Sans", system-ui, sans-serif;
  --courbe: cubic-bezier(0.2, 0.8, 0.2, 1);
}
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --accent: #4cc38a; --on-accent: #0b0b0d; --secondaire: #8e8e96;
  --bg: #0b0b0d; --bg-accent: #1f1f24; --card: #17171b; --muted: #0f0f12; --border: #26262b;
  --fg: #f4f4f5; --fg-2: #a6a6ae; --fg-3: #8a8a93;
  --selection: #f4f4f1; --sur-selection: #121316;
  --plan-1: #111114; --plan-2: #17171b; --plan-3: #1f1f24;
  --trait: rgba(255, 255, 255, 0.07); --trait-fort: rgba(255, 255, 255, 0.12); --lisere: rgba(255, 255, 255, 0.07);
  --bouton: #f4f4f5; --sur-bouton: #0b0b0d;
  --positif: #4cc38a; --negatif: #f0675f; --avis: #e5a54b;
  --ombre-1: 0 1px 1px rgba(0, 0, 0, 0.5), 0 16px 32px -16px rgba(0, 0, 0, 0.7);
  --o-leve: 0 0 0 1px rgba(255, 255, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 2px 4px rgba(0, 0, 0, 0.45), 0 30px 50px -18px rgba(0, 0, 0, 0.9);
  --creux: inset 0 1px 2px rgba(0, 0, 0, 0.5);
  --barre-fond: rgba(11, 11, 13, 0.96);
  --police: "Mona Sans", system-ui, sans-serif;
  --courbe: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; overflow-x: clip; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; overflow-x: clip; background: var(--bg); color: var(--fg); font-family: var(--police);
  font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
strong, b { font-weight: 600; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; border-radius: 8px; }
.num { font-variant-numeric: tabular-nums; }
.ic { flex: none; }
.evitement { position: fixed; left: 16px; top: -80px; z-index: 40; padding: 12px 16px; border-radius: 12px; background: var(--bouton); color: var(--sur-bouton); font-weight: 600; text-decoration: none; }
.evitement:focus { top: 16px; }

/* ---------- Barre du haut (celle de la page d'accueil, simplifiée) ---------- */
.barre { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 20px; height: 72px; padding: 0 clamp(16px, 2.8vw, 40px);
  background: var(--barre-fond); box-shadow: 0 1px 0 var(--trait); }
.marque { display: flex; align-items: center; gap: 12px; min-height: 44px; font-size: 15px; font-weight: 600; text-decoration: none; }
.marque img { display: block; width: 32px; height: 32px; border-radius: 50%; box-shadow: 0 0 0 1px var(--trait); }
.barre-liens { display: flex; gap: 2px; margin: 0 auto; }
.barre-liens a { display: flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 12px; font-size: 14px; font-weight: 500; color: var(--fg-2); text-decoration: none; }
.barre-liens a:hover { color: var(--fg); }
.barre-liens a[aria-current="page"] { color: var(--fg); background: var(--bg-accent); }
.barre-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.barre-liens + .barre-actions { margin-left: 0; }
/* Langue et thème ([U-ACCUEIL-BASCULES]) : la plaque de la page d'accueil, deux touches sans menu ; chacune ne montre que le réglage
   actif (la langue affichée, l'icône du thème en cours : « si-sombre » se voit en sombre) et passe à l'autre d'un clic */
.affichage { display: flex; flex: none; align-items: center; gap: 2px; height: 44px; padding: 4px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--trait-fort); }
.bascule { display: grid; place-items: center; min-width: 40px; height: 36px; padding: 0 10px; border: 0; border-radius: 8px; background: none; cursor: pointer;
  font-size: 13px; font-weight: 700; letter-spacing: 0.02em; color: var(--fg-2); text-decoration: none; transition: color 0.2s, background-color 0.2s, transform 0.2s; }
.bascule:hover { color: var(--fg); background: var(--bg-accent); transform: translateY(-1px); }
.bascule:active { transform: translateY(1px); }
.affichage-trait { flex: none; width: 1px; height: 16px; background: var(--trait-fort); }
.si-clair, .si-sombre { display: grid; }
.si-sombre { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .si-clair { display: none; } :root:not([data-theme="light"]) .si-sombre { display: grid; } }
:root[data-theme="dark"] .si-clair { display: none; }
:root[data-theme="dark"] .si-sombre { display: grid; }
@media (prefers-reduced-motion: reduce) { .bascule { transition: none; } }
/* Cibles de 44 px au doigt (balayages-3, banc de la vérification finale) : la zone de toucher dépasse la touche d'un pseudo-élément, sans changer l'aspect */
@media (pointer: coarse) {
  .bascule, .marque { position: relative; }
  .bascule::before { content: ""; position: absolute; inset: -4px -2px; }
  .marque::before { content: ""; position: absolute; inset: 0 -6px; }
  .sommaire a { position: relative; }
  .sommaire a::before { content: ""; position: absolute; inset: -2px 0; }
}
.lien { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 12px; font-size: 14px; font-weight: 500; text-decoration: none; color: var(--fg); }
.lien:hover { background: var(--bg-accent); }

/* ---------- Boutons ---------- */
.bouton { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 24px; border: 0; border-radius: 14px; font-size: 15px; font-weight: 600;
  white-space: nowrap; cursor: pointer; text-decoration: none; transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s; }
.bouton-plein { background: var(--bouton); color: var(--sur-bouton); box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.14), 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px -8px rgba(0, 0, 0, 0.5); }
.bouton-plein:hover { transform: translateY(-1px); }
.bouton-plein:disabled { opacity: 0.6; cursor: progress; transform: none; }
.bouton-second { background: var(--bg-accent); color: var(--fg); box-shadow: inset 0 0 0 1px var(--trait-fort), inset 0 1px 0 var(--lisere); }
.bouton-second:hover { background: color-mix(in srgb, var(--bg-accent) 80%, var(--fg)); }
.bouton-discord { background: #5865f2; color: #fff; box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.2), 0 8px 24px -10px rgba(88, 101, 242, 0.7); }
.bouton-discord:hover { background: #4752c4; }
.bouton-petit { height: 44px; padding: 0 16px; font-size: 14px; border-radius: 12px; }
.bouton:active { transform: translateY(1px); }
.ic-discord { width: 18px; height: 18px; flex: none; }

/* ================= Pages légales ================= */
.legal { width: min(100% - 32px, 1240px); margin: 0 auto; padding: 56px 0 72px; }
.legal-tete { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; align-items: center; }
.legal-fil { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin: -10px 0 4px -6px; padding: 0 8px; border-radius: 10px; font-size: 14px; font-weight: 500; color: var(--fg-2); text-decoration: none; }
.legal-fil:hover { color: var(--fg); background: var(--bg-accent); }
.legal h1 { font-size: clamp(36px, 4.4vw, 60px); line-height: 1.02; font-weight: 600; font-stretch: 125%; letter-spacing: -0.032em; text-wrap: balance; }
.maj { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; margin-top: 18px; font-size: 14px; color: var(--fg-2); }
.maj .ic { color: var(--fg-3); }
.maj-n { padding-left: 10px; border-left: 1px solid var(--trait-fort); }
/* Téléphone : l'icône reste au début de la date, qui passe à la ligne à côté d'elle ; le nombre de sections dessous */
@media (max-width: 640px) { .maj { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 2px 10px; } .maj .ic { margin-top: 3px; } .maj-n { grid-column: 2; padding-left: 0; border-left: 0; } }
.legal-chapo { max-width: 68ch; margin-top: 24px; }
.chapo { font-size: 18px; line-height: 1.6; color: var(--fg); text-wrap: pretty; }
.encadre { margin-top: 18px; padding: 16px 18px; border-radius: 14px; background: var(--card); font-size: 15px; line-height: 1.55; color: var(--fg-2);
  box-shadow: 0 0 0 1px var(--trait), inset 0 1px 0 var(--lisere), var(--ombre-1); }
.encadre strong { color: var(--fg); }
.encadre-ref { margin-top: 16px; max-width: 68ch; }
.encadre a, .legal-article a { color: var(--fg); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 70%, transparent); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }

/* Les trois pages légales en vue éclatée, la page lue devant ; ses sections se cochent pendant la lecture */
.feuilles { position: relative; height: 380px; perspective: 1400px; }
.feuille { position: absolute; left: 50%; top: 50%; display: flex; flex-direction: column; gap: 14px; width: 230px; height: 336px; margin: -168px 0 0 -115px; padding: 22px 20px;
  border-radius: 16px; background: var(--card); box-shadow: var(--o-leve); transform-style: preserve-3d; transition: transform 0.9s var(--courbe), opacity 0.6s; }
.feuille-1 { transform: rotateX(14deg) rotateY(-22deg) rotateZ(4deg) translate3d(70px, -46px, -140px); opacity: 0.55; }
.feuille-2 { transform: rotateX(14deg) rotateY(-22deg) rotateZ(4deg) translate3d(36px, -22px, -70px); opacity: 0.8; }
.feuille-active { transform: rotateX(14deg) rotateY(-22deg) rotateZ(4deg); }
html:not(.vivant) .feuille-1, html:not(.vivant) .feuille-2 { transform: rotateX(14deg) rotateY(-22deg) rotateZ(4deg); }
/* De 1081 à 1365 px, la feuille du fond dépassait de 25 px à droite (défilement de côté) : la pile recule d'autant, et un peu plus */
@media (min-width: 1081px) and (max-width: 1365px) { .legal-tete .feuilles { left: -40px; } }
.f-titre { font-size: 15px; line-height: 1.25; font-weight: 600; font-stretch: 112%; letter-spacing: -0.01em; }
.f-titre-muet i { display: block; width: 70%; height: 12px; border-radius: 6px; background: color-mix(in srgb, var(--fg) 16%, var(--card)); }
.f-lignes { display: flex; flex-direction: column; gap: 9px; }
.f-lignes i { position: relative; display: flex; align-items: center; height: 8px; border-radius: 4px; background: var(--bg-accent); }
.f-lignes i:nth-child(3n + 1) { width: 92%; } .f-lignes i:nth-child(3n + 2) { width: 76%; } .f-lignes i:nth-child(3n) { width: 84%; }
.feuille-active .f-lignes { gap: 6px; }
.feuille-active .f-lignes i { height: 14px; padding-left: 26px; background: transparent; }
.feuille-active .f-lignes i::before { content: ""; position: absolute; left: 26px; right: 0; top: 4px; height: 6px; border-radius: 3px; background: var(--bg-accent); transition: background 0.4s; }
.feuille-active .f-lignes b { position: absolute; left: 0; width: 18px; font-size: 10px; font-weight: 600; text-align: right; color: var(--fg-3); }
.feuille-active .f-lignes i.lu::before { background: color-mix(in srgb, var(--accent) 70%, var(--card)); }
.feuille-active .f-lignes i.lu b { color: var(--fg); }

/* Colonnes : sommaire collant, article à 68 signes */
.legal-colonnes { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 56px; margin-top: 56px; align-items: start; }
.sommaire { position: sticky; top: 96px; }
.sommaire details { border-radius: 16px; }
.sommaire summary { display: flex; align-items: center; gap: 10px; min-height: 44px; list-style: none; cursor: default; }
.sommaire summary::-webkit-details-marker { display: none; }
.sommaire summary h2 { font-size: 15px; font-weight: 600; font-stretch: 112%; }
.s-total { margin-left: auto; font-size: 13px; color: var(--fg-3); }
.sommaire summary .ic { display: none; }
.lecture { display: block; height: 2px; margin: 6px 0 10px; border-radius: 1px; background: var(--trait-fort); overflow: hidden; }
.lecture i { display: block; height: 100%; width: 100%; transform: scaleX(var(--p, 0)); transform-origin: 0 0; background: var(--accent); } /* [U-RETOURS-V26] fluidité : la largeur posée à chaque image de défilement refaisait la mise en page ; même barre par une transformation */
/* La liste qui défile garde 6 px autour des liens, rendus par la marge négative : l'anneau de la section active (1 px) et le contour
   de focus (5 px) ne sont pas coupés, même quand le clavier fait défiler la liste jusqu'au lien (scroll-padding). Ligne au milieu du
   lien : marges haute et basse égales qui font à elles seules les 40 px (la hauteur minimale ajoutait 3 px sous le texte). */
.sommaire ol { display: grid; gap: 2px; margin: -6px; padding: 6px; scroll-padding: 6px; list-style: none; max-height: calc(100vh - 188px); overflow: auto; scrollbar-width: thin; }
.sommaire a { display: flex; align-items: baseline; gap: 12px; min-height: 40px; padding: calc((40px - 1.35em) / 2) 10px; border-radius: 10px; font-size: 14px; line-height: 1.35; color: var(--fg-2); text-decoration: none; transition: background 0.2s, color 0.2s; }
.sommaire a:hover { color: var(--fg); background: var(--bg-accent); }
.sommaire a[aria-current] { color: var(--fg); background: var(--card); box-shadow: 0 0 0 1px var(--trait), inset 0 1px 0 var(--lisere); font-weight: 500; }
.s-num { flex: none; width: 18px; font-size: 12px; font-weight: 600; color: var(--fg-3); text-align: right; font-variant-numeric: tabular-nums; }
.sommaire a[aria-current] .s-num { color: var(--accent); }
.legal-article { max-width: 900px; }
.legal-section > :not(.tableau) { max-width: 70ch; }
.legal-section { padding: 8px 0 40px; }
.legal-section + .legal-section { padding-top: 40px; border-top: 1px solid var(--trait); }
.legal-section h2 { font-size: 26px; line-height: 1.2; font-weight: 600; font-stretch: 118%; letter-spacing: -0.02em; text-wrap: balance; margin-bottom: 18px; }
.legal-section h3 { margin: 28px 0 10px; font-size: 18px; line-height: 1.35; font-weight: 600; font-stretch: 110%; letter-spacing: -0.01em; }
.legal-section p, .legal-section li { font-size: 16.5px; line-height: 1.7; color: color-mix(in srgb, var(--fg) 88%, var(--bg)); text-wrap: pretty; }
.legal-section p + p, .legal-section p + ul, .legal-section ul + p { margin-top: 14px; }
.legal-section ul { margin: 12px 0 0; padding-left: 22px; }
.legal-section li + li { margin-top: 10px; }
.legal-section li::marker { color: var(--fg-3); }
.legal-section code { font: 500 0.88em/1 ui-monospace, "SF Mono", monospace; padding: 2px 6px; border-radius: 6px; background: var(--bg-accent); color: var(--fg); overflow-wrap: anywhere; }
.tableau { margin: 20px 0 4px; }
.tableau table, .tableau tbody, .tableau tr, .tableau td { display: block; }
.tableau thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.tableau tbody { display: grid; gap: 10px; }
.tableau tr { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 10px 28px; padding: 18px 20px; border-radius: 14px; background: var(--card);
  box-shadow: 0 0 0 1px var(--trait), inset 0 1px 0 var(--lisere), var(--ombre-1); font-size: 14.5px; line-height: 1.55; color: color-mix(in srgb, var(--fg) 86%, var(--bg)); }
.tableau td:last-child:nth-child(2) { grid-column: 1 / -1; }
.tableau td:first-child { grid-column: 1 / -1; font-size: 15.5px; line-height: 1.6; color: var(--fg); }
.tableau td:not(:first-child) { padding-top: 10px; border-top: 1px solid var(--trait); }
.tableau td:not(:first-child)::before { content: attr(data-label); display: block; margin-bottom: 4px; font-size: 12.5px; font-weight: 600; color: var(--fg-3); }
.legal-voisines { margin-top: 24px; padding-top: 40px; border-top: 1px solid var(--trait); max-width: 72ch; }
.legal-voisines h2 { font-size: 15px; font-weight: 600; font-stretch: 112%; color: var(--fg-2); }
.legal-cartes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.legal-carte { display: flex; align-items: center; gap: 14px; min-height: 72px; padding: 14px 16px; border-radius: 16px; background: var(--card); font-weight: 600; text-decoration: none;
  box-shadow: 0 0 0 1px var(--trait), inset 0 1px 0 var(--lisere), var(--ombre-1); transition: transform 0.25s var(--courbe), box-shadow 0.25s; }
.legal-carte:hover { transform: translateY(-2px); box-shadow: var(--o-leve); }
.legal-carte > span:nth-child(2) { flex: 1; }
.legal-carte-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--bg-accent); color: var(--fg-2); }
.lien-retour { margin-top: 16px; margin-left: -14px; color: var(--fg-2); }

/* ---------- Pied ---------- */
.pied { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; width: min(100% - 32px, 1240px); margin: auto auto 0; padding: 28px 0; border-top: 1px solid var(--trait); font-size: 14px; color: var(--fg-2); }
.pied nav { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.pied a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; border-radius: 10px; text-decoration: none; color: var(--fg-2); }
.pied a:hover { color: var(--fg); background: var(--bg-accent); }

/* ================= Pages de refus, interface absente, maintenance ================= */
.refus { display: flex; flex-direction: column; align-items: center; width: min(100% - 32px, 720px); margin: 0 auto; padding: 36px 0 56px; text-align: center; }
.refus h1 { max-width: 22ch; font-size: clamp(30px, 3.2vw, 44px); line-height: 1.08; font-weight: 600; font-stretch: 125%; letter-spacing: -0.03em; text-wrap: balance; }
.refus-texte { max-width: 52ch; margin-top: 14px; font-size: 17px; line-height: 1.55; color: var(--fg-2); text-wrap: pretty; }
.refus-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }

/* Une minute : cadran de 60 traits qui s'éteignent seconde par seconde */
.scene-refus { position: relative; display: grid; place-items: center; width: 100%; height: 300px; margin-bottom: 28px; }
.minute { position: relative; z-index: 2; display: grid; place-items: center; width: 200px; height: 200px; border-radius: 50%; background: var(--card); box-shadow: var(--o-leve); }
.cadran { position: absolute; inset: 0; width: 100%; height: 100%; }
.cadran-tick { stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; transition: stroke 0.3s; }
.cadran-tick.passe { stroke: var(--trait-fort); }
.minute-reste { position: relative; font-size: 44px; font-weight: 600; font-stretch: 112%; letter-spacing: -0.02em; }
.onglets-pile { position: absolute; inset: 0; perspective: 1200px; }
.onglet-p { position: absolute; left: 50%; top: 50%; width: 260px; height: 168px; margin: -84px 0 0 -130px; border-radius: 14px; background: var(--card); box-shadow: var(--o-leve);
  transform: rotateX(12deg) rotateY(-18deg) translate3d(calc(var(--k) * 34px - 200px), calc(var(--k) * -14px + 20px), calc(var(--k) * -30px)); opacity: calc(1 - var(--k) * 0.16); }
.onglet-p i { position: absolute; left: 14px; right: 14px; top: 14px; height: 10px; border-radius: 5px; background: var(--bg-accent); }
.onglet-p b { position: absolute; left: 14px; width: 58%; top: 36px; height: 8px; border-radius: 4px; background: var(--bg-accent); }
.onglet-0 { --k: 0; } .onglet-1 { --k: 1; } .onglet-2 { --k: 2; } .onglet-3 { --k: 3; } .onglet-4 { --k: 4; }
.onglets-pile .onglet-p:nth-child(n) { animation: entre-onglet 0.7s var(--courbe) both; animation-delay: calc(var(--k) * 90ms); }
@keyframes entre-onglet { from { opacity: 0; translate: 0 -24px; } }
/* Trop de connexions : les essais de connexion empilés, le dernier refusé */
.essais { position: absolute; inset: 0; perspective: 1200px; }
.essai { position: absolute; left: 50%; top: 50%; display: inline-flex; align-items: center; gap: 10px; height: 52px; margin: -26px 0 0 -160px; width: 280px; padding: 0 20px; border-radius: 14px;
  background: #5865f2; color: #fff; font-size: 15px; font-weight: 600; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3), 0 18px 30px -14px rgba(30, 36, 120, 0.8);
  transform: rotateX(24deg) rotateZ(-6deg) translate3d(calc(var(--k) * 24px - 150px), calc(var(--k) * -44px + 90px), 0); opacity: calc(0.3 + var(--k) * 0.14); animation: entre-onglet 0.6s var(--courbe) both; animation-delay: calc(var(--k) * 80ms); }
.essai:not(.essai-4) > span { visibility: hidden; }
.essai-0 { --k: 0; } .essai-1 { --k: 1; } .essai-2 { --k: 2; } .essai-3 { --k: 3; } .essai-4 { --k: 4; background: #3c4196; color: rgba(255, 255, 255, 0.7); }
.minute-petite { width: 150px; height: 150px; transform: translate(150px, 20px); }
.minute-petite .minute-reste { font-size: 34px; }

/* Interface absente : la console en vue éclatée, ses plaques au-dessus de logements vides */
.refus-build h1 { max-width: 18ch; }
.scene-build { position: relative; width: 100%; height: 300px; margin-bottom: 24px; perspective: 1400px; }
.coque-vide, .plaques { position: absolute; left: 50%; top: 50%; width: 400px; height: 250px; margin: -110px 0 0 -200px; border-radius: 16px; transform: rotateX(52deg) rotateZ(-34deg); transform-style: preserve-3d; }
.coque-vide { background: var(--card); box-shadow: var(--o-leve); }
.logement, .plaque { position: absolute; border-radius: 10px; }
.logement { box-shadow: inset 0 0 0 1.5px var(--trait-fort); background: var(--muted); }
.logement { outline: 1.5px dashed color-mix(in srgb, var(--fg) 22%, transparent); outline-offset: -1.5px; box-shadow: none; }
.logement-menu, .plaque-menu { left: 14px; top: 14px; bottom: 14px; width: 84px; }
.logement-titre, .plaque-titre { left: 112px; top: 14px; right: 14px; height: 34px; }
.logement-a, .plaque-carte-a { left: 112px; top: 62px; width: 130px; bottom: 14px; }
.logement-b, .plaque-carte-b { left: 256px; top: 62px; right: 14px; height: 80px; }
.logement-c, .plaque-carte-c { left: 256px; top: 156px; right: 14px; bottom: 14px; }
.plaques { pointer-events: none; }
.plaque { background: color-mix(in srgb, var(--fg) 8%, var(--card)); box-shadow: 0 0 0 1px var(--trait-fort), 0 20px 24px -10px rgba(0, 0, 0, 0.5); transform: translateZ(64px); opacity: 0.95; animation: plaque-flotte 4s ease-in-out infinite alternate; }
.plaque-titre { animation-delay: -0.6s; } .plaque-carte-a { animation-delay: -1.2s; } .plaque-carte-b { animation-delay: -1.8s; } .plaque-carte-c { animation-delay: -2.4s; }
@keyframes plaque-flotte { from { transform: translateZ(56px); } to { transform: translateZ(74px); } }
.code { width: 100%; max-width: 460px; margin: 14px 0 0; padding: 14px 18px; border-radius: 14px; background: var(--card); color: var(--fg); text-align: left; overflow-x: auto;
  font: 500 14px/1.7 ui-monospace, "SF Mono", monospace; box-shadow: 0 0 0 1px var(--trait), var(--creux); }
.code-l { display: block; }
.code-l::before { content: "$ "; color: var(--fg-3); }
.code-chemin { color: var(--avis); }

/* Maintenance : la liste des membres de Discord, où le bot passe de Hors ligne à En ligne */
.scene-maint { position: relative; display: grid; place-items: center; width: 100%; height: 300px; margin: -12px 0 8px; perspective: 1300px; }
.dc-liste { width: 290px; padding: 12px 10px 10px; border-radius: 16px; background: #2b2d31; color: #949ba4; text-align: left; font-size: 14px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 2px 4px rgba(0, 0, 0, 0.35), 0 40px 70px -24px rgba(0, 0, 0, 0.85);
  transform: rotateY(-16deg) rotateX(8deg) rotateZ(1deg); }
.dc-liste { box-shadow: 0 0 0 1px rgba(18, 19, 22, 0.1), 0 2px 4px rgba(18, 19, 22, 0.14), 0 40px 70px -24px rgba(18, 19, 22, 0.45); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .dc-liste { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 2px 4px rgba(0, 0, 0, 0.35), 0 40px 70px -24px rgba(0, 0, 0, 0.85); } }
:root[data-theme="dark"] .dc-liste { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 2px 4px rgba(0, 0, 0, 0.35), 0 40px 70px -24px rgba(0, 0, 0, 0.85); }
.dc-liste-tete { padding: 0 8px 8px; font-size: 15px; font-weight: 600; color: #f2f3f5; border-bottom: 1px solid #3f4147; margin-bottom: 8px; }
.dc-groupe { display: flex; gap: 6px; padding: 10px 8px 4px; font-size: 12px; font-weight: 600; color: #949ba4; }
.dc-m { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 8px; border-radius: 6px; color: #dbdee1; }
.dc-m-av { position: relative; display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: #4e5058; color: #fff; font-size: 13px; font-weight: 600; }
.dc-m-av img { width: 32px; height: 32px; border-radius: 50%; }
.m-a { background: #7a5ab8; } .m-e { background: #b07a1c; } .m-b { background: #2f7fb0; }
.dc-m-st { position: absolute; right: -3px; bottom: -3px; width: 14px; height: 14px; border-radius: 50%; background: #23a559; box-shadow: 0 0 0 3px #2b2d31; }
#dc-groupe-hors-ligne .dc-m { opacity: 0.45; }
#dc-groupe-hors-ligne .dc-m-st { background: #80848e; box-shadow: 0 0 0 3px #2b2d31, inset 0 0 0 3px #80848e, inset 0 0 0 10px #2b2d31; }
.dc-m-nom[data-role="admin"] { color: #c084e8; } .dc-m-nom[data-role="ens"] { color: #e3b341; } .dc-m-nom[data-role="b2"] { color: #5aa9e6; }
.dc-m-barre { width: 96px; height: 10px; border-radius: 5px; background: rgba(148, 155, 164, 0.4); }
.dc-m-bot .dc-m-nom { color: #f2f3f5; font-weight: 500; }
.dc-app { padding: 1px 5px; border-radius: 4px; background: #5865f2; color: #fff; font-size: 10px; font-weight: 600; }
.reveil #dc-bot { opacity: 1; }
.reveil #dc-bot .dc-m-st { background: #f0b232; box-shadow: 0 0 0 3px #2b2d31; animation: veille 1.2s ease-in-out infinite; }
.en-ligne #dc-bot { background: rgba(78, 80, 88, 0.3); }
@keyframes veille { 50% { opacity: 0.45; } }
.statut { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 9px; margin-bottom: 14px; font-size: 13px; font-weight: 600; color: var(--fg-2); background: var(--bg-accent); }
.pastille { width: 8px; height: 8px; border-radius: 50%; background: var(--fg-3); }
.reveil .pastille { background: var(--avis); animation: veille 1.2s ease-in-out infinite; }
.en-ligne .pastille { background: var(--positif); }
.profil { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; padding: 6px 14px 6px 6px; border-radius: 14px; background: var(--card); box-shadow: 0 0 0 1px var(--trait), var(--ombre-1); }
.profil-av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.profil-av { overflow: hidden; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #7a5ab8; color: #fff; font-size: 13px; font-weight: 600; }
.details { max-width: 60ch; margin-top: 16px; padding: 12px 16px; border-radius: 12px; background: var(--muted); font-size: 13.5px; line-height: 1.55; color: var(--fg-2); box-shadow: inset 0 0 0 1px var(--trait); }
.erreur { margin-top: 14px; padding: 12px 16px; border-radius: 12px; font-size: 15px; font-weight: 500; color: var(--negatif); background: color-mix(in srgb, var(--negatif) 10%, transparent); }

/* Page légale indisponible : les feuilles éteintes, en veille */
.scene-indispo { position: relative; width: 100%; height: 320px; margin-bottom: 24px; }
.feuilles-eteintes { height: 320px; }
.feuilles-eteintes .feuille { filter: saturate(0); }
.feuilles-eteintes .feuille-active { opacity: 1; }
.veille { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 16px; background: var(--card); color: var(--fg-2); box-shadow: var(--o-leve); }

/* ================= Téléphone ================= */
@media (max-width: 1080px) {
  .barre-liens { display: none; }
  .legal-tete { grid-template-columns: minmax(0, 1fr); }
  .legal-tete .feuilles { display: none; }
  .legal-colonnes { grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 36px; }
  .sommaire { position: static; }
  .sommaire details { padding: 4px 16px 8px; background: var(--card); box-shadow: 0 0 0 1px var(--trait), inset 0 1px 0 var(--lisere), var(--ombre-1); }
  .sommaire summary { cursor: pointer; min-height: 52px; }
  .sommaire summary .ic { display: block; transition: transform 0.2s; color: var(--fg-3); }
  .sommaire details[open] summary .ic { transform: rotate(90deg); }
  .sommaire ol { max-height: none; }
}
@media (max-width: 640px) {
  .barre { gap: 8px; height: 64px; padding: 0 12px; }
  .marque span { display: none; }
  .barre-actions { gap: 4px; }
  .bouton-inviter { width: 44px; padding: 0; }
  .bouton-inviter span { display: none; }
  .barre .lien { padding: 0 10px; }
  .legal { padding: 28px 0 48px; }
  .legal h1 { font-size: 36px; }
  .chapo { font-size: 17px; }
  .legal-section h2 { font-size: 22px; }
  .legal-section p, .legal-section li { font-size: 16px; }
  .legal-cartes { grid-template-columns: minmax(0, 1fr); }
  .tableau tr { grid-template-columns: minmax(0, 1fr); padding: 14px 16px; font-size: 14px; }
  .pied { flex-direction: column; align-items: flex-start; }
  .refus { padding: 24px 0 48px; }
  .scene-refus, .scene-build, .scene-indispo { height: 240px; transform: scale(0.82); margin: -10px 0 8px; }
  .scene-maint { height: 300px; margin-bottom: 8px; }
  .dc-liste { transform: rotateY(-12deg) rotateX(6deg) scale(0.92); }
  .minute-petite { transform: translate(80px, 30px); }
  .scene-connexions .essais { transform: translateX(56px) scale(0.84); }
  .refus-actions { width: 100%; }
  .refus-actions .bouton { width: 100%; }
}
/* Fenêtre basse (quart d'écran, téléphone couché) : la scène se réduit pour que le message tienne dans le premier écran.
   zoom réduit aussi la place qu'elle prend : avec une échelle (transform), la liste des membres débordait sur l'état « Hors ligne ». */
@media (min-width: 641px) and (max-height: 640px) {
  .scene-refus, .scene-build, .scene-indispo, .scene-maint { zoom: 0.74; }
  .refus { padding-top: 24px; }
}
@media (min-width: 641px) and (max-height: 500px) {
  .scene-refus, .scene-build, .scene-indispo, .scene-maint { zoom: 0.5; }
  .refus { padding-top: 12px; }
}
/* 380 px et moins : la coque de l'interface absente, penchée, dépassait de 12 px à droite (défilement de côté) */
@media (max-width: 380px) { .scene-build { transform: scale(0.72); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.15s !important; }
}

/* Fondu entre pages (D-TRANSITIONS-4.5) : rien sous mouvement réduit */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}

/* Sélection du texte : couleurs inverses du thème ; sur une surface déjà inversée, la couleur de son texte */
::selection { background: var(--selection); color: var(--sur-selection); }
.evitement, .bouton-plein { --selection: var(--sur-bouton); --sur-selection: var(--bouton); }
/* Sélection dans les aperçus de Discord : en sombre, celle du sombre, beige ([U-SELECTION-DISCORD]) ; en clair, celle du clair (bloc [U-DISCORD-CLAIR-INTEGRE]) */
.dc-liste { --selection: #f4f4f1; --sur-selection: #121316; }

/* Changement de langue sur place : les blocs glissent vers leur place, le texte ne s'étire jamais */
.relangue::view-transition-group(*) { animation-duration: 0.28s; animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1); }
.relangue::view-transition-old(*), .relangue::view-transition-new(*) { animation-duration: 0.28s; animation-timing-function: ease; height: 100%; object-fit: none; object-position: left top; }
@media (prefers-reduced-motion: reduce) { .relangue::view-transition-group(*), .relangue::view-transition-old(*), .relangue::view-transition-new(*) { animation: none !important; } }
.relangue .onglets-pile .onglet-p:nth-child(n) { animation: none; }

/* ============================================================
   [U-DISCORD-CLAIR-INTEGRE] Aperçus de Discord en clair (15/11/2026, essai [U-ESSAI-DISCORD-CLAIR] retenu par l'utilisateur),
   aux couleurs du thème clair de Discord. Leur thème est porté par data-dc sur <html> ([U-RETOURS-REVUE-16-11]) : celui du site
   par défaut, ou celui choisi dans Mes couleurs. Rien ne change en sombre : tout ce bloc ne vaut que sous [data-dc="light"].
   ============================================================ */
[data-dc="light"] .dc-liste { background: #f2f3f5; color: #5c5e66; --selection: #0b0b0d; --sur-selection: #f4f4f5; }
[data-dc="light"] .dc-liste-tete { color: #060607; border-bottom-color: #dcdee2; }
[data-dc="light"] .dc-groupe { color: #5c5e66; }
[data-dc="light"] .dc-m { color: #313338; }
[data-dc="light"] .dc-m-st { box-shadow: 0 0 0 3px #f2f3f5; }
[data-dc="light"] #dc-groupe-hors-ligne .dc-m-st { box-shadow: 0 0 0 3px #f2f3f5, inset 0 0 0 3px #80848e, inset 0 0 0 10px #f2f3f5; }
[data-dc="light"] .dc-m-bot .dc-m-nom { color: #060607; }
[data-dc="light"] .reveil #dc-bot .dc-m-st { box-shadow: 0 0 0 3px #f2f3f5; }
[data-dc="light"] .en-ligne #dc-bot { background: rgba(151, 151, 159, 0.24); }
