/* ==========================================================================
   FBST — feuille de style du site
   Charte tirée de l'emblème : noir, jaune et rouge belges, liseré orange.
   Ne pas modifier ce fichier pour changer un texte : tout le texte est dans
   contenus/. Ici, c'est l'apparence.
   ========================================================================== */

:root {
  --noir:        #14110f;
  --noir-doux:   #2a2523;
  --encre:       #1c1917;
  --gris:        #6b625d;
  --gris-clair:  #a8a09b;
  --trait:       #e2dcd5;
  --papier:      #faf7f2;
  --papier-pur:  #ffffff;

  --jaune:       #f5c400;
  --jaune-vif:   #ffdc2e;
  --rouge:       #d42a1e;
  --rouge-fonce: #a81d13;
  --orange:      #ee7e28;

  --largeur:     1180px;
  --gouttiere:   clamp(1.25rem, 4vw, 3rem);
  --rayon:       4px;

  --titre: 'Archivo', 'Archivo Narrow', 'Helvetica Neue', Arial, sans-serif;
  --texte: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--texte);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--encre);
  background: var(--papier);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--rouge); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--rouge-fonce); }

h1, h2, h3, h4 {
  font-family: var(--titre);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
/* Le bandeau de tête est collant : sans cette marge, un lien d'ancre amène le
   titre visé sous le bandeau et on ne le voit pas. */
h1, h2, h3, [id] { scroll-margin-top: 90px; }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.9rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.contenu { width: 100%; max-width: var(--largeur); margin-inline: auto; padding-inline: var(--gouttiere); }
.etroit  { max-width: 760px; }

.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section--sombre { background: var(--noir); color: var(--papier); }
.section--sombre h2 { color: var(--papier-pur); }
.section--sombre a { color: var(--jaune-vif); }
.section--pale { background: var(--papier-pur); }

.surtitre {
  font-family: var(--titre);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rouge);
  margin: 0 0 1rem;
}
.section--sombre .surtitre { color: var(--jaune); }

.chapeau { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--gris); max-width: 62ch; }
.section--sombre .chapeau { color: var(--gris-clair); }

/* ── Bandeau de tête ─────────────────────────────────────────────────────── */

.entete {
  position: sticky; top: 0; z-index: 50;
  background: var(--noir);
  border-bottom: 3px solid var(--jaune);
}
.entete__barre {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 72px;
}
.marque { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; margin-right: auto; }
.marque img { height: 46px; width: auto; }
.marque__texte { font-family: var(--titre); font-weight: 800; font-size: 0.95rem; line-height: 1.15; color: var(--papier-pur); letter-spacing: -0.01em; }
.marque__texte span { display: block; font-weight: 500; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--jaune); }

.nav { display: flex; align-items: center; gap: 0.25rem; }
.nav a {
  font-family: var(--titre); font-weight: 600; font-size: 0.84rem;
  color: var(--papier); text-decoration: none; white-space: nowrap;
  padding: 0.55rem 0.55rem; border-radius: var(--rayon);
}
.nav a:hover { background: var(--noir-doux); color: var(--jaune-vif); }
.nav a[aria-current="page"] { color: var(--noir); background: var(--jaune); }

.langues { display: flex; gap: 0.15rem; padding-left: 1rem; border-left: 1px solid #3a3330; }
.langues a {
  font-family: var(--titre); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--gris-clair); text-decoration: none;
  padding: 0.35rem 0.45rem; border-radius: var(--rayon);
}
.langues a:hover { color: var(--jaune-vif); }
.langues a[aria-current="true"] { color: var(--noir); background: var(--papier); }

.menu-bouton {
  display: none; background: none; border: 1px solid #3a3330; color: var(--papier);
  font-family: var(--titre); font-weight: 700; font-size: 0.85rem;
  padding: 0.5rem 0.8rem; border-radius: var(--rayon); cursor: pointer;
}

/* Huit entrées de menu plus le choix de langue : en dessous de 1180 px la barre
   déborde. On bascule sur le menu déroulant avant que ça n'arrive. */
