/* ==========================================================
   REID Racing – feuille de style principale
   Pour personnaliser les couleurs : modifiez les variables
   dans :root ci-dessous, c'est le seul endroit nécessaire.
   ========================================================== */

/* ---- Police décorative (logo et grands titres) ---- */
@font-face {
  font-family: "Race Sport";
  src: url("../fonts/RaceSport.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---- Variables globales ---- */
:root {
  --black:   #000;
  --white:   #fff;
  --orange:  #ff6a00;
  --paper:   #f3f3f1;
  --ink-soft:#4a4a4a;
  --line:    #d6d6d6;

  /* Polices */
  --race:    "Race Sport", Impact, "Arial Black", sans-serif;
  --display: "Inter", system-ui, "Segoe UI", sans-serif;
  --body:    "Inter", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Largeur maximale du contenu */
  --max: 1100px;

  /* ---- Couleurs des cases partenaires ----
     Modifiez ces valeurs pour changer le fond de chaque niveau.
     --tile-bg-XXX   : couleur de fond de la case
     --tile-border-XXX : couleur du contour (optionnel, sinon transparent)     */
  --tile-bg-diamond:  #1c2a38;   /* Bleu foncé profond */
  --tile-bg-platinum: #232323;   /* Gris anthracite */
  --tile-bg-gold:     #2a2010;   /* Brun doré sombre */
  --tile-bg-silver:   #222428;   /* Gris ardoise */
  --tile-bg-bronze:   #201810;   /* Brun bronze sombre */
  --tile-bg-inkind:   #1e2226;   /* Gris bleuté neutre */
  --tile-bg-default:  #252525;   /* Fallback pour toute case sans niveau */
}

/* ---- Réinitialisation minimale ---- */
*, *::before, *::after { box-sizing: border-box; }
html  { scroll-behavior: smooth; }
img   { max-width: 100%; display: block; }
a     { color: inherit; }
p     { margin: 0 0 1rem; }
body  {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--black);
  background: var(--white);
}

/* ---- Focus visible (accessibilité) ---- */
:focus-visible {
  outline: 3px solid #000;
  outline-offset: 2px;
  box-shadow: 0 0 0 6px var(--orange);
}

/* ---- Lien "aller au contenu" (accessibilité, visible au focus) ---- */
.skip {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--orange); color: #000; padding: .75rem 1rem; font-weight: 700;
}
.skip:focus { left: 0; }

/* ---- Conteneur centré ---- */
.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}


/* ==========================================================
   EN-TÊTE
   ========================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #000; color: #fff;
  border-bottom: 1px solid #292929;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 68px;
}

/* Logo + nom */
.brand {
  display: flex; align-items: center; gap: .75rem;
  text-decoration: none;
  font-family: var(--race); font-size: 1.5rem; letter-spacing: .02em;
}
.brand img { height: 40px; width: auto; }

/* Navigation principale */
.nav {
  display: flex; align-items: center; gap: .25rem;
  margin-left: auto;
  font-family: var(--display);   /* police propre pour les liens de nav */
  font-weight: 500;
  font-size: .95rem;
  letter-spacing: .01em;
}
.nav a {
  padding: .5rem .8rem;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: border-color .15s;
}
.nav a:hover                { border-bottom-color: #fff; }
.nav a[aria-current="page"] { border-bottom-color: var(--orange); }

/* Boutons d'action (langue, menu mobile) */
.header-actions { display: flex; align-items: center; gap: .5rem; }
.lang-btn, .menu-btn {
  font-family: var(--display);
  font-size: .875rem; font-weight: 600;
  color: #fff; background: transparent;
  border: 2px solid #fff; padding: .3rem .7rem; cursor: pointer;
}
.lang-btn:hover, .menu-btn:hover { background: #fff; color: #000; }

/* Menu hamburger : visible seulement en mobile */
.menu-btn { display: none; }

@media (max-width: 860px) {
  .menu-btn { display: inline-block; }
  .nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; margin: 0;
    background: #000; padding: .5rem 1.25rem 1rem;
    border-bottom: 4px solid var(--orange);
  }
  .nav.open { display: flex; }
  .nav a { padding: .75rem 0; }
}

/* Bandes de pneus décoratives : désactivées dans ce thème */
.tread, .tread--slim { display: none !important; }


/* ==========================================================
   HERO (page d'accueil) ET EN-TÊTE DES PAGES INTERNES
   Les deux utilisent une image de couverture définie par CSS
   (voir la section "Images de couverture" tout en bas).
   ========================================================== */
.hero, .page-head {
  position: relative; isolation: isolate;
  background: #101216; color: #fff;
  text-align: center; overflow: hidden;
}

/* Couche 1 : image de fond semi-transparente */
.hero::before, .page-head::before {
  content: "";
  position: absolute; inset: 0; z-index: -2;
  background-image: var(--cover-image);
  background-size: cover; background-position: center;
  opacity: 1;
}

/* Couche 2 : voile noir par-dessus */
.hero::after, .page-head::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: rgba(0, 0, 0, .40);
}

