/**
 * Cheval l'investisseur — la peau commune.
 *
 * ⚠️ SEULE SOURCE DE VÉRITÉ du look. Palette, typo, en-tête, pied de page,
 * ornements. Chargé par toutes les pages du site. Le CSS propre à une page
 * (la piste du Derby, par exemple) reste dans sa page.
 *
 * Thèse : ça a l'air d'un fonds privé, pis ça parle comme ton voisin.
 */

:root {
  --noir:      #0b0a08;
  --noir-2:    #131009;
  --noir-3:    #1b1710;
  --cuir:      #241d13;
  --or:        #c9a227;
  --or-clair:  #e8c85a;
  --or-sourd:  #6d5a1e;
  --creme:     #f4ecd8;
  --creme-2:   #b8ad96;
  --sourdine:  #7d7361;
  --sang:      #d1495b;
  --sang-fonce:#6d1f2a;

  --serif: "Playfair Display", Georgia, serif;
  --mono:  "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --sans:  -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --marge: clamp(1rem, 4vw, 3rem);
  --max:   1180px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--noir);
  /* Texture cuir : deux dégradés très sourds, pas d'image externe. */
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(201,162,39,.10), transparent 60%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(201,162,39,.05), transparent 70%);
  background-attachment: fixed;
  color: var(--creme);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.enveloppe { max-width: var(--max); margin: 0 auto; padding: 0 var(--marge) 5rem; }

/* ── En-tête ─────────────────────────────────────────────────────── */

.prog { padding: clamp(2.5rem, 7vw, 4.5rem) 0 clamp(1.5rem, 4vw, 2.5rem); text-align: center; }

.prog-sur {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--or);
  margin: 0 0 1.1rem;
}

.prog-titre {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(3.4rem, 15vw, 8rem);
  line-height: .84;
  margin: 0;
  color: var(--creme);
  letter-spacing: -.02em;
}
.prog-titre em {
  font-style: normal;
  display: block;
  background: linear-gradient(175deg, var(--or-clair), var(--or) 45%, var(--or-sourd));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.filet {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 1.6rem auto 0;
  max-width: 30rem;
  color: var(--or-sourd);
}
.filet::before, .filet::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--or-sourd));
}
.filet::after { background: linear-gradient(90deg, var(--or-sourd), transparent); }
.filet svg { width: 26px; height: 26px; fill: var(--or); flex: none; }

.prog-meta {
  margin: 1.4rem 0 0;
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--sourdine);
}
.prog-meta b { color: var(--creme-2); font-weight: 400; }

/* ── Titres de section ───────────────────────────────────────────── */

.section-titre {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 600;
  margin: 0 0 .3rem;
  color: var(--creme);
}
.section-sous {
  font-family: var(--mono);
  font-size: .64rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--sourdine);
  margin: 0 0 1.5rem;
}

/* La ligne qui fait comprendre. Une phrase — un paragraphe qui explique la
 * métaphore, ça se lit pas; une ligne qui dit la règle du jeu, ça se lit. */
.explique {
  max-width: 44rem;
  margin: 0 0 1.5rem;
  font-size: clamp(.95rem, 2.1vw, 1.05rem);
  line-height: 1.7;
  color: var(--creme-2);
}

/* ── Le mot (citation encadrée) ──────────────────────────────────── */

.mot {
  margin: clamp(2rem, 5vw, 3rem) 0 0;
  padding: clamp(1.25rem, 3vw, 1.75rem) clamp(1.25rem, 3vw, 2rem);
  border-left: 2px solid var(--or);
  background: linear-gradient(90deg, rgba(201,162,39,.07), transparent 70%);
}
.mot-label {
  font-family: var(--mono);
  font-size: .6rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--or);
  margin-bottom: .5rem;
}
.mot p {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.1rem, 2.6vw, 1.45rem);
  line-height: 1.5;
  color: var(--creme);
}

/* ── États & avis ────────────────────────────────────────────────── */

.etat {
  padding: 3.5rem 1.5rem;
  text-align: center;
  font-family: var(--mono);
  font-size: .85rem;
  color: var(--sourdine);
}
.etat b { display: block; color: var(--sang); font-size: 1rem; margin-bottom: .6rem; letter-spacing: .1em; }

.avis {
  margin-top: 1.25rem;
  padding: .8rem 1rem;
  border: 1px solid var(--sang-fonce);
  border-radius: 3px;
  font-family: var(--mono);
  font-size: .68rem;
  line-height: 1.7;
  color: var(--sang);
}

/* ── Pied ────────────────────────────────────────────────────────── */

footer {
  margin-top: clamp(3rem, 7vw, 5rem);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(201,162,39,.14);
  font-family: var(--mono);
  font-size: .64rem;
  line-height: 1.9;
  letter-spacing: .06em;
  color: var(--sourdine);
  text-align: center;
}
footer strong { color: var(--creme-2); font-weight: 400; }
footer a { color: var(--or-sourd); }

/* L'avis légal.
 *
 * ⚠️ Le TEXTE est copié en dur dans chaque page — volontairement. Un
 * avertissement injecté en JS disparaît si le JS plante, et un avis qui
 * s'évapore vaut moins que pas d'avis. Seul le style est partagé ici.
 * Si le texte change : le changer dans derby/index.html ET
 * programme/index.html (+ apropos/ et contact/ quand elles existeront). */
.avis-legal { margin-top: 1.5rem; }

/* Le meilleur avertissement de la page, pis c'est ses mots. On l'affiche
 * comme une phrase d'humain, pas comme du fin texte d'avocat. */
.avis-legal .dude {
  display: block;
  margin-bottom: .6rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1rem, 2.4vw, 1.15rem);
  letter-spacing: 0;
  text-transform: none;
  color: var(--creme-2);
}
