/* AiiZon - pages secondaires (/dcs, 404, pages pilotes, codes) en DA "Marquages de pont".
   Variables et composants : /charte.css ; polices : /fonts/polices.css */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: #2a1426; }
body { min-height: 100vh; color: var(--creme); font: 400 1rem/1.6 var(--f-texte); background: var(--fond); background-attachment: fixed; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--jaune); color: var(--pont); }
.aurore, .fond, .grille { display: none; }

/* ---------- navigation ---------- */
.nav { position: sticky; top: 0; z-index: 10; display: flex; justify-content: space-between; align-items: center; padding: 20px 5vw;
  background: linear-gradient(rgba(42, 20, 38, .55), rgba(42, 20, 38, 0)); }
.logo { font: 800 1.35rem/1 var(--f-titre); letter-spacing: .06em; text-transform: uppercase; position: relative; padding-bottom: 6px; }
.logo span { color: inherit; }
.logo::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; border-top: 2px dashed var(--jaune); }
.nav nav { display: flex; gap: 26px; }
.nav nav a { font: 500 .72rem/1 var(--f-mono); letter-spacing: .2em; text-transform: uppercase; opacity: .85; padding: 6px 0; border-bottom: 1.5px solid transparent; }
.nav nav a:hover, .nav nav a.actif { opacity: 1; border-bottom-color: var(--jaune); }
.nav nav a.actif { color: var(--jaune); }
@media (max-width: 540px) { .nav nav .long { display: none; } }

/* ---------- elements communs ---------- */
.surtitre { display: inline-flex; align-items: center; gap: 10px; font: 500 .72rem/1 var(--f-mono); letter-spacing: .24em; text-transform: uppercase; color: var(--jaune); }
.point { width: 8px; height: 8px; background: var(--vert); box-shadow: 0 0 0 3px rgba(94, 224, 138, .25); }
.point.orange { background: var(--jaune); box-shadow: 0 0 0 3px rgba(255, 210, 63, .25); }
.point.rouge { background: var(--rouge); box-shadow: 0 0 0 3px rgba(255, 90, 78, .25); }
.sous-titre { color: var(--creme-2); font-size: 1.1rem; max-width: 560px; }
.bouton { display: inline-block; font: 700 .95rem/1 var(--f-titre); letter-spacing: .16em; text-transform: uppercase; color: var(--creme);
  border: 1.5px solid var(--creme); padding: 12px 18px; background: none; cursor: pointer; transition: background .2s, color .2s; }
.bouton:hover { background: var(--creme); color: var(--pont); }
.bouton:focus-visible, a:focus-visible, input:focus-visible { outline: 2px dashed var(--jaune); outline-offset: 3px; }
.bouton.principal { background: var(--creme); color: var(--pont); }
.bouton.principal:hover { background: transparent; color: var(--creme); }
.actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 24px; }
.discret { color: var(--creme-2); }

/* apparition douce */
.apparait { animation: monte .7s cubic-bezier(.2, .7, .2, 1) both; }
.d1 { animation-delay: .05s; } .d2 { animation-delay: .15s; } .d3 { animation-delay: .25s; } .d4 { animation-delay: .35s; }
@keyframes monte { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- page DCS / page pilote ---------- */
.dcs { max-width: 1120px; margin: 0 auto; padding: 0 clamp(16px, 5vw, 48px) 72px; }
.dcs-hero { padding: 64px 0 40px; }
.dcs-hero h1 { font: 800 clamp(3.6rem, 11vw, 7.5rem)/.86 var(--f-titre); text-transform: uppercase; letter-spacing: .005em; margin: 16px 0 14px; }
.dcs-hero h1 span { color: inherit; }
.dcs-hero h1::after { content: ""; display: block; width: min(72%, 520px); border-top: 1.5px dashed var(--pointille); margin-top: 18px; }
.adresse { display: inline-flex; align-items: center; gap: 14px; margin-top: 26px; flex-wrap: wrap; }
.adresse code { font: 500 1.05rem var(--f-mono); letter-spacing: .04em; border-left: 3px solid var(--jaune); padding: 6px 0 6px 12px; }
.adresse .bouton { padding: 9px 14px; font-size: .85rem; }

/* tuiles : reperes peints sur le pont, pas de cartes */
.tuiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px 40px; border-top: 1.5px dashed rgba(246, 239, 230, .35); padding-top: 34px; }
.tuile { border-left: 3px solid var(--jaune); padding: 2px 0 2px 14px; min-width: 0; }
.tuile.large { grid-column: span 2; } .tuile.pleine { grid-column: 1 / -1; }
.tuiles .tuile.large:last-child { grid-column: 1 / -1; }
.etiquette { font: 500 .68rem/1 var(--f-mono); letter-spacing: .22em; text-transform: uppercase; color: var(--creme-2); margin-bottom: 10px; }
.valeur { font: 700 clamp(1.9rem, 4vw, 2.6rem)/1.02 var(--f-titre); text-transform: uppercase; overflow-wrap: anywhere; }
.valeur.moyen { font-size: 1.5rem; line-height: 1.15; }
.valeur .petit { font-size: .55em; color: var(--creme-2); }
.detail { color: var(--creme-2); margin-top: 6px; font-size: .95rem; }
.mono { font: 400 .76rem/1.5 var(--f-mono); opacity: .8; overflow-wrap: anywhere; }
.jauge { height: 4px; margin-top: 14px; border-top: 1.5px dashed rgba(246, 239, 230, .35); position: relative; }
.jauge span { position: absolute; left: 0; top: -2.5px; height: 4px; width: 0; background: var(--jaune); transition: width .8s cubic-bezier(.2, .7, .2, 1); }
.pilotes { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.pilotes li { font: 500 .85rem var(--f-mono); padding: 6px 10px; border: 1.5px solid rgba(246, 239, 230, .7); }
.pilotes li.vide { border-style: dashed; border-color: rgba(246, 239, 230, .35); color: var(--creme-2); }
.maj { font: 400 .72rem var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--creme-2); margin-top: 34px; }

