/* Horse Timing — feuille unique.
   Identité « le sablier redressé » : encre, sable, craie. Barlow Condensed
   pour les titres et les chiffres (tableau d'affichage), Barlow pour le
   texte. Toute couleur est un jeton ; les deux thèmes se déclinent ici. */
:root {
  --encre: #141B2B;
  --encre-2: #1F2940;
  --encre-3: #2C3A57;
  --craie: #F4F1EA;
  --craie-2: #E8E3D6;
  --sable: #D9A441;
  --sable-2: #B8862B;
  --sable-clair: #F1D89A;
  --gris: #6B7385;
  --gris-2: #A5ABBA;
  --trait: #D6D2C6;
  --live: #E2483D;
  --ok: #2E8B57;
  --fond: var(--craie);
  --fond-2: #FFFFFF;
  --texte: var(--encre);
  --texte-2: var(--gris);
  --titre: var(--encre);
  --cond: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --sans: "Barlow", "Segoe UI", Helvetica, Arial, sans-serif;
  --tete-h: 68px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --fond: #0F1420; --fond-2: #161D2E; --texte: #ECE8DE; --texte-2: #A9B0C0; --titre: #F4F1EA; --trait: #2A3348; --craie-2: #1E2739; color-scheme: dark; }
}
:root[data-theme="dark"] { --fond: #0F1420; --fond-2: #161D2E; --texte: #ECE8DE; --texte-2: #A9B0C0; --titre: #F4F1EA; --trait: #2A3348; --craie-2: #1E2739; color-scheme: dark; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
/* overflow-x: clip, pas hidden : hidden ferait de body un conteneur de
   défilement et casserait l'en-tête collant et la scène épinglée. */
body { margin: 0; background: var(--fond); color: var(--texte); font: 400 1.0625rem/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--cond); font-weight: 600; letter-spacing: .01em; line-height: 1.02; color: var(--titre); text-wrap: balance; margin: 0 0 .5em; text-transform: uppercase; }
h1 { font-size: clamp(2.6rem, 7vw, 5.4rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
h3 { font-size: clamp(1.35rem, 2.4vw, 1.8rem); }
.int { width: min(1180px, 100% - 2rem); margin-inline: auto; }
.saut { position: absolute; left: -999px; top: 8px; background: var(--sable); color: var(--encre); padding: .5rem .8rem; z-index: 99; }
.saut:focus { left: 8px; }
.num { font-family: var(--cond); font-variant-numeric: tabular-nums; }

/* ── En-tête ─────────────────────────────────────────────────────────────── */
.tete { position: sticky; top: 0; z-index: 20; height: var(--tete-h); display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(1rem, 3vw, 2.4rem); background: color-mix(in srgb, var(--encre) 92%, transparent); color: var(--craie); backdrop-filter: blur(10px); border-bottom: 1px solid color-mix(in srgb, var(--craie) 12%, transparent); }
.logo { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--craie); }
.marque { width: 30px; height: 30px; color: var(--craie); flex: none; }
.marque .sable { transform-origin: 32px 56px; transform: scaleY(var(--sable-niveau, 1)); transition: transform .3s linear; }
.logo .mot { font-family: var(--cond); font-weight: 500; font-size: 1.45rem; letter-spacing: .08em; text-transform: uppercase; line-height: 1; }
.logo .mot b { font-weight: 700; color: var(--sable); }
.menu { display: flex; gap: clamp(.6rem, 2vw, 1.6rem); }
.menu a { font-family: var(--cond); text-transform: uppercase; letter-spacing: .1em; font-size: 1rem; text-decoration: none; padding: .4rem .2rem; border-bottom: 2px solid transparent; opacity: .85; }
.menu a:hover, .menu a[aria-current] { border-color: var(--sable); opacity: 1; }
@media (max-width: 640px) { .logo .mot { display: none; } .menu a { font-size: .95rem; letter-spacing: .06em; } }

/* ── Boutons, pastilles, rubans ─────────────────────────────────────────── */
.bouton { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--cond); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; font-size: 1.05rem; padding: .8rem 1.4rem; background: var(--sable); color: var(--encre); text-decoration: none; border: 2px solid var(--sable); cursor: pointer; line-height: 1; transition: transform .15s, background .15s; }
.bouton:hover { transform: translateY(-1px); background: var(--sable-clair); border-color: var(--sable-clair); }
.bouton.clair { background: transparent; color: inherit; border-color: currentColor; }
.bouton.clair:hover { background: color-mix(in srgb, currentColor 10%, transparent); border-color: currentColor; }
.bouton.petit { padding: .5rem .9rem; font-size: .92rem; }
.bouton:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--sable); outline-offset: 2px; }
.pastille { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--cond); text-transform: uppercase; letter-spacing: .08em; font-size: .9rem; font-weight: 600; padding: .25rem .6rem; border-radius: 2px; background: var(--craie-2); color: var(--texte); line-height: 1.2; }
.pastille.live, .pastille.encours { background: var(--live); color: #fff; }
.pastille.resultats, .pastille.passe { background: var(--encre-3); color: var(--craie); }
.pastille.departs, .pastille.avenir { background: var(--sable); color: var(--encre); }
.pastille.prevu { background: var(--craie-2); color: var(--texte-2); }
.pastille i, .point { width: .55em; height: .55em; border-radius: 50%; background: currentColor; display: inline-block; animation: bat 1.2s ease-in-out infinite; }
@keyframes bat { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }
@media (prefers-reduced-motion: reduce) { .pastille i, .point { animation: none; } }

/* ── Héros ──────────────────────────────────────────────────────────────── */
/* Le héros est une photo CLAIRE : une carrière de sable en altitude, ciel
   bleu, montagnes. Le titre se pose donc en bas, sur le sable, en encre — et
   un voile craie monte du bord inférieur pour qu'il se lise quoi qu'il y ait
   derrière. L'en-tête sombre au-dessus ferme la composition. */
/* Composition en deux temps : le titre dans le ciel, qui est net ; l'accroche
   et le bouton en bas, sur le sable ; entre les deux, la carrière et ses
   tentes restent libres, aucun texte ne s'y pose. */
.heros { position: relative; min-height: calc(100svh - var(--tete-h)); display: grid; grid-template-rows: auto 1fr auto; color: var(--encre); overflow: hidden; background: var(--craie); }
.heros-fond { position: absolute; inset: 0; background: url("/img/piste.jpg") 50% 62% / cover no-repeat; }
.heros-fond::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,27,43,.10) 0%, rgba(20,27,43,0) 30%, rgba(244,241,234,0) 62%, rgba(244,241,234,.72) 88%, rgba(244,241,234,.92) 100%); }
.heros-haut { position: relative; grid-row: 1; text-align: center; padding: clamp(1.2rem, 3vh, 2.4rem) 1rem 0; }
.heros-bas { position: relative; grid-row: 3; text-align: center; padding: 0 1rem 4.8rem; }
.signe .marque { width: 48px; height: 48px; margin: 0 auto .6rem; color: var(--encre); }
.heros h1 { display: flex; flex-direction: column; align-items: center; line-height: .86; font-size: clamp(3.6rem, 11vw, 7.6rem); letter-spacing: .04em; color: var(--encre); text-shadow: 0 2px 0 rgba(244,241,234,.35); margin: 0; }
.heros h1 span:last-child { color: var(--sable-2); }
.accroche { font-size: clamp(1.1rem, 2vw, 1.4rem); max-width: 34rem; margin: 0 auto 1.2rem; color: var(--encre-3); text-wrap: balance; font-weight: 500; }
.heros .bouton { background: var(--encre); color: var(--craie); border-color: var(--encre); }
.heros .bouton:hover { background: var(--encre-3); border-color: var(--encre-3); }
.indice { position: absolute; left: 50%; bottom: 1.4rem; width: 22px; height: 36px; border: 2px solid rgba(20,27,43,.45); border-radius: 12px; transform: translateX(-50%); }
/* Sur téléphone, la photo est recadrée sur le sable et le titre descend avec
   elle : il ne doit pas se poser sur la ligne des tentes. */
