/* =====================================================================
   Angers Maine Tennis — feuille de style
   Couleurs tirées de l'écusson : bleu nuit #1E2A4C et orange #F39A1A.
   ===================================================================== */
:root {
  --navy: #1e2a4c;
  --navy-900: #131b33;
  --navy-700: #2b3a66;
  --navy-100: #e6e9f2;
  --orange: #f39a1a;
  --orange-ink: #a85a00;          /* orange lisible sur fond clair (contraste AA) */
  --orange-100: #fdf0dc;
  --clay: #c4583a;                /* terre battue */
  --paper: #f7f5f0;
  --white: #fff;
  --ink: #1a2036;
  --muted: #5a6280;
  --line: #dde1ea;
  --win: #1f8a54;  --win-bg: #e3f4ea;
  --draw: #5f6675; --draw-bg: #eceef2;
  --loss: #b3332b; --loss-bg: #fbe5e3;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(19, 27, 51, .06), 0 8px 24px rgba(19, 27, 51, .08);
  --shadow-lg: 0 2px 6px rgba(19, 27, 51, .08), 0 22px 50px rgba(19, 27, 51, .16);
  --display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 1180px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--body); font-size: 1.0625rem; line-height: 1.6;
  color: var(--ink); background: var(--paper);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-700); text-underline-offset: 3px; }
a:hover { color: var(--clay); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.05; margin: 0 0 .5em; color: var(--navy); letter-spacing: .005em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 800; text-transform: uppercase; font-style: italic; }
h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); font-weight: 800; text-transform: uppercase; font-style: italic; }
h3 { font-size: 1.45rem; }
h4 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 60ch; }
.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 1rem; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: .7rem 1rem; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 1rem; color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--display); font-weight: 700; font-size: .95rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--orange-ink); margin-bottom: .6rem;
}
.eyebrow::before { content: ""; width: 22px; height: 3px; background: var(--orange); border-radius: 2px; transform: skewX(-20deg); }
.on-dark .eyebrow, .eyebrow.light { color: var(--orange); }

/* ---------------- Boutons ---------------- */
.btn {
  --bg: var(--navy); --fg: #fff; --bd: var(--navy);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .7rem 1.35rem; border-radius: 999px; border: 2px solid var(--bd);
  background: var(--bg); color: var(--fg); font: 700 1.02rem/1 var(--body); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); color: var(--fg); box-shadow: 0 6px 16px rgba(19, 27, 51, .18); }