/* activite 24 h */
.activite-tete { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
.activite-resume { color: var(--creme-2); font-size: .92rem; }
.activite-resume #pic { color: var(--creme); font-weight: 500; }
.courbe { height: 120px; margin-top: 8px; }
.courbe svg { display: block; width: 100%; height: 100%; overflow: visible; }
.courbe .grille { display: inline; stroke: rgba(246, 239, 230, .14); stroke-width: 1; stroke-dasharray: 4 5; }
.courbe .hors-ligne { fill: rgba(255, 90, 78, .55); }
.courbe-axe { display: flex; justify-content: space-between; margin-top: 8px; font: 400 .7rem var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--creme-2); }

/* classement des pilotes */
.bascule { display: flex; gap: 0; }
.bascule button { font: 500 .68rem/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--creme-2); background: none;
  border: 1.5px solid rgba(246, 239, 230, .35); padding: 7px 10px; cursor: pointer; }
.bascule button + button { border-left: 0; }
.bascule button[aria-pressed="true"] { background: var(--creme); color: var(--pont); border-color: var(--creme); }
.bascule button:focus-visible { outline: 2px dashed var(--jaune); outline-offset: 2px; }
.tableau { overflow-x: auto; margin-top: 10px; -webkit-overflow-scrolling: touch; }
.tableau table { width: 100%; border-collapse: collapse; font: 400 .9rem var(--f-texte); }
.tableau th { font: 500 .64rem/1 var(--f-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--creme-2); text-align: right;
  padding: 8px 10px; border-bottom: 1.5px dashed rgba(246, 239, 230, .35); white-space: nowrap; }