@media (max-width: 640px) { .heros-fond { background-size: auto 125%; background-position: 50% 100%; } }
.indice span { position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--sable); animation: roule 1.8s ease-in-out infinite; }
@keyframes roule { 0% { transform: translateY(0); opacity: 1 } 70% { transform: translateY(12px); opacity: 0 } 100% { opacity: 0 } }
@media (prefers-reduced-motion: reduce) { .indice span { animation: none; } }

/* ── La ligne d'arrivée (scène au défilement) ───────────────────────────── */
.ligne { position: relative; height: 340vh; background: var(--encre); color: var(--craie); }
.ligne-scene { position: sticky; top: var(--tete-h); height: calc(100svh - var(--tete-h)); overflow: hidden; }
.ligne-cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.chrono { position: absolute; right: clamp(1rem, 4vw, 3rem); top: clamp(1rem, 4vh, 2.6rem); text-align: right; }
.chrono .chiffres { display: block; font-family: var(--cond); font-weight: 700; font-variant-numeric: tabular-nums; font-size: clamp(2.6rem, 9vw, 7rem); line-height: 1; letter-spacing: .04em; color: var(--sable); text-shadow: 0 0 24px rgba(217,164,65,.35); }
.chrono.fige .chiffres { color: #fff; text-shadow: 0 0 34px rgba(255,255,255,.55); }
.chrono .etiquette { font-family: var(--cond); text-transform: uppercase; letter-spacing: .2em; font-size: .85rem; opacity: .6; }
/* Le tampon « Temps officiel » : il s'imprime quand le dernier grain se pose. */
.finish { position: absolute; right: clamp(1rem, 5vw, 4rem); top: clamp(1rem, 6vh, 3rem); transform: rotate(-5deg) scale(1.4); font-family: var(--cond); font-weight: 700; font-size: clamp(1.4rem, 4.5vw, 3rem); letter-spacing: .18em; text-transform: uppercase; color: var(--sable); border: 3px solid var(--sable); padding: .2em .5em; opacity: 0; transition: opacity .25s, transform .25s cubic-bezier(.2,1.4,.4,1); pointer-events: none; }
.finish.visible { opacity: .95; transform: rotate(-5deg) scale(1); }
@media (max-width: 640px) { .finish { top: auto; bottom: clamp(7rem, 22vh, 10rem); right: 1rem; } }
/* Les légendes se relaient au même endroit : celle qui part s'efface vite,
   celle qui arrive attend qu'elle soit partie — jamais deux textes mêlés. */
.legende { position: absolute; left: clamp(1rem, 6vw, 5rem); bottom: clamp(2rem, 8vh, 5rem); margin: 0; max-width: 22rem; font-family: var(--cond); font-size: clamp(1.6rem, 3.4vw, 2.6rem); line-height: 1.05; text-transform: uppercase; letter-spacing: .02em; opacity: 0; transform: translateY(14px); transition: opacity .12s, transform .12s; }
.legende small { display: block; font-size: .5em; letter-spacing: .2em; color: var(--sable); margin-bottom: .3em; }
.legende.visible { opacity: 1; transform: none; transition: opacity .45s .15s, transform .45s .15s; }
.ligne.pulse .ligne-scene { animation: pulse .32s ease-out 1; }
@keyframes pulse { 0% { transform: translateY(0) } 35% { transform: translateY(2px) } 100% { transform: translateY(0) } }
@media (prefers-reduced-motion: reduce) { .ligne { height: auto; } .ligne-scene { position: relative; height: 70svh; } .legende { opacity: 1; transform: none; position: static; padding: 1rem; } }

/* ── Sections ───────────────────────────────────────────────────────────── */
section.concours, section.presentation, section.contact-bref, section.texte, section.programme { padding-block: clamp(3rem, 7vw, 6rem); }
.entete-section { max-width: 44rem; margin-bottom: 2rem; }
.entete-section p { color: var(--texte-2); font-size: 1.1rem; }
.sous { display: flex; align-items: center; gap: .8rem; margin: 2.4rem 0 1rem; font-size: clamp(1.2rem, 2vw, 1.5rem); letter-spacing: .12em; color: var(--texte-2); }
.sous::after { content: ""; flex: 1; height: 1px; background: var(--trait); }
.sous small { font-family: var(--cond); font-weight: 500; color: var(--texte-2); }
.vide { color: var(--texte-2); font-style: italic; }
.maj, .secours { color: var(--texte-2); font-size: .9rem; margin-top: 2rem; }
.archives { margin-top: 2.4rem; font-family: var(--cond); text-transform: uppercase; letter-spacing: .1em; color: var(--texte-2); }
.archives a { color: var(--titre); }

/* ── Cartes de concours ─────────────────────────────────────────────────── */
.grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 1rem; }
.grille.grande { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.carte { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: .6rem; padding: 0 1rem 1.2rem; background: var(--fond-2); border: 1px solid var(--trait); text-decoration: none; color: inherit; transition: transform .18s, box-shadow .18s, border-color .18s; }
.carte:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgba(20,27,43,.45); border-color: var(--sable); }
.carte.avant { border-color: var(--sable); box-shadow: inset 0 3px 0 var(--sable); }
.ruban { align-self: stretch; font-family: var(--cond); text-transform: uppercase; letter-spacing: .12em; font-size: .85rem; font-weight: 600; padding: .4rem; background: var(--craie-2); color: var(--texte-2); }
.ruban.encours { background: var(--live); color: #fff; }
.ruban.avenir { background: var(--encre); color: var(--craie); }
.logo-cadre { display: grid; place-items: center; width: 120px; height: 120px; background: #fff; border-radius: 4px; overflow: hidden; margin-top: .4rem; }
.logo-cadre img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.logo-cadre.grand { width: 150px; height: 150px; }
.sans-logo { font-family: var(--cond); font-weight: 700; font-size: 2.6rem; color: var(--gris-2); }
.carte .nom { font-family: var(--cond); font-weight: 600; font-size: 1.15rem; line-height: 1.15; text-transform: uppercase; letter-spacing: .02em; color: var(--titre); }
.carte.grande .nom { font-size: 1.4rem; }
.carte .dates, .carte .note, .carte .meta, .carte .lieu { font-size: .92rem; color: var(--texte-2); }
.carte .note { font-style: italic; }
.carte .lieu { display: inline-flex; align-items: center; gap: .3rem; font-family: var(--cond); text-transform: uppercase; letter-spacing: .06em; font-size: .85rem; color: var(--sable-2); }
.carte .meta { font-family: var(--cond); letter-spacing: .03em; font-size: .95rem; }
.carte .meta b { font-weight: 600; color: var(--titre); }
.carte .tags { display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem; }
.tag { font-family: var(--cond); text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; font-weight: 600; padding: .15rem .45rem; border: 1px solid var(--trait); border-radius: 2px; color: var(--texte-2); }
.carte[hidden] { display: none; }

/* ── Recherche et filtres ───────────────────────────────────────────────── */
.recherche { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: 0 0 1.4rem; }
.recherche .champ { flex: 1 1 18rem; display: flex; align-items: center; gap: .5rem; padding: 0 .8rem; background: var(--fond-2); border: 1px solid var(--trait); color: var(--texte-2); }
.recherche .champ:focus-within { border-color: var(--sable); }
.recherche input[type="search"] { border: 0; background: transparent; padding: .7rem 0; width: 100%; font-size: 1rem; }
.recherche input[type="search"]:focus-visible { outline: none; }
.recherche .chips { display: flex; gap: .4rem; flex-wrap: wrap; }
.chip { font: 600 .85rem/1 var(--cond); text-transform: uppercase; letter-spacing: .08em; padding: .55rem .8rem; border: 1px solid var(--trait); background: var(--fond-2); color: var(--texte-2); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--encre); color: var(--craie); border-color: var(--encre); }
.chip:hover { border-color: var(--sable); }
.recherche .compte { font-family: var(--cond); letter-spacing: .06em; color: var(--texte-2); min-width: 6rem; }
.lecteur-ecran { position: absolute; left: -9999px; }

/* ── Présentation, contact ─────────────────────────────────────────────── */
.presentation { background: var(--fond-2); }
.deux { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
@media (max-width: 820px) { .deux { grid-template-columns: 1fr; } }
.portrait { margin: 0; }
.portrait img { aspect-ratio: 3 / 2; object-fit: cover; object-position: 40% 30%; border-radius: 4px; }
.portrait figcaption { font-family: var(--cond); text-transform: uppercase; letter-spacing: .14em; font-size: .85rem; color: var(--texte-2); margin-top: .6rem; }
.prestations { list-style: none; padding: 0; margin: 1.6rem 0; display: grid; gap: 1rem; }
.prestations li { display: grid; gap: .2rem; padding: 1rem 1.2rem; border-left: 3px solid var(--sable); background: var(--fond); }
.prestations strong { font-family: var(--cond); font-size: 1.25rem; text-transform: uppercase; letter-spacing: .04em; color: var(--titre); }
.prestations span { color: var(--texte-2); }
.prestations.grandes li { padding: 1.4rem 1.6rem; }
.contact-bref { background: var(--encre); color: var(--craie); text-align: center; }
.contact-bref h2 { color: var(--craie); }
.coordonnees { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin: 1.4rem 0 .8rem; }
.lieu { color: var(--gris-2); }
section.texte .coordonnees { justify-content: flex-start; }
section.texte .int { max-width: 48rem; }

/* ── Bandeau et fil ─────────────────────────────────────────────────────── */
.bandeau { background: var(--encre); color: var(--craie); padding: clamp(1.4rem, 4vw, 3rem) 0 clamp(1.4rem, 3vw, 2.4rem); }
.bandeau h1 { color: var(--craie); font-size: clamp(2rem, 5vw, 3.8rem); }
.bandeau .accroche { margin-inline: 0; text-align: left; }
.fil { font-family: var(--cond); text-transform: uppercase; letter-spacing: .1em; font-size: .9rem; color: var(--gris-2); margin: 0 0 .8rem; }
.fil a { color: var(--gris-2); }
.annees { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }
.annees a { font-family: var(--cond); font-weight: 600; letter-spacing: .06em; padding: .35rem .7rem; text-decoration: none; border: 1px solid color-mix(in srgb, var(--craie) 25%, transparent); }
.annees a[aria-current], .annees a:hover { background: var(--sable); color: var(--encre); border-color: var(--sable); }
.admin-corps .annees a { border-color: var(--trait); }
.tete-concours { display: flex; gap: 1.4rem; align-items: center; flex-wrap: wrap; }
.tete-concours .dates { margin: .2rem 0 0; color: var(--gris-2); display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.bandeau .note { color: var(--sable-clair); font-style: italic; }
.onglets { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }
.onglets a { font-family: var(--cond); text-transform: uppercase; letter-spacing: .1em; font-weight: 600; padding: .45rem .9rem; text-decoration: none; border: 1px solid color-mix(in srgb, currentColor 30%, transparent); }
.onglets a[aria-current] { background: var(--sable); color: var(--encre); border-color: var(--sable); }
.bandeau.etat-live .onglets a[aria-current], .bandeau.etat-encours .pastille.encours { }

/* ── Programme d'un concours ────────────────────────────────────────────── */
.jour { margin-bottom: 2.4rem; }
.jour h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
.piste h3 { font-size: 1.1rem; letter-spacing: .14em; color: var(--texte-2); margin: 1.2rem 0 .6rem; }
.epreuves { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.epreuve { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr) auto auto; gap: 1rem; align-items: center; padding: .8rem 1rem; background: var(--fond-2); border: 1px solid var(--trait); border-left-width: 4px; }
.epreuve.etat-live { border-left-color: var(--live); }
.epreuve.etat-resultats { border-left-color: var(--encre-3); }
.epreuve.etat-departs { border-left-color: var(--sable); }
.epreuve .heure { font-family: var(--cond); font-weight: 600; font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.epreuve .quoi { display: grid; gap: .1rem; min-width: 0; }
.epreuve .quoi strong { font-family: var(--cond); font-size: 1.2rem; text-transform: uppercase; letter-spacing: .02em; }
.epreuve .quoi small { color: var(--texte-2); }
.epreuve .actions { display: flex; gap: .4rem; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 700px) { .epreuve { grid-template-columns: 3.6rem minmax(0, 1fr); } .epreuve .etat { grid-column: 2; } .epreuve .actions { grid-column: 1 / -1; justify-content: flex-start; } }

/* ── Tableaux ───────────────────────────────────────────────────────────── */
.tableau-epreuve .int { overflow-x: auto; }
.resultats { width: 100%; border-collapse: collapse; background: var(--fond-2); font-size: .98rem; }
.resultats th { font-family: var(--cond); text-transform: uppercase; letter-spacing: .1em; font-weight: 600; font-size: .85rem; text-align: left; padding: .6rem .7rem; background: var(--encre); color: var(--craie); white-space: nowrap; }
.resultats td { padding: .55rem .7rem; border-bottom: 1px solid var(--trait); vertical-align: top; }
.resultats th.num, .resultats td.num { text-align: right; font-family: var(--cond); font-variant-numeric: tabular-nums; font-size: 1.05rem; white-space: nowrap; }
.resultats td.rang { font-weight: 700; font-size: 1.2rem; }
.resultats td.temps { font-weight: 600; }
.resultats td.cheval { font-weight: 600; text-transform: uppercase; font-family: var(--cond); font-size: 1.1rem; letter-spacing: .01em; }
.resultats td.cheval small { display: block; font-family: var(--sans); font-weight: 400; text-transform: none; font-size: .78rem; color: var(--texte-2); letter-spacing: 0; }
.resultats tr.premier td { background: color-mix(in srgb, var(--sable) 16%, var(--fond-2)); }
.resultats tr.premier td.rang { color: var(--sable-2); }
.resultats .club { color: var(--texte-2); font-size: .9rem; }
@media (max-width: 700px) { .resultats .club, .resultats td.cheval small { display: none; } .resultats td, .resultats th { padding: .5rem .45rem; } }
.releve { color: var(--gris-2); font-size: .9rem; }
.releve.frais { color: var(--sable-clair); }

/* ── Pied ───────────────────────────────────────────────────────────────── */
.pied { background: var(--encre-2); color: var(--gris-2); padding: 2rem 0 max(2rem, env(safe-area-inset-bottom)); font-size: .92rem; }
.pied-int { width: min(1180px, 100% - 2rem); margin-inline: auto; }
.pied p { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin: .4rem 0; }
.pied .marque { width: 20px; height: 20px; color: var(--craie); }
.pied strong { color: var(--craie); font-family: var(--cond); text-transform: uppercase; letter-spacing: .08em; }

/* ── Admin ──────────────────────────────────────────────────────────────── */
.admin .int { max-width: 60rem; }
.enligne { display: inline-flex; gap: .6rem; align-items: center; margin: .4rem .8rem .4rem 0; }
.bloc { display: grid; gap: .3rem; margin: .8rem 0; }
.bloc span { font-family: var(--cond); text-transform: uppercase; letter-spacing: .1em; font-size: .85rem; color: var(--texte-2); }
input, textarea { font: inherit; padding: .55rem .7rem; border: 1px solid var(--trait); background: var(--fond-2); color: inherit; width: 100%; }
textarea { resize: vertical; }
.connexion { max-width: 24rem; }
input.court { width: 6em; }
.alerte { padding: .9rem 1.1rem; border-left: 4px solid var(--live); background: color-mix(in srgb, var(--live) 10%, var(--fond-2)); }
.ok { padding: .9rem 1.1rem; border-left: 4px solid var(--ok); background: color-mix(in srgb, var(--ok) 10%, var(--fond-2)); }
.aide { color: var(--texte-2); font-size: .92rem; }
.questions li { margin: .5rem 0; }
.journal td { font-size: .9rem; }
.journal tr.erreur td { color: var(--live); font-weight: 600; }
.lignes-concours { display: grid; gap: .6rem; }
.ligne-concours { display: grid; grid-template-columns: 56px minmax(0, 1.4fr) auto auto minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) auto; gap: .6rem; align-items: center; padding: .6rem; background: var(--fond-2); border: 1px solid var(--trait); }
.ligne-concours.masque { opacity: .5; }
.ligne-concours .logo-cadre { width: 56px; height: 56px; margin: 0; }
.ligne-concours .quoi { display: grid; }
.ligne-concours .quoi small { color: var(--texte-2); }
.ligne-concours label { white-space: nowrap; font-size: .9rem; }
.ligne-concours input[type="checkbox"] { width: auto; }
@media (max-width: 1000px) { .ligne-concours { grid-template-columns: 56px minmax(0, 1fr); } .ligne-concours > *:nth-child(n+4) { grid-column: 1 / -1; } }