/* Vidéo optionnelle : derrière le titre et le filtre noir.
   Photo et vidéo se sélectionnent dans js/header-media.js. */
.cover-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  pointer-events: none;
}
/* Le filtre passe DEVANT la vidéo, mais derrière le contenu. */
.hero:has(.cover-video)::after,
.page-head:has(.cover-video)::after { z-index: 0; pointer-events: none; }
.hero:has(.cover-video) > :not(.cover-video),
.page-head:has(.cover-video) > :not(.cover-video) {
  position: relative;
  z-index: 1;
}

/* Grand titre dans le hero */
.hero h1, .page-head h1 {
  font-family: var(--race); font-weight: 400;
  font-size: clamp(3.75rem, 15vw, 10.5rem);
  line-height: .88; letter-spacing: .01em; margin: 0 0 1.5rem;
  text-shadow: 0 3px 18px rgba(0,0,0,.55);
}

/* Contenu centré dans le hero */
.hero-inner { padding: clamp(5rem, 12vw, 9rem) 0; }
.hero p { max-width: 34rem; font-size: 1.25rem; margin: 1rem auto 0; }

/* Scène de dunes (hero.js) — affichée en bas du hero */
.hero-scene {
  display: none;  /*changer "none" en "display" pour montrer l'animation*/
  width: 100%;
  /* La hauteur est définie par hero.js (BAJA.HAUTEUR_SCENE) */
  overflow: hidden;
  line-height: 0;      /* évite un gap sous le SVG */
}

/* En-tête pages internes */
.page-head {
  min-height: 75vh;
  padding: clamp(5rem, 12vw, 9rem) 0;
  display: flex; align-items: center; justify-content: center;
}
.page-head .container { position: relative; }
.page-head h1         { font-size: clamp(2.75rem, 9vw, 6rem); line-height: .95; margin: 0 auto; }
.page-head .lead      { max-width: 38rem; font-size: 1.2rem; margin: 0 auto 2.25rem; }


