/* ==========================================================================
   Site vitrine pilote moto — SundayRide 2027
   Feuille de style unique. Thème sombre, accent bleu Suzuki (livrée du pilote).
   ========================================================================== */

/* ---- Tokens ---- */
:root {
  --ink:        #0b0e14;   /* fond de page (asphalte nuit) */
  --anthracite: #12161f;   /* fond de section alterné */
  --steel:      #1a212c;   /* surfaces / cartes élevées */
  --steel-2:    #2b3444;   /* contours */
  --line-strong: #4a5568;  /* traits de séparation visibles (listes) */
  --fog:        #8892a3;   /* texte secondaire */
  --paper:      #eef1f6;   /* texte principal (blanc cassé) */
  --paper-dim:  #aab4c4;

  --flame:      #2166d9;   /* accent principal : bleu Suzuki */
  --flame-dim:  #6ea8f7;   /* variante claire (texte/liens sur fond sombre) */
  --flame-glow: rgba(33, 102, 217, 0.16);
  --flame-ink:  #ffffff;   /* texte clair sur fond accent */

  --volt:       #c6f135;   /* accent secondaire : jaune-vert Ecstar (badges, mise en avant) */
  --volt-glow:  rgba(198, 241, 53, 0.16);
  --volt-ink:   #10150a;   /* texte sombre sur fond accent secondaire */
  --volt-dim:   #5c6b12;   /* variante foncée du jaune-vert, lisible sur fond clair */

  --font-head: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'Work Sans', 'Segoe UI', sans-serif;

  --container: 1180px;
  --edge: clamp(20px, 5vw, 64px);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 26px;

  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.35), 0 10px 24px rgba(0, 0, 0, 0.35);
  --shadow-lift: 0 18px 44px rgba(0, 0, 0, 0.55);
}