@media (max-width: 1180px) {
  .menu-bouton { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0;
         flex-direction: column; align-items: stretch; gap: 0;
         background: var(--noir); padding: 0.5rem var(--gouttiere) 1rem;
         border-bottom: 3px solid var(--jaune); }
  .nav.ouvert { display: flex; }
  .nav a { padding: 0.8rem 0.5rem; border-bottom: 1px solid #262120; }
  .langues { border-left: 0; border-top: 1px solid #3a3330; padding: 0.8rem 0 0; }
}

/* ── Boutons ─────────────────────────────────────────────────────────────── */

.bouton {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--titre); font-weight: 700; font-size: 1rem;
  padding: 0.85rem 1.6rem; border-radius: var(--rayon);
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease;
}
.bouton:hover { transform: translateY(-1px); }
.bouton--principal { background: var(--rouge); color: #fff; }
.bouton--principal:hover { background: var(--rouge-fonce); color: #fff; }
.bouton--jaune { background: var(--jaune); color: var(--noir); }
.bouton--jaune:hover { background: var(--jaune-vif); color: var(--noir); }
.bouton--contour { border-color: currentColor; color: inherit; background: transparent; }
.boutons { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.8rem; }

/* ── Bannière d'accueil ──────────────────────────────────────────────────── */

.heros {
  position: relative; background: var(--noir); color: var(--papier);
  padding-block: clamp(3.5rem, 9vw, 7rem);
  overflow: hidden;
}
/* Bande tricolore belge. Le noir du drapeau serait invisible sur le fond noir
   de la bannière : on l'éclaircit juste assez pour qu'il se lise. */
.heros::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 6px;
  background: linear-gradient(90deg, #4a423e 0 33.33%, var(--jaune) 33.33% 66.66%, var(--rouge) 66.66% 100%);
}
.heros picture { position: absolute; inset: 0; }
.heros__fond {
  position: absolute; inset: 0; object-fit: cover; width: 100%; height: 100%;
  opacity: 0.62;
}
/* Voile dégradé : la photo reste visible à droite, le texte reste lisible à gauche. */
.heros::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, rgba(20,17,15,0.94) 0%, rgba(20,17,15,0.86) 38%, rgba(20,17,15,0.45) 70%, rgba(20,17,15,0.30) 100%);
}
@media (max-width: 760px) {
  .heros::before { background: rgba(20,17,15,0.82); }
}
.heros__texte { position: relative; z-index: 2; max-width: 46rem; }
.heros h1 { color: #fff; max-width: 18ch; }
.heros .chapeau { color: #e8e2da; max-width: 46ch; }

.compteur {
  margin-top: 1.6rem; font-size: 0.95rem; color: var(--gris-clair);
  border-left: 3px solid var(--jaune); padding-left: 0.9rem;
}

/* ── Grilles et cartes ───────────────────────────────────────────────────── */

.grille { display: grid; gap: 1.5rem; }
.grille--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grille--3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grille--4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.carte {
  background: var(--papier-pur); border: 1px solid var(--trait);
  border-radius: var(--rayon); padding: 1.5rem;
}
.carte h3 { margin-bottom: 0.4rem; }
.carte p { color: var(--gris); font-size: 0.97rem; }
.section--sombre .carte { background: var(--noir-doux); border-color: #3a3330; }
.section--sombre .carte p { color: var(--gris-clair); }

.carte--accent { border-left: 4px solid var(--jaune); }

/* ── Chiffres clés ───────────────────────────────────────────────────────── */

.chiffres { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.5rem; }
.chiffre__valeur { font-family: var(--titre); font-weight: 800; font-size: clamp(2.6rem, 6vw, 3.6rem); line-height: 1; color: var(--jaune); }
.chiffre__unite  { font-family: var(--titre); font-weight: 700; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.08em; margin-top: 0.3rem; }
.chiffre__detail { font-size: 0.9rem; color: var(--gris-clair); margin-top: 0.3rem; }

/* ── Créneaux et dates ───────────────────────────────────────────────────── */

.creneau {
  display: grid; grid-template-columns: auto 1fr; gap: 0 1.5rem;
  background: var(--papier-pur); border: 1px solid var(--trait);
  border-left: 5px solid var(--rouge); border-radius: var(--rayon);
  padding: 1.5rem; margin-bottom: 1rem;
}
.creneau--phare { border-left-color: var(--jaune); box-shadow: 0 2px 14px rgba(20,17,15,0.07); }
.creneau__quand { font-family: var(--titre); font-weight: 800; }
.creneau__heure { font-size: 1.6rem; line-height: 1.1; }
.creneau__jour  { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--rouge); }
.creneau__corps h3 { margin-bottom: 0.3rem; }
.creneau__meta { font-size: 0.9rem; color: var(--gris); margin-bottom: 0.6rem; }
.etiquette {
  display: inline-block; font-family: var(--titre); font-weight: 700; font-size: 0.72rem;
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 0.25rem 0.6rem; border-radius: 100px; background: var(--jaune); color: var(--noir);
}
@media (max-width: 620px) { .creneau { grid-template-columns: 1fr; gap: 0.8rem; } }

.dates { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.dates li {
  display: flex; align-items: baseline; gap: 1rem;
  padding: 0.7rem 0; border-bottom: 1px solid var(--trait);
}
.dates time { font-family: var(--titre); font-weight: 700; min-width: 11ch; }

/* ── Tarifs ──────────────────────────────────────────────────────────────── */

.tarifs { display: grid; gap: 1rem; }
.tarif {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem 1.2rem;
  padding: 1.2rem 0; border-bottom: 1px solid var(--trait);
}
.tarif__intitule { font-family: var(--titre); font-weight: 700; font-size: 1.1rem; flex: 1 1 14rem; }
.tarif__montant  { font-family: var(--titre); font-weight: 800; font-size: 1.6rem; color: var(--rouge); }
.tarif__periode  { font-size: 0.88rem; color: var(--gris); }
.tarif__desc     { flex: 1 0 100%; font-size: 0.95rem; color: var(--gris); margin: 0.3rem 0 0; }
.tarif--total { border-bottom: 0; background: var(--noir); color: var(--papier); padding: 1.2rem 1.4rem; border-radius: var(--rayon); }
.tarif--total .tarif__montant { color: var(--jaune); }
.tarif--total .tarif__periode { color: var(--gris-clair); }

.avis {
  border-left: 4px solid var(--orange); background: #fff6ec;
  padding: 1rem 1.2rem; border-radius: var(--rayon); font-size: 0.95rem;
}
.avis strong { color: var(--rouge-fonce); }

/* ── Étapes numérotées ───────────────────────────────────────────────────── */

.etapes { list-style: none; counter-reset: e; padding: 0; margin: 0; display: grid; gap: 1.2rem; }
.etapes li { counter-increment: e; display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; align-items: start; }
.etapes li::before {
  content: counter(e); font-family: var(--titre); font-weight: 800; font-size: 1rem;
  width: 2.2rem; height: 2.2rem; display: grid; place-items: center;
  background: var(--jaune); color: var(--noir); border-radius: 50%;
}
.etapes h3 { font-size: 1.05rem; margin-bottom: 0.15rem; }
.etapes p { font-size: 0.95rem; color: var(--gris); }

/* ── Palmarès ────────────────────────────────────────────────────────────── */

.palmares { display: grid; gap: 0; }
.resultat { display: grid; grid-template-columns: 7rem 1fr auto; gap: 1.2rem; align-items: baseline;
            padding: 1.3rem 0; border-bottom: 1px solid var(--trait); }
.resultat__annee { font-family: var(--titre); font-weight: 800; font-size: 1.1rem; color: var(--gris-clair); }
.resultat__titre { font-family: var(--titre); font-weight: 700; font-size: 1.1rem; }
.resultat__lieu  { font-size: 0.9rem; color: var(--gris); }
.resultat__detail { grid-column: 2 / -1; font-size: 0.94rem; color: var(--gris); margin-top: 0.4rem; }
.resultat__rang  { font-family: var(--titre); font-weight: 800; color: var(--rouge); white-space: nowrap; }
@media (max-width: 680px) { .resultat { grid-template-columns: 1fr; gap: 0.2rem; }
                            .resultat__detail { grid-column: 1; } }

/* ── Formulaire ──────────────────────────────────────────────────────────── */

.formulaire { display: grid; gap: 1.1rem; max-width: 640px; }
.champ { display: grid; gap: 0.35rem; }
.champ--double { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 560px) { .champ--double { grid-template-columns: 1fr; } }
label { font-family: var(--titre); font-weight: 600; font-size: 0.9rem; }
.aide { font-size: 0.85rem; color: var(--gris); }
input, select, textarea {
  font-family: var(--texte); font-size: 1rem; color: var(--encre);
  padding: 0.7rem 0.85rem; border: 1px solid var(--trait); border-radius: var(--rayon);
  background: var(--papier-pur); width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--jaune); outline-offset: 1px; border-color: var(--noir); }
textarea { min-height: 120px; resize: vertical; }
.case { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.93rem; }
.case input { width: auto; margin-top: 0.25rem; }

/* ── Pied de page ────────────────────────────────────────────────────────── */

.pied { background: var(--noir); color: var(--gris-clair); padding-block: 3rem 2rem; font-size: 0.93rem; }
.pied a { color: var(--papier); text-decoration: none; }
.pied a:hover { color: var(--jaune-vif); text-decoration: underline; }
.pied h4 { font-family: var(--titre); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--jaune); margin-bottom: 0.8rem; }
.pied__grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; }
.pied__bas { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid #302a28;
             display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; justify-content: space-between; font-size: 0.85rem; }
.pied ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.4rem; }

