/* Escape game « Les deux portes » — la porte orange du socioconstructivisme (SC), la porte bleu canard de l'enseignement explicite (EE).
   Fond nuit, accents dorés ; les énigmes restent sur des cartes claires, faciles à lire. */
@font-face { font-family: "Andika"; src: url("polices/Andika-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Andika"; src: url("polices/Andika-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Nunito Sans"; src: url("polices/NunitoSans-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Nunito Sans"; src: url("polices/NunitoSans-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }
:root {
  --nuit: #0E2830; --nuit2: #15404B; --nuit3: #1D5563; --or: #F2B705; --or-fonce: #C99500;
  --sc: #E8673F; --sc-clair: #FDE7DF; --ee: #2BA3B8; --ee-fonce: #1A6F7E; --ee-clair: #DDF2F5;
  --gris: #6B6F76; --encre: #23201C; --lisere: #D5DDE0; --vert: #1E9E48; --rouge: #D9452E;
  --titre: "Nunito Sans", "Andika", Arial, sans-serif;
  font-family: "Andika", Arial, sans-serif; color: var(--encre); font-size: 18px; line-height: 1.5;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(ellipse at 50% -20%, var(--nuit3), var(--nuit) 60%) fixed; color: #fff; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--or); outline-offset: 2px; }
.cache { display: none !important; }
h1, h2, h3 { font-family: var(--titre); font-weight: 800; letter-spacing: .01em; }
a { color: var(--or); }
main { max-width: 1000px; margin: 0 auto; padding: 20px 18px 60px; }
header.bandeau { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; padding: 14px 24px; background: rgba(0,0,0,.18); border-bottom: 1px solid rgba(255,255,255,.08); }
header.bandeau h1 { font-size: 1.3rem; margin: 0; flex: 1; }
header.bandeau .info { opacity: .9; }
.carte { background: #fff; color: var(--encre); border-radius: 22px; padding: 24px 26px; box-shadow: 0 14px 40px rgba(0,0,0,.28); }
.carte a { color: var(--ee-fonce); }
.bouton { display: inline-flex; align-items: center; justify-content: center; gap: .45em; border: 0; border-radius: 999px; padding: .65em 1.6em;
  font-family: var(--titre); font-weight: 800; text-decoration: none; background: var(--or); color: var(--nuit); box-shadow: 0 4px 0 var(--or-fonce); transition: transform .12s; }
.carte a.bouton, a.bouton { color: var(--nuit); }
.bouton:hover { transform: translateY(-2px); }
.bouton:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--or-fonce); }
.bouton.second, .carte a.bouton.second { background: #fff; color: var(--ee-fonce); box-shadow: 0 4px 0 #C4D3D7; }
.carte .bouton.second { border: 2px solid var(--ee); box-shadow: none; }
.bouton:disabled { opacity: .5; cursor: default; }
label.champ { display: block; font-weight: 700; margin: 1.1rem 0 .35rem; }
input[type=text], input[type=password] { width: 100%; padding: .6em .9em; border: 2px solid var(--lisere); border-radius: 14px; background: #fff; color: var(--encre); }
input.code { text-transform: uppercase; letter-spacing: .35em; font-family: var(--titre); font-weight: 800; font-size: 1.8rem; text-align: center; max-width: 11em; }
.message { margin-top: .8rem; font-weight: 700; color: var(--rouge); min-height: 1.5em; }

/* ---------- l'accueil : les deux portes ---------- */
.hero { text-align: center; padding: 26px 10px 10px; }
.hero .surtitre { text-transform: uppercase; letter-spacing: .25em; color: var(--or); font-weight: 700; font-size: .85rem; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); margin: .2em 0 .1em; line-height: 1.05; }
.hero p.accroche { font-size: 1.15rem; opacity: .92; max-width: 40em; margin: .4em auto 1.2em; }
.portes { display: flex; justify-content: center; gap: clamp(18px, 6vw, 80px); margin: 10px 0 26px; }
.porte { width: clamp(120px, 20vw, 180px); aspect-ratio: 3 / 4.6; border-radius: 90px 90px 10px 10px; position: relative; display: flex; flex-direction: column;
  align-items: center; justify-content: flex-end; padding-bottom: 22px; font-family: var(--titre); font-weight: 800; color: #fff; text-align: center; line-height: 1.1;
  animation: lueur 3s ease-in-out infinite alternate; }
.porte.sc { background: linear-gradient(160deg, #F28A63, var(--sc)); box-shadow: 0 0 40px rgba(232,103,63,.55); }
.porte.ee { background: linear-gradient(160deg, #4CC3D6, var(--ee)); box-shadow: 0 0 40px rgba(43,163,184,.55); animation-delay: 1.5s; }
.porte::after { content: ""; position: absolute; right: 16%; top: 55%; width: 12px; height: 12px; border-radius: 50%; background: var(--or); box-shadow: 0 0 10px var(--or); }
.porte .lettres { font-size: 2.6rem; }
.porte small { font-size: .78rem; font-weight: 700; opacity: .95; }
@keyframes lueur { from { filter: brightness(.95); } to { filter: brightness(1.12); } }
.actions-accueil { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.regles { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-top: 30px; }
.regle { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); border-radius: 18px; padding: 16px; }
.regle .ico { font-size: 1.8rem; }
.regle b { display: block; font-family: var(--titre); margin: .2rem 0; }

/* ---------- rejoindre : niveaux et avatars ---------- */
.choix-grille { display: flex; flex-wrap: wrap; gap: .55rem; }
.choix-grille button { border: 2px solid var(--lisere); background: #fff; border-radius: 16px; padding: .55em 1.1em; font-family: var(--titre); font-weight: 800; font-size: 1.15rem; transition: transform .1s; }
.choix-grille button:hover { transform: translateY(-2px); }
.choix-grille button[aria-pressed="true"] { border-color: var(--ee); background: var(--ee); color: #fff; }
.avatars button { font-size: 1.9rem; padding: .2em .45em; line-height: 1.2; }
.avatars button[aria-pressed="true"] { background: var(--or); border-color: var(--or-fonce); }

/* ---------- en jeu ---------- */
.jeu-haut { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin-bottom: 14px; }
.jeu-haut .equipe { display: flex; align-items: center; gap: .5rem; font-weight: 700; flex: 1; min-width: 12em; }
.jeu-haut .equipe .av { font-size: 2.2rem; line-height: 1; filter: drop-shadow(0 3px 6px rgba(0,0,0,.35)); }
.pastille { border-radius: 999px; padding: .2em .9em; font-family: var(--titre); font-weight: 800; white-space: nowrap; }
.pastille.points { background: var(--or); color: var(--nuit); font-size: 1.15rem; }
.pastille.points.bump { animation: bump .5s; }
.pastille.serie { background: rgba(255,255,255,.12); }
.pastille.serie.chaud { background: #FF7A1A; animation: bump .5s; }
.son { border: 0; background: rgba(255,255,255,.12); border-radius: 999px; width: 2.3em; height: 2.3em; }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.25); } 100% { transform: scale(1); } }
.carte-salles { display: grid; grid-template-columns: repeat(9, 1fr); gap: 6px; margin-bottom: 10px; }
.salle-pt { background: rgba(255,255,255,.07); border: 2px solid rgba(255,255,255,.1); border-radius: 14px; padding: 6px 2px 4px; text-align: center; transition: all .3s; }
.salle-pt .ico { font-size: 1.45rem; line-height: 1.2; filter: grayscale(1) opacity(.55); }
.salle-pt .num { font-size: .7rem; opacity: .7; font-weight: 700; }
.salle-pt .etoiles { font-size: .62rem; letter-spacing: -.05em; min-height: 1.1em; color: var(--or); }
.salle-pt.faite .ico, .salle-pt.ici .ico { filter: none; }
.salle-pt.faite { border-color: rgba(242,183,5,.5); }
.salle-pt.ici { border-color: var(--or); background: rgba(242,183,5,.16); box-shadow: 0 0 18px rgba(242,183,5,.45); transform: translateY(-3px); }
.salle-pt.hors { opacity: .25; }
.progression { height: 8px; background: rgba(255,255,255,.12); border-radius: 999px; overflow: hidden; margin-bottom: 14px; }
.progression span { display: block; height: 100%; background: linear-gradient(90deg, var(--or), #FFD84D); border-radius: 999px; transition: width .5s; }
.enigme-carte { position: relative; overflow: hidden; }
.enigme-carte::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 8px; background: linear-gradient(var(--sc), var(--ee)); }
.tete-enigme { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: .6rem; }
.tete-enigme .titre-salle { font-family: var(--titre); font-weight: 800; color: var(--ee-fonce); flex: 1; }
.tete-enigme .compteur { color: var(--gris); font-weight: 700; font-size: .95rem; }
.contexte { background: #F1F5F6; border-left: 4px solid var(--gris); border-radius: 0 12px 12px 0; padding: .55em 1em; margin: 0 0 1rem; font-size: .95rem; color: #3C4247; }
.question { font-size: 1.3rem; font-weight: 700; margin: .2rem 0 .3rem; }
.consigne { color: var(--gris); margin: 0 0 1rem; }
.options { display: grid; gap: .55rem; }
.options button { text-align: left; background: #fff; border: 2px solid var(--lisere); border-radius: 16px; padding: .75em 1em; font-size: 1.02rem; line-height: 1.35; transition: transform .1s, border-color .15s; }
.options button:hover:not(:disabled) { border-color: var(--ee); transform: translateY(-2px); }
.options button.faux { border-color: var(--rouge); background: #FCE6E2; animation: secoue .35s; }
.options button.bonne { border-color: var(--vert); background: #E3F6E8; font-weight: 700; animation: bump .45s; }
.options button:disabled { cursor: default; }
.options.serre { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.options.repere { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(5, auto); grid-auto-flow: column; }
.options.repere button:nth-child(-n+5) { border-left: 7px solid var(--sc); }
.options.repere button:nth-child(n+6) { border-left: 7px solid var(--ee); }
@keyframes secoue { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-7px); } 75% { transform: translateX(7px); } }
.essais { color: var(--gris); font-size: .9rem; margin-top: .7rem; }
.retour { margin-top: 1rem; padding: .85em 1.1em; border-radius: 14px; font-weight: 700; }
.retour.bien { background: #E3F6E8; color: var(--vert); }
.retour.encore { background: #FCE6E2; color: var(--rouge); }
.retour.revele { background: #FFF4D1; color: #7A5B00; }
.retour .explication { display: block; font-weight: 400; color: var(--encre); margin-top: .3rem; }
.suite { margin-top: 1rem; text-align: right; }
.bas-jeu { margin-top: 1rem; opacity: .85; font-size: .95rem; }
.bas-jeu button { border: 0; background: none; color: inherit; text-decoration: underline; padding: 0; }
.flotte { position: fixed; z-index: 30; font-family: var(--titre); font-weight: 800; font-size: 2rem; color: var(--or); text-shadow: 0 2px 8px rgba(0,0,0,.4); pointer-events: none; animation: flotte 1.1s ease-out forwards; }
@keyframes flotte { from { opacity: 1; transform: translateY(0) scale(1); } to { opacity: 0; transform: translateY(-90px) scale(1.4); } }
canvas#confettis { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 60; }

/* l'annonce d'une nouvelle salle */
.voile { position: fixed; inset: 0; z-index: 50; background: rgba(6,20,25,.85); display: flex; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(3px); }
.annonce { text-align: center; max-width: 540px; animation: entre .45s cubic-bezier(.2,1.4,.5,1); }
.annonce .grand-ico { font-size: 5rem; line-height: 1; filter: drop-shadow(0 6px 18px rgba(242,183,5,.5)); }
.annonce .debloque { text-transform: uppercase; letter-spacing: .25em; color: var(--or); font-weight: 700; margin-top: .6rem; }
.annonce h2 { font-size: 2rem; margin: .2em 0; }
.annonce p { font-size: 1.15rem; opacity: .92; }
.annonce .recap { font-size: 1rem; opacity: .85; }
@keyframes entre { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: scale(1); } }

/* la fin */
.fin { text-align: center; }
.fin .trophee { font-size: 5rem; line-height: 1; animation: entre .6s cubic-bezier(.2,1.4,.5,1); }
.fin .gros { font-family: var(--titre); font-size: 3.2rem; font-weight: 800; color: var(--ee-fonce); }
.fin .rang { font-family: var(--titre); font-weight: 800; font-size: 1.3rem; color: var(--sc); min-height: 1.5em; }
.bilan-salles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; margin: 1rem 0; text-align: left; }
.bilan-salles div { background: #F4F7F8; border-radius: 12px; padding: 6px 10px; font-size: .9rem; }
.bilan-salles .e { color: var(--or-fonce); letter-spacing: .05em; }

/* ---------- le tableau des scores (projeté) ---------- */
body.projection main { max-width: 1560px; padding-top: 14px; }
.scores-tete { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 14px; }
.scores-tete h1 { margin: 0; font-size: 2rem; }
.scores-tete .rejoindre-info { display: flex; align-items: center; gap: .8rem; font-size: 1.1rem; flex-wrap: wrap; }
.code-geant { font-family: var(--titre); font-size: 2.4rem; font-weight: 800; letter-spacing: .25em; background: var(--or); color: var(--nuit); border-radius: 14px; padding: 0 .45em; }
.scores-corps { display: grid; grid-template-columns: 1fr 300px; gap: 16px; }
.colonnes { display: grid; gap: 12px; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.colonne { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); border-radius: 18px; padding: 12px; min-height: 200px; }
.colonne h2 { margin: 0; text-align: center; font-size: 1.7rem; }
.colonne .resume { text-align: center; font-size: .85rem; opacity: .8; margin-bottom: 10px; }
.binome { background: #fff; color: var(--encre); border-radius: 14px; padding: 8px 10px; margin-bottom: 8px; }
.binome .ligne1 { display: flex; align-items: center; justify-content: space-between; gap: .4rem; font-weight: 700; }
.binome .qui { display: flex; align-items: center; gap: .35rem; min-width: 0; }
.binome .qui .av { font-size: 1.5rem; line-height: 1; }
.binome .qui .n { overflow: hidden; text-overflow: ellipsis; }
.binome .med { font-size: 1.2rem; }
.binome .pts { color: var(--ee-fonce); font-family: var(--titre); font-weight: 800; white-space: nowrap; }
.binome .barre { height: 7px; background: #E3EAEC; border-radius: 999px; margin-top: 6px; overflow: hidden; }
.binome .barre span { display: block; height: 100%; background: linear-gradient(90deg, var(--sc), var(--ee)); transition: width .6s; }
.binome .detail { font-size: .78rem; color: var(--gris); margin-top: 3px; }
.binome.premier { outline: 3px solid var(--or); box-shadow: 0 0 22px rgba(242,183,5,.4); }
.fil { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); border-radius: 18px; padding: 12px 14px; }
.fil h2 { margin: 0 0 8px; font-size: 1.2rem; }
.fil .ev { display: flex; gap: .5rem; align-items: flex-start; padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: .92rem; }
.fil .ev.neuf { animation: entre .4s; }
.fil .ev .av { font-size: 1.4rem; line-height: 1.1; }
.fil .ev small { opacity: .7; display: block; }
.comparaison { margin-top: 16px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); border-radius: 18px; padding: 14px 20px; }
.comparaison h2 { margin: 0 0 10px; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.barres-niveaux { display: grid; grid-template-columns: 5em 1fr 7em; gap: 9px 14px; align-items: center; }
.barres-niveaux .nv { font-family: var(--titre); font-weight: 800; font-size: 1.3rem; }
.barres-niveaux .piste { background: rgba(255,255,255,.1); border-radius: 999px; height: 30px; overflow: hidden; }
.barres-niveaux .piste span { display: block; height: 100%; background: linear-gradient(90deg, var(--sc), var(--or)); border-radius: 999px; transition: width .8s cubic-bezier(.2,1,.3,1); }
.barres-niveaux .val { font-family: var(--titre); font-weight: 800; font-size: 1.2rem; }
.choix-mesure { display: inline-flex; border-radius: 999px; overflow: hidden; border: 2px solid rgba(255,255,255,.6); font-size: .95rem; }
.choix-mesure button { border: 0; background: transparent; color: #fff; padding: .25em 1em; font-family: var(--titre); font-weight: 700; }
.choix-mesure button[aria-pressed="true"] { background: #fff; color: var(--ee-fonce); }
.note { opacity: .75; font-size: .85rem; margin-top: 8px; }
@media (max-width: 1250px) { .scores-corps { grid-template-columns: 1fr; } .colonnes { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); } }

/* ---------- animateur et parcours (sur cartes claires) ---------- */
.salles-choix { display: grid; gap: .3rem; margin-top: .4rem; }
.salles-choix label { display: flex; gap: .5rem; align-items: center; }
.liste-parties { margin-top: 1rem; display: grid; gap: .6rem; }
.liste-parties .partie { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; border: 1px solid var(--lisere); border-radius: 14px; padding: .6em .9em; background: #fff; }
.liste-parties .partie b { letter-spacing: .15em; font-family: var(--titre); }
.liste-parties .partie .nom { flex: 1; min-width: 10em; }
.cree { margin-top: 1rem; padding: 1rem; border-radius: 14px; background: #E3F6E8; }
.cree .code-geant { display: inline-block; margin: .3rem 0; }
.parcours-detail { text-align: left; margin-top: 1rem; }
.etape-parcours { border: 1px solid var(--lisere); border-left: 6px solid var(--gris); border-radius: 12px; padding: .5em .8em; margin-bottom: .5rem; background: #fff; color: var(--encre); font-size: .92rem; }
.etape-parcours.reussie { border-left-color: var(--vert); }
.etape-parcours.ratee { border-left-color: var(--rouge); }
.etape-parcours .tete-etape { display: flex; justify-content: space-between; gap: .6rem; font-weight: 700; }
.etape-parcours .q { margin: .2rem 0; }
.etape-parcours .essai { display: block; }
.etape-parcours .essai.ok { color: var(--vert); }
.etape-parcours .essai.ko { color: var(--rouge); }
.etape-parcours .expl { color: var(--gris); }
table.simple { border-collapse: collapse; width: 100%; font-size: .9rem; margin: .4rem 0 1rem; }
table.simple th, table.simple td { border: 1px solid var(--lisere); padding: .3em .5em; text-align: left; vertical-align: top; }
table.simple th { background: #EEF4F5; }
details.binome-parcours { border: 1px solid var(--lisere); border-radius: 12px; padding: .4em .8em; margin-bottom: .5rem; background: #fff; }
details.binome-parcours summary { cursor: pointer; font-weight: 700; }
@media (max-width: 640px) {
  :root { font-size: 16px; }
  .carte { padding: 18px 16px; }
  .carte-salles { gap: 3px; }
  .salle-pt .ico { font-size: 1.05rem; }
  .salle-pt .num { display: none; }
  .options.repere { grid-template-columns: 1fr; grid-auto-flow: row; grid-template-rows: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
.binome .nom-b { font-weight: 700; font-size: .95rem; line-height: 1.25; margin-top: 2px; overflow-wrap: anywhere; }
.binome .med { min-width: 1.4em; color: var(--gris); font-weight: 800; }
/* petits écrans : le bandeau du jeu tient sur une ligne, les longs liens se coupent */
@media (max-width: 640px) {
  .jeu-haut { gap: .4rem; }
  .jeu-haut .equipe { min-width: 0; font-size: .9rem; }
  .jeu-haut .equipe .av { font-size: 1.8rem; }
  .pastille { padding: .15em .6em; }
  .son { width: 2em; height: 2em; }
  .scores-tete h1 { font-size: 1.4rem; }
  .code-geant { font-size: 1.8rem; }
}
.rejoindre-info b, .cree a { overflow-wrap: anywhere; }
.date-partie { opacity: .8; font-size: .9em; font-weight: 400; }

/* ---------- les images du thème (déposées dans images/) et les lettres des réponses ---------- */
img.ico-img { width: 1.25em; height: 1.25em; object-fit: contain; vertical-align: -.28em; }
.salle-pt .ico img.ico-img { width: 1.6em; height: 1.6em; }
.annonce .grand-ico { position: relative; display: inline-block; }
.annonce .grand-ico img.grand { width: 8rem; height: 8rem; position: relative; z-index: 1; }
.annonce .grand-ico img.porte-fond { position: absolute; inset: -2.5rem; width: calc(100% + 5rem); height: calc(100% + 5rem); object-fit: contain; opacity: .85; animation: tourne 24s linear infinite; }
.annonce .grand-ico::before { content: ""; position: absolute; inset: -18px; border-radius: 50%; background: radial-gradient(circle, rgba(242,183,5,.45), transparent 70%); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { transform: scale(.9); opacity: .7; } 50% { transform: scale(1.15); opacity: 1; } }
@keyframes tourne { to { transform: rotate(360deg); } }
.fin .trophee img.ico-img { width: 9rem; height: 9rem; }
.avatars button img.ico-img { width: 2.6rem; height: 2.6rem; vertical-align: middle; }
.jeu-haut .equipe .av img.ico-img { width: 2.8rem; height: 2.8rem; }
.binome .qui .av img.ico-img, .fil .ev .av img.ico-img { width: 2rem; height: 2rem; }
.binome .med img.ico-img { width: 1.6rem; height: 1.6rem; }
img.ico-img.etoile { width: 1em; height: 1em; }
/* le plan du manoir, assombri pour que le texte reste lisible */
body.avec-fond { background: linear-gradient(rgba(14,40,48,.78), rgba(14,40,48,.86)) fixed, var(--image-fond) center / cover fixed, radial-gradient(ellipse at 50% -20%, var(--nuit3), var(--nuit) 60%) fixed; }
.logo-jeu img { width: 110px; height: 110px; object-fit: contain; filter: drop-shadow(0 6px 18px rgba(0,0,0,.4)); }
.illustration-accueil img { width: 100%; max-width: 860px; border-radius: 26px; box-shadow: 0 18px 50px rgba(0,0,0,.45); display: block; margin: 0 auto; }
.legende-portes { text-align: center; margin: .7rem 0 1.5rem; font-size: .95rem; opacity: .9; }
.legende-portes .sc { color: #FF9B73; font-weight: 700; } .legende-portes .ee { color: #5FD0E0; font-weight: 700; }
.options button { display: flex; align-items: flex-start; gap: .7rem; }
.options button .lettre { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 1.9em; height: 1.9em; border-radius: 50%;
  background: var(--ee-clair); color: var(--ee-fonce); font-family: var(--titre); font-weight: 800; font-size: .9rem; margin-top: -.1em; }
.options button.bonne .lettre { background: var(--vert); color: #fff; }
.options button.faux .lettre { background: var(--rouge); color: #fff; }
.options button .texte-option { flex: 1; }

/* ---------- l'univers de chaque niveau : emblème et bannière (images/niveau-ce1.png, images/banniere-ce1.png…) ---------- */
img.ico-img.embleme { width: 1.6em; height: 1.6em; margin-right: .3em; }
.choix-grille button[data-niveau] { display: inline-flex; align-items: center; }
.choix-grille button[data-niveau] img.embleme { width: 2.2rem; height: 2.2rem; }
.colonne h2 { display: flex; flex-direction: column; align-items: center; }
.colonne h2 img.embleme.grand { width: 4.2rem; height: 4.2rem; margin: 0 0 .2rem; }
.barres-niveaux .nv img.embleme { width: 1.7rem; height: 1.7rem; }
.banniere-niveau:empty { display: none; }
.banniere-niveau img.banniere { display: block; width: 100%; max-height: 150px; object-fit: cover; border-radius: 18px; margin-bottom: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.fin .banniere-niveau img.banniere { max-height: 190px; }

/* ---------- l'animateur : les énigmes (liste par salle et éditeur) ---------- */
textarea, select { width: 100%; padding: .6em .9em; border: 2px solid var(--lisere); border-radius: 14px; background: #fff; color: var(--encre); font: inherit; }
textarea { resize: vertical; }
.salle-enigmes { display: flex; align-items: center; gap: .4em; margin: 1.2rem 0 .4rem; font-size: 1.1rem; }
.enigme-ligne { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; border: 1px solid var(--lisere); border-radius: 14px; padding: .6em .9em; margin-bottom: .5rem; font-size: .95rem; }
.enigme-ligne .texte { flex: 1; min-width: 14em; }
.enigme-ligne .actions { display: flex; flex-wrap: wrap; gap: .4rem; }
.enigme-ligne .actions .bouton { padding: .35em 1em; font-size: .9rem; }
.enigme-ligne.est-masquee .texte { opacity: .5; text-decoration: line-through; text-decoration-thickness: 1px; }
.marque { display: inline-block; font-size: .75rem; font-weight: 700; border-radius: 999px; padding: .05em .7em; margin-right: .4em; color: #fff; }
.marque.masquee { background: var(--gris); } .marque.modifiee { background: var(--sc); } .marque.ajoutee { background: var(--ee); }
dialog.editeur { width: min(720px, 94vw); max-height: 92vh; border: 0; border-radius: 22px; padding: 24px 26px; color: var(--encre); box-shadow: 0 18px 50px rgba(0,0,0,.45); }
dialog.editeur::backdrop { background: rgba(14,40,48,.75); }
.e-option { display: flex; gap: .5rem; align-items: center; margin-bottom: .4rem; }
.e-option input[type=radio] { width: 1.3rem; height: 1.3rem; accent-color: var(--vert); flex: none; }
.e-option .retirer { border: 0; background: none; font-size: 1.4rem; color: var(--rouge); padding: 0 .3em; }
.editeur-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
