/* ======================================================================
   XINERGI Storming dans le design system de XINERGI (lot 1 de la refonte, 7 octobre 2026)
   Chargée après styles.css sur toutes les pages. Les jetons de XINERGI d'abord, puis l'enveloppe
   de l'animateur (barre latérale et en-tête de la Finance), les composants, la console, l'écran
   de la salle et le téléphone des participants. La couleur de Storming est celle de sa tuile du
   Bureau (violet vers rose) : sobre chez l'animateur, franche dans la salle.
   ====================================================================== */

/* Plus Jakarta Sans (coquille v1.2.0), servie par nous : un seul fichier latin variable (200 à 800), préchargé par les pages ;
   le latin étendu ne se télécharge que si la page contient un de ses caractères. Le complément pour ɖ ɔ ɛ (Noto Sans) est
   déclaré par coquille/jetons.css. Licence : coquille/polices/OFL-PlusJakartaSans.txt. */
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 200 800; font-display: swap; src: url('/coquille/polices/plus-jakarta-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; }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 200 800; font-display: swap; src: url('/coquille/polices/plus-jakarta-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  /* Les couleurs de base de la coquille (--app-bg, --card, --foreground, --primary, --border, --input, les états,
     --destructive et --ring) viennent de coquille/jetons.css depuis la v1.5.0, en clair et en sombre : on ne les
     redéclare plus ici. */
  --radius: 0.625rem;
  --radius-sm: 0.375rem; --radius-md: 0.5rem; --radius-lg: 0.625rem; --radius-xl: 0.875rem; --radius-2xl: 1rem; --radius-full: 62.4375rem;

  /* L'échelle de texte (SPEC 1.2). */
  /* Les planchers (--texte-min, --texte-min-lu) viennent de coquille/jetons.css (v1.3.5) : 11 px, 12 et 13 px sur un écran à 100 %. */
  --texte-12: max(var(--texte-min,11px), 0.75rem); --texte-14: max(var(--texte-min-lu,11px), 0.875rem); --texte-16: max(var(--texte-min-lu,11px), 1rem); --texte-18: 1.125rem; --texte-20: 1.25rem; --texte-24: 1.5rem; --texte-30: 1.875rem;

  /* Les noms de Storming : des alias des noms canoniques (SPEC 2.6). */
  --violet: #7C3AED; /* couleur-libre : palette de Storming ; la valeur sombre est dans le bloc .dark de ce fichier */
  --violet-fonce: #6d28d9; /* couleur-libre : palette de Storming ; la valeur sombre est dans le bloc .dark de ce fichier */
  --rose: #E8408F; /* couleur-libre : palette de Storming ; la valeur sombre est dans le bloc .dark de ce fichier */
  --sombre: #0a0a0a; /* couleur-libre : palette de Storming ; la valeur sombre est dans le bloc .dark de ce fichier */
  --clair: var(--app-bg);
  --blanc: var(--card);
  --texte: var(--foreground);
  --texte-doux: var(--muted-foreground);
  --bordure: var(--border);
  --vert: var(--success);
  --rouge: var(--danger);
  --rayon: var(--radius-xl);
  --ombre: none;

  --primaire: var(--primary);
  --primaire-survol: #262626; /* couleur-libre : palette de Storming ; la valeur sombre est dans le bloc .dark de ce fichier */
  --discret: var(--muted);
  --texte-moyen: #404040; /* couleur-libre : palette de Storming ; la valeur sombre est dans le bloc .dark de ce fichier */
  --succes: var(--success); --succes-fond: var(--success-subtle); --succes-texte: var(--success-text);
  --alerte: var(--warning); --alerte-fond: var(--warning-subtle); --alerte-texte: var(--warning-text);
  --danger-fond: var(--danger-subtle); --danger-texte: var(--danger-text);
  --info-fond: var(--info-subtle); --info-texte: var(--info-text);

  /* Storming : sa tuile du Bureau, et une palette pour distinguer les réponses (teintes des modules). */
  --storming: #7C3AED; /* couleur-libre : palette de Storming ; la valeur sombre est dans le bloc .dark de ce fichier */
  --storming-fond: #f5f3ff; /* couleur-libre : palette de Storming ; la valeur sombre est dans le bloc .dark de ce fichier */
  --storming-texte: #6d28d9; /* couleur-libre : palette de Storming ; la valeur sombre est dans le bloc .dark de ce fichier */
  --degrade-storming: linear-gradient(135deg, #7C3AED 0%, #E8408F 100%); /* couleur-libre : palette de Storming ; la valeur sombre est dans le bloc .dark de ce fichier */
  --rep-1: #7C3AED; --rep-2: #0D9488; --rep-3: #D97706; --rep-4: #2563EB; --rep-5: #E8408F; --rep-6: #0284C7; /* couleur-libre : palette de Storming ; la valeur sombre est dans le bloc .dark de ce fichier */

  /* Le mode sombre (lot 7.8, coquille 1.6.0) : les teintes propres à Storming qui n'ont pas d'équivalent dans jetons.css. Les valeurs ci-dessous sont
     les valeurs claires d'avant, inchangées ; les valeurs sombres sont dans le bloc `.dark` plus bas. Le texte violet se sépare du fond violet : le fond
     (--violet, --storming) garde son blanc dessus, le texte et les liens (--violet-lien, --violet-texte) s'éclaircissent en sombre. */
  --violet-lien: #7C3AED; /* couleur-libre : jeton local de Storming, valeur sombre dans le bloc .dark */
  --violet-texte: #6d28d9; /* couleur-libre : jeton local de Storming, valeur sombre dans le bloc .dark */
  --s-violet-0: #faf7ff; --s-violet-1: #f3ecff; --s-violet-2: #ede4ff; /* couleur-libre : jeton local de Storming, valeur sombre dans le bloc .dark */
  --s-rose-fond: #fde7f1; --s-rose-texte: #9d174d; /* couleur-libre : jeton local de Storming, valeur sombre dans le bloc .dark */
  --s-gris-0: #fafafa; --s-gris-1: #f0f0f0; --s-trait: #f0f0f0; --s-bord-champ: #d4d4d4; --s-icone-douce: #a3a3a3; /* couleur-libre : jeton local de Storming, valeur sombre dans le bloc .dark */
  --s-sur-plein: #ffffff; /* couleur-libre : jeton local de Storming, valeur sombre dans le bloc .dark */
  --s-encre: #1c1030; /* couleur-libre : jeton local de Storming, valeur sombre dans le bloc .dark */

  /* Plus Jakarta Sans, servie par le serveur (une seule police variable), puis le complément des lettres ɖ ɔ ɛ. Les chiffres
     alignés viennent de font-variant-numeric: tabular-nums (Roboto est retirée, décision D11). */
  --police: 'Plus Jakarta Sans', 'Xinergi Complément', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --police-chiffres: var(--police);
  --largeur-barre: 17.5rem;
  --hauteur-entete: 3.5rem;
  --hauteur-barre-bas: 3.5rem;
  --marge-page: 1.5rem;
}
@media (max-width: 767.98px) { :root { --marge-page: 1rem; } }

/* L'apparence sombre : la classe `dark` est posée sur <html> par le script d'amorce de la coquille (choix commun Clair, Sombre, Système). L'écran de la salle
   (ecran.html) n'a pas ce script et garde son thème propre. */
.dark {
  --violet-lien: #b69bff; /* couleur-libre : jeton local de Storming, valeur sombre dans le bloc .dark */
  --violet-texte: #c4b5fd; /* couleur-libre : jeton local de Storming, valeur sombre dans le bloc .dark */
  --s-violet-0: #1c1830; --s-violet-1: #2a2145; --s-violet-2: #352a58; /* couleur-libre : jeton local de Storming, valeur sombre dans le bloc .dark */
  --s-rose-fond: #3a1a2c; --s-rose-texte: #f9a8d4; /* couleur-libre : jeton local de Storming, valeur sombre dans le bloc .dark */
  --s-gris-0: var(--muted); --s-gris-1: var(--muted); --s-trait: var(--border); --s-bord-champ: var(--input); --s-icone-douce: #8b8b94; /* couleur-libre : jeton local de Storming, valeur sombre dans le bloc .dark */
  --texte-moyen: #d4d4d8; --primaire-survol: #e4e4e7; /* couleur-libre : jeton local de Storming, valeur sombre dans le bloc .dark */
  --storming-fond: var(--avatar-2); --storming-texte: var(--avatar-2-fg);
  --rep-1: #a78bfa; --rep-2: #2dd4bf; --rep-3: #fbbf24; --rep-4: #60a5fa; --rep-5: #f472b6; --rep-6: #38bdf8; /* couleur-libre : jeton local de Storming, valeur sombre dans le bloc .dark */
}

html { scroll-padding-top: var(--hauteur-entete); }
body { font-family: var(--police); font-size: max(var(--texte-min-lu,11px), 0.875rem); line-height: 1.43; background: var(--app-bg); color: var(--foreground); -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font-family: inherit; }
a { color: var(--texte); }
small { font-size: max(var(--texte-min,11px), 0.8333em); } /* le « smaller » du navigateur, sans passer sous 11 px quand le texte courant est à 11,2 px */
.mono, .num, #code, .code-seance b, .minuteur, .minuteur-ecran { font-family: var(--police); font-variant-numeric: tabular-nums; font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }

/* ---------- La marque : le logo X, « Xinergi » et le nom du module en dégradé (jetons.css, classes marque-*) ---------- */
.ico { flex: none; fill: currentColor; vertical-align: -0.125em; }
.ecran .marque { font-size: 1.125rem; --marque-h: 2rem; } /* la salle lit de loin : lettrage de 32 px (jetons.css le fait à 15 px ailleurs) */
.ecran .marque .marque-lettrage { color: var(--e-texte); }
.board-tete .marque { --marque-h: 1.75rem; }
.participant .marque .marque-logo { height: 1.75rem; }

/* ---------- Les composants communs ---------- */
.carte { border: 1px solid var(--border); box-shadow: none; border-radius: var(--radius-xl); }
.bouton {
  height: var(--controle-h); padding: 0 0.75rem; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--card);
  color: var(--foreground); font-size: var(--texte-14); font-weight: 600; justify-content: center; white-space: nowrap; line-height: 1;
}
.bouton:hover { border-color: var(--bordure); background: var(--discret); }
.bouton.accent { background: var(--primaire); border-color: var(--primaire); color: var(--primary-foreground); }
.bouton.accent:hover { background: var(--primaire-survol); }
.bouton.rose { background: var(--blanc); border-color: var(--bordure); color: var(--texte); }
.bouton.rose:hover { background: var(--discret); }
.bouton.danger { border-color: transparent; background: transparent; color: var(--danger-texte); }
.bouton.danger:hover { background: var(--danger-fond); }
.bouton.petit { height: var(--controle-h-sm); padding: 0 0.625rem; font-size: var(--texte-12); }
.bouton .touche, .touche {
  font-family: var(--police); font-variant-numeric: tabular-nums; font-size: max(var(--texte-min,11px), 0.75rem); font-weight: 500; color: var(--texte-doux);
  border: 1px solid var(--bordure); background: var(--blanc); border-radius: 0.3125rem; padding: 1px 0.375rem; white-space: nowrap;
}
.bouton.accent .touche { background: #2a2a2a; border-color: #3a3a3a; color: #d4d4d4; } /* couleur-libre : touche de raccourci : pastille toujours sombre */

.statut { font-weight: 600; padding: 0 0.5rem; height: 1.375rem; display: inline-flex; align-items: center; gap: 0.3125rem; font-size: max(var(--texte-min,11px), 0.75rem); }
.statut.a_venir { background: var(--discret); color: var(--texte-moyen); }
.statut.ouverte { background: var(--succes-fond); color: var(--succes-texte); }
.statut.ouverte::before { content: ''; width: 0.375rem; height: 0.375rem; border-radius: 999px; background: var(--succes); }
.statut.fermee { background: var(--discret); color: var(--texte-moyen); }
.statut.a-l-ecran { background: var(--storming-fond); color: var(--storming-texte); }
.jeton { display: inline-flex; align-items: center; height: 1.5rem; padding: 0 0.5rem; border-radius: 999px; background: var(--discret); color: var(--texte-moyen); font-size: max(var(--texte-min,11px), 0.75rem); font-weight: 500; }

/* Les listes déroulantes et les champs de l'animateur : 36 px, bordure fine, chevron dessiné. */
.app select, .ecran select {
  -webkit-appearance: none; appearance: none; height: var(--controle-h); padding: 0 2rem 0 0.75rem; border: 1px solid var(--bordure);
  border-radius: var(--radius-lg); background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 256 256' fill='%23737373'%3E%3Cpath d='M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z'/%3E%3C/svg%3E") no-repeat right 10px center;
  font-size: var(--champ-texte); font-weight: 500; color: var(--texte); cursor: pointer;
}
.app input[type="text"], .app input[type="email"], .app input[type="number"], .app input[type="search"], .app input:not([type]), .app textarea {
  border: 1px solid var(--border); border-radius: var(--radius-lg); font-size: var(--champ-texte); min-height: var(--controle-h);
}
.app input:focus, .app textarea:focus, .app select:focus { outline: none; border-color: var(--ring); box-shadow: 0 0 0 3px var(--ring-halo); }

.message { background: var(--primary); border-radius: var(--radius-lg); font-size: var(--texte-14); font-weight: 500; }
.message.echec { background: var(--danger-texte); }
.fenetre { border: 1px solid var(--border); border-radius: var(--radius-2xl); box-shadow: var(--ombre-lg); }
.fenetre::backdrop { background: rgb(0 0 0 / .5); } /* couleur-libre : voile noir à 50 %, valable dans les deux modes */

/* ======================================================================
   L'enveloppe de l'animateur (coquille commune, 22 octobre 2026) : menu de 280 px (80 px replié) et tiroir
   sous 1024 px, en-tête de 56 px, barre d'onglets basse et bouton flottant sur téléphone (SPEC 4, 5, 6).
   ====================================================================== */
body.app { max-width: none; margin: 0; padding: 0 var(--marge-page) 3rem calc(var(--largeur-barre) + var(--marge-page)); box-sizing: border-box; }
body.menu-replie { --largeur-barre: 5rem; }
.saut-contenu { position: fixed; left: 0.5rem; top: -4rem; z-index: 100; padding: 0 1rem; min-height: 2.75rem; display: inline-flex; align-items: center; background: var(--primary); color: var(--primary-foreground); border-radius: var(--radius-lg); font-weight: 600; text-decoration: none; }
.saut-contenu:focus { top: 0.5rem; }

.barre-xs {
  position: fixed; left: 0; top: 0; bottom: 0; z-index: 40; width: var(--largeur-barre); box-sizing: border-box;
  background: var(--app-bg); border-right: 1px solid var(--border); display: flex; flex-direction: column;
}
.barre-tete { height: var(--hauteur-entete); flex: none; display: flex; align-items: center; justify-content: space-between; gap: 0.25rem; padding: 0 0.75rem 0 1rem; border-bottom: 1px solid var(--border); box-sizing: border-box; }
.bouton-marque { display: inline-flex; align-items: center; gap: 0.375rem; min-height: 2.75rem; padding: 0 0.25rem; border: 0; border-radius: var(--radius-md); background: transparent; color: var(--foreground); cursor: pointer; font: inherit; max-width: 100%; }
.bouton-marque:hover { background: var(--accent); }
.bouton-marque .ico-fleche { color: var(--muted-foreground); font-size: max(var(--texte-min-lu,11px), 0.875rem); }
.barre-tete .bouton-marque { min-width: 0; }
.bouton-icone-xs { flex: none; display: inline-grid; place-items: center; width: var(--icone-bouton); height: var(--icone-bouton); padding: 0; border: 0; border-radius: var(--radius-md); background: transparent; color: var(--muted-foreground); cursor: pointer; font-size: 1.25rem; text-decoration: none; }
.bouton-icone-xs:hover { background: var(--accent); color: var(--foreground); }
.bouton-icone-xs .compte-pastille { position: absolute; }
.fermer-tiroir, .deplier-xs { display: none; }
.barre-xs nav { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 0.5rem; display: flex; flex-direction: column; gap: 2px; }
.barre-xs .section { font-size: var(--texte-12); line-height: 1rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted-foreground); padding: 1rem 0.75rem 0.25rem; }
.lien-xs {
  display: flex; align-items: center; gap: 0.75rem; min-height: var(--menu-ligne-h); padding: 0.25rem 0.75rem; border-radius: var(--radius-md);
  color: var(--foreground); font: inherit; font-size: var(--texte-14); line-height: 1.25rem; font-weight: 500; text-decoration: none; background: transparent; border: 0; width: 100%; box-sizing: border-box; cursor: pointer; text-align: left;
}
.lien-xs:hover { background: var(--accent); }
.lien-xs[aria-current="page"] { background: var(--primary); color: var(--primary-foreground); }
.lien-xs .ico { flex: none; font-size: 1.125rem; }
.barre-xs .pied-xs { border-top: 1px solid var(--border); padding: 0.5rem; display: flex; flex-direction: column; gap: 2px; }

