/* Séances projetées (lot « En classe ») : projection, pointeur, télécommande, page des participant·es,
   et dans l'Atelier l'éditeur et la vue présentateur. */

/* ---------- projection ---------- */
.page-projection { background: #000; overflow: hidden; height: 100vh; margin: 0; cursor: none; }
.page-projection.souris { cursor: default; }
.projection { position: fixed; inset: 0; }
.projection-message { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); margin: 0; padding: 10px 16px; border-radius: 8px; background: rgb(255 255 255 / .92); color: #141A1E; font-size: 18px; }
.pointeur { position: fixed; inset: 0; pointer-events: none; z-index: 10; opacity: 0; transition: opacity .12s; }
.pointeur .laser { position: absolute; left: -9px; top: -9px; width: 18px; height: 18px; border-radius: 50%; background: #ff2a2a;
  box-shadow: 0 0 10px 4px rgb(255 42 42 / .75), 0 0 28px 10px rgb(255 42 42 / .35); }
.pointeur .plume { position: absolute; left: -13px; top: -13px; width: 26px; height: 26px; border-radius: 50%; border: 4px solid #E5322D; box-sizing: border-box; background: rgb(255 255 255 / .35); box-shadow: 0 0 0 2px rgb(0 0 0 / .35); }
.dessin { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 5; }
.page-projection.crayon, .page-projection.crayon.souris { cursor: crosshair; }
.minuteur-projection { position: fixed; top: 2.2vh; right: 2vw; z-index: 20; margin: 0; padding: .25em .6em; border-radius: .5em; background: rgb(16 19 21 / .82); color: #fff;
  font: 700 clamp(28px, 4.2vw, 96px)/1.1 "Inter", system-ui, sans-serif; font-variant-numeric: tabular-nums; box-shadow: 0 6px 30px rgb(0 0 0 / .35); }
.minuteur-projection.bientot { background: #B8452E; }
.minuteur-projection.fini { background: #B8452E; animation: clignote 1s steps(2, start) infinite; }
@keyframes clignote { to { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .minuteur-projection.fini { animation: none; } }
.outils-projection { position: fixed; left: 16px; bottom: 16px; z-index: 30; display: flex; gap: 8px; align-items: center; padding: 8px; border-radius: 12px;
  background: rgb(16 19 21 / .85); opacity: 0; pointer-events: none; transition: opacity .2s; }
.page-projection.souris .outils-projection, .page-projection.crayon .outils-projection { opacity: 1; pointer-events: auto; }
.outils-projection > button { min-height: 40px; padding: 0 14px; border: 1px solid #3d474c; border-radius: 8px; background: #1b2124; color: #E6EAE8; font: 600 15px "Inter", system-ui, sans-serif; cursor: pointer; }
.outils-projection > button[aria-pressed="true"] { background: #67B9C2; color: #0b1416; border-color: transparent; }
.outils-projection .couleurs { display: flex; gap: 6px; }
.pastille-dessin { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #3d474c; cursor: pointer; padding: 0; }
.pastille-dessin[aria-pressed="true"] { outline: 3px solid #67B9C2; outline-offset: 2px; }
.pointeur .loupe { position: absolute; left: 0; top: 0; border-radius: 50%; overflow: hidden; border: 4px solid #fff; box-shadow: 0 8px 40px rgb(0 0 0 / .55); background: #fff; }
.pointeur .loupe-contenu { position: absolute; left: 0; top: 0; transform-origin: 0 0; }

/* ---------- télécommande (téléphone) ---------- */
.page-telecommande { --tc-fond: #101315; --tc-surface: #1b2124; --tc-texte: #E6EAE8; --tc-second: #9BA6AB; --tc-accent: #67B9C2;
  background: var(--tc-fond); color: var(--tc-texte); margin: 0; min-height: 100vh; -webkit-user-select: none; user-select: none; touch-action: manipulation; color-scheme: dark; }
.telecommande { height: 100vh; height: 100dvh; display: grid; grid-template-rows: auto minmax(70px, 1fr) auto auto auto; gap: 10px;
  padding: max(14px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); box-sizing: border-box; }
.tc-entete { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.tc-titre { margin: 0; font: 600 15px/1.3 "Inter", system-ui, sans-serif; color: var(--tc-second); }
.tc-etat { margin: 0; font-size: 13px; color: var(--tc-accent); white-space: nowrap; }
.tc-diapo { background: var(--tc-surface); border-radius: 14px; padding: 14px 16px; overflow: auto; min-height: 120px; }
.tc-num { margin: 0; font-size: 13px; color: var(--tc-second); }
.tc-diapo h1 { margin: 4px 0 8px; font: 700 22px/1.25 "Inter", system-ui, sans-serif; }
.tc-notes { white-space: pre-wrap; font-size: 17px; line-height: 1.5; color: var(--tc-texte); }
.tc-pointeur { display: grid; gap: 8px; justify-items: center; }
.tc-modes { display: flex; gap: 6px; width: 100%; }
.tc-modes button, .tc-petit { flex: 1; min-height: 44px; border: 1px solid #343c40; background: var(--tc-surface); color: var(--tc-texte); border-radius: 10px; font: 600 15px "Inter", system-ui, sans-serif; }
.tc-modes button[aria-pressed="true"], .tc-petit[aria-pressed="true"] { background: var(--tc-accent); color: #0b1416; border-color: transparent; }
.tc-taille { display: flex; gap: 10px; align-items: center; width: 100%; font-size: 14px; color: var(--tc-second); white-space: nowrap; }
.tc-taille input { flex: 1; accent-color: var(--tc-accent); }
.tc-pointer { width: min(40vw, 22vh, 170px); aspect-ratio: 1; border-radius: 50%; border: 0; background: radial-gradient(circle at 50% 40%, #2c5c62, #173236);
  color: #fff; font: 700 19px/1.25 "Inter", system-ui, sans-serif; box-shadow: 0 0 0 6px #1e3337; touch-action: none; -webkit-touch-callout: none; }
.tc-pointer.actif { background: radial-gradient(circle at 50% 40%, #8fe3ea, #3f9aa3); color: #0b1416; box-shadow: 0 0 0 10px rgb(103 185 194 / .35), 0 0 40px rgb(103 185 194 / .5); }
.tc-pave { width: 100%; height: 18vh; border: 2px dashed #3d474c; border-radius: 14px; display: grid; place-items: center; text-align: center; color: var(--tc-second); font-size: 14px; padding: 10px; box-sizing: border-box; touch-action: none; }
.tc-activer { width: 100%; min-height: 64px; border: 0; border-radius: 14px; background: var(--tc-accent); color: #0b1416; font: 700 18px/1.2 "Inter", system-ui, sans-serif; }
.tc-activer small { font-weight: 500; font-size: 13px; }
.tc-ligne { display: flex; gap: 8px; width: 100%; }
.tc-aide { margin: 0; font-size: 13px; color: var(--tc-second); text-align: center; }
.tc-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tc-nav button { min-height: 64px; border-radius: 14px; border: 0; background: var(--tc-surface); color: var(--tc-texte); font: 700 34px "Inter", system-ui, sans-serif; }
.tc-nav button:active { background: #263034; }
.tc-nav button:disabled { opacity: .35; }

/* ---------- page des participant·es ---------- */
.page-participant { margin: 0; }
.participant { max-width: 1100px; margin: 0 auto; padding: 16px max(16px, env(safe-area-inset-right)) 32px max(16px, env(safe-area-inset-left)); display: flex; flex-direction: column; gap: 14px; }
.pa-entete { display: flex; justify-content: space-between; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.pa-entete h1 { margin: 0; font-size: clamp(22px, 4vw, 30px); }
.pa-cours { margin: 0; color: var(--texte-discret); font-size: 14px; }
.pa-telecharger { text-decoration: none; }
.support-seance { margin: 8px 0; }
.pa-suivre { display: flex; flex-direction: row; gap: 8px; align-items: center; font-size: 15px; font-weight: 400; color: var(--texte); }
.pa-suivre input { width: auto; margin: 0; }
.pa-cadre { width: 100%; border-radius: 10px; box-shadow: 0 4px 24px rgb(0 0 0 / .12); background: #fff; }
.pa-nav { display: flex; justify-content: space-between; align-items: center; gap: 10px; }

/* ---------- dans l'Atelier : éditeur et présentateur ---------- */
.seance-editeur { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; align-items: start; }
.seance-liste { display: flex; flex-direction: column; gap: 8px; position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow: auto; padding-right: 4px; }
.vignette-diapo { position: relative; display: block; width: 100%; border: 2px solid var(--trait); border-radius: 8px; background: #fff; cursor: pointer; padding: 0; overflow: hidden; }
.vignette-diapo .vd-cadre { display: block; width: 100%; aspect-ratio: 16 / 9; }
.vignette-diapo[aria-current="true"] { border-color: var(--accent); }
.vignette-diapo.masquee { opacity: .45; }
.vignette-diapo .num { position: absolute; left: 4px; top: 4px; z-index: 2; font-size: 11px; background: rgb(0 0 0 / .55); color: #fff; border-radius: 4px; padding: 0 5px; }
.seance-travail { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.apercu-diapo { width: 100%; border-radius: 10px; box-shadow: 0 4px 24px rgb(0 0 0 / .12); background: #fff; }
.form-diapo { display: grid; gap: 10px; }
.form-diapo textarea { min-height: 120px; }
.mises { display: flex; flex-wrap: wrap; gap: 6px; }
.mises button[aria-pressed="true"] { background: var(--accent-doux); border-color: var(--accent); color: var(--accent-texte); }
.presentateur { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 18px; align-items: start; }
.presentateur .actuelle { width: 100%; border-radius: 10px; background: #fff; box-shadow: 0 4px 24px rgb(0 0 0 / .14); }
.presentateur .suivante { width: 100%; border-radius: 8px; background: #fff; opacity: .9; }
.presentateur .notes { white-space: pre-wrap; font-size: 18px; line-height: 1.5; background: var(--surface); border: 1px solid var(--trait); border-radius: 10px; padding: 12px 14px; max-height: 40vh; overflow: auto; }
.presentateur .chrono { font: 600 28px/1 var(--police); font-variant-numeric: tabular-nums; }
.presentateur .qr-tel { width: 180px; height: 180px; background: #fff; border-radius: 8px; padding: 6px; }
.presentateur .qr-tel svg { width: 100%; height: 100%; }
body.plein .menu { display: none; }
body.plein .contenu { max-width: none; }
@media (max-width: 900px) {
  .seance-editeur, .presentateur { grid-template-columns: 1fr; }
  .seance-liste { position: static; flex-direction: row; max-height: none; overflow-x: auto; }
  .seance-liste .vignette-diapo { flex: 0 0 140px; }
}

/* Ce qui est relié (cours, séance) */
.relie-cours { margin-top: 24px; }
.relies { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px 24px; }
.relies-groupe h3 { margin: 0 0 4px; font-size: 15px; }
.relies-groupe .liees { margin: 0; }

/* Télécommande : dessin et minuteur */
.tc-couleurs { display: flex; gap: 10px; justify-content: center; width: 100%; }
.tc-couleurs button { width: 40px; height: 40px; border-radius: 50%; border: 2px solid #343c40; padding: 0; }
.tc-couleurs button[aria-pressed="true"] { outline: 3px solid var(--tc-accent); outline-offset: 3px; }
.tc-pave.tc-pave-dessin { height: auto; aspect-ratio: 16 / 9; border-style: solid; background: #0b0e10; }
.tc-minuteur { display: flex; gap: 8px; align-items: center; }
.tc-minuteur .tc-petit { flex: 1; }
.tc-temps { flex: 1.2; margin: 0; text-align: center; font: 700 26px/1 "Inter", system-ui, sans-serif; font-variant-numeric: tabular-nums; color: var(--tc-texte); }
.tc-temps.bientot, .tc-temps.fini { color: #EE8467; }
.tc-temps.fini { font-size: 17px; }
.page-telecommande [hidden], .page-projection [hidden], .participant [hidden], .presentateur-minuteur[hidden], .bandeau-question[hidden], .minuteur-pres[hidden] { display: none !important; }
.pa-minuteur { margin: 0; padding: 4px 12px; border-radius: 8px; background: #101315; color: #fff; font: 700 24px/1.2 "Inter", system-ui, sans-serif; font-variant-numeric: tabular-nums; }
.pa-minuteur.bientot, .pa-minuteur.fini { background: #B8452E; }
.minuteur-pres.bientot, .minuteur-pres.fini { color: var(--rouille, #B8452E); }

/* Import d'un PowerPoint depuis la liste des séances */
.depot-pptx { position: relative; display: grid; gap: 6px; justify-items: center; text-align: center; padding: 28px 20px; border: 2px dashed var(--accent, #1D6871);
  border-radius: 14px; background: var(--accent-doux, #E2EEEE); cursor: pointer; margin: 4px 0 16px; }
.depot-pptx:hover, .depot-pptx.survol, .depot-pptx:focus-within { border-style: solid; }
.depot-pptx .depot-titre { font: 700 20px/1.2 "Inter", system-ui, sans-serif; color: var(--accent, #1D6871); }
.depot-pptx .depot-titre::before { content: "⬆ "; }
.depot-fichier { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.import-seance { margin: 4px 0 16px; }
.emplacements-import { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.emplacement { display: grid; gap: 6px; align-content: start; justify-items: start; padding: 12px; border: 1px solid var(--trait); border-radius: 10px; }
.emplacement.rempli { border-color: var(--accent); }
.emplacement.conseille { border: 2px solid var(--accent); background: var(--accent-doux); }
.visuellement-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Vue présentateur : questions de la séance */
.bandeau-question { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 10px; background: var(--accent-doux); border: 2px solid var(--accent); }
.bandeau-question strong { margin-right: auto; }
.questions-presentateur .pq-liste { margin: 0; padding-left: 1.2em; display: grid; gap: 10px; max-height: 45vh; overflow: auto; }
.pq-liste li { display: grid; gap: 4px; justify-items: start; padding: 6px 8px; border-radius: 8px; }
.pq-liste li.projetee { background: var(--accent-doux); outline: 2px solid var(--accent); }
.pq-enonce { font-size: 15px; line-height: 1.35; }