.btn-primary { --bg: var(--orange); --fg: var(--navy-900); --bd: var(--orange); }
.btn-primary:hover { --bg: #ffab33; }
.btn-navy:hover { --bg: var(--navy-700); }
.btn-outline { --bg: transparent; --fg: var(--navy); --bd: var(--navy); }
.btn-outline:hover { --bg: var(--navy); --fg: #fff; }
.btn-ghost { --bg: rgba(255,255,255,.08); --fg: #fff; --bd: rgba(255,255,255,.55); }
.btn-ghost:hover { --bg: #fff; --fg: var(--navy); }
.btn-sm { min-height: 40px; padding: .45rem 1rem; font-size: .95rem; }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.link-arrow { font-weight: 700; color: var(--navy); text-decoration: none; display: inline-flex; gap: .35rem; align-items: center; }
.link-arrow svg { width: 1em; height: 1em; transition: transform .15s; }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------------- En-tête ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { height: 100%; display: flex; align-items: center; gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--navy); flex: none; }
.brand img { width: 50px; height: auto; }
.brand-text { font-family: var(--display); font-weight: 800; font-style: italic; text-transform: uppercase; line-height: .95; font-size: 1.25rem; }
.brand-text small { display: block; font-size: .72rem; letter-spacing: .16em; color: var(--orange-ink); font-style: normal; font-weight: 700; }
/* Menu principal en onglets, toujours visible */
.nav { margin-left: auto; min-width: 0; }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav-list { display: flex; gap: .2rem; }
.nav-list > li { position: relative; flex: none; }
.nav a {
  display: flex; align-items: center; gap: .3rem; padding: .55rem .8rem; border-radius: 999px; text-decoration: none;
  color: var(--ink); font-weight: 600; font-size: 1rem; white-space: nowrap;
}
.nav a svg { width: 16px; height: 16px; opacity: .7; }
.nav a:hover { background: var(--navy-100); color: var(--navy); }
.nav-list > li > a[aria-current="page"] { background: var(--navy); color: #fff; }
/* Sous-menu « Le club » */
.nav .sub {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 230px; z-index: 60;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: .4rem;
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .15s, transform .15s, visibility 0s .15s;
}
.nav .sub::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }
.nav .has-sub:hover > .sub, .nav .has-sub:focus-within > .sub { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.nav .has-sub.sub-closed > .sub { opacity: 0; visibility: hidden; }
.nav .sub a { border-radius: 10px; padding: .6rem .8rem; font-size: .98rem; }
.nav .sub a[aria-current="page"] { background: var(--navy-100); color: var(--navy); }

/* Écrans moyens : onglets plus serrés, logo sans texte secondaire */
@media (max-width: 1100px) {
  .site-header .container { gap: 1rem; }
  .nav a { padding: .5rem .6rem; font-size: .95rem; }
  .brand-text { font-size: 1.1rem; }
}
/* Tablettes et téléphones : le logo puis, en dessous, une ligne d'onglets qui défile horizontalement */
@media (max-width: 900px) {
  :root { --header-h: 112px; }
  .site-header { height: auto; }
  .site-header .container { flex-direction: column; align-items: stretch; gap: 0; padding-top: .45rem; }
  .brand { align-self: flex-start; }
  .brand img { width: 40px; }
  .nav { margin: .35rem -1.25rem 0; border-top: 1px solid var(--line); }
  .nav-list {
    overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity;
    padding: .45rem 1.25rem; gap: .15rem;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 1rem, #000 calc(100% - 1.5rem), transparent);
            mask-image: linear-gradient(90deg, transparent 0, #000 1rem, #000 calc(100% - 1.5rem), transparent);
  }
  .nav-list::-webkit-scrollbar { display: none; }
  .nav-list > li { scroll-snap-align: start; }
  .nav a svg { display: none; }
  /* Le sous-menu ne peut pas s'ouvrir dans une ligne qui défile : les rubriques du club sont en haut de ses pages. */
  .nav .sub { display: none; }
}

/* Onglets des pages du club */
.subnav { background: #fff; border-bottom: 1px solid var(--line); }
.subnav .container { display: flex; gap: .3rem; overflow-x: auto; padding-top: .6rem; padding-bottom: .6rem; scrollbar-width: none; }
.subnav a { flex: none; padding: .5rem 1rem; border-radius: 999px; text-decoration: none; font-weight: 600; color: var(--ink); border: 1px solid var(--line); white-space: nowrap; }
.subnav a:hover { border-color: var(--navy); }
.subnav a[aria-current="page"] { background: var(--navy); border-color: var(--navy); color: #fff; }

/* Équipe enseignante */
.teachers { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 1.4rem; }
.teacher { background: #fff; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; }
.teacher img, .teacher-nophoto { width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; object-position: top; background: var(--navy-100); }
.teacher-nophoto { display: grid; place-items: center; color: var(--navy); }
.teacher-nophoto svg { width: 64px; height: 64px; opacity: .45; }
.teacher-body { padding: 1.1rem 1.3rem 1.3rem; }
.teacher-body h2 { font-size: 1.5rem; margin: 0; color: var(--navy); }
.teacher-role { margin: .3rem 0 0; color: var(--orange-ink); font-weight: 700; font-size: .92rem; text-transform: uppercase; letter-spacing: .05em; }
.teacher-text { margin-top: .8rem; color: var(--ink); font-size: .98rem; }
.teacher-text p { margin: 0 0 .6rem; }
.teacher-text p:last-child { margin: 0; }

/* Newsletters */
.jump-link { margin: 0 0 1.5rem; }
.jump-link .chip svg { width: 16px; height: 16px; margin-right: .35rem; }
.newsletters { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 1rem; }
.newsletter { display: flex; gap: 1rem; align-items: flex-start; height: 100%; padding: 1.1rem 1.2rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--paper); text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.newsletter:hover { border-color: var(--navy); box-shadow: var(--shadow); }
.nl-icon { flex: none; width: 52px; height: 64px; border-radius: 8px; background: var(--navy); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.nl-icon svg { width: 24px; height: 24px; }
.nl-icon b { font-size: .7rem; letter-spacing: .08em; color: var(--orange); }
.nl-body { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.nl-date { font-size: .82rem; font-weight: 700; color: var(--orange-ink); text-transform: uppercase; letter-spacing: .06em; }
.nl-body strong { font-size: 1.08rem; color: var(--navy); line-height: 1.25; }
.nl-sum { font-size: .92rem; color: var(--muted); }
.nl-open { margin-top: .35rem; font-weight: 700; font-size: .92rem; text-decoration: underline; text-underline-offset: 3px; }
.nl-open small { font-weight: 500; color: var(--muted); text-decoration: none; }

/* Mention « pas une adresse postale » */
.addr-note { display: block; margin-top: .3rem; font-size: .82rem; line-height: 1.35; color: var(--muted); font-weight: 400; }
.hero-meta .addr-note { display: inline; margin: 0; color: inherit; opacity: .8; font-size: .85em; }
.site-footer .addr-note { font-size: .8rem; opacity: .75; max-width: 30ch; }

/* ---------------- Héros ---------------- */
.hero { position: relative; color: #fff; background: var(--navy-900); overflow: hidden; isolation: isolate; }
.hero-photo { position: absolute; inset: 0; z-index: -2; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(19,27,51,.97) 0%, rgba(19,27,51,.9) 42%, rgba(30,42,76,.55) 75%, rgba(30,42,76,.35) 100%);
}
.court-lines { position: absolute; inset: 0; z-index: -1; opacity: .16; pointer-events: none; }
.hero-inner { padding: clamp(4rem, 9vw, 7.5rem) 0 clamp(5rem, 10vw, 8rem); max-width: 720px; }
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero h1 em { color: var(--orange); font-style: italic; }
.hero .lead { color: rgba(255,255,255,.86); font-size: 1.25rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 2.2rem; color: rgba(255,255,255,.8); font-size: .98rem; }
.hero-meta span { display: inline-flex; align-items: center; gap: .45rem; }
.hero-meta svg { width: 18px; height: 18px; color: var(--orange); }

.page-hero { background: var(--navy); color: #fff; position: relative; overflow: hidden; isolation: isolate; }
.page-hero .container { padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(3rem, 6vw, 4.2rem); }
.page-hero h1 { color: #fff; font-size: clamp(2.4rem, 5vw, 3.8rem); margin: 0 0 .3em; }
.page-hero p { color: rgba(255,255,255,.82); font-size: 1.15rem; max-width: 62ch; margin: 0; }
.crumbs { font-size: .92rem; color: rgba(255,255,255,.7); margin-bottom: .8rem; }
.crumbs a { color: rgba(255,255,255,.85); }

/* ---------------- Sections ---------------- */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-tight { padding: clamp(2.5rem, 5vw, 3.5rem) 0; }
.section-white { background: #fff; }
.section-navy { background: var(--navy); color: #fff; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.section-head h2 { margin: 0; }
.section-head p { margin: .5rem 0 0; color: var(--muted); max-width: 58ch; }
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }

/* ---------------- Actions rapides (accueil) ---------------- */
.quick { margin-top: -3.6rem; position: relative; z-index: 2; }
.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 820px) { .quick-grid { grid-template-columns: 1fr; } .quick { margin-top: -2.5rem; } }
.quick-card {
  display: flex; gap: 1rem; align-items: flex-start; padding: 1.4rem 1.4rem 1.3rem; background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); text-decoration: none; color: var(--ink); border: 1px solid transparent;
  transition: transform .18s ease, border-color .18s ease;
}
.quick-card:hover { transform: translateY(-3px); border-color: var(--orange); color: var(--ink); }
.quick-card h3 { margin: 0 0 .2rem; font-size: 1.35rem; text-transform: uppercase; font-style: italic; }
.quick-card p { margin: 0; color: var(--muted); font-size: .98rem; line-height: 1.45; }
.hex {
  flex: none; width: 54px; height: 60px; display: grid; place-items: center; color: var(--navy-900); background: var(--orange);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.hex svg { width: 26px; height: 26px; }
.hex.navy { background: var(--navy); color: var(--orange); }
.hex.clay { background: var(--clay); color: #fff; }

/* ---------------- Chiffres clés ---------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,.14); border-radius: var(--radius-lg); overflow: hidden; }
@media (max-width: 820px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { background: var(--navy); padding: 1.6rem 1.4rem; }
.stat b { display: block; font-family: var(--display); font-size: clamp(2.6rem, 5vw, 3.6rem); font-weight: 800; font-style: italic; line-height: 1; color: var(--orange); }
.stat span { color: rgba(255,255,255,.82); font-size: 1rem; }

/* ---------------- Cartes ---------------- */
.card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; border: 1px solid var(--line); }
.card-body { padding: 1.4rem 1.5rem 1.5rem; }
.news-card { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); transition: transform .18s ease, box-shadow .18s ease; }
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: var(--ink); }
.news-card .thumb { aspect-ratio: 4 / 3; background: var(--navy-100); overflow: hidden; position: relative; }
.news-card .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .4s ease; }
.news-card:hover .thumb img { transform: scale(1.04); }
.news-card h3 { font-size: 1.5rem; margin: .4rem 0 .5rem; }
.news-card p { color: var(--muted); font-size: 1rem; margin: 0; }
.meta { display: flex; flex-wrap: wrap; gap: .5rem .9rem; align-items: center; font-size: .92rem; color: var(--muted); }
.tag {
  display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .65rem; border-radius: 999px;
  font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: var(--navy-100); color: var(--navy);
}
.tag-orange { background: var(--orange-100); color: var(--orange-ink); }
.tag-live { background: var(--orange); color: var(--navy-900); }
.badge-float { position: absolute; top: .8rem; left: .8rem; }

/* ---------------- Matchs ---------------- */
.match-list { display: grid; gap: .75rem; }
.match {
  display: grid; grid-template-columns: 82px 1fr auto; gap: 1rem; align-items: center; padding: .9rem 1.1rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
}
.match-date { text-align: center; line-height: 1; font-family: var(--display); color: var(--navy); border-right: 1px solid var(--line); padding-right: 1rem; }
.match-date b { display: block; font-size: 2rem; font-weight: 800; }
.match-date span { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--muted); }
.match-teams { min-width: 0; }
.match-teams .team-tag { font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--orange-ink); }
.match-teams .vs { font-weight: 600; font-size: 1.02rem; overflow-wrap: anywhere; }
.match-teams .vs .amt { color: var(--navy); font-weight: 800; }
.match-teams .where { font-size: .88rem; color: var(--muted); display: inline-flex; gap: .3rem; align-items: center; }
.match-teams .where svg { width: 14px; height: 14px; }
@media (max-width: 560px) {
  .match { grid-template-columns: 64px 1fr; }
  .match > :last-child { grid-column: 2; justify-self: start; }
  .match-date b { font-size: 1.6rem; }
}
.res {
  display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .7rem; border-radius: 10px; font-weight: 800;
  font-variant-numeric: tabular-nums; text-decoration: none; white-space: nowrap; font-size: 1rem;
}
.res .l { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; color: #fff; font-size: .8rem; }
.res.win { background: var(--win-bg); color: var(--win); } .res.win .l { background: var(--win); }
.res.draw { background: var(--draw-bg); color: var(--draw); } .res.draw .l { background: var(--draw); }
.res.loss { background: var(--loss-bg); color: var(--loss); } .res.loss .l { background: var(--loss); }
.res.todo { background: var(--paper); color: var(--muted); font-weight: 600; }
a.res:hover { filter: brightness(.96); }

/* ---------------- Équipes ---------------- */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.chip {
  min-height: 44px; padding: .5rem 1.1rem; border-radius: 999px; border: 2px solid var(--line); background: #fff; color: var(--ink);
  font: 600 1rem var(--body); cursor: pointer; transition: all .15s;
}
.chip:hover { border-color: var(--navy); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip .n { opacity: .65; margin-left: .25rem; font-weight: 500; }

.team-overview { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 265px), 1fr)); gap: 1rem; }
.team-tile {
  display: block; padding: 1.2rem 1.25rem; background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--line);
  text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .15s, border-color .15s; position: relative; overflow: hidden;
}
.team-tile:hover { transform: translateY(-2px); border-color: var(--orange); color: var(--ink); }
.team-tile h3 { margin: 0; font-size: 1.6rem; text-transform: uppercase; font-style: italic; }
.team-tile .div { color: var(--muted); font-size: .95rem; margin-bottom: .8rem; }
.form-dots { display: flex; gap: .3rem; }
.form-dots span { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; font-size: .75rem; font-weight: 800; color: #fff; }
.form-dots .win { background: var(--win); } .form-dots .draw { background: var(--draw); } .form-dots .loss { background: var(--loss); }
.form-dots .todo { background: var(--paper); border: 1px dashed var(--line); }
.team-tile .next { margin-top: .8rem; font-size: .92rem; color: var(--muted); }
.team-tile .next b { color: var(--ink); font-weight: 600; }

.team-block { background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--line); box-shadow: var(--shadow); margin-bottom: 1.5rem; overflow: hidden; }
.team-head {
  display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between;
  padding: 1.4rem 1.6rem; background: var(--navy); color: #fff; position: relative; overflow: hidden;
}
.team-head h2 { color: #fff; margin: 0; font-size: clamp(1.8rem, 3vw, 2.3rem); }
.team-head .sub { color: rgba(255,255,255,.8); font-size: .98rem; }
.record { display: flex; gap: .5rem; }
.record div { text-align: center; background: rgba(255,255,255,.08); border-radius: 12px; padding: .45rem .8rem; min-width: 64px; }
.record b { display: block; font-family: var(--display); font-size: 1.7rem; line-height: 1; font-weight: 800; }
.record small { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.75); }
.record .w b { color: #7fe0a8; } .record .d b { color: #ffd66b; } .record .l b { color: #ff9a92; }
.team-photo button { display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in; background: var(--navy-100); }
.team-photo img { width: 100%; aspect-ratio: 21 / 8; object-fit: cover; object-position: center 35%; }
@media (max-width: 640px) { .team-photo img { aspect-ratio: 16 / 9; } }
.team-tile.has-photo { padding-top: 0; }
.tile-photo { display: block; margin: 0 -1.25rem 1rem; aspect-ratio: 16 / 9; overflow: hidden; background: var(--navy-100); }
.tile-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.team-tile:hover .tile-photo img { transform: scale(1.04); }
.team-body { display: grid; grid-template-columns: 300px 1fr; }
@media (max-width: 880px) { .team-body { grid-template-columns: 1fr; } }
.team-side { padding: 1.4rem 1.6rem; border-right: 1px solid var(--line); background: #fbfaf7; }
@media (max-width: 880px) { .team-side { border-right: 0; border-bottom: 1px solid var(--line); } }
.team-side h3, .team-main h3 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-family: var(--body); font-weight: 700; margin: 0 0 .8rem; }
.roster { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.roster li { display: flex; justify-content: space-between; gap: .75rem; padding: .45rem 0; border-bottom: 1px dashed var(--line); font-size: 1rem; }
.roster li:last-child { border-bottom: 0; }
.roster .rk { font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }
.roster .role { font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: .1rem .45rem; border-radius: 6px; margin-left: .35rem; vertical-align: 2px; }
.roster .role.cap { background: var(--orange); color: var(--navy-900); }
.roster .role.rempl { background: var(--navy-100); color: var(--navy); }
.pool { list-style: none; margin: 0; padding: 0; font-size: .92rem; color: var(--muted); columns: 1; }
.pool li { padding: .2rem 0; }
.pool li.me { color: var(--navy); font-weight: 800; }
.team-main { padding: 1.4rem 1.6rem; }
.fixtures { width: 100%; border-collapse: collapse; font-size: 1rem; }
.fixtures th { text-align: left; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 0 .6rem .6rem; border-bottom: 2px solid var(--line); }
.fixtures td { padding: .7rem .6rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.fixtures tr.is-next td { background: var(--orange-100); }
.fixtures tr.is-next td:first-child { box-shadow: inset 4px 0 0 var(--orange); }
.fixtures .d { white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--muted); }
.fixtures .amt { color: var(--navy); font-weight: 800; }
.fixtures .ha { font-size: .75rem; font-weight: 800; letter-spacing: .05em; padding: .15rem .45rem; border-radius: 6px; background: var(--navy-100); color: var(--navy); }
.fixtures .ha.ext { background: var(--paper); color: var(--muted); }
.fixtures td:last-child { text-align: right; }
@media (max-width: 640px) {
  .fixtures thead { display: none; }
  .fixtures tr { display: grid; grid-template-columns: 1fr auto; gap: .2rem .8rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
  .fixtures td { border: 0; padding: 0 .5rem; }
  .fixtures td.opp { grid-column: 1 / -1; order: 3; }
  .fixtures td:last-child { grid-row: 1; grid-column: 2; }
}
.note { font-size: .92rem; color: var(--muted); }
.note-box { padding: 1rem 1.2rem; border-radius: var(--radius); background: var(--orange-100); border-left: 4px solid var(--orange); font-size: .98rem; }
.note-box p:last-child { margin: 0; }

/* ---------------- Formules / tarifs ---------------- */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; align-items: stretch; }
@media (max-width: 1100px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .plans { grid-template-columns: 1fr; } }
.plan { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.6rem 1.5rem 1.5rem; box-shadow: var(--shadow); }
.plan.featured { border: 2px solid var(--orange); }
.plan .ribbon { position: absolute; top: -13px; left: 1.5rem; }
.plan .who { font-size: .82rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--orange-ink); }
.plan h3 { font-size: 1.9rem; text-transform: uppercase; font-style: italic; margin: .2rem 0 .1rem; }
.plan .age { color: var(--muted); margin-bottom: 1.1rem; }
.price { display: flex; flex-direction: column; gap: .55rem; padding: 1rem 0; border-block: 1px solid var(--line); margin-bottom: 1.1rem; }
.price-row { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; flex-wrap: wrap; }
.price-row .lbl { font-size: .92rem; color: var(--muted); }
.price-row .v { font-family: var(--display); font-size: 2.6rem; font-weight: 800; color: var(--navy); line-height: 1; }
.price-row .v small { font-size: 1.2rem; }
.price-row .pm { width: 100%; font-size: .88rem; color: var(--muted); margin-top: -.2rem; }
.incl { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .5rem; font-size: .98rem; }
.incl li { display: flex; gap: .55rem; align-items: flex-start; }
.incl svg { width: 18px; height: 18px; flex: none; margin-top: .22rem; color: var(--win); }
.plan .opt { margin-top: auto; font-size: .92rem; padding: .7rem .85rem; border-radius: 10px; background: var(--paper); }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 1rem; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.3rem 1.3rem 1.2rem; position: relative; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 40px; height: 44px; margin-bottom: .8rem;
  font-family: var(--display); font-weight: 800; font-size: 1.4rem; background: var(--navy); color: var(--orange);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.steps h3 { font-size: 1.25rem; margin-bottom: .3rem; }
.steps p { margin: 0; color: var(--muted); font-size: .98rem; }
.discounts { display: flex; flex-wrap: wrap; gap: 1rem; }
.discount { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.3rem; border-radius: var(--radius-lg); background: var(--navy); color: #fff; flex: 1 1 260px; }
.discount b { font-family: var(--display); font-size: 2.4rem; font-weight: 800; color: var(--orange); line-height: 1; font-style: italic; }
.discount span { color: rgba(255,255,255,.85); font-size: .98rem; }
.discount strong { color: #fff; display: block; font-size: 1.05rem; }

/* ---------------- Le club ---------------- */
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 1rem; }
.value { padding: 1.4rem; background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--line); }
.value .hex { margin-bottom: .9rem; width: 46px; height: 52px; }
.value .hex svg { width: 22px; height: 22px; }
.value h3 { font-size: 1.4rem; text-transform: uppercase; font-style: italic; margin-bottom: .3rem; }
.value p { margin: 0; color: var(--muted); font-size: .98rem; }
.quote { position: relative; background: #fff; border-radius: var(--radius-lg); padding: clamp(1.6rem, 4vw, 3rem); box-shadow: var(--shadow); border: 1px solid var(--line); }
.quote p { font-size: 1.1rem; }
.quote p:first-child { font-family: var(--display); font-size: 1.6rem; font-weight: 700; color: var(--navy); font-style: italic; }
.quote .sig { display: flex; align-items: center; gap: 1rem; margin-top: 1.5rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.quote .sig img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: top; }
.quote .sig b { display: block; color: var(--navy); font-size: 1.1rem; }
.quote .sig span { color: var(--muted); font-size: .95rem; }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 47px; top: 10px; bottom: 10px; width: 3px; background: linear-gradient(var(--orange), var(--navy)); border-radius: 2px; }
.timeline li { display: grid; grid-template-columns: 96px 1fr; gap: 1.3rem; padding: 0 0 2rem; position: relative; }
.timeline li:last-child { padding-bottom: 0; }
.timeline .yr {
  width: 96px; height: 52px; display: grid; place-items: center; background: var(--navy); color: #fff; position: relative; z-index: 1;
  font-family: var(--display); font-weight: 800; font-size: 1.45rem; font-style: italic;
  clip-path: polygon(12% 0, 100% 0, 88% 100%, 0 100%);
}
.timeline li:nth-child(3) .yr { background: var(--orange); color: var(--navy-900); }
.timeline h3 { margin: .45rem 0 .3rem; font-size: 1.4rem; }
.timeline p { margin: 0; color: var(--muted); }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 1.2rem; }
.person { background: #fff; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.person img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; object-position: top; background: var(--navy-100); }
.person div { padding: 1rem 1.2rem 1.2rem; }
.person b { display: block; font-size: 1.15rem; color: var(--navy); }
.person span { color: var(--orange-ink); font-weight: 700; font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; }

/* ---------------- Galerie & visionneuse ---------------- */
.gallery { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 160px; gap: .8rem; }
.gallery button { padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; position: relative; background: var(--navy-100); }
.gallery button:nth-child(1) { grid-column: span 3; grid-row: span 2; }
.gallery button:nth-child(2) { grid-column: span 3; grid-row: span 2; }
.gallery button:nth-child(n+3) { grid-column: span 2; grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery button:hover img { transform: scale(1.05); }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.6rem .9rem .7rem; color: #fff; font-size: .92rem; font-weight: 600; text-align: left; background: linear-gradient(transparent, rgba(19,27,51,.85)); }
@media (max-width: 720px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .gallery button:nth-child(n) { grid-column: span 1; grid-row: span 1; }
  .gallery button:nth-child(1) { grid-column: span 2; grid-row: span 2; }
}
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(10,14,28,.94); display: none; align-items: center; justify-content: center; padding: 3.5rem 4.5rem; }
.lightbox.open { display: flex; }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: .8rem; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 9rem); object-fit: contain; border-radius: 8px; }
.lightbox figcaption { color: #fff; text-align: center; }
.lb-btn { position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; display: grid; place-items: center; }
.lb-btn:hover { background: rgba(255,255,255,.25); }
.lb-btn svg { width: 24px; height: 24px; }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) { .lightbox { padding: 4rem .8rem; } .lb-prev, .lb-next { top: auto; bottom: 1rem; transform: none; } }

/* ---------------- Article ---------------- */
.article { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 920px) { .article { grid-template-columns: 1fr; } }
.prose { font-size: 1.12rem; max-width: 68ch; }
.prose strong { color: var(--navy); }
.programme { list-style: none; padding: 0; margin: 1.5rem 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: #fff; }
.programme li { display: grid; grid-template-columns: 150px 1fr; gap: 1rem; padding: .85rem 1.2rem; border-bottom: 1px solid var(--line); }
.programme li:last-child { border-bottom: 0; }
.programme .h { font-family: var(--display); font-weight: 800; color: var(--orange-ink); font-size: 1.15rem; }
@media (max-width: 520px) { .programme li { grid-template-columns: 1fr; gap: .1rem; } }
.poster { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); background: #fff; }
.poster button { padding: 0; border: 0; display: block; width: 100%; cursor: zoom-in; background: none; }
.event-box { display: grid; gap: .6rem; padding: 1.2rem 1.3rem; border-radius: var(--radius-lg); background: var(--navy); color: #fff; margin-bottom: 1.2rem; }
.event-box div { display: flex; gap: .6rem; align-items: center; }
.event-box svg { width: 20px; height: 20px; color: var(--orange); flex: none; }
.inline-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .8rem; margin-top: 1.5rem; }
.inline-gallery button { padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; aspect-ratio: 3 / 4; }
.inline-gallery img { width: 100%; height: 100%; object-fit: cover; }

/* ---------------- Contact ---------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 1.5rem; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }
.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.info-list li { display: flex; gap: 1rem; align-items: flex-start; }
.info-list .hex { width: 44px; height: 50px; }
.info-list .hex svg { width: 20px; height: 20px; }
.info-list b { display: block; color: var(--navy); }
.form { display: grid; gap: 1rem; }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 600; font-size: .98rem; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; padding: .75rem .9rem; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); min-height: 48px;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(243,154,26,.35); }
.field textarea { min-height: 140px; resize: vertical; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .row-2 { grid-template-columns: 1fr; } }
.socials { display: flex; flex-wrap: wrap; gap: .6rem; }
.social { display: inline-flex; align-items: center; gap: .5rem; padding: .55rem 1rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; }
.social:hover { border-color: var(--navy); color: var(--navy); }
.social svg { width: 18px; height: 18px; }

/* ---------------- Bandeau CTA & partenaires ---------------- */
.cta-band {
  position: relative; overflow: hidden; isolation: isolate; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: clamp(2rem, 5vw, 3.2rem); border-radius: var(--radius-lg); background: var(--orange); color: var(--navy-900);
}
.cta-band h2 { margin: 0 0 .3rem; color: var(--navy-900); }
.cta-band p { margin: 0; max-width: 56ch; font-size: 1.1rem; }
.cta-band .court-lines { opacity: .22; color: #fff; }
.partners { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.partner { flex: 1 1 200px; height: 110px; display: grid; place-items: center; padding: 1rem 1.5rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); transition: border-color .15s; }
.partner:hover { border-color: var(--orange); }
.partner img { max-height: 70px; width: auto; object-fit: contain; }

/* ---------------- Pied de page ---------------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,.78); padding: 4rem 0 2rem; margin-top: 0; }
.site-footer a { color: rgba(255,255,255,.88); text-decoration: none; }
.site-footer a:hover { color: var(--orange); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h3 { color: #fff; font-family: var(--body); font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer-brand { display: flex; gap: 1rem; align-items: center; margin-bottom: 1rem; }
.footer-brand img { width: 64px; }
.footer-brand b { font-family: var(--display); font-size: 1.6rem; color: #fff; text-transform: uppercase; font-style: italic; line-height: 1; }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .92rem; }

/* ---------------- Panneau d'affichage (accueil) ---------------- */
.billboard-wrap { padding: clamp(2rem, 4vw, 3rem) 0 0; }
.billboard {
  position: relative; overflow: hidden; isolation: isolate; background: var(--navy); color: #fff;
  border-radius: var(--radius-lg); padding: 1.3rem clamp(1.3rem, 3vw, 2rem) 1.5rem; box-shadow: var(--shadow);
}
.billboard .court-lines { opacity: .1; }
.bb-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .9rem; }
.bb-live {
  display: inline-flex; align-items: center; gap: .55rem; font-family: var(--display); font-weight: 800; font-size: 1rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--orange);
}
.bb-live::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 0 rgba(243,154,26,.6); animation: bb-pulse 2s infinite; }
@keyframes bb-pulse { 70% { box-shadow: 0 0 0 10px rgba(243,154,26,0); } 100% { box-shadow: 0 0 0 0 rgba(243,154,26,0); } }
.bb-ctrl { display: flex; gap: .4rem; }
.bb-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: transparent; color: #fff; display: grid; place-items: center; cursor: pointer; }
.bb-btn:hover { background: rgba(255,255,255,.14); }
.bb-btn svg { width: 18px; height: 18px; }
.bb-track { display: grid; gap: 1rem; }
.bb-slide { display: grid; grid-template-columns: 1fr; gap: 1.2rem; align-items: center; }
.bb-slide.has-img { grid-template-columns: 1fr minmax(0, 260px); }
@media (max-width: 640px) { .bb-slide.has-img { grid-template-columns: 1fr; } .bb-img { order: -1; } }
.bb-title { font-family: var(--display); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: clamp(1.6rem, 3.4vw, 2.4rem); line-height: 1.05; margin: 0 0 .4rem; color: #fff; }
.bb-sub { color: rgba(255,255,255,.85); font-size: 1.08rem; margin: 0 0 .9rem; max-width: 70ch; }
.bb-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.bb-dots { display: flex; gap: .45rem; margin-top: 1.1rem; }
.bb-dots button { width: 28px; height: 6px; padding: 0; border: 0; border-radius: 3px; background: rgba(255,255,255,.3); cursor: pointer; position: relative; }
.bb-dots button::after { content: ""; position: absolute; inset: -10px -2px; }
.bb-dots button[aria-current="true"] { background: var(--orange); }
.bb-edit { position: absolute; right: 1rem; bottom: .7rem; font-size: .85rem; color: rgba(255,255,255,.7); }
.bb-edit:hover { color: var(--orange); }
/* Avec JavaScript : un message à la fois, en fondu */
.billboard.is-js .bb-track { display: grid; gap: 0; }
.billboard.is-js .bb-slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .5s ease, transform .5s ease, visibility 0s linear .5s; }
.billboard.is-js .bb-slide.on { opacity: 1; visibility: visible; transform: none; transition: opacity .5s ease, transform .5s ease, visibility 0s; }
.billboard.is-js .bb-slide:not(.on) .btn { pointer-events: none; }
.billboard:not(.is-js) .bb-slide + .bb-slide { padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.15); }

/* ---------------- Tournois & animations ---------------- */
.head-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.event-card { display: flex; flex-direction: column; transition: transform .18s ease, box-shadow .18s ease; }
.event-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.event-card .thumb { display: block; position: relative; aspect-ratio: 4 / 3; background: var(--navy-100); overflow: hidden; }
.event-card .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .4s ease; }
.event-card:hover .thumb img { transform: scale(1.04); }
.thumb-ph { position: absolute; inset: 0; display: grid; place-items: center; background: var(--navy); color: var(--orange); overflow: hidden; isolation: isolate; }
.thumb-ph > svg:last-child { width: 64px; height: 64px; }
.date-chip {
  position: absolute; top: .8rem; left: .8rem; display: grid; place-items: center; min-width: 58px; padding: .45rem .5rem .4rem;
  background: var(--orange); color: var(--navy-900); border-radius: 12px; line-height: 1; font-family: var(--display); box-shadow: 0 4px 12px rgba(19,27,51,.25);
}
.date-chip b { font-size: 1.7rem; font-weight: 800; }
.date-chip span { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.event-card .card-body { display: flex; flex-direction: column; flex: 1; }
.event-card h3 { font-size: 1.5rem; margin: .45rem 0 .5rem; }
.event-card h3 a { color: inherit; text-decoration: none; }
.event-card h3 a:hover { color: var(--clay); }
.event-card p { color: var(--muted); font-size: 1rem; margin: 0 0 1rem; }
.event-facts { list-style: none; margin: 0 0 .9rem; padding: 0; display: grid; gap: .3rem; font-size: .97rem; }
.event-facts li { display: flex; gap: .5rem; align-items: flex-start; }
.event-facts svg { width: 17px; height: 17px; flex: none; margin-top: .2rem; color: var(--orange-ink); }
.event-actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: center; }
.event-card.is-past .thumb { aspect-ratio: 16 / 10; }
.event-card.is-past .date-chip { background: #fff; }
.event-card.is-past h3 { font-size: 1.3rem; }

.year-title { font-size: 2rem; font-style: italic; color: var(--orange-ink); margin: 2rem 0 1rem; display: flex; align-items: center; gap: 1rem; }
.year-title:first-of-type { margin-top: 0; }
.year-title::after { content: ""; flex: 1; height: 2px; background: var(--line); }
.editions { display: grid; gap: 1rem; }
.edition { display: grid; grid-template-columns: 150px 1fr; gap: 1.4rem; padding: 1.2rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.edition:not(:has(.edition-poster)) { grid-template-columns: 1fr; }
@media (max-width: 620px) { .edition { grid-template-columns: 1fr; } .edition-poster { max-width: 200px; } }
.edition-poster button { padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; display: block; width: 100%; box-shadow: var(--shadow); }
.edition-poster img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; }
.edition h4 { font-size: 1.45rem; margin: .4rem 0 .8rem; }
.edition h4 a { color: inherit; text-decoration: none; }
.edition h4 a:hover { color: var(--clay); }
.table-scroll { overflow-x: auto; }
.palmares { width: 100%; border-collapse: collapse; font-size: 1rem; background: #fff; border-radius: var(--radius); overflow: hidden; }
.palmares th, .palmares td { text-align: left; padding: .6rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.palmares thead th { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--navy-100); border-bottom: 0; }
.palmares tbody th { font-weight: 600; color: var(--muted); font-size: .95rem; }
.palmares td.win { font-weight: 700; color: var(--navy); }
.palmares td.win svg { width: 16px; height: 16px; color: var(--orange-ink); margin-right: .35rem; vertical-align: -2px; }
.palmares tr:last-child th, .palmares tr:last-child td { border-bottom: 0; }
.event-palmares { margin-top: 2rem; max-width: 760px; }
.event-box .btn { margin-top: .4rem; }

/* ---------------- Divers ---------------- */
.empty { padding: 2rem; text-align: center; color: var(--muted); background: #fff; border: 1px dashed var(--line); border-radius: var(--radius-lg); }
.legal h2 { font-size: 1.7rem; margin-top: 2.2rem; }
.legal { max-width: 75ch; }
.legal dl { display: grid; grid-template-columns: 220px 1fr; gap: .6rem 1.5rem; margin: 0 0 1.5rem; }
.legal dt { font-weight: 700; color: var(--navy); }
.legal dd { margin: 0; }
@media (max-width: 600px) { .legal dl { grid-template-columns: 1fr; } .legal dd { margin-bottom: .6rem; } }
.todo-mark { background: var(--orange-100); color: var(--orange-ink); padding: .05rem .4rem; border-radius: 5px; font-weight: 700; }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}
@media print {
  .site-header, .site-footer, .hero-actions, .filters { display: none; }
  body { background: #fff; }
}