/* ==========================================================
   BOUTONS
   ========================================================== */
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.btn {
  display: inline-block; font: inherit; font-weight: 700; line-height: 1.2;
  padding: .85rem 1.5rem; cursor: pointer;
  text-decoration: none; text-align: center;
  background: var(--orange); color: #000; border: 3px solid var(--orange);
}
.btn:hover { background: #fff; color: #000; border-color: #000; }
.btn--ghost { background: transparent; color: #fff; border-color: #fff; }
.btn--ghost:hover { background: #fff; color: #000; border-color: #fff; }


/* ==========================================================
   SECTIONS GÉNÉRIQUES
   ========================================================== */
.section          { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section--paper   { background: var(--paper); }
.section--black   { background: #000; color: #fff; }

/* Titre de section : grand, police display, sans ornement */
.section-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1; margin: 0 0 1.5rem;
}
/* Les pseudo-éléments décoratifs de l'ancienne version sont masqués */
.section-title::before, .section-title::after { display: none !important; }

/* Mise en page deux colonnes */
.split {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
}
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }

/* Image avec bordure gauche orange */
.frame-img { border-left: 8px solid var(--orange); }
.frame-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.narrow { max-width: 40rem; }


/* ==========================================================
   ÉQUIPE
   ========================================================== */
.team-group             { margin-top: 2.75rem; }
.team-group:first-child { margin-top: 0; }
.team-group h2 {
  font-family: var(--race); font-weight: 700; font-size: 1.9rem;
  margin: 0 0 1.25rem; padding-bottom: .4rem; border-bottom: 2px solid #000;
}

.member-grid {
  display: grid; gap: 1.75rem 1.25rem; list-style: none; margin: 0; padding: 0;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}
.member img {
  width: 100%; height: auto;   /* height:auto : sinon l'attribut height="400" écrase le carré */
  aspect-ratio: 1; object-fit: cover; background: var(--paper);
  border-bottom: 6px solid var(--orange);
}
/* Photo cliquable vers LinkedIn (seulement si le membre a un lien dans data.js) */
.member-photo { display: block; position: relative; }
.member-photo img { transition: filter .3s ease; }
.member-photo:hover img,
.member-photo:focus-visible img { filter: brightness(.8); }
/* Pastille « in » : montre que la photo mène à LinkedIn (visible au survol) */
.member-photo::after {
  content: "in"; position: absolute; right: .55rem; bottom: .95rem;
  width: 30px; height: 30px; display: grid; place-items: center;
  border-radius: 6px; background: #0a66c2; color: #fff;
  font: 700 1.05rem/1 Arial, sans-serif; letter-spacing: -.04em;
  opacity: 0; transform: translateY(4px); pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.member-photo:hover::after,
.member-photo:focus-visible::after { opacity: 1; transform: none; }
/* Écrans tactiles (pas de survol) : la pastille reste visible */
@media (hover: none) { .member-photo::after { opacity: 1; transform: none; } }

.member strong { display: block; margin-top: .65rem; }
.member span   { color: var(--ink-soft); font-size: .95rem; }
.member .level {
  display: inline-block; vertical-align: middle; margin-left: .25rem;
  padding: .05rem .45rem; font-size: .75rem; font-weight: 700; line-height: 1.5;
  color: #000; background: var(--orange); white-space: nowrap;
}


/* ==========================================================
   COMPÉTITIONS
   ========================================================== */
.comp-block + .comp-block { margin-top: 3.5rem; }
.comp-list  { list-style: none; margin: 0; padding: 0; }
.comp {
  display: grid; grid-template-columns: 6rem 1fr; gap: 1rem 1.5rem;
  padding: 1.25rem 0; border-top: 2px solid #000;
}
.comp:last-child  { border-bottom: 2px solid #000; }
.comp-year        { font-family: var(--race); font-weight: 800; font-size: 2rem; line-height: 1; }
.comp h3          { margin: 0 0 .2rem; font-size: 1.25rem; }
.comp p           { margin: 0; color: var(--ink-soft); }
.comp p + p       { margin-top: .5rem; }
.comp-results     { list-style: none; margin: .75rem 0 0; padding: 0; }
.comp-results li  { padding: .3rem 0; border-top: 1px solid var(--line); }
.comp-results li:first-child { border-top: 0; }
.comp .comp-result {
  margin-top: .6rem; padding-left: .7rem; border-left: 6px solid var(--orange);
  color: #000; font-weight: 700;
}
.empty { color: var(--ink-soft); }

@media (max-width: 520px) { .comp { grid-template-columns: 1fr; gap: .25rem; } }


/* ==========================================================
   PARTENAIRES
   ========================================================== */

/* --- Titre de chaque niveau (diamant, or, argent…) ---
   Grand, lisible, professionnel. La couleur vient de --tier-color. */
.tier { --tier-color: #ccc; }
.tier + .tier { margin-top: 3rem; }

.tier h3 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3rem);  /* grand et imposant */
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--tier-color);
  text-align: center;
  margin: 0 0 1.5rem;
  /* Trait décoratif sous le titre */
  padding-bottom: .6rem;
  border-bottom: 3px solid var(--tier-color);
}

/* Couleurs de chaque niveau */
.tier--diamond { --tier-color: #a8d4f5; }   /* bleu ciel glacé */
.tier--platinum { --tier-color: #c8cdd3; }  /* gris platine */
.tier--gold     { --tier-color: #d4a64a; }  /* or chaleureux */
.tier--silver   { --tier-color: #a8adb5; }  /* argent neutre */
.tier--bronze   { --tier-color: #c0845a; }  /* bronze terreux */
.tier--inkind   { --tier-color: #8a9aaa; }  /* bleu-gris sobre */

/* --- Grille de logos --- */
.logo-grid {
  display: grid; gap: 1rem; list-style: none; margin: 0; padding: 0;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
}

/* --- Case partenaire ---
   Fond gris sombre pour que les logos blancs ressortent bien.
   Le fond précis est défini par la variable --tile-bg propre au niveau,
   ou par la variable individuelle --this-tile-bg sur la case elle-même. */
.logo-tile {
  display: flex; align-items: center; justify-content: center;
  min-height: 105px; padding: 1.25rem;
  text-align: center; font-weight: 700;
  text-decoration: none;

  /* Fond : d'abord la surcharge individuelle, ensuite le fond du niveau, enfin le défaut */
  background: var(--this-tile-bg, var(--tile-bg, var(--tile-bg-default)));

  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;          /* coins arrondis */
  box-shadow: 0 3px 14px rgba(0,0,0,.25);
  color: #fff;                  /* texte blanc (cas sans logo) */
  transition: box-shadow .2s, border-color .2s;
}
a.logo-tile:hover {
  border-color: var(--orange);
  box-shadow: 0 8px 28px rgba(255,106,0,.25);
}
/* LOGOS DES PARTENAIRES
   - Conserve les couleurs d'origine
   - Respecte les proportions
   - S'adapte aux logos ronds, carrés ou rectangulaires
*/
.logo-tile img {
  display: block;
  width: auto;
  height: auto;
  max-width: 95%;
  max-height: 70px;
  object-fit: contain;
  filter: none;
  mix-blend-mode: normal;
  opacity: 1;
}


/* --- Gabarits par niveau (diamant > platine > or > argent > bronze) --- */

/* Diamant : très grandes cases, 1 ou 2 par rangée */
.tier--diamond .logo-grid   { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.tier--diamond .logo-tile   { min-height: 280px; }
.tier--diamond .logo-tile img { max-height: 200px; }
.tier--diamond .logo-tile   { --tile-bg: var(--tile-bg-diamond); }

/* Platine : légèrement plus petites que diamant */
.tier--platinum .logo-grid  { grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); }
.tier--platinum .logo-tile  { min-height: 180px; }
.tier--platinum .logo-tile img { max-height: 130px; }
.tier--platinum .logo-tile  { --tile-bg: var(--tile-bg-platinum); }

/* Or */
.tier--gold .logo-tile      { min-height: 155px; --tile-bg: var(--tile-bg-gold); }
.tier--gold .logo-tile img  { max-height: 110px; }

/* Argent */
.tier--silver .logo-tile    { min-height: 120px; --tile-bg: var(--tile-bg-silver); }
.tier--silver .logo-tile img { max-height: 85px; }

/* Bronze et nature */
.tier--bronze .logo-tile    { min-height: 95px; --tile-bg: var(--tile-bg-bronze); }
.tier--inkind .logo-tile    { min-height: 95px; --tile-bg: var(--tile-bg-inkind); }

/* Section d'introduction (appel à devenir partenaire) */
.partner-introduction { background: #f5f5f5; text-align: center; }
.partner-introduction h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
.pdf-note { font-size: .8rem; color: #666; }

/* Zone "devenir partenaire" en bas */
.partner-cta { margin-top: 3.5rem; }


/* ==========================================================
   HISTOIRE
   Chaque entrée de data.js (history) devient un « chapitre » :
     .chapter-year   la grande année
     .chapter-body   le titre et les paragraphes
     .mosaic         les photos (1 à 6), de tailles différentes
   ========================================================== */
.chapter {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
  border-top: 2px solid #000;
}
.chapter:first-child { padding-top: 0; border-top: 0; }
.chapter:last-child  { padding-bottom: 0; }

/* L'année : sur sa propre rangée, très grande, suivie d'un trait orange.
   Pour la rendre plus petite ou plus grande, changez le clamp(min, souple, max). */
.chapter-year {
  display: flex; align-items: center; gap: clamp(1rem, 3vw, 2rem);
  font-family: var(--race); font-size: clamp(2.25rem, 9vw, 7.5rem);
  line-height: 1; letter-spacing: .01em; overflow-wrap: anywhere;
}
.chapter-year::after {            /* trait orange après l'année */
  content: ""; flex: 1 1 2rem; height: 6px; background: var(--orange);
}

/* Sous l'année : le titre à gauche, le texte à droite.
   Pour donner plus ou moins de place au texte, changez les 4fr / 8fr. */
.chapter-body {
  display: grid; align-items: start;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(1rem, 4vw, 3.5rem);
  margin-top: clamp(1.25rem, 3vw, 2rem);
}
.chapter-body h3 { margin: 0; font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.15; }
.chapter-paras p { max-width: 46rem; margin: 0 0 1rem; font-size: 1.05rem; color: var(--ink-soft); }
.chapter-paras p:last-child { margin-bottom: 0; }
@media (max-width: 800px) { .chapter-body { grid-template-columns: 1fr; gap: .75rem; } }

/* ---------- Mosaïque de photos ----------
   Grille de 4 colonnes. La hauteur d'une rangée est --row-photo.
   La disposition dépend du nombre de photos (mosaic--1 à mosaic--6) :
   chaque lettre du dessin ci-dessous est une photo (a = la première, la plus grande).
   Pour changer une disposition, modifiez le dessin de grid-template-areas :
   les lettres identiques doivent former un rectangle. */
.mosaic {
  --row-photo: clamp(110px, 16vw, 175px);   /* hauteur d'une rangée */
  display: grid; gap: .75rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: var(--row-photo);
  margin-top: clamp(1.75rem, 4vw, 3rem);
}
.mosaic + .mosaic { margin-top: .75rem; }

.photo {
  position: relative; margin: 0; overflow: hidden;
  border-radius: 12px; background: var(--paper);
}
.photo img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transition: transform .6s ease;
}
.photo:hover img { transform: scale(1.04); }
.photo figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 2rem 1rem .75rem; font-size: .9rem; line-height: 1.3; color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,.72), transparent);
}

@media (min-width: 701px) {
  .mosaic--1 { grid-template-areas: "a a a a"  "a a a a"  "a a a a"; }   /* 1 grande photo */
  .mosaic--2 { grid-template-areas: "a a a b"  "a a a b"  "a a a b"; }   /* grande + haute */
  .mosaic--3 { grid-template-areas: "a a b b"  "a a b b"  "a a c c"; }
  .mosaic--4 { grid-template-areas: "a a a b"  "a a a b"  "c c d d"; }
  .mosaic--5 { grid-template-areas: "a a b c"  "a a d d"  "e e e e"; }
  .mosaic--6 { grid-template-areas: "a a b d"  "a a c d"  "e e f f"; }
  .slot-a { grid-area: a; }  .slot-b { grid-area: b; }  .slot-c { grid-area: c; }
  .slot-d { grid-area: d; }  .slot-e { grid-area: e; }  .slot-f { grid-area: f; }
}

/* Mobile : 2 colonnes. La première photo prend toute la largeur ;
   si la dernière reste seule sur sa rangée, elle prend aussi toute la largeur. */
@media (max-width: 700px) {
  .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 38vw; }
  .photo:first-child { grid-column: 1 / -1; grid-row: span 2; }
  .photo:last-child:nth-child(even) { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  .photo img, .member-photo img, .member-photo::after { transition: none; }
  .photo:hover img { transform: none; }
}


/* ==========================================================
   FORMULAIRE (fenêtre modale)
   ========================================================== */
dialog {
  width: 100%; max-width: min(580px, calc(100% - 2rem)); max-height: calc(100dvh - 2rem);
  padding: 0; border: 0; border-top: 8px solid var(--orange); overflow: auto;
}
dialog::backdrop { background: rgba(0, 0, 0, .72); }
.dlg-body         { padding: 1.5rem; }
.dlg-body h2      { font-family: var(--display); font-weight: 700; font-size: 2rem; margin: 0 0 .5rem; }

.field            { display: grid; gap: .3rem; margin-bottom: 1rem; }
.field label      { font-weight: 700; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; padding: .65rem .75rem;
  border: 2px solid #000; border-radius: 0; background: #fff; color: #000;
}
.field textarea   { min-height: 110px; resize: vertical; }
.field--check     { grid-template-columns: auto 1fr; align-items: start; gap: .6rem; }
.field--check input  { width: 1.25rem; height: 1.25rem; margin-top: .2rem; accent-color: #000; }
.field--check label  { font-weight: 400; font-size: .95rem; }

/* Champ piège anti-robots : caché de l'écran */
.hp { position: absolute; left: -9999px; }

.form-actions             { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }
.form-actions .btn--ghost { color: #000; border-color: #000; }
.form-actions .btn--ghost:hover { background: #000; color: #fff; }

.form-status { padding: .75rem 1rem; margin: 0 0 1rem; background: var(--paper); border-left: 6px solid #000; }
.form-status[data-state="success"] { border-left-color: var(--orange); }
.form-status[data-state="error"]   { border-left-color: #b00020; }
.form-status:empty { display: none; }


/* ==========================================================
   PIED DE PAGE
   ========================================================== */
.site-footer { background: #000; color: #fff; }

/* Deux colonnes : liens rapides + réseaux sociaux */
.footer-extras {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem; padding: 3rem 0 2rem;
}
.footer-extras h2 { font-size: 1.1rem; margin: 0 0 1rem; font-family: var(--display); }

.footer-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.footer-links a {
  text-decoration: none; color: #ddd; font-size: .95rem;
  font-family: var(--display);
}
.footer-links a:hover { color: var(--orange); }

/* Icônes des réseaux sociaux */
.footer-social       { display: flex; gap: 1rem; align-items: center; }
.footer-social a     { width: 44px; height: 44px; border: 1px solid #555; border-radius: 50%; display: grid; place-items: center; }
.footer-social img   { width: 23px; height: 23px; }
.footer-social a:hover { border-color: var(--orange); background: rgba(255,106,0,.1); }

/* Ligne de bas de page (copyright + courriel) */
.footer-inner {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem;
  padding: 1.5rem 0; font-size: .95rem; border-top: 1px solid #333;
}
.footer-inner p   { margin: 0; }
.footer-email a   {
  color: var(--orange); font-weight: 600;
  text-decoration: none;
}
.footer-email a:hover { text-decoration: underline; }


/* ==========================================================
   CONTACT (section CSS gardée au cas où, peut être supprimée)
   ========================================================== */
.contact-grid     { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2.5rem; }
.contact-grid h2  { font-family: var(--display); font-weight: 700; font-size: 1.6rem; margin: 0 0 .75rem; }
.contact-grid ul  { list-style: none; margin: 0; padding: 0; }
.contact-grid li  { margin-bottom: .4rem; }
.contact-grid a   { font-weight: 700; text-decoration-thickness: 3px; text-decoration-color: var(--orange); text-underline-offset: 4px; }


/* ==========================================================
   ACCESSIBILITÉ : mouvement réduit
   ========================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}


/* ==========================================================
   IMAGES DE SECOURS (avant chargement de JS)
   Pour changer les images / choisir vidéo : js/header-media.js
   ========================================================== */
body[data-page="home"]         { --cover-image: url("../images/header/accueil.jpg"); }
body[data-page="history"]      { --cover-image: url("../images/header/histoire.jpg"); }
body[data-page="team"]         { --cover-image: url("../images/header/equipe.jpg"); }
body[data-page="competitions"] { --cover-image: url("../images/header/competitions.jpg"); }
body[data-page="partners"]     { --cover-image: url("../images/header/partenaires.jpg"); }