.tableau td { padding: 9px 10px; text-align: right; border-bottom: 1px dashed rgba(246, 239, 230, .15); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tableau th:nth-child(-n+3), .tableau td:nth-child(-n+3) { text-align: left; }
.tableau td:first-child { font: 500 .8rem var(--f-mono); color: var(--jaune); }
.tableau td.nom { font: 700 1.05rem var(--f-titre); text-transform: uppercase; letter-spacing: .03em; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.tableau tr:first-child td.nom { color: var(--jaune); }
@media (max-width: 540px) { .tableau th:nth-child(3), .tableau td:nth-child(3), .tableau th:nth-child(7), .tableau td:nth-child(7) { display: none; } }

/* carte du front en direct (/dcs) */
.front { margin-bottom: 40px; }
.front-tete { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px 24px; flex-wrap: wrap; }
.front-compte { font: 700 clamp(1.3rem, 3vw, 1.8rem)/1.1 var(--f-titre); text-transform: uppercase; margin-top: 2px; }
.front-legende { display: flex; flex-wrap: wrap; gap: 6px 14px; font: 500 .62rem/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--creme-2); }
.front-legende .lg::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px; vertical-align: -1px; }
.lg.bleu::before { background: #6cc4ff; } .lg.rouge::before { background: var(--rouge); }
.lg.aero::before { width: 11px; height: 11px; background: var(--creme); box-shadow: inset 0 0 0 2px var(--pont); }
.lg.sam::before { background: var(--creme); transform: rotate(45deg) scale(.85); }
.lg.fob::before { background: none; border: 2px solid var(--creme); width: 6px; height: 6px; }
.front-barre { display: flex; height: 6px; margin: 14px 0 12px; gap: 3px; }
.front-barre .seg { display: block; min-width: 4px; }
.front-barre .seg.bleu { background: #6cc4ff; } .front-barre .seg.rouge { background: var(--rouge); } .front-barre .seg.neutre { background: #b9aca4; }
.front-carte { position: relative; border: 1.5px dashed rgba(246, 239, 230, .3); overflow: hidden;
  background: radial-gradient(120% 90% at 80% 0%, #2a1c2c 0%, #170f19 55%, #110b13 100%); }
.front-carte svg { display: block; width: 100%; height: auto; }
.front-carte .quadrillage line { stroke: rgba(246, 239, 230, .06); stroke-width: 1; stroke-dasharray: 3 5; vector-effect: non-scaling-stroke; }
.front-carte .terre path { fill: #3a2a35; }
.front-carte .territoires { mix-blend-mode: screen; }
.front-carte .frontieres path { fill: none; stroke: rgba(246, 239, 230, .28); stroke-width: 1; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
.front-carte .lacs path { fill: #140f17; stroke: rgba(242, 220, 205, .35); stroke-width: .6; vector-effect: non-scaling-stroke; }
.front-carte .cotes path { fill: none; stroke: rgba(242, 220, 205, .7); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.front-carte .zone { cursor: pointer; outline: none; animation: apparition-zone .5s cubic-bezier(.2, .7, .2, 1) both; }
.front-carte .zone .forme { transition: transform .15s; }
.front-carte .zone:not(.fob):not(.farp) .forme { stroke: #140f17; stroke-width: 1.2; }
.front-carte .zone.fob .forme, .front-carte .zone.farp .forme { stroke-width: 2.4; }   /* contour a la couleur du camp (attribut) */
.front-carte .zone .piste { stroke: #140f17; stroke-width: 1.6; }
.front-carte .zone:hover .forme, .front-carte .zone:focus .forme { transform: scale(1.5); }
.front-carte .zone.sam:hover .forme, .front-carte .zone.sam:focus .forme { transform: rotate(45deg) scale(1.5); }
@keyframes apparition-zone { from { opacity: 0; transform-box: fill-box; } to { opacity: 1; } }
.front-carte .nom-zone, .front-carte .etiq-objectif { font: 500 11px var(--f-mono); letter-spacing: .08em; fill: var(--creme); paint-order: stroke;
  stroke: #110b13; stroke-width: 3px; stroke-linejoin: round; pointer-events: none; text-transform: uppercase; }
.front-carte .etiq-objectif { fill: var(--jaune); font-size: 12px; font-weight: 500; }
.front-carte .objectif .cible { fill: none; stroke: var(--jaune); stroke-width: 1.6; stroke-dasharray: 3 3; }
.front-carte .objectif .onde { fill: none; stroke: var(--jaune); stroke-width: 1.4; transform-box: fill-box; transform-origin: center; animation: onde 2.2s ease-out infinite; }
.front-carte .objectif.atteint .cible, .front-carte .objectif.atteint .onde { stroke: #6cc4ff; } .front-carte .objectif.atteint .etiq-objectif { fill: #6cc4ff; }
@keyframes onde { from { transform: scale(.6); opacity: .9; } to { transform: scale(2.6); opacity: 0; } }
.front-carte .bulle { position: absolute; z-index: 2; pointer-events: none; min-width: 140px; max-width: 240px; padding: 8px 10px;
  background: rgba(20, 15, 23, .95); border-left: 3px solid var(--creme); font: 400 .78rem/1.35 var(--f-texte); color: var(--creme-2); }
.front-carte .bulle.bleu { border-left-color: #6cc4ff; } .front-carte .bulle.rouge { border-left-color: var(--rouge); }
.front-carte .bulle strong { display: block; font: 700 1rem/1.1 var(--f-titre); text-transform: uppercase; color: var(--creme); }
.front .maj { margin-top: 10px; }
@media (max-width: 540px) { .front-carte .nom-zone { font-size: 15px; } .front-carte .etiq-objectif { font-size: 16px; } }
@media (prefers-reduced-motion: reduce) { .front-carte .zone, .front-carte .objectif .onde { animation: none; } }

/* debrief de soiree (/dcs/debrief/<lien>) */
.debrief .dcs-hero h1 { font-size: clamp(2.8rem, 9vw, 6rem); }
.zones .valeur { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.zones .fleche { color: var(--creme-2); font-size: .7em; }
.zones .delta { font: 500 .45em/1 var(--f-mono); letter-spacing: .1em; padding: 6px 9px; border: 1.5px solid currentColor; }
.zones.gain { border-left-color: var(--vert); } .zones.gain .delta { color: var(--vert); }
.zones.perte { border-left-color: var(--rouge); } .zones.perte .delta { color: var(--rouge); }
.zones.egal .delta { color: var(--creme-2); }
@media (max-width: 540px) {
  .debrief .tableau th:nth-child(8), .debrief .tableau td:nth-child(8) { display: none; }
  .debrief .tuiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 18px; }
  .debrief .tuile.pleine { grid-column: 1 / -1; }
}

/* ---------- pied ---------- */
.pied { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 26px 5vw; background: var(--pont);
  border-top: 2px dashed rgba(255, 210, 63, .5); font: 500 .7rem var(--f-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--creme-2); }
.pied strong { font: 800 1.1rem var(--f-titre); letter-spacing: .06em; color: var(--creme); }

/* ---------- ecrans ---------- */
@media (max-width: 860px) {
  .tuiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }
  .tuile.large { grid-column: span 2; }
}
@media (max-width: 540px) {
  .tuiles { grid-template-columns: minmax(0, 1fr); } .tuile.large { grid-column: auto; }
  .nav nav { gap: 14px; }
  .dcs-hero { padding-top: 40px; }
}
@media (prefers-reduced-motion: reduce) { .apparait { animation: none; } .bouton, .jauge span { transition: none; } }

/* ---------- chronique de la campagne : rejeu du front, journal de guerre, records ---------- */
.front-rejeu { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 12px; }
.front-rejeu .bouton { font-size: .8rem; padding: 9px 14px; }
.rejeu-date { font: 500 .72rem/1.3 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--jaune); }
.front-carte .zone.bascule .forme { animation: bascule .6s ease-out; }
@keyframes bascule { 0%, 40% { opacity: .15; } 20%, 60%, 100% { opacity: 1; } }

.journal { margin-top: 46px; }
.bloc-titre-dcs { font: 800 clamp(1.6rem, 3.6vw, 2.2rem)/1 var(--f-titre); text-transform: uppercase; letter-spacing: .02em; margin-bottom: 18px;
  display: flex; align-items: center; gap: 10px; }
.bloc-titre-dcs::before { content: ""; width: 14px; height: 14px; background: var(--jaune); flex: none; }
.evenements { list-style: none; border-left: 2px dashed rgba(246, 239, 230, .35); margin-left: 6px; padding-left: 18px; }
.evenements .jour { font: 500 .66rem/1 var(--f-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--creme-2); margin: 18px 0 8px; }
.evenements .jour:first-child { margin-top: 0; }
.ev { display: grid; grid-template-columns: 52px 12px minmax(0, 1fr); align-items: baseline; gap: 10px; padding: 6px 0; }
.ev-heure { font: 500 .78rem/1 var(--f-mono); color: var(--creme-2); }
.ev-puce { width: 10px; height: 10px; background: var(--creme-2); align-self: center; }
.ev.prise .ev-puce { background: #6cc4ff; } .ev.perdue .ev-puce, .ev.ennemie .ev-puce { background: var(--rouge); }
.ev.campagne .ev-puce { background: var(--jaune); }
.ev-texte { font: 700 1.05rem/1.25 var(--f-titre); text-transform: uppercase; letter-spacing: .03em; overflow-wrap: anywhere; }
.ev.perdue .ev-texte, .ev.ennemie .ev-texte { color: var(--creme-2); }
#journal-plus { margin-top: 14px; font-size: .78rem; padding: 9px 14px; }

.records { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 22px 28px; margin-top: 4px; }
.record { border-left: 2px solid rgba(246, 239, 230, .3); padding-left: 12px; min-width: 0; }
.record-titre { font: 500 .64rem/1.35 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--creme-2); }
.record-val { font: 800 1.9rem/1.05 var(--f-titre); margin-top: 6px; }
.record-qui { font: 400 .8rem/1.3 var(--f-texte); color: var(--creme-2); margin-top: 4px; overflow-wrap: anywhere; }
@media (max-width: 540px) { .records { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; } .record-val { font-size: 1.5rem; } }
@media (prefers-reduced-motion: reduce) { .front-carte .zone.bascule .forme { animation: none; } }

/* un element masque reste masque, meme si sa classe lui donne un display */
[hidden] { display: none !important; }

.lien-rejoindre { margin-top: 16px; }

/* debrief : replays Tacview de la soiree */
.replays { list-style: none; display: grid; gap: 10px; margin: 8px 0 10px; }
.replays li { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.replays .bouton { font-size: .8rem; padding: 10px 14px; }
.tv-info { font: 500 .74rem/1.3 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--creme-2); }
/* bulle de la carte : historique de la zone */
.bulle-histo { list-style: none; margin-top: 6px; padding-top: 6px; border-top: 1px dashed rgba(246, 239, 230, .3); display: grid; gap: 3px; }
.bulle-histo li { font: 500 .66rem/1.3 var(--f-mono); letter-spacing: .06em; color: var(--creme-2); padding-left: 12px; position: relative; white-space: nowrap; }
.bulle-histo li::before { content: ""; position: absolute; left: 0; top: .35em; width: 6px; height: 6px; background: var(--creme-2); }
.bulle-histo li.prise::before { background: #6cc4ff; } .bulle-histo li.perdue::before, .bulle-histo li.ennemie::before { background: var(--rouge); }
.bulle-histo li.rien { padding-left: 0; white-space: normal; } .bulle-histo li.rien::before { display: none; }

/* objectif de la semaine */
.objectif-s .valeur { color: var(--jaune); }
.objectif-s.atteint .valeur { color: #6cc4ff; }
/* hangar du serveur : pochoir, nom, barre peinte, heures */
.hangar { list-style: none; display: grid; gap: 10px; margin-top: 6px; }
.appareil { display: grid; grid-template-columns: 46px minmax(110px, 190px) minmax(0, 1fr) 150px; align-items: center; gap: 14px; }
.appareil-pochoir { width: 46px; height: 30px; fill: var(--creme-2); justify-self: center; align-self: center; display: block; }
.appareil.premier .appareil-pochoir { fill: var(--jaune); }
.appareil-nom { font: 700 1.15rem/1.1 var(--f-titre); text-transform: uppercase; letter-spacing: .03em; overflow-wrap: anywhere; }
.appareil-piste { height: 12px; background: rgba(28, 22, 32, .45); border: 1.5px dashed rgba(246, 239, 230, .2); position: relative; overflow: hidden; }
.appareil-barre { position: absolute; inset: 0 auto 0 0; width: var(--l, 0%); background: var(--creme-2); transform-origin: left; animation: peint-h .8s cubic-bezier(.2, .7, .2, 1) both; }
.appareil.premier .appareil-barre { background: repeating-linear-gradient(-45deg, var(--jaune) 0 8px, #f0c22e 8px 16px); }
.appareil-h { font: 500 .7rem/1 var(--f-mono); letter-spacing: .08em; color: var(--creme-2); white-space: nowrap; text-align: right; }
@keyframes peint-h { from { transform: scaleX(0); } to { transform: none; } }
@media (max-width: 540px) { .appareil { grid-template-columns: 42px minmax(0, 1fr) auto; } .appareil-pochoir { width: 42px; height: 28px; } .appareil-piste { grid-column: 2 / -1; } }
.front-rejeu a.bouton:first-of-type { margin-left: auto; }   /* liens groupes a droite, "Rejouer" et sa date a gauche */

/* menu : plaque sombre "pont" pour un contraste net sur le ciel (WCAG AA), page active en jaune avec son trait */
.nav nav { background: rgba(20, 15, 23, .82); padding: 0 16px; gap: 22px; border: 1.5px solid rgba(246, 239, 230, .14); }
.nav nav a { opacity: 1; color: var(--creme); padding: 12px 2px 10px; border-bottom: 3px solid transparent; }
.nav nav a:hover { border-bottom-color: rgba(246, 239, 230, .55); }
.nav nav a.actif { color: var(--jaune); border-bottom-color: var(--jaune); }
.logo { text-shadow: 0 1px 10px rgba(20, 15, 23, .45); }
@media (max-width: 540px) { .nav nav { padding: 0 10px; gap: 14px; } .nav nav a { padding: 11px 1px 9px; } }

/* titre "IRRE • Dynamique" de la page serveur : comme l'accueil, IRRE en jaune au-dessus, sans point qui pend */
.dcs-hero h1 .h1-irre { display: block; color: var(--jaune); }
.dcs-hero h1 .h1-point { display: none; }

/* sous la carte : etat du front a gauche, liens a droite, sur une seule rangee */
.front-rejeu .maj { margin: 0; flex: 0 1 auto; min-width: 0; }
/* fonction en cours de developpement */
.wip { font-size: .85em; opacity: .7; letter-spacing: .08em; }