/* ---- Reset ---- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; padding: 0; color: inherit; text-align: left; }
input, textarea, select { font: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.06;
  margin: 0 0 0.5em;
  color: var(--paper);
}
h1 { font-size: clamp(2.8rem, 6.6vw, 5.2rem); letter-spacing: 0.005em; }
h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.25rem; letter-spacing: 0.03em; }
p { margin: 0 0 1em; color: var(--paper-dim); max-width: 60ch; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-head);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--flame-dim);
  margin-bottom: 0.9em;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  background: var(--flame);
  display: inline-block;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--edge);
}

section { padding: clamp(56px, 9vw, 110px) 0; }

/* ---- Boutons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-head);
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.95em 1.8em;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary {
  background: var(--flame);
  color: var(--flame-ink);
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(33, 102, 217, 0.32);
}
.btn-primary:hover { background: #3a7fe0; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(33, 102, 217, 0.4); }
.btn-outline {
  border-color: var(--steel-2);
  color: var(--paper);
  background: var(--steel);
}
.btn-outline:hover { border-color: var(--flame); color: var(--flame-dim); transform: translateY(-2px); }
.btn-volt {
  background: var(--volt);
  color: var(--volt-ink);
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(198, 241, 53, 0.28);
}
.btn-volt:hover { background: #d4ff55; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(198, 241, 53, 0.38); }
.btn-ghost {
  color: var(--flame-dim);
  padding: 0.4em 0;
  letter-spacing: 0.1em;
  border-bottom: 1px solid var(--flame);
  border-radius: 0;
}

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 14, 20, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.logo {
  font-family: var(--font-head);
  font-size: 1.3rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--paper);
  display: flex;
  align-items: center;
  gap: 0.5em;
}
.logo span { color: var(--flame); }
.logo-mark { width: 36px; height: 36px; display: block; }
.site-header .logo {
  position: relative;
  padding-bottom: 4px;
}
.site-header .logo::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(to right, #0055A4 0% 33.333%, #ffffff 33.333% 66.666%, #EF4135 66.666% 100%);
}

.main-nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 38px); }
.main-nav a {
  font-family: var(--font-head);
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--paper-dim);
  position: relative;
  padding: 6px 0;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--paper); }
.main-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--flame);
}

.header-right { display: flex; align-items: center; gap: 22px; }
.social-icons { display: flex; gap: 14px; }
.social-icons a {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--steel-2);
  border-radius: 50%;
  color: var(--paper-dim);
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.social-icons a:hover { border-color: var(--flame); color: var(--flame-ink); background: var(--flame); }
.social-icons svg { width: 15px; height: 15px; fill: currentColor; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 34px; height: 34px;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}
.nav-toggle span { display: block; height: 2px; background: var(--paper); border-radius: 2px; }

/* ---- Footer ---- */
.site-footer {
  background: var(--anthracite);
  border-top: 1px solid var(--steel-2);
  padding: 56px 0 26px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--steel-2);
}
.footer-grid h4 { color: var(--fog); font-size: 0.85rem; letter-spacing: 0.14em; margin-bottom: 1em; }
.footer-grid a { color: var(--paper-dim); }
.footer-grid a:hover { color: var(--flame-dim); }
.footer-grid .btn-volt, .footer-grid .btn-volt:hover { color: var(--volt-ink); }
.footer-grid li { margin-bottom: 0.6em; }
.footer-bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  padding-top: 22px;
  font-size: 0.82rem;
  color: #7d879c;
}
.footer-bottom .admin-link { justify-self: end; color: #5f6b80; font-size: 0.78rem; }
.footer-bottom .admin-link:hover { color: var(--fog); }
.footer-legal { justify-self: center; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; }
.footer-legal a { color: #7d879c; }
.footer-legal a:hover { color: var(--flame-dim); }

/* ---- Hero (accueil) ---- */
.hero {
  position: relative;
  overflow: visible;
  padding: clamp(40px, 6vw, 72px) 0 clamp(90px, 10vw, 140px);
}
.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
}
.hero-tagline h1 .hl {
  display: inline-block;
  background: var(--flame);
  color: var(--flame-ink);
  padding: 0.08em 0.28em 0.14em;
  border-radius: 10px;
  line-height: 1.08;
}
.hero-tagline p { color: var(--paper-dim); font-size: 1.1rem; }
.hero-cta { display: flex; gap: 16px; margin-top: 1.6em; flex-wrap: wrap; }

.hero-visual { position: relative; }
.hero-visual .photo-frame { transform: rotate(1.5deg); box-shadow: var(--shadow-lift); }

.countdown-box {
  position: absolute;
  right: -6%;
  bottom: -40px;
  z-index: 3;
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  min-width: 230px;
  transform: rotate(-2deg);
  box-shadow: var(--shadow-lift);
}
.countdown-box .eyebrow { color: var(--flame); margin-bottom: 0.5em; }
.countdown-box .eyebrow::before { background: var(--flame); }
.countdown-box h3 { color: var(--ink); }
.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  text-align: center;
}
.countdown-grid .num {
  font-family: var(--font-head);
  font-size: 2.1rem;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.countdown-grid .unit {
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #5a6472;
}

/* ---- Bloc "3 mises en avant" ---- */
.feature-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feature-trio .feature {
  padding: 36px 30px;
  background: var(--steel);
  border: 1px solid var(--steel-2);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature-trio .feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.feature-trio .feature:nth-child(2) { transform: translateY(-14px); }
.feature-trio .feature:nth-child(2):hover { transform: translateY(-18px); }
.feature-trio .feature .idx {
  font-family: var(--font-head);
  color: var(--flame);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  display: block;
  margin-bottom: 1.2em;
}
.feature-trio h3 { margin-bottom: 0.5em; }

/* ---- Section titre générique ---- */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 44px;
}
.section-head .eyebrow { margin-bottom: 0.4em; }

/* Réserve la même hauteur de titre que le texte fasse 1 ou 2 lignes,
   pour que les deux colonnes (actus / roulages) démarrent alignées. */
.preview-split .section-head h2 { min-height: 2.15em; }

/* ---- Aperçu actus / résultats (asymétrique) ---- */
.preview-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
}
.news-preview-item {
  padding: 20px 0;
  border-top: 1px solid var(--line-strong);
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 18px;
}
.news-preview-item:last-of-type { border-bottom: 1px solid var(--line-strong); }
.news-preview-item time {
  font-family: var(--font-head);
  color: var(--fog);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}
