:root {
  --fond: #f6f7f9;
  --surface: #ffffff;
  --texte: #1c2330;
  --discret: #5d6777;
  --bordure: #dde2ea;
  --accent: #2456d6;
  --accent-texte: #ffffff;
  --accent-doux: #e8eefc;
  --erreur: #b42318;
  --code: #f0f2f5;
  --sens-vente: #2456d6; --sens-vente-fond: #e8eefc;
  --sens-achat: #9a4d0b; --sens-achat-fond: #fdf0e1;
  --logo-encre: #0f172a; --logo-point: #2456d6;
  --souverain: #1a7f4b; --souverain-fond: #e3f4ea; --hors: #8a5a00; --hors-fond: #fbf0d9;
  --symbole-trait: #e7ebf1; --symbole-plein: #eceff4; --symbole-point: #dbe4fb;
  --largeur-menu: 264px;
  --largeur-barre: 76px;
  /* Barre des produits (sombre dans les deux thèmes) et couleurs de KatIA, reprises de Factomos. */
  --barre-fond: #0f172a; --barre-texte: #cbd5e1; --barre-survol: rgb(255 255 255 / .08);
  --katia: #c95a34; --katia-fond: #feefea; --katia-trait: #e8a48c; --katia-encre: #8e3f1f;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --fond: #11151c;
    --surface: #181e27;
    --texte: #e6e9ef;
    --discret: #9aa4b4;
    --bordure: #2a3240;
    --accent: #6d95ff;
    --accent-texte: #0b1020;
    --accent-doux: #1e2a45;
    --erreur: #ff8a7a;
    --code: #222a36;
    --sens-vente: #8fb0ff; --sens-vente-fond: #1e2a45;
    --sens-achat: #f0b46e; --sens-achat-fond: #3a2814;
    --logo-encre: #e6e9ef; --logo-point: #6d95ff;
    --souverain: #6fd49e; --souverain-fond: #163826; --hors: #f0c36e; --hors-fond: #3a2c10;
    --symbole-trait: #171c25; --symbole-plein: #19202a; --symbole-point: #1c2640;
    color-scheme: dark;
  }
}

/* Nunito (licence OFL), servie par l'interface : la politique de sécurité n'autorise aucune police externe. */
@font-face {
  font-family: "Nunito"; src: url("polices/nunito.woff2") format("woff2");
  font-weight: 200 1000; font-style: normal; font-display: swap;
}
:root { --police-titres: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  display: flex;
  flex-direction: column;
}
button { font: inherit; cursor: pointer; }
.discret { color: var(--discret); }
.erreur { color: var(--erreur); }

.marque { font-weight: 650; display: flex; align-items: center; gap: 10px; }
.marque-bloc { display: flex; flex-direction: column; gap: 1px; }
/* Numéro de version, sous le nom (aligné sur lui : symbole de 28 px + écart de 10 px). */
.version { align-self: flex-start; margin-left: 38px; font-size: .7em; line-height: 1.2; color: var(--discret);
  font-variant-numeric: tabular-nums; letter-spacing: .02em; text-decoration: none; border-radius: 4px; }
.version:hover, .version[aria-current="page"] { color: var(--accent); text-decoration: underline; }
.version:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* Logo (gabarits/_logo.html) : couleurs par variables, clair ou sombre selon le thème du système. */
.logo-trait { stroke: var(--logo-encre); }
.logo-plein { fill: var(--logo-encre); }
.logo-point { fill: var(--logo-point); }
.logo-symbole, .logo-nom { display: block; flex: none; }
h1 { font-family: var(--police-titres); font-weight: 750; letter-spacing: -0.01em; }
.pastille {
  font-size: .72em; font-weight: 600; text-transform: uppercase; letter-spacing: .04em;
  padding: 2px 8px; border-radius: 99px; background: var(--accent-doux); color: var(--accent);
}

button.secondaire, button.lien { background: none; border: 1px solid var(--bordure); color: var(--texte);
  border-radius: 8px; padding: 6px 10px; }
button.lien { border: 0; color: var(--discret); padding: 6px 0; text-decoration: underline; }

