/* ==========================================================================
   Le grand défi de l'entreprise — styles
   Famille graphique Business Talents : bleu nuit, ivoire, turquoise, ambre, corail.
   Titres en serif, interface en sans serif système. Aucune police téléchargée.
   ========================================================================== */
:root {
  --nuit: #0d2238; --nuit2: #14304d; --encre: #142e49;
  --ivoire: #f7f0e1; --ivoire2: #efe5cf; --papier: #fffaf0; --trait: #d9cdb2;
  --turquoise: #2cc4bd; --ambre: #f0a23c; --corail: #f0705f;
  --vert: #1a7f66; --rouge: #a8352a;
  --serif: Georgia, 'Iowan Old Style', 'Palatino Linotype', Palatino, 'Times New Roman', serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --focus: #f0a23c;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--nuit); color: var(--ivoire); font: 16px/1.5 var(--sans); min-height: 100dvh; }
body::before { content: ''; position: fixed; inset: 0; z-index: -1; background: radial-gradient(1200px 700px at 75% 10%, #1b3d60 0, transparent 60%), radial-gradient(900px 600px at 0 100%, #123a4a 0, transparent 60%), var(--nuit); }
h1, h2 { font-family: var(--serif); line-height: 1.15; margin: 0; }
p { margin: 0 0 .7em; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.petit { font-size: .86rem; opacity: .8; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.panneau, .modale-boite, .fin-carte { --focus: #0d2238; }
.panneau :focus-visible, .modale-boite :focus-visible, .fin-carte :focus-visible { box-shadow: 0 0 0 7px rgba(240, 162, 60, .75); }
.evitement { position: absolute; left: 8px; top: -60px; background: var(--ambre); color: var(--nuit); padding: 10px 14px; border-radius: 8px; z-index: 100; font-weight: 700; }
.evitement:focus { top: 8px; }
.ico { width: 1.2em; height: 1.2em; flex: none; vertical-align: -.2em; }
.pion-mini { width: 30px; height: 30px; flex: none; font-family: var(--sans); }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 20px; border-radius: 12px; border: 2px solid transparent; font-weight: 700; text-align: center; transition: transform .12s, background-color .15s, box-shadow .15s; }
.btn.grand { min-height: 56px; font-size: 1.08rem; padding: 12px 26px; }
.btn.primaire { background: var(--turquoise); color: var(--nuit); box-shadow: 0 4px 0 #17908b; }
.btn.primaire:hover:not(:disabled) { background: #45d6cf; transform: translateY(-1px); }
.btn.primaire:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 #17908b; }
.btn.secondaire { background: transparent; border-color: var(--nuit); color: var(--nuit); }
.btn.secondaire:hover:not(:disabled) { background: rgba(13, 34, 56, .08); }
.btn.secondaire.clair { border-color: var(--ivoire); color: var(--ivoire); }
.btn.secondaire.clair:hover { background: rgba(247, 240, 225, .12); }
.btn:disabled { opacity: .5; box-shadow: none; }
.btn-icone { width: 44px; height: 44px; border-radius: 12px; border: 0; background: transparent; color: var(--ivoire); display: inline-grid; place-items: center; }
.btn-icone:hover { background: rgba(247, 240, 225, .14); }
.btn-icone.sombre { color: var(--nuit); }
.btn-icone.sombre:hover { background: rgba(13, 34, 56, .1); }
.lien { background: none; border: 0; padding: 12px 4px; color: var(--ivoire); text-decoration: underline; text-underline-offset: 4px; min-height: 44px; }
.lien:hover { color: var(--turquoise); }
.bt-logo { display: inline-flex; align-items: center; background: #fff; border-radius: 10px; padding: 6px 10px; min-height: 44px; color: #0070c0; font-weight: 700; text-decoration: none; }
.bt-logo img { height: 34px; width: auto; display: block; }
.bt-logo.petit { padding: 4px 8px; min-height: 36px; }
.bt-logo.petit img { height: 28px; }

/* ---------- Accueil ---------- */
.accueil { min-height: 100dvh; display: grid; grid-template-columns: minmax(340px, 520px) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; padding: 28px clamp(20px, 5vw, 72px); max-width: 1560px; margin: 0 auto; }
.accueil-plateau { min-width: 0; display: flex; justify-content: center; }
.accueil-plateau svg { width: min(100%, calc(100dvh - 56px)); height: auto; aspect-ratio: 1; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .4)); }
.signature { display: flex; align-items: center; gap: 10px; font-size: .9rem; opacity: .95; margin-bottom: 22px; }
.accueil h1 { font-size: clamp(2.3rem, 5vw, 3.7rem); color: var(--ivoire); }
.accueil h1 span { display: block; color: var(--ambre); font-style: italic; }
.accroche { font-size: 1.1rem; margin: 18px 0 22px; max-width: 34em; color: #dfe7ee; }
.chargement { opacity: .8; }
fieldset { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
legend { font-weight: 700; padding: 0; margin-bottom: 8px; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--turquoise); }
.choix-cartes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.carte-choix, .choix-nombre label { position: relative; cursor: pointer; }
.carte-choix input, .choix-nombre input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.carte-choix > span { display: block; padding: 12px 14px; border-radius: 12px; border: 2px solid rgba(247, 240, 225, .3); background: rgba(247, 240, 225, .06); min-height: 64px; }
.carte-choix b { display: block; font-size: 1.05rem; }
.carte-choix small { opacity: .8; font-size: .85rem; }
.choix-nombre { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.choix-nombre span { display: grid; place-items: center; min-height: 48px; border-radius: 12px; border: 2px solid rgba(247, 240, 225, .3); background: rgba(247, 240, 225, .06); font-weight: 700; }
.carte-choix input:checked + span, .choix-nombre input:checked + span { border-color: var(--turquoise); background: rgba(44, 196, 189, .18); box-shadow: inset 0 0 0 1px var(--turquoise); }
.carte-choix input:focus-visible + span, .choix-nombre input:focus-visible + span { outline: 3px solid var(--ambre); outline-offset: 3px; }
#noms { display: grid; gap: 8px; margin-top: 10px; }
.champ-nom { display: flex; align-items: center; gap: 10px; }
.champ-nom input { flex: 1; min-width: 0; min-height: 46px; border-radius: 10px; border: 2px solid rgba(247, 240, 225, .3); background: rgba(13, 34, 56, .5); color: var(--ivoire); padding: 8px 12px; }
.champ-nom input::placeholder { color: #a9b6c3; }
#form-partie .btn.grand { width: 100%; }
.reprise { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--ivoire); color: var(--nuit); margin-bottom: 20px; }
.reprise b { display: block; font-family: var(--serif); font-size: 1.1rem; }
.reprise span { font-size: .88rem; }
.accueil-liens { margin: 10px 0 0; display: flex; gap: 18px; flex-wrap: wrap; }
.avis { background: rgba(240, 162, 60, .16); border-left: 4px solid var(--ambre); padding: 10px 14px; border-radius: 8px; }
.avis.erreur { border-left-color: var(--corail); background: rgba(240, 112, 95, .14); }

/* ---------- Partie : structure ---------- */
#ecran-jeu { height: 100dvh; display: flex; flex-direction: column; }
.barre { flex: none; height: 54px; display: flex; align-items: center; gap: 8px; padding: 0 10px 0 16px; background: var(--nuit2); border-bottom: 1px solid rgba(247, 240, 225, .12); }
.barre-titre { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 12px; white-space: nowrap; overflow: hidden; }
.barre-titre b { font-family: var(--serif); font-size: 1.15rem; }
.barre-titre span { font-size: .85rem; opacity: .8; overflow: hidden; text-overflow: ellipsis; }
.scene { flex: 1; min-height: 0; display: grid; gap: 14px; padding: 14px; grid-template-columns: minmax(0, 1fr) clamp(350px, 32vw, 440px); grid-template-rows: auto minmax(0, 1fr); grid-template-areas: "plateau joueurs" "plateau panneau"; }
.plateau-zone { grid-area: plateau; min-width: 0; min-height: 0; display: flex; align-items: center; justify-content: center; }
#plateau { width: min(100%, calc(100dvh - 54px - 28px)); aspect-ratio: 1; }
.joueurs { grid-area: joueurs; display: grid; gap: 8px; align-content: start; }
.panneau { grid-area: panneau; min-height: 0; overflow: auto; background: var(--ivoire); color: var(--nuit); border-radius: 18px; padding: 18px; box-shadow: 0 14px 30px rgba(0, 0, 0, .3); }
@media (min-width: 1500px) {
  .scene { grid-template-columns: 290px minmax(0, 1fr) 450px; grid-template-rows: minmax(0, 1fr); grid-template-areas: "joueurs plateau panneau"; gap: 20px; padding: 18px 22px; }
  #plateau { width: min(100%, calc(100dvh - 54px - 36px)); }
  .panneau { align-self: center; max-height: 100%; }
  .joueurs { align-self: center; }
}

/* ---------- Joueurs ---------- */
.joueur { display: flex; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 14px; background: rgba(247, 240, 225, .07); border: 2px solid transparent; min-width: 0; }
.joueur.actif { background: rgba(247, 240, 225, .14); border-color: var(--ambre); }
.joueur-info { min-width: 0; flex: 1; }
.joueur-nom { display: flex; align-items: center; gap: 8px; }
.joueur-nom b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pastille { background: var(--ambre); color: var(--nuit); font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 1px 7px; border-radius: 99px; }
.joueur-chiffres { display: flex; gap: 12px; font-size: .86rem; opacity: .95; align-items: center; }
.atouts { display: inline-flex; align-items: center; gap: 3px; color: var(--ambre); }
.emblemes { display: flex; gap: 4px; margin-top: 4px; }
.embleme { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; border: 2px dashed rgba(247, 240, 225, .35); color: rgba(247, 240, 225, .35); }
.embleme .ico { width: 13px; height: 13px; }
.embleme.acquis { background: var(--c); border: 2px solid var(--ivoire); color: var(--nuit); }

/* ---------- Plateau (SVG) ---------- */
.plateau-svg { display: block; width: 100%; height: 100%; user-select: none; -webkit-user-select: none; }
.pl-quartier { font: 700 19px var(--sans); letter-spacing: 2.5px; }
.case .halo { fill: none; opacity: 0; }
.case .num { display: none; }
.case .num circle { fill: var(--ambre); stroke: var(--nuit); stroke-width: 3; }
.case .num text { font: 700 17px var(--sans); fill: var(--nuit); }
.case .touche { fill: transparent; }
.case .voile { fill: #f7f0e1; opacity: 0; transition: opacity .2s; pointer-events: none; }
.plateau-svg.choix .case:not(.dest) .voile { opacity: .58; }
.case.dest { cursor: pointer; outline: none; }
.case.dest .halo { opacity: 1; fill: rgba(240, 162, 60, .34); stroke: var(--ambre); stroke-width: 4; animation: pouls 1.5s ease-in-out infinite; }
.case.dest .num { display: block; }
.case.dest:hover .halo, .case.dest:focus-visible .halo, .case.vise .halo { fill: rgba(240, 162, 60, .7); stroke: #fff; stroke-width: 7; animation: none; }
.pion { transition: transform .22s ease-in-out; pointer-events: none; } /* un pion posé sur une case ne doit pas bloquer le clic */
.pion text { font: 800 17px var(--sans); fill: var(--nuit); pointer-events: none; }
.pion-corps { transform-box: fill-box; transform-origin: center; transition: transform .2s; filter: drop-shadow(0 3px 2px rgba(13, 34, 56, .45)); }
.pion.en-route .pion-corps { transform: scale(1.18); }
.pion-actif { fill: none; stroke: #fff; stroke-width: 5; opacity: 0; }
.pion:not(.actif) .pion-corps { transform: scale(.72); }
.pion.actif .pion-corps { animation: rebond 1.1s ease-in-out infinite; }
.pion.actif .pion-actif { opacity: 1; }
.pion-onde { fill: none; stroke-width: 6; opacity: 0; transform-box: fill-box; transform-origin: center; }
.pion.actif .pion-onde { opacity: .9; animation: onde 1.4s ease-out infinite; }
.pion-fleche { opacity: 0; }
.pion.actif .pion-fleche { opacity: 1; animation: fleche 1.1s ease-in-out infinite; }
.pion.en-route .pion-onde, .pion.en-route .pion-fleche { opacity: 0; animation: none; }
@keyframes onde { 0% { transform: scale(.9); opacity: .95; } 100% { transform: scale(2.1); opacity: 0; } }
@keyframes rebond { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }
@keyframes fleche { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.case.objectif .halo { opacity: 1; fill: rgba(240, 162, 60, .35); stroke: #f0a23c; stroke-width: 6; animation: pouls 1.2s ease-in-out infinite; }
@keyframes pouls { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }

/* ---------- Panneau : tour, dé, destinations ---------- */
.tour { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.tour .pion-mini { width: 44px; height: 44px; }
.tour-qui { font-family: var(--serif); font-size: 1.35rem; font-weight: 700; margin: 0; line-height: 1.2; }
.tour-quoi { margin: 2px 0 0; font-size: .95rem; }
.zone-de { display: flex; align-items: center; gap: 18px; }
.zone-de .btn { flex: 1; }
.de { flex: none; width: 72px; height: 72px; border-radius: 16px; background: var(--papier); border: 3px solid var(--nuit); box-shadow: 0 5px 0 var(--nuit); display: grid; grid-template-columns: repeat(3, 1fr); padding: 9px; gap: 2px; }
.de i { width: 12px; height: 12px; border-radius: 50%; background: var(--nuit); place-self: center; opacity: 0; }
.de[data-v="1"] i:nth-child(5), .de[data-v="2"] i:nth-child(1), .de[data-v="2"] i:nth-child(9),
.de[data-v="3"] i:nth-child(1), .de[data-v="3"] i:nth-child(5), .de[data-v="3"] i:nth-child(9),
.de[data-v="4"] i:nth-child(1), .de[data-v="4"] i:nth-child(3), .de[data-v="4"] i:nth-child(7), .de[data-v="4"] i:nth-child(9),
.de[data-v="5"] i:nth-child(1), .de[data-v="5"] i:nth-child(3), .de[data-v="5"] i:nth-child(5), .de[data-v="5"] i:nth-child(7), .de[data-v="5"] i:nth-child(9),
.de[data-v="6"] i:nth-child(1), .de[data-v="6"] i:nth-child(3), .de[data-v="6"] i:nth-child(4), .de[data-v="6"] i:nth-child(6), .de[data-v="6"] i:nth-child(7), .de[data-v="6"] i:nth-child(9) { opacity: 1; }
.de.attente i:nth-child(odd) { opacity: .18; }
.de.roule { animation: roule .34s linear infinite; }
@keyframes roule { 0% { transform: rotate(-9deg) translateY(0); } 50% { transform: rotate(9deg) translateY(-7px); } 100% { transform: rotate(-9deg) translateY(0); } }
.destinations { display: grid; gap: 8px; }
.dest-btn, .univers-btn { display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 6px 12px 6px 8px; border-radius: 12px; border: 2px solid var(--trait); background: var(--papier); text-align: left; font-weight: 600; color: var(--nuit); }
.dest-btn:hover, .univers-btn:hover, .dest-btn:focus-visible { border-color: var(--nuit); background: #fff; }
.dest-btn.forte { border-color: var(--nuit); }
.dest-num { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--ambre); border: 2px solid var(--nuit); display: grid; place-items: center; font-size: .85rem; font-weight: 700; }
.dest-ico { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--c); border: 2px solid var(--nuit); display: grid; place-items: center; color: var(--nuit); }
.dest-ico .ico { width: 18px; height: 18px; }
.univers { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* ---------- Question ---------- */
.question { display: flex; flex-direction: column; gap: 14px; }
.q-tete { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 3px solid var(--c); }
.q-badge { flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--c); border: 3px solid var(--nuit); display: grid; place-items: center; color: var(--nuit); }
.q-badge .ico { width: 26px; height: 26px; }
.q-univers { margin: 0; font-weight: 700; font-size: .8rem; letter-spacing: .07em; text-transform: uppercase; }
.q-contexte { margin: 2px 0 0; font-size: .9rem; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.q-contexte .pion-mini { width: 20px; height: 20px; }
.q-texte { font-size: clamp(1.15rem, 1rem + .6vw, 1.4rem); line-height: 1.3; outline: none; }
.finale-etat { display: flex; align-items: center; gap: 6px; margin: 0; font-size: .9rem; font-weight: 600; }
.pip { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--nuit); }
.pip.ok { background: var(--turquoise); }
.bandeau { margin: 0; padding: 8px 12px; border-radius: 10px; background: #fdecc8; border: 2px solid var(--ambre); font-weight: 600; font-size: .92rem; }
.bandeau.finale { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin-bottom: 14px; }
.bandeau.finale .ico { width: 26px; height: 26px; color: var(--nuit); flex: none; }
.resultat-plus { margin-top: 8px !important; padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, .35); font-weight: 600; }
.reponses { display: grid; gap: 10px; }
.rep { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 10px 14px 10px 10px; border-radius: 14px; border: 2px solid var(--trait); background: var(--papier); text-align: left; color: var(--nuit); transition: border-color .12s, transform .12s, background-color .12s; }
.rep:hover:not(:disabled) { border-color: var(--nuit); background: #fff; transform: translateX(2px); }
.rep-lettre { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--nuit); color: var(--ivoire); display: grid; place-items: center; font-weight: 700; }
.rep-texte { flex: 1; line-height: 1.35; }
.rep-etat { display: block; font-size: .8rem; font-weight: 700; margin-top: 2px; }
.rep:disabled { opacity: .62; }
.rep.eliminee { opacity: .4; border-style: dashed; }
.rep.eliminee .rep-texte { text-decoration: line-through; text-decoration-thickness: 1px; }
.rep.eliminee .rep-etat { text-decoration: none; display: inline-block; }
.rep.bonne { opacity: 1; border-color: var(--vert); background: #dff3ec; border-width: 3px; }
.rep.bonne .rep-lettre { background: var(--vert); color: #fff; }
.rep.bonne .rep-etat { color: var(--vert); }
.rep.fausse { opacity: 1; border-color: var(--rouge); background: #fbe5e1; border-width: 3px; }
.rep.fausse .rep-lettre { background: var(--rouge); color: #fff; }
.rep.fausse .rep-etat { color: var(--rouge); }
.q-pied { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.q-pied .petit { margin: 0; }
.resultat { border-radius: 14px; padding: 12px 16px; color: #fff; }
.resultat p { margin: 0; }
.resultat.ok { background: var(--vert); }
.resultat.ko { background: var(--rouge); }
.resultat-titre { font-family: var(--serif); font-size: 1.25rem; font-weight: 700; }
.explication { background: var(--ivoire2); border-radius: 14px; padding: 12px 16px; }
.explication p { margin: 0; }
.source { margin-top: 8px !important; font-size: .88rem; }
.source a { color: #0b4f8a; font-weight: 600; text-underline-offset: 3px; overflow-wrap: anywhere; }

/* ---------- Modales ---------- */
#modale { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; }
.modale-fond { position: absolute; inset: 0; background: rgba(6, 16, 28, .72); }
.modale-boite { position: relative; background: var(--ivoire); color: var(--nuit); border-radius: 18px; width: min(100%, 460px); max-height: calc(100dvh - 32px); display: flex; flex-direction: column; box-shadow: 0 30px 60px rgba(0, 0, 0, .5); }
.modale-boite.large { width: min(100%, 640px); }
.modale-tete { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 12px 6px 22px; }
.modale-tete h2 { font-size: 1.4rem; }
.modale-corps { padding: 6px 22px 12px; overflow: auto; }
.modale-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; padding: 12px 22px 20px; }
.regles { padding-left: 1.2em; margin: 0 0 12px; display: grid; gap: 8px; }
.historique { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 10px; }
.historique li { background: var(--papier); border: 1px solid var(--trait); border-radius: 12px; padding: 10px 14px; }
.hist-tete, .hist-joueur { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.hist-tete span { font-size: .85rem; opacity: .8; }
.hist-joueur { font-size: .92rem; }
.hist-joueur.gagnant { font-weight: 700; }

/* ---------- Fin de partie ---------- */
.fin { min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 640px) minmax(0, 380px); gap: 24px; align-items: center; justify-content: center; padding: 28px 20px; }
.fin-carte { background: var(--ivoire); color: var(--nuit); border-radius: 22px; padding: clamp(22px, 4vw, 40px); text-align: center; box-shadow: 0 24px 50px rgba(0, 0, 0, .4); }
.trophee { width: 92px; height: 92px; border-radius: 50%; background: var(--nuit); color: var(--ambre); display: grid; place-items: center; margin: 0 auto 14px; border: 5px solid var(--ambre); animation: saut .9s ease-out; }
.trophee .ico { width: 52px; height: 52px; }
@keyframes saut { 0% { transform: scale(.3) rotate(-20deg); opacity: 0; } 60% { transform: scale(1.12) rotate(6deg); opacity: 1; } 100% { transform: none; } }
.fin-sur { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; margin: 0 0 4px; color: #0e6f6a; }
.fin-carte h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); }
.fin-bravo { margin: 12px auto 20px; max-width: 32em; }
.scores { width: 100%; border-collapse: collapse; margin-bottom: 22px; font-size: .95rem; }
.scores th, .scores td { padding: 9px 8px; border-bottom: 1px solid var(--trait); text-align: center; }
.scores thead th { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; }
.scores tbody th { text-align: left; font-weight: 600; }
.scores tr.gagnant { background: #fdecc8; }
.scores .pion-mini { width: 24px; height: 24px; }
.nomj { display: flex; align-items: center; gap: 8px; overflow-wrap: anywhere; }
.fin-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.clin-oeil { border: 1px solid rgba(247, 240, 225, .25); border-radius: 18px; padding: 22px; background: rgba(247, 240, 225, .06); }
.clin-oeil p { font-family: var(--serif); font-size: 1.08rem; line-height: 1.55; margin: 16px 0; }
.lien-bt { color: var(--turquoise); font-weight: 700; text-underline-offset: 4px; display: inline-block; padding: 10px 0; }

/* ---------- Écrans étroits (téléphones, tablettes en portrait) ---------- */
@media (max-width: 899px) {
  .accueil { grid-template-columns: 1fr; padding: 0 18px 28px; gap: 8px; align-items: start; }
  .accueil-plateau { order: -1; height: 150px; overflow: hidden; margin: 0 -18px; align-items: flex-start; -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
  .accueil-plateau svg { width: 150%; max-width: 620px; flex: none; margin-top: -40px; filter: none; }
  .signature { margin-bottom: 12px; }
  .accroche { font-size: 1rem; margin: 12px 0 16px; }
  .scene { display: flex; flex-direction: column; gap: 8px; padding: 8px; overflow: auto; }
  .barre { height: 50px; }
  .bt-logo.petit img { height: 24px; }
  .barre-titre { flex-direction: column; gap: 0; align-items: flex-start; }
  .barre-titre b { font-size: 1rem; line-height: 1.2; }
  .barre-titre span { font-size: .74rem; line-height: 1.2; }
  .joueurs { display: flex; gap: 6px; overflow-x: auto; flex: none; scrollbar-width: none; }
  .joueur { padding: 5px 9px; gap: 7px; flex: 1 0 auto; border-radius: 12px; }
  .joueur .pion-mini { width: 26px; height: 26px; }
  .joueur-nom b { max-width: 7.5em; font-size: .9rem; }
  .joueur-chiffres { font-size: .76rem; gap: 8px; }
  .emblemes { gap: 2px; margin-top: 2px; }
  .embleme { width: 17px; height: 17px; border-width: 1.5px; }
  .embleme .ico { width: 9px; height: 9px; }
  /* trois ou quatre joueurs : deux rangées de deux, tout le monde reste visible */
  .joueurs:has(.joueur:nth-child(3)) { display: grid; grid-template-columns: 1fr 1fr; overflow: visible; }
  .scene:has(.joueur:nth-child(3)) #plateau { width: min(100%, max(250px, calc(100dvh - 50px - 124px - 210px))); }
  .plateau-zone { flex: none; }
  #plateau { width: min(100%, max(250px, calc(100dvh - 50px - 62px - 210px))); }
  .panneau { flex: 1 0 auto; overflow: visible; padding: 14px; border-radius: 16px; }
  .tour { margin-bottom: 12px; gap: 12px; }
  .tour-qui { font-size: 1.15rem; }
  .de { width: 60px; height: 60px; padding: 7px; border-radius: 13px; }
  .de i { width: 10px; height: 10px; }
  .destinations { grid-template-columns: 1fr 1fr; }
  .dest-btn { min-height: 48px; font-size: .86rem; gap: 6px; padding: 4px 8px 4px 6px; line-height: 1.2; }
  .dest-ico { width: 28px; height: 28px; }
  .dest-num { width: 22px; height: 22px; font-size: .78rem; }
  /* La question occupe tout l'écran : lisible, sans plateau derrière */
  .panneau.feuille { position: fixed; inset: 0; z-index: 40; border-radius: 0; overflow: auto; padding: 16px 16px calc(20px + env(safe-area-inset-bottom)); }
  body.question-ouverte { overflow: hidden; }
  .panneau.feuille .q-pied:last-child { position: sticky; bottom: calc(-20px - env(safe-area-inset-bottom)); margin: 0 -16px calc(-20px - env(safe-area-inset-bottom)); padding: 12px 16px calc(16px + env(safe-area-inset-bottom)); background: linear-gradient(rgba(247, 240, 225, 0), var(--ivoire) 26%); }
  .fin { grid-template-columns: 1fr; padding: 16px 12px 28px; }
  .scores { font-size: .86rem; }
  .scores th, .scores td { padding: 8px 4px; }
  .modale-actions .btn { flex: 1 1 100%; }
}
/* Téléphone tenu à l'horizontale : plateau à gauche, joueurs et panneau à droite */
@media (max-width: 899px) and (orientation: landscape) and (max-height: 520px) {
  .scene { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); grid-template-areas: "plateau joueurs" "plateau panneau"; overflow: hidden; }
  #plateau, .scene:has(.joueur:nth-child(3)) #plateau { width: calc(100dvh - 50px - 16px); }
  .joueurs, .joueurs:has(.joueur:nth-child(3)) { display: flex; overflow-x: auto; }
  .joueur .emblemes { display: none; }
  .panneau { overflow: auto; flex: none; }
  .destinations { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 340px) { .destinations { grid-template-columns: 1fr; } .choix-cartes { grid-template-columns: 1fr; } }
@media (min-width: 900px) { .plateau-svg { filter: drop-shadow(0 18px 28px rgba(0, 0, 0, .35)); } }

/* ---------- Animations réduites ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .pion.actif .pion-onde { transform: scale(1.35); opacity: .9; }
}
