/* Opération Pyrénées 2026 — couleurs officielles : bleu #125B79, kaki #595826, orange #EC6608 (charte reçue le 04/11/2026),
   bleu secondaire #209DB7 (06/11/2026) : décor uniquement — contraste 3,2:1 sur blanc, donc jamais pour du texte sur fond clair ; 4,9:1 sur --nuit */
:root {
  --nuit: #092440;
  --petrole: #125B79; /* bleu officiel */
  --orange: #EC6608; /* orange officiel */
  --kaki: #595826;   /* kaki officiel */
  --cyan: #209DB7;   /* bleu secondaire officiel : traits, puces, chevrons, icônes sur fond nuit */
  --violet: #5B3F7A;
  --sable: #BFA46F;
  --clair: #F1F5F6;
  --blanc: #fff;
  --texte: #14202b;
  --gris: #4f5d68;
  --rayon: 14px;
  --barre-h: 64px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--texte);
  background: var(--clair);
  padding-bottom: calc(var(--barre-h) + env(safe-area-inset-bottom));
}
a { color: var(--petrole); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; box-shadow: 0 0 0 7px var(--nuit); } /* liseré sombre : contraste du focus sur fond clair */
[hidden] { display: none !important; }

.evitement { position: absolute; left: -999px; top: 0; background: var(--blanc); padding: .5rem 1rem; z-index: 100; }
.evitement:focus { left: 0; }
.annonce { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ------------------------------------------------------------- en-tête */
/* En-tête repris de la bannière officielle : logo, lieu, dates, accroche, montagnes et bande des verbes */
.entete { background: #F5F7FA; color: var(--petrole); position: sticky; top: 0; z-index: 10; box-shadow: 0 1px 3px rgba(9,36,64,.12); }
.entete-ligne { position: relative; display: flex; align-items: center; gap: .65rem; padding: .4rem 1rem; max-width: 960px; margin: 0 auto; }
.entete-ligne::after { content: ""; position: absolute; right: 0; bottom: 0; width: min(46%, 300px); aspect-ratio: 418 / 160;
  background: url("media/montagnes-clair.png") no-repeat right bottom / contain; pointer-events: none; z-index: 0; }
.entete-ligne > * { position: relative; z-index: 1; }
.marque { flex: none; display: block; line-height: 0; border-radius: 50%; }
.marque-logo { width: 56px; height: auto; }
.entete-infos { flex: 1 1 auto; min-width: 0; padding-left: .65rem; border-left: 2px solid var(--petrole); }
.entete-infos p { margin: 0; line-height: 1.15; }
.entete-ville { font-weight: 900; text-transform: uppercase; font-size: 1.2rem; letter-spacing: .01em; }
.entete-adresse { display: none; text-transform: uppercase; font-size: .7rem; }
.entete-jours { font-weight: 900; color: #C4500A; font-size: 1rem; white-space: nowrap; } /* orange assombri : 4,9:1 sur fond clair */
.entete-mois { font-weight: 800; text-transform: uppercase; font-size: .78rem; white-space: nowrap; }
.entete-heures { display: none; font-size: .78rem; }
.entete-slogan { display: none; height: auto; }
.bouton-menu { flex: none; margin-left: auto; min-height: 44px; min-width: 44px; padding: 0 1rem; border-radius: 999px; border: 0; background: var(--petrole); color: var(--blanc); font: inherit; font-weight: 700; cursor: pointer; box-shadow: 0 0 0 3px #F5F7FA; }
.entete-pied { display: none; background: var(--petrole); color: var(--blanc); }
.entete-verbes { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .8rem; }
.entete-verbes li + li::before { content: "•"; color: var(--orange); margin: 0 .8rem; }
.entete-signature { margin: 0; font-size: .82rem; white-space: nowrap; }
@media (min-width: 640px) {
  .marque-logo { width: 72px; }
  .entete-infos { display: flex; align-items: center; gap: 1rem; }
  .entete-lieu { display: flex; flex-direction: column; }
  .entete-ville { font-size: 1.6rem; }
  .entete-adresse { display: block; }
  .entete-dates { display: flex; flex-direction: column; padding-left: 1rem; border-left: 2px solid var(--petrole); }
  .entete-jours { font-size: 1.45rem; }
  .entete-mois { font-size: .95rem; }
  .entete-heures { display: block; }
  .entete-pied { display: flex; align-items: center; justify-content: center; gap: 1.25rem; padding: .4rem 1rem; }
  .entete-signature { padding-left: 1.25rem; border-left: 1px solid rgba(255,255,255,.6); }
}
@media (max-width: 899px) { .entete-signature { display: none; } }
@media (min-width: 900px) {
  .entete-slogan { display: block; width: 180px; margin: 0 1.25rem 0 auto; }
  .entete-slogan + .bouton-menu { margin-left: 0; }
  .entete-ligne::after { width: 300px; }
}
.menu { background: var(--nuit); }
.menu ul { list-style: none; margin: 0; padding: .25rem 1rem 1rem; max-width: 720px; margin-inline: auto; }
.menu a { display: block; padding: .75rem 0; color: var(--blanc); font-weight: 600; border-top: 1px solid rgba(255,255,255,.2); }
.bandeau-reseau { margin: 0; background: #FFF4D6; color: var(--nuit); text-align: center; font-size: .875rem; padding: .35rem 1rem; }

/* --------------------------------------------------------------- vues */
main { max-width: 720px; margin: 0 auto; padding: 1rem; outline: none; }
.titre-vue { font-size: 1.6rem; line-height: 1.2; margin: .5rem 0 1rem; color: var(--nuit); }
.titre-section { font-size: 1.15rem; color: var(--nuit); margin: 1.5rem 0 .5rem; display: flex; align-items: center; gap: .55rem; }
.titre-section::before { content: ""; flex: none; width: 6px; height: 1.1em; border-radius: 3px; background: var(--cyan); transform: skewX(-15deg); }
.surtitre { text-transform: uppercase; font-size: .75rem; font-weight: 700; letter-spacing: .06em; margin: 0 0 .25rem; }
.note { font-size: .875rem; color: var(--gris); }

.carte { background: var(--blanc); border-radius: var(--rayon); padding: 1rem; margin: 0 0 .75rem; box-shadow: 0 1px 2px rgba(9,36,64,.08); border: 0; }
.carte-passeport, .carte-petrole { background: var(--petrole); color: var(--blanc); }
.carte-kaki { background: var(--kaki); color: var(--blanc); }
.carte-badge { background: var(--nuit); color: var(--blanc); }
.carte-badge a { color: var(--blanc); }
.passeport-compte { font-size: 1.4rem; font-weight: 800; margin: 0 0 .5rem; }
.passeport-suite { margin: .5rem 0 0; font-size: .9rem; }
.barre { height: 8px; border-radius: 99px; background: rgba(255,255,255,.35); overflow: hidden; }
.barre > span { display: block; height: 100%; width: 0; background: var(--orange); transition: width .4s; }

.liste-acces, .liste-cartes, .liens { list-style: none; padding: 0; margin: 0; }
.lien-carte { position: relative; display: flex; flex-direction: column; text-decoration: none; color: var(--nuit); min-height: 44px; padding-right: 2.5rem; }
.lien-carte::after { content: "\203A"; position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); font-size: 1.75rem; font-weight: 700; line-height: 1; color: var(--cyan); }
.lien-carte span { color: var(--petrole); font-size: .875rem; }

.bouton { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; width: 100%; min-height: 48px; padding: .75rem 1rem; border-radius: 999px; border: 0; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; margin: 0 0 .75rem; }
.bouton-action { background: var(--orange); color: var(--nuit); }
.bouton-secondaire { background: var(--blanc); color: var(--petrole); border: 2px solid var(--petrole); }
.bouton:disabled { opacity: .6; cursor: wait; }
.bouton-icone { min-width: 44px; min-height: 44px; border-radius: 50%; border: 2px solid var(--petrole); background: var(--blanc); color: var(--petrole); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.lien { background: none; border: 0; padding: .5rem 0; color: var(--petrole); text-decoration: underline; font: inherit; cursor: pointer; min-height: 44px; }

.filtres { display: flex; flex-wrap: wrap; gap: .5rem; margin: .5rem 0 1rem; }
.filtre, .onglet { min-height: 44px; padding: 0 1rem; border-radius: 999px; border: 2px solid var(--petrole); background: var(--blanc); color: var(--petrole); font: inherit; font-weight: 600; cursor: pointer; }
.filtre[aria-pressed="true"], .onglet[aria-selected="true"] { background: var(--nuit); border-color: var(--nuit); color: var(--blanc); }
.onglets { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-bottom: .5rem; }
.case { display: flex; align-items: center; gap: .5rem; min-height: 44px; margin-bottom: .5rem; }
.case input { width: 22px; height: 22px; }

.champ { display: block; margin-bottom: .75rem; }
.champ-libelle { display: block; font-weight: 600; margin-bottom: .25rem; }
.champ input, .champ textarea { width: 100%; min-height: 44px; padding: .6rem .8rem; border: 2px solid #b9c6cd; border-radius: 10px; font: inherit; background: var(--blanc); }
.champ input:focus, .champ textarea:focus { border-color: var(--petrole); }

/* ------------------------------------------------------------ accueil */
.vue-accueil { margin-top: -1rem; }
.hero { position: relative; margin: 0 -1rem 0; min-height: 70vh; display: flex; align-items: flex-end; overflow: hidden; background: var(--nuit) url("media/accueil.jpg") center / cover no-repeat; color: var(--blanc); }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-voile { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(9,36,64,.15) 0%, rgba(9,36,64,.55) 45%, rgba(9,36,64,.95) 100%); }
.hero-texte { position: relative; padding: 2rem 1rem 1.25rem; width: 100%; }
.hero-sous { margin: 0 0 .25rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .8rem; color: #FFD2BF; }
.hero-titre { margin: 0; font-size: 2.1rem; line-height: 1.1; font-weight: 900; }
.hero-accroche { margin: .5rem 0 .75rem; font-size: 1.15rem; font-weight: 600; }
.hero-accroche::before { content: ""; display: block; width: 88px; height: 4px; background: linear-gradient(90deg, var(--orange) 0 60%, transparent 60% 68%, var(--cyan) 68%); margin-bottom: .6rem; transform: skewX(-20deg); }
.hero-infos { margin: 0 0 1rem; font-size: .95rem; }
.hero-cta { font-size: 1.05rem; }
.bouton-clair { background: transparent; color: var(--blanc); border: 2px solid var(--blanc); }
.hero-pause { position: absolute; top: .75rem; right: .75rem; min-height: 44px; padding: 0 .9rem; border-radius: 999px; border: 0; background: rgba(9,36,64,.75); color: var(--blanc); font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; }
.credit { margin: .4rem 0 1rem; font-size: .75rem; }
.credit:empty { display: none; }
.carte-reprise { display: flex; flex-direction: column; gap: .35rem; text-decoration: none; background: var(--petrole); color: var(--blanc); }
.carte-reprise strong { font-size: 1.2rem; }
.chiffres { list-style: none; padding: 0; margin: 1rem 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
.chiffres .carte { margin: 0; display: flex; flex-direction: column; border-top: 4px solid var(--orange); }
.chiffres .carte:nth-child(even) { border-top-color: var(--cyan); }
.chiffres strong { font-size: 1.35rem; color: var(--nuit); }
.chiffres span { font-size: .85rem; color: var(--gris); }
.deroulement { list-style: none; padding: 0; margin: 0 0 1rem; counter-reset: etape; }
.deroulement li { position: relative; padding-left: 3.25rem; }
.deroulement li::before { counter-increment: etape; content: counter(etape); position: absolute; left: 1rem; top: 1rem; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--kaki); color: var(--blanc); font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: .85rem; }
.deroulement strong { color: var(--nuit); }
.deroulement p { margin: .25rem 0 0; }
.logos-partenaires { list-style: none; padding: 0; margin: 0 0 .75rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.logos-partenaires li { background: var(--blanc); border: 1px solid #d5dee3; border-radius: 10px; padding: .5rem .75rem; font-weight: 700; font-size: .85rem; color: var(--nuit); }
.partenaire h3 { margin: 0 0 .35rem; font-size: 1.15rem; color: var(--nuit); }
.titre-section .compte { font-size: .85rem; font-weight: 700; color: var(--petrole); background: var(--clair); border-radius: 999px; padding: .1rem .55rem; vertical-align: middle; }
.partenaire .surtitre { color: var(--kaki); }
@media (min-width: 720px) { .hero { margin: 0; border-radius: 0 0 var(--rayon) var(--rayon); } .chiffres { grid-template-columns: repeat(4, 1fr); } }

/* -------------------------------------------------------------- plan */
.plan-cadre { position: relative; background: var(--blanc); border-radius: var(--rayon); padding: .5rem; margin-bottom: 1rem; }
.plan-zoom { display: flex; justify-content: flex-end; gap: .5rem; margin-bottom: .5rem; }
.plan-defilement { overflow: auto; max-height: 60vh; border-radius: 10px; }
.plan { display: block; max-width: none; height: auto; margin: 0 auto; }
.plan .sol { fill: #E2EDD5; } .plan .sol-rond { fill: #D9E8C9; stroke: var(--blanc); stroke-width: 2; }
.plan .sol-allee { fill: #767676; }
.plan .rond-allee { fill: var(--orange); stroke: var(--blanc); stroke-width: 1.5; }
.rond-petrole { fill: var(--petrole); } .rond-cyan { fill: var(--cyan); } .rond-sable { fill: var(--sable); } .rond-kaki { fill: var(--kaki); } .rond-orange { fill: var(--orange); } .rond-violet { fill: var(--violet); }
.plan .rond-numero { stroke: var(--blanc); stroke-width: 2; }
.plan .numero { font-weight: 700; fill: var(--blanc); pointer-events: none; }
.plan .numero-cyan, .plan .numero-sable, .plan .numero-orange { fill: var(--nuit); }
.plan .zone { cursor: pointer; }
.plan .zone:hover .sol { fill: #D3E5C0; }
.plan .sol { stroke: #E2EDD5; stroke-width: .6; }
.zone-attenuee { opacity: .25; }
.zone:focus-visible .rond-numero, .zone:focus-visible .sol-allee { stroke: var(--nuit); stroke-width: 3; }
.plan .entree polygon { fill: var(--orange); }
.plan .entree text { font-size: 9px; font-weight: 700; fill: var(--nuit); }
.plan-legende { display: flex; flex-wrap: wrap; gap: .4rem; margin: .75rem 0 .25rem; }
.plan-legende .filtre-zone { display: inline-flex; align-items: center; gap: .45rem; text-align: left; }
.plan-legende .pastille { min-width: 1.6rem; text-align: center; }
.plan-legende .compte { font-weight: 400; }

.pastille { display: inline-block; padding: .15rem .6rem; border-radius: 999px; font-size: .8rem; font-weight: 700; color: var(--blanc); background: var(--petrole); }
.pastille-kaki { background: var(--kaki); } .pastille-cyan { background: var(--cyan); color: var(--nuit); } .pastille-sable { background: var(--sable); color: var(--nuit); } .pastille-violet { background: var(--violet); } .pastille-orange { background: var(--orange); color: var(--nuit); }

/* ---------------------------------------------------------- programme */
.seance { position: relative; padding-right: 3.5rem; }
.seance-heure { margin: 0; font-weight: 700; color: var(--petrole); }
.seance a { color: var(--nuit); }
.seance-annulee a { text-decoration: line-through; }
.favori { position: absolute; right: .5rem; top: .5rem; min-width: 44px; min-height: 44px; border: 0; background: none; font-size: 1.5rem; color: var(--orange); cursor: pointer; }
.etat { display: inline-block; margin: .25rem 0 0; padding: .1rem .5rem; border-radius: 6px; font-size: .8rem; font-weight: 700; }
.etat-annule { background: #FDE2E2; color: #8A1111; }
.etat-modifie { background: #FFF4D6; color: #6A4A00; }
.etat-complet { background: #E6E6E6; color: #333; }
.etat-validee { background: #DDF2E3; color: #145A2C; }
.etat-attente { background: #FFF4D6; color: #6A4A00; }
.etat-suspendue { background: #E6E6E6; color: #333; }
.etat-disponible { background: #E3EEF3; color: var(--petrole); }

/* ------------------------------------------------------------ missions */
.mission { display: grid; grid-template-columns: 3rem 1fr; grid-template-rows: auto auto; column-gap: .75rem; align-items: center; }
.mission-num { grid-row: span 2; font-size: 1.4rem; font-weight: 800; color: var(--kaki); }
.mission .etat { justify-self: start; }
.etapes { padding-left: 1.25rem; font-weight: 600; }
.etapes li { margin-bottom: .4rem; }

/* ----------------------------------------------------------- enquête */
fieldset.carte { margin: 0 0 .75rem; }
legend { font-weight: 700; color: var(--nuit); padding: 0; float: left; width: 100%; margin-bottom: .5rem; }
legend + * { clear: both; }
.echelle { display: flex; flex-wrap: wrap; gap: .5rem; }
.pastille-choix { position: relative; }
.pastille-choix input { position: absolute; opacity: 0; inset: 0; }
.pastille-choix span { display: inline-flex; align-items: center; justify-content: center; min-width: 48px; min-height: 48px; padding: 0 .75rem; border-radius: 999px; background: #E3EEF3; font-weight: 700; color: var(--nuit); }
.pastille-choix input:checked + span { background: var(--nuit); color: var(--blanc); }
.pastille-choix input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 2px; }
.option { display: flex; align-items: center; gap: .6rem; min-height: 44px; }
.option input { width: 22px; height: 22px; }
.message { font-weight: 600; color: var(--nuit); }

.infos div { margin-bottom: .75rem; }
.infos dt { font-weight: 700; color: var(--nuit); }
.infos dd { margin: 0; }

/* ------------------------------------------------------------ dialogues */
.panneau { width: 100%; max-width: 680px; max-height: 92vh; margin: auto auto 0; inset-inline: 0; border: 0; border-radius: 18px 18px 0 0; padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom)); background: var(--clair); }
.panneau::backdrop { background: rgba(9,36,64,.55); }
.panneau-entete { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.panneau-entete h2 { margin: .25rem 0 1rem; color: var(--nuit); }
.scanner-video { background: var(--nuit); border-radius: var(--rayon); overflow: hidden; margin-bottom: 1rem; }
.scanner-video video { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.scanner-video .note { color: var(--blanc); margin: 0; padding: .5rem 1rem; }
.sans-video video { display: none; }

/* -------------------------------------------------------- barre basse */
.barre-basse { position: fixed; bottom: 0; left: 0; right: 0; z-index: 20; display: grid; grid-template-columns: repeat(5, 1fr); background: var(--nuit); padding-bottom: env(safe-area-inset-bottom); }
.barre-basse a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: var(--barre-h); color: var(--blanc); text-decoration: none; font-weight: 700; font-size: .72rem; letter-spacing: .01em; }
.barre-basse .ico { font-size: 1.15rem; line-height: 1; }
.barre-basse a[aria-current="page"] { box-shadow: inset 0 -4px 0 var(--orange); }
.barre-basse a[aria-current="page"] .ico { color: var(--cyan); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  .entete, .barre-basse, .bouton, .filtres, .plan-zoom { display: none !important; }
  body { background: #fff; padding: 0; }
  .vue[hidden] { display: block !important; }
}
