/* Videos Factory — styles communs + thèmes GG / 2256 */
:root, .theme-gg {
  --fond: #1A1D24; --fond-2: #22262f; --surface: #272b35; --ligne: #3a3f4b;
  --texte: #ffffff; --texte-2: #b9bcc4; --texte-3: #858a96;
  --accent: #DD1D2D; --accent-2: #A71D1F; --sur-accent: #fff;
  --police-titre: "Roboto Condensed", "Oswald", "Arial Narrow", sans-serif;
  --police: "Roboto", Arial, sans-serif;
  --police-lecture: "Source Serif 4", Georgia, serif;
  --rayon: 6px;
}
.theme-2256 {
  --fond: #141c1c; --fond-2: #111b1b; --surface: #162120; --ligne: rgba(73,173,182,.25);
  --texte: #fcfbe4; --texte-2: #c4c6b4; --texte-3: #8a9a8a;
  --accent: #49adb6; --accent-2: #137680; --sur-accent: #0d1414;
  --police-titre: "Oswald", "Arial Narrow", sans-serif;
  --police: "Roboto", Arial, sans-serif;
  --rayon: 3px;
}
* { box-sizing: border-box; }
html { background: var(--fond); color: var(--texte); font-family: var(--police); font-size: 16px; -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; }
.theme-2256 body { background-image: repeating-linear-gradient(0deg, rgba(133,188,198,.025) 0 1px, transparent 1px 3px); }
a { color: inherit; }
h1, h2 { font-family: var(--police-titre); font-weight: 600; letter-spacing: .01em; margin: 0 0 .5rem; }
h1 { font-size: 1.8rem; line-height: 1.15; }
h2 { font-size: 1.15rem; text-transform: uppercase; color: var(--texte-2); }
.theme-2256 h2 { font-family: "IBM Plex Mono", monospace; font-size: .95rem; letter-spacing: .08em; color: var(--accent); }
small { color: var(--texte-3); font-weight: 400; }
code, .theme-2256 .tuile-lib { font-family: "IBM Plex Mono", Consolas, monospace; }

/* En-tête */
.entete { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 1rem;
  padding: .6rem 1rem; background: var(--fond-2); border-bottom: 1px solid var(--ligne); }
.marque { display: flex; align-items: center; gap: .5rem; text-decoration: none; }
.marque-vf { font-family: var(--police-titre); font-weight: 700; background: var(--accent); color: var(--sur-accent);
  padding: .1rem .45rem; border-radius: var(--rayon); transform: skewX(-8deg); }
.theme-2256 .marque-vf { transform: none; }
.marque-nom { font-family: var(--police-titre); font-size: 1.05rem; }
.espaces { display: flex; gap: .25rem; margin-left: .5rem; }
.espace-lien { text-decoration: none; padding: .3rem .7rem; border-radius: var(--rayon); color: var(--texte-2); font-size: .9rem; }
.espace-lien.actif { background: var(--surface); color: var(--texte); box-shadow: inset 0 -2px 0 var(--accent); }
.session { margin-left: auto; display: flex; align-items: center; gap: .6rem; font-size: .9rem; color: var(--texte-2); }
.lien { background: none; border: 0; color: var(--texte-3); cursor: pointer; font: inherit; text-decoration: underline; padding: 0; }

.page { max-width: 1100px; margin: 0 auto; padding: 1rem 1rem 4rem; }
.retour { display: inline-block; margin: .25rem 0 .75rem; color: var(--texte-2); text-decoration: none; }

/* Boutons et formulaires */
.bouton { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 44px; padding: .5rem 1rem;
  border-radius: var(--rayon); border: 1px solid var(--ligne); background: var(--surface); color: var(--texte);
  font: 500 .95rem var(--police); cursor: pointer; text-decoration: none; }
