/* LesNews Opinions — identité de lesnews.media : bleu nuit, rouge, Barlow Condensed, mot « LesNews » en Archivo. */
@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url(/assets/fonts/barlow-400-latin.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-display: swap; src: url(/assets/fonts/barlow-500-latin.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-display: swap; src: url(/assets/fonts/barlow-600-latin.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 700; font-display: swap; src: url(/assets/fonts/barlow-700-latin.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url(/assets/fonts/barlow-condensed-600-latin.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url(/assets/fonts/barlow-condensed-700-latin.woff2) format("woff2"); }
@font-face { font-family: "Archivo"; font-weight: 900; font-style: italic; font-stretch: 125%; font-display: swap; src: url(/assets/fonts/archivo-900-italic-exp-latin.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-display: swap; src: url(/assets/fonts/ibm-plex-mono-400.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-display: swap; src: url(/assets/fonts/ibm-plex-mono-500.woff2) format("woff2"); }

:root {
  --fond: #ffffff; --fond-2: #f2f5fa; --papier: #ffffff; --encre: #0b1733; --encre-2: #4a5670; --filet: #d9e0ec;
  --nuit: #041e49; --nuit-2: #001432; --nuit-3: #0c2b63; --rouge: #c60207; --rouge-2: #e5151c; --rouge-3: #8f0208; --ciel: #add3e8;
  --sur-nuit: #eef3fb; --sur-nuit-2: #a9bddb; --attention: #7c2d12; --attention-fond: #ffedd5;
  --titre: "Barlow Condensed", "Arial Narrow", sans-serif; --texte: "Barlow", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace; --marque: "Archivo", "Arial Black", sans-serif;
  --ombre: 0 1px 0 rgba(4,30,73,.05), 0 18px 40px -22px rgba(4,30,73,.45);
  /* Une couleur par réponse, toujours doublée d'une lettre et d'un libellé */
  --a: #1d4ed8; --b: #c60207; --c: #0f766e; --d: #64748b;
}
[data-theme="dark"] {
  --fond: #050f26; --fond-2: #0a1a3a; --papier: #0d1f44; --encre: #eef2f8; --encre-2: #a9b7cc; --filet: #1f3156;
  --attention: #fed7aa; --attention-fond: #3a1f0c; --ombre: 0 18px 40px -22px rgba(0,0,0,.8);
  --a: #6ea8ff; --b: #ff5a5f; --c: #2dd4bf; --d: #94a3b8;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--fond); color: var(--encre); font: 400 17px/1.55 var(--texte); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; color: inherit; }
:focus-visible { outline: 3px solid var(--rouge-2); outline-offset: 3px; border-radius: 3px; }
.bloc { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.mono { font-family: var(--mono); font-size: .76rem; font-variant-numeric: tabular-nums; letter-spacing: .04em; text-transform: uppercase; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* En-tête */
.tete { background: var(--papier); border-bottom: 1px solid var(--filet); position: sticky; top: 0; z-index: 30; }
.tete .bloc { display: flex; align-items: center; gap: 22px; min-height: 66px; }
.marque { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.marque img { width: 40px; height: 40px; border-radius: 50%; }
.marque b { font: italic 900 1.3rem/1 var(--marque); font-stretch: 125%; text-transform: uppercase; }
.marque i { font: 700 1.3rem/1 var(--titre); font-style: normal; text-transform: uppercase; letter-spacing: .08em; color: var(--rouge); padding-left: 12px; border-left: 3px solid var(--rouge); transform: skewX(-10deg); }
[data-theme="dark"] .marque i { color: var(--rouge-2); border-color: var(--rouge-2); }
.nav { display: flex; gap: 24px; margin-left: auto; }
.nav a { font-weight: 600; text-transform: uppercase; letter-spacing: .05em; font-size: .9rem; text-decoration: none; padding: 12px 0; }
.nav a:hover { color: var(--rouge); }
.theme { background: transparent; border: 1px solid var(--filet); border-radius: 99px; padding: 8px 14px; min-height: 44px; font-size: .85rem; font-weight: 600; white-space: nowrap; }
@media (max-width: 800px) { .nav { display: none; } .theme { margin-left: auto; padding: 8px 12px; font-size: .78rem; } .tete .bloc { gap: 10px; } .marque { gap: 8px; } .marque b, .marque i { font-size: 1.05rem; } .marque i { padding-left: 8px; } }

/* Mention obligatoire, toujours à côté des chiffres */
.mention { display: flex; gap: 12px; align-items: flex-start; background: var(--attention-fond); color: var(--attention); border-left: 5px solid #c2410c; padding: 12px 16px; border-radius: 0 4px 4px 0; font-size: .95rem; font-weight: 500; margin: 0; }
.mention svg { flex: 0 0 20px; margin-top: 3px; }

/* Boutons */
.bouton { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 26px; border-radius: 3px; border: 2px solid transparent; font: 700 1.08rem/1 var(--titre); text-transform: uppercase; letter-spacing: .08em; text-decoration: none; transition: transform .18s ease, background .18s ease, box-shadow .18s ease, opacity .18s ease; }
.bouton--rouge { background: linear-gradient(180deg, var(--rouge-2), var(--rouge)); color: #fff; box-shadow: 0 5px 0 var(--rouge-3), 0 18px 30px -14px rgba(198,2,7,.9); }
.bouton--rouge:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--rouge-3), 0 22px 34px -14px rgba(198,2,7,.95); }
.bouton--rouge:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--rouge-3); }
.bouton--fil { background: transparent; border-color: currentColor; }
.bouton[disabled] { opacity: .4; cursor: not-allowed; transform: none; }

/* Sections */
.section { padding: 64px 0; }
.section__tete { display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 3px solid var(--encre); padding-bottom: 10px; margin-bottom: 30px; gap: 16px; flex-wrap: wrap; }
.section__tete h2 { font: italic 700 clamp(1.7rem, 3vw, 2.3rem)/1 var(--titre); text-transform: uppercase; margin: 0; }
.section__tete h2::before { content: ""; display: inline-block; width: 7px; height: .8em; background: var(--rouge); margin-right: 12px; transform: skewX(-12deg); }
.trois { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: n; }
.trois article { counter-increment: n; border-top: 3px solid var(--encre); padding-top: 14px; }
.trois article::before { content: "0" counter(n); font: 700 2.6rem/1 var(--titre); color: var(--rouge); font-style: italic; }
.trois h3 { font: 700 1.3rem/1.15 var(--titre); text-transform: uppercase; margin: 8px 0 6px; }
.trois p { margin: 0; color: var(--encre-2); }
@media (max-width: 900px) { .trois { grid-template-columns: 1fr; } .section { padding: 44px 0; } }

/* Tampon « réponse enregistrée » */
.tampon { display: inline-block; border: 4px double var(--rouge); color: var(--rouge); padding: 10px 18px; font: 700 1.15rem/1.1 var(--titre); text-transform: uppercase; letter-spacing: .14em; transform: rotate(-7deg); border-radius: 6px; animation: frapper .5s cubic-bezier(.2,1.6,.4,1) both; -webkit-mask-image: radial-gradient(circle at 30% 40%, #000 55%, rgba(0,0,0,.7) 100%); mask-image: radial-gradient(circle at 30% 40%, #000 55%, rgba(0,0,0,.7) 100%); }
.tampon small { display: block; font: 500 .62rem/1.4 var(--mono); letter-spacing: .1em; margin-top: 5px; }
@keyframes frapper { from { transform: rotate(-16deg) scale(2.4); opacity: 0; } }

/* Pied */
.pied { background: var(--nuit-2); color: var(--sur-nuit-2); padding: 36px 0; font-size: .92rem; }
.pied .bloc { display: flex; gap: 24px; justify-content: space-between; flex-wrap: wrap; align-items: center; }
.pied a { color: #fff; }
.pied b { font: italic 900 1rem/1 var(--marque); font-stretch: 125%; color: #fff; text-transform: uppercase; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- Le plateau : la question, la console de réponse, le décompte ---------- */
.plateau { position: relative; color: var(--sur-nuit); overflow: clip; padding: clamp(40px, 6vw, 80px) 0 0;
  background: radial-gradient(900px 420px at 80% 110%, rgba(31,91,153,.55), transparent 60%), radial-gradient(700px 300px at 10% -20%, rgba(28,54,108,.9), transparent 60%), linear-gradient(180deg, var(--nuit) 0%, var(--nuit-2) 100%); }
.plateau__monde { position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(rgba(173,211,232,.22) 1px, transparent 1.4px); background-size: 14px 14px;
  -webkit-mask-image: radial-gradient(ellipse 70% 90% at 72% 42%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 70% 90% at 72% 42%, #000 20%, transparent 75%); }
.plateau__monde::before, .plateau__monde::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(173,211,232,.18); }
.plateau__monde::before { width: 760px; height: 760px; right: -200px; top: -300px; }
.plateau__monde::after { width: 1100px; height: 1100px; right: -370px; top: -470px; border-style: dashed; opacity: .6; }
.plateau__faisceau { position: absolute; width: 900px; height: 900px; right: -270px; top: -370px; border-radius: 50%; pointer-events: none; opacity: .5;
  background: conic-gradient(from 0deg, rgba(173,211,232,.28), transparent 18%, transparent 100%); animation: balayer 9s linear infinite; }
@keyframes balayer { to { transform: rotate(360deg); } }
.plateau__grille { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(28px, 4vw, 64px); align-items: center; padding-bottom: clamp(40px, 5vw, 72px); }

.direct { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; font: 600 .8rem/1 var(--texte); letter-spacing: .16em; text-transform: uppercase; color: var(--ciel); }
.point { width: 10px; height: 10px; border-radius: 50%; background: var(--rouge-2); animation: pouls 1.8s ease-out infinite; }
@keyframes pouls { 0% { box-shadow: 0 0 0 0 rgba(229,21,28,.6); } 100% { box-shadow: 0 0 0 14px rgba(229,21,28,0); } }
.bande { display: block; width: fit-content; margin-left: .35em; position: relative; overflow: hidden; background: linear-gradient(90deg, var(--rouge-2), var(--rouge) 55%, var(--rouge-3)); transform: skewX(-12deg); padding: .1em .55em .12em; border-radius: 2px;
  box-shadow: 0 18px 40px -16px rgba(198,2,7,.8), inset 0 1px 0 rgba(255,255,255,.25); }
.bande > span { display: inline-block; transform: skewX(12deg); font: italic 700 clamp(2.4rem, 1.4rem + 4.6vw, 5rem)/1 var(--titre); text-transform: uppercase; color: #fff; }
.bande::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent); animation: eclat 4.2s ease-in-out infinite; }
@keyframes eclat { 0%, 55% { left: -60%; } 100% { left: 130%; } }
.plateau h1 { margin: 18px 0 18px; font: italic 700 clamp(2.5rem, 1.4rem + 4.4vw, 4.9rem)/.95 var(--titre); text-transform: uppercase; color: #fff; text-wrap: balance; }
.mot { display: inline-block; opacity: 0; transform: translateY(.6em) rotate(3deg); animation: monter .7s cubic-bezier(.2,.9,.2,1) forwards; animation-delay: calc(var(--i) * 70ms + 150ms); }
.mot--ciel { color: var(--ciel); }
@keyframes monter { to { opacity: 1; transform: none; } }
.plateau .chapo { color: var(--sur-nuit-2); font-size: 1.15rem; max-width: 34rem; margin: 0 0 26px; }
.reperes { display: grid; grid-template-columns: repeat(3, auto); gap: 1px; justify-content: start; background: rgba(173,211,232,.2); border: 1px solid rgba(173,211,232,.2); border-radius: 4px; overflow: hidden; width: fit-content; max-width: 100%; }
.reperes div { background: rgba(4,30,73,.85); padding: 12px 18px 10px; }
.reperes b { display: block; font: 700 clamp(1.5rem, 1rem + 1.6vw, 2.1rem)/1 var(--titre); color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; }
.reperes span { color: var(--sur-nuit-2); font: 600 .7rem/1.3 var(--texte); letter-spacing: .1em; text-transform: uppercase; }

/* La console : recto, on répond ; verso, la régie affiche le décompte */
.console { perspective: 1600px; }
.console__corps { position: relative; transform-style: preserve-3d; transition: transform .9s cubic-bezier(.2,.8,.2,1); min-height: 500px; }
.console.retournee .console__corps { transform: rotateY(180deg); }
.face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 10px; padding: 22px; display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgba(12,43,99,.82), rgba(0,14,40,.9)); border: 1px solid rgba(173,211,232,.28); backdrop-filter: blur(8px);
  box-shadow: 0 40px 80px -40px #000, inset 0 1px 0 rgba(255,255,255,.12); }
.face::before { content: ""; position: absolute; left: 0; top: 22px; bottom: 22px; width: 4px; background: var(--rouge-2); border-radius: 0 3px 3px 0; }
.face--verso { transform: rotateY(180deg); }
.face__tete { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; color: var(--ciel); }
.face h2 { font: 700 1.35rem/1.1 var(--titre); text-transform: uppercase; letter-spacing: .04em; margin: 0; color: #fff; }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 12px; }
.touche { --k: var(--ciel); position: relative; display: grid; grid-template-columns: 50px 1fr; gap: 14px; align-items: center; min-height: 64px; padding: 7px 16px 7px 7px; border-radius: 8px; cursor: pointer; font-weight: 600; font-size: 1.05rem; color: #fff;
  background: linear-gradient(180deg, #1b3d7f, #0d2657); border: 1px solid rgba(173,211,232,.3);
  box-shadow: 0 6px 0 #010a20, 0 20px 26px -16px #000, inset 0 1px 0 rgba(255,255,255,.18); transition: transform .12s ease, box-shadow .12s ease, border-color .2s ease, background .2s ease; }
.touche:hover { transform: translateY(-2px); box-shadow: 0 8px 0 #010a20, 0 24px 28px -16px #000, inset 0 1px 0 rgba(255,255,255,.18); }
.touche input { position: absolute; opacity: 0; }
.touche kbd { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 6px; font: 700 1.5rem/1 var(--titre); color: #04122e; background: linear-gradient(180deg, #fff, var(--k)); box-shadow: inset 0 -4px 0 rgba(0,0,0,.22), 0 2px 6px rgba(0,0,0,.5); }
.touche:has(input:checked) { transform: translateY(4px); border-color: #fff; background: linear-gradient(180deg, #24509f, #12306b); box-shadow: 0 2px 0 #010a20, 0 0 0 3px rgba(255,255,255,.14), 0 0 34px -4px var(--k), inset 0 1px 0 rgba(255,255,255,.2); }
.touche:has(input:focus-visible) { outline: 3px solid #fff; outline-offset: 3px; }
.touche[data-k="a"] { --k: #9cc3ff; } .touche[data-k="b"] { --k: #ff8f92; } .touche[data-k="c"] { --k: #7fe3d6; } .touche[data-k="d"] { --k: #c8d0dc; }
.face__pied { margin-top: auto; padding-top: 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; color: var(--sur-nuit-2); }
.regie { display: grid; gap: 14px; }
.regie__ligne { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: center; }
.regie__ligne i { font: 700 1.05rem/1 var(--titre); font-style: normal; color: var(--k); }
.regie__ligne span { font-weight: 600; color: #fff; font-size: .98rem; }
.regie__ligne b { font: 700 1.6rem/1 var(--titre); color: #fff; font-variant-numeric: tabular-nums; }
.regie__rail { grid-column: 1 / -1; height: 12px; border-radius: 6px; background: rgba(173,211,232,.14); overflow: hidden; }
.regie__rail u { display: block; height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, var(--k), #fff); box-shadow: 0 0 18px var(--k); transition: width 1.1s cubic-bezier(.2,.8,.2,1) .45s; }
.console.retournee .regie__rail u { width: var(--part); }
.regie__ligne[data-k="a"] { --k: #6ea8ff; } .regie__ligne[data-k="b"] { --k: #ff5a5f; } .regie__ligne[data-k="c"] { --k: #2dd4bf; } .regie__ligne[data-k="d"] { --k: #94a3b8; }
.face--verso .tampon { color: #ff8f92; border-color: #ff8f92; font-size: .95rem; padding: 8px 14px; animation-delay: .9s; }

/* Bandeau défilant rouge, comme sous le « Flash info » */
.bandeau { background: var(--rouge); color: #fff; display: flex; align-items: center; overflow: hidden; font: 700 1rem/1 var(--titre); text-transform: uppercase; letter-spacing: .08em; position: relative; }
.bandeau__direct { flex: 0 0 auto; background: var(--rouge-3); padding: 14px 18px; display: inline-flex; gap: 9px; align-items: center; z-index: 1; }
.bandeau__direct .point { background: #fff; animation: none; }
.bandeau__piste { display: flex; gap: 44px; padding-left: 44px; white-space: nowrap; animation: defiler 34s linear infinite; }
.bandeau:hover .bandeau__piste { animation-play-state: paused; }
.bandeau__piste em { font: italic 900 .95em/1 var(--marque); font-stretch: 125%; }
@keyframes defiler { to { transform: translateX(-50%); } }

/* Le mur : quatre colonnes de plateau */
.mur { position: relative; margin-top: 22px; border-radius: 12px; padding: clamp(18px, 3vw, 34px); color: var(--sur-nuit); overflow: hidden;
  background: radial-gradient(700px 300px at 50% 120%, rgba(31,91,153,.6), transparent 65%), linear-gradient(180deg, var(--nuit-3), var(--nuit-2)); box-shadow: 0 40px 70px -40px rgba(4,30,73,.9); }
.mur::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 4px); pointer-events: none; }
.mur__colonnes { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(10px, 2vw, 26px); align-items: end; height: clamp(300px, 36vw, 420px); }
.colonne { --k: var(--ciel); display: flex; flex-direction: column; justify-content: flex-end; height: 100%; min-width: 0; }
.colonne b { font: italic 700 clamp(1.7rem, 1rem + 3.4vw, 4rem)/1 var(--titre); color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; text-shadow: 0 0 30px var(--k); }
.colonne small { color: var(--sur-nuit-2); margin: 4px 0 10px; }
.colonne u { display: block; height: 0; border-radius: 6px 6px 0 0; background: linear-gradient(180deg, #fff 0, var(--k) 14%, color-mix(in srgb, var(--k) 55%, #001432) 100%); box-shadow: 0 0 44px -6px var(--k), inset 0 2px 0 rgba(255,255,255,.6); transition: height 1.3s cubic-bezier(.2,.8,.2,1); background-size: 100% 100%; }
.vu .colonne u { height: var(--h); }
.colonne:nth-child(2) u { transition-delay: .12s; } .colonne:nth-child(3) u { transition-delay: .24s; } .colonne:nth-child(4) u { transition-delay: .36s; }
.colonne[data-k="a"] { --k: #6ea8ff; } .colonne[data-k="b"] { --k: #ff5a5f; } .colonne[data-k="c"] { --k: #2dd4bf; } .colonne[data-k="d"] { --k: #94a3b8; }
.mur__socle { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(10px, 2vw, 26px); border-top: 3px solid rgba(255,255,255,.85); padding-top: 12px; }
.mur__socle div { font-weight: 600; font-size: clamp(.82rem, .7rem + .5vw, 1rem); line-height: 1.25; min-width: 0; }
.mur__socle i { display: block; font: 700 1.3rem/1 var(--titre); font-style: normal; color: var(--ciel); margin-bottom: 4px; }

.deux { display: grid; grid-template-columns: 1.3fr .7fr; gap: 26px; margin-top: 26px; align-items: start; }
.panneau { background: var(--papier); border: 1px solid var(--filet); border-radius: 8px; padding: 22px; box-shadow: var(--ombre); }
.panneau h3 { font: 700 1.25rem/1.2 var(--titre); text-transform: uppercase; letter-spacing: .05em; margin: 0 0 4px; }
.panneau > p { margin: 0 0 14px; color: var(--encre-2); font-size: .95rem; }
.courbe { width: 100%; height: auto; display: block; }
.courbe .axe { stroke: var(--filet); } .courbe text { font: 400 11px var(--mono); fill: var(--encre-2); }
.courbe .trait { fill: none; stroke: var(--rouge); stroke-width: 3.5; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 700; stroke-dashoffset: 700; transition: stroke-dashoffset 1.6s ease .2s; filter: drop-shadow(0 6px 8px rgba(198,2,7,.35)); }
.vu .courbe .trait { stroke-dashoffset: 0; }
.courbe .aire { fill: var(--rouge); opacity: 0; transition: opacity 1s ease 1.2s; } .vu .courbe .aire { opacity: .1; }
.courbe circle { fill: var(--papier); stroke: var(--rouge); stroke-width: 2.5; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: right; padding: 9px 6px; border-bottom: 1px solid var(--filet); }
th:first-child, td:first-child { text-align: left; }
th { font: 500 .68rem/1.2 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--encre-2); }
td { font: 400 .84rem/1.2 var(--mono); font-variant-numeric: tabular-nums; }
.exports { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.exports .bouton { min-height: 44px; font-size: .9rem; padding: 0 16px; }

/* Les autres consultations */
.grille { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.carte { position: relative; background: var(--papier); border: 1px solid var(--filet); border-radius: 8px; padding: 22px 20px 18px; box-shadow: var(--ombre); display: flex; flex-direction: column; gap: 14px; text-decoration: none; transition: transform .22s ease, box-shadow .22s ease; overflow: hidden; }
.carte::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--nuit); transition: background .2s ease; }
.carte:hover { transform: translateY(-6px) rotate(-.4deg); box-shadow: 0 30px 50px -28px rgba(4,30,73,.6); }
.carte:hover::before { background: var(--rouge); }
.etat { align-self: flex-start; font: 700 .8rem/1 var(--titre); text-transform: uppercase; letter-spacing: .12em; padding: 6px 12px; transform: skewX(-10deg); }
.etat--cours { background: var(--rouge); color: #fff; } .etat--close { background: var(--fond-2); color: var(--encre-2); }
.carte h3 { font: italic 700 1.5rem/1.08 var(--titre); text-transform: uppercase; margin: 0; }
.ruban-parts { display: flex; height: 12px; border-radius: 3px; overflow: hidden; margin-top: auto; }
.ruban-parts i { display: block; } .ruban-parts i:nth-child(1) { background: var(--b); } .ruban-parts i:nth-child(2) { background: var(--a); } .ruban-parts i:nth-child(3) { background: var(--c); } .ruban-parts i:nth-child(4) { background: var(--d); }
.carte footer { display: flex; justify-content: space-between; color: var(--encre-2); }

@media (max-width: 960px) {
  .plateau__grille, .deux { grid-template-columns: 1fr; }
  .grille { grid-template-columns: 1fr; }
  .console__corps { min-height: 520px; }
}
@media (max-width: 520px) { .reperes div { padding: 10px 12px 8px; } .mur__colonnes { height: 280px; } }
@media (prefers-reduced-motion: reduce) { .mot { opacity: 1; transform: none; } }

/* ---------- États d'une consultation ---------- */
[hidden] { display: none !important; }
.console--close .console__corps, .console--sans-recto .console__corps { transform: rotateY(180deg); transition: none; }
.touche:has(input:disabled) { cursor: not-allowed; opacity: .6; transform: none; }
.touche:has(input:disabled):hover { transform: none; box-shadow: 0 6px 0 #010a20, 0 20px 26px -16px #000, inset 0 1px 0 rgba(255,255,255,.18); }
.face__note { margin: 14px 0 0; color: var(--ciel); font-size: .95rem; }
.face__erreur { margin: 14px 0 0; color: #ffb4b6; font-weight: 600; font-size: .95rem; }
.mur__vide { position: relative; margin: 0; padding: clamp(28px, 6vw, 64px) 0; text-align: center; font: italic 600 clamp(1.2rem, 1rem + 1vw, 1.6rem)/1.3 var(--titre); color: var(--sur-nuit); }
.sources { margin: 18px 0 0; padding: 0; list-style: none; font-size: .9rem; color: var(--encre-2); }

/* ---------- Pages de texte : méthode, mentions, confidentialité ---------- */
.page { max-width: 780px; padding-top: 48px; padding-bottom: 72px; }
.page h1 { font: italic 700 clamp(2.2rem, 1.4rem + 3vw, 3.4rem)/1 var(--titre); text-transform: uppercase; margin: 0 0 8px; }
.page h1::before { content: ""; display: inline-block; width: 9px; height: .78em; background: var(--rouge); margin-right: 14px; transform: skewX(-12deg); }
.page .maj { color: var(--encre-2); margin: 0 0 30px; }
.page h2 { font: 700 1.45rem/1.15 var(--titre); text-transform: uppercase; letter-spacing: .03em; margin: 34px 0 8px; padding-top: 14px; border-top: 3px solid var(--encre); }
.page p, .page li { color: var(--encre); max-width: 68ch; }
.page a { color: var(--rouge); font-weight: 600; }
[data-theme="dark"] .page a { color: #ff8f92; }
.page .mention { margin: 24px 0; }

/* ---------- Bandeau de consentement (mesure d'audience) ---------- */
.accord { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 560px; margin: 0 auto; background: var(--nuit-2); color: var(--sur-nuit); border: 1px solid rgba(173,211,232,.3); border-radius: 8px; padding: 18px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.7); }
.accord p { margin: 0 0 14px; font-size: .95rem; }
.accord div { display: flex; gap: 10px; flex-wrap: wrap; }
.accord .bouton { min-height: 44px; font-size: .95rem; padding: 0 18px; flex: 1 1 140px; }
.accord .bouton--fil { color: #fff; }
.pied button { background: none; border: 0; padding: 0; color: #fff; text-decoration: underline; font-size: inherit; }
.console--close .regie__rail u { width: var(--part); }
[data-verso-titre]:focus { outline: none; }
.bandeau__piste [hidden] { display: none; }

/* ---------- Le questionnaire intégré dans la console ---------- */
.formulaire { flex: 1 1 auto; min-height: 380px; border-radius: 8px; overflow: hidden; background: rgba(0, 14, 40, .55); border: 1px solid rgba(173,211,232,.2); }
.formulaire iframe { display: block; width: 100%; height: 100%; min-height: 380px; border: 0; background: transparent; }
/* 600 px : la question la plus longue (sept réponses sur deux colonnes) et son bouton tiennent sans défiler. */
.console__corps { min-height: 600px; }
.apercu { display: grid; gap: 12px; }
.touche--apercu { cursor: default; opacity: .72; }
.touche--apercu:hover { transform: none; box-shadow: 0 6px 0 #010a20, 0 20px 26px -16px #000, inset 0 1px 0 rgba(255,255,255,.18); }
.face__attente { margin: 8px 0 0; font: italic 600 1.25rem/1.3 var(--titre); color: var(--sur-nuit); }

/* ---------- Les questions suivantes du décompte ---------- */
.mur__question { position: relative; margin: 0 0 18px; font: italic 700 clamp(1.2rem, 1rem + 1vw, 1.7rem)/1.15 var(--titre); text-transform: uppercase; color: #fff; }
.mur__question .mono, .question h3 .mono { display: block; font-style: normal; font-weight: 500; color: var(--ciel); margin-bottom: 6px; }
.questions { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 22px; margin-top: 26px; }
.question { background: var(--papier); border: 1px solid var(--filet); border-top: 5px solid var(--nuit); border-radius: 8px; padding: 22px; box-shadow: var(--ombre); }
[data-theme="dark"] .question { border-top-color: var(--ciel); }
.question h3 { font: italic 700 1.45rem/1.12 var(--titre); text-transform: uppercase; margin: 0 0 18px; }
.question h3 .mono { color: var(--encre-2); }
.barre { margin-bottom: 14px; }
.barre__tete { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 6px; font-weight: 600; }
.barre__tete b { font: 700 1.5rem/1 var(--titre); font-variant-numeric: tabular-nums; white-space: nowrap; }
.barre__rail { height: 18px; background: var(--fond-2); border-radius: 3px; overflow: hidden; box-shadow: inset 0 1px 2px rgba(4,30,73,.15); }
.barre__rail u { display: block; height: 100%; width: var(--part); border-radius: 3px; background: linear-gradient(90deg, var(--nuit-3), var(--a)); background-image: linear-gradient(180deg, rgba(255,255,255,.22), transparent 55%), linear-gradient(90deg, var(--nuit-3), var(--a)); transition: width 1s cubic-bezier(.2,.8,.2,1); }
[data-theme="dark"] .barre__rail u { background-image: linear-gradient(90deg, #2b5fb8, var(--ciel)); }
.barre small { display: block; color: var(--encre-2); margin-top: 4px; }
.question__libre, .question__base { margin: 0; color: var(--encre-2); }
.question__base { margin-top: 6px; text-transform: none; letter-spacing: 0; }

/* ---------- La synthèse de clôture ---------- */
.synthese__grille { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.synthese__chiffres { display: grid; gap: 18px; }
.synthese__chiffres div { border-left: 6px solid var(--rouge); padding-left: 16px; }
.synthese__chiffres b { display: block; font: italic 700 clamp(2.6rem, 1.6rem + 3.4vw, 4.4rem)/1 var(--titre); font-variant-numeric: tabular-nums; }
.synthese__chiffres span { font-weight: 600; color: var(--encre-2); }
.synthese__texte p { font-size: 1.12rem; max-width: 62ch; margin: 0 0 14px; }
.synthese__texte .mention { margin-top: 22px; font-size: .95rem; }
@media (max-width: 960px) { .synthese__grille { grid-template-columns: 1fr; } .console__corps { min-height: 640px; } }

/* ---------- la carte : la première question croisée avec le profil. Un plateau de nuit, quel que soit le thème de la page. ---------- */
.geo__plateau { --t: clamp(58px, 15vw, 104px); position: relative; border-radius: 14px; padding: clamp(18px, 3vw, 34px); margin-top: 22px; color: #eef3fb; overflow: hidden;
  background: radial-gradient(120% 90% at 20% 0%, #12357a 0%, #071d48 46%, #020b22 100%); box-shadow: 0 30px 60px -30px rgba(4, 30, 73, .75), inset 0 1px 0 rgba(255, 255, 255, .08); }
.geo__plateau::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(173, 211, 232, .05) 0 1px, transparent 1px 4px); pointer-events: none; }
.geo__plateau > * { position: relative; }
.geo__sur { color: #add3e8; margin: 0 0 6px; }
.geo__accroche { font: italic 700 clamp(1.5rem, 3vw, 2.1rem)/1.05 var(--titre); text-transform: uppercase; margin: 0 0 16px; color: #fff; }
.geo__touches { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.geo__touche { appearance: none; cursor: pointer; min-height: 46px; padding: 6px 14px 6px 8px; display: inline-flex; align-items: center; gap: 10px; border-radius: 8px; text-align: left;
  border: 1px solid rgba(173, 211, 232, .3); background: linear-gradient(180deg, #1b3d7f, #0d2657); color: #fff; font: 600 .98rem/1.15 var(--texte);
  box-shadow: 0 4px 0 #010a20, inset 0 1px 0 rgba(255, 255, 255, .18); transition: transform .12s ease, box-shadow .12s ease, border-color .2s ease; }
.geo__touche b { display: grid; place-items: center; flex: 0 0 30px; height: 30px; border-radius: 6px; background: rgba(1, 10, 32, .6); font: 700 1rem/1 var(--titre); }
.geo__touche[aria-pressed="true"] { transform: translateY(3px); border-color: #fff; background: linear-gradient(180deg, var(--rouge-2), var(--rouge)); box-shadow: 0 1px 0 var(--rouge-3), 0 0 28px -4px var(--rouge-2); }
.geo__touche:focus-visible, .geo__tuile:focus-visible, .geo__rejouer:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.geo__grille { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(18px, 3vw, 40px); align-items: start; }
.geo__grille--sans-carte { grid-template-columns: minmax(0, 1fr); max-width: 640px; }
.geo__carte { position: relative; width: calc(var(--t) * 4.62); height: calc(var(--t) * 5.5); margin: 0 auto; }
.geo__tuile { position: absolute; width: var(--t); height: calc(var(--t) * 1.1); left: calc(var(--x) * var(--t) * 1.03); top: calc(var(--y) * var(--t) * .86); --p: 0;
  appearance: none; border: 0; padding: 0; cursor: pointer; color: #fff; background: transparent; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .55));
  opacity: 0; transform: translateY(14px) scale(.86); animation: geo-allume .55s cubic-bezier(.2, .8, .2, 1) forwards; animation-delay: calc(var(--n) * 90ms); }
.geo__tuile i { position: absolute; inset: 0; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: linear-gradient(160deg, hsl(203 75% calc(18% + var(--p) * .62%)) 0%, hsl(214 70% calc(10% + var(--p) * .42%)) 100%); transition: background .5s ease; }
.geo__tuile i::after { content: ""; position: absolute; inset: 3px; clip-path: inherit; background: linear-gradient(180deg, rgba(255, 255, 255, .22), transparent 42%); }
.geo__tuile span { position: relative; display: grid; place-items: center; align-content: center; height: 100%; gap: 1px; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
.geo__tuile small { font: 500 calc(var(--t) * .13) "IBM Plex Mono", ui-monospace, monospace; letter-spacing: .06em; opacity: .9; }
.geo__tuile strong { font: 700 calc(var(--t) * .3)/1 var(--titre); font-variant-numeric: tabular-nums; }
.geo__tuile[data-masque] i { background: repeating-linear-gradient(135deg, #14264d 0 6px, #0b1a3a 6px 12px); }
.geo__tuile[data-masque] strong { font-size: calc(var(--t) * .2); opacity: .75; }
.geo__tuile[aria-pressed="true"] { filter: drop-shadow(0 0 14px #fff) drop-shadow(0 8px 10px rgba(0, 0, 0, .55)); z-index: 2; }
@keyframes geo-allume { 60% { opacity: 1; transform: translateY(-3px) scale(1.04); } 100% { opacity: 1; transform: none; } }
.geo__hors { display: flex; gap: 10px; justify-content: center; margin-top: 14px; flex-wrap: wrap; }
.geo__hors .geo__tuile { position: relative; left: auto; top: auto; }
.geo__echelle { display: flex; align-items: center; gap: 10px; justify-content: center; margin-top: 16px; flex-wrap: wrap; }
.geo__echelle i { width: 150px; height: 10px; border-radius: 99px; background: linear-gradient(90deg, hsl(203 75% 18%), hsl(203 75% 80%)); }
.geo__rejouer { appearance: none; background: transparent; color: #add3e8; border: 1px solid rgba(173, 211, 232, .4); border-radius: 99px; min-height: 44px; padding: 0 16px; cursor: pointer; font: 600 .9rem var(--texte); }
.geo__fiche { background: rgba(1, 10, 32, .55); border: 1px solid rgba(173, 211, 232, .22); border-radius: 10px; padding: 16px 18px; margin-bottom: 16px; }
.geo__fiche .mono { color: #add3e8; margin: 0; }
.geo__fiche h3 { font: italic 700 1.5rem/1.05 var(--titre); text-transform: uppercase; margin: 2px 0 10px; color: #fff; }
.geo__ligne { display: grid; grid-template-columns: minmax(6em, 10.5em) 1fr 3.6em; gap: 10px; align-items: center; margin: 7px 0; font-size: .95rem; }
.geo__rail { height: 14px; border-radius: 99px; background: rgba(173, 211, 232, .14); overflow: hidden; }
.geo__rail u { display: block; height: 100%; width: var(--part, 0%); border-radius: 99px; background: linear-gradient(90deg, #5fa8d3, #d6ecf7); transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.geo__ligne b { font: 700 1.05rem var(--titre); text-align: right; font-variant-numeric: tabular-nums; }
.geo__ligne[data-masque] .geo__rail { background: repeating-linear-gradient(135deg, #14264d 0 6px, #0b1a3a 6px 12px); }
.geo__ligne[data-masque] b { font: 500 .7rem "IBM Plex Mono", ui-monospace, monospace; opacity: .8; }
.geo__note { color: #a9bddb; font-size: .88rem; margin: 10px 0 0; }
.geo__image { margin: 22px 0 0; }
@media (max-width: 860px) { .geo__grille { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .geo__tuile { animation: none; opacity: 1; transform: none; } .geo__tuile i, .geo__rail u { transition: none; } }