/* ── Illustration d'en-tête des pages intérieures ────────────────────────── */

.page-illustration { background: var(--noir); }
.page-illustration picture { display: block; width: 100%; max-width: var(--largeur); margin-inline: auto; }
.page-illustration img {
  width: 100%; aspect-ratio: 16 / 7; object-fit: cover; object-position: center;
}
@media (max-width: 700px) { .page-illustration img { aspect-ratio: 4 / 3; } }

/* ── Galerie ─────────────────────────────────────────────────────────────── */

.galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.2rem; }
.galerie__element { margin: 0; }
.galerie__element a { display: block; overflow: hidden; border-radius: var(--rayon); background: var(--noir); }
.galerie__element img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.galerie__element a:hover img { transform: scale(1.04); opacity: 0.92; }
.galerie__element figcaption { font-size: 0.85rem; color: var(--gris); margin-top: 0.5rem; line-height: 1.4; }
@media (prefers-reduced-motion: reduce) { .galerie__element a:hover img { transform: none; } }

/* ── Divers ──────────────────────────────────────────────────────────────── */

.liste-nette { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.7rem; }
.liste-nette li { padding-left: 1.4rem; position: relative; }
.liste-nette li::before { content: "▸"; position: absolute; left: 0; color: var(--rouge); font-weight: 700; }
.section--sombre .liste-nette li::before { color: var(--jaune); }

.invisible { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bouton:hover { transform: none; }
}