/* Le panneau des modules (la marque l'ouvre) et les menus de l'en-tête : un menu déroulant sur ordinateur,
   une feuille basse sous 640 px (SPEC 4.3, 4.4 et 7.6). */
.voile-menu { position: fixed; inset: 0; z-index: 70; background: transparent; }
.menu-coquille {
  position: fixed; z-index: 71; width: 20rem; max-width: calc(100vw - 1rem); max-height: calc(100dvh - 5rem); overflow-y: auto; box-sizing: border-box;
  padding: 0.375rem; background: var(--popover, var(--card)); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--ombre-md);
}
.menu-coquille h2 { margin: 0; padding: 0.5rem 0.75rem 0.25rem; font-size: var(--texte-12); line-height: 1rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted-foreground); }
.menu-coquille .menu-qui { padding: 0.5rem 0.75rem; }
.menu-coquille .menu-qui b { display: block; font-size: var(--texte-14); }
.menu-coquille .menu-qui span { display: block; font-size: var(--texte-12); color: var(--muted-foreground); word-break: break-all; }
.menu-coquille hr { border: 0; border-top: 1px solid var(--border); margin: 0.375rem 0; }
.menu-ligne { display: flex; align-items: center; gap: 0.75rem; width: 100%; min-height: 3rem; padding: 0.5rem 0.75rem; border: 0; border-radius: var(--radius-md); background: transparent; color: var(--foreground); font: inherit; text-align: left; text-decoration: none; cursor: pointer; box-sizing: border-box; }
.menu-ligne:hover, .menu-ligne:focus-visible { background: var(--accent); }
.menu-ligne .tuile { flex: none; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: var(--radius-md); background: var(--muted); color: var(--foreground); font-size: 1.125rem; overflow: hidden; }
.menu-ligne .tuile.degrade { background: var(--degrade-storming); color: var(--s-sur-plein); }
.menu-ligne .tuile.marque-degrade { background: var(--marque-degrade); color: var(--s-sur-plein); }
.menu-ligne .tuile img { width: 100%; height: 100%; object-fit: contain; }
.menu-ligne .textes { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.menu-ligne .textes b { font-size: var(--texte-14); font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.menu-ligne .textes small { font-size: var(--texte-12); color: var(--muted-foreground); }
.menu-ligne .valeur-menu { flex: none; margin-left: auto; font-size: var(--texte-12); color: var(--muted-foreground); }
.menu-ligne .coche { flex: none; color: var(--primary); font-size: max(var(--texte-min-lu,11px), 1rem); }
.menu-ligne.danger { color: var(--danger-text); }
.menu-coquille .poignee { display: none; }
.menu-coquille .menu-tete { display: none; }
@media (max-width: 639.98px) {
  .voile-menu { background: rgb(0 0 0 / .5); } /* couleur-libre : voile noir à 50 %, valable dans les deux modes */
  .menu-coquille { left: 0 !important; right: 0; top: auto !important; bottom: 0; width: 100%; max-width: none; max-height: 90dvh; border-radius: var(--radius-2xl) var(--radius-2xl) 0 0; border-width: 1px 0 0; padding: 0.5rem 0.5rem max(0.5rem, env(safe-area-inset-bottom)); box-shadow: var(--ombre-lg); }
  .menu-coquille .poignee { display: block; width: 2.25rem; height: 0.25rem; margin: 0 auto 0.25rem; border-radius: 2px; background: var(--border); }
  .menu-coquille .menu-tete { display: flex; align-items: center; justify-content: space-between; padding-left: 0.75rem; }
  .menu-coquille .menu-tete b { font-size: var(--texte-16); }
  .menu-ligne { min-height: 3.5rem; }
}

.en-tete-app {
  position: sticky; top: 0; z-index: 30; height: var(--hauteur-entete); margin: 0 calc(var(--marge-page) * -1) 1.5rem; padding: 0 var(--marge-page); box-sizing: border-box;
  display: flex; align-items: center; gap: 0.75rem; flex-wrap: nowrap; background: var(--card); border-bottom: 1px solid var(--border);
}
.console header.en-tete-app, header.en-tete-app { flex-wrap: nowrap; justify-content: flex-start; margin-bottom: 1.5rem; }
.en-tete-app .marque-entete-bouton { display: none; }
.en-tete-app .menu-xs { display: none; }
.en-tete-app .recherche-xs {
  display: flex; align-items: center; gap: 0.5rem; height: var(--controle-h); width: 20rem; flex: 0 1 20rem; min-width: 0; padding: 0 0.75rem; border-radius: var(--radius-lg);
  background: var(--muted); color: var(--muted-foreground); font-size: var(--texte-14); text-decoration: none; box-sizing: border-box; white-space: nowrap; overflow: hidden;
}
.en-tete-app .recherche-xs .touche { margin-left: auto; }
.en-tete-app .espace { flex: 1; }
.en-tete-app .ajouter-xs { position: relative; }
.en-tete-app .ajouter-xs summary { list-style: none; }
.en-tete-app .ajouter-xs summary::-webkit-details-marker { display: none; }
.en-tete-app .ajouter-xs .menu-ajouter {
  position: absolute; right: 0; top: 2.75rem; min-width: 13.75rem; padding: 0.25rem; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--ombre-md); display: flex; flex-direction: column;
}
.en-tete-app .ajouter-xs .menu-ajouter a { display: flex; align-items: center; min-height: var(--controle-h); padding: 0.5rem 0.625rem; border-radius: var(--radius-sm); font-size: var(--texte-14); font-weight: 500; text-decoration: none; color: var(--foreground); }
.en-tete-app .ajouter-xs .menu-ajouter a:hover { background: var(--accent); }
.en-tete-app .qui-xs { display: flex; align-items: center; gap: 0.625rem; min-height: 2.75rem; padding: 0 0 0 0.75rem; border: 0; border-left: 1px solid var(--border); border-radius: 0; background: transparent; color: var(--foreground); font: inherit; text-align: left; cursor: pointer; max-width: 17.5rem; }
.en-tete-app .qui-xs .logo-org { flex: none; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: var(--radius-md); border: 1px solid var(--border); background: var(--muted); font-size: var(--texte-12); font-weight: 700; overflow: hidden; }
.en-tete-app .qui-xs .logo-org img { width: 100%; height: 100%; object-fit: contain; }
.en-tete-app .qui-xs .lignes { line-height: 1.25; min-width: 0; }
.en-tete-app .qui-xs .lignes b { display: block; font-size: var(--texte-14); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 12.5rem; }
.en-tete-app .qui-xs .lignes small { display: block; font-size: var(--texte-12); color: var(--muted-foreground); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 12.5rem; }
.en-tete-app .qui-xs .avatar { width: 2rem; height: 2rem; border-radius: var(--radius-full); display: inline-flex; align-items: center; justify-content: center; font-size: var(--texte-12); font-weight: 700; flex: none; }
.voile-xs { display: none; }

/* La barre d'onglets basse et le bouton flottant : sous 1024 px seulement (SPEC 6). */
.barre-bas, .bouton-flottant { display: none; }

@media (max-width: 1023.98px) {
  body.app { padding: 0 var(--marge-page) calc(var(--hauteur-barre-bas) + env(safe-area-inset-bottom) + 1rem); }
  .barre-xs { width: min(17.5rem, calc(100vw - 3.5rem)); transform: translateX(-100%); visibility: hidden; transition: transform .2s ease, visibility 0s linear .2s; z-index: 80; box-shadow: var(--ombre-lg); padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom); }
  body.menu-ouvert .barre-xs { transform: none; visibility: visible; transition: transform .2s ease; }
  body.menu-ouvert { overflow: hidden; }
  body.menu-ouvert .voile-xs { display: block; position: fixed; inset: 0; z-index: 75; background: rgb(0 0 0 / .5); } /* couleur-libre : voile noir à 50 %, valable dans les deux modes */
  .barre-tete { padding: 0 0.5rem 0 0.75rem; }
  .barre-xs .replier-xs { display: none; }
  .barre-xs .fermer-tiroir { display: inline-grid; }
  body.menu-replie { --largeur-barre: 17.5rem; }
  .en-tete-app .marque-entete-bouton { display: inline-flex; }
  .en-tete-app .recherche-xs { width: 15rem; flex-basis: 15rem; }
  .en-tete-app .recherche-xs .touche { display: none; }
  .en-tete-app .qui-xs .lignes { display: none; }
  .en-tete-app .qui-xs { padding-left: 0.5rem; }
  .en-tete-app .ajouter-xs .libelle { display: none; }
  .en-tete-app .ajouter-xs summary { width: var(--icone-bouton); padding: 0; }
  .barre-bas {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; height: calc(var(--hauteur-barre-bas) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
    background: var(--card); border-top: 1px solid var(--border); box-sizing: border-box;
  }
  body.clavier-ouvert .barre-bas, body.immersif .barre-bas, body.clavier-ouvert .bouton-flottant { display: none; }
  .barre-bas a, .barre-bas button {
    flex: 1; min-width: 0; min-height: 2.75rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 0.25rem 2px; border: 0; background: transparent;
    color: var(--muted-foreground); font: inherit; font-size: var(--texte-12); line-height: 1rem; font-weight: 600; text-decoration: none; cursor: pointer;
  }
  .barre-bas .ico { font-size: 1.5rem; }
  .barre-bas [aria-current="page"] { color: var(--foreground); }
  .bouton-flottant {
    display: inline-flex; align-items: center; gap: 0.5rem; position: fixed; right: 1rem; bottom: calc(var(--hauteur-barre-bas) + env(safe-area-inset-bottom) + 1rem); z-index: 44; height: 3.5rem; padding: 0 1.25rem;
    border-radius: var(--radius-full); background: var(--primary); color: var(--primary-foreground); font-size: var(--texte-14); font-weight: 600; text-decoration: none; box-shadow: var(--ombre-md);
  }
  .bouton-flottant .ico { font-size: 1.25rem; }
  body.immersif .bouton-flottant { display: none; }
  .message { bottom: calc(var(--hauteur-barre-bas) + env(safe-area-inset-bottom) + 1rem); }
}
@media (max-width: 639.98px) {
  .en-tete-app { gap: 0.25rem; }
  .console header.en-tete-app, header.en-tete-app { margin-bottom: 1rem; }
  .en-tete-app .recherche-xs { width: var(--icone-bouton); flex: none; padding: 0; justify-content: center; }
  .en-tete-app .recherche-xs span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  body.avec-flottant .en-tete-app .ajouter-xs, .en-tete-app .aide-xs { display: none; }
}
@media (min-width: 1024px) {
  body.menu-replie .barre-tete { justify-content: center; padding: 0; }
  body.menu-replie .barre-tete .bouton-marque { padding: 0; }
  body.menu-replie .barre-tete .bouton-marque .marque > span, body.menu-replie .barre-tete .ico-fleche, body.menu-replie .barre-tete .replier-xs { display: none; }
  body.menu-replie .lien-xs { justify-content: center; padding: 0; width: 2.75rem; height: 2.75rem; margin: 0 auto; }
  body.menu-replie .lien-xs > span, body.menu-replie .lien-xs > small, body.menu-replie .barre-xs .section { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; padding: 0; }
  body.menu-replie .barre-xs .section { display: none; }
  body.menu-replie .deplier-xs { display: flex; }
  body.menu-replie .barre-xs .nouveau-dossier { display: none; }
}
@media (max-width: 1279.98px) { .en-tete-app .ajouter-xs .libelle { display: none; } .en-tete-app .ajouter-xs summary { width: var(--icone-bouton); padding: 0; } }
@media (prefers-reduced-motion: reduce) { .barre-xs { transition: none; } }

/* Le fil d'Ariane : gris, sans soulignement, séparé par un chevron. */
.fil { font-size: max(var(--texte-min-lu,11px), 0.8125rem); color: var(--texte-doux); margin: 0 0 0.75rem; display: flex; align-items: center; gap: 0.375rem; flex-wrap: wrap; }
.fil a { color: var(--texte-doux); text-decoration: none; }
.fil a:hover { color: var(--texte); }
.fil .chevron { color: var(--s-icone-douce); }
.titre-page { font-size: 1.25rem; font-weight: 700; }
.app h1 { font-weight: 700; }

/* ======================================================================
   La console d'une séance
   ====================================================================== */
.tete-seance { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0.75rem 1rem; margin-bottom: 1rem; }
.tete-seance .titre { flex: 1 1 22.5rem; min-width: 0; }
.tete-seance h1 { margin: 0; font-size: 1.25rem; font-weight: 700; display: inline; }
.tete-seance .statut { margin-left: 0.625rem; vertical-align: 0.1875rem; }
.tete-seance .reglages-seance { margin-top: 0.5rem; }
.tete-seance .actions-tete { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.bouton.projeter { gap: 0.5rem; }

.bandeau-seance { border: 1px solid var(--bordure); box-shadow: none; border-radius: 1rem; padding: 0; gap: 0; align-items: stretch; }
.bandeau-seance > * { padding: 1rem 1.25rem; }
.bandeau-seance .code-bloc { flex: 1 1 18.75rem; flex-direction: row; align-items: center; gap: 1rem; border-right: 1px solid var(--s-gris-1); }
.bandeau-seance .qr-mini { width: 4rem; height: 4rem; flex: none; padding: 0.25rem; border: 1px solid var(--bord-document); border-radius: 0.5rem; box-sizing: border-box; background: var(--surface-document); } /* le code QR reste sur fond blanc, jeton de la coquille */
.bandeau-seance .qr-mini img { display: block; width: 100%; height: 100%; }
.bandeau-seance .code-bloc small, .bandeau-seance .chiffres small, .etiquette {
  font-size: max(var(--texte-min,11px), 0.75rem); font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--texte-doux);
}
.bandeau-seance #code { display: block; font-size: 1.875rem; font-weight: 600; letter-spacing: .04em; line-height: 1.15; color: var(--texte); }
.bandeau-seance #adresse { display: block; font-size: max(var(--texte-min,11px), 0.7813rem); color: var(--texte-doux); }
.bandeau-seance .chiffres { flex: 0 1 10rem; display: flex; }
.bandeau-seance .chiffres > div { display: flex; flex-direction: column-reverse; gap: 0.25rem; }
.bandeau-seance .chiffres b { font-family: var(--police); font-variant-numeric: tabular-nums; font-size: 1.75rem; font-weight: 600; color: var(--texte); }

.reglages-seance { display: flex; flex-wrap: wrap; gap: 0.375rem; }
.connectes-liste { display: flex; flex-wrap: wrap; align-items: center; gap: 0.375rem; margin: 0 0 0.75rem; }
.barre-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; padding: 0.5rem; margin: 0.75rem 0 1rem; background: var(--blanc); border: 1px solid var(--bordure); border-radius: 1rem; }
.barre-actions .bouton:not(.accent):not(.danger) { border-color: transparent; background: transparent; }
.barre-actions .bouton:not(.accent):not(.danger):hover { background: var(--discret); }
.barre-actions #terminer { margin-left: auto; }
.raccourcis-console { display: flex; flex-wrap: wrap; align-items: center; gap: 0.375rem 0.875rem; margin: -0.375rem 0 1rem; padding: 0 0.25rem; font-size: max(var(--texte-min,11px), 0.75rem); color: var(--texte-doux); }

