/* Charte graphique des diaporamas (commune à tous les ateliers).
   Mode d'emploi et règles : LISEZMOI.md, dans ce dossier.
   S'utilise avec ../vendor/reveal/reveal.css, sans thème reveal.js. */

/* ---------- Police : Inter (OFL), embarquée, aucune requête réseau ---------- */
@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(../vendor/inter/inter-latin-wght-normal.woff2) format("woff2");
}
/* Écriture manuscrite des légendes de Polaroid : Caveat (OFL), embarquée */
@font-face {
  font-family: "Caveat Variable";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../vendor/caveat/caveat-latin-wght-normal.woff2) format("woff2");
}

/* ---------- Couleurs : modifier ici, tout le diaporama suit ---------- */
:root {
  --fond: #000000;          /* toutes les diapos */
  --texte: #ffffff;
  --doux: rgba(255, 255, 255, .65);
  --fond-question: #eee9ff; /* quiz et sondages : clair et pastel (lavande) */
  --encre: #1b1530;         /* texte sur fond clair */
  --neon: #00ff9c;          /* LA couleur d'accent : mots clés, liens, barres */
  /* Quiz : 4 couleurs + 4 formes, lisibles aussi par les daltoniens */
  --q-a: #e21b3c; --q-b: #1368ce; --q-c: #d89e00; --q-d: #26890c;
  --police: "Inter Variable", "Inter", system-ui, "DejaVu Sans", sans-serif;
}

/* ---------- Base (remplace un thème reveal.js) ---------- */
.reveal-viewport { background: var(--fond); }
.reveal { font-family: var(--police); font-size: 40px; font-weight: 500; color: var(--texte); }
.reveal .slides section { line-height: 1.3; }
.reveal h1, .reveal h2, .reveal h3 {
  margin: 0 0 .5em; font-weight: 900; line-height: 1.05; letter-spacing: -.02em; color: var(--texte);
}
.reveal h1 { font-size: 3.2em; }
.reveal h2 { font-size: 1.9em; }
.reveal h3 { font-size: 1.35em; }
.reveal p { margin: .4em 0; }
.reveal a { color: var(--neon); }
.reveal strong, .reveal b { font-weight: 800; }
.reveal ul, .reveal ol { display: inline-block; text-align: left; margin: 0 0 0 1em; }
.reveal li { margin: .3em 0; }
.reveal .progress { color: var(--neon); }
.reveal .controls { color: var(--neon); }

/* ---------- Petits outils de texte ---------- */
.reveal .neon { color: var(--neon); text-shadow: 0 0 24px rgba(0, 255, 156, .6); }
.reveal .doux { color: var(--doux); }
.reveal .sous-titre { font-size: 1.1em; }
.reveal .aide { font-size: .45em; color: var(--doux); margin-top: 1.2em; }
.reveal .grand { font-size: 2em; font-weight: 900; }

/* Encadré sombre posé sur une vidéo ou une image de fond */
.reveal .voile { display: inline-block; padding: 30px 50px; border-radius: 24px; background: rgba(0, 0, 0, .72); }

/* Liste racontée étape par étape (sans puces, les emoji font les puces) */
.reveal ul.etapes { list-style: none; margin: 0; }
.reveal ul.etapes li { margin: .45em 0; font-size: .95em; }

