/* 100 km des Hauts-Pays à Dour — couleurs de l'affiche */
:root {
  --nuit: #0f1f4b;
  --nuit-2: #1a2d66;
  --nuit-3: #08122e;
  --jaune: #f5c400;
  --jaune-2: #ffd83d;
  --fond: #f2f4f9;
  --carte: #ffffff;
  --texte: #1d2433;
  --doux: #5b6478;
  --ligne: #dde2ee;
  --ok: #1f8a4c;
  --ok-fond: #e4f5ea;
  --attente: #b26a00;
  --attente-fond: #fff3d6;
  --err: #c0362c;
  --err-fond: #fdeceb;
  --rayon: 10px;
  --titre: 'Barlow Condensed', 'Arial Narrow', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Barlow', system-ui, sans-serif; font-size: 16px; line-height: 1.55; color: var(--texte); background: var(--fond); }
a { color: var(--nuit-2); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, legend { font-family: var(--titre); text-transform: uppercase; letter-spacing: .3px; line-height: 1.1; }
h2 { font-size: 1.6rem; margin: 0 0 14px; color: var(--nuit); }
.conteneur { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.etroit { max-width: 720px; }
.bloc { padding-top: 36px; padding-bottom: 12px; }
.petit { font-size: .9rem; color: var(--doux); }
.jaune { color: var(--jaune); }

/* Barre de navigation */
.barre { background: var(--nuit-3); color: #fff; position: sticky; top: 0; z-index: 10; }
.barre-int { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; flex-wrap: wrap; }
.marque { color: #fff; text-decoration: none; font-family: var(--titre); font-weight: 700; font-size: 1.25rem; text-transform: uppercase; }
.marque span { color: var(--jaune); }
.barre nav { display: flex; gap: 4px; }
.barre nav a { color: #c9d2ea; text-decoration: none; padding: 6px 12px; border-radius: 6px; font-weight: 600; }
.barre nav a:hover, .barre nav a.actif { color: #fff; background: var(--nuit-2); }

/* Hero */
.hero { background: radial-gradient(ellipse at 20% 0%, #24397a 0%, var(--nuit) 45%, var(--nuit-3) 100%); color: #fff; padding: 44px 0 48px; }
.hero-grille { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.surtitre { color: var(--jaune); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; font-size: .9rem; margin: 0 0 8px; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); margin: 0 0 26px; font-weight: 800; }
.h-1er { color: var(--jaune); }
.h-100 { font-size: 1.3em; }
.h-100 small { font-size: .45em; color: var(--jaune); margin-left: 2px; }
.infos-cles { display: grid; grid-template-columns: repeat(3, auto); gap: 18px 28px; margin-bottom: 28px; justify-content: start; }
.infos-cles div { display: flex; flex-direction: column; border-left: 3px solid var(--jaune); padding-left: 12px; }
.lbl { font-size: .78rem; text-transform: uppercase; letter-spacing: 1px; color: var(--jaune); font-weight: 600; }
.infos-cles strong { font-size: 1.15rem; }
.infos-cles .sous { font-size: .85rem; color: #c9d2ea; }
.hero-affiche img { border-radius: var(--rayon); box-shadow: 0 18px 40px rgba(0,0,0,.45); max-height: 520px; width: auto; margin-left: auto; }
.bandeau-ferme { background: var(--err); display: inline-block; padding: 10px 16px; border-radius: 6px; font-weight: 600; }

/* Boutons */
.bouton { display: inline-block; border: 0; cursor: pointer; text-decoration: none; font-family: var(--titre); font-weight: 700; text-transform: uppercase; font-size: 1.2rem; letter-spacing: .5px; padding: 12px 26px; border-radius: 8px; transition: transform .1s, background .15s; }
.bouton:active { transform: translateY(1px); }
.bouton-jaune { background: var(--jaune); color: var(--nuit-3); }
.bouton-jaune:hover { background: var(--jaune-2); }
.bouton-nuit { background: var(--nuit); color: #fff; }
.bouton-nuit:hover { background: var(--nuit-2); }
.bouton-ligne { background: transparent; color: var(--nuit); border: 1.5px solid var(--ligne); }
.bouton-ligne:hover { border-color: var(--nuit); }
.bouton-petit { font-size: .95rem; padding: 6px 12px; border-radius: 6px; }
.bouton-danger { background: var(--err); color: #fff; }

/* Cartes */
.carte { background: var(--carte); border-radius: var(--rayon); padding: 24px; box-shadow: 0 1px 2px rgba(15,31,75,.06), 0 4px 16px rgba(15,31,75,.05); margin-bottom: 20px; }
.grille-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grille-2 .carte { margin-bottom: 0; }
.carte-important { border-top: 4px solid var(--jaune); }
.carte-paiement { border: 2px solid var(--jaune); }
.tarifs { display: flex; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.tarif { flex: 1; min-width: 140px; border: 1.5px solid var(--ligne); border-radius: 8px; padding: 12px 14px; display: flex; flex-direction: column; }
.tarif .prix { font-family: var(--titre); font-weight: 800; font-size: 2rem; color: var(--nuit); }
.tarif.courant { border-color: var(--jaune); background: #fffbea; }
.tarif.passe { opacity: .55; }
.liste-info { margin: 0; padding-left: 20px; }
.liste-info li { margin-bottom: 8px; }
.autres-parcours { margin-top: 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: var(--nuit); color: #fff; }
.autres-parcours div { display: flex; flex-direction: column; }
.autres-parcours strong { font-family: var(--titre); font-size: 1.35rem; text-transform: uppercase; }
.autres-parcours .petit { color: #c9d2ea; }
.titre-section { font-size: 2rem; }

/* Formulaire */
.formulaire fieldset { border: 0; padding: 0; margin: 0 0 26px; }
.formulaire legend { font-size: 1.25rem; color: var(--nuit); padding: 0 0 6px; margin-bottom: 14px; border-bottom: 2px solid var(--jaune); width: 100%; }
.formulaire label, .champ { display: block; font-weight: 600; margin-bottom: 14px; }
.etiquette { display: block; margin-bottom: 6px; }
.facultatif { font-weight: 400; color: var(--doux); }
input[type=text], input[type=email], input[type=search], input[type=number], input[type=date], input[type=password], select, textarea {
  display: block; width: 100%; margin-top: 5px; font: inherit; font-weight: 400; padding: 10px 12px; border: 1.5px solid var(--ligne); border-radius: 7px; background: #fff; color: var(--texte);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--nuit-2); box-shadow: 0 0 0 3px rgba(26,45,102,.15); }
textarea { min-height: 220px; resize: vertical; }
.ligne-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.choix { display: flex; gap: 10px; flex-wrap: wrap; }
.radio { display: inline-flex !important; align-items: center; gap: 8px; font-weight: 500 !important; border: 1.5px solid var(--ligne); padding: 9px 16px; border-radius: 7px; margin: 0 !important; cursor: pointer; }
.radio:has(input:checked) { border-color: var(--nuit); background: #eef1fa; }
.tailles { display: flex; gap: 8px; flex-wrap: wrap; }
.pastille { margin: 0 !important; cursor: pointer; }
.pastille input { position: absolute; opacity: 0; pointer-events: none; }
.pastille span { display: inline-flex; align-items: center; justify-content: center; min-width: 56px; height: 46px; padding: 0 12px; border: 1.5px solid var(--ligne); border-radius: 7px; font-family: var(--titre); font-weight: 700; font-size: 1.15rem; }
.pastille input:checked + span { background: var(--nuit); color: #fff; border-color: var(--nuit); }
.pastille input:focus-visible + span { box-shadow: 0 0 0 3px rgba(26,45,102,.25); }
.case { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; }
.case input { margin-top: 4px; width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--nuit); }
.ko input[type=text], .ko input[type=email], .ko select, .ko .radio, .ko .pastille span { border-color: var(--err); }
.ko.case span { color: var(--err); }
.erreur-champ { display: block; color: var(--err); font-weight: 500; font-size: .88rem; margin-top: 4px; }
.piege { position: absolute; left: -9999px; }
.recap-prix { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; background: var(--fond); padding: 16px 18px; border-radius: 8px; }
.recap-prix strong { font-family: var(--titre); font-size: 1.8rem; color: var(--nuit); }

/* Alertes / statuts */
.alerte { padding: 14px 18px; border-radius: 8px; margin-bottom: 18px; }
.alerte-ok { background: var(--ok-fond); color: #155c33; border-left: 4px solid var(--ok); }
.alerte-err { background: var(--err-fond); color: #8a231c; border-left: 4px solid var(--err); }
.statut { display: inline-block; font-weight: 700; padding: 6px 12px; border-radius: 6px; margin: 0 0 16px; }
.statut-ok { background: var(--ok-fond); color: var(--ok); }
.statut-attente { background: var(--attente-fond); color: var(--attente); }
.statut-annule { background: var(--err-fond); color: var(--err); }
.recap { display: grid; grid-template-columns: 140px 1fr; gap: 8px 14px; margin: 0; }
.recap dt { color: var(--doux); }
.recap dd { margin: 0; font-weight: 600; }
.recap.grand dd { font-size: 1.1rem; }
.copiable { font-family: ui-monospace, Menlo, Consolas, monospace; background: var(--fond); padding: 2px 8px; border-radius: 4px; display: inline-block; }

/* Liste publique */
.compteurs { display: flex; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.compteur { background: var(--nuit); color: #fff; border-radius: var(--rayon); padding: 14px 22px; display: flex; flex-direction: column; min-width: 150px; }
.compteur .nb { font-family: var(--titre); font-weight: 800; font-size: 2.4rem; color: var(--jaune); line-height: 1; }
.filtre { margin: 0 0 16px !important; }
.table-defil { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .6px; color: var(--doux); padding: 10px; border-bottom: 2px solid var(--ligne); white-space: nowrap; }
.table td { padding: 10px; border-bottom: 1px solid var(--ligne); vertical-align: middle; }
.table tbody tr:hover { background: #f8f9fd; }
.num { color: var(--doux); width: 44px; }
.badge { display: inline-block; font-size: .8rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; white-space: nowrap; }
.badge-ok { background: var(--ok-fond); color: var(--ok); }
.badge-attente { background: var(--attente-fond); color: var(--attente); }
.badge-annule { background: var(--err-fond); color: var(--err); }

/* Pied */
.pied { background: var(--nuit-3); color: #c9d2ea; margin-top: 40px; padding: 32px 0; font-size: .92rem; }
.pied a { color: #fff; }
.pied-grille { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; }
.pied-titre { font-family: var(--titre); text-transform: uppercase; color: var(--jaune); font-weight: 700; font-size: 1.1rem; margin-bottom: 6px; }
.pied p { margin: 0; }

@media (max-width: 860px) {
  .hero-grille, .grille-2, .pied-grille { grid-template-columns: 1fr; }
  .hero-affiche img { max-height: 380px; margin: 0 auto; }
  .infos-cles { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .ligne-2 { grid-template-columns: 1fr; }
  .infos-cles { grid-template-columns: 1fr; }
  .carte { padding: 18px; }
  .recap { grid-template-columns: 1fr; gap: 2px; }
  .recap dd { margin-bottom: 8px; }
  .barre nav a { padding: 6px 8px; }
}
