/* ==========================================================================
   Bar-sur-Aube Football Club — Design System
   Identité : orange BFC (fusion rouge FCT + jaune ESBB) + anthracite
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Brand */
  --orange: #F26A1B;
  --orange-600: #E15A0F;
  --orange-700: #C44C0A;
  --orange-soft: #FFF1E6;
  --ink: #16191F;
  --ink-700: #2A2F38;
  --ink-500: #5A6470;

  /* Neutrals */
  --bg: #FFFFFF;
  --bg-soft: #F6F7F9;
  --bg-dark: #14181F;
  --line: #E7E9ED;
  --white: #FFFFFF;

  /* Status */
  --win: #1F9D55;
  --draw: #C99A06;
  --loss: #D2342B;

  /* Type */
  --font-display: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  /* Layout */
  --container: 1180px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(16,25,31,.06), 0 2px 8px rgba(16,25,31,.05);
  --shadow-md: 0 6px 24px rgba(16,25,31,.10);
  --shadow-lg: 0 18px 50px rgba(16,25,31,.18);
  --header-h: 76px;
}

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
/* La cible d'une ancre (#contact, #horaires…) ne passe pas sous l'en-tête fixe */
section[id], [id]:target { scroll-margin-top: 96px; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
ul { list-style: none; padding: 0; }

/* ----- Typography ----- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.08; letter-spacing: .2px; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); text-transform: uppercase; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); text-transform: uppercase; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
p { color: var(--ink-700); }
.lead { font-size: 1.15rem; color: var(--ink-700); }
.eyebrow {
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  letter-spacing: 2.5px; color: var(--orange); font-size: .85rem; display:inline-block;
}

/* ----- Layout helpers ----- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(48px, 7vw, 96px) 0; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--bg-dark); color: #E8EAEE; }
.section--dark p { color: #AEB6C2; }
.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head.center { margin-inline: auto; text-align: center; }
.grid { display: grid; gap: 24px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.stack > * + * { margin-top: 1rem; }
.text-center { text-align: center; }
.mt-0{margin-top:0}.mt-1{margin-top:.5rem}.mt-2{margin-top:1rem}.mt-3{margin-top:1.5rem}.mt-4{margin-top:2rem}
.muted { color: var(--ink-500); }

/* ----- Buttons ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  letter-spacing: .6px; font-size: .95rem;
  padding: 13px 24px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, background .2s ease, box-shadow .2s ease, color .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--orange); color: #fff; box-shadow: 0 6px 18px rgba(242,106,27,.35); }
.btn--primary:hover { background: var(--orange-600); transform: translateY(-2px); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--ink-700); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--orange-soft); }
.btn--block { width: 100%; }
.btn--lg { padding: 16px 30px; font-size: 1.05rem; }

/* ----- Header ----- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 18px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 11px; margin-right: auto; min-width: 0; }
.brand img { height: 52px; width: auto; max-width: 56px; object-fit: contain; flex: 0 0 auto; }
.brand-name { font-family: var(--font-display); font-weight: 700; line-height: 1.05; }
.brand-name b { display: block; font-size: 1.2rem; color: var(--ink); letter-spacing: .3px; white-space: nowrap; }
.brand-name span { display:block; font-size: .66rem; color: var(--ink-500); text-transform: uppercase; letter-spacing: 1.2px; font-weight: 600; white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-family: var(--font-display); font-weight: 500; text-transform: uppercase;
  letter-spacing: .5px; font-size: .92rem; color: var(--ink-700);
  padding: 9px 12px; border-radius: 8px; transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--orange); background: var(--orange-soft); }
.nav-links a.active { color: var(--orange); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none; background: var(--ink); color: #fff; border: 0; width: 46px; height: 42px;
  border-radius: 10px; cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle svg { width: 24px; height: 24px; stroke: #fff; }

/* ----- Top alert bar ----- */
.home-alert {
  display:flex; align-items:center; justify-content:center; gap:14px; flex-wrap:wrap;
  background: var(--ink); color:#fff; padding:10px 18px; font-size:.9rem; text-align:center;
}
.home-alert b { color: var(--orange); white-space:nowrap; }
.home-alert:hover b { text-decoration:underline; }

/* ----- Hero ----- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: linear-gradient(115deg, #1B1F27 0%, #2A2017 55%, #6E3508 100%);
  display: flex; align-items: center;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
}
.hero::after {
  content:""; position:absolute; inset:0;
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(242,106,27,.55), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M0 39h40M39 0v40' stroke='%23ffffff' stroke-opacity='.04' stroke-width='1'/%3E%3C/svg%3E");
  pointer-events:none;
}
/* padding vertical seulement : laisse le padding latéral de .container (évite que le texte touche les bords) */
.hero-inner { position: relative; z-index: 2; width: 100%; padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(40px, 6vw, 80px); max-width: 720px; }
.hero h1 { color:#fff; }
.hero h1 .accent { color: var(--orange); }
.hero p { color: #D8DCE3; font-size: 1.2rem; margin-top: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-badges { display:flex; gap:24px; margin-top: 40px; flex-wrap:wrap; }
.hero-badge b { font-family: var(--font-display); font-size: 2rem; color: var(--orange); display:block; }
.hero-badge span { font-size:.85rem; color:#C7CCD4; text-transform:uppercase; letter-spacing:1px; }

/* ----- Cards ----- */
.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-media { aspect-ratio: 16/10; background: var(--bg-soft) center/cover no-repeat; position: relative; }
.card-body { padding: 20px; display:flex; flex-direction:column; gap:8px; flex:1; }
.card-body h3 { color: var(--ink); }
.card-tag {
  position:absolute; top:12px; left:12px; background: var(--orange); color:#fff;
  font-family: var(--font-display); font-weight:600; text-transform:uppercase;
  font-size:.72rem; letter-spacing:1px; padding:5px 10px; border-radius:999px;
}
.card-date { font-size:.82rem; color: var(--ink-500); font-weight:600; text-transform:uppercase; letter-spacing:.5px; }
.card-link { color: var(--orange); font-family:var(--font-display); font-weight:600; text-transform:uppercase; font-size:.85rem; letter-spacing:.5px; margin-top:auto; }
.card-link:hover { color: var(--orange-700); }

/* Pill / chips */
.chip {
  display:inline-flex; align-items:center; gap:6px; padding:5px 12px; border-radius:999px;
  background: var(--orange-soft); color: var(--orange-700); font-weight:600; font-size:.8rem;
}
.chip--ink { background: var(--ink); color:#fff; }

/* ----- Match cards ----- */
.match {
  display:grid; grid-template-columns: 1fr auto 1fr; align-items:center; gap:14px;
  background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding:18px 20px;
  box-shadow: var(--shadow-sm);
}
.match-meta { grid-column:1/-1; display:flex; justify-content:space-between; align-items:center;
  font-size:.78rem; color:var(--ink-500); text-transform:uppercase; letter-spacing:.6px; font-weight:600;
  border-bottom:1px solid var(--line); padding-bottom:10px; margin-bottom:4px; flex-wrap:wrap; gap:6px; }
.match-team { display:flex; flex-direction:column; align-items:center; gap:6px; text-align:center; }
.match-team b { font-family:var(--font-display); font-size:1.05rem; }
.match-logo { width:46px; height:46px; overflow:hidden; display:flex; align-items:center; justify-content:center; flex:0 0 auto; }
.match-logo img { width:100%; height:100%; object-fit:contain; }
.match-logo img.is-bfc-logo { object-fit:cover; object-position:left center; }
.match-center { text-align:center; min-width:64px; }
.match-score { font-family:var(--font-display); font-size:1.8rem; font-weight:700; }
.match-time { font-family:var(--font-display); font-size:1.3rem; color:var(--orange); }
.match-vs { font-size:.8rem; color:var(--ink-500); text-transform:uppercase; }
.badge-result { font-family:var(--font-display); font-weight:700; width:24px; height:24px; border-radius:6px; color:#fff; display:inline-flex; align-items:center; justify-content:center; font-size:.8rem; }
.match-surface { text-transform:none; letter-spacing:0; background:var(--bg-soft); color:var(--ink-700); padding:1px 8px; border-radius:999px; font-weight:600; }
.match-venue { color:var(--ink-700); border-bottom:1px dotted currentColor; }
.match-venue.home-flag { color:var(--orange); }
.match-venue:hover { color:var(--orange-700); }
.r-win{background:var(--win)} .r-draw{background:var(--draw)} .r-loss{background:var(--loss)}
.home-flag { color: var(--orange); }

/* Table (standings, schedules) */
.table-wrap { overflow-x:auto; border:1px solid var(--line); border-radius:var(--radius); background:#fff; }
table.tbl { width:100%; border-collapse:collapse; min-width:480px; }
table.tbl th, table.tbl td { padding:12px 14px; text-align:left; border-bottom:1px solid var(--line); font-size:.95rem; }
table.tbl th { font-family:var(--font-display); text-transform:uppercase; font-size:.8rem; letter-spacing:.5px; color:var(--ink-500); background:var(--bg-soft); }
table.tbl tr:last-child td { border-bottom:0; }
table.tbl td.num, table.tbl th.num { text-align:center; }
table.tbl tr.is-bfc { background: var(--orange-soft); }
table.tbl tr.is-bfc td { font-weight:600; }

/* ----- Pills row / filter ----- */
.filters { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:24px; }
.filter-btn {
  border:1px solid var(--line); background:#fff; border-radius:999px; padding:8px 16px;
  font-family:var(--font-display); font-weight:500; text-transform:uppercase; font-size:.82rem;
  letter-spacing:.5px; cursor:pointer; transition:.15s;
}
.filter-btn:hover { border-color:var(--ink); }
.filter-btn.active { background:var(--orange); color:#fff; border-color:var(--orange); }

/* ----- Partners ----- */
.partner-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(150px,1fr)); gap:18px; }
.partner {
  background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:22px;
  display:flex; align-items:center; justify-content:center; min-height:110px; transition:.18s;
}
.partner:hover { box-shadow:var(--shadow-md); transform:translateY(-3px); }
.partner.is-link { position:relative; cursor:pointer; }
.partner.is-link:hover { border-color:var(--orange); }
.partner.is-link::after { content:"↗"; position:absolute; top:6px; right:9px; font-size:.85rem; font-weight:700; color:var(--orange-700); opacity:0; transition:opacity .15s; }
.partner.is-link:hover::after { opacity:1; }
.partner img { max-height:64px; object-fit:contain; filter:saturate(1); }
.partner .ph { font-family:var(--font-display); font-weight:700; color:var(--ink-500); font-size:1.1rem; text-align:center; }

/* ----- Stat / value blocks ----- */
.feature { display:flex; gap:16px; }
.feature .ico { flex:0 0 auto; width:52px; height:52px; border-radius:14px; background:var(--orange-soft); color:var(--orange); display:flex; align-items:center; justify-content:center; }
.feature .ico svg { width:26px; height:26px; }
.feature h3 { color:var(--ink); margin-bottom:4px; }

/* ----- Timeline (dates à retenir / historique) ----- */
.timeline { position:relative; padding-left:28px; }
.timeline::before { content:""; position:absolute; left:7px; top:6px; bottom:6px; width:2px; background:var(--line); }
.timeline li { position:relative; padding-bottom:26px; }
.timeline li::before { content:""; position:absolute; left:-28px; top:4px; width:16px; height:16px; border-radius:50%; background:var(--orange); border:3px solid #fff; box-shadow:0 0 0 2px var(--orange); }
.timeline .t-date { font-family:var(--font-display); font-weight:600; color:var(--orange); text-transform:uppercase; letter-spacing:.5px; font-size:.85rem; }

/* ----- Forms ----- */
.form-card { background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:clamp(22px,4vw,40px); box-shadow:var(--shadow-sm); }
.field { margin-bottom:18px; }
.field label { display:block; font-weight:600; margin-bottom:6px; font-size:.92rem; }
.field .req { color:var(--orange); }
.field input, .field select, .field textarea {
  width:100%; padding:12px 14px; border:1px solid var(--line); border-radius:var(--radius-sm);
  background:#fff; transition:border .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline:none; border-color:var(--orange); box-shadow:0 0 0 3px rgba(242,106,27,.15);
}
.field textarea { min-height:120px; resize:vertical; }
.field .hint { font-size:.82rem; color:var(--ink-500); margin-top:4px; }
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.form-note { background:var(--orange-soft); border-left:4px solid var(--orange); padding:14px 16px; border-radius:8px; font-size:.92rem; color:var(--ink-700); }
.form-success { display:none; background:#E8F7EE; border:1px solid #BBE6CB; color:#1F7A45; padding:16px; border-radius:var(--radius-sm); }
.form-success.show { display:block; }

/* ----- Anti-robot (case "Je ne suis pas un robot") ----- */
.robot-check {
  display:flex; align-items:center; justify-content:space-between; gap:14px;
  border:1px solid var(--line); background:var(--bg-soft); border-radius:var(--radius-sm);
  padding:14px 16px; margin-bottom:18px; transition:border-color .15s, background .15s;
}
.robot-box { display:flex; align-items:center; gap:12px; cursor:pointer; user-select:none; }
.robot-box input { position:absolute; opacity:0; width:0; height:0; }
.robot-mark {
  width:26px; height:26px; border:2px solid var(--ink-500); border-radius:7px; background:#fff;
  display:flex; align-items:center; justify-content:center; flex:0 0 auto; transition:.15s;
}
.robot-mark::after { content:""; color:#fff; font-weight:700; font-size:16px; line-height:1; }
.robot-box input:checked + .robot-mark { background:var(--orange); border-color:var(--orange); }
.robot-box input:checked + .robot-mark::after { content:"\2713"; }
.robot-box input:focus-visible + .robot-mark { box-shadow:0 0 0 3px rgba(242,106,27,.25); }
.robot-label { font-weight:600; font-size:.95rem; color:var(--ink); }
.robot-badge { opacity:.85; flex:0 0 auto; }
.robot-turnstile { flex-wrap:wrap; gap:10px; }
.robot-turnstile .robot-label small { color:var(--ink-500); font-weight:500; }
.robot-turnstile .ts-holder { min-width:0; }
.robot-turnstile.error { border-color:var(--loss); background:#fdecea; }
.robot-check.error { border-color:var(--loss); background:#fdecea; }
.robot-check.error .robot-mark { border-color:var(--loss); }
.robot-check.error .robot-label::after { content:" — merci de cocher cette case"; color:var(--loss); font-weight:500; font-size:.85rem; }

/* ----- Banner / CTA strip ----- */
.cta-strip {
  background: linear-gradient(120deg, var(--orange) 0%, var(--orange-700) 100%); color:#fff;
  border-radius: var(--radius); padding: clamp(28px,5vw,52px); position:relative; overflow:hidden;
}
.cta-strip h2 { color:#fff; }
.cta-strip p { color: rgba(255,255,255,.92); }
.cta-strip .btn--light { color: var(--orange-700); }

/* ----- Page hero (interior) ----- */
.page-hero { background: var(--bg-dark); color:#fff; padding: clamp(48px,7vw,84px) 0 clamp(40px,6vw,64px); position:relative; overflow:hidden; }
.page-hero::after { content:""; position:absolute; inset:0; background:radial-gradient(700px 380px at 90% 0%, rgba(242,106,27,.35), transparent 60%); }
.page-hero .container { position:relative; z-index:1; }
.page-hero h1 { color:#fff; }
.page-hero p { color:#C7CCD4; max-width:640px; margin-top:12px; font-size:1.1rem; }
.breadcrumb { font-size:.82rem; color:#9aa3af; text-transform:uppercase; letter-spacing:1px; font-weight:600; margin-bottom:14px; }
.breadcrumb a:hover { color:var(--orange); }

/* ----- Prose (articles, club text) ----- */
.prose { max-width: 760px; }
.prose h2 { margin: 1.6em 0 .5em; }
.prose h3 { margin: 1.4em 0 .4em; color:var(--ink); }
.prose p { margin: 0 0 1em; }
.prose ul { list-style: disc; padding-left: 1.4em; margin: 0 0 1em; }
.prose ul li { margin-bottom:.4em; }
.prose img { border-radius: var(--radius); margin: 1.2em 0; }
.prose a { color: var(--orange-700); text-decoration: underline; }
.prose blockquote { border-left:4px solid var(--orange); padding:8px 18px; background:var(--bg-soft); border-radius:8px; margin:1em 0; font-style:italic; }

/* ----- Gallery ----- */
.gallery { columns: 3 240px; column-gap: 16px; }
.gallery img, .gallery .gph { width:100%; border-radius:var(--radius-sm); margin-bottom:16px; break-inside:avoid; background:var(--bg-soft); }
.gph { aspect-ratio:4/3; display:flex; align-items:center; justify-content:center; color:var(--ink-500); font-family:var(--font-display); }

/* ----- Footer ----- */
.site-footer { background: var(--bg-dark); color:#C7CCD4; padding: 56px 0 28px; }
.footer-grid { display:grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap:32px; }
.site-footer h4 { color:#fff; font-size:1rem; text-transform:uppercase; letter-spacing:1px; margin-bottom:14px; }
.site-footer a { color:#ffffff; }
.site-footer a:hover { color:var(--orange); }
.footer-links li { margin-bottom:9px; }
.footer-brand img { height:52px; margin-bottom:14px; }
.footer-brand p { color:#9aa3af; font-size:.92rem; }
.social { display:flex; gap:10px; margin-top:14px; }
.social a { width:40px; height:40px; border-radius:10px; background:#222831; display:flex; align-items:center; justify-content:center; transition:.15s; }
.social a:hover { background:var(--orange); }
.social svg { width:20px; height:20px; fill:#fff; }
.footer-bottom { border-top:1px solid #262C35; margin-top:36px; padding-top:20px; display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; font-size:.85rem; color:#7f8893; }
.footer-bottom a { color:#7f8893; }

/* ----- Utilities for reveal animation ----- */
.reveal { opacity:0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity:1; transform:none; }

/* ----- Bannière cookies ----- */
.cookie-banner {
  position: fixed; z-index: 200; right: 20px; bottom: 20px; width: 340px; max-width: calc(100vw - 32px);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 20px 20px 18px;
  animation: cookieIn .35s ease;
}
@keyframes cookieIn { from { opacity:0; transform: translateY(16px); } to { opacity:1; transform:none; } }
.cookie-banner h4 { font-family: var(--font-display); text-transform: uppercase; letter-spacing:.5px; color: var(--ink); margin-bottom: 6px; }
.cookie-banner p { font-size: .9rem; margin-bottom: 14px; }
.cookie-banner a { color: var(--orange-700); font-weight: 600; text-decoration: underline; }
.cookie-banner .cookie-ok { width: 100%; }
.cookie-close { position: absolute; top: 8px; right: 10px; background: none; border: 0; font-size: 1.4rem; line-height: 1; color: var(--ink-500); cursor: pointer; }
.cookie-close:hover { color: var(--ink); }
@media (max-width: 560px) {
  /* bottom + zone sûre iOS (évite la barre Safari / l'indicateur d'accueil) */
  .cookie-banner { right: 10px; left: 10px; bottom: calc(12px + env(safe-area-inset-bottom)); width: auto; }
}

/* ----- Skip link / a11y ----- */
.skip { position:absolute; left:-999px; top:0; background:var(--ink); color:#fff; padding:10px 16px; z-index:200; border-radius:0 0 8px 0; }
.skip:focus { left:0; }

/* ===== Standings v2 (DA BFC) ===== */
.standings-group { margin-bottom: 30px; scroll-margin-top: 96px; border-radius: var(--radius); transition: box-shadow .3s; }
.standings-group.flash { box-shadow: 0 0 0 3px var(--orange), var(--shadow-md); }
.sg-head { display:flex; justify-content:space-between; align-items:baseline; gap:12px; margin-bottom:10px; flex-wrap:wrap; }
.sg-head h3 { color: var(--ink); margin:0; }
.sg-head .muted { font-size:.8rem; text-transform:uppercase; letter-spacing:.5px; }
table.standings th, table.standings td { padding:10px 8px; white-space:nowrap; }
table.standings td.club { white-space:normal; min-width:150px; font-weight:500; }
table.standings td.rank { font-weight:700; color:var(--ink-500); }
table.standings td.pts b { font-size:1.05rem; color:var(--ink); }
table.standings td.gnp { font-variant-numeric:tabular-nums; color:var(--ink-500); }
.club-logo { width:24px; height:24px; object-fit:contain; vertical-align:middle; margin-right:8px; }
.club-logo.is-bfc-logo { object-fit:cover; object-position:left center; }
/* Ligne BFC très visible */
table.standings tr.is-bfc td { background: var(--orange-soft); font-weight:700; }
table.standings tr.is-bfc td.rank, table.standings tr.is-bfc td.club, table.standings tr.is-bfc td.pts b { color: var(--orange-700); }
table.standings tr.is-bfc td:first-child { box-shadow: inset 4px 0 0 var(--orange); }
/* Forme */
.forme { display:inline-flex; gap:3px; }
.fdot { width:19px; height:19px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; font-size:11px; line-height:1; color:#fff; font-weight:700; }
.f-w { background: var(--win); } .f-l { background: var(--loss); } .f-n { background:#9aa3af; }

/* ===== Match cards: actions + clickable ===== */
.match.is-clickable { cursor:pointer; }
.match.is-clickable:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.match-actions { grid-column:1/-1; display:flex; gap:16px; justify-content:flex-end; align-items:center; border-top:1px solid var(--line); margin-top:12px; padding-top:10px; flex-wrap:wrap; }
.match-act { font-family:var(--font-display); font-weight:600; text-transform:uppercase; font-size:.76rem; letter-spacing:.5px; color: var(--orange-700); }
a.match-act:hover { text-decoration:underline; }
.act-standings { color: var(--ink-700); }
.match.is-clickable:hover .act-standings { color: var(--orange-700); }

/* ===== Boutique nav highlight ===== */
.nav-links a.nav-shop { color: var(--orange-700); }

/* ----- Responsive ----- */
@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cols-4 { grid-template-columns: repeat(2,1fr); }
}
/* CTA "Pré-inscription" : visible dans la barre sur desktop, déplacé dans le menu sur mobile */
.nav-mobile-cta { display: none; }
@media (max-width: 1024px) {
  .nav-links, .nav-cta .btn--primary { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav.open .nav-links {
    display: flex; position: absolute; top: var(--header-h); left:0; right:0;
    flex-direction: column; align-items: stretch; background:#fff; border-bottom:1px solid var(--line);
    padding: 12px; gap:2px; box-shadow: var(--shadow-md);
  }
  .nav.open .nav-links a { padding: 14px; border-radius:10px; }
  .nav.open .nav-links .nav-mobile-cta {
    display: block; background: var(--orange); color:#fff; text-align:center; margin-top:6px;
    font-family: var(--font-display); text-transform:uppercase; letter-spacing:.5px;
  }
  .nav.open .nav-links .nav-mobile-cta:hover { background: var(--orange-600); color:#fff; }
  .cols-3, .cols-2 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
/* Masquer la bannière (stage Real Madrid) sur mobile */
@media (max-width: 760px) {
  .home-alert { display: none; }
  /* Hero : contenu remonté vers le haut (sinon le bas passe sous la barre du navigateur) */
  .hero { align-items: flex-start; }
  .hero-inner { padding-top: clamp(20px, 5vh, 44px); padding-bottom: calc(40px + env(safe-area-inset-bottom)); }
  .hero p { margin-top: 12px; }
  .hero-actions { margin-top: 22px; }
  .hero-badges { margin-top: 26px; gap: 18px; }
}
@media (max-width: 560px) {
  .cols-4 { grid-template-columns: 1fr; }
  .gallery { columns: 2 140px; }
  .brand-name span { display:none; }
  .brand-name b { font-size: 1.05rem; }
  .hero-badges { gap:18px; }
  /* Hero : éviter le débordement du gros titre */
  .hero h1 { font-size: 2rem; line-height: 1.3; overflow-wrap: break-word; }
  .hero p { font-size: 1.05rem; }
  .hero-actions .btn { width: 100%; }
  .hero-badge b { font-size: 1.6rem; }
  /* Cartes match : compactes et lisibles */
  .match { padding: 14px; gap: 8px; }
  .match-team b { font-size: .9rem; }
  .match-team { gap: 4px; }
  .match-logo { width: 34px; height: 34px; font-size: .8rem; }
  .match-score { font-size: 1.5rem; }
  .match-time { font-size: 1.1rem; }
  .match-meta { font-size: .72rem; }
  .match-actions { justify-content: space-between; gap: 10px; }
  /* Titres de section un cran plus petits */
  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.5rem; }
  /* Classement : forme un peu plus compacte */
  .fdot { width: 17px; height: 17px; font-size: 10px; }
  table.standings th, table.standings td { padding: 8px 6px; }
}
/* ===== Barre de navigation flottante "liquid glass" — desktop uniquement ===== */
@media (min-width: 1025px) {
  /* Alerte + barre en superposition (overlay) au-dessus d'un hero plein écran */
  .home-alert { position: fixed; top: 0; left: 0; right: 0; z-index: 101; }
  .site-header {
    position: fixed; top: var(--alert-h, 0px); left: 0; right: 0;
    background: transparent; border-bottom: 0;
    -webkit-backdrop-filter: none; backdrop-filter: none;
    padding: 14px 0;
  }
  .site-header .container { padding: 0 24px; }
  .nav {
    height: 60px; padding: 0 12px 0 22px;
    background: rgba(255,255,255,.55);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255,255,255,.55);
    border-radius: 999px;
    box-shadow: 0 12px 34px rgba(16,25,31,.16), inset 0 1px 0 rgba(255,255,255,.65);
  }
  .brand img { height: 40px; }
  .brand-name b { font-size: 1.05rem; }
  .brand-name span { font-size: .6rem; }
  .nav-links a { font-size: .88rem; padding: 8px 11px; }
  /* L'en-tête est en overlay : le hero occupe tout l'écran, le contenu intérieur est décalé */
  .hero { margin-top: 0; min-height: 100vh; min-height: 100svh; }
  .page-hero { margin-top: 0; padding-top: calc(110px + clamp(48px, 7vw, 84px)); }
  main > .section:first-child { padding-top: calc(110px + clamp(40px, 5vw, 64px)); }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior:auto !important; transition:none !important; animation:none !important; }
  .reveal { opacity:1; transform:none; }
}