/* Connexion : la marque à gauche (toujours sur fond encre), le formulaire à droite ; empilés sur téléphone. */
.connexion-page { flex: 1; display: flex; flex-wrap: wrap; min-height: 100vh; }
.connexion-marque {
  --logo-encre: #f1f5f9; --logo-point: #6d95ff;
  flex: 1 1 480px; position: relative; overflow: hidden; display: flex; flex-direction: column;
  justify-content: space-between; gap: 48px; padding: 48px 56px; background: #0f172a; color: #f1f5f9;
}
.connexion-marque > * { position: relative; }
.connexion-marque .marque { gap: 17px; }
.connexion-marque .pastille { background: #1e2a45; color: #8fb0ff; font-size: .8em; }
.connexion-decor { position: absolute !important; right: -150px; bottom: -170px; width: 560px; height: 560px; }
.connexion-decor .logo-trait { stroke: #1e293b; }
.connexion-decor .logo-plein { fill: #1e293b; }
.connexion-decor .logo-point { fill: #22325a; }
.connexion-promesse { display: flex; flex-direction: column; gap: 16px; max-width: 30rem; }
.connexion-promesse h2 { margin: 0; font-family: var(--police-titres); font-size: 2.5em; font-weight: 750;
  line-height: 1.15; letter-spacing: -0.01em; }
.connexion-promesse p { margin: 0; font-size: 1.06em; line-height: 1.6; color: #b6c0cf; }
.connexion-pied { margin: 0; font-size: .82em; color: #9aa4b4; }
.connexion { flex: 1 1 420px; display: grid; place-items: center; padding: 48px 24px; }
.connexion .carte { background: none; border: 0; padding: 0; gap: 18px; }
.connexion .carte h1 { font-size: 1.9em; }
.connexion button[type="submit"] { padding: 13px 16px; min-height: 48px; font-size: 1em; }
.connexion input { padding: 12px 14px; font-size: 1em; background: var(--surface); }
@media (max-width: 600px) {
  .connexion-marque { padding: 32px 24px; gap: 32px; }
  .connexion-promesse h2 { font-size: 1.8em; }
}
.carte {
  width: min(100%, 380px); background: var(--surface); border: 1px solid var(--bordure);
  border-radius: 14px; padding: 28px; display: flex; flex-direction: column; gap: 14px;
}
.carte h1 { margin: 0; font-size: 1.35em; }
.carte p { margin: 0; }
label { display: flex; flex-direction: column; gap: 6px; font-size: .92em; font-weight: 550; }
input, textarea {
  font: inherit; color: var(--texte); background: var(--fond); border: 1px solid var(--bordure);
  border-radius: 9px; padding: 10px 12px; width: 100%;
}
input:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
button[type="submit"] {
  background: var(--accent); color: var(--accent-texte); border: 0; border-radius: 9px;
  padding: 10px 16px; font-weight: 600;
}
button[disabled] { opacity: .55; cursor: progress; }

/* Cadre de l'application : menu latéral fixe à gauche (panneau sur téléphone), contenu à droite, symbole Copernic
   fixé en bas à droite de la fenêtre, sous le contenu, quel que soit le défilement. */
body.avec-menu { display: block; padding-left: calc(var(--largeur-barre) + var(--largeur-menu)); }
body.avec-barre:not(.avec-menu) { padding-left: var(--largeur-barre); }

/* Barre des produits, à gauche du menu : Copernic et KatIA. */
.barre-produits { position: fixed; top: 0; bottom: 0; left: 0; z-index: 21; width: var(--largeur-barre);
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 0;
  background: var(--barre-fond); color: var(--barre-texte); }
.produit { position: relative; width: 64px; display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 8px 0 6px; border-radius: 12px; color: var(--barre-texte); text-decoration: none; font-size: .7em;
  font-weight: 700; }
.produit:hover { background: var(--barre-survol); }
.produit[aria-current="page"] { background: rgb(255 255 255 / .1); color: #ffffff; }
.produit:focus-visible, .produit-compte:focus-visible { outline: 2px solid #8fb0ff; outline-offset: 2px; }
.produit-icone { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px;
  border: 1.5px solid #334155; box-sizing: border-box; }
.produit-icone svg:not(.logo-symbole) { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round;
  stroke-linejoin: round; }
.produit .logo-trait { stroke: currentColor; }
.produit .logo-plein { fill: currentColor; }
.produit .logo-point { fill: #8fb0ff; }
.produit-copernic[aria-current="page"] .produit-icone { background: #2456d6; border-color: #2456d6; }
.produit-copernic[aria-current="page"] .logo-point { fill: #bcd0ff; }
.produit-katia .produit-icone { border: 2px dashed #f78360; color: #f78360; }
.produit-katia[aria-current="page"] .produit-icone { background: var(--katia); border: 0; color: #ffffff; }
.produit-enola .produit-icone { border: 1.5px solid rgb(255 255 255 / .22); }
.produit-enola .grappe-feuille { fill: #5c8f22; stroke: none; }
.produit-enola .grappe-grain { fill: #c2184a; stroke: none; }
.produit-bientot .grappe-feuille, .produit-bientot .grappe-grain { fill: #94a3b8; }
.produit-enola[aria-current="page"] .produit-icone { background: rgb(255 255 255 / .08); border-color: rgb(255 255 255 / .35); }
.produit-bientot .produit-icone { border-color: #64748b; color: #94a3b8; }
.produit-etat { margin-top: -2px; font-size: .9em; font-weight: 600; color: #94a3b8; }
.produit-compte { margin-top: auto; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: #1e293b; color: #e2e8f0; font-size: .75em; font-weight: 700; text-decoration: none; }
body.avec-menu .produit-compte { display: none; }  /* le menu du compte est déjà en bas du menu de Copernic */
.app-contenu { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; }
body.page-chat .app-contenu { height: 100vh; min-height: 0; }
.fond-symbole { position: fixed; right: -160px; bottom: -170px; width: 540px; height: 540px; z-index: 0;
  pointer-events: none; }
.fond-symbole .logo-trait { stroke: var(--symbole-trait); }
.fond-symbole .logo-plein { fill: var(--symbole-plein); }
.fond-symbole .logo-point { fill: var(--symbole-point); }
.lien-evitement { position: absolute; left: -9999px; }
.lien-evitement:focus { left: 12px; top: 12px; z-index: 50; padding: 8px 12px; border-radius: 8px;
  background: var(--surface); color: var(--accent); }

.menu-lateral { position: fixed; top: 0; bottom: 0; left: var(--largeur-barre); z-index: 20; width: var(--largeur-menu);
  display: flex; flex-direction: column; gap: 18px; padding: 18px 14px 14px; overflow-y: auto;
  background: var(--surface); border-right: 1px solid var(--bordure); }
.menu-lateral svg:not(.logo-symbole):not(.logo-nom), .barre-mobile .bouton-icone svg {
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.menu-lateral-haut { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 6px; }
.fermer-menu { display: none !important; }
.nouvelle-question { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px;
  border-radius: 12px; background: var(--accent); color: var(--accent-texte); font-weight: 650; text-decoration: none; }
.nouvelle-question:hover { filter: brightness(1.08); }
.nouvelle-question:focus-visible, .menu-lien:focus-visible, .carte-factomos:focus-visible, .bouton-icone:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px; }
.menu-sections { display: flex; flex-direction: column; gap: 18px; }
.menu-section { display: flex; flex-direction: column; gap: 2px; }
.menu-titre { margin: 0 0 4px; padding: 0 10px; font-size: .72em; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--discret); }
.menu-lien { display: flex; align-items: center; gap: 10px; min-height: 40px; min-width: 0; padding: 0 10px;
  border-radius: 10px; color: var(--texte); text-decoration: none; font-size: .92em; }
.menu-lien:hover { background: var(--fond); }
.menu-lien svg { color: var(--discret); }
.menu-lien[aria-current="page"] { background: var(--accent-doux); color: var(--accent); font-weight: 650; }
.menu-lien[aria-current="page"] svg { color: inherit; }
.menu-recente span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-lien-texte { flex: 1; }
.menu-vide { margin: 0; padding: 2px 10px 6px; font-size: .84em; color: var(--discret); }
.menu-compteur { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center;
  font-size: .75em; font-weight: 700; background: var(--hors-fond); color: var(--hors); }
.menu-compteur-critique { background: color-mix(in srgb, var(--erreur) 16%, var(--surface)); color: var(--erreur); }
.menu-lateral-bas { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.carte-factomos { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px;
  background: var(--fond); color: var(--texte); text-decoration: none; font-size: .86em; }
.carte-factomos > span:last-child { display: flex; flex-direction: column; line-height: 1.3; }
.carte-factomos:hover { background: var(--accent-doux); }
.etat-point { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--discret); }
.etat-point-ok { background: var(--souverain); }
.menu-lateral .menu-compte-bouton { width: 100%; min-height: 48px; padding: 6px 10px 6px 6px; border-radius: 12px; }
.menu-lateral .menu-compte-initiales { width: 32px; height: 32px; }
.menu-compte-identite { flex: 1; min-width: 0; display: flex; flex-direction: column; text-align: left; line-height: 1.25; }
.menu-compte-identite .discret { font-size: .8em; }
.menu-compte-nom { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-lateral .menu-compte-liste { top: auto; bottom: calc(100% + 8px); left: 0; right: 0; min-width: 0; }
.menu-lateral .version { margin: 0 10px; }

.bouton-icone { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 10px;
  background: none; color: var(--texte); }
.bouton-icone:hover { background: var(--fond); }
.barre-mobile { display: none; }
.voile-menu { position: fixed; inset: 0; z-index: 15; background: rgb(15 23 42 / .45); }
@media (max-width: 900px) {
  body.avec-menu, body.avec-barre:not(.avec-menu) { padding-left: 0; }
  /* Sur téléphone et tablette, la barre des produits devient une bande en haut de la page. */
  .barre-produits { position: static; width: auto; flex-direction: row; justify-content: flex-start; gap: 4px;
    padding: 6px 8px; }
  .produit { width: auto; flex-direction: row; gap: 8px; padding: 4px 12px 4px 4px; font-size: .82em; }
  .produit-icone { width: 32px; height: 32px; border-radius: 10px; }
  .produit-etat { margin: 0; }
  .produit-compte { margin: 0 0 0 auto; width: 32px; height: 32px; }
  body.avec-menu .produit-compte { display: none; }
  .menu-lateral { left: 0; }
  .barre-mobile { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between;
    gap: 8px; padding: 6px 8px; background: var(--surface); border-bottom: 1px solid var(--bordure); }
  .barre-mobile .marque { gap: 8px; }
  .menu-lateral { width: min(316px, 86vw); transform: translateX(-100%); transition: transform .2s ease;
    box-shadow: 8px 0 32px rgb(15 23 42 / .18); }
  body.menu-ouvert .menu-lateral { transform: none; }
  .fermer-menu { display: grid !important; }
  body.page-chat .app-contenu { height: calc(100dvh - 57px); }
  .fond-symbole { width: 320px; height: 320px; right: -110px; bottom: -120px; }
}
@media (prefers-reduced-motion: reduce) { .menu-lateral { transition: none; } }
@media print {
  .menu-lateral, .barre-mobile, .barre-produits, .fond-symbole, .lien-evitement, .voile-menu { display: none !important; }
  body.avec-menu, body.avec-barre { padding-left: 0; }
}

/* Chat */
.chat {
  flex: 1; min-height: 0; width: min(100%, 860px); margin: 0 auto; padding: 0 16px;
  display: flex; flex-direction: column;
}
.accueil { padding: 28px 0 8px; overflow-y: auto; }
.accueil-entete { text-align: center; padding: 20px 0 6px; }
.accueil-entete .discret { max-width: 40rem; margin: 0 auto; }
.etiquette-essai { display: inline-block; font-size: .72em; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 999px; background: var(--hors-fond); color: var(--hors); }
.accueil h1 { font-size: 2em; line-height: 1.2; margin: 12px 0 8px; }
.chat-barre { padding-top: 12px; }
.chat-barre:has(#nouvelle[hidden]) { display: none; }
.intentions { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-top: 22px; }
.intention { display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 14px 16px; border-radius: 12px;
  border: 1.5px solid var(--bordure); background: var(--surface); color: var(--texte); font: inherit; cursor: pointer; }
.intention:hover { border-color: var(--accent); }
.intention[aria-selected="true"] { border-color: var(--accent); background: var(--accent-doux); }
.intention-titre { font-size: 1.1em; font-weight: 700; }
.intention[aria-selected="true"] .intention-titre { color: var(--accent); }
.intention .discret { font-size: .88em; line-height: 1.4; }
.intention-themes { margin-top: 4px; }
.theme { border: 1px solid var(--bordure); border-radius: 12px; background: var(--surface); margin-top: 14px; }
.theme summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px; padding: 14px 16px; }
.theme summary::-webkit-details-marker { display: none; }
.theme summary:hover .theme-question { color: var(--accent); }
.theme-texte { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.theme-question { font-size: 1.15em; font-weight: 650; line-height: 1.3; }
.theme-sens { align-self: flex-start; font-size: .75em; font-weight: 600; letter-spacing: .02em; padding: 2px 8px;
  border-radius: 999px; background: var(--sens-vente-fond); color: var(--sens-vente); }
.theme-sens-achat { background: var(--sens-achat-fond); color: var(--sens-achat); }
.theme-sens-contexte { background: var(--hors-fond); color: var(--hors); }
.theme-texte .discret { font-size: .9em; }
.theme-bascule::after { content: "Voir les exemples ▾"; white-space: nowrap; font-size: .85em; color: var(--accent); }
.theme[open] .theme-bascule::after { content: "Masquer ▴"; }
.theme .exemples { padding: 0 16px 16px; margin-top: 0; }
.exemples { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 20px; }
.groupe { display: flex; flex-direction: column; gap: 8px; }
.groupe h2 { font-size: .8em; text-transform: uppercase; letter-spacing: .05em; color: var(--discret); margin: 0; }
.exemple {
  text-align: left; background: var(--surface); color: var(--texte); border: 1px solid var(--bordure);
  border-radius: 10px; padding: 10px 12px; font-size: .92em; line-height: 1.4;
}
.exemple:hover { border-color: var(--accent); background: var(--accent-doux); }

.fil { flex: 1; overflow-y: auto; padding: 16px 0; display: flex; flex-direction: column; gap: 16px; }
.fil:empty { display: none; }
.message { max-width: 100%; }
.message.utilisateur {
  align-self: flex-end; max-width: 85%; background: var(--accent-doux); border-radius: 14px 14px 4px 14px;
  padding: 10px 14px; white-space: pre-wrap;
}
.message.assistant { background: var(--surface); border: 1px solid var(--bordure); border-radius: 14px; padding: 14px 16px; }
.message.assistant .corps { white-space: pre-wrap; }
.message.assistant .corps.rendu { white-space: normal; }
.corps p:first-child { margin-top: 0; }
.corps p:last-child { margin-bottom: 0; }
.corps table { border-collapse: collapse; margin: 10px 0; font-size: .92em; display: block; overflow-x: auto; }
.corps th, .corps td { border: 1px solid var(--bordure); padding: 5px 9px; text-align: left; }
.corps th { background: var(--fond); }
.corps code { background: var(--code); padding: 1px 5px; border-radius: 5px; font-size: .9em; }

.etapes { list-style: none; margin: 0 0 10px; padding: 0; font-size: .86em; color: var(--discret);
  display: flex; flex-direction: column; gap: 4px; }
.etapes li::before { content: "↳ "; color: var(--accent); }
.etapes details { display: inline; }
.etapes summary { cursor: pointer; display: inline; }
.etapes pre { margin: 6px 0 4px; padding: 8px 10px; background: var(--code); border-radius: 8px;
  white-space: pre-wrap; word-break: break-word; font-size: .92em; }
.attente { color: var(--discret); font-size: .9em; }
.attente::after { content: "…"; animation: points 1.2s steps(4, end) infinite; display: inline-block; width: 1.2em; overflow: hidden; vertical-align: bottom; }
@keyframes points { from { width: 0; } to { width: 1.2em; } }
.pied { margin-top: 10px; font-size: .78em; color: var(--discret); }

.saisie { display: flex; flex-direction: column; gap: 8px; margin: 12px 0 16px; padding: 12px; background: var(--surface);
  border: 1px solid var(--bordure); border-radius: 16px; box-shadow: 0 8px 28px -14px rgb(15 23 42 / .3); }
.saisie:focus-within { border-color: var(--accent); }
.saisie textarea { border: 0; background: transparent; }
.saisie textarea:focus { outline: none; }
.saisie-ligne { display: flex; gap: 10px; align-items: flex-end; }
/* Dictée : bouton micro rond à côté d'« Envoyer », rouge et pulsant pendant l'enregistrement. */
.dicter { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px;
  padding: 0; border: 1px solid var(--bordure); border-radius: 50%; background: var(--surface); color: var(--texte);
  cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none; }
.dicter:hover { border-color: var(--accent); color: var(--accent); }
.dicter:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.dicter svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dicter.enregistre { background: var(--erreur); border-color: var(--erreur); color: var(--surface);
  animation: dicter-pulsation 1.2s ease-in-out infinite; }
@keyframes dicter-pulsation { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--erreur) 25%, transparent); } }
@media (prefers-reduced-motion: reduce) { .dicter.enregistre { animation: none; } }
.dictee-etat { flex-basis: 100%; color: var(--discret); }
.dictee-etat.erreur { color: var(--erreur); }
.saisie textarea { resize: none; min-height: 48px; max-height: 200px; }
.saisie-options { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: .85em; }
.saisie-modele { flex-direction: row; align-items: center; gap: 8px; font-weight: 550; color: var(--discret);
  max-width: 100%; min-width: 0; }
.saisie-modele select {
  font: inherit; font-weight: 500; color: var(--texte); background: var(--surface); border: 1px solid var(--bordure);
  border-radius: 8px; padding: 5px 8px; max-width: 100%; min-width: 0; text-overflow: ellipsis;
}
.saisie-modele select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
/* Hébergement du modèle : France (Scaleway), Europe ou hors d'Europe (OpenRouter). */
.souverainete { display: inline-block; font-size: .85em; font-weight: 650; padding: 1px 8px; border-radius: 999px;
  background: var(--hors-fond); color: var(--hors); white-space: nowrap; }
.souverainete::before { content: "↗ "; }
.souverainete.niveau-france { background: var(--souverain-fond); color: var(--souverain); }
.souverainete.niveau-france::before { content: "● "; }
.souverainete.niveau-europe { background: var(--accent-doux); color: var(--accent); }
.souverainete.niveau-europe::before { content: "◐ "; }
.souverainete:empty { display: none; }

@media (max-width: 600px) {
  .accueil h1 { font-size: 1.6em; }
  #modele-note, #modele-legende-prix { display: none; }
  .saisie textarea { min-height: 44px; }
  .theme summary { flex-direction: column; align-items: flex-start; gap: 8px; }
  .message.utilisateur { max-width: 95%; }
}

/* Navigation */
a.marque { color: inherit; text-decoration: none; }
.filtre-historique a {
  color: var(--discret); text-decoration: none; padding: 6px 10px; border-radius: 8px; font-size: .92em;
}
.filtre-historique a:hover { color: var(--texte); background: var(--fond); }
.filtre-historique a[aria-current="page"] {
  color: var(--accent); background: var(--accent-doux); font-weight: 600;
}
.retour { padding: 4px 0 0; }

/* Historique */
.historique { width: min(100%, 1200px); margin: 0 auto; padding: 24px 16px 40px; }
.titre-historique { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.titre-historique h1 { margin: 0; font-size: 1.4em; }
.filtre-historique { display: flex; gap: 4px; }
.totaux { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 20px 0; }
.totaux > div { background: var(--surface); border: 1px solid var(--bordure); border-radius: 12px; padding: 12px 14px;
  display: flex; flex-direction: column; }
.totaux .chiffre { font-size: 1.4em; font-weight: 650; font-variant-numeric: tabular-nums; }
.defilement { overflow-x: auto; background: var(--surface); border: 1px solid var(--bordure); border-radius: 12px; }
.tableau { width: 100%; border-collapse: collapse; font-size: .9em; }
.tableau th, .tableau td { padding: 10px 12px; border-bottom: 1px solid var(--bordure); text-align: left; vertical-align: top; }
.tableau tbody tr:last-child td { border-bottom: 0; }
.tableau th { font-size: .8em; text-transform: uppercase; letter-spacing: .04em; color: var(--discret); font-weight: 600; }
.tableau .nombre { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tableau .date { white-space: nowrap; }
.tableau tbody th { font-size: 1em; text-transform: none; letter-spacing: 0; color: var(--texte); font-weight: 700; }
.tableau tbody th .discret { display: block; font-size: .85em; font-weight: 400; }
.tableau tbody tr:last-child th { border-bottom: 0; }
.tableau .ligne-total th, .tableau .ligne-total td { font-weight: 700; border-top: 2px solid var(--bordure); }
.tableau .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85em; white-space: nowrap; }
.tableau .demande { min-width: 320px; max-width: 560px; }
.tableau .demande summary { cursor: pointer; font-weight: 550; }
.tableau .demande .corps { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--bordure); }
.tableau .demande .etapes { margin-top: 8px; }
.tableau tr.en-erreur td:first-child { box-shadow: inset 3px 0 0 var(--erreur); }
.legende { font-size: .8em; margin-top: 8px; }
.pages { display: flex; justify-content: space-between; margin-top: 12px; }
/* Gestion des utilisateurs (administrateur principal) */
.form-role { display: flex; gap: 6px; align-items: center; }
.form-role select, .form-nouvel-utilisateur select { font: inherit; color: var(--texte); background: var(--surface);
  border: 1px solid var(--bordure); border-radius: 8px; padding: 5px 8px; }
.form-role button[type="submit"] { background: none; color: var(--texte); border: 1px solid var(--bordure);
  padding: 5px 10px; font-size: .9em; font-weight: 550; }
.form-role button[type="submit"]:hover { border-color: var(--accent); color: var(--accent); }
.form-nouvel-utilisateur select { padding: 10px 12px; }
.gestion-utilisateurs td a { color: var(--accent); text-decoration: none; }
.gestion-utilisateurs td a:hover { text-decoration: underline; }
.role { display: inline-block; font-size: .85em; font-weight: 650; padding: 2px 9px; border-radius: 999px;
  background: var(--accent-doux); color: var(--accent); }
.compte-desactive td { opacity: .6; }
.compte-desactive td:last-child { opacity: 1; }
.form-role button.bouton-desactiver:hover { border-color: var(--erreur); color: var(--erreur); }
.nouvel-utilisateur { margin-top: 28px; }
.nouvel-utilisateur h2 { font-size: 1.1em; margin: 0 0 12px; }
.form-nouvel-utilisateur { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px;
  align-items: end; }
.form-nouvel-utilisateur input { background: var(--surface); }
.encart-mot-de-passe { background: var(--souverain-fond); border: 1px solid var(--souverain); border-radius: 12px;
  padding: 14px 16px; margin: 0 0 18px; }
.encart-mot-de-passe p { margin: 0 0 8px; }
.mot-de-passe-ligne { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.mot-de-passe-ligne code { font-size: 1.1em; padding: 6px 10px; background: var(--surface); border-radius: 8px;
  user-select: all; overflow-wrap: anywhere; }
.message-ok { color: var(--souverain); font-weight: 600; }

/* Journal d'activité (administrateur) */
.filtres-journal { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px; margin: 0 0 16px; font-size: .9em; }
.filtres-journal label { gap: 4px; }
.filtres-journal select, .filtres-journal input { font: inherit; color: var(--texte); background: var(--surface);
  border: 1px solid var(--bordure); border-radius: 8px; padding: 6px 8px; width: auto; }
.filtres-journal a { color: var(--accent); align-self: center; }
.tableau-journal { font-size: .86em; }
.tableau-journal .journal-detail { min-width: 220px; max-width: 420px; }
.tableau-journal .journal-detail > span { display: block; overflow-wrap: anywhere; }
.tableau-journal .journal-origine { max-width: 220px; }
.tableau-journal td > a:not(.journal-evenement) { color: var(--accent); text-decoration: none; }
.tableau-journal td > a:not(.journal-evenement):hover { text-decoration: underline; }
.journal-evenement { color: var(--texte); font-weight: 600; text-decoration: none; white-space: nowrap; }
.journal-evenement:hover { color: var(--accent); }
.tableau-journal tr.evenement-connexion td:first-child { box-shadow: inset 3px 0 0 var(--souverain); }
.tableau-journal tr.evenement-connexion_refusee td:first-child,
.tableau-journal tr.evenement-connexion_bloquee td:first-child { box-shadow: inset 3px 0 0 var(--erreur); }
.pages a { color: var(--accent); }

@media (max-width: 600px) {
  .bandeau { flex-wrap: wrap; }
  /* Onglets sur leur propre ligne, défilant à l'horizontale plutôt que de déborder de l'écran. */
  .navigation { order: 3; width: 100%; margin: 0; overflow-x: auto; scrollbar-width: none; }
  .navigation a { flex: none; white-space: nowrap; }
}

/* Le bouton de déconnexion garde l'apparence d'un lien (la règle générale des boutons d'envoi ne s'applique pas). */
.bandeau button.lien { background: none; color: var(--discret); padding: 6px 0; font-weight: 400; border-radius: 0; }
.bandeau button.lien:hover { color: var(--texte); }

/* Visuels des réponses (dessinés par le serveur, visuels.py) */
:root {
  --v-c0: #2456d6; --v-c1: #0e7a6d; --v-c2: #b45309; --v-c3: #6b4fbb; --v-c4: #be185d; --v-c5: #5d6777;
  --v-bon: #15803d; --v-bon-doux: #e7f6ec; --v-moyen: #b45309; --v-moyen-doux: #fef3e2;
  --v-alerte: #b42318; --v-alerte-doux: #fdecea;
}
@media (prefers-color-scheme: dark) {
  :root {
    --v-c0: #6d95ff; --v-c1: #4fc3b3; --v-c2: #e0a458; --v-c3: #a58cf0; --v-c4: #f07fb0; --v-c5: #9aa4b4;
    --v-bon: #4ade80; --v-bon-doux: #133022; --v-moyen: #f2b25c; --v-moyen-doux: #33260f;
    --v-alerte: #ff8a7a; --v-alerte-doux: #3a1a17;
  }
}
.visuel { margin: 16px 0; padding: 14px 16px 12px; background: var(--fond); border: 1px solid var(--bordure); border-radius: 12px; }
.visuel svg { display: block; width: 100%; height: auto; overflow: visible; }
.visuel text { font-family: inherit; text-anchor: middle; }
.v-titre { font-weight: 650; margin: 0 0 10px; }
.v-note { margin: 8px 0 0 !important; font-size: .86em; color: var(--discret); }
.v-indisponible { font-size: .86em; color: var(--discret); font-style: italic; }
.v-axe { stroke: var(--discret); stroke-width: 1.5; }
.v-grille { stroke: var(--bordure); stroke-width: 1; }
.v-graduation { fill: var(--discret); font-size: 12px; }
.v-graduation.v-droite { text-anchor: end !important; }
.v-bande { fill: var(--accent-doux); stroke: var(--accent); stroke-width: 1; stroke-dasharray: 4 3; }
.v-legende-bande { fill: var(--discret); font-size: 12px; }
.v-mediane { stroke: var(--accent); stroke-width: 3; }
.v-etiquette-mediane { fill: var(--accent); font-size: 13px; font-weight: 650; }
.v-vous { stroke: var(--surface); stroke-width: 3; fill: var(--texte); }
.v-etiquette-vous { font-size: 14px; font-weight: 700; fill: var(--texte); }
.v-vous.v-bon, .v-carte.v-bon .v-valeur { fill: var(--v-bon); color: var(--v-bon); }
.v-vous.v-moyen { fill: var(--v-moyen); }
.v-vous.v-alerte, .v-carte.v-alerte .v-valeur { fill: var(--v-alerte); color: var(--v-alerte); }
.v-etiquette-vous.v-bon { fill: var(--v-bon); }
.v-etiquette-vous.v-moyen { fill: var(--v-moyen); }
.v-etiquette-vous.v-alerte { fill: var(--v-alerte); }
.v-libelle-barre { fill: var(--texte); font-size: 13px; text-anchor: end !important; }
.v-libelle-barre.v-fort { font-weight: 700; }
.v-barre { fill: var(--v-c0); background: var(--v-c0); }
.v-barre-vous { stroke: var(--texte); stroke-width: 2; }
.v-barre-comparaison { fill: var(--v-c5); background: var(--v-c5); opacity: .55; }
.v-valeur-barre { fill: var(--texte); font-size: 12.5px; font-weight: 600; text-anchor: start !important; }
.v-valeur-barre.v-discret { fill: var(--discret); font-weight: 400; }
.v-courbe { fill: none; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.v-point { stroke: var(--fond); stroke-width: 1.5; }
.v-valeur-fin { font-size: 12px; font-weight: 700; }
.v-segment { stroke: var(--fond); stroke-width: 2; }
.v-texte-segment { fill: #fff; font-size: 12.5px; font-weight: 700; }
.v-c0 { stroke: var(--v-c0); fill: var(--v-c0); } .v-c1 { stroke: var(--v-c1); fill: var(--v-c1); }
.v-c2 { stroke: var(--v-c2); fill: var(--v-c2); } .v-c3 { stroke: var(--v-c3); fill: var(--v-c3); }
.v-c4 { stroke: var(--v-c4); fill: var(--v-c4); } .v-c5 { stroke: var(--v-c5); fill: var(--v-c5); }
.v-courbe.v-c0, .v-courbe.v-c1, .v-courbe.v-c2, .v-courbe.v-c3, .v-courbe.v-c4, .v-courbe.v-c5 { fill: none; }
.v-valeur-fin { stroke: none; }
.v-fond-c0 { fill: var(--v-c0); background: var(--v-c0); } .v-fond-c1 { fill: var(--v-c1); background: var(--v-c1); }
.v-fond-c2 { fill: var(--v-c2); background: var(--v-c2); } .v-fond-c3 { fill: var(--v-c3); background: var(--v-c3); }
.v-fond-c4 { fill: var(--v-c4); background: var(--v-c4); } .v-fond-c5 { fill: var(--v-c5); background: var(--v-c5); }
.v-legende { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin: 8px 0 0 !important; font-size: .86em; color: var(--discret); }
.v-pastille { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: -8px; vertical-align: middle; }
.v-cartes { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
/* Pistes d'action : cartes numérotées, la fonction Factomos en mention discrète. */
.v-pistes { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: piste;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.v-piste { counter-increment: piste; display: flex; flex-direction: column; gap: 6px; padding: 12px 14px;
  background: var(--surface); border: 1px solid var(--bordure); border-radius: 10px; }
.v-piste strong::before { content: counter(piste) ". "; color: var(--accent); }
.v-piste p { margin: 0; font-size: .92em; color: var(--discret); }
.v-piste .v-factomos { margin-top: auto; padding-top: 6px; border-top: 1px dashed var(--bordure); color: var(--texte); }
.v-factomos span { display: inline-block; margin-right: 4px; padding: 1px 7px; border-radius: 99px; font-size: .8em;
  font-weight: 650; background: var(--accent-doux); color: var(--accent); }
.v-carte { background: var(--surface); border: 1px solid var(--bordure); border-radius: 10px; padding: 12px 14px;
  display: flex; flex-direction: column; gap: 2px; }
.v-valeur { font-size: 1.6em; font-weight: 700; line-height: 1.15; color: var(--accent); font-variant-numeric: tabular-nums; }
.v-libelle { font-weight: 600; font-size: .92em; }
.v-detail { color: var(--discret); font-size: .84em; line-height: 1.35; }
.v-groupe { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.v-groupe dl { margin: 0; display: grid; gap: 8px; }
.v-groupe dl div { display: grid; grid-template-columns: 7.5em 1fr; gap: 8px; }
.v-groupe dt { color: var(--discret); font-size: .86em; }
.v-groupe dd { margin: 0; font-weight: 600; }
.v-echelle { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: .86em; }
.v-echelle li { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 8px; color: var(--discret); }
.v-echelle li span { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: .8em;
  font-weight: 700; border: 1.5px solid var(--bordure); flex: none; }
.v-echelle li.v-plus-fin { text-decoration: line-through; opacity: .7; }
.v-echelle li.v-retenu { background: var(--accent-doux); color: var(--accent); font-weight: 650; }
.v-echelle li.v-retenu span { background: var(--accent); border-color: var(--accent); color: var(--accent-texte); }
.v-echelle li:has(.v-niveau) { padding: 0; }
.v-niveau { display: flex; align-items: center; gap: 8px; width: 100%; padding: 5px 8px; border: 1px dashed var(--bordure);
  border-radius: 8px; background: none; color: var(--texte); font: inherit; text-align: left; cursor: pointer; }
.v-niveau em { margin-left: auto; font-style: normal; font-size: .9em; color: var(--accent); font-weight: 600; }
.v-niveau:hover, .v-niveau:focus-visible { border-color: var(--accent); border-style: solid; }
.visuel-attente { margin: 12px 0; padding: 18px; border: 1px dashed var(--bordure); border-radius: 12px; color: var(--discret);
  font-size: .9em; text-align: center; }
.actions-reponse { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.actions-reponse a, .bouton-secondaire { font-size: .85em; padding: 5px 12px; border: 1px solid var(--bordure);
  border-radius: 8px; color: var(--texte); text-decoration: none; background: var(--surface); }
.actions-reponse a:hover, .bouton-secondaire:hover { border-color: var(--accent); color: var(--accent); }
.actions-reponse button { font-family: inherit; cursor: pointer; }
.actions-reponse button[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
@media (max-width: 600px) {
  .v-groupe { grid-template-columns: 1fr; }
  .v-groupe dl div { grid-template-columns: 6.5em 1fr; }
}

/* Page d'une réponse (artefact) */
.artefact-page { flex: 1; width: min(100%, 900px); margin: 0 auto; padding: 24px 16px 60px; }
body.autonome { display: block; height: auto; }
.artefact { background: var(--surface); border: 1px solid var(--bordure); border-radius: 16px; padding: 28px 32px; line-height: 1.6; }
.artefact-surtitre { margin: 0; font-size: .76em; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--accent); }
.artefact-entete h1 { font-size: 1.45em; line-height: 1.3; margin: 6px 0 4px; }
.artefact-entete { border-bottom: 1px solid var(--bordure); padding-bottom: 14px; margin-bottom: 18px; }
.artefact-entete .discret { margin: 0; font-size: .88em; }
.artefact-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.artefact-actions button.secondaire { font-size: .85em; padding: 5px 12px; }
.artefact-methode { margin-top: 20px; font-size: .9em; }
.artefact-methode summary { cursor: pointer; color: var(--accent); font-weight: 600; }
.artefact-pied { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--bordure); font-size: .82em; }
@media (max-width: 600px) { .artefact { padding: 20px 16px; } }
@media print {
  .bandeau, .artefact-actions, .artefact-methode { display: none !important; }
  body { background: #fff; }
  .artefact { border: 0; padding: 0; }
  .visuel { break-inside: avoid; }
}

/* Menu du compte, sous le nom de l'utilisateur */
.menu-compte { position: relative; }
.menu-compte-bouton { display: flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border-radius: 99px;
  border: 1px solid var(--bordure); background: var(--surface); color: var(--texte); font-size: .95em; min-height: 36px; }
.menu-compte-bouton:hover, .menu-compte-bouton[aria-expanded="true"] { border-color: var(--accent); }
.menu-compte-bouton:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.menu-compte-initiales { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-doux); color: var(--accent); font-size: .78em; font-weight: 700; letter-spacing: .02em; }
.menu-compte-chevron, .menu-compte-liste svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round;
  stroke-linejoin: round; flex: none; }
.menu-compte-chevron { color: var(--discret); transition: transform .15s ease; }
.menu-compte-bouton[aria-expanded="true"] .menu-compte-chevron { transform: rotate(180deg); }
.menu-compte-liste { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; min-width: 250px; padding: 6px;
  background: var(--surface); border: 1px solid var(--bordure); border-radius: 12px;
  box-shadow: 0 12px 32px -12px rgb(0 0 0 / .35); }
.menu-compte-liste[hidden] { display: none; }
.menu-compte-entete { margin: 4px 10px 8px; padding-bottom: 8px; border-bottom: 1px solid var(--bordure);
  font-size: .82em; color: var(--discret); }
.menu-compte-liste form { margin: 0; border-top: 1px solid var(--bordure); margin-top: 6px; padding-top: 6px; }
.menu-compte-liste [role="menuitem"] { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px;
  border: 0; border-radius: 8px; background: none; color: var(--texte); font: inherit; font-size: .95em; font-weight: 500;
  text-align: left; text-decoration: none; cursor: pointer; }
.menu-compte-liste [role="menuitem"]:hover, .menu-compte-liste [role="menuitem"]:focus-visible {
  background: var(--accent-doux); color: var(--accent); outline: none; }

/* Présentation de Copernic (onboarding), en surimpression */
.onboarding { width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 0;
  border-radius: 18px; background: var(--surface); color: var(--texte); box-shadow: 0 24px 64px -16px rgb(0 0 0 / .45); }
.onboarding::backdrop { background: rgb(15 23 42 / .55); backdrop-filter: blur(3px); }
.onb-cadre { position: relative; display: flex; flex-direction: column; gap: 20px; padding: 32px 32px 24px; }
.onb-fermer { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; border: 0;
  background: none; color: var(--discret); display: grid; place-items: center; }
.onb-fermer:hover { background: var(--fond); color: var(--texte); }
.onb-fermer svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.onb-etape { display: flex; flex-direction: column; gap: 10px; min-height: 330px; }
.onb-etape[hidden] { display: none; }
.onb-etape h2 { margin: 0; font-family: var(--police-titres); font-weight: 750; font-size: 1.45em; line-height: 1.25;
  letter-spacing: -.01em; }
.onb-etape p { margin: 0; line-height: 1.6; }
.onb-surtitre { font-size: .76em !important; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); }
.onb-note { padding: 10px 14px; border-radius: 10px; background: var(--fond); color: var(--discret); font-size: .92em; }
.onb-liste { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; line-height: 1.55; }
.onb-visuel { display: flex; align-items: center; justify-content: center; min-height: 96px; margin-bottom: 6px;
  padding: 16px; border-radius: 14px; background: var(--fond); }
.onb-visuel-logo { background: none; padding: 0; min-height: 0; justify-content: flex-start; }
.onb-etape > .onb-visuel:first-child:not(.onb-visuel-logo) { margin-top: 28px; }  /* sous le bouton de fermeture */
.onb-bulle { max-width: 380px; padding: 10px 14px; border-radius: 14px 14px 4px 14px; background: var(--accent);
  color: var(--accent-texte); font-size: .92em; line-height: 1.45; }
.onb-schema { width: 100%; max-width: 340px; height: auto; }
.onb-intentions { align-items: stretch; gap: 10px; padding: 12px; }
.onb-intentions > div { flex: 1; display: flex; flex-direction: column; gap: 2px; padding: 12px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--bordure); }
.onb-intentions > div > span:not(.onb-bulle) { font-size: .85em; color: var(--discret); }
.onb-intentions .onb-bulle { margin-top: 8px; font-size: .85em; }
.onb-demande { flex-direction: column; gap: 8px; }
.onb-marque { padding: 0 4px; border-radius: 4px; background: rgb(255 255 255 / .22); font-weight: 700; }
.onb-legende { font-size: .82em; color: var(--discret); }
.onb-nouveaute { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid var(--bordure);
  border-radius: 10px; color: var(--texte); text-decoration: none; font-size: .92em; }
.onb-nouveaute:hover { border-color: var(--accent); background: var(--accent-doux); }
.onb-nouveaute > span:last-child { margin-left: auto; color: var(--accent); }
.onb-s-fond { fill: var(--bordure); }
.onb-s-groupe { fill: var(--accent); opacity: .35; }
.onb-s-mediane { stroke: var(--accent); stroke-width: 2.5; stroke-dasharray: 4 3; }
.onb-s-vous { fill: var(--logo-point); }
.onb-s-texte { fill: var(--discret); font-size: 11px; text-anchor: middle; font-family: inherit; }
.onb-s-vous-texte { fill: var(--texte); font-weight: 700; }
.onb-sens { flex-direction: column; gap: 8px; }
.onb-sens .theme-sens { align-self: center; font-size: .85em; }
.onb-chiffres { gap: 12px; }
.onb-chiffres span { flex: 1; text-align: center; font-size: .88em; color: var(--discret); line-height: 1.35; }
.onb-chiffres strong { display: block; font-family: var(--police-titres); font-size: 2em; color: var(--accent); }
.onb-onglets { margin: 4px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.onb-onglets div { padding: 12px 14px; border: 1px solid var(--bordure); border-radius: 12px; }
.onb-onglets dt { font-weight: 650; }
.onb-onglets dd { margin: 2px 0 0; font-size: .9em; color: var(--discret); line-height: 1.4; }
.onb-pied { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding-top: 16px;
  border-top: 1px solid var(--bordure); }
.onb-points { display: flex; gap: 6px; }
.onb-point { width: 8px; height: 8px; border-radius: 99px; background: var(--bordure); transition: width .2s ease; }
.onb-point.actif { width: 22px; background: var(--accent); }
.onb-progression { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.onb-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.onb-actions button { min-height: 40px; padding: 8px 16px; border-radius: 9px; font-weight: 600; }
.onb-passer { border: 0; background: none; color: var(--discret); }
.onb-passer:hover { color: var(--texte); }
.onb-suivant { border: 0; background: var(--accent); color: var(--accent-texte); }
.onb-actions [hidden] { display: none; }
@media (max-width: 600px) {
  .onb-cadre { padding: 28px 20px 20px; }
  .onb-etape { min-height: 0; }
  .onb-onglets { grid-template-columns: 1fr; }
  .onb-intentions { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { .onb-point, .menu-compte-chevron { transition: none; } }
/* Supervision : alertes, gravité, analyses */
.liste-alertes { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.liste-alertes li { background: var(--surface); border: 1px solid var(--bordure); border-radius: 10px; padding: 10px 12px; }
.gravite { display: inline-block; font-size: .8em; font-weight: 650; padding: 1px 8px; border-radius: 999px; margin-right: 6px; }
.gravite-critique { background: color-mix(in srgb, var(--erreur) 14%, var(--surface)); color: var(--erreur); }
.gravite-attention { background: var(--hors-fond); color: var(--hors); }
.gravite-ok { background: var(--souverain-fond); color: var(--souverain); }
.analyse, .analyse-precedente { background: var(--surface); border: 1px solid var(--bordure); border-radius: 12px; padding: 14px 18px; }
.analyse .rendu h3, .analyse-precedente .rendu h3 { font-size: 1em; margin: 12px 0 6px; }
.analyse-precedente { margin-bottom: 8px; padding: 10px 14px; }
.analyse-precedente summary { cursor: pointer; font-weight: 550; }

/* Pages : en-tête commun (surtitre, titre, informations ou actions à droite) */
.page { width: min(100%, 1180px); margin: 0 auto; padding: 32px 24px 64px; }
.entete-page { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 24px;
  margin-bottom: 20px; }
.entete-page h1 { margin: 0; font-size: 1.75em; line-height: 1.2; }
.surtitre { margin: 0; font-size: .82em; color: var(--discret); }
.entete-meta { margin: 0; color: var(--discret); font-size: .9em; }
.petite { font-size: .8em; margin: 0; }

/* Supervision : état général, colonne principale, indicateurs à droite */
.supervision h2 { font-family: var(--police-titres); font-size: 1.2em; margin: 0 0 10px; }
.supervision h3 { font-size: .95em; margin: 18px 0 8px; }
.etat-general { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; padding: 18px 22px;
  border-radius: 16px; border: 1px solid var(--bordure); margin-bottom: 24px; }
.etat-general-texte { flex: 999 1 380px; min-width: 0; }
.etat-general-texte p { margin: 0; }
.etat-etiquette { font-size: .78em; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.etat-titre { font-family: var(--police-titres); font-weight: 800; font-size: 1.3em; line-height: 1.3; color: var(--texte);
  margin: 2px 0 4px !important; }
.etat-ok { background: var(--souverain-fond); } .etat-ok .etat-etiquette { color: var(--souverain); }
.etat-attention { background: var(--hors-fond); } .etat-attention .etat-etiquette { color: var(--hors); }
.etat-critique { background: color-mix(in srgb, var(--erreur) 12%, var(--surface)); }
.etat-critique .etat-etiquette { color: var(--erreur); }
.etat-compteurs { flex: 1 1 320px; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.etat-compteurs div { background: var(--surface); border-radius: 12px; padding: 8px 12px; }
.etat-compteurs dt { font-size: .8em; color: var(--discret); }
.etat-compteurs dd { margin: 0; font-size: 1.5em; font-weight: 700; font-variant-numeric: tabular-nums; }
.supervision-colonnes { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 24px; }
.supervision-principal { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.supervision-indicateurs { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.bloc-indicateurs { background: var(--surface); border: 1px solid var(--bordure); border-radius: 14px; padding: 14px 16px;
  display: flex; flex-direction: column; gap: 10px; }
.bloc-indicateurs h2 { font-size: 1em !important; margin: 0 !important; }
.bloc-indicateurs h3 { margin: 6px 0 0 !important; font-size: .78em !important; text-transform: uppercase; letter-spacing: .05em;
  color: var(--discret); }
.jauge-ligne { display: flex; justify-content: space-between; gap: 8px; font-size: .88em; }
.jauge-piste { display: block; width: 100%; height: 14px; margin-top: 2px; }
.jauge-fond { fill: var(--bordure); }
.jauge-remplie { fill: var(--accent); }
.jauge-alerte { fill: var(--hors); }
.jauge-seuil { fill: var(--hors); }
.chiffres-indicateurs { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.chiffres-indicateurs dt { font-size: .8em; color: var(--discret); }
.chiffres-indicateurs dd { margin: 0; font-size: 1.3em; font-weight: 700; font-variant-numeric: tabular-nums; }
.liste-services { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: .88em; }
.liste-services li { display: flex; align-items: center; gap: 8px; }
.liste-services li .discret { margin-left: auto; text-align: right; }
.details-conteneurs summary { cursor: pointer; font-size: .85em; color: var(--accent); }
.details-conteneurs .liste-services { margin-top: 8px; }
.liste-erreurs { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: .82em; }
.liste-erreurs li { display: flex; flex-direction: column; gap: 3px; overflow-wrap: anywhere; }
.liste-erreurs code { display: block; padding: 4px 6px; border-radius: 6px; background: var(--code); font-size: .92em; }
.puces-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0 0 10px; font-size: .82em;
  color: var(--discret); }
.encadre-droits { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px;
  background: var(--surface); border: 1px solid var(--bordure); border-radius: 14px; padding: 16px 18px; font-size: .9em; }
.encadre-droits h2 { grid-column: 1 / -1; font-size: 1em !important; margin: 0 !important; }
.encadre-droits p { margin: 0; }
.droit-ok, .droit-non, .droit-lit { font-weight: 650; margin-bottom: 2px !important; }
.droit-ok { color: var(--souverain); } .droit-non { color: var(--hors); } .droit-lit { color: var(--texte); }

/* Historique : questions groupées par jour */
.historique .filtre-historique { padding: 3px; border-radius: 12px; background: var(--bordure); }
.historique .filtre-historique a { padding: 7px 12px; border-radius: 9px; }
.historique .filtre-historique a[aria-current="page"] { background: var(--surface); color: var(--texte); }
.jour { margin-top: 20px; }
.jour-titre { margin: 0 0 8px; font-size: .78em; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: var(--discret); }
.liste-echanges { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--bordure);
  border-radius: 14px; }
.echange + .echange { border-top: 1px solid var(--bordure); }
.echange > details > summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; padding: 14px 18px;
  cursor: pointer; list-style: none; }
.echange > details > summary::-webkit-details-marker { display: none; }
.echange > details > summary:hover { background: var(--fond); border-radius: 14px; }
.echange > details > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 14px; }
.echange-question { font-weight: 650; }
.echange-heure, .echange-cout { color: var(--discret); font-size: .85em; text-align: right; font-variant-numeric: tabular-nums; }
.echange-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; color: var(--discret); font-size: .85em; }
.echange.en-erreur .echange-question::before { content: "● "; color: var(--erreur); }
.echange-detail { padding: 4px 18px 16px; border-top: 1px dashed var(--bordure); }
.echange-technique { margin: 12px 0 0; font-size: .8em; color: var(--discret); }
.bouton-principal { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 10px;
  background: var(--accent); color: var(--accent-texte); font-weight: 650; text-decoration: none; }
.bouton-principal:hover { filter: brightness(1.08); }
.bouton-principal:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.etat-titre, .liste-alertes li { overflow-wrap: anywhere; }

/* Supervision : tâches à valider et dialogue avec l'agent */
.compteur-titre { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 7px; margin-left: 6px;
  border-radius: 999px; background: var(--hors-fond); color: var(--hors); font-size: .7em; vertical-align: middle; }
.liste-taches { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.tache { background: var(--surface); border: 1px solid var(--bordure); border-radius: 14px; padding: 14px 16px;
  display: flex; flex-direction: column; gap: 6px; overflow-wrap: anywhere; }
.tache p { margin: 0; }
.tache-entete { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.urgence { font-size: .75em; font-weight: 700; padding: 1px 9px; border-radius: 999px; }
.urgence-haute { background: color-mix(in srgb, var(--erreur) 14%, var(--surface)); color: var(--erreur); }
.urgence-normale { background: var(--hors-fond); color: var(--hors); }
.urgence-basse { background: var(--code); color: var(--discret); }
.tache-action { font-size: .92em; }
.tache-attente { color: var(--accent); font-weight: 600; font-size: .9em; }
.tache-boutons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.tache-boutons form { margin: 0; }
.tache-boutons button { min-height: 40px; }
.tache-boutons button.bouton-refuser { background: none; color: var(--texte); border: 1px solid var(--bordure); }
.tache-boutons button.bouton-refuser:hover { border-color: var(--erreur); color: var(--erreur); }
.taches-decidees { margin-top: 10px; }
.taches-decidees summary { cursor: pointer; color: var(--accent); font-size: .9em; margin-bottom: 8px; }
.dialogue { background: var(--surface); border: 1px solid var(--bordure); border-radius: 16px; padding: 16px 18px;
  display: flex; flex-direction: column; gap: 10px; }
.dialogue p.petite { margin: -4px 0 0; }
.dialogue-fil { display: flex; flex-direction: column; gap: 12px; }
.dialogue-fil:empty { display: none; }
.dialogue-fil .message.assistant { background: var(--fond); }
.dialogue-suggestions { display: flex; flex-wrap: wrap; gap: 6px; }
.dialogue-suggestions button { min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--bordure);
  background: var(--surface); color: var(--accent); font-size: .85em; }
.dialogue-suggestions button:hover { border-color: var(--accent); background: var(--accent-doux); }
.dialogue-saisie { display: flex; gap: 8px; align-items: flex-end; }
.dialogue-saisie textarea { resize: vertical; min-height: 44px; }

/* Formulaire de l'assistant (bloc ```formulaire, statique/formulaires.js) : sur ordinateur, une carte de questions
   (tous les champs, contrôlés et traduits en direct) ; sur téléphone, une question à la fois. */
.formulaire-agent { margin: 14px 0 4px; }
.formulaire-agent > fieldset { margin: 0; padding: 0; min-width: 0; border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--bordure));
  border-radius: 16px; background: var(--surface); overflow: hidden;
  box-shadow: 0 10px 30px -18px color-mix(in srgb, var(--accent) 70%, transparent); }
.formulaire-agent > fieldset[disabled] { box-shadow: none; border-color: var(--bordure); opacity: .75; }
.formulaire-agent.f-abandonne > fieldset { opacity: .55; }
.formulaire-agent svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.f-entete { display: flex; align-items: center; gap: 12px; padding: 14px 18px;
  background: color-mix(in srgb, var(--accent) 6%, var(--surface)); border-bottom: 1px solid var(--bordure); }
.f-icone { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none;
  background: var(--accent); color: var(--accent-texte); }
.f-entete-texte { flex: 1; min-width: 0; }
.f-titre { margin: 0; font-family: var(--police-titres); font-weight: 800; font-size: 1.06em; line-height: 1.3; }
.f-sous { margin: 0; font-size: .82em; color: var(--discret); }
.f-progression { flex: none; font-size: .8em; font-weight: 700; color: var(--accent); padding: 3px 10px; border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--bordure)); background: var(--surface); }
.f-barre { display: none; }
.f-intro { margin: 14px 18px 0; font-size: .92em; color: var(--discret); }
.f-champs { padding: 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
.f-champ { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.f-large { grid-column: 1 / -1; }
.f-champ > label, .f-champ > legend { display: block; padding: 0; font-size: .9em; font-weight: 650; }
.f-choix > legend { margin-bottom: 8px; }
.f-facultatif { font-weight: 400; color: var(--discret); }
.f-saisie { display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 8px 0 12px; border: 1.5px solid var(--bordure);
  border-radius: 12px; background: var(--surface); transition: border-color .15s ease, box-shadow .15s ease; }
.f-champ:not(.f-large) .f-saisie { max-width: 100%; }
.f-saisie:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-doux); }
.f-saisie input, .f-saisie select { flex: 1; min-width: 0; min-height: 42px; padding: 0; border: 0; outline: none; background: transparent;
  color: var(--texte); font: inherit; font-size: 1.02em; }
.f-code_naf input, .f-code_postal input { font-weight: 600; letter-spacing: .05em; }
.f-unite { flex: none; font-size: .85em; color: var(--discret); padding: 3px 10px; border-radius: 8px; background: var(--code); }
.f-validite { flex: none; width: 18px; height: 18px; }
.f-valide .f-saisie { border-color: var(--souverain); }
.f-valide .f-validite { background: var(--souverain); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5 12 5 5L20 7' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5 12 5 5L20 7' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.f-invalide .f-saisie { border-color: var(--erreur); border-width: 2px; }
.f-retour { margin: 0; font-size: .82em; font-weight: 600; color: var(--souverain); min-height: 0; }
.f-retour:empty { display: none; }
.f-invalide .f-retour { color: var(--erreur); font-weight: 500; }
.f-aide { margin: 0; font-size: .8em; color: var(--discret); }
.f-lien { align-self: flex-start; padding: 2px 0; border: 0; background: none; color: var(--accent); font-size: .82em; font-weight: 600; }
.f-lien:hover { text-decoration: underline; }
.f-recherche { display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: 12px; background: var(--fond); }
.f-recherche[hidden] { display: none; }
.f-recherche input { min-height: 40px; border-radius: 10px; font-size: .92em; }
.f-resultats { display: flex; flex-direction: column; gap: 4px; }
.f-resultat { display: block; width: 100%; text-align: left; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--bordure);
  background: var(--surface); color: var(--texte); font-size: .86em; }
.f-resultat:hover, .f-resultat:focus-visible { border-color: var(--accent); background: var(--accent-doux); outline: none; }
.f-options { display: flex; flex-wrap: wrap; gap: 8px; }
.f-option { position: relative; display: inline-flex; flex-direction: row; font-weight: 500; font-size: .92em; }
.f-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.f-option span { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--bordure); background: var(--surface); cursor: pointer; }
.f-option span:hover { border-color: var(--accent); }
.f-option-discrete span { border-style: dashed; color: var(--discret); }
.f-option input:checked + span { border: 1px solid var(--accent); background: var(--accent); color: var(--accent-texte); font-weight: 650; }
.f-option input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.f-nav-etapes { display: none; }
.f-pied { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 18px;
  border-top: 1px solid var(--bordure); background: color-mix(in srgb, var(--fond) 50%, var(--surface)); }
.f-confidentialite { margin: 0; display: flex; align-items: center; gap: 6px; font-size: .8em; color: var(--discret); }
.f-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-left: auto; }
.f-etat { font-size: .85em; color: var(--erreur); }
.f-etat:empty { display: none; }
.formulaire-agent button.f-bouton-principal { min-height: 44px; padding: 0 18px; border: 0; border-radius: 12px; background: var(--accent);
  color: var(--accent-texte); font-weight: 700; }
.formulaire-agent button.f-bouton-discret { min-height: 44px; padding: 0 12px; border: 0; border-radius: 10px; background: none;
  color: var(--texte); font-size: .9em; }
.formulaire-agent button.f-bouton-discret:hover { background: var(--fond); }
.formulaire-agent > fieldset[disabled] .f-pied .f-actions, .formulaire-agent > fieldset[disabled] .f-lien { display: none; }
/* Une fois envoyé : résumé en pastilles. */
.f-resume { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 14px 0 4px; padding: 12px 16px;
  border: 1px solid var(--bordure); border-radius: 14px; background: var(--surface); }
.f-resume-titre { display: inline-flex; align-items: center; gap: 6px; font-size: .85em; font-weight: 700; color: var(--souverain); }
.f-resume-titre::before { content: "✓"; }
.f-puce { padding: 3px 10px; border-radius: 999px; background: var(--code); font-size: .85em; overflow-wrap: anywhere; }
.message-formulaire { display: none; }

/* Téléphone : une question à la fois, barre de progression, navigation en bas. */
@media (max-width: 600px) {
  .f-champs { grid-template-columns: 1fr; padding: 16px; }
  .formulaire-agent > fieldset:not([disabled]) [data-champ]:not(.f-courant) { display: none; }
  .formulaire-agent > fieldset:not([disabled]) .f-barre { display: grid; grid-auto-flow: column; gap: 6px; padding: 12px 16px 0; }
  .f-barre span { height: 5px; border-radius: 3px; background: var(--bordure); }
  .f-barre span.f-fait { background: var(--accent); }
  .formulaire-agent > fieldset:not([disabled]) .f-champ > label, .formulaire-agent > fieldset:not([disabled]) .f-choix > legend {
    font-family: var(--police-titres); font-weight: 800; font-size: 1.2em; line-height: 1.3; }
  .f-saisie { min-height: 50px; }
  .f-saisie input { font-size: 1.1em; }
  .f-options { flex-direction: column; }
  .f-option span { width: 100%; min-height: 50px; border-radius: 12px; padding: 0 16px; }
  .formulaire-agent > fieldset:not([disabled]) .f-nav-etapes { display: flex; align-items: center; gap: 6px; padding: 10px 16px 14px; }
  .f-nav-etapes [data-suivant] { margin-left: auto; }
  .f-nav-etapes button[disabled] { visibility: hidden; }
  .formulaire-agent > fieldset:not([disabled]) .f-pied .f-actions { display: none; }
  .f-pied { padding: 10px 16px; }
  .f-sous { display: none; }
}
@media (prefers-reduced-motion: reduce) { .f-saisie { transition: none; } }
/* Lignage (administrateurs) : documentation dbt du modèle commun dans un cadre, sur presque toute la hauteur */
.lignage-cadre { display: block; width: 100%; height: max(480px, calc(100vh - 220px)); border: 1px solid var(--bordure);
  border-radius: 12px; background: #fff; }
/* Référentiels (administrateurs) : fraîcheur des sources et import manuel des PDF de la Banque de France */
.referentiels h2 { font-size: 1.1em; margin: 28px 0 10px; }
.import-referentiel { margin-top: 12px; padding-top: 4px; border-top: 1px solid var(--bordure); }
.import-etat { margin: 12px 0; padding: 12px 16px; border: 1px solid var(--bordure); border-radius: 12px; background: var(--surface); }
.import-etat p { margin: 0 0 4px; }
.import-etat[data-statut="echec"] { border-color: var(--erreur); }
.form-import { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.etapes-import { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; }
.etapes-import label { display: flex; flex-direction: column; gap: 6px; }
.etapes-import label.case { flex-direction: row; align-items: flex-start; gap: 8px; }
.etapes-import input[type="checkbox"] { width: auto; margin-top: 4px; }
.etapes-import a { color: var(--accent); }

/* KatIA en avant-première (katia.html) : page d'attente aux couleurs de Factomos, jusqu'à l'écran Factomos. */
.katia-attente { max-width: 720px; margin: 0 auto; padding: 56px 24px; display: flex; flex-direction: column; gap: 18px; }
.katia-carte { padding: 28px 28px 24px; border: 1.5px dashed var(--katia-trait); border-radius: 14px;
  background: var(--surface); display: flex; flex-direction: column; gap: 14px; }
.katia-tete { display: flex; gap: 16px; align-items: flex-start; }
.katia-avatar { flex: none; width: 52px; height: 52px; border-radius: 50%; border: 2px dashed var(--katia);
  background: var(--katia-fond); color: var(--katia); display: grid; place-items: center; }
.katia-avatar svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.katia-surtitre { margin: 0; font-size: .76em; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--katia-encre); }
.katia-surtitre span { text-transform: none; letter-spacing: 0; font-size: 1.2em; }
.katia-carte h1 { margin: 2px 0 0; font-size: 1.6em; line-height: 1.25; }
.katia-carte p { margin: 0; line-height: 1.6; }
.katia-pastille { align-self: flex-start; padding: 2px 10px; border-radius: 999px; background: var(--katia-fond);
  color: var(--katia-encre); font-size: .8em; font-weight: 700; }
.katia-attente > p a { color: var(--accent); }
.katia-liste { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; line-height: 1.55; }
@media (prefers-color-scheme: dark) {
  :root { --katia: #f0936f; --katia-fond: #3a2219; --katia-trait: #8e4a33; --katia-encre: #f4b39a; }
}
.cellule-katia { min-width: 190px; }
.katia-adresse { margin-top: 6px; font-size: .85em; }
.katia-adresse summary { cursor: pointer; color: var(--discret); }
.katia-adresse form { margin-top: 6px; }
.katia-adresse input { min-width: 0; width: 190px; }

/* Double authentification (connexion_mfa.html) */
.mfa-qr { display: flex; justify-content: center; margin: 4px 0 8px; }
.mfa-qr svg { width: 200px; height: 200px; border-radius: 8px; }
.mfa-secret summary { cursor: pointer; font-size: 14px; }
.mfa-secret code { font-size: 15px; letter-spacing: .04em; word-break: break-all; }
.mfa-codes { columns: 2; list-style: none; padding: 0; margin: 8px 0 16px; }
.mfa-codes li { padding: 3px 0; }
.mfa-codes code { font-size: 15px; letter-spacing: .05em; }
.carte.mfa a.bouton { display: inline-block; text-align: center; padding: 13px 16px; border-radius: 10px;
  background: var(--accent); color: #fff; text-decoration: none; font-weight: 600; }

/* Experimentia (SITE=experimentia) : son identité est dans experimentia.css, chargée sur ce site seulement. */
