/* Vraie maquette de l'accueil public 4.6.0, « Vue éclatée » (base : prototype j52) : la fenêtre Discord du serveur s'ouvre en vue éclatée.
   Thème sombre Graphite et thème clair Porcelaine (pistes2/project/console-clair.css) ; en clair, les pièces de Discord passent au thème clair de Discord, comme dans la console (bloc [U-DISCORD-CLAIR-INTEGRE] en fin de feuille).
   Jetons, police et rayons repris de pistes2/project/fusion.css (« Graphite arrondi », thème sombre graphite),
   avec la profondeur de Porcelaine (rendus penchés, ombres réelles) et une seule lumière de studio neutre.
   Rayons de fusion.css : 20 (grandes surfaces), 16 (cartes, panneaux), 14 (fenêtres, grands boutons), 12 (boutons, contrôles, plaques), 8 (petits) ; 4 et 6 dans les rendus de Discord. Aucune pilule.
   Base : prototype j/ (Opus). Sans script, la page reste une version fixe lisible (html sans .vivant). */

/* ---------- Police : Mona Sans, servie par le bot (/polices, mêmes fichiers et mêmes plages que la console) ---------- */
@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 (fusion.css, thème sombre graphite) ---------- */
:root, :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;
  --police: "Mona Sans", system-ui, sans-serif;
  --large: 125%;
  --t-ecran: clamp(44px, 6.1vw, 92px); --t-titre: clamp(32px, 3.9vw, 58px); --t-chapeau: clamp(16px, 1.32vw, 19px);
  --marge: clamp(20px, 5vw, 80px);
  /* Discord, mode sombre (le clair : bloc [U-DISCORD-CLAIR-INTEGRE] en fin de feuille) */
  --dc-rail: #1e1f22; --dc-cote: #2b2d31; --dc-fond: #313338; --dc-creux: #232428; --dc-champ: #383a40;
  --dc-actif: #404249; --dc-texte: #dbdee1; --dc-clair: #f2f3f5; --dc-doux: #949ba4; --dc-icone: #80848e;
  --dc-blurple: #5865f2; --dc-vert: #248046; --dc-rouge: #da373c; --dc-gris: #4e5058;
  /* Couleurs des rôles (fictives, à la manière de Discord) */
  --r-admin: #c084e8; --r-ens: #e3b341; --r-b1: #2fc4a4; --r-b2: #5aa9e6; --r-classe: #e67e5b; --r-neutre: #b5bac1;
  /* Géométrie de l'objet (ordinateur) */
  --l-rail: 72px; --l-col: 256px; --l-disc: 560px; --l-mem: 256px; --h-obj: 760px; --ep: 8px;
  /* Studio : survol, voile des plaques loin de l'histoire, nappe du sol, ombre de l'objet */
  --survol: rgba(255, 255, 255, 0.06); --second: rgba(255, 255, 255, 0.06); --second-survol: rgba(255, 255, 255, 0.1);
  --ombre-second: inset 0 0 0 1px var(--trait-fort), inset 0 1px 0 var(--lisere);
  --ombre-plein: inset 0 -1px 0 rgba(0, 0, 0, 0.14), 0 1px 2px rgba(0, 0, 0, 0.5), 0 8px 24px -8px rgba(0, 0, 0, 0.6);
  --plein-survol: #ffffff; --ombre-carte: 0 0 0 1px var(--trait-fort), inset 0 1px 0 var(--lisere), 0 16px 32px -16px rgba(0, 0, 0, 0.8);
  --ombre-menu: 0 0 0 1px var(--trait-fort), inset 0 1px 0 var(--lisere), 0 24px 48px -12px rgba(0, 0, 0, 0.8);
  --voile: #0b0b0d; --voile-force: 1; --sol: rgba(255, 255, 255, 0.25); --sol-2: rgba(255, 255, 255, 0.12); --sol-3: rgba(255, 255, 255, 0.04);
  --ombre-objet: #000; --ombre-objet-o: 0.8; --souligne: rgba(255, 255, 255, 0.28);
}
/* Porcelaine : fond porcelaine, cartes blanches levées par une ombre douce, encre presque noire pour l'action principale */
:root[data-theme="light"] {
  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;
  --survol: rgba(18, 19, 22, 0.05); --second: #ffffff; --second-survol: #f7f7f5;
  --ombre-second: 0 0 0 1px rgba(18, 19, 22, 0.1), 0 1px 2px rgba(18, 19, 22, 0.08), 0 4px 8px -4px rgba(18, 19, 22, 0.1);
  --ombre-plein: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 1px 2px rgba(18, 19, 22, 0.28), 0 8px 18px -8px rgba(18, 19, 22, 0.5);
  --plein-survol: #2a2b30; --ombre-carte: 0 0 0 1px rgba(18, 19, 22, 0.08), 0 1px 2px rgba(18, 19, 22, 0.06), 0 16px 40px -20px rgba(18, 19, 22, 0.2);
  --ombre-menu: 0 0 0 1px rgba(18, 19, 22, 0.08), 0 1px 2px rgba(18, 19, 22, 0.06), 0 24px 48px -16px rgba(18, 19, 22, 0.24);
  --voile: rgba(16, 17, 21, 0.42); --voile-force: 0.42; --sol: rgba(255, 255, 255, 0.95); --sol-2: rgba(255, 255, 255, 0.55); --sol-3: rgba(255, 255, 255, 0.16);
  --ombre-objet: #1d1e24; --ombre-objet-o: 0.42; --souligne: rgba(18, 19, 22, 0.3);
}

