/* Espace de retranscription — mise en page des maquettes validées le 17/10/2026.
   Aucune ressource extérieure (politique de sécurité de la page) : polices servies par l'espace lui-même. */

@font-face { font-family: "Source Serif 4"; font-weight: 400; font-display: swap; src: url(polices/source-serif-4-latin-400-normal.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: "Source Serif 4"; font-weight: 400; font-display: swap; src: url(polices/source-serif-4-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Source Serif 4"; font-weight: 600; font-display: swap; src: url(polices/source-serif-4-latin-600-normal.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: "Source Serif 4"; font-weight: 600; font-display: swap; src: url(polices/source-serif-4-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-display: swap; src: url(polices/ibm-plex-sans-latin-400-normal.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: "IBM Plex Sans"; font-weight: 400; font-display: swap; src: url(polices/ibm-plex-sans-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-display: swap; src: url(polices/ibm-plex-sans-latin-500-normal.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: "IBM Plex Sans"; font-weight: 500; font-display: swap; src: url(polices/ibm-plex-sans-latin-ext-500-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-display: swap; src: url(polices/ibm-plex-sans-latin-600-normal.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: "IBM Plex Sans"; font-weight: 600; font-display: swap; src: url(polices/ibm-plex-sans-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-display: swap; src: url(polices/ibm-plex-mono-latin-400-normal.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: "IBM Plex Mono"; font-weight: 500; font-display: swap; src: url(polices/ibm-plex-mono-latin-500-normal.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; }

:root {
  --papier: #f6f7f9;
  --feuille: #ffffff;
  --encre: #1b2333;
  --encre-douce: #586274;
  --filet: #dde1e8;
  --filet-fort: #c9cfd9;
  --survol: #eef1f6;
  --sceau: #8c2131;
  --sceau-fonce: #6d1926;
  --sceau-pale: #fdf8f9;
  --tranche: #1f4e8c;
  --tranche-pale: #f3f7fc;
  --bleu-pale: #dfe9f5;
  --probable: #e3e6ec;
  --probable-barre: #8f99aa;
  --certain-barre: #c3c9d4;
  --incertain: #f8e2a3;
  --incertain-barre: #e8b93a;
  --incertain-pale: #fdf3d6;
  --incertain-encre: #5c4300;
  --inaudible: #2f3a4f;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", -apple-system, "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--papier); color: var(--encre); font: 15px/1.55 var(--sans); min-height: 100vh; }
a { color: var(--sceau); }
a:hover { color: var(--sceau-fonce); }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--sceau); outline-offset: 2px; }
.masque { display: none !important; }
.visuellement-masque { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ——— En-tête ——— */
.entete { background: var(--feuille); border-bottom: 1px solid var(--filet); }
.entete-dedans { max-width: 1360px; margin: 0 auto; padding: 10px 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 32px; }
.marque { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; text-decoration: none; color: var(--encre); min-height: 44px; }
.marque:hover { color: var(--encre); }
.marque-nom { font: 600 22px/44px var(--serif); }
.marque-outil { font: 500 12px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--sceau); }
.nav { display: flex; gap: 4px; flex: 1 1 auto; flex-wrap: wrap; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 6px; font: 500 14px/1 var(--sans); color: var(--encre-douce); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--survol); color: var(--encre); }
.compte { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; font-size: 14px; color: var(--encre-douce); }
.compte b { color: var(--encre); font-weight: 500; }

/* ——— Mises en page ——— */
.page { max-width: 1280px; margin: 0 auto; padding: 36px 32px 64px; display: flex; flex-direction: column; gap: 28px; }
.page-large { max-width: 1360px; }
.sous-barre { background: var(--feuille); border-bottom: 1px solid var(--filet); }
.sous-barre-dedans { max-width: 1360px; margin: 0 auto; padding: 18px 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.titre-piece { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.titre-piece a { font-size: 13px; text-decoration: none; }
.titre-piece h1 { margin: 0; font: 600 28px/1.2 var(--serif); overflow-wrap: anywhere; }
.titre-piece .meta { font-size: 13px; color: var(--encre-douce); overflow-wrap: anywhere; }
.compteur { flex: 0 1 300px; min-width: 220px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.compteur b { font: 600 20px var(--serif); }
.deux-colonnes { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.colonne-principale { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.colonne-cote { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.colonne-cote.collante { position: sticky; top: 16px; }
@media (max-width: 960px) { .colonne-cote.collante { position: static; } }
@media (max-width: 640px) {
  .entete-dedans, .sous-barre-dedans, .page { padding-left: 16px; padding-right: 16px; }
  .titre-piece h1 { font-size: 23px; }
}

h1.titre { margin: 0; font: 600 36px/1.15 var(--serif); }
.chapeau { margin: 0; font-size: 16px; color: var(--encre-douce); max-width: 68ch; }
.surtitre { font: 600 13px/1.2 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--encre-douce); margin: 0; }
.carte { background: var(--feuille); border: 1px solid var(--filet); border-radius: 8px; padding: 20px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.carte h2 { margin: 0; font: 600 20px/1.3 var(--serif); }
.carte h2.surtitre { font: 600 13px/1.2 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--encre-douce); }
.carte-accent { border: 2px solid var(--tranche); }
.petit { font-size: 13px; color: var(--encre-douce); margin: 0; }
.mono { font-family: var(--mono); font-size: 12px; overflow-wrap: anywhere; }
.message-erreur { background: #fdecef; border: 1px solid #f1b8c1; color: #6d1926; border-radius: 6px; padding: 10px 12px; font-size: 14px; margin: 0; }
.message-info { background: var(--bleu-pale); color: var(--tranche); border-radius: 6px; padding: 10px 12px; font-size: 14px; margin: 0; }

/* ——— Boutons ——— */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 6px; font: 600 14px/1 var(--sans); text-decoration: none; cursor: pointer; border: 1px solid transparent; background: none; }
.btn-plein { background: var(--sceau); color: #fff; }
.btn-plein:hover { background: var(--sceau-fonce); color: #fff; }
.btn-trait { background: var(--feuille); color: var(--encre); border-color: var(--filet-fort); }
.btn-trait:hover { border-color: var(--encre); color: var(--encre); }
.btn-nu { color: var(--encre-douce); }
.btn-nu:hover { color: var(--encre); background: var(--survol); }
.btn-danger { background: var(--feuille); color: var(--sceau); border-color: var(--sceau); }
.btn-danger:hover { background: #fdf3f5; }
.btn:disabled, .btn[aria-disabled="true"] { background: var(--probable); color: var(--encre-douce); border-color: transparent; cursor: not-allowed; }
.btn-large { width: 100%; }
.touche { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 28px; padding: 0 6px; border-radius: 5px; border: 1px solid var(--filet-fort); border-bottom-width: 2px; background: var(--papier); font: 600 13px/1 var(--mono); color: var(--encre); }
.raccourcis { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 12px; color: var(--encre-douce); padding: 0 4px; }
.raccourcis span { display: inline-flex; align-items: center; gap: 6px; }

/* ——— Champs ——— */
.champ { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; }
.champ input, .champ select, .saisie { min-height: 44px; border: 1px solid var(--filet-fort); border-radius: 6px; padding: 0 12px; font: 400 15px var(--sans); background: var(--feuille); width: 100%; }
.saisie-serif { font: 400 16px var(--serif); }
.champ input:focus, .saisie:focus { outline: 2px solid var(--sceau); outline-offset: 1px; }
.grille-champs { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.grille-champs .pleine { grid-column: 1 / -1; }
.case { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; cursor: pointer; min-height: 44px; }
.case input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--encre); flex: none; }

/* ——— Pastilles, barres ——— */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font: 600 12px/1.2 var(--sans); white-space: nowrap; }
.chip-verifier { background: var(--incertain); color: var(--incertain-encre); }
.chip-analyse { background: var(--bleu-pale); color: var(--tranche); }
.chip-prete { background: var(--encre); color: #fff; }
.chip-sortie, .chip-depot { background: var(--probable); color: #3d4757; }
.chip-erreur { background: #fdecef; color: #6d1926; }
.chip-alerte { background: var(--incertain); color: var(--incertain-encre); font-size: 11px; padding: 2px 8px; }
.barre { display: flex; height: 6px; border-radius: 3px; overflow: hidden; background: var(--filet); }
.barre span { display: block; height: 100%; }
.b-certain { background: var(--encre-douce); }
.b-probable { background: var(--certain-barre); }
.b-incertain { background: var(--incertain-barre); }
.b-inaudible { background: var(--encre); }
.progression { height: 6px; border-radius: 3px; background: var(--probable); overflow: hidden; }
.progression > span { display: block; height: 100%; background: var(--tranche); transition: width .3s; }
.legende { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12px; color: var(--encre-douce); }
.legende span { display: inline-flex; align-items: center; gap: 6px; }
.legende i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }

/* ——— Liste des pièces ——— */
.filtres { display: flex; flex-wrap: wrap; gap: 8px; }
.filtre { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--filet); background: var(--feuille); font: 500 13px/1 var(--sans); color: var(--encre-douce); cursor: pointer; }
.filtre:hover { border-color: var(--encre); color: var(--encre); }
.filtre[aria-pressed="true"] { background: var(--encre); border-color: var(--encre); color: #fff; }
.tableau { background: var(--feuille); border: 1px solid var(--filet); border-radius: 8px; overflow-x: auto; }
.tableau-dedans { min-width: 940px; }
.rangee { display: grid; grid-template-columns: minmax(0, 2.3fr) minmax(0, 1.3fr) minmax(0, 1.7fr) minmax(0, 1fr) 168px; gap: 16px; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--survol); }
.rangee:last-child { border-bottom: 0; }
.rangee-tete { padding: 12px 20px; border-bottom: 1px solid var(--filet); font: 600 12px/1.2 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--encre-douce); }
.icone-piece { flex: none; width: 40px; height: 40px; border-radius: 8px; background: var(--survol); display: flex; align-items: center; justify-content: center; }
.piece-nom { display: flex; gap: 14px; align-items: flex-start; min-width: 0; }
.piece-nom div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.piece-nom strong { font: 600 17px/1.3 var(--serif); overflow-wrap: anywhere; }
.pile { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 14px; }
.pile .petit { font-size: 13px; }
.vide { padding: 32px 20px; color: var(--encre-douce); margin: 0; }
.trois { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.trois .carte strong { font: 600 16px/1.3 var(--serif); }
details.traces summary { cursor: pointer; font-size: 14px; color: var(--encre-douce); min-height: 44px; display: flex; align-items: center; }

/* ——— Dépôt ——— */
.etapes { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 14px; color: var(--encre-douce); }
.etapes li { display: flex; align-items: center; gap: 8px; }
.etapes .num { width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--filet-fort); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }
.etapes .en-cours { color: var(--encre); font-weight: 600; }
.etapes .en-cours .num { background: var(--sceau); border-color: var(--sceau); color: #fff; }
.etapes .faite .num { background: var(--encre); border-color: var(--encre); color: #fff; }
.choix-nature { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.choix { display: flex; gap: 14px; align-items: flex-start; text-align: left; padding: 18px; border-radius: 8px; border: 1px solid var(--filet); background: var(--feuille); cursor: pointer; width: 100%; }
.choix:hover { border-color: var(--encre); }
.choix[aria-checked="true"] { border: 2px solid var(--sceau); padding: 17px; background: var(--sceau-pale); }
.choix strong { display: block; font: 600 17px/1.3 var(--serif); }
.depose { border: 2px dashed var(--filet-fort); border-radius: 8px; background: var(--feuille); padding: 20px; display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; }
.depose.survol { border-color: var(--sceau); background: var(--sceau-pale); }
.fichier { background: var(--feuille); border: 1px solid var(--filet); border-radius: 8px; padding: 14px 16px; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.fichier .nom { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.fichier .nom b { font: 500 14px/1.4 var(--mono); overflow-wrap: anywhere; }
.fichier .progression { flex: 1 1 100%; }
.mode { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--filet); border-radius: 8px; background: var(--feuille); cursor: pointer; }
.mode:has(input:checked) { border-color: var(--encre); }
.mode:has(input:disabled) { cursor: not-allowed; opacity: .75; }
.mode input { margin-top: 4px; accent-color: var(--sceau); width: 18px; height: 18px; }
dl.fiche { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 14px; font-size: 14px; }
dl.fiche dt { color: var(--encre-douce); }
dl.fiche dd { margin: 0; overflow-wrap: anywhere; }

/* ——— Analyse ——— */
.liste-etapes { list-style: none; margin: 0; padding: 0; }
.liste-etapes li { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 14px 0; border-top: 1px solid var(--survol); }
.pastille-etape { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--filet-fort); background: var(--feuille); }
.liste-etapes .faite .pastille-etape { background: var(--encre); border-color: var(--encre); color: #fff; }
.liste-etapes .en-cours .pastille-etape { background: var(--tranche); border-color: var(--tranche); }
.liste-etapes .en-cours .pastille-etape::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #fff; }
.liste-etapes .a-venir strong { color: var(--encre-douce); }

/* ——— Vérification : lecteur ——— */
.lecteur { background: var(--feuille); border: 1px solid var(--filet); border-radius: 8px; padding: 14px 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.rond { width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--encre); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: none; }
.rond:hover { background: #000; }
.temps { font: 500 14px/1 var(--mono); white-space: nowrap; }
.frise { flex: 1 1 360px; min-width: 0; position: relative; height: 36px; cursor: pointer; }
.frise-fond { position: absolute; left: 0; right: 0; top: 12px; height: 12px; border-radius: 6px; background: var(--certain-barre); }
.frise-silence { position: absolute; top: 12px; height: 12px; background: var(--feuille); border: 1px dashed var(--certain-barre); }
.repere { position: absolute; top: 8px; bottom: 8px; border: 0; padding: 0; border-radius: 2px; cursor: pointer; min-width: 6px; }
.repere:hover { filter: brightness(.9); }
.repere.actif { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--sceau); }
.tete { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--sceau); pointer-events: none; }
.vitesse { min-height: 36px; padding: 0 10px; border-radius: 6px; border: 1px solid var(--filet); background: var(--feuille); font-size: 13px; color: var(--encre-douce); cursor: pointer; }
.vitesse[aria-pressed="true"] { border-color: var(--encre); color: var(--encre); }

/* ——— Vérification : retranscription ——— */
.acte { background: var(--feuille); border: 1px solid var(--filet); border-radius: 8px; padding: 12px 0; min-width: 0; }
.ligne-voix { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; padding: 12px 24px; }
.ligne-voix.contient-actif { background: var(--papier); }
.quand { display: flex; flex-direction: column; align-items: flex-start; font: 500 12px/1.6 var(--mono); color: var(--encre-douce); }
.quand b { font: 600 13px/1.5 var(--sans); color: var(--encre); overflow-wrap: anywhere; }
.quand button { border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.quand button:hover { color: var(--sceau); text-decoration: underline; }
.dit { margin: 0; font: 400 18px/1.75 var(--serif); overflow-wrap: anywhere; }
.seg { font: inherit; color: inherit; border: 0; border-radius: 3px; padding: 1px 2px; margin: 0; cursor: pointer; background: transparent; line-height: 1.5; text-align: left; }
.seg:hover { background: var(--survol); }
.seg-probable { background: var(--probable); padding: 1px 4px; }
.seg-incertain { background: var(--incertain); font: 400 15px/1.6 var(--sans); padding: 1px 4px; }
.seg-inaudible { background: var(--inaudible); color: #fff; font: 600 14px/1.6 var(--sans); padding: 1px 4px; }
.seg-inaudible:hover { background: #000; }
.seg-tranche { text-decoration: underline; text-decoration-color: var(--tranche); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.seg-actif { outline: 2px solid var(--sceau); outline-offset: 2px; }

/* ——— Vérification : panneau de choix ——— */
.panneau-tete { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.motif { margin: 0; font-size: 14px; padding: 10px 12px; border-radius: 6px; background: var(--survol); }
.motif-incertain { background: var(--incertain-pale); }
.motif-inaudible { background: #e6e9ef; }
.options { display: flex; flex-direction: column; gap: 8px; }
.option { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; align-items: start; width: 100%; text-align: left; padding: 14px; border-radius: 8px; border: 1px solid var(--filet-fort); background: var(--feuille); cursor: pointer; }
.option:hover { border-color: var(--encre); background: #fafbfc; }
.option[aria-pressed="true"] { border: 2px solid var(--tranche); padding: 13px; background: var(--tranche-pale); }
.option .texte { font: 400 18px/1.4 var(--serif); overflow-wrap: anywhere; }
.option .texte-sans { font: 600 15px/1.4 var(--sans); }
.option .sources { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12px; color: var(--encre-douce); }
.option > span:last-child { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pied-panneau { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; border-top: 1px solid var(--survol); padding-top: 12px; }
.pilules { display: flex; flex-wrap: wrap; gap: 6px; }
.pilule { min-height: 44px; padding: 0 16px; border: 1px solid var(--filet-fort); background: var(--feuille); font: 500 14px var(--sans); cursor: pointer; border-radius: 6px; }
.pilule:hover { border-color: var(--encre); }
.pilule[aria-pressed="true"] { background: var(--encre); border-color: var(--encre); color: #fff; }
.pilule.doute { background: var(--incertain); border-color: var(--incertain-barre); }
.pilule.mono { font-family: var(--mono); font-size: 14px; }
.groupe-cotes { display: flex; }
.groupe-cotes .pilule:first-child { border-radius: 6px 0 0 6px; }
.groupe-cotes .pilule:last-child { border-radius: 0 6px 6px 0; margin-left: -1px; }

/* ——— Conversation ——— */
.vignettes { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.vignette { display: flex; flex-direction: column; gap: 4px; align-items: center; padding: 6px; border-radius: 8px; border: 1px solid var(--filet); background: var(--feuille); cursor: pointer; font: 500 12px var(--sans); color: var(--encre-douce); width: 72px; flex: none; }
.vignette:hover { border-color: var(--encre); }
.vignette[aria-current="true"] { border: 2px solid var(--sceau); padding: 5px; color: var(--encre); }
.vignette img { width: 54px; height: 96px; object-fit: cover; object-position: top; border-radius: 4px; border: 1px solid var(--filet); background: var(--papier); }
.cadre-capture { position: relative; align-self: center; width: 100%; max-width: 360px; border-radius: 12px; overflow: hidden; border: 1px solid var(--filet); background: var(--papier); }
.cadre-capture img { display: block; width: 100%; height: auto; }
.bulle-en-avant { position: absolute; border: 3px solid var(--sceau); border-radius: 10px; pointer-events: none; }
.bulle-en-avant.attenue { box-shadow: 0 0 0 9999px rgba(27, 35, 51, .45); }
.fil { background: var(--feuille); border: 1px solid var(--filet); border-radius: 8px; padding: 12px 0; }
.msg { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 14px; width: 100%; text-align: left; padding: 10px 20px; border: 0; border-left: 3px solid transparent; background: transparent; cursor: pointer; }
.msg:hover { background: var(--papier); }
.msg[aria-current="true"] { border-left-color: var(--sceau); background: var(--papier); }
.msg .quand { line-height: 1.5; font-family: var(--sans); }
.msg .dit { font-size: 17px; line-height: 1.55; }
.date-fil { margin: 0; padding: 8px 20px; text-align: center; font-size: 13px; font-style: italic; color: var(--encre-douce); }
.doute { background: var(--incertain); border-radius: 3px; padding: 0 3px; }
.tranche { text-decoration: underline; text-decoration-color: var(--tranche); text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* ——— Sortie ——— */
.apercu { background: #fff; border: 1px solid var(--filet); box-shadow: 0 1px 2px rgba(27, 35, 51, .06), 0 8px 24px rgba(27, 35, 51, .06); padding: 56px 64px; font: 400 16px/1.7 var(--serif); width: 100%; max-width: 820px; align-self: center; }
.apercu h2 { margin: 0 0 12px; font: 600 15px/1.4 var(--serif); letter-spacing: .06em; text-transform: uppercase; }
.apercu table { border-collapse: collapse; width: 100%; font-size: 14px; margin: 0 0 28px; }
.apercu td { padding: 5px 12px 5px 0; vertical-align: top; }
.apercu td:first-child { color: var(--encre-douce); width: 34%; }
.apercu p { margin: 0 0 10px; }
.apercu .formule { padding: 10px 14px; border: 1px dashed var(--filet-fort); font: 400 13px var(--sans); color: var(--encre-douce); margin: 0 0 20px; }
.apercu .reste { background: var(--incertain); }
@media (max-width: 640px) { .apercu { padding: 28px 20px; } }
.journal { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.journal li { display: flex; flex-direction: column; gap: 2px; padding-bottom: 10px; border-bottom: 1px solid var(--survol); }
.journal li:last-child { border-bottom: 0; }
.confirmation { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 6px; background: #fdf3f5; }

/* ——— Connexion ——— */
.connexion { max-width: 440px; margin: 64px auto; padding: 0 16px; display: flex; flex-direction: column; gap: 20px; }
.connexion .carte { padding: 28px; gap: 16px; }
.connexion h1 { margin: 0; font: 600 28px/1.2 var(--serif); }
.qr { width: 200px; height: 200px; align-self: center; image-rendering: pixelated; border: 1px solid var(--filet); border-radius: 8px; padding: 8px; background: #fff; }