.news-preview-item h4 { font-family: var(--font-body); text-transform: none; letter-spacing: 0; font-size: 1.05rem; margin: 0 0 0.3em; color: var(--paper); }
.news-preview-item p { font-size: 0.92rem; margin: 0; }

.results-mini .row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--line-strong);
  align-items: center;
}
.results-mini .row:last-of-type { border-bottom: 1px solid var(--line-strong); }
.results-mini .row .circuit { font-size: 0.85rem; color: var(--fog); }
.results-mini .row .rank {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--paper-dim);
  text-align: right;
  max-width: 220px;
  padding-right: 12px;
  border-right: 2px solid var(--volt);
}
.feeling-quote {
  font-style: italic;
  color: var(--paper-dim);
  padding-left: 12px;
  border-left: 2px solid var(--volt);
}

/* ---- Bandeau sponsors (défilement continu) ---- */
/* Fond sombre volontairement contrastant : ce bandeau doit se voir
   immédiatement sur chaque page, pas se fondre dans le reste. */
.sponsor-strip { background: var(--paper); overflow: hidden; padding: clamp(44px, 6vw, 68px) 0; }
.sponsor-strip .eyebrow { color: var(--flame); }
.sponsor-strip .eyebrow::before { background: var(--flame); }
.sponsor-strip h2 { color: var(--ink); }
.sponsor-strip .section-head { margin-bottom: 30px; }
.marquee { width: 100%; overflow: hidden; }
.marquee-track {
  display: flex;
  align-items: center;
  gap: 20px;
  width: max-content;
  animation: marquee-scroll 28s linear infinite;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.sponsor-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px;
  height: 140px; width: 200px;
  flex: 0 0 auto;
  transition: transform 0.2s ease;
}
.sponsor-card:hover { transform: translateY(-4px); }
.sponsor-card .sponsor-logo { display: flex; align-items: center; justify-content: center; height: 78px; width: 100%; }
.sponsor-card img { max-height: 78px; width: auto; max-width: 100%; object-fit: contain; }
.sponsor-card .sponsor-name {
  font-family: var(--font-head);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  color: var(--volt-dim);
}
.sponsor-empty { background: rgba(0,0,0,0.05); border: 1px dashed rgba(0,0,0,0.18); border-radius: var(--radius-md); padding: 30px; text-align: center; color: #5a6472; }

/* ---- Bannière page interne ---- */
.page-banner {
  padding: 64px 0 40px;
  border-bottom: 1px solid var(--steel-2);
}
.page-banner .eyebrow { margin-bottom: 0.4em; }
.page-banner p { font-size: 1.05rem; }

/* ---- Photo placeholder (en attendant vraies photos) ---- */
.photo-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  background: linear-gradient(155deg, var(--steel) 0%, var(--anthracite) 100%);
  border: 1px solid var(--steel-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.photo-frame.ratio-wide { aspect-ratio: 16 / 10; }
.photo-frame.ratio-square { aspect-ratio: 1 / 1; }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.photo-frame .placeholder-note {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  text-align: center;
  padding: 20px;
}
.photo-frame .placeholder-note svg {
  width: 25%; max-width: 88px; min-width: 44px;
  color: var(--flame);
  opacity: 0.85;
}
.photo-frame .placeholder-note span {
  font-family: var(--font-head);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fog);
}
.photo-frame::after {
  content: "";
  position: absolute; top: 18px; left: 18px;
  width: 34px; height: 34px;
  border-top: 3px solid var(--flame);
  border-left: 3px solid var(--flame);
  border-top-left-radius: 8px;
  opacity: 0.9;
}

/* ---- Bio / Le pilote ---- */
.bio-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: start;
}
.bio-layout .stat-list { margin-top: 28px; background: var(--steel); border: 1px solid var(--steel-2); border-radius: var(--radius-md); padding: 6px 22px; box-shadow: var(--shadow-card); }
.stat-list .stat-row {
  display: flex; justify-content: space-between; gap: 20px;
  padding: 14px 0; border-bottom: 1px solid var(--steel-2);
  font-size: 0.92rem;
}
.stat-list .stat-row:last-child { border-bottom: none; }
.stat-list .stat-row span:first-child { color: var(--fog); }

