/* DRC — Downhill Riders Création
   Feuille de style unique, mobile d'abord, sans framework.
   Couleurs issues du logo : orange dominant, rose et violet en touches. */

:root {
  --bg: #050505;
  --surface: #121214;
  --surface-2: #1c1c20;
  --line: #2c2c33;
  --text: #ffffff;
  --muted: #b9b9c3;          /* contraste ≈ 10:1 sur --bg */
  --orange: #fb5919;
  --orange-hi: #ff7a3d;
  --sun: #ffc23d;
  --pink: #e8327c;
  --violet: #a33ad6;
  --ok: #3ddc84;
  --warn: #ffc23d;
  --danger: #ff5d6c;
  --focus: #ffc23d;
  --radius: 14px;
  --radius-sm: 8px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Arial Black", "Helvetica Neue", Impact, system-ui, sans-serif;
  --sunset: linear-gradient(100deg, var(--sun) 0%, var(--orange) 45%, var(--pink) 75%, var(--violet) 100%);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange-hi); text-underline-offset: 3px; }
a:hover { color: var(--sun); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.12; margin: 0 0 .5em; }
h1, h2, .display {
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2rem, 7vw, 3.6rem); }
h2 { font-size: clamp(1.45rem, 4.5vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--sun); color: #000; padding: 10px 14px; z-index: 100; border-radius: var(--radius-sm); font-weight: 700; }
.skip-link:focus { top: 12px; }

/* --- En-tête et navigation ------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(0, 0, 0, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header::after { content: ""; display: block; height: 3px; background: var(--sunset); }
.header-bar { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); margin-right: auto; }
.brand img { width: 48px; height: 48px; border-radius: 50%; }
.brand-name { font-family: var(--font-display); font-style: italic; font-weight: 900; font-size: 1.25rem; letter-spacing: .02em; line-height: 1; }
.brand-name small { display: block; font-family: var(--font); font-style: normal; font-weight: 600; font-size: .68rem; letter-spacing: .14em; color: var(--muted); margin-top: 3px; }
.nav-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  background: none; color: var(--text); border: 1px solid var(--line); border-radius: var(--radius-sm);
  min-height: 44px; padding: 0 14px; font: inherit; font-weight: 700; cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 20px; height: 2px; background: currentColor; position: relative; transition: transform .2s; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; } .nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a { color: var(--text); text-decoration: none; font-weight: 700; }
.site-nav a[aria-current="page"], .site-nav a:hover { color: var(--orange-hi); }

@media (max-width: 959px) {
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: block; }
  .site-nav { border-top: 1px solid var(--line); padding: 8px 0 18px; }
  .site-nav li a { display: block; padding: 14px 2px; border-bottom: 1px solid var(--line); font-size: 1.15rem; }
  .site-nav .nav-actions { display: grid; gap: 10px; margin-top: 16px; }
  .site-nav .nav-actions a { border: 0; }
}
@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .site-nav { display: flex !important; align-items: center; gap: 22px; }
  .site-nav > ul { display: flex; gap: 20px; }
  .site-nav .nav-actions { display: flex; gap: 10px; align-items: center; }
  .header-bar { min-height: 76px; }
  .brand img { width: 58px; height: 58px; }
}

/* --- Boutons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 800; text-decoration: none; text-align: center; line-height: 1.2;
  cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--orange); color: #000; }          /* noir sur orange : contraste ≈ 7:1 */
.btn-primary:hover { background: var(--sun); color: #000; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--orange); color: var(--text); }
.btn-danger { background: transparent; color: var(--danger); border-color: var(--danger); }
.btn-danger:hover { background: var(--danger); color: #000; }
.btn-small { min-height: 40px; padding: 0 14px; font-size: .92rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .5; cursor: not-allowed; }
.nav-actions .btn { min-height: 44px; }

/* --- Héros ----------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-media { position: absolute; inset: 0; }
.hero-media img, .hero-media .placeholder { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.75) 70%, var(--bg) 100%); }
.hero-inner { position: relative; padding: clamp(48px, 10vw, 120px) 0 clamp(40px, 7vw, 80px); display: grid; gap: 24px; align-items: center; }
.hero-logo { width: min(64vw, 300px); border-radius: 50%; margin: 0 auto; filter: drop-shadow(0 10px 40px rgba(251, 89, 25, .35)); }
.hero h1 { font-size: clamp(2.2rem, 9vw, 4.6rem); margin: 0; }
.hero-text { font-size: 1.15rem; color: #e9e9ef; max-width: 46ch; }
.tagline { font-family: var(--font-display); font-style: italic; text-transform: uppercase; letter-spacing: .18em; font-size: .95rem; background: var(--sunset); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 860px) {
  .hero-inner { grid-template-columns: 1.3fr 1fr; }
  .hero-logo { order: 2; width: 100%; max-width: 380px; }
}

/* --- Sections, grilles et cartes --------------------------------------------- */
.section { padding: clamp(40px, 7vw, 80px) 0; }
.section + .section { padding-top: 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 8px 20px; margin-bottom: 22px; }
.section-head h2 { margin: 0; }
.kicker { display: inline-block; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: .78rem; color: var(--orange-hi); margin-bottom: 6px; }
.grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; position: relative;
}
.card:hover { border-color: #46464f; }
.card-media { aspect-ratio: 16 / 10; background: var(--surface-2); overflow: hidden; }
.card-media img, .card-media .placeholder { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-title { font-size: 1.15rem; margin: 0; }
.card-title a { color: var(--text); text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; }   /* carte entièrement cliquable */
.card-title a:focus-visible { outline: none; }
.card:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }
.card-meta { color: var(--muted); font-size: .92rem; display: flex; flex-wrap: wrap; gap: 4px 12px; }

/* Emplacement photo de remplacement */
.placeholder {
  display: flex; align-items: flex-end; justify-content: flex-start;
  background:
    linear-gradient(160deg, transparent 55%, rgba(0,0,0,.6) 55.2%) ,
    linear-gradient(200deg, transparent 62%, rgba(0,0,0,.75) 62.2%),
    radial-gradient(circle at 70% 30%, rgba(255, 194, 61, .55) 0 12%, transparent 12.5%),
    linear-gradient(180deg, #2a1230 0%, #6b1d3a 45%, #b8401c 80%, #1a0d10 100%);
  color: rgba(255,255,255,.75); font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 10px 12px; min-height: 100%;
}

/* --- Badges d'état --------------------------------------------------------------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; border: 1px solid currentColor; width: fit-content; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge-a-venir { color: var(--ok); }
.badge-complet { color: var(--sun); }
.badge-annule { color: var(--danger); }
.badge-termine { color: var(--muted); }
.badge-type { color: var(--orange-hi); }
.badge-type::before { display: none; }
.badge-confirmed { color: var(--ok); }
.badge-waitlisted { color: var(--sun); }
.badge-cancelled_rider, .badge-cancelled_org { color: var(--danger); }
.badge-paid { color: var(--ok); }
.badge-unpaid { color: var(--sun); }
.badge-refunded, .badge-exempt { color: var(--muted); }
.card .badge { position: relative; z-index: 1; }

/* --- Mise en avant journée navettes ------------------------------------------------ */
.feature {
  display: grid; gap: 0; border-radius: var(--radius); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); position: relative;
}
.feature::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--sunset); z-index: 1; }
.feature-media { aspect-ratio: 16 / 9; }
.feature-media img, .feature-media .placeholder { width: 100%; height: 100%; object-fit: cover; }
.feature-body { padding: 22px; display: grid; gap: 12px; align-content: start; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 4px 0; }
.fact { background: var(--surface-2); border-radius: var(--radius-sm); padding: 10px 12px; }
.fact dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.fact dd { margin: 2px 0 0; font-weight: 800; }
@media (min-width: 860px) { .feature { grid-template-columns: 1.1fr 1fr; } .feature-media { aspect-ratio: auto; min-height: 100%; } .feature-body { padding: 32px; } }

/* --- Pages de contenu --------------------------------------------------------------- */
.page-head { padding: clamp(32px, 6vw, 64px) 0 24px; border-bottom: 1px solid var(--line); margin-bottom: 32px; background: radial-gradient(ellipse at 85% 0%, rgba(232, 50, 124, .16), transparent 55%), radial-gradient(ellipse at 10% 0%, rgba(251, 89, 25, .16), transparent 55%); }
.page-head .lead { font-size: 1.15rem; color: #e3e3ea; max-width: 60ch; margin: 0; }
.breadcrumb { font-size: .9rem; color: var(--muted); margin-bottom: 10px; }
.breadcrumb a { color: var(--muted); }
.cover { border-radius: var(--radius); overflow: hidden; margin-bottom: 28px; aspect-ratio: 16 / 8; background: var(--surface-2); }
.cover img, .cover .placeholder { width: 100%; height: 100%; object-fit: cover; }
.prose { max-width: 72ch; }
.prose h2 { margin-top: 1.6em; font-size: clamp(1.3rem, 4vw, 1.8rem); }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose figure { margin: 1.6em 0; }
.prose figcaption, figcaption { color: var(--muted); font-size: .9rem; margin-top: 6px; }
.prose img { border-radius: var(--radius-sm); }
.callout { border-left: 4px solid var(--orange); background: var(--surface); padding: 14px 18px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 1.4em 0; }
.callout-warning { border-color: var(--sun); }
.callout-todo { border-color: var(--violet); border-style: dashed; border-left-style: solid; background: repeating-linear-gradient(135deg, var(--surface), var(--surface) 12px, #17131b 12px, #17131b 24px); }
.callout-title { font-weight: 800; margin-bottom: 4px; }
.callout-todo .callout-title::before { content: "✎ "; }
.values-list { display: grid; gap: 12px; padding: 0; list-style: none; }
@media (min-width: 640px) { .values-list { grid-template-columns: repeat(2, 1fr); } }
.values-list li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; }
.values-list strong { color: var(--orange-hi); display: block; font-size: 1.05rem; }
.team { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); padding: 0; list-style: none; }
.team img, .team .placeholder { aspect-ratio: 1; border-radius: 50%; object-fit: cover; width: 100%; }
.team .name { font-weight: 800; margin-top: 8px; }
details.faq-item { border-bottom: 1px solid var(--line); padding: 12px 0; }
details.faq-item summary { cursor: pointer; font-weight: 700; min-height: 32px; }

.layout-aside { display: grid; gap: 32px; }
@media (min-width: 960px) { .layout-aside { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; } .aside-sticky { position: sticky; top: 100px; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.panel + .panel { margin-top: 16px; }
.panel h2, .panel h3 { font-size: 1.15rem; }
.panel dl { margin: 0; display: grid; gap: 10px; }
.panel dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.panel dd { margin: 0; font-weight: 600; }
.notice { padding: 14px 16px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--line); }
.notice-danger { border-color: var(--danger); }
.notice-warn { border-color: var(--sun); }
.notice-ok { border-color: var(--ok); }

/* --- Filtres et pagination ----------------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--text); text-decoration: none; font-weight: 700; font-size: .92rem; }
.chip:hover { border-color: var(--orange); color: var(--text); }
.chip[aria-current="true"] { background: var(--orange); color: #000; border-color: var(--orange); }
.filters-group { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; }
.pagination { display: flex; gap: 10px; justify-content: center; align-items: center; margin-top: 32px; flex-wrap: wrap; }

/* --- Galerie et vidéos ------------------------------------------------------------- */
.photo-grid { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .photo-grid { grid-template-columns: repeat(3, 1fr); } }
.photo-grid figure { margin: 0; }
.photo-grid a { display: block; border-radius: var(--radius-sm); overflow: hidden; }
.photo-grid img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; transition: transform .25s; }
.photo-grid a:hover img { transform: scale(1.03); }
.video-facade {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius); border: 1px solid var(--line); cursor: pointer;
  background: radial-gradient(circle at 50% 40%, rgba(251, 89, 25, .35), transparent 60%), var(--surface);
  color: var(--text); font: inherit; font-weight: 800; padding: 16px; text-align: center;
}
.video-facade .play { width: 68px; height: 68px; border-radius: 50%; background: var(--orange); display: grid; place-items: center; }
.video-facade .play::before { content: ""; border-left: 22px solid #000; border-top: 13px solid transparent; border-bottom: 13px solid transparent; margin-left: 6px; }
.video-facade small { font-weight: 500; color: var(--muted); }
.video-embed { aspect-ratio: 16 / 9; }
.video-embed iframe { width: 100%; height: 100%; border: 0; border-radius: var(--radius); }
.responsive-object { position: relative; }
.responsive-object iframe { position: absolute; inset: 0; width: 100%; height: 100%; }

/* --- Formulaires ------------------------------------------------------------- */
.form { display: grid; gap: 16px; max-width: 520px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; }
.field input:not([type=checkbox]):not([type=radio]), .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: var(--radius-sm);
  background: #0d0d10; color: var(--text); border: 1px solid #4a4a55; font: inherit;
}
.field textarea { min-height: 120px; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { border-color: var(--focus); }
.field-check { display: flex; gap: 10px; align-items: flex-start; }
.field-check input { width: 22px; height: 22px; margin-top: 3px; accent-color: var(--orange); flex: none; }
.field-check label { font-weight: 500; margin: 0; }
.helptext, .field .help { display: block; color: var(--muted); font-size: .88rem; margin-top: 4px; }
.errorlist { list-style: none; margin: 6px 0 0; padding: 0; color: var(--danger); font-weight: 700; font-size: .92rem; }
.form-errors { border: 1px solid var(--danger); padding: 12px 14px; border-radius: var(--radius-sm); }

/* --- Messages ----------------------------------------------------------------- */
.messages { list-style: none; padding: 0; margin: 16px auto 0; display: grid; gap: 8px; }
.messages li { padding: 14px 16px; border-radius: var(--radius-sm); background: var(--surface); border-left: 4px solid var(--orange); font-weight: 600; }
.messages .success { border-color: var(--ok); }
.messages .error { border-color: var(--danger); }
.messages .warning { border-color: var(--sun); }

/* --- Gestion organisateur (mobile terrain) ------------------------------------------ */
.manage-summary { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 20px; }
@media (min-width: 760px) { .manage-summary { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; }
.stat b { display: block; font-size: 1.6rem; font-family: var(--font-display); font-style: italic; }
.stat span { color: var(--muted); font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.rider-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; }
.rider { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: grid; gap: 10px; scroll-margin-top: 100px; }
.rider:target { border-color: var(--orange); }
.rider-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; flex-wrap: wrap; }
.rider-name { font-weight: 800; font-size: 1.08rem; }
.rider-contact { font-size: .9rem; color: var(--muted); word-break: break-word; }
.rider-contact a { color: var(--muted); }
.rider-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.rider-actions form { margin: 0; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.seg button { background: none; border: 0; color: var(--text); min-height: 44px; min-width: 44px; padding: 0 14px; font: inherit; font-weight: 700; cursor: pointer; }
.seg button + button { border-left: 1px solid var(--line); }
.seg button[aria-pressed="true"].present { background: var(--ok); color: #000; }
.seg button[aria-pressed="true"].absent { background: var(--danger); color: #000; }
.search-bar { display: flex; gap: 8px; margin-bottom: 18px; }
.search-bar input { flex: 1; min-height: 48px; padding: 0 14px; border-radius: var(--radius-sm); background: #0d0d10; color: var(--text); border: 1px solid #4a4a55; font: inherit; }
.table-like { width: 100%; border-collapse: collapse; }
.table-like th, .table-like td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }

/* --- Pied de page ----------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 48px; padding: 36px 0 28px; background: #000; }
.site-footer::before { content: ""; display: block; height: 3px; background: var(--sunset); margin-top: -37px; margin-bottom: 34px; }
.footer-grid { display: grid; gap: 24px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-brand { display: flex; gap: 14px; align-items: center; }
.footer-brand img { width: 72px; height: 72px; border-radius: 50%; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }
.footer-bottom { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }

.empty { padding: 28px; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }
.stack > * + * { margin-top: 16px; }
.cluster { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* --- Canaux de contact (inspiré de blackanchor.re/contact) ----------------------- */
:root { --font-mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Consolas, "Liberation Mono", monospace; }

/* Page Contact : une carte par canal */
.contact-channels { margin-top: 32px; max-width: 460px; }
.contact-channels h2 { margin-top: 0; }
.channels { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.prose .channels { padding-left: 0; }
.channel {
  display: flex; align-items: center; gap: 16px; padding: 16px;
  border-radius: 16px; border: 1px solid rgba(242, 242, 242, .16);
  background: linear-gradient(145deg, rgba(255, 255, 255, .08) 0%, rgba(255, 255, 255, .024) 100%);
  box-shadow: 0 26px 80px rgba(0, 0, 0, .35);
  color: var(--text); text-decoration: none;
  transition: border-color .15s, color .15s;
}
.prose a.channel { color: var(--text); text-decoration: none; }
.channel-icon {
  width: 40px; height: 40px; flex: none; display: grid; place-items: center;
  border-radius: 8px; border: 1px solid rgba(185, 185, 195, .3); background: rgba(5, 5, 5, .6);
  color: var(--orange); transition: border-color .15s;
}
.channel-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.channel-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: .25em; text-transform: uppercase; color: var(--muted); line-height: 1.5; }
.channel-value { font-family: var(--font-mono); font-size: 14px; color: var(--text); line-height: 1.45; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color .15s; }
.channel:hover, .channel:focus-visible { border-color: rgba(251, 89, 25, .4); }
.channel:hover .channel-icon, .channel:focus-visible .channel-icon { border-color: rgba(251, 89, 25, .5); }
.channel:hover .channel-value, .channel:focus-visible .channel-value { color: var(--orange-hi); }

/* Pied de page : petites icônes carrées */
.social-icons { list-style: none; padding: 0; margin: 0 0 18px; display: flex !important; flex-wrap: wrap; gap: 8px !important; }
.site-footer a.social-icon {
  width: 36px; height: 36px; display: grid; place-items: center;
  border: 1px solid rgba(185, 185, 195, .25); background: rgba(5, 5, 5, .6); border-radius: 6px;
  color: var(--muted); transition: color .15s, border-color .15s;
}
.site-footer a.social-icon:hover, .site-footer a.social-icon:focus-visible { color: var(--orange-hi); border-color: rgba(251, 89, 25, .5); }
.site-footer .social-icons { margin-bottom: 18px; }
.cover-natural { aspect-ratio: auto; margin: 0 0 28px; background: none; }
.cover-natural img { width: 100%; height: auto; object-fit: contain; }

/* --- Tableaux (classements…) -------------------------------------------------- */
.table-scroll { overflow-x: auto; margin: 1.2em 0 1.6em; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); -webkit-overflow-scrolling: touch; }
.table-scroll table { width: 100%; border-collapse: collapse; font-size: .9rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table-scroll caption { caption-side: top; text-align: left; padding: 10px 12px; color: var(--muted); font-size: .85rem; white-space: normal; }
.table-scroll th, .table-scroll td { padding: 7px 10px; text-align: left; border-bottom: 1px solid var(--line); }
.table-scroll thead th { position: sticky; top: 0; background: var(--surface-2); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 800; }
.table-scroll tbody tr:nth-child(even) { background: rgba(255, 255, 255, .03); }
.table-scroll tbody tr:hover { background: rgba(251, 89, 25, .08); }
.table-scroll tbody tr:nth-child(-n+3) td:first-child { color: var(--sun); font-weight: 800; }
.table-scroll:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
/* Les colonnes de grille doivent pouvoir rétrécir (tableaux et longs contenus défilent dans leur cadre). */
.layout-aside > *, .prose { min-width: 0; }
.layout-aside { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .layout-aside { grid-template-columns: minmax(0, 1fr) 360px; } }
.table-figure { margin: 1.2em 0 1.6em; }
.table-figure .table-scroll { margin: 0; }
.table-title { color: var(--muted); font-size: .88rem; margin: 0 0 8px; }
.table-scroll caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Le texte garde une largeur de lecture confortable ; les tableaux prennent toute la colonne. */
.prose { max-width: none; }
.prose > :not(.table-figure) { max-width: 72ch; }
.table-scroll td:last-child { white-space: normal; min-width: 14ch; }

/* --- « À la une » (accueil) ------------------------------------------------------ */
.spotlight-section { padding-bottom: 0; }
.spotlight {
  position: relative; display: grid; border-radius: calc(var(--radius) + 4px); overflow: hidden;
  background: var(--surface);
  border: 2px solid transparent;
  background-image: linear-gradient(var(--surface), var(--surface)), var(--sunset);
  background-origin: border-box; background-clip: padding-box, border-box;
  box-shadow: 0 30px 90px rgba(251, 89, 25, .18), 0 10px 40px rgba(232, 50, 124, .12);
}
.spotlight-media { aspect-ratio: 16 / 9; background: var(--surface-2); }
.spotlight-media img, .spotlight-media .placeholder { width: 100%; height: 100%; object-fit: cover; display: block; }
.spotlight-body { padding: 22px; display: grid; gap: 14px; align-content: center; }
.spotlight-label {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px;
  background: var(--sunset); color: #000; font-weight: 900; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
}
.spotlight-label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #000; animation: spotlight-pulse 1.6s ease-in-out infinite; }
@keyframes spotlight-pulse { 50% { opacity: .25; } }
.spotlight-title { font-size: clamp(2rem, 7vw, 3.4rem); margin: 0; }
.spotlight-title a { color: var(--text); text-decoration: none; }
.spotlight-title a:hover { color: var(--orange-hi); }
.spotlight-meta { margin: 0; color: var(--muted); font-weight: 600; }
.spotlight-text { margin: 0; font-size: 1.08rem; color: #e9e9ef; max-width: 52ch; }
@media (min-width: 960px) {
  .spotlight { grid-template-columns: 1.35fr 1fr; }
  .spotlight-media { aspect-ratio: auto; min-height: 100%; }
  .spotlight-body { padding: 36px; }
}
@media (min-width: 960px) { .spotlight { align-items: center; } .spotlight-media { aspect-ratio: 16 / 9; min-height: 0; } }
.prose .values-list, .prose .team { padding-left: 0; }