.bouton:hover { border-color: var(--texte-3); }
.bouton.principal { background: var(--accent); border-color: var(--accent); color: var(--sur-accent); }
.bouton.principal:hover { background: var(--accent-2); }
.bouton.discret { min-height: 34px; padding: .3rem .7rem; font-size: .85rem; background: transparent; }
.carte { background: var(--fond-2); border: 1px solid var(--ligne); border-radius: 10px; padding: 1.25rem; }
.formulaire { display: grid; gap: 1rem; }
.formulaire label { display: grid; gap: .35rem; font-size: .9rem; color: var(--texte-2); }
input, select, textarea { width: 100%; min-height: 44px; padding: .55rem .7rem; border-radius: var(--rayon);
  border: 1px solid var(--ligne); background: var(--fond); color: var(--texte); font: 1rem var(--police); }
textarea { resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
input[type=file] { padding: .45rem; }
.duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; }
.duo .large { grid-column: span 2; }
@media (max-width: 520px) { .duo .large { grid-column: auto; } }
.aide, .discret { color: var(--texte-3); font-size: .85rem; margin: 0; }
.erreur { margin: 0; padding: .6rem .8rem; border-radius: var(--rayon); border: 1px solid var(--accent); color: var(--texte); }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-size: .9rem; color: var(--texte-2); margin-bottom: .5rem; }
.pastilles { display: flex; flex-wrap: wrap; gap: .5rem; }
.pastille { display: inline-flex !important; cursor: pointer; }
.pastille input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pastille span { padding: .6rem 1rem; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--c) 60%, transparent);
  color: var(--texte); background: color-mix(in srgb, var(--c) 10%, transparent); font-weight: 500; }
.pastille input:checked + span { background: var(--c); border-color: var(--c); color: #fff; }
.pastille input:focus-visible + span { outline: 2px solid var(--texte); }

/* Connexion */
.connexion { max-width: 380px; margin: 12vh auto 0; text-align: center; }
.titre-vf { font-size: 2.2rem; }
.titre-vf span { background: var(--accent); color: var(--sur-accent); padding: 0 .4rem; border-radius: var(--rayon); display: inline-block; transform: skewX(-8deg); }
.sous-titre { color: var(--texte-3); margin: 0 0 1.5rem; }
.connexion .formulaire { text-align: left; }

/* Bandeau */
.bandeau { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)) minmax(0,2fr); gap: .75rem; margin-bottom: 1rem; }
@media (max-width: 760px) { .bandeau { grid-template-columns: repeat(3, minmax(0,1fr)); } .a-toi { grid-column: 1 / -1; } }
.tuile { background: var(--fond-2); border: 1px solid var(--ligne); border-radius: 10px; padding: .75rem .9rem; display: grid; gap: .2rem; min-width: 0; }
.tuile-lib { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--texte-3); }
.tuile-val { font-family: var(--police-titre); font-size: 1.6rem; line-height: 1.1; }
.tuile-val.petit { font-family: var(--police); font-size: 1rem; font-weight: 500; text-decoration: none; overflow: hidden; text-overflow: ellipsis; }
.a-toi { border-left: 3px solid var(--accent); }

/* Barre, filtres */
.barre { display: flex; gap: .75rem; align-items: center; justify-content: space-between; margin: 0 0 .5rem; flex-wrap: wrap; }
.filtres { display: flex; gap: .5rem; flex-wrap: wrap; }
.filtres select { width: auto; min-height: 38px; font-size: .9rem; padding: .3rem .5rem; }
.plus { font-size: 1.1rem; }
@media (max-width: 520px) {
  .plus span { display: none; }
  .plus { position: fixed; right: 1rem; bottom: 1.25rem; width: 60px; height: 60px; border-radius: 50%; font-size: 1.8rem; z-index: 20; box-shadow: 0 6px 20px rgba(0,0,0,.4); }
}

/* Sections et lignes */
.section { margin-top: 1rem; }
.section summary { cursor: pointer; list-style: none; display: flex; gap: .5rem; align-items: baseline; padding: .4rem 0;
  font-family: var(--police-titre); font-size: 1.15rem; text-transform: uppercase; color: var(--texte-2); }