/* Cartes (frise, comparaisons) */
.reveal .carte {
  display: inline-block; vertical-align: middle; margin: 0 14px; padding: 24px 32px;
  border-radius: 20px; background: #444; color: #fff; font-weight: 800;
}
.reveal .carte small { display: block; font-size: .5em; font-weight: 600; opacity: .85; }
.reveal .carte.rouge { background: #a42e2b; }
.reveal .carte.neon { background: #222; border: 4px solid var(--neon); }

/* Schéma vertical (chaîne de rôles, arbre de familles) : des .carte reliées par des .fleche */
.reveal .chaine .carte, .reveal .arbre .carte { margin: 6px; padding: 12px 24px; font-size: .75em; }
.reveal .fleche { font-size: .7em; line-height: 1; color: var(--doux); }

/* Visuel emprunté (image) : <figure class="visuel"><img …><figcaption class="source">…</figcaption></figure>
   Si l'image manque (version en ligne, ou pas encore sourcée), diaporama.js masque la figure. */
.reveal .visuel { margin: 0 auto .3em; }
.reveal .visuel img { max-height: 340px; max-width: 80%; border-radius: 12px; }

/* Polaroid : <figure class="visuel polaroid"><img …><figcaption>légende manuscrite</figcaption><p class="source">…</p></figure>
   Cadre blanc, légende « écrite à la main », légèrement penché ; .droite le penche de l'autre côté.
   Il arrive en se posant quand la diapo s'affiche. */
.reveal .polaroid {
  --r: -3deg;
  display: inline-block; position: relative; margin: 0; padding: 14px 14px 6px; background: #fbfaf6;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .7); transform: rotate(var(--r));
}
.reveal .polaroid.droite { --r: 3deg; }
.reveal .polaroid img { display: block; max-height: 420px; max-width: 520px; margin: 0 auto; border-radius: 2px; }
.reveal .polaroid figcaption {
  max-width: 520px; margin: 0 auto; padding: 8px 4px 2px; text-align: center;
  font-family: "Caveat Variable", "Caveat", cursive; font-size: .85em; font-weight: 600; line-height: 1.05; color: #23232b;
}
.reveal .polaroid .source { position: static; display: block; margin: 0; padding: 2px 0 4px; background: none; font-size: .28em; color: #8a8a8a; text-align: right; }
.reveal .polaroid .source.a-ecrire { display: inline-block; padding: 2px 8px; border-width: 2px; color: #d0369f; }
.reveal .slides section.present .polaroid { animation: pose .9s cubic-bezier(.2, .8, .3, 1.15) .25s both; }
.reveal .slides section.present .polaroid.droite { animation-delay: .4s; }
@keyframes pose {
  from { opacity: 0; transform: translateY(-60px) rotate(calc(var(--r) * -4)) scale(1.25); }
  to { opacity: 1; transform: rotate(var(--r)) scale(1); }
}

/* Deux colonnes : un Polaroid à côté du texte */
.reveal .duo { display: flex; align-items: center; justify-content: center; gap: 56px; text-align: left; }
.reveal .duo > :not(figure) { flex: 1 1 0; min-width: 0; max-width: 620px; }
.reveal .duo h2, .reveal .duo h3 { margin-bottom: .35em; }
.reveal .duo ul.etapes li { font-size: .82em; }

/* Message d'époque (Usenet), recopié en texte plutôt qu'en capture d'écran */
.reveal .message {
  display: inline-block; max-width: 900px; margin: 0 auto .4em; padding: 22px 30px; text-align: left;
  font-family: "DejaVu Sans Mono", "Courier New", monospace; font-size: .5em; line-height: 1.4;
  background: #0b0f0b; color: #c8ffd9; border: 2px solid rgba(0, 255, 156, .5); border-radius: 10px;
  box-shadow: 0 0 40px rgba(0, 255, 156, .25);
}
.reveal .message .entete { margin: 0 0 .8em; color: rgba(200, 255, 217, .6); }
.reveal .message .corps { margin: .3em 0; font-size: 1.25em; color: var(--neon); }
.reveal .slides section.present .message { animation: pose .9s cubic-bezier(.2, .8, .3, 1.15) .2s both; --r: 0deg; }

/* Frise des épisodes : des .carte côte à côte, sur une ligne */
.reveal .frise { display: flex; justify-content: center; align-items: stretch; gap: 14px; margin-top: .6em; }
.reveal .frise .carte { margin: 0; padding: 18px 20px; font-size: .62em; flex: 1 1 0; max-width: 230px; }
.reveal .frise .carte b { display: block; font-size: 1.5em; color: var(--neon); }

/* Petites cartes en grille (ex. les Unix des fabricants) */
.reveal .cartes { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 1000px; margin: .4em auto; }
.reveal .cartes .carte { margin: 0; padding: 12px 22px; font-size: .62em; }

/* Liste de sources en fin de diaporama */
.reveal ul.biblio { list-style: none; margin: .4em 0 0; font-size: .55em; color: var(--doux); }
.reveal ul.biblio li { margin: .25em 0; }

/* Titre d'épisode */
.reveal .episode { font-size: .6em; font-weight: 800; letter-spacing: .3em; text-transform: uppercase; color: var(--neon); }

/* Consigne d'activité : un gros picto, une phrase */
.reveal .consigne .picto { font-size: 3em; line-height: 1; }

/* Légende de source (obligatoire sous une vidéo ou une image empruntée) */
.reveal .source {
  position: absolute; left: 0; bottom: -1.4em; font-size: .38em; color: var(--doux);
  background: rgba(0, 0, 0, .55); padding: 4px 12px; border-radius: 8px;
}

/* À remplacer avant samedi : bien visible pour ne pas l'oublier */
.reveal .a-ecrire { border: 3px dashed #ff4fd8; color: #ff9de9; padding: 10px 20px; border-radius: 12px; font-size: .7em; }

/* ---------- Quiz et sondages : fond clair (posé par diaporama.js) ---------- */
.reveal section.quiz, .reveal section.quiz h2, .reveal section.quiz h3 { color: var(--encre); }
.reveal section.quiz .aide { color: rgba(0, 0, 0, .55); }
.reveal.has-light-background .controls, .reveal.has-light-background .progress { color: var(--encre); }
.reveal .chrono { width: 80%; height: 14px; margin: 10px auto 26px; border-radius: 7px; overflow: hidden; background: rgba(128, 128, 128, .25); }
.reveal .chrono > div { width: 100%; height: 100%; background: var(--neon); transform-origin: left; }
/* Le chrono démarre à l'arrivée sur SA diapo (pas sur la pile verticale qui la contient) et repart de zéro à chaque retour */
.reveal .slides section.present:not(.stack) > .chrono > div { animation: chrono var(--duree, 20s) linear forwards; }
@keyframes chrono { to { transform: scaleX(0); background: var(--q-a); } }

.reveal .reponses { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; width: 90%; margin: 0 auto; }
.reveal .rep {
  padding: 26px; border-radius: 16px; color: #fff; font-size: .9em; font-weight: 800; text-align: left;
  cursor: pointer; user-select: none; transition: opacity .4s, transform .4s;
}
.reveal .rep::before { display: inline-block; width: 1.6em; }
.reveal .rep:nth-child(1) { background: var(--q-a); } .reveal .rep:nth-child(1)::before { content: "▲"; }
.reveal .rep:nth-child(2) { background: var(--q-b); } .reveal .rep:nth-child(2)::before { content: "◆"; }
.reveal .rep:nth-child(3) { background: var(--q-c); } .reveal .rep:nth-child(3)::before { content: "●"; }
.reveal .rep:nth-child(4) { background: var(--q-d); } .reveal .rep:nth-child(4)::before { content: "■"; }
/* 5e et 6e réponses : sondages à 6 choix (ex. les 6 distributions) */
.reveal .rep:nth-child(5) { background: #8e24aa; } .reveal .rep:nth-child(5)::before { content: "★"; }
.reveal .rep:nth-child(6) { background: #00838f; } .reveal .rep:nth-child(6)::before { content: "♥"; }
/* « Linux ou pas Linux ? » : vert pour Linux, rouge pour pas Linux */
.reveal .rep.oui { background: #1f8f3a; } .reveal .rep.oui::before { content: "🐧"; }
.reveal .rep.non { background: #d32f2f; } .reveal .rep.non::before { content: "❌"; }
.reveal .rep .compte { float: right; padding: 0 .5em; border-radius: 8px; background: rgba(0, 0, 0, .3); }
.reveal section.revele .rep:not(.bonne) { opacity: .2; transform: scale(.95); }
.reveal section.revele .rep.bonne { transform: scale(1.06); box-shadow: 0 0 0 6px var(--encre); }

/* Tableau des scores des binômes */
.reveal .scores { width: 80%; margin: 0 auto; }
.reveal .equipe { display: flex; align-items: center; gap: 16px; margin: 10px 0; font-size: .8em; }
.reveal .equipe .nom { flex: 0 0 9em; text-align: right; font-weight: 800; white-space: nowrap; }
.reveal .equipe .barre { min-width: 8px; height: 40px; border-radius: 8px; background: var(--neon); transition: width .5s;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .35); } /* liseré : une barre noire reste visible sur fond noir */
.reveal .equipe .pts { font-weight: 900; }
.reveal .scores button { font: inherit; font-size: .7em; padding: 2px 12px; border: 0; border-radius: 8px; cursor: pointer; }
.reveal .scores .raz { margin-top: 14px; font-size: .45em; opacity: .6; }

/* Feuille de marque : pastilles des binômes sous un quiz noté, visibles après la révélation */
.reveal .marque { display: none; justify-content: center; gap: 10px; margin-top: 22px; }
.reveal section.revele .marque { display: flex; }
.reveal .marque button {
  font: inherit; font-size: .45em; font-weight: 800; padding: 6px 14px; border-radius: 999px; cursor: pointer;
  border: 3px solid var(--encre); background: transparent; color: var(--encre);
}
.reveal .marque button { border-color: var(--c, var(--encre)); }
.reveal .marque button.ok { background: var(--c, var(--q-d)); border-color: var(--c, var(--q-d)); color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
.reveal .marque button.ok::before { content: "✓ "; }
.reveal .scores .exporte { margin-top: 14px; font-size: .45em; opacity: .6; }

/* ---------- Ajouts de l'atelier 2 (terminal, station Alice) ---------- */
/* Commandes à l'écran : police à chasse fixe, couleur du texte autour */
.reveal .slides code { font-family: "DejaVu Sans Mono", "Courier New", monospace; font-weight: 700; }

/* Carte de commande : la commande en néon, puis son nom d'origine, lettres utiles en néon
   <div class="carte commande"><code>ls</code><span class="nom"><b>l</b>i<b>s</b>t</span><small>la liste</small></div> */
.reveal .carte.commande { background: #111; border: 3px solid rgba(255, 255, 255, .25); padding: 18px 34px; text-align: center; font-size: 1.1em; }
.reveal .cartes .carte.commande { font-size: .85em; padding: 16px 26px; }
.reveal .carte.commande small { font-size: .7em; }
.reveal .carte.commande code { display: block; font-size: 1.5em; color: var(--neon); text-shadow: 0 0 18px rgba(0, 255, 156, .5); }
.reveal .carte.commande .nom { display: block; font-size: .7em; font-weight: 600; color: var(--doux); }
.reveal .carte.commande .nom b { color: var(--neon); font-weight: 900; }

/* Chaîne horizontale : des .carte reliées par des .fleche (→), sur une ligne */
.reveal .chaine.ligne { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; }
.reveal .chaine.ligne .fleche { font-size: 1em; }
.reveal .chaine.ligne .carte { margin: 0; padding: 12px 18px; font-size: 1.1em; }
.reveal .chaine.ligne .carte small { font-size: .5em; }
/* Grandes cartes en grille (ex. les équipes) */
.reveal .cartes.grandes { max-width: 780px; }
.reveal .cartes.grandes .carte { font-size: .9em; padding: 16px 28px; }

/* Alerte : bandeau ambre en haut de la diapo, un seul fondu, pas de clignotement
   <section class="alerte"><p class="bandeau">Transmission prioritaire</p>…</section> */
.reveal .alerte .bandeau {
  display: inline-block; margin: 0 0 1em; padding: 10px 28px; border-radius: 10px; background: var(--q-c); color: #000;
  font-size: .5em; font-weight: 900; letter-spacing: .25em; text-transform: uppercase;
}
.reveal .slides section.alerte.present > * { animation: alerte .8s ease-out both; }
@keyframes alerte { from { opacity: 0; } to { opacity: 1; } }

/* Porte du jeu : un quiz dont les lettres A B C D se tapent sur la console. Pas de compteur de votes.
   <section class="quiz porte"><p class="etiquette">Porte 1 · tape la lettre sur ta console</p>…</section> */
.reveal section.porte .rep::before { width: 2.8em; }
.reveal section.porte .rep:nth-child(1)::before { content: "▲ A"; }
.reveal section.porte .rep:nth-child(2)::before { content: "◆ B"; }
.reveal section.porte .rep:nth-child(3)::before { content: "● C"; }
.reveal section.porte .rep:nth-child(4)::before { content: "■ D"; }
.reveal section.porte .rep .compte { display: none; }
.reveal .etiquette {
  display: inline-block; margin: 0 0 .7em; padding: 6px 18px; border-radius: 999px; background: var(--encre); color: #fff;
  font-size: .45em; font-weight: 800; letter-spacing: .15em; text-transform: uppercase;
}

/* Grand écran du jeu dans une diapo (data-src : chargé à l'affichage, déchargé au départ)
   <section data-background-color="#000"><iframe class="grand-ecran" data-src="../grand-ecran/?vue=carte"></iframe></section>
   .signal : la même iframe, invisible, quand elle ne sert qu'à envoyer un signal aux postes. */
.reveal iframe.grand-ecran { display: block; width: 1280px; height: 720px; border: 0; margin: 0 auto; }
.reveal iframe.grand-ecran.signal { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
/* Titre lu par l'antisèche (conducteur.sh), caché à l'écran */
.reveal .cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