.spec-sheet {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.spec-sheet .spec {
  padding: 22px;
  background: var(--steel);
  border: 1px solid var(--steel-2);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}
.spec-sheet .spec .label { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fog); margin-bottom: 0.5em; }
.spec-sheet .spec .value { font-family: var(--font-head); font-size: 1.1rem; color: var(--paper); }

/* ---- Tables (calendrier / résultats) ---- */
.table-scroll { overflow-x: auto; background: var(--steel); border: 1px solid var(--steel-2); border-radius: var(--radius-md); box-shadow: var(--shadow-card); }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  text-align: left;
  font-family: var(--font-head);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fog);
  padding: 14px 18px;
  border-bottom: 1px solid var(--steel-2);
}
.data-table td {
  padding: 15px 18px;
  border-bottom: 1px solid var(--steel-2);
  font-size: 0.94rem;
  color: var(--paper-dim);
}
.data-table tr:last-child td { border-bottom: none; }
.data-table td.rank, .data-table .highlight {
  color: var(--flame-ink);
  font-family: var(--font-head);
}
.data-table tr:hover td { background: var(--flame-glow); }
.tag-upcoming {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--volt-ink);
  background: var(--volt);
  border-radius: 999px;
  padding: 3px 12px;
}

/* ---- Galerie ---- */
.news-filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 34px; }
.news-filters button {
  background: var(--steel);
  border: 1px solid var(--steel-2);
  color: var(--paper-dim);
  padding: 0.55em 1.3em;
  font-family: var(--font-head);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
}
.news-filters button.active, .news-filters button:hover { border-color: var(--flame); color: var(--flame-ink); background: var(--flame); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gallery-grid .g-item {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--steel);
  border: 1px solid var(--steel-2);
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: var(--shadow-card);
}
.gallery-grid img, .gallery-grid video { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-grid .g-item:hover img { transform: scale(1.05); }
.gallery-grid .g-item .g-meta {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 12px 14px;
  background: linear-gradient(0deg, rgba(10,8,4,0.75), transparent);
  font-size: 0.75rem;
  color: #fff;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.gallery-grid .g-item:hover .g-meta { opacity: 1; }
.gallery-grid .g-item.video::after {
  content: "";
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 50px; height: 50px;
  background: var(--flame);
  border-radius: 50%;
  box-shadow: var(--shadow-lift);
  -webkit-mask: url('../svg/icon-play.svg') no-repeat center / 40%;
  mask: url('../svg/icon-play.svg') no-repeat center / 40%;
}

.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(15, 12, 6, 0.92);
  display: none;
  align-items: center; justify-content: center;
  padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox-inner { max-width: 900px; width: 100%; }
.lightbox-inner img, .lightbox-inner iframe, .lightbox-inner video { width: 100%; max-height: 80vh; object-fit: contain; border: 0; border-radius: var(--radius-md); }
.lightbox-close {
  position: absolute; top: 24px; right: 32px;
  background: none; border: 0; color: #fff; font-size: 1.8rem;
}

/* ---- Partenaires ---- */
.pitch-layout {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 60px;
  align-items: start;
}
.pitch-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 30px; }
.pitch-stats .stat { background: var(--steel); border: 1px solid var(--steel-2); border-radius: var(--radius-md); padding: 22px; box-shadow: var(--shadow-card); }
.pitch-stats .num { font-family: var(--font-head); font-size: 1.9rem; color: var(--flame-dim); }
.pitch-stats .label { font-size: 0.8rem; color: var(--fog); }

.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}
.tier-card {
  padding: 34px 28px;
  background: var(--steel);
  border: 1px solid var(--steel-2);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.tier-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.tier-card.tier-bronze { border-color: #cd7f32; }
.tier-card.tier-argent { border-color: #c0c0c0; }
.tier-card.tier-or { background: linear-gradient(165deg, var(--steel) 0%, var(--volt-glow) 100%); border-color: var(--volt); transform: translateY(-10px); }
.tier-card.tier-or:hover { transform: translateY(-14px); }
.tier-card .tier-name {
  font-family: var(--font-head);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--fog);
  margin-bottom: 0.6em;
}
.tier-card.tier-bronze .tier-name { color: #cd7f32; }
.tier-card.tier-argent .tier-name { color: #c0c0c0; }
.tier-card.tier-or .tier-name { color: #c6f135; }
.tier-card ul { margin-top: 20px; }
.tier-card li {
  font-size: 0.88rem;
  color: var(--paper-dim);
  padding: 8px 0;
  border-top: 1px solid var(--steel-2);
}

.sponsor-directory { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 24px; }
.sponsor-directory a {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px;
  height: 140px;
  padding: 20px;
  border: 1px solid var(--steel-2);
  background: var(--steel);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.sponsor-directory a:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.sponsor-directory-logo { display: flex; align-items: center; justify-content: center; height: 56px; }
.sponsor-directory img { max-height: 56px; max-width: 100%; object-fit: contain; }
.sponsor-directory-name {
  font-family: var(--font-head);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: center;
  color: var(--paper-dim);
}

/* ---- Actualités ---- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.news-card {
  background: var(--steel);
  border: 1px solid var(--steel-2);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.news-card .news-card-media { aspect-ratio: 16/10; background: linear-gradient(155deg, var(--steel) 0%, var(--anthracite) 100%); display: flex; align-items: center; justify-content: center; }
.news-card .news-card-media img { width: 100%; height: 100%; object-fit: cover; }
.news-card .news-card-media svg { width: 30%; max-width: 56px; color: var(--flame); opacity: 0.8; }
.news-card-body { padding: 20px 22px 24px; }
.news-card .cat {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--volt-ink);
  background: var(--volt);
  padding: 3px 11px;
  border-radius: 999px;
}
.news-card h3 { margin: 0.4em 0 0.3em; font-family: var(--font-body); text-transform: none; letter-spacing: 0; font-size: 1.15rem; }
.news-card time { font-size: 0.8rem; color: var(--fog); }
.news-card p { font-size: 0.92rem; margin-top: 0.6em; }

.article-body { max-width: 68ch; }
.article-body p { color: var(--paper-dim); font-size: 1.02rem; }
.article-meta { display: flex; gap: 16px; align-items: center; color: var(--fog); font-size: 0.85rem; margin-bottom: 30px; }

/* ---- Formulaires ---- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; min-width: 0; }
.field input, .field select, .field textarea { max-width: 100%; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fog); }
.field input, .field textarea, .field select {
  background: var(--steel);
  border: 1px solid var(--steel-2);
  color: var(--paper);
  padding: 0.85em 1em;
  border-radius: var(--radius-sm);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--flame); box-shadow: 0 0 0 3px var(--flame-glow);
}
.field textarea { resize: vertical; min-height: 140px; }

.alert { padding: 14px 20px; border-radius: var(--radius-sm); border-left: 3px solid var(--flame); background: var(--flame-glow); font-size: 0.9rem; margin-bottom: 24px; color: var(--paper-dim); }
.alert-success { border-color: #2f8f52; background: rgba(47,143,82,0.1); }
.alert-error { border-color: #c23a3a; background: rgba(194,58,58,0.08); }

/* ---- Page Don ---- */
.donate-hero { text-align: left; max-width: 62ch; }
.donate-placeholder {
  margin-top: 40px;
  border: 1px dashed var(--steel-2);
  background: var(--steel);
  border-radius: var(--radius-md);
  padding: 40px;
  text-align: center;
  color: var(--fog);
  font-family: var(--font-head);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .hero-content, .bio-layout, .pitch-layout, .preview-split { grid-template-columns: 1fr; }
  .hero-visual .photo-frame { transform: none; }
  .countdown-box { position: static; transform: none; margin-top: 24px; margin-left: auto; margin-right: auto; max-width: 340px; }
  .feature-trio, .footer-grid, .tier-grid, .spec-sheet { grid-template-columns: 1fr; }
  .feature-trio .feature:nth-child(2), .tier-card.tier-or { transform: none; }
  .gallery-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
  .sponsor-directory { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .main-nav { position: fixed; top: 78px; left: 0; right: 0; height: calc(100vh - 78px); height: calc(100dvh - 78px); background: var(--ink); flex-direction: column; align-items: flex-start; padding: 30px var(--edge); gap: 22px; transform: translateX(100%); transition: transform 0.25s ease; overflow-y: auto; }
  .main-nav.open { transform: translateX(0); }
  .nav-toggle { display: flex; }
  .header-right .social-icons { display: none; }
  .gallery-grid, .news-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-bottom { grid-template-columns: 1fr; justify-items: start; gap: 10px; }
  .footer-legal, .footer-bottom .admin-link { justify-self: start; }
  .countdown-box { margin-top: 20px; min-width: 0; width: 100%; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 14px; }
}

/* ==========================================================================
   Espace Admin
   ========================================================================== */
.admin-body { background: var(--anthracite); min-height: 100vh; }
.admin-shell { display: grid; grid-template-columns: 230px minmax(0, 1fr); min-height: 100vh; }
.admin-sidebar { background: var(--steel); border-right: 1px solid var(--steel-2); padding: 28px 20px; }
.admin-sidebar .logo { margin-bottom: 30px; }
.admin-sidebar nav a {
  display: block;
  padding: 10px 12px;
  font-family: var(--font-head);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--paper-dim);
  border-left: 2px solid transparent;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.admin-sidebar nav a:hover { color: var(--paper); background: var(--anthracite); }
.admin-sidebar nav a[aria-current="page"] { color: var(--flame-dim); border-color: var(--flame); background: var(--flame-glow); }
.admin-sidebar .logout { margin-top: 30px; color: var(--fog); font-size: 0.8rem; }

.admin-main { padding: 36px var(--edge); }
.admin-header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 28px; }
.admin-panel { background: var(--steel); border: 1px solid var(--steel-2); border-radius: var(--radius-md); box-shadow: var(--shadow-card); padding: 26px; margin-bottom: 24px; overflow-x: auto; }
.admin-login-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.admin-login-box { width: 100%; max-width: 380px; padding: 40px; background: var(--steel); border: 1px solid var(--steel-2); border-radius: var(--radius-md); box-shadow: var(--shadow-lift); }
.admin-table { width: 100%; min-width: 560px; border-collapse: collapse; }
.admin-table th { text-align: left; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fog); padding: 10px; border-bottom: 1px solid var(--steel-2); }
.admin-table td { padding: 12px 10px; border-bottom: 1px solid var(--steel-2); font-size: 0.9rem; vertical-align: middle; }
.admin-table td img { display: block; }
.admin-table .row-actions { display: flex; align-items: center; gap: 14px; white-space: nowrap; }
.admin-table .row-actions form { display: inline-flex; }
.admin-table .row-actions a, .admin-table .row-actions button { font-size: 0.8rem; color: var(--fog); background: none; border: 0; padding: 0; }
.admin-table .row-actions a:hover, .admin-table .row-actions button:hover { color: var(--flame-dim); }
.logo-preview { width: 140px; height: 90px; border: 1px solid var(--steel-2); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; background: #fff; margin-top: 10px; overflow: hidden; }
.logo-preview img { max-width: 90%; max-height: 90%; object-fit: contain; }

@media (max-width: 860px) {
  .admin-shell { grid-template-columns: minmax(0, 1fr); }
  .admin-sidebar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; padding: 18px 20px; }
  .admin-sidebar .logo { margin-bottom: 0; margin-right: 10px; }
  .admin-sidebar nav { display: flex; flex-wrap: wrap; gap: 4px 14px; }
  .admin-sidebar nav a { padding: 6px 10px; border-left: none; }
  .admin-sidebar .logout { margin-top: 0; }
  .admin-main { padding: 24px var(--edge); }
}