/* Fondu entre les pages du site (navigateurs compatibles), comme les autres pages servies (4.5.0), sauf mouvement réduit */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body { margin: 0; overflow-x: clip; background: var(--bg); color: var(--fg); font-family: var(--police); font-size: 15px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; }
/* Chiffres proportionnels dans le texte courant : les chiffres tabulaires de Mona Sans (zéro barré, « 1 » à pied) restent aux chiffres qui changent sur place */
h1, h2, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
strong { font-weight: 600; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.evitement { position: fixed; left: 16px; top: -80px; z-index: 30; padding: 12px 16px; border-radius: 12px; background: var(--bouton); color: var(--sur-bouton); font-weight: 600; }
.evitement:focus { top: 16px; }

/* ---------- Barre ---------- */
.barre { position: fixed; inset: 0 0 auto; z-index: 20; display: flex; align-items: center; gap: 24px; height: 72px; padding: 0 clamp(16px, 2.8vw, 40px);
  background: linear-gradient(color-mix(in srgb, var(--bg) 92%, transparent), color-mix(in srgb, var(--bg) 62%, transparent) 60%, transparent); }
.marque { display: flex; align-items: center; gap: 12px; min-height: 44px; font-size: 15px; font-weight: 600; letter-spacing: -0.005em; }
.marque-avatar { position: relative; flex: none; }
.marque img { display: block; width: 32px; height: 32px; border-radius: 50%; box-shadow: 0 0 0 1px var(--trait); }
/* État du bot, comme Discord le montre : un point sur l'avatar, vert en ligne, gris hors ligne */
.marque-point { position: absolute; right: -2px; bottom: -2px; width: 12px; height: 12px; border-radius: 50%; background: #23a559; box-shadow: 0 0 0 3px var(--bg); }
.bot-hors-ligne .marque-point { background: #80848e; }
.marque-texte { display: grid; line-height: 1.2; }
.marque-etat { font-size: 12px; font-weight: 500; color: var(--fg-3); }
/* Bandeau : les sept scènes posées sur une plaque Graphite ; la scène en cours est une plaque levée, avec sa tranche, comme les pièces de la vue éclatée */
.ancres { display: flex; align-items: center; gap: 2px; margin: 0 auto; padding: 4px; border-radius: 14px;
  background: color-mix(in srgb, var(--plan-1) 86%, transparent); box-shadow: var(--ombre-second); }
.ancres a { position: relative; display: flex; align-items: center; height: 36px; padding: 0 12px; border-radius: 10px; font-size: 13.5px; font-weight: 500; white-space: nowrap;
  color: var(--fg-2); transition: color 0.25s, background-color 0.25s, box-shadow 0.25s, transform 0.25s; }
.ancres a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; border-radius: 1px; background: var(--fg-2); transform: scaleX(var(--p, 0)); transform-origin: 0 50%;
  transition: transform 0.2s linear; }
.ancres a:hover { color: var(--fg); background: var(--survol); }
.ancres a[aria-current="true"], .menu-liens a[aria-current="true"] { color: var(--fg); background: var(--touche); box-shadow: var(--ombre-touche); transform: translateY(-1px); }
.barre-actions { display: flex; align-items: center; gap: 8px; }
.lien { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 12px; font-size: 14px; font-weight: 500; }
.lien:hover { background: var(--survol); }
.lien[hidden], .compte[hidden], .erreur[hidden], .bouton[hidden] { display: none; }
/* Production : la déconnexion est un formulaire (POST /api/auth/logout) qui ne change rien à la mise en page du bouton ; la photo Discord du
   compte recouvre le sigle de Discord, qui reste visible si l'image ne charge pas ; sans invitation (bot sans identifiant), aucun « Ajouter »
   ni phrase d'acceptation de ses conditions */
.compte-formulaire { display: contents; }
.compte-avatar { position: relative; overflow: hidden; }
.compte-avatar-image { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
[data-sans-ajout] .legal { display: none; }
/* Touche levée : l'ancre en cours du bandeau et du menu du téléphone */
:root, :root[data-theme="dark"] {
  --touche: #26262c; --ombre-touche: inset 0 1px 0 rgba(255, 255, 255, 0.09), 0 2px 0 #0d0d10, 0 4px 10px -3px rgba(0, 0, 0, 0.7);
}
:root[data-theme="light"] {
  --touche: #ffffff; --ombre-touche: 0 0 0 1px rgba(18, 19, 22, 0.07), 0 2px 0 #d3d3cc, 0 4px 10px -3px rgba(18, 19, 22, 0.22);
}
.reglages { display: grid; gap: 10px; }
.reglage { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.reglage-nom { font-size: 13px; font-weight: 500; color: var(--fg-3); }
/* Langue et thème ([U-ACCUEIL-BASCULES]) : une plaque cerclée, deux touches, sans menu. Chaque touche ne montre que le réglage actif
   (la langue affichée, l'icône du thème en cours) et passe à l'autre d'un clic ; au survol elle se lève. Au changement de thème,
   l'icône qui part tourne et s'efface pendant que la nouvelle arrive. Rayons 12 et 8, aucune pilule. */
.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; font-stretch: var(--large); letter-spacing: 0.02em; color: var(--fg-2); transition: color 0.2s, background-color 0.2s, transform 0.2s; }
.bascule:hover { color: var(--fg); background: var(--survol); transform: translateY(-1px); }
.bascule:active { transform: translateY(1px); }
.affichage-trait { flex: none; width: 1px; height: 16px; background: var(--trait-fort); }
.bouton-theme .ic { grid-area: 1 / 1; width: 16px; height: 16px; transition: opacity 0.25s, transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1); }
[data-theme="dark"] .bouton-theme .i-soleil, [data-theme="light"] .bouton-theme .i-lune { opacity: 0; transform: rotate(-90deg) scale(0.5); }
@media (prefers-reduced-motion: reduce) { .ancres a, .menu-liens a, .bascule, .bouton-theme .ic { 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, .liens-legaux a { position: relative; }
  .bascule::before { content: ""; position: absolute; inset: -4px -2px; }
  .liens-legaux a::before { content: ""; position: absolute; inset: -5px -4px; }
  /* Barre d'ancres (écran tactile de 1200 px et plus, 36 px de haut) : 44 px avec le remplissage de 4 px de la plaque ; 1 px de chaque côté, les liens ne se recouvrent pas (2 px entre eux) */
  .ancres a::before { content: ""; position: absolute; inset: -4px -1px; }
}
/* Bouton du haut de la page, connecté : l'icône du tableau de bord, comme l'entrée du menu du compte ([U-BOUTON-TABLEAU-ICONE]) */
.action-connexion .ic[hidden] { display: none; }
/* Compte connecté : photo et pseudo, menu vers la console */
.compte { position: relative; }
.compte-bouton { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 10px 0 6px; border: 0; border-radius: 12px; background: none; font-size: 14px; font-weight: 600; cursor: pointer; }
.compte-bouton:hover, .compte-bouton[aria-expanded="true"] { background: var(--survol); }
.compte-avatar { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: #5865f2; color: #ffffff; }
.compte-avatar .dci { width: 18px; height: 18px; }
.compte-pseudo { max-width: 17ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.compte-fleche { color: var(--fg-3); }
.menu-compte { position: absolute; top: calc(100% + 8px); right: 0; display: grid; gap: 2px; width: 280px; padding: 8px; border-radius: 16px; background: var(--plan-2); box-shadow: var(--ombre-menu); }
.menu-compte[hidden] { display: none; }
.compte-identite { display: grid; gap: 2px; padding: 10px 12px 12px; margin-bottom: 4px; border-bottom: 1px solid var(--trait); font-size: 13px; color: var(--fg-3); }
.compte-identite strong { font-size: 15px; color: var(--fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.compte-element { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border: 0; border-radius: 10px; background: none; font-size: 14px; font-weight: 500; text-align: left; cursor: pointer; }
.compte-element:hover { background: var(--survol); }
.compte-element .ic { color: var(--fg-3); }
.barre .bouton-menu { display: none; }
/* Menu du téléphone : une plaque levée ; les scènes en grand, la scène en cours levée ; langue et thème dans leur socle ; puis le compte et l'ajout */
.menu-tel { position: absolute; top: 64px; right: 12px; left: 12px; display: grid; gap: 8px; max-height: calc(100dvh - 76px); overflow-y: auto; padding: 8px 8px 12px;
  border-radius: 20px; background: var(--plan-2); box-shadow: var(--ombre-menu); }
.menu-tel[hidden] { display: none; }
.menu-liens { display: grid; gap: 2px; }
.menu-liens a { display: flex; align-items: center; min-height: 46px; padding: 0 14px; border-radius: 12px; font-size: 17px; font-weight: 600; font-stretch: var(--large); letter-spacing: -0.015em;
  color: var(--fg-2); transition: color 0.2s, background-color 0.2s, box-shadow 0.2s, transform 0.2s; }
.menu-liens a:hover { color: var(--fg); background: var(--survol); }
.menu-reglages { padding: 14px 6px 4px 14px; border-top: 1px solid var(--trait); }
.menu-compte-tel { display: grid; gap: 2px; padding-top: 6px; border-top: 1px solid var(--trait); }
.menu-compte-tel .compte-identite { display: flex; align-items: center; gap: 12px; border: 0; margin: 0; padding: 8px 14px; }
.menu-compte-tel .compte-identite > span:last-child { display: grid; min-width: 0; }
.menu-compte-tel a, .menu-compte-tel button { display: flex; align-items: center; min-height: 48px; padding: 0 14px; border: 0; border-radius: 12px; background: none; font-size: 16px; font-weight: 500; text-align: left; cursor: pointer; }
.menu-compte-tel a:hover, .menu-compte-tel button:hover { background: var(--survol); }
.menu-tel > .bouton { width: 100%; height: 50px; }
.menu-tel > .menu-connexion { margin-top: 6px; }

/* ---------- Boutons : rectangles arrondis, le principal en blanc ---------- */
.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; letter-spacing: -0.005em; white-space: nowrap; cursor: pointer; transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s; }
.bouton-plein { background: var(--bouton); color: var(--sur-bouton); box-shadow: var(--ombre-plein); }
.bouton-plein:hover { background: var(--plein-survol); transform: translateY(-1px); }
.bouton-second { background: var(--second); color: var(--fg); box-shadow: var(--ombre-second); }
.bouton-second:hover { background: var(--second-survol); }
.bouton-petit { height: 44px; padding: 0 16px; font-size: 14px; border-radius: 12px; }
.bouton:active { transform: translateY(1px); }

/* ---------- Textes ---------- */
.ecran { font-size: var(--t-ecran); line-height: 0.96; font-weight: 600; font-stretch: var(--large); letter-spacing: -0.032em; }
.ecran > span { display: block; }
.titre { font-size: var(--t-titre); line-height: 1.02; font-weight: 600; font-stretch: var(--large); letter-spacing: -0.03em; text-wrap: balance; }
.chapeau { font-size: var(--t-chapeau); line-height: 1.5; color: var(--fg-2); letter-spacing: -0.005em; text-wrap: pretty; }
.legal { font-size: 13px; line-height: 1.4; color: var(--fg-3); }
.legal a { color: var(--fg-2); text-decoration: underline; text-decoration-color: var(--souligne); text-underline-offset: 3px; }
/* Erreur de connexion (?erreur=<code>) : le texte fixe du code, sous les actions */
.erreur { display: flex; align-items: flex-start; gap: 10px; max-width: 460px; margin-top: 20px; padding: 12px 16px 12px 12px; border-radius: 14px; background: var(--plan-2);
  font-size: 14px; line-height: 1.45; color: var(--fg); box-shadow: var(--ombre-carte); }
.erreur .ic { margin-top: 1px; color: var(--negatif); }
.legal a:hover { color: var(--fg); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
/* Mots des titres : chacun monte dans son masque (posés par scene.js) */
.mot { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.16em 0.05em 0.2em 0.04em; margin: -0.16em -0.05em -0.2em -0.04em; }
.mot > span { display: inline-block; }

.chap-haut .chapeau { max-width: 430px; margin-top: 28px; }
.chap-haut .actions { margin-top: 36px; }
.chap-haut .legal { margin-top: 20px; }
.chap .titre + .chapeau { margin-top: 20px; max-width: 400px; }

/* Le compteur des catégories : un chiffre qui roule, pas une phrase */
.compteur { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.compteur-chiffre { display: block; height: 0.9em; overflow: hidden; font-size: clamp(104px, 14.4vw, 212px); line-height: 0.9; font-weight: 600; font-stretch: var(--large); letter-spacing: -0.055em;
  font-feature-settings: normal; text-align: right; }
/* L'interlettrage négatif fait sortir l'encre du dernier chiffre de sa boîte : la boîte qui coupe s'élargit à droite d'autant, sans déplacer le chiffre */
.compteur-chiffre { padding-right: 0.08em; margin-right: -0.08em; }
.compteur-rouleau { display: flex; flex-direction: column; align-items: flex-end; }
.compteur-rouleau > span { display: block; height: 0.9em; }
.compteur-mot { font-size: 15px; line-height: 1.35; color: var(--fg-2); text-align: right; }

/* Le sceau d'achèvement ([U-ACCUEIL-COCHES-SPECTACULAIRES]) : la pastille (une pilule, refusée) devient un anneau d'un segment par pièce
   de la scène, qui se ferme sur un disque vert en relief et sa coche, puis le mot, en grand comme les titres. Sans fond ni cadre.
   Les valeurs par défaut sont l'état final : sans script, la page le montre tel quel ; scene.js règle chaque image. */
.etat { display: flex; align-items: center; gap: 18px; margin-top: 32px; }
.sceau { position: relative; flex: none; width: 64px; height: 64px; }
.sceau-cercles { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; fill: none; stroke-width: 3; stroke-linecap: round; }
.sceau-piste { stroke: var(--trait-fort); }
.sceau-arc, .sceau-plein, .sceau-onde { stroke: var(--positif); }
.sceau-onde { stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; }
.sceau-disque { position: absolute; inset: 10px; display: grid; place-items: center; border-radius: 50%;
  background: radial-gradient(circle at 50% 28%, color-mix(in srgb, var(--positif) 74%, #fff), var(--positif) 72%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), inset 0 -2px 5px rgba(0, 0, 0, 0.2), 0 10px 24px -8px color-mix(in srgb, var(--positif) 75%, transparent); }
.sceau-disque svg { width: 24px; height: 24px; fill: none; stroke: var(--on-accent); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.sceau-coche { stroke-dasharray: 1; stroke-dashoffset: 0; }
.sceau-texte { display: grid; gap: 6px; min-width: 0; }
.sceau-mot { display: block; overflow: hidden; padding: 0.12em 0.05em 0.16em 0; margin: -0.12em -0.05em -0.16em 0; }
.sceau-mot > span { display: block; font-size: clamp(19px, 1.6vw, 24px); line-height: 1.15; font-weight: 600; font-stretch: var(--large); letter-spacing: -0.015em; }
/* Le point qui sépare les deux valeurs vit dans l'écart : quand la seconde passe à la ligne (768 px, nom d'école long), il sort à gauche et le
   masque le coupe, jamais de point en bout de ligne */
.sceau-detail { display: flex; flex-wrap: wrap; column-gap: 19px; overflow: hidden; font-size: 14px; line-height: 1.3; color: var(--fg-2); font-variant-numeric: tabular-nums; }
.sceau-detail > * + * { position: relative; }
.sceau-detail > * + *::before { content: ""; position: absolute; left: -11px; top: 50%; width: 3px; height: 3px; margin-top: -1.5px; border-radius: 50%; background: currentColor; opacity: 0.7; }

/* L'année : deux lignes, chacune un prisme à deux faces qui pivote dans son masque */
.annee { display: grid; justify-items: start; font-size: clamp(88px, min(11.6vw, 19vh), 200px); line-height: 0.86; font-weight: 600; font-stretch: var(--large); letter-spacing: -0.05em;
  white-space: nowrap; font-feature-settings: normal; }
.annee-ligne { display: grid; overflow: hidden; perspective: 900px; padding: 0.07em 0.1em 0.09em 0; margin: -0.07em 0 -0.09em; }
.annee-ligne > span { grid-area: 1 / 1; backface-visibility: hidden; transform-origin: 50% 50% -0.42em; }
.annee-a { display: none; }
/* Invitation à défiler : un trait, sans texte */
.defiler { display: none; }
.vivant .defiler { position: absolute; z-index: 2; left: var(--marge); bottom: 40px; display: block; width: 1.5px; height: 46px; overflow: hidden; border-radius: 1px; background: var(--trait-fort); opacity: 0; pointer-events: none; }
.vivant .defiler::after { content: ""; position: absolute; inset: 0; background: var(--fg); transform: translateY(-100%); animation: defiler 2.4s cubic-bezier(0.6, 0, 0.2, 1) infinite; }
@keyframes defiler { 0% { transform: translateY(-100%); } 55%, 100% { transform: translateY(100%); } }
@media (prefers-reduced-motion: reduce) { .vivant .defiler::after { animation: none; transform: none; opacity: 0.5; } }

/* ---------- Plateau, caméra, sol ---------- */
.film { position: relative; }
.plateau { position: relative; overflow: hidden; perspective: 2200px; }
.camera { position: absolute; left: 0; top: 0; transform-origin: 0 0; transform-style: preserve-3d; pointer-events: none; user-select: none; }
.objet { position: absolute; left: 0; top: 0; width: calc(var(--l-rail) + var(--l-col) + var(--l-disc) + var(--l-mem)); height: var(--h-obj); transform-style: preserve-3d;
  /* [U-APERCUS-DISCORD-NETS] Texte des plaques rendu au double (objet agrandi deux fois puis réduit d'autant : même composition, même
     mouvement) : variance du laplacien du film au repos +31 % à l'échelle 1, +37 % à 1,25, +23 % à 2 */
  zoom: 2; scale: 0.5 0.5 0.5; transform-origin: 0 0 0; }
/* [U-ARTEFACT-IPHONE] Pas de rendu au double à partir de 2 dppx (téléphones, tablettes, écrans Retina) : l'écran y est assez dense et le
   double y multiplie par 4 la mémoire graphique de chaque calque de l'objet, sol de 2800 x 2200 px compris (environ 890 Mo pour ce seul
   calque à 3 dppx s'il est alloué en entier). Sur l'iPhone de l'utilisateur (essai du 14/11), iOS fermait l'accueil au premier dessin
   de la scène ; sans le double, il s'affiche. Même composition, même mouvement. */
@media (min-resolution: 2dppx), (-webkit-min-device-pixel-ratio: 2) { .objet { zoom: 1; scale: none; } }
/* Le sol du studio : une seule nappe de lumière neutre, couchée sous l'objet, et l'ombre de l'objet dessus */
.sol { position: absolute; left: 0; top: 0; width: 3600px; height: 2800px; margin: -1400px 0 0 -1800px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, var(--sol), var(--sol-2) 36%, var(--sol-3) 66%, transparent 100%); }
/* [U-RETOURS-V26] Fluidité : le sol (un dégradé sans aucun bord net) n'a pas besoin du rendu au double. Boîte de moitié, agrandie deux fois
   par scale(2) autour de son centre (scene.js) : même place, même taille à l'écran, quatre fois moins de pixels à peindre et à composer. */
.sol { width: 1400px; height: 1100px; margin: -550px 0 0 -700px; }
/* [U-RETOURS-V26] Même chose pour l'ombre de l'objet (un dégradé) : boîte de moitié (avant : inset 0 -30px -50px 0), agrandie deux fois
   depuis son coin haut gauche par scene.js */
.ombre-sol { position: absolute; left: 0; top: 0; width: calc(50% + 15px); height: calc(50% + 25px); transform-origin: 0 0; border-radius: 50%; background: radial-gradient(closest-side, var(--ombre-objet) 55%, transparent); opacity: var(--ombre-objet-o); pointer-events: none; }

/* Les calques : des plaques épaisses (tranches sur les quatre côtés) */
.calque { position: absolute; top: 32px; bottom: 0; border-radius: 12px; transform-style: preserve-3d; background: var(--fond); }
.coque { --fond: #1e1f23; --ep: 14px; inset: 0; border-radius: 14px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.08); }
.rail { --fond: var(--dc-rail); left: 0; width: var(--l-rail); }
.colonne { --fond: var(--dc-cote); left: var(--l-rail); width: var(--l-col); }
.discussion { --fond: var(--dc-fond); left: calc(var(--l-rail) + var(--l-col)); width: var(--l-disc); }
.membres { --fond: var(--dc-cote); left: calc(var(--l-rail) + var(--l-col) + var(--l-disc)); width: var(--l-mem); }
.rail, .colonne, .discussion, .membres { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.09); }
.tr { position: absolute; display: block; backface-visibility: hidden; background-color: var(--fond); pointer-events: none; }
.tr-h { left: 12px; right: 12px; bottom: 100%; height: var(--ep); transform-origin: 50% 100%; transform: rotateX(90deg); background-image: linear-gradient(rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.12)); }
.tr-b { left: 12px; right: 12px; top: 100%; height: var(--ep); transform-origin: 50% 0; transform: rotateX(-90deg); background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.62)); }
.tr-g { top: 12px; bottom: 12px; right: 100%; width: var(--ep); transform-origin: 100% 50%; transform: rotateY(-90deg); background-image: linear-gradient(rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.13)); }
.tr-d { top: 12px; bottom: 12px; left: 100%; width: var(--ep); transform-origin: 0 50%; transform: rotateY(90deg); background-image: linear-gradient(rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.42)); }
.coque .tr { left: 14px; right: 14px; }
.coque .tr-g, .coque .tr-d { left: auto; right: auto; top: 14px; bottom: 14px; }
.coque .tr-g { right: 100%; } .coque .tr-d { left: 100%; }
/* Les logements de la coque : là où chaque plaque se range */
.loge { position: absolute; top: 32px; bottom: 0; border-radius: 12px; background: #17181b; box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.7), inset 0 0 0 1px rgba(0, 0, 0, 0.5), 0 1px 0 rgba(255, 255, 255, 0.05); }
.loge-rail { left: 0; width: var(--l-rail); }
.loge-colonne { left: var(--l-rail); width: var(--l-col); }
.loge-discussion { left: calc(var(--l-rail) + var(--l-col)); width: var(--l-disc); }
.loge-membres { left: calc(var(--l-rail) + var(--l-col) + var(--l-disc)); width: var(--l-mem); }
/* Reflet de la lumière et voile de profondeur : deux couches posées juste au-dessus de la plaque */
.reflet, .voile { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; transform: translateZ(0.6px); opacity: 0; }
.reflet { background: linear-gradient(150deg, rgba(255, 255, 255, 0.17) 0%, rgba(255, 255, 255, 0.06) 26%, rgba(255, 255, 255, 0) 52%, rgba(0, 0, 0, 0.1) 78%, rgba(0, 0, 0, 0.24) 100%); }
.voile { background: var(--voile); }
/* [U-RETOURS-V26] Fluidité : reflet, voile et éclat (aplats et dégradés) à simple définition : boîte de moitié, agrandie deux fois depuis
   son coin haut gauche, rayon de moitié ; même place, même taille, même rayon à l'écran */
.reflet, .voile { inset: auto; left: 0; top: 0; width: 50%; height: 50%; transform-origin: 0 0; border-radius: 6px; }
.reflet, .voile { transform: translateZ(0.6px) scale(2); }
/* R4 : le contenu détaché d'une plaque (nom du serveur, panneau du compte, icônes du rail, lignes des membres...) flotte au-dessus de son voile.
   Il prend le même assombrissement que sa plaque (--vo, posé par scene.js) : rien ne s'éclaire hors de ce que montre le chapitre. */
/* [U-RETOURS-V26] Le premier message se soulève d'un seul bloc (scene.js) : le filtre vise ce bloc, seulement soulevé (.souleve) ; posé sur
   sa carte, le voile de la carte l'assombrit déjà. */
.voilee :is(.dc-entete, .dc-moi, .dc-discussion-tete, .dc-saisie, .dc-debut, .c-bienvenue .dc-message.souleve),
.voilee > :is(.dc-serveur, .dc-separateur, .m-groupe, .m-ligne, .profil) {
  filter: brightness(calc((1 - min(1, var(--vo, 0)) * var(--voile-force)) * (1 - min(1, var(--vo, 0)) * 0.65))); }
/* Le second facteur : ce contenu est écrit en blanc (nom du serveur, pseudo, icônes), la liste en gris ; au même voile il restait 1,7 fois
   plus lumineux qu'elle et ressortait, surtout en clair où le voile est léger. Voilé, il ne dépasse plus la liste. */
/* Éclat : une bande de lumière qui glisse sur la plaque pendant que la caméra tourne (réglée par scene.js) */
.eclat { position: absolute; inset: auto; left: 0; top: 0; width: 50%; height: 50%; transform-origin: 0 0; border-radius: 6px; overflow: hidden; pointer-events: none; transform: translateZ(0.7px) scale(2); opacity: 0; } /* [U-RETOURS-V26] boîte de moitié, voir .reflet */
.eclat > i { position: absolute; top: -10%; bottom: -10%; left: -60%; width: 56%;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.035) 32%, rgba(255, 255, 255, 0.07) 50%, rgba(255, 255, 255, 0.035) 68%, rgba(255, 255, 255, 0) 100%); }
/* Ombres portées des calques sur la coque */
.ombre-c { position: absolute; border-radius: 12px; background: #000; pointer-events: none; opacity: 0; }
.ombre-net { box-shadow: 0 0 10px 3px #000; }
.ombre-flou { box-sizing: content-box; padding: 34px; margin: -34px; background: radial-gradient(closest-side, #000 62%, transparent); }
/* [U-RETOURS-V26] Fluidité : l'ombre douce (un dégradé) à simple définition, boîte de moitié (scene.js : moitié de la plaque, padding 17)
   agrandie deux fois depuis son coin haut gauche ; même place et même taille à l'écran */
.ombre-flou { padding: 17px; transform-origin: 0 0; border-radius: 6px; }
/* Traits de montage : de chaque coin d'une plaque à son logement */
.guide { position: absolute; left: 0; top: 0; width: 1.5px; height: 100px; transform-origin: 0 0; pointer-events: none; opacity: 0;
  background: linear-gradient(rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.5)); }

/* Coque : barre de titre de la fenêtre */
.coque-titre { display: flex; align-items: center; justify-content: center; gap: 8px; height: 32px; font-size: 13px; font-weight: 600; color: var(--dc-texte); }
.dc-mini-icone { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 6px; background: #3a3c43; color: #ffffff; font-size: 8px; font-weight: 700; }

/* ---------- Rendus de Discord ---------- */
.dc { font-family: var(--police); font-stretch: 100%; color: var(--dc-texte); font-size: 15px; line-height: 1.35; letter-spacing: 0; }
.rail { display: flex; flex-direction: column; align-items: center; gap: 8px; padding-top: 12px; }
.dc-serveur { position: relative; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--dc-fond); color: var(--dc-texte); font-size: 15px; font-weight: 600; }
.dc-serveur-actif { border-radius: 16px; background: #3a3c43; color: #ffffff; }
.dc-serveur-actif::before { content: ""; position: absolute; left: -12px; top: 4px; width: 4px; height: 40px; border-radius: 0 4px 4px 0; background: #f2f3f5; }
.dc-serveur-maison { border-radius: 16px; background: var(--dc-blurple); color: #ffffff; }
.dc-serveur-ajout { color: #23a559; }
.dc-separateur { width: 32px; height: 2px; border-radius: 1px; background: #35363c; }

.colonne { display: flex; flex-direction: column; }
.dc-entete { display: flex; align-items: center; justify-content: space-between; flex: none; height: 48px; padding: 0 16px; border-bottom: 1px solid rgba(0, 0, 0, 0.28); font-size: 15px; font-weight: 600; color: var(--dc-clair);
  border-radius: 12px 12px 0 0; background: var(--dc-cote); }
.liste { position: relative; flex: 1; min-height: 0; transform-style: preserve-3d; }
.defile { position: relative; padding: 8px 8px 0; transform-style: preserve-3d; }
.dalle { position: relative; margin-top: 6px; border-radius: 6px; transform-style: preserve-3d; }
.dc-cat { position: relative; display: flex; align-items: center; gap: 4px; height: 28px; padding: 0 8px 0 4px; border-radius: 6px; font-size: 13px; font-weight: 600; letter-spacing: 0; color: var(--dc-doux); white-space: nowrap;
  transform-style: preserve-3d; transition: background-color 0.35s, box-shadow 0.35s, color 0.35s; }
/* En vol, la catégorie est une tuile épaisse ; posée, elle redevient une ligne de la liste */
.dc-cat::after { content: ""; position: absolute; left: 5px; right: 5px; top: 100%; height: 5px; transform-origin: 50% 0; transform: rotateX(-90deg); background: #17181b; opacity: 0; transition: opacity 0.2s; }
/* R2 : en vol, la tuile est plus mince que son couloir (20 px sur 34) : avec son épaisseur et sa hauteur, elle ne mord jamais sur la voisine */
.en-vol > .dc-cat { background: #40424a; color: #eceef0; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  height: 20px; margin: 4px 0; } /* 20 + 2 x 4 = 28 : la place dans la liste ne change pas */
.en-vol > .dc-cat::after { opacity: 1; }
.dc-salon { display: flex; align-items: center; gap: 6px; height: 28px; margin-top: 2px; padding: 0 8px; border-radius: 4px; font-size: 15px; font-weight: 500; color: var(--dc-doux); white-space: nowrap; overflow: hidden;
  transition: background-color 0.3s, color 0.3s; }
.dc-salon > .dci { color: var(--dc-icone); }
.dc-salon > span:last-child { overflow: hidden; text-overflow: ellipsis; }
.dc-salon-actif { background: var(--dc-actif); color: var(--dc-clair); }
.dc-salon-nouveau { color: var(--dc-clair); font-weight: 600; }
.ligne-bot { margin-top: 0; }
.annees { position: relative; display: grid; transform-style: preserve-3d; }
.promos { position: relative; grid-area: 1 / 1; transform-style: preserve-3d; }
.dc-moi { display: flex; align-items: center; gap: 10px; flex: none; height: 52px; padding: 0 10px; background: #232428; border-radius: 0 0 12px 12px; }
.dc-moi .dc-avatar-lettre { width: 32px; height: 32px; font-size: 14px; }
.dc-moi-texte { display: grid; min-width: 0; line-height: 1.2; white-space: nowrap; }
.dc-moi-outils { display: flex; flex: none; gap: 10px; margin-left: auto; padding-left: 4px; color: #b5bac1; }
.dc-moi-outils .dci { width: 18px; height: 18px; }
/* Pastille « en ligne » des avatars de la liste et du panneau du compte */
.m-ligne .dc-avatar-lettre, .dc-moi .dc-avatar-lettre { position: relative; }
.m-ligne .dc-avatar-lettre::after, .dc-moi .dc-avatar-lettre::after { content: ""; position: absolute; right: -2px; bottom: -2px; width: 10px; height: 10px; border-radius: 50%; background: #23a559; box-shadow: 0 0 0 3px var(--dc-cote); }
.dc-moi .dc-avatar-lettre::after { box-shadow: 0 0 0 3px #232428; }
.dc-moi-nom { font-size: 14px; font-weight: 600; color: var(--dc-clair); }
.dc-moi-etat { font-size: 12px; color: var(--dc-doux); }

.discussion { display: flex; flex-direction: column; }
.dc-discussion-tete { display: flex; align-items: center; gap: 8px; flex: none; height: 48px; padding: 0 16px; border-bottom: 1px solid rgba(0, 0, 0, 0.24); font-size: 16px; font-weight: 600; color: var(--dc-clair);
  border-radius: 12px 12px 0 0; background: var(--dc-fond); }
.dc-discussion-tete .dci { color: var(--dc-icone); }
.dc-tete-nom { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dc-outils { display: flex; flex: none; align-items: center; gap: 14px; margin-left: auto; padding-left: 12px; }
.fil { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; flex: 1; min-height: 0; padding: 0 14px 10px; transform-style: preserve-3d; }
.dc-debut { padding: 18px 4px 0; }
.dc-debut-rond { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: #41434a; color: #ffffff; }
.dc-debut-titre { margin-top: 10px; font-size: 28px; line-height: 1.2; font-weight: 700; color: #ffffff; letter-spacing: -0.01em; }
.dc-debut-texte { margin-top: 4px; color: var(--dc-doux); }
.vivant .fil { justify-content: flex-start; }
.carte { position: relative; border-radius: 16px; background: linear-gradient(165deg, #3d3f46, #34363b 62%); transform-style: preserve-3d;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 2px 4px rgba(0, 0, 0, 0.3), 0 24px 48px -16px rgba(0, 0, 0, 0.75); }
.carte::before { content: ""; position: absolute; left: 16px; right: 16px; top: 100%; height: 6px; transform-origin: 50% 0; transform: rotateX(-90deg); background: #1b1c20; }
.carte::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--voile); opacity: var(--v, 0); pointer-events: none; }
.dc-carte-salon { display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px 0 16px; border-bottom: 1px solid rgba(0, 0, 0, 0.22); font-size: 14px; font-weight: 600; color: var(--dc-texte); white-space: nowrap; }
.dc-carte-salon .dci-salon { color: var(--dc-icone); }
.carte-fait { display: grid; place-items: center; margin-left: auto; color: var(--positif); opacity: 0; transform: scale(0.4); transition: opacity 0.25s, transform 0.4s cubic-bezier(0.2, 1.4, 0.4, 1); }
.carte-fait.oui { opacity: 1; transform: none; }
.dc-message { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; padding: 12px 16px 14px 14px; }
.dc-message-corps { min-width: 0; }
.dc-avatar { display: block; width: 40px; height: 40px; border-radius: 50%; }
.dc-avatar-lettre { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; font-size: 16px; font-weight: 600; color: #ffffff; }
.av-admin { background: #7b4fa0; } .av-ens { background: #9a7420; } .av-ens2 { background: #7d6a3a; } .av-el3 { background: #1f7f6b; } .av-el5 { background: #2f6ea3; } .av-eleve { background: #5b6f94; }
.dc-auteur { display: flex; align-items: baseline; gap: 6px; font-size: 16px; font-weight: 500; color: var(--dc-clair); line-height: 22px; white-space: nowrap; }
.dc-app { align-self: center; display: inline-flex; align-items: center; height: 17px; padding: 0 5px; border-radius: 4px; background: var(--dc-blurple); color: #ffffff; font-size: 11px; line-height: 1; font-weight: 600; }
.dc-heure { font-size: 12px; font-weight: 400; color: var(--dc-doux); }
.dc-texte { margin-top: 4px; font-size: 15px; color: var(--dc-texte); }
.dc-embed { display: grid; gap: 4px; margin-top: 6px; padding: 10px 14px 12px 12px; border-radius: 4px; background: var(--dc-cote); border-left: 4px solid var(--dc-blurple); font-size: 14px; line-height: 1.4; }
.dc-embed strong { color: var(--dc-clair); }
.dc-embed-vert { border-left-color: #2ecc71; }
.dc-embed-or { border-left-color: #ffa500; }
.dc-embed-titre { font-size: 15px; font-weight: 600; color: var(--dc-clair); }
.faces { display: grid; }
/* [U-RETOURS-V26] Plus de preserve-3d dans le premier message : il se soulève d'un seul bloc, aplati en un seul calque */
.face { grid-area: 1 / 1; }
.face-b { opacity: 0; }
.dc-boutons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.dc-btn { display: inline-flex; align-items: center; justify-content: center; height: 32px; padding: 0 14px; border-radius: 8px; background: var(--dc-gris); color: #ffffff;
  font-size: 14px; font-weight: 500; white-space: nowrap; transition: filter 0.18s, transform 0.18s, box-shadow 0.18s, background-color 0.25s; }
.dc-btn-vert { background: var(--dc-vert); }
.dc-btn-rouge { background: var(--dc-rouge); }
.dc-btn-bleu { background: var(--dc-blurple); }
.dc-btn.presse { filter: brightness(0.82); transform: translateY(1px) scale(0.96); box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3), 0 0 0 3px rgba(255, 255, 255, 0.18); }
[data-presse="b2"].presse { background: var(--dc-blurple); filter: none; }
.dc-menu { display: grid; max-width: 320px; margin-top: 8px; border-radius: 8px; background: var(--dc-cote); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3), 0 8px 16px rgba(0, 0, 0, 0.24); overflow: hidden; }
.dc-option { display: flex; align-items: center; justify-content: space-between; height: 34px; padding: 0 12px; font-size: 14px; color: var(--dc-texte); transition: background-color 0.2s; }
.dc-option .dci { color: #ffffff; opacity: 0; transition: opacity 0.2s; }
.dc-option.choisi { background: rgba(78, 80, 88, 0.6); color: #ffffff; }
.dc-option.choisi .dci { opacity: 1; }
.dc-roles { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.dc-role { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 8px; border-radius: 4px; background: var(--dc-creux); font-size: 13px; font-weight: 500; color: var(--dc-texte); }
.dc-rond { display: block; width: 12px; height: 12px; border-radius: 50%; }
.rond-etudiant { background: #99aab5; } .rond-b2 { background: var(--r-b2); } .rond-classe { background: var(--r-classe); }
.dc-saisie { display: flex; align-items: center; gap: 14px; flex: none; height: 44px; margin: 0 14px 14px; padding: 0 14px; border-radius: 8px; background: var(--dc-champ); color: #8d9099; font-size: 15px; white-space: nowrap; overflow: hidden; }

.membres { padding: 8px 8px 0 8px; }
.m-groupe { height: 40px; padding: 18px 8px 0; font-size: 12px; font-weight: 600; letter-spacing: 0.01em; color: var(--dc-doux); white-space: nowrap; }
.m-groupe span::before { content: "\2013\00a0"; }
.m-ligne { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 8px; border-radius: 6px; font-size: 15px; font-weight: 500; white-space: nowrap; }
.m-ligne .dc-avatar-lettre { flex: none; width: 32px; height: 32px; font-size: 13px; }
.m-nom { overflow: hidden; text-overflow: ellipsis; }
.m-admin { color: var(--r-admin); } .m-ens { color: var(--r-ens); } .m-b1 { color: var(--r-b1); } .m-b2 { color: var(--r-b2); }
/* La carte du membre : son nouveau nom et ses rôles, sous la liste */
.profil { position: relative; margin-top: 16px; border-radius: 12px; background: #111214;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 2px 4px rgba(0, 0, 0, 0.4), 0 28px 48px -16px rgba(0, 0, 0, 0.85); }
.profil-bandeau { display: block; height: 44px; border-radius: 12px 12px 0 0; background: var(--r-b2); }
.profil-avatar { position: absolute; left: 12px; top: 16px; width: 56px; height: 56px; font-size: 22px; box-shadow: 0 0 0 5px #111214; }
.profil-nom { margin-top: 36px; padding: 0 14px; font-size: 16px; line-height: 1.25; font-weight: 700; color: #ffffff; overflow-wrap: anywhere; } /* un nom long (anglais) passe à la ligne dans la carte */
.profil-pseudo { padding: 0 14px; font-size: 13px; color: var(--dc-doux); }
.profil-titre { margin-top: 12px; padding: 0 14px; font-size: 12px; font-weight: 600; color: var(--dc-clair); }
.profil .dc-roles { padding: 0 14px 14px; }

/* Sauvegarde : n'existe que dans la version animée */
.sauvegarde { display: none; }

/* ---------- Icônes : un seul jeu, trait de 1,6 (fusion.css) ---------- */
.ic { display: inline-block; flex: none; width: 18px; height: 18px; background: currentColor; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.i-ok { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5 10 17l9-10'/%3E%3C/svg%3E"); }
.i-soleil { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2M12 20v2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M2 12h2M20 12h2M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4'/%3E%3C/svg%3E"); }
.i-lune { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 14.5A8 8 0 0 1 9.5 4a8 8 0 1 0 10.5 10.5Z'/%3E%3C/svg%3E"); }
.i-alerte { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7.5v5M12 16.2v.3'/%3E%3C/svg%3E"); }
.i-tableau { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='9' rx='1.5'/%3E%3Crect x='14' y='3' width='7' height='5' rx='1.5'/%3E%3Crect x='14' y='12' width='7' height='9' rx='1.5'/%3E%3Crect x='3' y='16' width='7' height='5' rx='1.5'/%3E%3C/svg%3E"); }
.i-sortie { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4M16 17l5-5-5-5M21 12H9'/%3E%3C/svg%3E"); }
.dci { display: inline-block; flex: none; width: 20px; height: 20px; background: currentColor; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.dci-12 { width: 12px; height: 12px; } .dci-16 { width: 16px; height: 16px; } .dci-24 { width: 24px; height: 24px; }
.dci-salon { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4.5 9h15M3.5 15h15M10 3.5 8 20.5M16 3.5l-2 17'/%3E%3C/svg%3E"); }
.dci-bas { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
.dci-droite { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 6 6 6-6 6'/%3E%3C/svg%3E"); }
.dci-plus { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E"); }
.dci-plus-rond { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' fill-rule='evenodd' d='M12 2a10 10 0 1 1 0 20 10 10 0 0 1 0-20Zm-1 5v4H7v2h4v4h2v-4h4v-2h-4V7z'/%3E%3C/svg%3E"); color: #b5bac1; }
.dci-ok { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5 10 17l9-10'/%3E%3C/svg%3E"); }
.dci-fils { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5h16v11H10l-5 4v-4H4z'/%3E%3C/svg%3E"); }
.dci-cloche { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 16v-5a6 6 0 0 1 12 0v5l2 2H4zM10 21h4'/%3E%3C/svg%3E"); }
.dci-epingle { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 4h6l-1 6 3 3H7l3-3zM12 13v7'/%3E%3C/svg%3E"); }
.dci-membres { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3'/%3E%3Cpath d='M3 19c0-3 3-5 6-5s6 2 6 5M16 5.2a3 3 0 0 1 0 5.6M17.5 14.3c2 .7 3.5 2.3 3.5 4.7'/%3E%3C/svg%3E"); }
.dci-micro { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='3' width='6' height='11' rx='3'/%3E%3Cpath d='M6 11a6 6 0 0 0 12 0M12 17v4'/%3E%3C/svg%3E"); }
.dci-casque { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 14v-2a7 7 0 0 1 14 0v2M5 13h3v6H6.5A1.5 1.5 0 0 1 5 17.5zM19 13h-3v6h1.5A1.5 1.5 0 0 0 19 17.5z'/%3E%3C/svg%3E"); }
/* R7 : la roue crantée de Discord, pleine et percée, au lieu de rayons qui faisaient un soleil */
.dci-reglages { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' fill-rule='evenodd' d='M9.38 4.34L9.79 1.63A10.6 10.6 0 0 1 14.21 1.63L14.62 4.34A8.1 8.1 0 0 1 15.56 4.73L17.77 3.11A10.6 10.6 0 0 1 20.89 6.23L19.27 8.44A8.1 8.1 0 0 1 19.66 9.38L22.37 9.79A10.6 10.6 0 0 1 22.37 14.21L19.66 14.62A8.1 8.1 0 0 1 19.27 15.56L20.89 17.77A10.6 10.6 0 0 1 17.77 20.89L15.56 19.27A8.1 8.1 0 0 1 14.62 19.66L14.21 22.37A10.6 10.6 0 0 1 9.79 22.37L9.38 19.66A8.1 8.1 0 0 1 8.44 19.27L6.23 20.89A10.6 10.6 0 0 1 3.11 17.77L4.73 15.56A8.1 8.1 0 0 1 4.34 14.62L1.63 14.21A10.6 10.6 0 0 1 1.63 9.79L4.34 9.38A8.1 8.1 0 0 1 4.73 8.44L3.11 6.23A10.6 10.6 0 0 1 6.23 3.11L8.44 4.73A8.1 8.1 0 0 1 9.38 4.34ZM12 8.6a3.4 3.4 0 1 0 0 6.8a3.4 3.4 0 1 0 0-6.8Z'/%3E%3C/svg%3E"); }
.dci-discord { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M19.3 5.3A17 17 0 0 0 15 4l-.5 1.1a15.6 15.6 0 0 0-5 0L9 4a17 17 0 0 0-4.3 1.3C2 9.4 1.3 13.3 1.6 17.2A17.2 17.2 0 0 0 6.9 20l1.1-1.8-1.8-.9.4-.3a12.2 12.2 0 0 0 10.8 0l.4.3-1.8.9 1.1 1.8a17.1 17.1 0 0 0 5.3-2.8c.4-4.5-.7-8.4-3.1-11.9ZM8.5 14.8c-1 0-1.9-1-1.9-2.1s.8-2.1 1.9-2.1 1.9 1 1.9 2.1-.9 2.1-1.9 2.1Zm7 0c-1 0-1.9-1-1.9-2.1s.8-2.1 1.9-2.1 1.9 1 1.9 2.1-.8 2.1-1.9 2.1Z'/%3E%3C/svg%3E"); }

/* ---------- Écran final ---------- */
.chap-fin .chap-corps { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 24px; }
.chap-fin .titre { max-width: 13.5em; margin-top: 28px; }
.chap-fin .actions { margin-top: 32px; justify-content: center; }
.chap-fin .legal { margin-top: 18px; }
/* Pages légales ([U-PAGES-LEGALES-ACCUEIL], gardées en 4.6.0) : trois liens discrets sous la phrase de l'écran final */
.liens-legaux { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 18px; margin-top: 8px; font-size: 13px; line-height: 1.4; color: var(--fg-3); }
.liens-legaux a { padding: 8px 2px; text-decoration: underline; text-decoration-color: var(--souligne); text-underline-offset: 3px; }
.liens-legaux a:hover { color: var(--fg); }
.fin-avatar { display: block; width: 64px; height: 64px; border-radius: 16px; box-shadow: 0 0 0 1px var(--trait-fort), 0 24px 48px -16px rgba(0, 0, 0, 0.9); }
.repere { position: absolute; top: 0; }

/* ============================================================
   Version fixe (sans script) : l'objet composé au premier écran, puis le texte des scènes à la suite
   ============================================================ */
html:not(.vivant) .plateau { padding: max(100vh, 720px) 0 24px; }
html:not(.vivant) .camera { transform: translate(69vw, 57vh) scale(0.74) rotateX(40deg) rotateZ(-18deg) translate(-564px, -380px); }
html:not(.vivant) .sol { transform: translate3d(564px, 380px, -170px) scale(2); } /* [U-RETOURS-V26] voir .sol */
html:not(.vivant) .ombre-sol { transform: translate3d(50px, 70px, -160px) scale(2); } /* [U-RETOURS-V26] voir .ombre-sol */
html:not(.vivant) .rail { transform: translate3d(-40px, 0, 70px); }
html:not(.vivant) .colonne { transform: translate3d(-16px, 0, 150px); }
html:not(.vivant) .discussion { transform: translate3d(12px, 0, 230px); }
html:not(.vivant) .membres { transform: translate3d(40px, 0, 150px); }
html:not(.vivant) .reflet { opacity: 1; }
html:not(.vivant) .annees, html:not(.vivant) .salon-validation, html:not(.vivant) .m-groupe-ligne, html:not(.vivant) .profil { display: none; }
html:not(.vivant) .fil { overflow: hidden; }
html:not(.vivant) .c-bienvenue, html:not(.vivant) .c-roles, html:not(.vivant) .c-validation { display: none; }
html:not(.vivant) .chap-haut { position: absolute; top: max(124px, 17vh); left: var(--marge); width: min(620px, 44vw); }
html:not(.vivant) .chap:not(.chap-haut) { max-width: 640px; margin: 0 auto 120px; padding: 0 24px; }
html:not(.vivant) .chap .compteur { align-items: flex-start; margin-top: 24px; }
html:not(.vivant) .annee { margin-bottom: 20px; }
html:not(.vivant) .chap-fin { text-align: center; }

/* ============================================================
   Version animée : le plateau colle à l'écran, scene.js règle chaque image
   ============================================================ */
.vivant .plateau { position: sticky; top: 0; height: 100vh; height: 100svh; }
.vivant .chap { position: absolute; z-index: 2; pointer-events: none; }
.vivant .chap a, .vivant .chap button { pointer-events: auto; }
.vivant .chap.cache a, .vivant .chap.cache button { pointer-events: none; }
.vivant .chap-corps { opacity: 0; }
.vivant .chap-haut { left: var(--marge); top: max(120px, 17.5vh); width: min(660px, 47vw); }
.vivant .chap-socle { inset: 0; }
.vivant .chap-socle .socle-gauche { position: absolute; left: var(--marge); top: max(120px, 19vh); width: min(520px, 33vw); }
.vivant .chap-socle .compteur { position: absolute; right: var(--marge); bottom: max(56px, 11vh); }
.vivant .chap-arrivees { right: var(--marge); bottom: max(56px, 11vh); width: min(560px, 34vw); }
.vivant .chap-rentree { left: var(--marge); top: 0; bottom: 0; width: min(560px, 40vw); }
.vivant .chap-rentree .chap-corps { position: absolute; left: 0; right: 0; bottom: max(56px, 11vh); }
.vivant .chap-rentree .annee { position: absolute; left: -0.03em; top: max(104px, 15vh); opacity: 0; }
.vivant .chap-fin { left: 0; right: 0; top: max(112px, 15vh); }
.vivant .annee-a { display: block; }
.vivant .sauvegarde { position: absolute; display: block; overflow: hidden; border-radius: 12px; pointer-events: none; opacity: 0; background: #1a1b1f;
  box-shadow: 0 0 0 1px rgba(244, 244, 245, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 30px 60px -20px rgba(0, 0, 0, 0.9); }
.copie { padding: 8px 8px 0; margin-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.08); opacity: 0.6; filter: grayscale(1);
  -webkit-mask: linear-gradient(#000 55%, transparent); mask: linear-gradient(#000 55%, transparent); }
.copie .dalle { margin-top: 4px; }
/* La copie garde les couleurs de Discord du thème : sombres en sombre, claires en clair ([U-DISCORD-CLAIR-INTEGRE]) */
.sauvegarde-titre { display: flex; align-items: center; gap: 8px; padding: 14px 14px 0; font-size: 15px; font-weight: 600; color: #f4f4f5; }
.sauvegarde-coche { display: grid; place-items: center; color: #4cc38a; }
.sauvegarde-sous { padding: 2px 14px 0 40px; font-size: 13px; line-height: 1.35; color: #a6a6ae; }
.vivant .carte { position: absolute; left: 14px; right: 14px; bottom: 38px; transform-origin: 50% 0; }
.vivant .m-groupe, .vivant .m-ligne { position: absolute; left: 8px; right: 8px; top: 0; }
.vivant .profil { position: absolute; left: 8px; right: 8px; top: 0; margin: 0; opacity: 0; transform-origin: 50% 0; }
.vivant .salon-validation { position: absolute; left: 0; right: 0; top: 28px; }
/* Emplacement gravé : le nom de la catégorie en creux, un trait par salon à venir */
.loge-dalle { position: absolute; left: 8px; right: 8px; display: flex; flex-direction: column; gap: 2px; padding: 0 0 6px; border-radius: 6px; background: rgba(0, 0, 0, 0.13); opacity: 0; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05), inset 0 1px 3px rgba(0, 0, 0, 0.4); }
.loge-nom { display: flex; align-items: center; flex: none; height: 28px; padding: 0 10px; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden;
  color: #5b5e66; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.55); }
.loge-salon { display: block; flex: none; height: 6px; margin: 11px 0 11px 34px; border-radius: 3px; background: rgba(0, 0, 0, 0.2); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.045); }
.ombre-dalle { position: absolute; left: 14px; right: 14px; border-radius: 8px; background: #000; box-shadow: 0 0 10px 4px #000; opacity: 0; pointer-events: none; }
.ombre-pile { position: absolute; left: 6px; right: 6px; top: 0; height: 34px; border-radius: 12px; background: #000; filter: blur(14px); opacity: 0; pointer-events: none; }

/* ---------- Téléphone ---------- */
@media (max-width: 1199px) {
  .ancres { display: none; }
  .barre .bouton-menu { display: inline-flex; }
  .barre-actions { margin-left: auto; }
  .marque-etat { display: none; }
}
@media (min-width: 1200px) { .menu-tel { display: none; } }
/* Connecté, le bandeau garde sa place : la photo seule jusqu'à 1440 px, le pseudo est dans le menu du compte */
@media (max-width: 1439px) { .barre .compte-pseudo { display: none; } }
@media (max-width: 760px) {
  .barre-actions > .affichage, .barre-actions > .lien, .barre-actions > .compte, .barre-actions > .bouton-plein { display: none; }
}
@media (max-width: 640px) {
  :root { --l-disc: 360px; }
  .barre { height: 64px; background: linear-gradient(color-mix(in srgb, var(--bg) 97%, transparent), color-mix(in srgb, var(--bg) 86%, transparent) 62%, transparent); }
  .dc-message { column-gap: 12px; padding: 12px 12px 12px 12px; }
  .dc-boutons { gap: 6px; }
  .dc-btn { padding: 0 12px; }
  .chap-haut .chapeau { margin-top: 16px; font-size: 16px; }
  .chap-haut .actions { margin-top: 22px; gap: 10px; }
  .chap-haut .actions .bouton { height: 48px; padding: 0 18px; }
  .chap-haut .legal { margin-top: 14px; }
  .chap .titre + .chapeau { margin-top: 12px; }
  .compteur { flex-direction: row; align-items: flex-end; gap: 14px; margin-top: 14px; }
  .compteur-chiffre { font-size: 92px; }
  .compteur-mot { padding-bottom: 6px; text-align: left; }
  .etat { gap: 14px; margin-top: 16px; }
  .sceau { width: 48px; height: 48px; }
  .sceau-disque { inset: 7px; }
  .sceau-disque svg { width: 18px; height: 18px; }
  .sceau-texte { gap: 3px; }
  .sceau-mot > span { font-size: 17px; }
  .sceau-detail { font-size: 13px; }
  .vivant .chap-haut, .vivant .chap-arrivees { left: 20px; right: 20px; width: auto; }
  .vivant .chap-haut { top: 86px; }
  .vivant .chap-socle { inset: auto 20px 26px 20px; }
  .vivant .chap-socle .socle-gauche, .vivant .chap-socle .compteur { position: static; width: auto; }
  .vivant .chap-arrivees { top: 84px; bottom: auto; }
  .vivant .chap-rentree { left: 20px; right: 20px; top: 84px; bottom: auto; width: auto; }
  .vivant .chap-rentree .chap-corps { position: relative; bottom: auto; }
  .vivant .chap-rentree .annee { position: relative; z-index: 1; display: flex; left: -0.03em; top: auto; margin-bottom: 8px; font-size: min(64px, 16.5vw); line-height: 1; } /* 360 px : l'année tient dans la largeur */
  .vivant .chap-fin { top: 92px; }
  .vivant .defiler { display: none; }
  .chap-fin .titre { margin-top: 20px; }
  .chap-fin .actions { margin-top: 22px; }
  /* Fondu du fond derrière le texte : le texte garde sa zone calme même quand l'objet passe dessous */
  .vivant .chap-corps { position: relative; }
  .vivant .chap-corps::before { content: ""; position: absolute; z-index: -1; left: -20px; right: -20px; pointer-events: none; }
  .vivant .chap-haut .chap-corps::before, .vivant .chap-arrivees .chap-corps::before {
    top: -100px; bottom: -64px; background: linear-gradient(to bottom, var(--bg) calc(100% - 56px), transparent); }
  .vivant .chap-rentree .chap-corps::before { top: -180px; bottom: -64px; background: linear-gradient(to bottom, var(--bg) calc(100% - 56px), transparent); }
  .vivant .chap-socle .chap-corps::before { top: -72px; bottom: -40px; background: linear-gradient(to top, var(--bg) calc(100% - 64px), transparent); }
  .vivant .chap-fin .chap-corps::before { top: -100px; bottom: -56px; background: linear-gradient(to bottom, var(--bg) calc(100% - 48px), transparent); }
  html:not(.vivant) .plateau { padding-top: 0; }
  html:not(.vivant) .camera { transform: translate(56vw, 700px) scale(0.42) rotateX(40deg) rotateZ(-18deg) translate(-564px, -380px); }
  html:not(.vivant) .chap-haut { position: relative; top: auto; left: auto; width: auto; padding: 96px 20px 0; height: 940px; }
}
@media (min-width: 761px) { .menu-reglages, .menu-tel .lien-connexion, .menu-tel .menu-compte-tel, .menu-tel > .bouton { display: none; } .menu-tel { left: auto; width: 320px; } }

/* Porcelaine : la coque de la fenêtre devient une coque claire ; les plaques de Discord passent en clair (bloc [U-DISCORD-CLAIR-INTEGRE] en fin de feuille) */
[data-theme="light"] .coque { --fond: #e6e6e1; box-shadow: 0 0 0 1px rgba(18, 19, 22, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9); }
[data-theme="light"] .coque .tr-h { background-image: linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.4)); }
[data-theme="light"] .coque .tr-b { background-image: linear-gradient(rgba(18, 19, 22, 0.16), rgba(18, 19, 22, 0.24)); }
[data-theme="light"] .coque .tr-d { background-image: linear-gradient(rgba(18, 19, 22, 0.12), rgba(18, 19, 22, 0.12)); }
[data-theme="light"] .coque-titre { color: #3c3e44; }
[data-theme="light"] .dc-mini-icone { background: #cfcfc9; color: #121316; --selection: #121316; --sur-selection: #cfcfc9; }
[data-theme="light"] .loge { background: #d9d9d3; box-shadow: inset 0 2px 8px rgba(18, 19, 22, 0.18), inset 0 0 0 1px rgba(18, 19, 22, 0.08), 0 1px 0 rgba(255, 255, 255, 0.8); }
[data-theme="light"] .ombre-c { background: #2b2c33; }
/* Porcelaine : ombres des plaques sur la coque adoucies de moitié, pour que le clair reste net (pas d'aplats gris) */
[data-theme="light"] .ombre-net { background: rgba(43, 44, 51, 0.5); box-shadow: 0 0 10px 3px rgba(43, 44, 51, 0.5); }
[data-theme="light"] .ombre-flou { background: radial-gradient(closest-side, rgba(43, 44, 51, 0.45) 62%, transparent); }
[data-theme="light"] .guide { background: linear-gradient(rgba(18, 19, 22, 0.08), rgba(18, 19, 22, 0.32)); }
.menu-tel a[hidden], .menu-tel button[hidden] { display: none; }
html:not(.js) .affichage, html:not(.js) .menu-reglages { display: none; }

/* ============================================================
   Page étendue : les délégués, les tickets, les écoles
   ============================================================ */
.carte-x, .fil-ticket, .bulletins, .ecoles, .compteur-votes { display: none; }
.vivant .carte-x { display: block; position: absolute; left: 14px; right: 14px; bottom: 38px; transform-origin: 50% 0; opacity: 0; }
.dc-embed-rubrique { margin-top: 4px; font-weight: 600; color: var(--dc-clair); }
.dc-embed-gris { border-left-color: #80848e; }
.votants { margin-top: 6px; }
.votants-chiffre { font-feature-settings: "tnum" 1; display: inline-block; height: 1.4em; overflow: hidden; vertical-align: bottom; font-weight: 600; color: var(--dc-clair); }
.rouleau-x { display: flex; flex-direction: column; }
.rouleau-x > span { display: block; height: 1.4em; line-height: 1.4em; }
.compteur-votes .compteur-chiffre .rouleau-x > span { height: 0.9em; line-height: 0.9; }
/* Le vote est secret : pendant le vote, les noms de la liste s'effacent derrière des bandes neutres */
.membres .m-nom { transition: color 0.3s, background-color 0.3s; border-radius: 4px; }
.membres.anonyme .m-ligne .m-nom { color: transparent; background: #3a3c43; }
.vivant .bulletins { display: block; position: absolute; left: 0; top: 0; transform-style: preserve-3d; pointer-events: none; }
.bulletin { position: absolute; left: -21px; top: -15px; width: 42px; height: 30px; border-radius: 4px; opacity: 0; background: linear-gradient(160deg, #f4f4f5, #c9cad0);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25), 0 6px 14px -4px rgba(0, 0, 0, 0.6); }
.bulletin::after { content: ""; position: absolute; left: 8px; right: 8px; top: 14px; height: 2px; border-radius: 1px; background: rgba(0, 0, 0, 0.18); }
/* Le fil privé du ticket : le panneau de fil de Discord, à droite de la discussion */
.vivant .fil-ticket { display: flex; flex-direction: column; position: absolute; border-radius: 12px; background: var(--dc-fond); opacity: 0; transform-style: preserve-3d; --fond: var(--dc-fond);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 30px 60px -20px rgba(0, 0, 0, 0.85); }
.fil-tete { display: flex; align-items: center; gap: 8px; flex: none; height: 48px; padding: 0 14px; border-bottom: 1px solid rgba(0, 0, 0, 0.24); font-size: 14px; font-weight: 600; color: var(--dc-clair); white-space: nowrap; overflow: hidden; }
.fil-tete .dci { color: var(--dc-icone); }
.fil-corps { display: flex; flex-direction: column; gap: 10px; padding: 12px; }
.fil-msg { opacity: 0; }
.fil-msg .dc-embed { margin-top: 0; font-size: 13px; }
.fil-msg .dc-embed-titre { font-size: 14px; }
.fil-petit { font-size: 12px; color: var(--dc-doux); }
.fil-msg .dc-boutons { margin-top: 8px; }
.fil-reponse { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 10px; }
.fil-reponse .dc-avatar-lettre { width: 32px; height: 32px; font-size: 13px; }
.fil-auteur { font-size: 14px; font-weight: 600; color: #e67e5b; }
.fil-texte { font-size: 13px; line-height: 1.4; color: var(--dc-texte); }
.av-pers { background: #a0543a; }
/* Les écoles : une colonne de salons par serveur, toutes tenues par le même bot */
.vivant .ecoles { display: block; position: absolute; left: 0; top: 0; transform-style: preserve-3d; pointer-events: none; }
.mini { position: absolute; left: 0; top: 0; width: 232px; padding-bottom: 8px; border-radius: 12px; background: var(--dc-cote); transform-origin: 0 0; opacity: 0;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 30px 60px -20px rgba(0, 0, 0, 0.85); }
.mini-tete { display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 14px; border-bottom: 1px solid rgba(0, 0, 0, 0.28); font-size: 15px; font-weight: 600; color: var(--dc-clair); }
.mini-salon { display: flex; align-items: center; gap: 6px; height: 30px; margin: 8px 8px 2px; padding: 0 8px; border-radius: 4px; background: var(--dc-actif); color: var(--dc-clair); font-size: 14px; font-weight: 500; }
.mini-salon .dci { color: var(--dc-icone); }
.mini-cat { height: 28px; padding: 6px 16px 0; font-size: 13px; font-weight: 600; color: var(--dc-doux); }
.mini-moi { display: flex; align-items: center; gap: 10px; margin: 10px 8px 0; padding: 8px; border-radius: 8px; background: #232428; font-size: 13px; font-weight: 600; color: var(--dc-clair); }
.mini-moi .dc-avatar-lettre { width: 26px; height: 26px; font-size: 12px; }
.dc-serveur { transition: box-shadow 0.3s; }
.dc-serveur.emet { box-shadow: 0 0 0 3px rgba(242, 243, 245, 0.85); }
/* Textes des trois scènes */
.vivant .chap-delegues { inset: 0; }
.vivant .chap-delegues .chap-corps { position: absolute; right: var(--marge); bottom: max(56px, 11vh); width: min(560px, 36vw); }
.vivant .compteur-votes { display: flex; position: absolute; right: var(--marge); top: max(104px, 14vh); align-items: flex-end; opacity: 0; }
.vivant .chap-tickets { left: var(--marge); top: max(120px, 17vh); width: min(480px, 31vw); }
.vivant .chap-ecoles { left: var(--marge); bottom: max(56px, 11vh); width: min(440px, 30vw); }
@media (max-width: 640px) {
  .vivant .chap-delegues .chap-corps, .vivant .chap-tickets, .vivant .chap-ecoles { left: 20px; right: 20px; top: 84px; bottom: auto; width: auto; }
  .vivant .chap-delegues .chap-corps::before, .vivant .chap-tickets .chap-corps::before, .vivant .chap-ecoles .chap-corps::before {
    top: -100px; bottom: -64px; background: linear-gradient(to bottom, var(--bg) calc(100% - 56px), transparent); }
  .vivant .compteur-votes { display: none; }
  .mini { width: 216px; }
  /* Téléphone : chaque école montre ses deux premières promos, pour que les trois colonnes tiennent l'une sous l'autre */
  .mini-cat:nth-of-type(-n+4), .mini-cat:nth-of-type(n+7) { display: none; }
}
html:not(.vivant) .compteur-votes { display: flex; align-items: flex-start; margin-top: 24px; }

/* ---------- Fenêtre basse (ordinateur en quart d'écran, téléphone couché, 1280 x 600) ----------
   L'année de la rentrée ne tient plus au-dessus du texte : elle se pose sur une ligne, juste au-dessus du titre, comme au téléphone */
@media (min-width: 641px) and (max-height: 640px) {
  .vivant .chap-rentree { top: auto; bottom: max(56px, 11vh); }
  .vivant .chap-rentree .chap-corps { position: relative; bottom: auto; }
  .vivant .chap-rentree .annee { position: relative; z-index: 1; display: flex; top: auto; margin-bottom: 10px; font-size: clamp(40px, min(14vh, 7.4vw), 88px); line-height: 1; }
}
/* Tablette en portrait : la colonne du serveur prend le milieu de l'écran et passait sous le compteur ; il se pose en bas à gauche, sous le titre */
@media (min-width: 641px) and (max-aspect-ratio: 5/6) {
  .vivant .chap-socle .compteur { left: var(--marge); right: auto; align-items: flex-start; }
  .vivant .chap-socle .compteur-mot { text-align: left; }
}
/* Très basse (500 px et moins) : titres et marges à la mesure de la hauteur, compteurs sur une ligne, sans l'invitation à défiler */
@media (min-width: 641px) and (max-height: 500px) {
  :root { --t-ecran: clamp(30px, min(6.1vw, 11vh), 92px); --t-titre: clamp(22px, min(3.9vw, 7.6vh), 58px); --t-chapeau: 15px; }
  .vivant .defiler { display: none; }
  .vivant .chap-haut { top: 88px; width: min(660px, 52vw); }
  .vivant .chap-socle .socle-gauche { top: 88px; }
  .vivant .chap-tickets { top: 88px; width: min(480px, 36vw); }
  .vivant .chap-fin { top: 80px; }
  .vivant .chap-socle .compteur, .vivant .chap-arrivees, .vivant .chap-rentree, .vivant .chap-delegues .chap-corps, .vivant .chap-ecoles { bottom: 24px; }
  .vivant .chap-rentree { width: min(560px, 46vw); }
  .chap-haut .chapeau { margin-top: 14px; }
  .chap-haut .actions { margin-top: 18px; gap: 10px; }
  .chap-haut .actions .bouton, .chap-fin .actions .bouton { height: 44px; padding: 0 18px; border-radius: 12px; }
  .chap-haut .legal { margin-top: 10px; }
  .erreur { margin-top: 12px; }
  /* Avec une erreur de connexion, la phrase d'accroche laisse sa place : titre, actions, erreur et ligne légale tiennent à l'écran */
  .chap-haut:has(.erreur:not([hidden])) .chapeau { display: none; }
  .chap .titre + .chapeau { margin-top: 12px; }
  .etat { gap: 14px; margin-top: 14px; }
  .sceau { width: 44px; height: 44px; }
  .sceau-disque { inset: 6px; }
  .sceau-disque svg { width: 18px; height: 18px; }
  .sceau-texte { gap: 2px; }
  .sceau-mot > span { font-size: 16px; }
  .sceau-detail { font-size: 13px; }
  .compteur { flex-direction: row; align-items: flex-end; gap: 12px; }
  .compteur-chiffre { font-size: clamp(64px, 24vh, 212px); }
  .compteur-mot { padding-bottom: 4px; text-align: left; }
  .vivant .compteur-votes { top: 84px; }
  .fin-avatar { width: 48px; height: 48px; border-radius: 14px; }
  .chap-fin .titre { margin-top: 14px; }
  .chap-fin .actions { margin-top: 16px; }
  .chap-fin .legal { margin-top: 10px; }
}
.fil-tete > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Changement de langue (le même bloc que dans la console) ----------
   Fondu enchaîné de 280 ms ; chaque bloc de texte nommé par scene.js glisse et change de taille vers sa nouvelle place.
   Les images d'un bloc de texte (classe texte) gardent leur taille réelle, calées en haut à gauche : le texte ne s'étire jamais ;
   la plaque du bandeau, elle, s'étire jusqu'à sa nouvelle largeur. */
html.relangue::view-transition-group(*) { animation-duration: 0.28s; animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1); }
html.relangue::view-transition-old(*), html.relangue::view-transition-new(*) { animation-duration: 0.28s; animation-timing-function: ease; }
::view-transition-old(*.texte), ::view-transition-new(*.texte) { height: 100%; object-fit: none; object-position: left top; }
@media (prefers-reduced-motion: reduce) { html.relangue::view-transition-group(*), html.relangue::view-transition-old(*), html.relangue::view-transition-new(*) { animation: none !important; } }

/* 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, .sauvegarde { --selection: #f4f4f1; --sur-selection: #121316; }

/* ============================================================
   [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-rail: #e3e5e8; --dc-cote: #f2f3f5; --dc-fond: #ffffff; --dc-creux: #ebedef; --dc-champ: #ebedef;
  --dc-actif: #dcdde0; --dc-texte: #313338; --dc-clair: #060607; --dc-doux: #5c5e66; --dc-icone: #6d6f78; --dc-gris: #6d6f78;
  --r-neutre: #4e5058;
}
/* Rail des serveurs */
[data-dc="light"] .dc-serveur-actif { background: #ffffff; color: #060607; }
[data-dc="light"] .dc-serveur-actif::before { background: #060607; }
[data-dc="light"] .dc-separateur { background: #c4c9ce; }
[data-dc="light"] .dc-serveur.emet { box-shadow: 0 0 0 3px rgba(6, 6, 7, 0.55); }
/* Plaques : liseré et tranches comme la coque claire */
[data-dc="light"] :is(.rail, .colonne, .discussion, .membres) { box-shadow: 0 0 0 1px rgba(18, 19, 22, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9); }
[data-dc="light"] .tr-h { background-image: linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.4)); }
[data-dc="light"] .tr-b { background-image: linear-gradient(rgba(18, 19, 22, 0.16), rgba(18, 19, 22, 0.24)); }
[data-dc="light"] .tr-d { background-image: linear-gradient(rgba(18, 19, 22, 0.12), rgba(18, 19, 22, 0.12)); }
/* Séparations sous les en-têtes */
[data-dc="light"] :is(.dc-entete, .dc-discussion-tete, .dc-carte-salon, .fil-tete, .mini-tete) { border-bottom-color: rgba(6, 6, 7, 0.1); }
/* Catégorie en vol : une tuile claire, son épaisseur d'un gris plus soutenu */
[data-dc="light"] .dc-cat::after { background: #c9ccd1; }
[data-dc="light"] .en-vol > .dc-cat { background: #ffffff; color: #060607; box-shadow: 0 0 0 1px rgba(6, 6, 7, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 1px 2px rgba(6, 6, 7, 0.08); }
/* Panneau du compte */
[data-dc="light"] :is(.dc-moi, .mini-moi) { background: var(--dc-creux); }
[data-dc="light"] .dc-moi-outils { color: #4e5058; }
[data-dc="light"] .dc-moi .dc-avatar-lettre::after { box-shadow: 0 0 0 3px var(--dc-creux); }
/* Début du salon */
[data-dc="light"] .dc-debut-rond { background: #6d6f78; }
[data-dc="light"] .dc-debut-titre { color: #060607; }
/* Cartes de message sorties de la discussion */
[data-dc="light"] .carte { background: linear-gradient(165deg, #ffffff, #f6f7f8 62%);
  box-shadow: 0 0 0 1px rgba(6, 6, 7, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 2px 4px rgba(18, 19, 22, 0.08), 0 24px 48px -16px rgba(18, 19, 22, 0.3); }
[data-dc="light"] .carte::before { background: #d5d7dc; }
/* Boutons, menu de sélection, saisie */
[data-dc="light"] .dc-btn.presse { box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3), 0 0 0 3px rgba(6, 6, 7, 0.16); }
[data-dc="light"] .dc-menu { box-shadow: 0 0 0 1px rgba(6, 6, 7, 0.08), 0 8px 16px rgba(6, 6, 7, 0.12); }
[data-dc="light"] .dc-option .dci { color: #060607; }
[data-dc="light"] .dc-option.choisi { background: var(--dc-actif); color: #060607; }
[data-dc="light"] .dc-saisie { color: #6d6f78; }
/* Carte du membre */
[data-dc="light"] .profil { background: #ffffff; box-shadow: 0 0 0 1px rgba(6, 6, 7, 0.08), 0 2px 4px rgba(18, 19, 22, 0.08), 0 28px 48px -16px rgba(18, 19, 22, 0.3); }
[data-dc="light"] .profil-avatar { box-shadow: 0 0 0 5px #ffffff; }
[data-dc="light"] .profil-nom { color: #060607; }
/* La sauvegarde et sa copie suivent le thème ; en clair, la carte est plus sombre que la colonne des salons (#f2f3f5), du même écart
   de clarté qu'en sombre (#1a1b1f sous #2b2d31, environ 8 points de L*) : elle ne prend pas l'attention de ce que montre la scène
   ([U-DISCORD-CLAIR-INTEGRE], point 3). Dans sa copie, la ligne du salon du bot garde sa surbrillance sur ce fond plus sombre. */
[data-dc="light"] :is(.vivant .sauvegarde) { background: #dadce0; box-shadow: 0 0 0 1px rgba(18, 19, 22, 0.1), 0 2px 4px rgba(18, 19, 22, 0.08), 0 30px 60px -20px rgba(18, 19, 22, 0.35); }
[data-dc="light"] .copie { border-top-color: rgba(18, 19, 22, 0.08); }
[data-dc="light"] .copie .dc-salon-actif { background: #c4c7cc; }
[data-dc="light"] .sauvegarde-titre { color: #121316; }
[data-dc="light"] .sauvegarde-coche { color: #18794e; }
[data-dc="light"] .sauvegarde-sous { color: #585a61; }
/* Emplacement gravé de la colonne, ombres des tuiles */
[data-dc="light"] .loge-dalle { background: rgba(6, 6, 7, 0.05); box-shadow: inset 0 0 0 1px rgba(6, 6, 7, 0.06), inset 0 1px 3px rgba(6, 6, 7, 0.14); }
[data-dc="light"] .loge-nom { color: #a2a5ab; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.9); }
[data-dc="light"] .loge-salon { background: rgba(6, 6, 7, 0.1); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8); }
[data-dc="light"] .ombre-dalle { background: rgba(43, 44, 51, 0.5); box-shadow: 0 0 10px 4px rgba(43, 44, 51, 0.5); }
[data-dc="light"] .ombre-pile { background: rgba(43, 44, 51, 0.6); }
/* Fil du ticket, colonnes des écoles */
[data-dc="light"] :is(.vivant .fil-ticket, .mini) { box-shadow: 0 0 0 1px rgba(6, 6, 7, 0.08), 0 2px 4px rgba(18, 19, 22, 0.08), 0 30px 60px -20px rgba(18, 19, 22, 0.35); }
/* Contenu détaché d'une plaque voilée : en clair, il est écrit en sombre sur fond clair comme sa plaque ; le second facteur du sombre
   (texte blanc, plus lumineux que la liste) l'assombrissait jusqu'à rendre l'en-tête illisible : seul reste le voile commun */
[data-dc="light"] .voilee :is(.dc-entete, .dc-moi, .dc-discussion-tete, .dc-saisie, .dc-debut, .c-bienvenue .dc-message.souleve), /* [U-RETOURS-V26] le message d'un bloc */
[data-dc="light"] .voilee > :is(.dc-serveur, .dc-separateur, .m-groupe, .m-ligne, .profil) {
  filter: brightness(calc(1 - min(1, var(--vo, 0)) * var(--voile-force))); }
/* Vote secret : les bandes neutres des noms */
[data-dc="light"] .membres.anonyme .m-ligne .m-nom { background: #d4d7dc; }
/* Sélection du texte dans Discord : celle du thème clair */
[data-dc="light"] :is(.dc, .sauvegarde) { --selection: #0b0b0d; --sur-selection: #f4f4f5; }