.section summary::-webkit-details-marker { display: none; }
.section summary::before { content: "▸"; color: var(--texte-3); transition: transform .15s; }
.section[open] summary::before { transform: rotate(90deg); }
.compte { color: var(--texte-3); font-size: .9rem; }
.vide { color: var(--texte-3); margin: .5rem 0; }
.lignes { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ligne); }
.lignes li { border-bottom: 1px solid var(--ligne); }
.rangee { display: grid; grid-template-columns: 96px minmax(0,1fr) 150px 200px 70px; gap: 1rem; align-items: center;
  padding: .6rem .4rem; text-decoration: none; }
.rangee:hover { background: var(--fond-2); }
.vignette { width: 96px; aspect-ratio: 16/9; border-radius: 4px; background: var(--surface); overflow: hidden; display: block; }
.vignette img { width: 100%; height: 100%; object-fit: cover; display: block; }
.infos { display: grid; gap: .25rem; min-width: 0; }
.titre { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meta { display: flex; flex-wrap: wrap; gap: .25rem .6rem; align-items: center; font-size: .82rem; color: var(--texte-3); margin: 0; }
.badge { font-size: .75rem; padding: .1rem .5rem; border-radius: var(--rayon); color: var(--texte);
  background: color-mix(in srgb, var(--c) 22%, transparent); border: 1px solid color-mix(in srgb, var(--c) 55%, transparent); }
.action { font-size: .88rem; color: var(--texte-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vues { text-align: right; font-variant-numeric: tabular-nums; color: var(--texte-2); }
.points { display: inline-flex; gap: 4px; flex-wrap: nowrap; }
.pt { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--texte-3); }
.pt.fait { background: var(--texte); border-color: var(--texte); }
.pt.en_cours { background: var(--accent); border-color: var(--accent); }
.vues-meta { display: none; color: var(--texte-2); }
@media (max-width: 760px) {
  .rangee { grid-template-columns: 96px minmax(0,1fr); grid-template-areas: "v i" "v p" "v a"; row-gap: .3rem; column-gap: .75rem; align-items: start; }
  .vignette { grid-area: v; width: 96px; align-self: center; } .infos { grid-area: i; }
  .avancement { grid-area: p; } .action { grid-area: a; font-size: .8rem; }
  .vues { display: none; } .vues-meta { display: inline; }
  .pt { width: 7px; height: 7px; } .points { gap: 3px; }
  .action:empty, .action.vide-action { display: none; }
}
@media (max-width: 520px) {
  .marque-nom { display: none; }
  .tuile { padding: .6rem .7rem; }
  .tuile-val { font-size: 1.35rem; }
  .tuile-val small { display: block; font-size: .75rem; }
  .page { padding-bottom: 6rem; }
}

/* Fiche */
.fiche-entete { display: grid; grid-template-columns: 320px minmax(0,1fr); gap: 1.25rem; margin-bottom: 1rem; }
@media (max-width: 760px) { .fiche-entete { grid-template-columns: 1fr; } }
.fiche-mini { position: relative; aspect-ratio: 16/9; background: var(--surface); border-radius: 8px; overflow: hidden;
  display: flex; align-items: center; justify-content: center; color: var(--texte-3); font-size: .9rem; }
.fiche-mini img { width: 100%; height: 100%; object-fit: cover; }
.photo-rapide { position: absolute; right: .4rem; top: .4rem; }
.photo-rapide label { background: rgba(0,0,0,.55); color: #fff; border-color: transparent; cursor: pointer; }
.photo-rapide input { display: none; }
.frise-etapes { list-style: none; padding: 0; margin: .75rem 0; display: flex; flex-wrap: wrap; gap: .3rem; }
.frise-etapes li { font-size: .75rem; padding: .2rem .5rem; border-radius: var(--rayon); border: 1px solid var(--ligne); color: var(--texte-3); }
.frise-etapes li.fait { color: var(--texte-2); border-color: var(--texte-3); }
.frise-etapes li.fait::before { content: "✓ "; }
.frise-etapes li.en_cours { background: var(--accent); border-color: var(--accent); color: var(--sur-accent); font-weight: 500; }
.prochaine { margin: 0; }
.bloc { border-top: 1px solid var(--ligne); padding: 1rem 0; }
.reprise { display: flex; gap: .5rem; align-items: flex-start; }
.reprise textarea { min-height: 44px; }
.taches { list-style: none; padding: 0; margin: 0; display: grid; gap: .25rem; }
.taches .groupe { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--texte-3); margin-top: .6rem; }
.case { width: 100%; display: flex; align-items: center; gap: .75rem; min-height: 44px; padding: .4rem .5rem; background: none;
  border: 0; border-radius: var(--rayon); color: var(--texte); font: 1rem var(--police); text-align: left; cursor: pointer; }
.case:hover { background: var(--fond-2); }
.coche { width: 22px; height: 22px; flex: none; border: 2px solid var(--texte-3); border-radius: 5px; display: grid; place-items: center; }
.case.cochee .coche { background: var(--accent); border-color: var(--accent); }
.case.cochee .coche::after { content: "✓"; color: var(--sur-accent); font-size: .85rem; font-weight: 700; }
.case.cochee .nom { color: var(--texte-3); text-decoration: line-through; }
.case .par { margin-left: auto; font-size: .8rem; color: var(--texte-3); }
.texte { white-space: pre-wrap; font: 1rem/1.6 var(--police); margin: 0; color: var(--texte-2); }
.texte.script { font-family: var(--police-lecture); font-size: 1.05rem; color: var(--texte); }
.copier { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.copier code { background: var(--fond-2); border: 1px solid var(--ligne); padding: .4rem .6rem; border-radius: var(--rayon); font-size: .85rem; word-break: break-all; }
.notes h3 { font: 500 .8rem var(--police); text-transform: uppercase; letter-spacing: .06em; color: var(--texte-3); margin: .75rem 0 .25rem; }
.notes p { margin: 0; line-height: 1.6; color: var(--texte-2); }

/* ---------- Lot 2 : script ---------- */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.etat-script { font-size: .75rem; padding: .1rem .5rem; border-radius: var(--rayon); border: 1px solid var(--ligne); color: var(--texte-2); }
.etat-script.relecture { border-color: var(--texte-2); color: var(--texte); }
.etat-script.valide { background: var(--texte); border-color: var(--texte); color: var(--fond); font-weight: 500; }
.etat-script.vide { color: var(--texte-3); }
.statut { margin-left: auto; font-size: .8rem; color: var(--texte-3); }
.boutons-ligne { display: flex; gap: .5rem; flex-wrap: wrap; margin: .5rem 0; }
.alerte-douce { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; justify-content: space-between;
  background: var(--fond-2); border: 1px solid var(--ligne); border-left: 3px solid var(--texte-2); border-radius: 0;
  padding: .6rem .8rem; margin: .5rem 0; color: var(--texte-2); }
.alerte-douce[hidden], .alerte[hidden] { display: none; }
.alerte { background: var(--fond-2); border: 1px solid var(--accent); padding: .6rem .8rem; border-radius: var(--rayon); margin: .5rem 0; }
.script-page h1 { margin-bottom: .25rem; }
.outils { position: sticky; top: 49px; z-index: 5; display: flex; gap: .25rem; align-items: center; flex-wrap: wrap;
  padding: .4rem; margin: .75rem 0 .5rem; background: var(--fond-2); border: 1px solid var(--ligne); border-radius: 8px; }
.outils button { min-height: 38px; min-width: 40px; padding: .3rem .7rem; background: transparent; border: 1px solid transparent;
  border-radius: var(--rayon); color: var(--texte); font: .95rem var(--police); cursor: pointer; }
.outils button:hover { border-color: var(--ligne); background: var(--surface); }
.outils .sep { width: 1px; height: 24px; background: var(--ligne); margin: 0 .25rem; }
.outils-droite { margin-left: auto; color: var(--texte-2); font-size: .9rem; padding: 0 .5rem; }
.script-grille { display: grid; grid-template-columns: minmax(0,1fr) 170px; gap: 1rem; align-items: start; }
@media (max-width: 760px) { .script-grille { grid-template-columns: 1fr; } .frise-minutage { order: -1; } }
.editeur { min-height: 60vh; padding: 1.5rem 1.75rem; background: var(--fond-2); border: 1px solid var(--ligne); border-radius: 10px;
  font: 1.15rem/1.75 var(--police-lecture); color: var(--texte); outline: none; caret-color: var(--accent); }
@media (max-width: 520px) { .editeur { padding: 1rem; font-size: 1.05rem; } }
.editeur:focus { border-color: var(--texte-3); }
.editeur p { margin: 0 0 1em; }
.editeur:empty::before { content: attr(data-placeholder); color: var(--texte-3); }
.editeur strong, .editeur b { font-weight: 600; }
.editeur p.regie, .lecture p.regie { font: .9rem/1.5 "IBM Plex Mono", monospace; color: var(--texte-3); border-left: 2px solid var(--texte-3);
  padding-left: .75rem; }
.editeur p.regie::before { content: "[régie] "; }
.editeur .extrait { display: grid; grid-template-columns: auto minmax(0,1fr) auto; column-gap: .6rem; align-items: baseline; margin: 0 0 1em; padding: .55rem .8rem;
  border: 1px solid var(--accent); border-radius: 8px; background: color-mix(in srgb, var(--accent) 10%, transparent);
  font: .9rem/1.4 var(--police); cursor: pointer; user-select: none; }
.ex-icone { color: var(--accent); }
.ex-src { color: var(--texte-3); font-size: .8rem; }
@media (max-width: 520px) { .editeur .extrait { grid-template-columns: auto minmax(0,1fr); } .ex-src { grid-column: 2; } }
.editeur .sequence { margin: 1.5em 0 1em; border-top: 1px dashed var(--texte-3); position: relative; height: 0; cursor: pointer; user-select: none; }
.editeur .sequence span { position: absolute; top: -.8em; left: 0; background: var(--fond-2); padding: 0 .5rem 0 0;
  font: 500 .8rem var(--police); text-transform: uppercase; letter-spacing: .06em; color: var(--texte-2); }
.editeur[contenteditable="false"], .editeur:not([contenteditable]) { opacity: .92; }
.script-actions { display: flex; gap: .75rem; justify-content: flex-end; flex-wrap: wrap; margin-top: 1rem; }
.en-ligne { display: flex; gap: .5rem; align-items: center; }
.en-ligne select { width: auto; }

/* Frise */
.frise-minutage { position: sticky; top: 110px; font-size: .75rem; color: var(--texte-3); }
.fr-tete { display: flex; justify-content: space-between; margin-bottom: .3rem; }
.fr-piste { display: flex; flex-direction: column; gap: 2px; }
.fr-seg { position: relative; display: flex; align-items: flex-start; gap: .4rem; padding-left: 18px; min-height: 6px; }
.fr-seg::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 12px; border-radius: 3px; background: var(--texte-2); }
.fr-seg.extrait::before { background: var(--accent); }
.fr-seg.extrait .fr-l { color: var(--accent); }
.fr-t { min-width: 2.6em; font-variant-numeric: tabular-nums; }
.fr-l { color: var(--texte-2); }
.fr-seq { margin: .4rem 0 .1rem 18px; color: var(--texte); font-weight: 500; font-size: .75rem; }
.fr-total { display: grid; gap: .1rem; margin-top: .6rem; padding-top: .5rem; border-top: 1px solid var(--ligne); }
.fr-total strong { font-size: 1.1rem; color: var(--texte); font-weight: 500; }
@media (max-width: 760px) {
  .frise-minutage { position: static; }
  .fr-piste { flex-direction: row; height: 14px; gap: 1px; overflow: hidden; border-radius: 3px; }
  .fr-seg { height: 14px !important; padding: 0; flex: var(--f, 1); min-width: 3px; }
  .fr-seg::before { width: auto; right: 0; border-radius: 0; }
  .fr-t, .fr-l, .fr-seq { display: none; }
  .fr-total { grid-template-columns: auto 1fr; column-gap: .75rem; }
}

/* Dialogues */
.dialogue { border: 1px solid var(--ligne); border-radius: 12px; background: var(--fond-2); color: var(--texte); padding: 1.25rem; width: min(520px, 92vw); }
.dialogue::backdrop { background: rgba(0,0,0,.6); }
.dlg-boutons { display: flex; gap: .5rem; align-items: center; }
.dlg-boutons span { flex: 1; }
.dlg-boutons [hidden] { display: none; }

/* Lecture / versions */
.apercu summary { cursor: pointer; color: var(--texte-2); margin: .5rem 0; }
.lecture { font: 1.05rem/1.7 var(--police-lecture); max-width: 70ch; }
.lecture p { margin: 0 0 .9em; }
.lecture .sequence-titre { font: 500 .8rem var(--police); text-transform: uppercase; letter-spacing: .06em; color: var(--texte-3);
  border-top: 1px dashed var(--ligne); padding-top: .6rem; margin: 1.2em 0 .6em; }
.lecture .extrait-lecture { font: .9rem var(--police); border-left: 3px solid var(--accent); padding: .3rem .7rem; }
.versions-grille { display: grid; grid-template-columns: 280px minmax(0,1fr); gap: 1.25rem; margin-top: 1rem; }
@media (max-width: 760px) { .versions-grille { grid-template-columns: 1fr; } }
.versions-liste { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ligne); max-height: 70vh; overflow: auto; }
.versions-liste li { border-bottom: 1px solid var(--ligne); }
.versions-liste a { display: grid; padding: .55rem .5rem; text-decoration: none; gap: .1rem; }
.versions-liste li.actif a { background: var(--fond-2); box-shadow: inset 3px 0 0 var(--accent); }
.v-auteur { font-weight: 500; } .v-date, .v-msg { font-size: .82rem; color: var(--texte-3); }
.diff { font: 1rem/1.7 var(--police-lecture); background: var(--fond-2); border: 1px solid var(--ligne); border-radius: 10px; padding: 1rem 1.25rem; margin-bottom: 1rem; }
ins { background: color-mix(in srgb, #3ba55c 30%, transparent); text-decoration: none; }
del { background: color-mix(in srgb, var(--accent) 25%, transparent); color: var(--texte-2); }

/* ---------- Lot 3 : télécommande, lecteur ---------- */
.tc-titre { font-size: 1.4rem; }
.tc-appairage p { margin: 0 0 .75rem; }
.tc-code { display: flex; gap: .75rem; align-items: stretch; flex-wrap: wrap; }
.tc-code input { width: 8ch; font: 700 2.2rem var(--police-titre); letter-spacing: .25em; text-align: center; padding: .3rem .5rem; min-height: 64px; }
.tc { display: grid; gap: .9rem; max-width: 520px; margin: 0 auto; }
.tc-etat { display: flex; justify-content: space-between; align-items: center; margin: 0; color: var(--texte-3); font-size: .9rem; }
.pastille-etat { padding: .15rem .6rem; border-radius: 999px; border: 1px solid var(--ligne); }
.pastille-etat.ok { border-color: #3ba55c; color: #8fe0a8; }
.tc-progression { height: 6px; background: var(--surface); border-radius: 3px; overflow: hidden; }
.tc-progression div { height: 100%; width: 0; background: var(--accent); transition: width .3s; }
.tc button { font: 500 1.05rem var(--police); color: var(--texte); background: var(--surface); border: 1px solid var(--ligne);
  border-radius: 12px; min-height: 64px; cursor: pointer; touch-action: manipulation; }
.tc button:active { transform: scale(.98); background: var(--fond-2); }
.tc .tc-lecture { min-height: 120px; font: 700 2rem var(--police-titre); background: var(--accent); border-color: var(--accent); color: var(--sur-accent); }
.tc .tc-lecture.en-lecture { background: var(--surface); color: var(--texte); border-color: var(--accent); }
.tc .tc-extrait { min-height: 72px; background: #fff; color: #111; font-weight: 700; border-color: #fff; }
.tc-grille { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.tc-vitesse { text-align: center; margin: 0; color: var(--texte-2); }
.tc-vitesse strong { font: 700 1.4rem var(--police-titre); color: var(--texte); }
.tc-reglages summary { cursor: pointer; color: var(--texte-2); padding: .5rem 0; }
.tc-reglages input[type=range] { min-height: 36px; padding: 0; accent-color: var(--accent); }
.bascule { display: flex !important; align-items: center; gap: .6rem; grid-template-columns: none; }
.bascule input { width: 24px; height: 24px; min-height: 0; accent-color: var(--accent); }
.tc-bas { display: flex; gap: .6rem; justify-content: space-between; flex-wrap: wrap; }
.tc-bas .bouton { min-height: 52px; }
button.rangee.choix { width: 100%; background: none; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer;
  grid-template-columns: minmax(0,1fr) auto; }
.lecteur { max-width: 68ch; margin: 0 auto; font: 1.25rem/1.8 var(--police-lecture); }
.lecteur h1 { font-size: 2rem; }
.lecteur p { margin: 0 0 1.1em; }
.lecteur .lect-seq { font: 500 .85rem var(--police); text-transform: uppercase; letter-spacing: .08em; color: var(--texte-3);
  border-top: 1px dashed var(--ligne); padding-top: .8rem; margin: 2rem 0 1rem; }
.lecteur .lect-ex { font: 600 1rem var(--police); border-left: 3px solid var(--accent); padding: .4rem .8rem; color: var(--texte-2); }

/* Attribution des tâches */
.taches li.tache { display: flex; align-items: center; gap: .5rem; }
.taches li.tache > form:first-child { flex: 1; min-width: 0; }
.attribution { display: flex; align-items: center; gap: .3rem; flex: none; }
.attribution select { width: auto; min-height: 34px; padding: .2rem 1.6rem .2rem .5rem; font-size: .82rem; color: var(--texte-2);
  background-color: transparent; border-color: transparent; cursor: pointer; }
.attribution select:hover, .attribution select:focus { border-color: var(--ligne); background-color: var(--fond); color: var(--texte); }
.attr-ok { width: 1.2em; font-size: .85rem; color: #8fe0a8; }

/* Tablettes (réglages) */
.tablettes { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.tablettes li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding: .75rem 0; border-top: 1px solid var(--ligne); }
.tab-infos { display: grid; gap: .3rem; }
.tc-tablette { padding: .5rem 0; border-top: 1px solid var(--ligne); }
.tc-tablette:first-of-type { border-top: 0; }

/* ---- catalogue YouTube (lot 6) */
.tuile-sous { font-size: .75rem; color: var(--texte-3); }
.badge.a-classer { background: transparent; outline: 1px dashed var(--texte-3); }
.yt-meta a { color: var(--accent); }
.yt-chiffres { display: flex; flex-wrap: wrap; gap: 1.5rem; margin: .5rem 0; }
.yt-chiffres div { display: grid; }
.yt-chiffres strong { font-size: 1.5rem; }
.yt-chiffres span { font-size: .75rem; text-transform: uppercase; color: var(--texte-3); letter-spacing: .05em; }
.yt-courbe { width: 100%; max-width: 420px; height: 60px; color: var(--accent); display: block; margin: .25rem 0; }
.tab-infos .erreur { border: 0; padding: 0; color: var(--accent); }