.activite-carte.ouverte { border-color: var(--succes); background: var(--succes-fond); }
.activite-carte h2 { font-size: max(var(--texte-min-lu,11px), 1rem); font-weight: 700; }
.activite-carte .meta { font-size: max(var(--texte-min-lu,11px), 0.8125rem); }
.activite-carte summary { color: var(--texte); font-weight: 600; }
.pilotage { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.console .barre .plein, .rapport-page .barre .plein { background: var(--storming); }
.console .barre.gagnant .plein, .rapport-page .barre.gagnant .plein { background: var(--storming); }
.console .echelle-ligne .moyenne, .console .nombre-ligne .mediane { color: var(--storming-texte); }
.console .mini div { background: color-mix(in srgb, var(--violet) 30%, transparent); }
.console .phrase { border: 1px solid var(--bordure); background: var(--discret); }

/* La télécommande : sur un téléphone, la console garde ses gestes en grand, l'ordinateur projette. */
@media (max-width: 640px) {
  .tete-seance .actions-tete { width: 100%; }
  .tete-seance .actions-tete .bouton { flex: 1; }
  .bandeau-seance .code-bloc { border-right: 0; border-bottom: 1px solid var(--s-gris-1); }
  .bandeau-seance #code { font-size: 1.625rem; }
  .raccourcis-console { display: none; }
  .barre-actions #suivante, .barre-actions #ouvrir-maintenant { width: 100%; height: 3.5rem; font-size: max(var(--texte-min-lu,11px), 0.9375rem); }
  .activite-carte .pilotage .bouton, .activite-carte .actions .bouton { min-height: 3rem; }
  .activite-carte [data-action="ouvrir"], .activite-carte [data-action="fermer"] { flex: 1 1 100%; height: 3.25rem; font-size: max(var(--texte-min-lu,11px), 0.9375rem); }
  .activite-carte [data-action="question"].accent { flex: 1 1 100%; height: 3.25rem; font-size: max(var(--texte-min-lu,11px), 0.9375rem); }
}

/* Les cibles de l'animateur sur un téléphone (13 octobre 2026). Les contrôles font 36 px sur un écran
   d'ordinateur, où la souris vise juste. Sur un téléphone, le doigt demande davantage : la carte d'activité
   montait déjà ses boutons à 48 px, les autres suivent à 44 px, comme le recommande le WCAG (2.5.5).
   Les cibles du participant restent à 48 px et plus, inchangées. */
@media (max-width: 640px) {
  body.console .bouton, body.console select, body.console .filtre,
  body.console input[type=search], body.console .champ-recherche input,
  body.console .onglets-app button, body.console .onglets-modeles button,
  body.console .file-onglets button { min-height: 2.75rem; }
  body.console .bouton.icone, body.console .barre-xs .lien-xs { min-height: 2.75rem; }
  /* Les liens de titre d'une carte et le fil d'Ariane (v1.3.5, 23 octobre 2026) : 44 px de haut au doigt, sans changer la mise en page. */
  body.console a.titre-lien, body.console .fil a { display: inline-flex; align-items: center; min-height: 2.75rem; }
  body.console .bouton.icone { min-width: 2.75rem; }
  body.console .en-tete-app .menu-xs { min-width: 2.75rem; min-height: 2.75rem; }
}

/* ======================================================================
   L'écran de la salle : clair par défaut, sombre au choix, lisible du fond de la salle
   ====================================================================== */
.ecran {
  --e-fond: #ffffff; --e-texte: #0a0a0a; --e-doux: #404040; --e-carte: #f5f5f5; --e-piste: #f0f0f0; --e-ligne: #e5e5e5; --e-trait: #d4d4d4; /* couleur-libre : écran de salle, thème propre (storming.ecran.theme) */
  --zoom-salle: 1; /* le réglage de taille du texte de la salle (touches + et -), sans rapport avec --echelle de la densité */
  background: var(--e-fond); color: var(--e-texte); font-family: var(--police);
  grid-template-columns: 35rem 1fr; position: relative;
}
.ecran.theme-sombre { --e-fond: #0a0a0a; --e-texte: #fafafa; --e-doux: #d4d4d4; --e-carte: #1f1f1f; --e-piste: #262626; --e-ligne: #2e2e2e; --e-trait: #404040; } /* couleur-libre : écran de salle, thème propre (storming.ecran.theme) */
.ecran::before { content: ''; position: fixed; left: 0; right: 0; top: 0; height: 0.5rem; background: var(--degrade-storming); z-index: 3; }
.ecran .entete { padding: 2rem 3rem 0; }
.ecran .entete .seance { color: var(--e-doux); font-size: 1.25rem; font-weight: 600; }
.ecran .gauche { padding: 2rem 3rem 2.5rem; gap: 1.25rem; }
.ecran .qr { width: 28.75rem; height: 28.75rem; padding: 0.5rem; border-radius: 2rem; background: var(--degrade-storming); box-shadow: none; box-sizing: border-box; }
.ecran .qr img { background: #fff; border-radius: 1.625rem; padding: 1.375rem; box-sizing: border-box; } /* couleur-libre : écran de salle, thème propre (storming.ecran.theme) */
.ecran .adresse { font-size: calc(1.875rem * var(--zoom-salle)); font-weight: 700; color: var(--e-texte); }
.ecran .adresse small { font-size: calc(1.25rem * var(--zoom-salle)); font-weight: 500; color: var(--e-doux); margin-bottom: 0.25rem; }
.ecran .adresse .code-seance { display: inline-flex; flex-direction: column; align-items: center; margin-top: 1rem; padding: 0.875rem 1.75rem 1.125rem; border-radius: 1.5rem; background: var(--e-carte); font-size: calc(1rem * var(--zoom-salle)); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--e-doux); }
.ecran .adresse .code-seance b { font-size: calc(6rem * var(--zoom-salle)); font-weight: 600; letter-spacing: .05em; line-height: 1; color: var(--e-texte); text-transform: none; }
.ecran .connectes { background: var(--e-carte); font-size: calc(1.25rem * var(--zoom-salle)); font-weight: 600; padding: 0.75rem 1.375rem; color: var(--e-texte); }
.ecran .connectes b { font-family: var(--police); font-variant-numeric: tabular-nums; font-size: calc(1.875rem * var(--zoom-salle)); color: var(--e-texte); }
.ecran .connectes .point { background: var(--succes); }
.ecran .droite { padding: 2rem 3rem 2.5rem 1rem; }
.ecran .titre-activite { font-size: calc(3rem * var(--zoom-salle)); font-weight: 800; letter-spacing: -.01em; line-height: 1.12; }
.ecran .sous-titre { color: var(--e-doux); font-size: calc(1.375rem * var(--zoom-salle)); }
.ecran .sous-titre b { color: var(--e-texte); font-family: var(--police); font-variant-numeric: tabular-nums; font-weight: 600; }
.ecran .pastille { background: var(--succes-fond); color: var(--succes-texte); font-size: calc(1.125rem * var(--zoom-salle)); padding: 0.375rem 1rem; }
.ecran .pastille.fermee { background: var(--e-carte); color: var(--e-doux); }
.ecran .pastille.a-venir { background: var(--alerte-fond); color: var(--alerte-texte); }
.ecran .vide h2 { font-size: calc(3.5rem * var(--zoom-salle)); font-weight: 800; }
.ecran .vide p { font-size: calc(1.625rem * var(--zoom-salle)); color: var(--e-doux); }
.ecran .masque .grand { font-family: var(--police); font-variant-numeric: tabular-nums; background: var(--degrade-storming); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ecran .masque p { color: var(--e-doux); font-size: calc(1.625rem * var(--zoom-salle)); }
.ecran .plein-ecran { border-color: var(--e-trait); color: var(--e-texte); font-weight: 600; }
.ecran .plein-ecran:hover { background: var(--e-carte); }

/* Pendant le vote : le code et le QR passent en haut à droite, mais restent lisibles des retardataires. */
.ecran.avec-activite .gauche {
  top: 5.5rem; right: 2.5rem; bottom: auto; flex-direction: row; align-items: center; gap: 1.125rem; padding: 0.875rem 1.25rem 0.875rem 0.875rem;
  background: var(--e-carte); border-radius: 1.25rem;
}
.ecran.avec-activite .qr { width: 9.375rem; height: 9.375rem; padding: 0.25rem; border-radius: 0.875rem; }
.ecran.avec-activite .qr img { border-radius: 0.625rem; padding: 0.375rem; }
.ecran.avec-activite .adresse { font-size: calc(1.25rem * var(--zoom-salle)); text-align: left; }
.ecran.avec-activite .adresse small { font-size: calc(0.9375rem * var(--zoom-salle)); }
.ecran.avec-activite .adresse .code-seance { margin-top: 0.375rem; padding: 0; background: transparent; align-items: flex-start; font-size: calc(0.875rem * var(--zoom-salle)); }
.ecran.avec-activite .adresse .code-seance b { font-size: calc(3.5rem * var(--zoom-salle)); }
.ecran.avec-activite .connectes { display: none; }
.ecran.avec-activite .droite { padding: 1.5rem 35rem 2.5rem 3rem; }
.ecran.avec-activite .titre-activite { font-size: calc(2.75rem * var(--zoom-salle)); }

/* Les résultats : une couleur par réponse, la piste en gris clair, les chiffres alignés. */
.ecran .resultat h3 { font-size: calc(1.875rem * var(--zoom-salle)); font-weight: 700; }
.ecran .barre { margin-bottom: 1.125rem; }
.ecran .barre .libelle { font-size: calc(1.875rem * var(--zoom-salle)); font-weight: 600; }
.ecran .barre .valeur { font-family: var(--police); font-variant-numeric: tabular-nums; font-size: calc(2rem * var(--zoom-salle)); font-weight: 600; }
.ecran .barre .fond { height: 1.375rem; border-radius: 0.625rem; background: var(--e-piste); }
.ecran .barre .plein { border-radius: 0.625rem; transition: width 1.1s cubic-bezier(.2, .8, .2, 1); }
.ecran .barre:nth-of-type(6n+1) .plein { background: var(--rep-1); }
.ecran .barre:nth-of-type(6n+2) .plein { background: var(--rep-2); }
.ecran .barre:nth-of-type(6n+3) .plein { background: var(--rep-3); }
.ecran .barre:nth-of-type(6n+4) .plein { background: var(--rep-4); }
.ecran .barre:nth-of-type(6n+5) .plein { background: var(--rep-5); }
.ecran .barre:nth-of-type(6n) .plein { background: var(--rep-6); }
.ecran .echelle-ligne, .ecran .nombre-ligne { border-bottom-color: var(--e-ligne); }
.ecran .echelle-ligne .moyenne, .ecran .nombre-ligne .mediane { font-family: var(--police); font-variant-numeric: tabular-nums; font-weight: 600; color: var(--violet-lien); }
.ecran .mini div { background: rgba(124, 58, 237, .45); } /* couleur-libre : écran de salle, thème propre (storming.ecran.theme) */
.ecran .phrase { background: var(--e-carte); border: 1px solid var(--e-ligne); color: var(--e-texte); }
.ecran .ouinon-resultat div { background: var(--e-carte); }
.ecran .ouinon-resultat .oui b { color: var(--succes); }
.ecran .ouinon-resultat .non b { color: var(--danger); }
.ecran .resultats-grille .resultat h3 { font-size: calc(1.5rem * var(--zoom-salle)); }

/* Le diaporama et les vues animées, sur le fond clair ou sombre. */
.diapo-nav { color: var(--e-doux); font-size: calc(1.125rem * var(--zoom-salle)); }
.diapo-nav .compteur { color: var(--e-texte); font-size: calc(1.25rem * var(--zoom-salle)); }
.diapo-nav .points i { background: var(--e-trait); }
.diapo-nav .points i.actif { background: var(--storming); }
.ecran .diapo-titre { font-size: calc(2.5rem * var(--zoom-salle)); font-weight: 800; }
.billes-entete { color: var(--e-doux); border-bottom-color: var(--e-ligne); }
.billes-ligne { border-bottom-color: var(--e-ligne); }
.billes-ligne .libelle { font-size: calc(1.625rem * var(--zoom-salle)); }
.case-billes { background: var(--e-carte); }
.bille-0 { background: var(--rep-1); } .bille-1 { background: var(--rep-2); } .bille-2 { background: var(--rep-3); } .bille-3 { background: var(--rep-4); }
.billes-ligne .moyenne b { font-family: var(--police); font-variant-numeric: tabular-nums; font-weight: 600; color: var(--violet-lien); }
.etoiles-fond { color: var(--e-trait); }
.etoiles-plein { color: #F59E0B; } /* couleur-libre : écran de salle, thème propre (storming.ecran.theme) */
.reglette-echelle, .salle-dit { color: var(--e-doux); }
.reglette-ligne { border-bottom-color: var(--e-ligne); }
.salle-dit b { color: var(--violet-lien); font-family: var(--police); font-variant-numeric: tabular-nums; }
.reglette { background: var(--e-piste); }
.reglette .bande { background: linear-gradient(90deg, rgba(124, 58, 237, .55), rgba(232, 64, 143, .55)); } /* couleur-libre : écran de salle, thème propre (storming.ecran.theme) */
.reglette .mediane-trait { background: var(--e-texte); box-shadow: none; }
.reglette .point { background: #F59E0B; border-color: var(--e-fond); } /* couleur-libre : écran de salle, thème propre (storming.ecran.theme) */
.postit { color: #0a0a0a; box-shadow: 0 6px 16px rgba(0, 0, 0, .18); } /* couleur-libre : papier de couleur, texte foncé */
.nuage-cadre { background: var(--e-carte); }
.nuage-titre, .file-titre { color: var(--e-doux); }
.nuage .mot { color: var(--rep-1); }
.nuage .mot:nth-child(5n+2) { color: var(--rep-2); }
.nuage .mot:nth-child(5n+3) { color: var(--rep-3); }
.nuage .mot:nth-child(5n+4) { color: var(--rep-4); }
.nuage .mot:nth-child(5n) { color: var(--rep-5); }
.anneau .fond { stroke: var(--e-piste); }
.anneau .plein { stroke: var(--storming); }
.anneau .pourcent { color: var(--violet-lien); font-family: var(--police); font-variant-numeric: tabular-nums; font-weight: 600; }
.anneau .detail { color: var(--e-doux); }
.pastille-prenom { background: var(--storming-fond); border-color: color-mix(in srgb, var(--violet) 45%, transparent); color: var(--storming-texte); }
.ecran.theme-sombre .pastille-prenom { background: rgba(124, 58, 237, .22); color: #ddd6fe; } /* couleur-libre : écran de salle, thème propre (storming.ecran.theme) */

/* Les réglages de l'écran : la taille du texte, le thème et le plein écran, qui s'effacent seuls. */
.reglages-ecran {
  position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 5; display: flex; gap: 0.5rem; padding: 0.5rem; border-radius: 0.875rem;
  background: var(--e-fond); border: 1px solid var(--e-ligne); box-shadow: 0 8px 24px rgba(0, 0, 0, .12); /* couleur-libre : écran de salle, thème propre (storming.ecran.theme) */
  opacity: 0; transition: opacity .3s ease; pointer-events: none;
}
.ecran.reglages-visibles .reglages-ecran { opacity: 1; pointer-events: auto; }
.reglages-ecran button {
  min-width: 2.75rem; height: 2.75rem; padding: 0 0.75rem; border-radius: 0.625rem; border: 1px solid var(--e-trait); background: transparent;
  color: var(--e-texte); font-size: max(var(--texte-min-lu,11px), 0.9375rem); font-weight: 600; cursor: pointer;
}
.reglages-ecran button:hover { background: var(--e-carte); }
.ecran.avec-activite .entete-droite .plein-ecran { display: none; }
@media (prefers-reduced-motion: reduce) { .reglages-ecran, .ecran .barre .plein { transition: none; } }

/* Le quiz : chaque réponse a sa couleur et son numéro ; la bonne réponse se révèle en vert. */
.ecran .podium .marche.premiere .socle { background: var(--degrade-storming); color: #fff; } /* couleur-libre : écran de salle, thème propre (storming.ecran.theme) */
.ecran .podium .marche .socle { background: var(--storming-fond); color: var(--storming-texte); }
.ecran.theme-sombre .podium .marche .socle { background: rgba(124, 58, 237, .25); color: #ddd6fe; } /* couleur-libre : écran de salle, thème propre (storming.ecran.theme) */
.ecran .podium .nom, .ecran .podium .points { color: var(--e-texte); }

@media (max-width: 1500px) {
  .ecran { grid-template-columns: 27.5rem 1fr; }
  .ecran .qr { width: 22.5rem; height: 22.5rem; }
  .ecran .adresse .code-seance b { font-size: calc(4.5rem * var(--zoom-salle)); }
  .ecran.avec-activite .droite { padding-right: 31.25rem; }
}
@media (max-width: 900px) {
  .ecran { grid-template-columns: 1fr; }
  .ecran .qr { width: 18.75rem; height: 18.75rem; }
  .ecran.avec-activite .gauche { position: static; margin: 1rem 1.25rem 0; }
  .ecran.avec-activite .droite { padding: 1rem 1.25rem 1.875rem; }
}

/* ======================================================================
   Le téléphone des participants : la couleur de Storming, des cibles de 48 px et plus
   ====================================================================== */
.participant { background: var(--clair); }
.participant > header { background: var(--blanc); margin: -1rem -1rem 1rem; padding: 0.625rem 1rem; border-bottom: 1px solid var(--bordure); }
.participant .seance { font-size: max(var(--texte-min-lu,11px), 0.8125rem); font-weight: 600; color: var(--texte-moyen); }
.participant .carte { padding: 1.125rem 1rem; }
.participant .carte h1 { font-size: 1.375rem; font-weight: 800; }
.participant .consigne { color: var(--texte-moyen); font-size: max(var(--texte-min-lu,11px), 0.9375rem); line-height: 1.5; }
.participant .question h2 { font-size: 1.125rem; font-weight: 700; }
.participant .option { border: 1px solid var(--s-bord-champ); border-radius: 0.75rem; min-height: 3.5rem; font-size: max(var(--texte-min-lu,11px), 1rem); }
.participant .option .numero { background: var(--storming-fond); color: var(--storming-texte); font-family: var(--police); font-variant-numeric: tabular-nums; }
.participant .option[aria-pressed="true"] { border-color: var(--storming); background: var(--storming-fond); box-shadow: 0 0 0 1px var(--storming); }
.participant .option[aria-pressed="true"] .numero { background: var(--storming); color: var(--s-sur-plein); }
.participant .notes button { border: 1px solid var(--s-bord-champ); height: 3rem; font-family: var(--police); font-variant-numeric: tabular-nums; font-size: 1.0625rem; }
.participant .notes button[aria-pressed="true"], .participant .ouinon button[aria-pressed="true"] { background: var(--storming); border-color: var(--storming); color: var(--s-sur-plein); }
.participant .ouinon button { border: 1px solid var(--s-bord-champ); }
.participant textarea, .participant .champ-nombre input, .participant .prenom input, .participant input.code-saisi { border: 1px solid var(--s-bord-champ); border-radius: 0.75rem; }
.participant textarea:focus, .participant input:focus { outline: none; border-color: var(--storming); box-shadow: 0 0 0 3px color-mix(in srgb, var(--violet) 15%, transparent); }
.participant .principal { background: var(--storming); height: 3.25rem; border-radius: 0.75rem; font-size: max(var(--texte-min-lu,11px), 1rem); }
.participant .principal:disabled { opacity: .45; }
.participant .etat { background: var(--succes-fond); color: var(--success-text); border-radius: 0.75rem; font-weight: 600; }
.participant .etat.echec { background: var(--danger-fond); color: var(--danger-text); }
.participant .etat.attente-reseau { display: block; background: var(--alerte-fond); color: var(--warning-text); }
.participant .hors-ligne { background: var(--alerte-fond); color: var(--warning-text); border: 1px solid var(--warning); border-radius: 0.75rem; font-weight: 600; text-align: left; padding: 0.625rem 0.75rem; }
.participant .attente .point { background: var(--storming); }
.participant .pied { color: var(--texte-doux); font-size: max(var(--texte-min-lu,11px), 0.8125rem); }
.participant .bonjour a, .participant a { color: var(--texte-moyen); }
.participant .onglets-participant button[aria-pressed="true"] { background: var(--blanc); color: var(--texte); }
.participant .score-participant { background: var(--degrade-storming); }
.participant input.code-saisi { font-family: var(--police); font-variant-numeric: tabular-nums; font-weight: 600; letter-spacing: .12em; }
.participant input.code-saisi:focus { border-color: var(--storming); }

/* La révélation du quiz : la bonne réponse en vert, les autres s'effacent (sur l'écran comme ailleurs). */
.barre.juste .plein, .ecran .barre.juste .plein { background: var(--succes); }
.barre.fausse { opacity: .5; }
.barre.fausse .plein, .ecran .barre.fausse .plein { background: var(--e-trait, #d4d4d4); } /* couleur-libre : écran de salle, thème propre (storming.ecran.theme) */
.coche-juste { display: inline-flex; align-items: center; justify-content: center; width: 1.2em; height: 1.2em; border-radius: 999px; background: var(--succes); color: var(--s-sur-plein); font-size: .7em; vertical-align: .1em; }

/* Les onglets du téléphone : un segment neutre, l'onglet actif en blanc. */
.participant .onglets-participant { background: var(--s-gris-1); border-radius: 0.75rem; padding: 0.1875rem; box-shadow: none; gap: 0.1875rem; }
.participant .onglets-participant button { border-radius: 0.5625rem; min-height: 2.5rem; color: var(--texte-sur-muted); font-weight: 600; }
.participant .onglets-participant button[aria-pressed="true"] { background: var(--blanc); color: var(--texte); font-weight: 700; box-shadow: 0 1px 2px rgba(0, 0, 0, .08); } /* couleur-libre : ombre noire, valable dans les deux modes */
.participant .onglets-participant .pastille-nombre { background: var(--storming); color: var(--s-sur-plein); }
.participant .onglets-participant button[aria-pressed="false"] .pastille-nombre { background: var(--storming-fond); color: var(--storming-texte); }

/* La barre en tête ne prend pas le style du gagnant de la roue (.gagnant, lot 5) : ce conflit la
   centrait et la rejouait en fondu à chaque réponse, sur l'écran comme dans le rapport. */
.barre.gagnant { text-align: left; margin-top: 0; animation: none; }

/* Le code sous l'adresse, alignés, sur l'écran de la salle. */
.ecran .adresse span#adresse { display: block; }
.ecran .adresse .code-seance b { font-family: var(--police); font-variant-numeric: tabular-nums; }

/* Sur le téléphone, la navigation entre activités est secondaire : contour, pas de noir. */
.participant .bouton { height: 3rem; border-radius: 0.75rem; font-size: max(var(--texte-min-lu,11px), 0.9375rem); }
.participant .bouton.accent { background: var(--blanc); color: var(--texte); border: 1px solid var(--s-bord-champ); }
.participant .bouton.accent:hover { background: var(--discret); }

/* Les billes : la ligne a une hauteur fixe (66 px, ecran-vues.js) ; le libellé tient en deux lignes au plus. */
.ecran .billes-entete, .ecran .billes-ligne { grid-template-columns: minmax(18.75rem, 1.3fr) minmax(0, 2fr) 11.25rem; }
.ecran .billes-ligne .libelle { font-size: calc(1.3125rem * var(--zoom-salle)); line-height: 1.15; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ecran .billes-entete { font-size: calc(0.9375rem * var(--zoom-salle)); }
.ecran .billes-entete .cases { font-size: calc(1.125rem * var(--zoom-salle)); }
.ecran .diapo-nav .aide { font-size: calc(1rem * var(--zoom-salle)); }
.ecran .billes-ligne .moyenne b { font-size: calc(2.5rem * var(--zoom-salle)); }

/* Le podium : le rang lisible sur la marche claire, les noms et les points en grand. */
.ecran .podium .marche .socle b { color: var(--storming-texte); }
.ecran .podium .marche.premiere .socle b { color: #fff; } /* couleur-libre : écran de salle, thème propre (storming.ecran.theme) */
.ecran.theme-sombre .podium .marche .socle b { color: #ddd6fe; } /* couleur-libre : écran de salle, thème propre (storming.ecran.theme) */
.ecran .podium .nom { font-size: calc(2.25rem * var(--zoom-salle)); font-weight: 800; }
.ecran .podium .points { font-family: var(--police); font-variant-numeric: tabular-nums; font-size: calc(1.625rem * var(--zoom-salle)); font-weight: 600; color: var(--e-doux); }

/* Le mur à l'écran : des titres de colonne lisibles sur fond clair, plus pâles sur fond sombre. */
.ecran .mur-etapes span { background: var(--e-carte); color: var(--e-doux); font-size: calc(1rem * var(--zoom-salle)); }
.ecran .mur-etapes span.on { background: var(--degrade-storming); color: #fff; } /* couleur-libre : écran de salle, thème propre (storming.ecran.theme) */
.ecran .mur-etapes b { color: var(--e-doux); }
.ecran .mur-colonne { background: var(--e-carte); }
.ecran .mur-colonne h4 { color: var(--storming-texte); font-size: calc(1.375rem * var(--zoom-salle)); }
.ecran .mur-colonne.t1 h4 { color: var(--danger-texte); } .ecran .mur-colonne.t2 h4 { color: var(--succes-texte); } .ecran .mur-colonne.t3 h4 { color: var(--alerte-texte); }
.ecran.theme-sombre .mur-colonne h4 { color: #c4b5fd; } /* couleur-libre : écran de salle, thème propre (storming.ecran.theme) */
.ecran.theme-sombre .mur-colonne.t1 h4 { color: #fda4af; } .ecran.theme-sombre .mur-colonne.t2 h4 { color: #86efac; } .ecran.theme-sombre .mur-colonne.t3 h4 { color: #fde68a; } /* couleur-libre : écran de salle, thème propre (storming.ecran.theme) */
.ecran .mur-colonne .postit { font-size: calc(1.1875rem * var(--zoom-salle)); }
.ecran .mur-colonne .postit.en-tete-du-vote { outline-color: var(--storming); }

/* Les autres vues de l'écran, sur les variables du thème (clair par défaut, sombre au choix). */
.ecran .partenaires-compteur b { color: var(--violet-lien); font-family: var(--police); font-variant-numeric: tabular-nums; }
.ecran .sous-titre .fil { color: var(--e-doux); }
.ecran .minuteur-ecran { background: var(--e-carte); color: var(--e-texte); }
.ecran .minuteur-ecran.presque { background: var(--danger-fond); color: var(--danger-texte); }
.ecran .question-guidee small { color: var(--e-doux); font-size: calc(1rem * var(--zoom-salle)); }
.ecran .classement-resultat .rang { background: var(--e-carte); color: var(--e-texte); }
.ecran .mot-nuage small, .ecran .aide-filtre, .ecran .masque-quiz { color: var(--e-doux); }
.ecran .qs-carte { background: var(--e-carte); }
.ecran .qs-carte.en-avant { background: var(--storming-fond); box-shadow: inset 0 0 0 2px var(--storming); }
.ecran.theme-sombre .qs-carte.en-avant { background: rgba(124, 58, 237, .22); } /* couleur-libre : écran de salle, thème propre (storming.ecran.theme) */
.ecran .qs-carte.en-avant .qs-votes b, .ecran .qs-votes b { color: var(--violet-lien); font-family: var(--police); font-variant-numeric: tabular-nums; }
.ecran .qs-votes small, .ecran .qs-texte small { color: var(--e-doux); }
.ecran .qs-texte p { color: var(--e-texte); font-size: calc(1.625rem * var(--zoom-salle)); }
.ecran .deviner-resultat b { color: var(--violet-lien); font-family: var(--police); font-variant-numeric: tabular-nums; }
.ecran .deviner-resultat small { color: var(--e-doux); }
.ecran .suite-classement li { background: var(--e-carte); }
.ecran .equipe-ecran { background: var(--e-carte); color: var(--e-texte); }
.ecran .equipe-ecran em { color: var(--violet-lien); }
.ecran .equipe-ecran small { color: var(--e-doux); }
.ecran .roue { border-color: var(--e-fond); box-shadow: 0 0 0 2px var(--e-ligne); }
.ecran .gagnant small { color: var(--e-doux); }
.ecran .gagnant b { background: var(--degrade-storming); -webkit-background-clip: text; background-clip: text; }
.ecran .odj-ecran li { border-bottom-color: var(--e-ligne); }
.ecran .odj-ecran li small { color: var(--e-doux); font-family: var(--police); font-variant-numeric: tabular-nums; }
.ecran .pastille-nombre { background: var(--e-carte); }

/* ======================================================================
   Lot 2 (7 octobre 2026) : la bibliothèque, les fenêtres et l'éditeur
   ====================================================================== */

/* Les teintes des formats : la palette des avatars de XINERGI. */
.fmt { width: 2rem; height: 2rem; flex: none; border-radius: 0.5rem; display: inline-flex; align-items: center; justify-content: center; background: var(--discret); color: var(--texte-moyen); }
.fmt.petite { width: 1.75rem; height: 1.75rem; }
.fmt-presentation { background: var(--storming-fond); color: var(--violet-texte); }
.fmt-sondage { background: var(--success-subtle); color: var(--success-text); }
.fmt-questionnaire { background: var(--avatar-1); color: var(--avatar-1-fg); }
.fmt-formulaire { background: var(--warning-subtle); color: var(--warning-text); }
.fmt-quiz { background: var(--danger-subtle); color: var(--danger-text); }
.fmt-parcours { background: var(--info-subtle); color: var(--info-text); }

.bouton.fantome { border-color: transparent; background: transparent; }
.bouton.fantome:hover { background: var(--discret); }
.bouton.icone { width: var(--icone-bouton); padding: 0; color: var(--texte-moyen); border-color: transparent; background: transparent; }
.bouton.icone:hover { background: var(--discret); }
.bouton.danger-plein { background: var(--destructive); border-color: var(--destructive); color: var(--destructive-foreground); }
.bouton.danger-plein:hover { background: var(--danger-texte); border-color: var(--danger-texte); }
.compte { display: inline-flex; align-items: center; justify-content: center; min-width: 1.375rem; height: 1.375rem; padding: 0 0.4375rem; border-radius: 999px; background: var(--discret); color: var(--texte-moyen); font-size: max(var(--texte-min,11px), 0.75rem); font-weight: 600; vertical-align: 0.1875rem; }
.compte:empty { display: none; }

/* Les vues de la bibliothèque, dans la barre latérale. */
.barre-xs .vues-xs nav { display: flex; flex-direction: column; gap: 2px; padding: 0; overflow: visible; }
.barre-xs .vue { position: relative; }
.barre-xs .vue small { margin-left: auto; font-family: var(--police); font-variant-numeric: tabular-nums; font-size: max(var(--texte-min,11px), 0.75rem); font-weight: 600; color: var(--texte-doux); }
.barre-xs .vue.actif { background: var(--primaire); color: var(--primary-foreground); }
.barre-xs .vue.actif small { color: color-mix(in srgb, var(--primary-foreground) 72%, transparent); }
.barre-xs .vue.ajout { color: var(--texte-sur-muted); }
.barre-xs .nouveau-dossier { display: flex; flex-direction: column; gap: 0.375rem; padding: 0.375rem 0.25rem; }
.barre-xs .nouveau-dossier[hidden] { display: none; }
.barre-xs .nouveau-dossier label { font-size: max(var(--texte-min,11px), 0.75rem); font-weight: 600; color: var(--texte-moyen); padding: 0 0.25rem; }
.barre-xs .nouveau-dossier input { height: 2rem; padding: 0 0.625rem; border: 1px solid var(--bordure); border-radius: 0.5rem; font-size: max(var(--texte-min-lu,11px), 0.8125rem); }
.barre-xs .nouveau-dossier .boutons { display: flex; gap: 0.375rem; }
.barre-xs .nouveau-dossier .boutons .accent { flex: 1; }
.biblio.sans-cote { display: block; }
.biblio.sans-cote .biblio-cote { display: none; }

/* Les séances en cours : des cartes compactes, le code aligné. */
.en-cours h2 { margin: 0 0 0.625rem; font-size: max(var(--texte-min-lu,11px), 1rem); font-weight: 700; display: flex; align-items: center; gap: 0.5rem; }
.grille-seances { display: grid; grid-template-columns: repeat(auto-fill, minmax(16.25rem, 1fr)); gap: 0.75rem; margin-bottom: 1.5rem; }
.carte-seance { padding: 0.875rem 1rem; margin: 0; display: flex; flex-direction: column; gap: 0.625rem; }
.carte-seance .tete { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.carte-seance h3 { flex: 1 1 10rem; min-width: 0; margin: 0; font-size: max(var(--texte-min-lu,11px), 0.8438rem); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.carte-seance .statut { margin: 0; }
.carte-seance .code { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.625rem; }
.carte-seance .code b { font-size: 1.375rem; font-weight: 600; letter-spacing: .04em; }
.carte-seance .code small { font-size: max(var(--texte-min,11px), 0.75rem); color: var(--texte-doux); }
.carte-seance .actions { display: flex; flex-wrap: wrap; gap: 0.375rem; }

/* La liste des activités : des lignes denses, un seul bouton en contour qui noircit au survol. */
.biblio-tete { margin: 0 0 0.75rem; }
.biblio-tete .titre-page { display: flex; align-items: center; gap: 0.625rem; font-size: 1.25rem; }
.biblio-outils { gap: 0.625rem 0.75rem; margin-bottom: 0.75rem; }
.champ-recherche { position: relative; flex: 0 1 18.75rem; min-width: 13.75rem; }
.champ-recherche svg { position: absolute; left: 0.6875rem; top: 0.625rem; pointer-events: none; }
.champ-recherche input { width: 100%; height: 2.25rem; padding: 0 0.75rem 0 2.125rem; border: 1px solid var(--bordure); border-radius: 0.5rem; font-size: max(var(--texte-min-lu,11px), 0.8438rem); box-sizing: border-box; background: var(--blanc); }
.biblio-outils input[type=search] { border-width: 1px; height: 2.25rem; border-radius: 0.5rem; }
.filtres, .segment { display: inline-flex; flex-wrap: wrap; gap: 0; padding: 2px; border-radius: 0.5rem; background: var(--discret); border: 1px solid var(--bordure); }
.filtre, .segment button { height: 1.875rem; padding: 0 0.625rem; border: 0; border-radius: 0.375rem; background: transparent; font-size: max(var(--texte-min,11px), 0.7813rem); font-weight: 600; color: var(--texte-doux); cursor: pointer; }
.filtre.on, .segment button.on { background: var(--blanc); color: var(--texte); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); } /* couleur-libre : ombre noire, valable dans les deux modes */
.liste-lignes { padding: 0; overflow: visible; display: block; }
.liste-lignes > .aucune { padding: 1.5rem 1rem; text-align: center; margin: 0; font-style: normal; color: var(--texte-doux); }
.tete-lignes, .ligne-activite { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; padding: 0.625rem 1rem; }
.tete-lignes { border-bottom: 1px solid var(--s-gris-1); font-size: max(var(--texte-min,11px), 0.75rem); font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--texte-doux); }
.tete-lignes .ligne-texte { padding-left: 3rem; }
.ligne-activite { min-height: 3.75rem; border-top: 1px solid var(--s-gris-1); box-sizing: border-box; }
.tete-lignes + .ligne-activite, .liste-lignes > .ligne-activite:first-child { border-top: 0; }
.ligne-activite:hover { background: var(--s-gris-0); }
.ligne-texte { flex: 1 1 18.75rem; min-width: 0; }
.ligne-texte h3 { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.5rem; font-size: max(var(--texte-min-lu,11px), 0.875rem); font-weight: 600; }
.ligne-texte .titre-lien { color: var(--texte); text-decoration: none; }
.ligne-texte a.titre-lien:hover { text-decoration: underline; }
.ligne-texte .meta { font-size: max(var(--texte-min,11px), 0.7813rem); color: var(--texte-doux); margin-top: 2px; overflow-wrap: anywhere; }
.ligne-texte .statut { margin: 0; }
.ligne-format { flex: 0 0 10.625rem; font-size: max(var(--texte-min-lu,11px), 0.8125rem); color: var(--texte-moyen); }
.ligne-questions { flex: 0 0 6.25rem; font-size: max(var(--texte-min-lu,11px), 0.8125rem); color: var(--texte-moyen); }
.ligne-activite .actions, .tete-lignes .actions { flex: 0 0 auto; min-width: 14.75rem; display: flex; justify-content: flex-end; align-items: center; gap: 0.375rem; }
.ligne-seance .actions { min-width: 0; flex-wrap: wrap; }
.ligne-activite:hover .bouton.go, .ligne-activite:focus-within .bouton.go { background: var(--primaire); border-color: var(--primaire); color: var(--primary-foreground); }
.sous-titre-liste { margin: 0; padding: 0.875rem 1rem 0.375rem; font-size: max(var(--texte-min,11px), 0.75rem); font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--texte-doux); }
.liste-lignes > p.aucune { border-top: 1px solid var(--s-gris-1); }
.menu-flottant { border: 1px solid var(--bordure); border-radius: 0.75rem; padding: 0.375rem; box-shadow: 0 12px 32px rgba(0, 0, 0, .12); width: 16.5rem; } /* couleur-libre : ombre noire, valable dans les deux modes */
.menu-flottant button { height: 2.125rem; border-radius: 0.375rem; font-size: max(var(--texte-min-lu,11px), 0.8125rem); font-weight: 500; }
.menu-flottant button:hover, .menu-flottant button:focus-visible { background: var(--discret); }
.menu-flottant button.danger { color: var(--danger-texte); border-top: 1px solid var(--s-gris-1); border-radius: 0 0 0.375rem 0.375rem; margin-top: 0.25rem; }
.menu-flottant button.danger:hover { background: var(--danger-fond); }
@media (max-width: 900px) {
  .tete-lignes { display: none; }
  .ligne-format, .ligne-questions { flex: 0 0 auto; font-size: max(var(--texte-min,11px), 0.75rem); color: var(--texte-doux); }
  .ligne-activite .actions { min-width: 0; flex: 1 1 100%; justify-content: flex-start; padding-left: 3rem; }
  .champ-recherche { flex: 1 1 100%; }
}

/* Les fenêtres : en-tête avec croix, formats en cartes, modèles par usage. */
dialog.fenetre { border: 1px solid var(--bordure); box-shadow: 0 24px 64px rgba(0, 0, 0, .25); } /* couleur-libre : ombre noire, valable dans les deux modes */
dialog.fenetre.fenetre-large { width: min(58.75rem, calc(100vw - 2rem)); }
.fenetre-corps { padding: 1.25rem 1.5rem; gap: 0.75rem; }
.fenetre-corps h2 { font-size: 1.125rem; font-weight: 700; }
.fenetre-corps h3 { color: var(--texte); font-size: max(var(--texte-min-lu,11px), 0.9375rem); font-weight: 700; margin: 0; }
.fenetre-corps select { height: 2.25rem; border-width: 1px; border-radius: 0.5rem; }
.fenetre-tete { display: flex; align-items: flex-start; gap: 0.75rem; }
.fenetre-tete > div { flex: 1; }
.fenetre-tete .aide-app { margin: 0.25rem 0 0; }
.fenetre-pied { padding-top: 0.75rem; border-top: 1px solid var(--bordure); margin: 0.25rem -1.5rem -1.25rem; padding: 0.75rem 1.5rem; background: var(--s-gris-0); border-radius: 0 0 1rem 1rem; }
.formats { grid-template-columns: repeat(auto-fit, minmax(16.25rem, 1fr)); gap: 0.625rem; }
.format-carte { flex-direction: row; align-items: flex-start; gap: 0.75rem; padding: 0.75rem 0.875rem; border: 1px solid var(--bordure); border-radius: 0.75rem; }
.format-carte:hover, .format-carte:focus-visible { border-color: var(--primaire); background: var(--s-gris-0); }
.format-carte > span:last-child { display: flex; flex-direction: column; gap: 0.1875rem; }
.format-carte b { font-size: max(var(--texte-min-lu,11px), 0.8438rem); }
.format-carte small { font-size: max(var(--texte-min,11px), 0.75rem); line-height: 1.4; }
.modeles-tete { display: flex; flex-wrap: wrap; align-items: center; gap: 0.625rem 0.75rem; padding-top: 1rem; margin-top: 0.25rem; border-top: 1px solid var(--s-gris-1); }
.modeles-tete h3 { flex: 1 1 12.5rem; }
.modeles-tete .champ-recherche { flex: 0 1 16.25rem; }
.usages { align-self: flex-start; }
.modeles { display: block; max-height: 42vh; overflow-y: auto; }
.modeles .etiquette { display: block; margin: 0.625rem 0 0.5rem; }
.modeles-groupe { display: grid; grid-template-columns: repeat(auto-fill, minmax(23.75rem, 1fr)); gap: 0.5rem; }
.modele-ligne { display: flex; align-items: center; gap: 0.75rem; width: 100%; padding: 0.625rem 0.75rem; border: 1px solid var(--bordure); border-radius: 0.75rem; background: var(--blanc); text-align: left; cursor: pointer; }
.modele-ligne:hover, .modele-ligne:focus-visible { border-color: var(--primaire); outline: none; }
.modele-texte { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.modele-texte b { font-size: max(var(--texte-min-lu,11px), 0.8438rem); font-weight: 600; }
.modele-texte small { font-size: max(var(--texte-min,11px), 0.75rem); color: var(--texte-doux); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.modele-texte em { font-style: normal; font-size: max(var(--texte-min,11px), 0.75rem); font-weight: 500; color: var(--texte-sur-muted); }
.vide-modeles { padding: 0.625rem 0.75rem; border-radius: 0.625rem; background: var(--discret); }
@media (max-width: 640px) { .modeles-groupe { grid-template-columns: 1fr; } }
dialog.fenetre.fenetre-question { width: min(27.5rem, calc(100vw - 2rem)); }
.fenetre-question input { height: 2.25rem; padding: 0 0.75rem; border: 1px solid var(--bordure); border-radius: 0.5rem; font-size: max(var(--texte-min-lu,11px), 0.875rem); }
.modele-ligne { flex-direction: row; border-style: solid; }
.biblio-outils .champ-recherche input, .modeles-tete .champ-recherche input { padding-left: 2.125rem; height: 2.25rem; border-width: 1px; }

/* « Lancer une séance » (lot 2) : chaque réglage sur une ligne, son titre à gauche, ses choix en cartes. */
#fenetre-lancer { width: min(58.75rem, calc(100vw - 2rem)); }
#form-lancer { gap: 0; max-height: calc(100vh - 4rem); overflow-y: auto; }
#form-lancer > h2 { margin-bottom: 0.25rem; }
#form-lancer > .aide-app { margin: 0 0 0.75rem; }
#form-lancer > label[for="lancer-nom"] { font-size: max(var(--texte-min-lu,11px), 0.8125rem); font-weight: 700; padding: 0.75rem 0 0.375rem; border-top: 1px solid var(--s-gris-1); }
#form-lancer > #lancer-nom { height: 2.25rem; padding: 0 0.75rem; border: 1px solid var(--bordure); border-radius: 0.5rem; font-size: max(var(--texte-min-lu,11px), 0.875rem); margin-bottom: 0.75rem; }
#form-lancer fieldset { position: relative; border: 0; border-top: 1px solid var(--s-gris-1); border-radius: 0; padding: 0.875rem 0 0.75rem 13.5rem; margin: 0; display: flex; flex-direction: row; flex-wrap: wrap; gap: 0.5rem; min-height: 2.5rem; }
#form-lancer fieldset > legend { position: absolute; left: 0; top: 1rem; width: 12.5rem; padding: 0; font-size: max(var(--texte-min-lu,11px), 0.8125rem); font-weight: 700; color: var(--texte); line-height: 1.35; }
#form-lancer fieldset > .aide-app, #form-lancer fieldset > div, #form-lancer fieldset > .case-ligne { flex: 1 1 100%; }
#form-lancer .choix-radio { flex: 1 1 12.5rem; gap: 0.625rem; padding: 0.625rem 0.75rem; border: 1px solid var(--bordure); border-radius: 0.625rem; background: var(--blanc); }
#form-lancer .choix-radio:hover { background: var(--s-gris-0); }
#form-lancer .choix-radio:has(input:checked) { border-color: var(--primaire); box-shadow: 0 0 0 1px var(--primaire); background: var(--s-gris-0); }
#form-lancer .choix-radio input, #form-lancer .case-ligne input { accent-color: var(--primaire); }
#form-lancer .choix-radio b { font-size: max(var(--texte-min-lu,11px), 0.8125rem); }
#form-lancer .choix-radio small { font-size: max(var(--texte-min,11px), 0.75rem); line-height: 1.4; }
#form-lancer .case-ligne { margin: 2px 0; font-size: max(var(--texte-min-lu,11px), 0.8125rem); }
#form-lancer textarea, #form-lancer input[type="datetime-local"] { border: 1px solid var(--bordure); border-radius: 0.5rem; padding: 0.5rem 0.625rem; font-size: max(var(--texte-min-lu,11px), 0.8438rem); }
.resume-lancer { margin: 0.5rem 0 0; padding: 0.625rem 0.75rem; border-radius: 0.625rem; background: var(--discret); font-size: max(var(--texte-min,11px), 0.7813rem); line-height: 1.5; color: var(--texte-moyen); }
.resume-lancer b { color: var(--texte); }
#form-lancer .fenetre-pied { position: sticky; bottom: -1.25rem; }
@media (max-width: 720px) {
  #form-lancer fieldset { padding-left: 0; padding-top: 2.5rem; }
  #form-lancer fieldset > legend { top: 0.875rem; width: auto; }
}

/* L'éditeur (lot 2) : la tête de page de XINERGI, trois cartes, l'aperçu du téléphone sans défilement visible. */
.editeur-page { max-width: none; }
.editeur-barre { margin: 0 0 1rem; gap: 0.75rem 1rem; }
.editeur-barre .titre { flex: 1 1 22.5rem; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.625rem; }
.editeur-barre h1 { margin: 0; font-size: 1.25rem; font-weight: 700; }
.editeur-barre .statut { margin: 0; }
.editeur-barre .actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.etat-enregistrement { display: inline-flex; align-items: center; gap: 0.3125rem; height: 1.375rem; padding: 0 0.5rem; border-radius: 999px; font-size: max(var(--texte-min,11px), 0.75rem); font-weight: 600; background: var(--discret); color: var(--texte-moyen); }
.etat-enregistrement.ok { background: var(--succes-fond); color: var(--succes-texte); }
.etat-enregistrement.ok::before { content: ''; width: 0.375rem; height: 0.375rem; border-radius: 999px; background: var(--succes); }
.etat-enregistrement.attente { background: var(--alerte-fond); color: var(--alerte-texte); }
.etat-enregistrement.echec { background: var(--danger-fond); color: var(--danger-texte); }
.editeur { grid-template-columns: 18.75rem minmax(0, 1fr) 25rem; gap: 1rem; }
.editeur-plan, .editeur-apercu, .editeur-centre { background: var(--blanc); border: 1px solid var(--bordure); border-radius: 1rem; box-shadow: none; padding: 1rem; }
.editeur-plan .champ-app label, .question-edition label { font-size: max(var(--texte-min,11px), 0.7813rem); font-weight: 600; color: var(--texte-moyen); }
.editeur-plan textarea, .question-edition textarea { border: 1px solid var(--bordure); border-radius: 0.5rem; font-size: max(var(--texte-min-lu,11px), 0.875rem); }
.app .champ-app input, .question-edition input { height: 2.25rem; border: 1px solid var(--bordure); border-radius: 0.5rem; }
.alerte-consigne { margin: 0 0 0.625rem; padding: 0.625rem 0.75rem; border-radius: 0.625rem; background: var(--alerte-fond); color: var(--warning-text); font-size: max(var(--texte-min,11px), 0.7813rem); line-height: 1.45; }
.alerte-consigne[hidden] { display: none; }
.plan-titre { font-size: max(var(--texte-min,11px), 0.75rem); font-weight: 700; letter-spacing: .09em; color: var(--texte-doux); }
.plan-q { border: 1px solid transparent; border-radius: 0.625rem; }
.plan-q:hover { background: var(--s-gris-0); }
.plan-q.actif { background: var(--s-gris-0); border-color: var(--primaire); }
.plan-q.fautive { border-color: var(--danger); background: var(--danger-fond); }
.plan-q .poignee { color: var(--s-icone-douce); }
.plan-ouvrir .n { background: var(--discret); color: var(--texte-moyen); border-radius: 999px; font-family: var(--police); font-variant-numeric: tabular-nums; font-weight: 600; }
.plan-q.actif .plan-ouvrir .n { background: var(--primaire); color: var(--primary-foreground); }
.plan-fleches button { width: 1.75rem; height: 1.25rem; border-radius: 0.375rem; }
.plan-fleches button:hover:not(:disabled) { background: var(--discret); color: var(--texte); }
.bouton.ajouter { border-style: solid; color: var(--texte); gap: 0.375rem; }
.bouton.ajouter.bouton-xina { color: var(--texte); }
.palette { padding: 0.25rem; border: 1px solid var(--bordure); border-radius: 0.625rem; gap: 0; }
.palette button { border: 0; border-radius: 0.5rem; padding: 0.5rem 0.625rem; }
.palette button:hover, .palette button:focus-visible { background: var(--discret); }
.palette button b, .palette button strong { font-size: max(var(--texte-min-lu,11px), 0.8125rem); }
.editeur-apercu .plan-titre { margin-top: 0; }
.telephone { width: 21.25rem; max-width: 100%; margin: 0 auto; border-radius: 2.5rem; background: #0a0a0a; padding: 0.625rem; box-sizing: border-box; } /* couleur-libre : cadre de téléphone : illustration, toujours sombre */
.telephone iframe { height: 37.5rem; border-radius: 1.875rem; background: var(--clair); }
.question-edition .bouton.danger { border-color: transparent; }
@media (max-width: 1280px) { .editeur { grid-template-columns: 17.5rem minmax(0, 1fr); } .editeur-apercu { grid-column: 1 / -1; position: static; } }
@media (max-width: 760px) { .editeur { grid-template-columns: 1fr; } }

/* Dans le cadre du téléphone de l'éditeur, le défilement reste possible mais ne se voit pas, et rien ne déborde. */
html.apercu, html.apercu body { overflow-x: hidden; scrollbar-width: none; }
html.apercu::-webkit-scrollbar, html.apercu body::-webkit-scrollbar { display: none; }
html.apercu .participant { max-width: 100%; box-sizing: border-box; }
html.apercu .participant img, html.apercu .participant iframe { max-width: 100%; }
.editeur-centre > .carte { border: 0; padding: 0; margin: 0; box-shadow: none; }
@media (max-width: 900px) {
  .barre-xs { box-shadow: none; }
  body.menu-ouvert .barre-xs { box-shadow: 0 0 40px rgba(0, 0, 0, .2); } /* couleur-libre : ombre noire, valable dans les deux modes */
}
@media (max-width: 640px) {
  .grille-seances { grid-template-columns: 1fr; gap: 0.5rem; }
  .carte-seance { padding: 0.625rem 0.75rem; gap: 0.375rem; }
  .carte-seance .code b { font-size: 1.125rem; }
  .carte-seance .actions .bouton { height: 2.5rem; }
  .biblio-tete .titre-page { font-size: 1.125rem; }
  .biblio-tete #nouvelle-reunion { display: none; }
  .filtres { max-width: 100%; overflow-x: auto; flex-wrap: nowrap; }
  .filtre { white-space: nowrap; }
}
.liste-saisie .lettre { background: var(--discret); color: var(--texte-moyen); font-family: var(--police); font-variant-numeric: tabular-nums; font-weight: 600; }
.lien-ajout { color: var(--texte); font-weight: 600; }
.app input[type="checkbox"], .app input[type="radio"] { accent-color: var(--primaire); }
.liste-saisie input { height: 2.25rem; border: 1px solid var(--bordure); border-radius: 0.5rem; }
/* Les réglages ne rétrécissent pas pour tenir dans la hauteur de la fenêtre : la fenêtre défile. */
#form-lancer > * { flex-shrink: 0; }
#form-lancer .reserve-membres { flex: 1 1 100%; padding: 2px 0 0; }
#form-lancer .reserve-membres .aide-app { margin: 2px 0 0 1.625rem; font-size: max(var(--texte-min,11px), 0.75rem); }

/* ======================================================================
   Lot 3 (8 octobre 2026) : l'identification des participants
   ====================================================================== */

/* Les messages d'erreur du téléphone, en rouge et précédés d'un cercle (ils étaient noirs). */
.participant .erreur { color: var(--danger-texte); font-size: max(var(--texte-min-lu,11px), 0.875rem); font-weight: 600; line-height: 1.4; }
.participant .erreur:not(:empty) { display: flex; gap: 0.5rem; align-items: flex-start; margin: 0.5rem 0 0; }
.participant .erreur:not(:empty)::before { content: '!'; flex: none; width: 1.125rem; height: 1.125rem; margin-top: 1px; border-radius: 999px; background: var(--danger-texte); color: var(--s-sur-plein); font-size: max(var(--texte-min,11px), 0.75rem); font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.participant .prenom label { font-size: max(var(--texte-min-lu,11px), 0.8125rem); font-weight: 600; color: var(--texte-moyen); margin-top: 0.75rem; }
.participant .prenom input { height: 3.25rem; font-size: 1.0625rem; }
.participant .prenom .aide { font-size: max(var(--texte-min-lu,11px), 0.8125rem); line-height: 1.5; color: var(--texte-doux); }

/* Le code : six cases dessinées par-dessus une seule saisie accessible. */
.saisie-code { position: relative; margin-top: 0.375rem; }
.saisie-code input.code-six { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; font-size: max(var(--texte-min-lu,11px), 1rem); letter-spacing: normal; }
.cases-code { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.5rem; pointer-events: none; }
.cases-code span { height: 3.5rem; border: 1px solid var(--s-bord-champ); border-radius: 0.75rem; background: var(--blanc); display: flex; align-items: center; justify-content: center; font-family: var(--police); font-variant-numeric: tabular-nums; font-size: 1.625rem; font-weight: 600; color: var(--texte); }
.cases-code span.pleine { border-color: var(--texte-doux); }
.cases-code span.courante { border-color: var(--storming); box-shadow: 0 0 0 3px color-mix(in srgb, var(--violet) 18%, transparent); }
.saisie-code:has(+ .erreur:not(:empty)) .cases-code span { border-color: var(--danger-texte); background: var(--danger-fond); }

/* Le choix « compte XINERGI » ou « autre organisation » : deux cartes de même poids, chacune expliquée. */
.participant .compte-verifie a.principal.bouton-lien, .participant .compte-verifie #compte-exterieur.bouton-large {
  display: flex; align-items: center; justify-content: flex-start; gap: 0.75rem; width: 100%; min-height: 4rem; margin-top: 0.875rem; padding: 0.75rem 1rem;
  border: 1px solid var(--s-bord-champ); border-radius: 0.875rem; background: var(--blanc); color: var(--texte); font-size: max(var(--texte-min-lu,11px), 0.9375rem); font-weight: 700; text-align: left; box-sizing: border-box; text-decoration: none;
}
.participant .compte-verifie a.principal.bouton-lien::after, .participant .compte-verifie #compte-exterieur.bouton-large::after {
  content: ''; margin-left: auto; flex: none; width: 0.5rem; height: 0.5rem; border-right: 2px solid var(--s-icone-douce); border-top: 2px solid var(--s-icone-douce); transform: rotate(45deg);
}
.participant .compte-verifie a.principal.bouton-lien::before, .participant .compte-verifie #compte-exterieur.bouton-large::before {
  flex: none; width: 2.25rem; height: 2.25rem; border-radius: 0.625rem; display: inline-flex; align-items: center; justify-content: center; font-size: max(var(--texte-min-lu,11px), 0.875rem); font-weight: 800;
}
.participant .compte-verifie a.principal.bouton-lien::before { content: 'X'; background: var(--primaire); color: var(--primary-foreground); }
.participant .compte-verifie #compte-exterieur.bouton-large::before { content: '@'; background: var(--storming-fond); color: var(--storming-texte); }
.participant .compte-verifie a.principal.bouton-lien:hover, .participant .compte-verifie #compte-exterieur.bouton-large:hover { border-color: var(--storming); }
.participant .compte-verifie .aide { margin: 0.375rem 2px 0; }

/* L'entrée réussie : « Bonjour Kossi » dans une carte, la pastille « Compte vérifié » en vert. */
.participant .bonjour { padding: 0.625rem 0.875rem; border: 1px solid var(--bordure); border-radius: 0.75rem; background: var(--blanc); font-size: max(var(--texte-min-lu,11px), 0.875rem); color: var(--texte-moyen); margin-bottom: 0.75rem; }
.participant .bonjour b { color: var(--texte); }
.pastille-verifie, .participant .bonjour .pastille-verifie, .console .connectes-liste .pastille-verifie {
  display: inline-flex; align-items: center; gap: 0.25rem; height: 1.375rem; padding: 0 0.5rem; border-radius: 999px; background: var(--succes-fond); color: var(--succes-texte); font-size: max(var(--texte-min,11px), 0.75rem); font-weight: 700; vertical-align: 1px;
}
.pastille-verifie::before { content: ''; width: 0.375rem; height: 0.375rem; border-radius: 999px; background: var(--succes); }
.console .connectes-liste .pastille-verifie { height: 1.125rem; font-size: max(var(--texte-min,11px), 0.75rem); margin-left: 0.25rem; }
.participant .bonjour .souvenir { margin: 0.375rem 0 0; font-size: max(var(--texte-min,11px), 0.7813rem); line-height: 1.45; color: var(--texte-doux); }

/* « Choisir pour moi » : un bouton secondaire en contour, à côté de la saisie du pseudo. */
.participant .choisir-pseudo { background: var(--blanc); border: 1px solid var(--s-bord-champ); border-radius: 0.75rem; font-size: max(var(--texte-min-lu,11px), 0.9375rem); font-weight: 600; color: var(--texte); }
.participant .choisir-pseudo:hover { border-color: var(--storming); }
.participant .bouton.secondaire { background: var(--blanc); border: 1px solid var(--s-bord-champ); color: var(--texte); }
.participant .bouton.secondaire:disabled { color: var(--texte-doux); background: var(--discret); }
.participant .compte-verifie #compte-exterieur.bouton-large { height: auto; white-space: normal; line-height: 1.3; }

/* ======================================================================
   Lot 4 (8 octobre 2026) : les écarts restants avec le canevas
   ====================================================================== */

/* Les chiffres de l'activité à l'écran, à côté du code de la séance. */
.bandeau-seance .chiffres { border-left: 1px solid var(--s-gris-1); }
.bandeau-seance .chiffres[hidden] { display: none; }
.bandeau-seance .chiffres b small.sur { font-family: var(--police); font-size: max(var(--texte-min-lu,11px), 0.8125rem); font-weight: 500; color: var(--texte-doux); letter-spacing: 0; text-transform: none; }
@media (max-width: 640px) { .bandeau-seance .chiffres { border-left: 0; border-top: 1px solid var(--s-gris-1); flex: 1 1 33%; } }

/* « Qui répond ? » : ce que le téléphone demandera, selon le mode choisi. */
#form-lancer .apercu-identification { flex: 1 1 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 0.625rem 1rem; padding: 0.75rem 0.875rem; border-radius: 0.75rem; background: var(--s-gris-0); border: 1px solid var(--s-gris-1); }
.apercu-identification .etiquette { flex: 1 1 100%; }
.apercu-identification .aide-app { flex: 1 1 12.5rem; margin: 0; }
.mini-tel { flex: none; width: 13.125rem; box-sizing: border-box; display: flex; flex-direction: column; gap: 0.375rem; padding: 0.75rem 0.625rem; border: 6px solid #0a0a0a; border-radius: 1.375rem; background: var(--clair); font-size: max(var(--texte-min,11px), 0.6875rem); } /* couleur-libre : cadre de téléphone : illustration, toujours sombre */
.mini-tel b { font-size: max(var(--texte-min,11px), 0.75rem); font-weight: 800; }
.mini-tel .ligne-tel { height: 0.5rem; border-radius: 0.25rem; background: var(--border); }
.mini-tel .ligne-tel.courte { width: 60%; }
.mini-tel .champ-tel { padding: 0.375rem 0.5rem; border: 1px solid var(--s-bord-champ); border-radius: 0.375rem; background: var(--card); color: var(--texte-doux); }
.mini-tel .bouton-tel { padding: 0.375rem 0.5rem; border-radius: 0.375rem; background: var(--storming); color: var(--s-sur-plein); font-weight: 700; text-align: center; }
.mini-tel .bouton-tel.contour { background: var(--card); color: var(--texte); border: 1px solid var(--s-bord-champ); }
.mini-tel .carte-tel { padding: 0.4375rem 0.5rem; border: 1px solid var(--s-bord-champ); border-radius: 0.5rem; background: var(--card); font-weight: 700; }

/* Le menu « … » d'une activité, sur un téléphone : une feuille qui monte du bas de l'écran. */
@media (max-width: 640px) {
  .menu-flottant { position: fixed !important; left: 0 !important; right: 0; top: auto !important; bottom: 0; width: auto; padding: 0.5rem 0.5rem calc(0.5rem + env(safe-area-inset-bottom)); border-radius: 1rem 1rem 0 0; box-shadow: 0 -12px 32px rgba(0, 0, 0, .18); z-index: 60; } /* couleur-libre : ombre noire, valable dans les deux modes */
  .menu-flottant button { height: 3rem; font-size: max(var(--texte-min-lu,11px), 0.9375rem); }
}

/* La vue Modèles en deux onglets (8 octobre 2026) : le motif d'onglets de XINERGI, un trait noir sous l'onglet actif. */
.onglets-modeles { display: flex; flex-wrap: wrap; gap: 0 1.25rem; padding: 0 1rem; border-bottom: 1px solid var(--bordure); }
.onglet-modeles { display: inline-flex; align-items: center; gap: 0.5rem; height: 2.75rem; padding: 0 2px; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; background: transparent; font-size: max(var(--texte-min-lu,11px), 0.8438rem); font-weight: 600; color: var(--texte-doux); cursor: pointer; }
.onglet-modeles:hover { color: var(--texte); }
.onglet-modeles.on { color: var(--texte); border-bottom-color: var(--primaire); }
.onglets-modeles + [role="tabpanel"] > .tete-lignes { border-top: 0; }

/* ---------- La liste « Bien démarrer dans Storming » (19 octobre 2026) ----------
   Une carte en tête de la bibliothèque. L'état de chaque tâche est écrit en toutes lettres, pas
   seulement par la coche. Jamais de bande colorée sur le bord d'une carte ou d'une ligne. */
.bien-demarrer { padding: 1.125rem 1.25rem; margin-bottom: 1.125rem; background: var(--blanc); }
.bd-tete { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.75rem; flex-wrap: wrap; }
.bd-tete h2 { font-size: max(var(--texte-min-lu,11px), 1rem); margin: 0 0 0.25rem; }
.bd-progression { margin: 0 0 0.5rem; color: var(--texte-moyen); font-size: max(var(--texte-min-lu,11px), 0.8125rem); }
.bd-progression span:first-child { font-family: var(--police); font-variant-numeric: tabular-nums; font-weight: 600; color: var(--texte); }
.bd-barre { height: 0.375rem; width: 13.75rem; max-width: 100%; border-radius: 999px; background: var(--discret); overflow: hidden; }
.bd-barre span { display: block; height: 100%; background: var(--storming); border-radius: 999px; }
.bd-outils { display: flex; gap: 0.375rem; flex-wrap: wrap; }
.bd-rappels { margin-top: 0.75rem; padding: 0.625rem 0.75rem; border-radius: 0.625rem; background: var(--info-fond); color: var(--info-texte); }
.bd-rappels p { margin: 0; }
.bd-liste { list-style: none; margin: 0.875rem 0 0; padding: 0; display: grid; gap: 2px; }
.bd-tache { display: grid; grid-template-columns: 1.375rem 1fr auto; gap: 0.625rem; align-items: start; padding: 0.625rem 0; border-top: 1px solid var(--bordure); }
.bd-coche { width: 1.25rem; height: 1.25rem; border-radius: 50%; border: 1.5px solid var(--bordure); display: inline-flex; align-items: center; justify-content: center; margin-top: 1px; }
.bd-done .bd-coche { background: var(--succes); border-color: var(--succes); color: var(--blanc); }
.bd-titre { margin: 0; }
.bd-done .bd-titre b { color: var(--texte-moyen); font-weight: 500; }
.bd-duree { color: var(--texte-doux); font-size: max(var(--texte-min,11px), 0.75rem); font-family: var(--police); font-variant-numeric: tabular-nums; }
.bd-facultatif { font-size: max(var(--texte-min,11px), 0.75rem); color: var(--texte-doux); border: 1px solid var(--bordure); border-radius: 999px; padding: 0 0.4375rem; }
.bd-etat { margin: 2px 0 0; font-size: max(var(--texte-min,11px), 0.7813rem); color: var(--texte-doux); }
.bd-snoozed .bd-etat { color: var(--alerte-texte); }
.bd-done .bd-etat { color: var(--succes-texte); }
.bd-tache .aide-app { margin: 0.25rem 0 0; }
.bd-actions { display: flex; gap: 0.375rem; flex-wrap: wrap; justify-content: flex-end; }
.bd-xina { display: inline-flex; align-items: center; gap: 0.375rem; }
.bd-xina .xina-orbite { width: 1rem; height: 1rem; }
.bd-roles { margin: 0 0 0.75rem; padding-left: 1.125rem; color: var(--texte-moyen); }
.essai-qr { display: flex; justify-content: center; margin: 0.75rem 0; }
.essai-qr svg { width: 12.5rem; height: 12.5rem; background: var(--surface-document); border: 1px solid var(--bord-document); border-radius: 0.5rem; padding: 0.5rem; box-sizing: content-box; } /* le code QR reste sur fond blanc, jeton de la coquille */
.xina-relecture { margin-top: 0.625rem; }
@media (max-width: 640px) {
  .bd-tache { grid-template-columns: 1.375rem 1fr; }
  .bd-actions { grid-column: 2; justify-content: flex-start; }
  .bd-actions .bouton { min-height: 2.75rem; }
}

/* L'écran « Votre première activité » de l'accueil. */
.choix-premiere { display: grid; grid-template-columns: 1fr 1fr; gap: 0.875rem; margin: 1rem 0; }
.choix-premiere-bloc { border: 1px solid var(--bordure); border-radius: 0.75rem; padding: 0.875rem 1rem; display: flex; flex-direction: column; gap: 0.5rem; align-items: flex-start; }
.choix-premiere-bloc h2 { font-size: max(var(--texte-min-lu,11px), 0.9375rem); margin: 0; }
.choix-premiere-bloc form { display: flex; flex-direction: column; gap: 0.5rem; width: 100%; }
.choix-premiere-bloc textarea { width: 100%; }
@media (max-width: 640px) { .choix-premiere { grid-template-columns: 1fr; } }

/* La page « Organisation » des paramètres : trois cartes, la même présentation dans tous les espaces (contrat du 19 octobre 2026). */
.org-carte { padding: 1.75rem 2rem; margin-bottom: 1.25rem; }
.org-tete { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.org-titre { display: flex; gap: 0.75rem; align-items: flex-start; }
.org-titre .icone-org { color: var(--texte-doux); margin-top: 1px; flex: none; }
.org-titre h2 { margin: 0; font-size: max(var(--texte-min-lu,11px), 1rem); font-weight: 900; letter-spacing: -.01em; line-height: 1.3; }
.org-titre .aide-app { margin: 2px 0 0; font-size: max(var(--texte-min,11px), 0.75rem); }
.org-boutons { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.org-boutons .bouton { display: inline-flex; align-items: center; gap: 0.5rem; }
.org-champs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem 2.5rem; margin: 0; }
.org-champ { min-width: 0; }
.org-champ.large { grid-column: 1 / -1; }
.org-champ dt { font-size: max(var(--texte-min,11px), 0.75rem); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--texte-doux); margin-bottom: 0.25rem; }
.org-champ dd { margin: 0; font-size: max(var(--texte-min-lu,11px), 0.9375rem); font-weight: 500; overflow-wrap: anywhere; display: flex; flex-direction: column; gap: 0.25rem; align-items: flex-start; }
.org-champ dd .vide { color: var(--texte-doux); }
.org-champ dd small { color: var(--texte-doux); font-size: max(var(--texte-min,11px), 0.75rem); }
.org-champ input { width: 100%; }
.org-pied { margin: 1.5rem 0 0; padding-top: 0.875rem; border-top: 1px solid var(--bordure); font-size: max(var(--texte-min,11px), 0.75rem); color: var(--texte-doux); }
.org-xina { display: flex; align-items: center; gap: 0.5rem; margin: 0 0 1rem; padding: 0.625rem 0.875rem; border-radius: 0.75rem; background: var(--discret); }
.org-logo-vide { display: flex; align-items: center; justify-content: center; width: 4rem; height: 4rem; border: 2px dashed var(--bordure); border-radius: 1rem; color: var(--texte-doux); }
.org-identite { display: flex; gap: 1.5rem; align-items: flex-start; }
.org-identite .org-champs { flex: 1; min-width: 0; }
.org-logo-bloc { display: flex; flex-direction: column; gap: 0.375rem; align-items: flex-start; flex: none; max-width: 9rem; }
.org-logo-bloc label, .org-logo-titre { font-size: max(var(--texte-min,11px), 0.75rem); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--texte-doux); }
.org-logo-bloc small { color: var(--texte-doux); font-size: max(var(--texte-min,11px), 0.75rem); }
.org-sous-titre { margin: 1.5rem 0 1rem; padding-top: 1rem; border-top: 1px solid var(--bordure); font-size: max(var(--texte-min,11px), 0.75rem); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--texte-doux); }
.identite-logo { max-height: 4rem; max-width: 8rem; object-fit: contain; }
#identite .bandeau-limite { display: flex; align-items: center; gap: 0.5rem; }
@media (max-width: 900px) { .org-champs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Représentation légale : deux champs sur deux lignes (représentant puis son titre, signataire puis son titre), un seul champ par ligne sur mobile. */
.org-carte-deux-colonnes .org-champs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 640px) { .org-carte { padding: 1.125rem 1rem; } .org-champs, .org-carte-deux-colonnes .org-champs { grid-template-columns: 1fr; gap: 1rem; } .org-identite { flex-direction: column; gap: 1rem; } }

/* La case du représentant légal : sa ligne de lecture, sa case en saisie, et le bloc Signataire qui se replie sans quitter le formulaire. */
.org-signe { display: flex; align-items: center; gap: 0.5rem; margin: 1.25rem 0 0; font-size: max(var(--texte-min-lu,11px), 0.9375rem); font-weight: 500; }
.org-signe .icone-org { color: var(--texte-doux); flex: none; }
.org-case-signe { display: flex; align-items: center; gap: 0.5rem; margin: 1.25rem 0 0; font-size: max(var(--texte-min-lu,11px), 0.9375rem); font-weight: 500; }
.org-carte [data-signataire] { margin-top: 1.25rem; }
.org-carte [data-signataire][hidden] { display: none; }

/* Le bouton « Déposer votre RCCM : Xina le lit » : l'orbite de Xina tourne et un halo violet pulse (contrat du 19 octobre 2026, soir). */
.xina-btn { border-color: var(--accent-ai); position: relative; animation: xina-halo 2.4s ease-in-out infinite; }
.xina-btn .xina-orbite { width: 1.25rem; height: 1.25rem; flex: none; animation: xina-tour 1.6s linear infinite; }
@keyframes xina-halo { 0%, 100% { box-shadow: 0 0 0 0 rgba(139, 45, 255, .35); } 50% { box-shadow: 0 0 0 6px rgba(139, 45, 255, 0); } } /* couleur-libre : halo de la marque Xina */
@media (prefers-reduced-motion: reduce) { .xina-btn, .xina-btn .xina-orbite { animation: none; } }

/* L'accueil de l'organisation : une page sans menu (la coquille de l'animateur n'y est pas montée). */
body.accueil { padding-left: var(--marge-page); }
body.accueil .en-tete-app .qui { margin-left: auto; }

/* Un tableau dont la valeur est la comparaison des colonnes défile dans son conteneur, avec une ombre de chaque côté
   quand il reste du contenu (SPEC 7.3, en CSS seul). */
.tableau-defile { /* couleur-libre : ombres de défilement : transparence neutre, la couleur de fond est le jeton --card */
  overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; /* couleur-libre : ombres de défilement : transparence neutre, la couleur de fond est le jeton --card */
  background: /* couleur-libre : ombres de défilement : transparence neutre, la couleur de fond est le jeton --card */
    linear-gradient(to right, var(--card) 30%, rgb(255 255 255 / 0)) left center / 24px 100% no-repeat local, /* couleur-libre : ombres de défilement : transparence neutre, la couleur de fond est le jeton --card */
    linear-gradient(to left, var(--card) 30%, rgb(255 255 255 / 0)) right center / 24px 100% no-repeat local, /* couleur-libre : ombres de défilement : transparence neutre, la couleur de fond est le jeton --card */
    linear-gradient(to right, rgb(0 0 0 / .12), rgb(0 0 0 / 0)) left center / 10px 100% no-repeat scroll, /* couleur-libre : ombres de défilement : transparence neutre, la couleur de fond est le jeton --card */
    linear-gradient(to left, rgb(0 0 0 / .12), rgb(0 0 0 / 0)) right center / 10px 100% no-repeat scroll; /* couleur-libre : ombres de défilement : transparence neutre, la couleur de fond est le jeton --card */
}
.tableau-defile > table { min-width: 30rem; }

/* Le logo entier sans nom de module (coquille v1.3.6) : 15 px de haut, comme dans Keycloak. */
.logo-entier { display: block; height: 15px; width: auto; flex: none; }
.logo-entier.logo-sombre, html.dark .logo-entier.logo-clair { display: none; }
html.dark .logo-entier.logo-sombre { display: block; }
