/* ============================================================
   PUEBLO GOL — Landing page
   Style: ligne claire franco-belge (Tintin / Blake & Mortimer)
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Palette plus blanche, légèrement réchauffée par une pointe de crème */
  --paper:        #faf8f3;       /* off-white légèrement crème */
  --paper-2:      #f1ede0;       /* papier kraft très clair */
  --paper-dark:   #e6dcc4;
  --ink:          #1f2a44;       /* bleu encre profond (textes principaux) */
  --ink-soft:     #4a5267;       /* gris bleu doux (corps de texte) */
  --line:         #b9ad94;       /* sépia délavé pour rares filets */
  --line-soft:    #d8cdb6;       /* filet très discret */
  --red:          #b8312a;       /* rouge brique tintin */
  --red-dark:     #8a221c;
  --red-soft:     #d27a6f;
  --ochre:        #d99a3c;
  --ochre-deep:   #b87822;
  --blue:         #2b5fa1;
  --blue-deep:    #1a3a6c;
  --green:        #2e6e3f;
  --pitch:        #5a8b4e;
  --pitch-dark:   #38663e;
  --pitch-line:   #f3ecd0;
  --led:          #ffd54a;
  --cream:        #ffffff;       /* cartes : blanc pur pour respirer */

  /* Ombres douces, plus neutres (gris-bleu) maintenant que le fond est blanc */
  --shadow-card:  0 1px 2px rgba(31, 42, 68, .04), 0 10px 24px rgba(31, 42, 68, .08);
  --shadow-soft:  0 1px 2px rgba(31, 42, 68, .03), 0 4px 12px rgba(31, 42, 68, .06);
  --shadow-press: 0 6px 18px rgba(31, 42, 68, .12);
  --radius:       4px;

  /* Système typo unifié : Anton (titres/CTA, condensé bold lisible) + Inter (corps) */
  --font-display: "Anton", "Impact", "Helvetica Neue Condensed", system-ui, sans-serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  /* Alias legacy pour compat — pointent tous vers les deux familles ci-dessus */
  --font-title:   var(--font-display);
  --font-ui:      var(--font-body);
  --font-script:  var(--font-body);
  --font-emph:    var(--font-body);
}

/* ---------- Reset ---------- */
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16.5px;
  line-height: 1.55;
  color: var(--ink);
  letter-spacing: -0.005em;
  background: var(--paper);
  /* Texture papier très discrète, presque imperceptible */
  background-image:
    radial-gradient(rgba(31, 42, 68, .020) 1px, transparent 1.6px),
    radial-gradient(rgba(184, 49, 42, .015) 1px, transparent 1.6px);
  background-size: 26px 26px, 34px 34px;
  background-position: 0 0, 13px 15px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; cursor: pointer; }

/* Décalage de scroll pour compenser la barre sticky */
section[id] { scroll-margin-top: calc(var(--topbar-h, 63px) + 1rem); }
/* Sur la page match, la TOC sticky empile sa hauteur */
body.match-page section[id] { scroll-margin-top: calc(var(--topbar-h, 63px) + var(--toc-h, 42px) + 1rem); }

/* Tous les titres utilisent la police d'affichage par défaut */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: .015em;
  line-height: 1.05;
}
h1 em, h2 em, h3 em, h4 em { font-style: normal; color: var(--red); }

/* ---------- Layout ---------- */
.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

.section-head {
  text-align: center;
  margin: 0 auto 3rem;
  max-width: 760px;
}
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  line-height: 1.05;
  color: var(--ink);
  margin: .4rem 0 1rem;
  letter-spacing: .015em;
}
.section-head h2 em {
  font-style: normal;
  color: var(--red);
}
.section-intro {
  font-size: 1.08rem;
  color: var(--ink-soft);
}
.kicker {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: .72rem;
  color: var(--red);
  padding: .3rem .7rem;
  border: 1px solid currentColor;
  background: transparent;
  border-radius: 3px;
  transform: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .85rem 1.4rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.05rem;
  letter-spacing: .04em;
  border: 0;
  border-radius: 6px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s;
  text-decoration: none;
  cursor: pointer;
  line-height: 1;
}
.btn-primary {
  background: var(--red);
  color: var(--cream);
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(91, 74, 60, .14), 0 12px 18px rgba(20, 34, 58, .25);
  background: var(--red-dark);
  text-decoration: none;
}
.btn-primary:active { transform: translateY(1px); box-shadow: 0 1px 4px rgba(91, 74, 60, .14); }
.btn-ghost {
  background: var(--cream);
  color: var(--ink);
  box-shadow: var(--shadow-soft);
}
.btn-ghost:hover {
  background: var(--paper-2);
  transform: translateY(-2px);
  text-decoration: none;
}
.btn-block { width: 100%; justify-content: center; }

/* ============================================================
   TOPBAR
   ============================================================ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .55rem clamp(1rem, 4vw, 2rem);
  background: rgba(250, 248, 243, .85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(31, 42, 68, .06);
}
.brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  color: var(--ink);
  text-decoration: none;
}
.brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: var(--cream);
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.brand-text strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.35rem;
  letter-spacing: .04em;
  color: var(--ink);
}
.brand-text em {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: .65rem;
  letter-spacing: .22em;
  color: var(--red);
  text-transform: uppercase;
  font-style: normal;
  margin-top: 4px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}
.nav a {
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  position: relative;
  line-height: 1;
  text-decoration: none;
}
.nav a:hover { color: var(--red); text-decoration: none; }
/* Liens classiques : padding vertical seul + souligné rouge */
.nav a:not(.nav-cta) {
  padding: .5rem 0;
}
.nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s;
}
.nav a:not(.nav-cta):hover::after,
.nav a:not(.nav-cta).nav-current::after { transform: scaleX(1); }
/* CTA : spécificité égale à .nav a pour gagner sur le padding */
.nav a.nav-cta {
  display: inline-flex;
  align-items: center;
  background: var(--ink);
  color: var(--cream);
  padding: .8rem 1.4rem;
  border-radius: 6px;
  font-size: .95rem;
  box-shadow: 0 1px 2px rgba(31, 42, 68, .12);
  transition: background .15s, transform .15s, box-shadow .15s;
}
.nav a.nav-cta:hover {
  background: var(--red);
  color: var(--cream);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(184, 49, 42, .28);
}
.burger {
  display: none;
  background: transparent;
  border: 0;
  border-radius: var(--radius);
  padding: .55rem .6rem;
  flex-direction: column;
  gap: 4px;
}
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(2.5rem, 5vw, 4.5rem);
  overflow: hidden;
  min-height: calc(100vh - 110px);
  display: flex;
  align-items: center;
}
.halftone {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 18%, rgba(184, 49, 42, .07), transparent 28%),
    radial-gradient(circle at 88% 30%, rgba(43, 95, 161, .06), transparent 32%),
    radial-gradient(circle at 30% 90%, rgba(217, 154, 60, .08), transparent 35%);
  z-index: 0;
}
/* Le hero n'est plus encadré : il occupe toute la section, sans punaises ni boîte */
.hero-paper {
  position: relative;
  z-index: 1;
  width: min(1320px, 94vw);
  margin: 0 auto;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  align-items: center;
}
.hero-text h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.02;
  letter-spacing: .015em;
  color: var(--ink);
  margin: 1rem 0 1.2rem;
}

/* Hauteurs des barres sticky — partagées par les éléments empilés */
:root {
  --topbar-h: 63px;
  --toc-h: 42px;
}
.hero-text h1 em {
  font-style: normal;
  color: var(--red);
  position: relative;
}
.hero-text h1 em::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 10%;
  height: 12%;
  background: var(--ochre);
  opacity: .35;
  z-index: -1;
  border-radius: 2px;
}
.lead {
  font-size: 1.08rem;
  color: var(--ink-soft);
  margin-bottom: 1.8rem;
  max-width: 56ch;
}
.lead em { color: var(--red); font-style: italic; }
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-bottom: 1.6rem;
}
.hero-meta {
  display: flex;
  gap: 1.6rem;
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1.5px dashed var(--ink);
  padding-top: 1rem;
}
.hero-meta li {
  font-family: var(--font-script);
  font-size: .85rem;
  color: var(--ink-soft);
  letter-spacing: .04em;
}
.hero-meta li span {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--red);
  letter-spacing: .05em;
  line-height: 1;
}

/* Hero patchwork — collage statique de planches, esprit carnet de voyage */
.hero-patchwork {
  position: relative;
  width: 100%;
  height: clamp(440px, 70vh, 680px);
}
.plate {
  position: absolute;
  margin: 0;
  background: var(--cream);
  border-radius: 6px;
  overflow: hidden;
  box-shadow:
    0 1px 2px rgba(31, 42, 68, .06),
    0 14px 28px rgba(31, 42, 68, .16);
  transition: transform .35s cubic-bezier(.2, .7, .2, 1),
              box-shadow .35s ease;
  will-change: transform;
}
.plate img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.plate:hover {
  transform: rotate(0) translateY(-6px) scale(1.02) !important;
  box-shadow:
    0 2px 4px rgba(31, 42, 68, .08),
    0 22px 40px rgba(31, 42, 68, .22);
  z-index: 20 !important;
}
/* Composition du patchwork (cinq planches, deux paysages + trois portraits) */
.plate-1 {
  top: 0; left: 4%;
  width: 56%; aspect-ratio: 5/3;
  transform: rotate(-3deg);
  z-index: 2;
}
.plate-2 {
  top: 8%; right: 0;
  width: 38%; aspect-ratio: 3/4;
  transform: rotate(4deg);
  z-index: 3;
}
.plate-3 {
  top: 38%; left: 0;
  width: 34%; aspect-ratio: 3/4;
  transform: rotate(-5deg);
  z-index: 4;
}
.plate-4 {
  bottom: 0; left: 32%;
  width: 36%; aspect-ratio: 3/4;
  transform: rotate(2deg);
  z-index: 5;
}
.plate-5 {
  bottom: 4%; right: 2%;
  width: 32%; aspect-ratio: 3/4;
  transform: rotate(-2deg);
  z-index: 3;
}

/* ============================================================
   CONCEPT
   ============================================================ */
.concept {
  padding: clamp(3rem, 7vw, 6rem) 0;
  position: relative;
}
.concept::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent, rgba(217, 154, 60, .08), transparent);
  pointer-events: none;
}
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem;
  position: relative;
}
.pillar {
  background: var(--cream);
  border: 0;
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem 1.4rem;
  box-shadow: var(--shadow-card);
  position: relative;
  transition: transform .2s;
}
.pillar:nth-child(odd) { transform: rotate(-.6deg); }
.pillar:nth-child(even) { transform: rotate(.6deg); }
.pillar:hover { transform: rotate(0) translateY(-4px); }
.pillar-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--red);
  line-height: 1;
  margin-bottom: .5rem;
  letter-spacing: .04em;
}
.pillar h3 {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--ink);
  margin: 0 0 .5rem;
}
.pillar p {
  font-size: .98rem;
  color: var(--ink-soft);
  margin: 0;
}

/* ============================================================
   GALLERY
   ============================================================ */
.gallery {
  padding: clamp(3rem, 7vw, 6rem) 0;
  background:
    linear-gradient(to bottom, transparent, rgba(20, 34, 58, .04) 40%, transparent),
    var(--paper);
}
.masonry {
  column-count: 3;
  column-gap: 1.2rem;
}
@media (max-width: 900px) { .masonry { column-count: 2; } }
@media (max-width: 560px) { .masonry { column-count: 1; } }

.card {
  display: block;
  width: 100%;
  margin: 0 0 1.2rem;
  padding: 8px 8px 0;
  background: var(--cream);
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  break-inside: avoid;
  position: relative;
  transition: transform .25s ease, box-shadow .25s ease;
  text-align: left;
  cursor: zoom-in;
}
.card:nth-child(3n) { transform: rotate(-.7deg); }
.card:nth-child(3n+1) { transform: rotate(.5deg); }
.card:nth-child(3n+2) { transform: rotate(-.3deg); }
.card:hover {
  transform: rotate(0) translateY(-5px);
  box-shadow: var(--shadow-card);
  z-index: 5;
}
.card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2px;
}
.card-tag {
  display: block;
  font-family: var(--font-script);
  font-size: .78rem;
  letter-spacing: .03em;
  color: var(--ink-soft);
  padding: .6rem .2rem;
  border-top: 1.5px dashed rgba(20, 34, 58, .25);
  margin-top: 6px;
}

.gallery-note {
  text-align: center;
  margin-top: 2.5rem;
  font-family: var(--font-script);
  font-size: .95rem;
  color: var(--ink-soft);
}
.gallery-note span:first-child {
  display: block;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--red);
  margin-bottom: .25rem;
}

/* ============================================================
   MESSAGE
   ============================================================ */
.message {
  padding: clamp(3rem, 7vw, 6rem) 0;
  background:
    linear-gradient(180deg, var(--paper) 0, var(--paper-2) 100%);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.message-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.message-paper {
  background: var(--cream);
  border: 0;
  padding: 2.2rem 2rem;
  box-shadow: var(--shadow-card);
  transform: rotate(-.7deg);
  position: relative;
}
.message-paper::before {
  content: "";
  position: absolute;
  top: -16px; left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 26px;
  background: rgba(217, 154, 60, .55);
  border: 1.5px solid var(--ochre-deep);
  border-radius: 2px;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
}
.message-paper h2 {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  line-height: 1.2;
  color: var(--ink);
  margin: .8rem 0 1.2rem;
}
.message-paper h2 em {
  color: var(--red);
  font-style: normal;
}
.message-paper p {
  font-size: 1.04rem;
  color: var(--ink-soft);
}
.signed {
  font-family: var(--font-script);
  color: var(--red);
  letter-spacing: .04em;
  margin-top: 1.5rem;
}

.speech {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  padding: 1rem;
}
.bubble {
  background: var(--cream);
  border: 0;
  border-radius: 8px;
  padding: 1rem 1.2rem;
  position: relative;
  max-width: 88%;
  box-shadow: var(--shadow-soft);
  font-size: .98rem;
}
.bubble p {
  margin: 0 0 .35rem;
  font-style: italic;
  color: var(--ink);
}
.bubble-from {
  display: block;
  font-family: var(--font-script);
  font-size: .82rem;
  color: var(--red);
  letter-spacing: .04em;
}
.bubble::after {
  content: "";
  position: absolute;
  width: 20px; height: 20px;
  background: var(--cream);
  border-right: 0;
  border-bottom: 0;
}
.bubble-1 { align-self: flex-start; transform: rotate(-1deg); }
.bubble-1::after { left: 36px; bottom: -11px; transform: rotate(45deg); }
.bubble-2 { align-self: flex-end; transform: rotate(1.2deg); }
.bubble-2::after { right: 42px; bottom: -11px; transform: rotate(45deg); }
.bubble-3 { align-self: flex-start; margin-left: 8%; transform: rotate(-.6deg); }
.bubble-3::after { left: 50px; bottom: -11px; transform: rotate(45deg); }

/* ============================================================
   PRESSE
   ============================================================ */
.presse {
  padding: clamp(3rem, 7vw, 6rem) 0;
  background: var(--paper);
  position: relative;
}
.presse-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
}
.presse-block {
  background: var(--cream);
  border: 0;
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  box-shadow: var(--shadow-card);
}
.presse-block h3 {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--blue-deep);
  margin: 0 0 1rem;
}
.checks { list-style: none; padding: 0; margin: 0; }
.checks li {
  position: relative;
  padding: .4rem 0 .4rem 1.7rem;
  font-size: 1rem;
  color: var(--ink);
  border-bottom: 1.5px dashed rgba(20, 34, 58, .18);
}
.checks li:last-child { border-bottom: 0; }
.checks li::before {
  content: "⚽";
  position: absolute;
  left: 0; top: .35rem;
  font-size: 1rem;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  padding: clamp(3rem, 7vw, 6rem) 0;
  background:
    linear-gradient(180deg, var(--paper-2) 0, var(--paper) 100%);
}
.contact-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 3rem;
  align-items: start;
}
.contact-intro h2 {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  line-height: 1.15;
  margin: .5rem 0 1rem;
  color: var(--ink);
}
.contact-intro p { color: var(--ink-soft); margin-bottom: 1.5rem; }
.contact-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .9rem;
}
.contact-links li {
  display: flex;
  align-items: center;
  gap: .8rem;
  font-family: var(--font-script);
  font-size: 1rem;
  color: var(--ink);
}
.contact-links svg { color: var(--red); flex-shrink: 0; }
.contact-links a { color: var(--ink); }
.contact-links a:hover { color: var(--red); }

.contact-form {
  background: var(--cream);
  border: 0;
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  font-family: var(--font-script);
  font-size: .82rem;
  color: var(--ink-soft);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: .75rem .8rem;
  border: 0;
  border-radius: 3px;
  background: var(--paper);
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 0;
  border-color: var(--red);
  background: var(--cream);
  box-shadow: 0 0 0 4px rgba(184, 49, 42, .15);
}
.contact-form textarea { resize: vertical; min-height: 120px; }

/* Erreur par champ */
.contact-form .field-error {
  display: block;
  min-height: 1.05em;
  margin: .3rem 0 0;
  font-family: var(--font-ui);
  font-size: .78rem;
  letter-spacing: .01em;
  color: var(--red-dark);
  font-weight: 500;
  text-transform: none;
  opacity: 0;
  transform: translateY(-2px);
  transition: opacity .15s, transform .15s;
}
.contact-form .field-error:not(:empty) {
  opacity: 1;
  transform: translateY(0);
}
.contact-form label.has-error input,
.contact-form label.has-error select,
.contact-form label.has-error textarea {
  border-color: var(--red);
  background: rgba(184, 49, 42, .04);
  box-shadow: 0 0 0 4px rgba(184, 49, 42, .08);
}
.contact-form label.has-error > span { color: var(--red-dark); }

.form-feedback {
  margin: .25rem 0 0;
  font-family: var(--font-script);
  font-size: .9rem;
  min-height: 1.3em;
}
.form-feedback.success { color: var(--green); }
.form-feedback.error { color: var(--red); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--ink);
  color: var(--cream);
  padding: 4rem 0 0;
  border-top: 1px solid rgba(251, 243, 223, .08);
}
.footer a { color: var(--cream); }
.footer a:hover { color: var(--ochre); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}
.footer-brand img {
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 0;
  background: var(--cream);
}
.footer-brand strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.7rem;
  letter-spacing: .045em;
  color: var(--cream);
  line-height: 1;
  margin-bottom: .35rem;
}
.footer-brand p {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: .92rem;
  line-height: 1.55;
  margin: 0;
  color: rgba(251, 243, 223, .7);
  max-width: 32ch;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}
.footer-cols h4 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.2rem;
  color: var(--ochre);
  letter-spacing: .07em;
  margin: 0 0 1rem;
}
.footer-cols a {
  display: block;
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 400;
  padding: .35rem 0;
  color: rgba(251, 243, 223, .8);
  transition: color .15s, transform .15s;
}
.footer-cols a:hover { color: var(--ochre); transform: translateX(2px); text-decoration: none; }
.footer-quote {
  font-style: normal;
  font-size: .92rem;
  color: rgba(251, 243, 223, .7);
  line-height: 1.5;
  margin: 0;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  border-top: 1px solid rgba(251, 243, 223, .1);
  padding: 1.4rem clamp(1rem, 4vw, 2rem);
  font-family: var(--font-body);
  font-size: .8rem;
  color: rgba(251, 243, 223, .55);
  letter-spacing: 0;
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 34, 58, .92);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  animation: fade .2s ease;
}
.lightbox[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.lightbox figure {
  margin: 0;
  max-width: 92vw;
  max-height: 88vh;
  background: var(--cream);
  border: 0;
  padding: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
  display: flex;
  flex-direction: column;
}
.lightbox img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  background: var(--cream);
}
.lightbox figcaption {
  font-family: var(--font-script);
  font-size: .92rem;
  color: var(--ink);
  padding: .6rem .4rem .2rem;
  text-align: center;
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: var(--cream);
  color: var(--ink);
  border: 0;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 1.3rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft);
  transition: transform .15s, background .15s;
}
.lightbox-close { top: 22px; right: 22px; }
.lightbox-prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 22px; top: 50%; transform: translateY(-50%); }
.lightbox-close:hover { background: var(--red); color: var(--cream); transform: scale(1.05); }
.lightbox-prev:hover,
.lightbox-next:hover { background: var(--red); color: var(--cream); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .nav { display: none; }
  .burger { display: flex; }
  .nav.open {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: var(--cream);
    border-bottom: 0;
    padding: .8rem 1.25rem 1.2rem;
    gap: .25rem;
    box-shadow: 0 8px 18px rgba(31, 42, 68, .10);
  }
  .nav.open a {
    width: 100%;
    padding: .85rem 1rem;
    border-radius: 6px;
    transition: background .15s;
  }
  .nav.open a:hover { background: rgba(31, 42, 68, .04); }
  .nav.open .nav-cta {
    margin-top: .5rem;
    padding: .9rem 1rem;
    justify-content: center;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-patchwork {
    height: clamp(360px, 60vh, 520px);
    margin-top: 1rem;
  }
  .message-grid,
  .presse-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .form-row { grid-template-columns: 1fr; }
  .speech { padding: 0; }
}
@media (max-width: 560px) {
  .hero-patchwork { height: clamp(320px, 55vh, 440px); }
  .plate-5 { display: none; }
  .hero-meta { gap: 1rem; flex-wrap: wrap; }
  .hero-meta li span { font-size: 1.6rem; }
  .brand img { width: 44px; height: 44px; }
  .brand-text strong { font-size: 1.2rem; }
  .footer-cols { grid-template-columns: 1fr; }
  .countdown { grid-template-columns: repeat(4, 1fr); gap: .35rem; }
  .countdown-cell strong { font-size: 1.3rem; }
  .scoreboard { padding: 1rem .8rem; }
  .scoreboard-name { font-size: 1.4rem; }
  .scoreboard-flag { font-size: 1.8rem; }
  .scoreboard-vs { font-size: 1.3rem; padding: .15rem .5rem; }
  .scoreboard::before, .scoreboard::after { font-size: .6rem; }
  .match-toc { top: var(--topbar-h); }
  .ticker-track { gap: 1.4rem; }
  .corner-stamp { width: 64px; height: 64px; top: -10px; right: -10px; }
  .corner-stamp strong { font-size: 1.2rem; }
  .corner-stamp span { font-size: .55rem; }
}

/* ============================================================
   FOOTBALL FLAVOR — éléments transverses
   ============================================================ */

/* Bande "ticker" foot façon multiplex */
.ticker {
  background: var(--ink);
  color: var(--cream);
  border-top: 1px solid var(--red);
  border-bottom: 1px solid var(--red);
  overflow: hidden;
  position: relative;
  font-family: var(--font-script);
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: .82rem;
}
.ticker::before,
.ticker::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 60px;
  pointer-events: none;
  z-index: 2;
}
.ticker::before { left: 0; background: linear-gradient(to right, var(--ink), transparent); }
.ticker::after  { right: 0; background: linear-gradient(to left, var(--ink), transparent); }
.ticker-track {
  display: flex;
  gap: 2.2rem;
  padding: .65rem 0;
  width: max-content;
  animation: ticker-roll 38s linear infinite;
}
.ticker-track span {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
}
.ticker-track .dot {
  width: 6px; height: 6px;
  background: var(--led);
  border-radius: 50%;
  display: inline-block;
}
@keyframes ticker-roll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Badge "match number" — style billet */
.match-badge {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  background: var(--led);
  color: var(--ink);
  font-family: var(--font-display);
  letter-spacing: .08em;
  font-size: 1.1rem;
  padding: .35rem .9rem .25rem;
  border: 0;
  border-radius: 3px;
  box-shadow: 0 3px 12px rgba(91, 74, 60, .14);
  transform: rotate(-2deg);
  position: relative;
}
.match-badge::before {
  content: "⚽";
  font-size: 1rem;
}

/* Scoreboard façon tableau d'affichage */
.scoreboard {
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255,255,255,.04) 0 2px,
      transparent 2px 4px
    ),
    radial-gradient(ellipse at top, rgba(255, 213, 74, .15), transparent 70%),
    var(--ink);
  color: var(--cream);
  border: 0;
  border-radius: 6px;
  box-shadow:
    inset 0 0 0 4px var(--ink),
    inset 0 0 0 5px rgba(255, 213, 74, .35),
    0 6px 24px rgba(91, 74, 60, .14),
    0 18px 36px rgba(0,0,0,.35);
  padding: 1.6rem 1.4rem;
  position: relative;
}
.scoreboard::before {
  content: "● LIVE";
  position: absolute;
  top: 12px; left: 16px;
  font-family: var(--font-script);
  font-size: .7rem;
  letter-spacing: .14em;
  color: var(--led);
}
.scoreboard::after {
  content: "PUEBLO GOL";
  position: absolute;
  top: 12px; right: 16px;
  font-family: var(--font-display);
  font-size: .85rem;
  letter-spacing: .1em;
  color: rgba(255, 213, 74, .8);
}
.scoreboard-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: center;
  margin-top: 1.4rem;
}
.scoreboard-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .35rem;
}
.scoreboard-team.left  { text-align: right; align-items: flex-end; }
.scoreboard-team.right { text-align: left;  align-items: flex-start; }
.scoreboard-flag {
  font-size: 2.4rem;
  line-height: 1;
  filter: drop-shadow(0 2px 0 rgba(0,0,0,.4));
}
.scoreboard-name {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  letter-spacing: .04em;
  color: var(--led);
  text-shadow: 0 0 12px rgba(255, 213, 74, .35);
  line-height: 1;
}
.scoreboard-sub {
  font-family: var(--font-script);
  font-size: .78rem;
  letter-spacing: .12em;
  color: rgba(251, 243, 223, .7);
}
.scoreboard-vs {
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: .08em;
  color: var(--red);
  background: var(--cream);
  border: 2.5px solid var(--led);
  padding: .25rem .7rem .15rem;
  border-radius: 4px;
  transform: rotate(-3deg);
  box-shadow: 0 3px 0 var(--led-dark, #b58f24);
}
.scoreboard-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem 2rem;
  margin-top: 1.4rem;
  padding-top: 1rem;
  border-top: 1.5px dashed rgba(255, 213, 74, .35);
  font-family: var(--font-script);
  font-size: .82rem;
  letter-spacing: .08em;
  color: rgba(251, 243, 223, .85);
}
.scoreboard-meta strong {
  color: var(--led);
  font-weight: 400;
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: .06em;
  margin-bottom: 1px;
}

/* Bordure "lignes de stade" */
.pitch-stripe {
  height: 14px;
  background:
    linear-gradient(90deg,
      var(--pitch) 0 12.5%,
      var(--pitch-dark) 12.5% 25%,
      var(--pitch) 25% 37.5%,
      var(--pitch-dark) 37.5% 50%,
      var(--pitch) 50% 62.5%,
      var(--pitch-dark) 62.5% 75%,
      var(--pitch) 75% 87.5%,
      var(--pitch-dark) 87.5% 100%
    );
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.pitch-stripe::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 10px; height: 10px;
  background: var(--pitch-line);
  border-radius: 50%;
}

/* Next-match teaser */
.next-match {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  background:
    radial-gradient(ellipse at top, rgba(184, 49, 42, .15), transparent 60%),
    var(--paper);
}
.next-match .container {
  display: grid;
  grid-template-columns: 1.05fr 1.4fr;
  gap: clamp(1.6rem, 4vw, 3rem);
  align-items: center;
}
.next-match-text .kicker { background: rgba(255, 213, 74, .25); border-color: var(--ochre-deep); color: var(--ink); }
.next-match-text h2 {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  line-height: 1.1;
  margin: .8rem 0 1rem;
}
.next-match-text h2 em { color: var(--red); font-style: normal; }
.next-match-text p { color: var(--ink-soft); margin-bottom: 1.4rem; }
.next-match-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
}
.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .5rem;
  margin: 1.2rem 0 1.6rem;
  max-width: 380px;
}
.countdown-cell {
  background: var(--ink);
  color: var(--led);
  border: 0;
  border-radius: 4px;
  text-align: center;
  padding: .55rem .2rem .35rem;
  font-family: var(--font-display);
  letter-spacing: .04em;
  box-shadow: 0 3px 12px rgba(91, 74, 60, .14);
}
.countdown-cell strong {
  display: block;
  font-size: 1.7rem;
  line-height: 1;
}
.countdown-cell span {
  display: block;
  font-family: var(--font-script);
  font-size: .65rem;
  letter-spacing: .12em;
  color: rgba(251, 243, 223, .75);
  margin-top: 4px;
  text-transform: uppercase;
}

/* ============================================================
   MATCH PAGE — Layout dédié
   ============================================================ */
.match-hero {
  position: relative;
  padding: clamp(2rem, 5vw, 4rem) 0;
  background:
    linear-gradient(180deg, rgba(20, 34, 58, .12), transparent 40%),
    var(--paper);
  overflow: hidden;
}
.match-hero::before {
  /* arrière-plan : lignes de stade */
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 110%, rgba(58, 125, 68, .25), transparent 55%),
    repeating-linear-gradient(180deg,
      transparent 0 60px,
      rgba(20, 34, 58, .035) 60px 61px);
  pointer-events: none;
}
.match-hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: center;
}
.match-cover {
  background: var(--cream);
  border: 0;
  padding: 10px;
  box-shadow: var(--shadow-card);
  transform: rotate(-1.2deg);
  position: relative;
}
.match-cover img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2px;
}
.match-cover .corner-stamp {
  position: absolute;
  top: -16px; right: -16px;
  width: 84px; height: 84px;
  border-radius: 50%;
  background: var(--red);
  color: var(--cream);
  border: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-family: var(--font-display);
  letter-spacing: .06em;
  transform: rotate(8deg);
  box-shadow: 0 4px 16px rgba(91, 74, 60, .14);
  line-height: 1;
}
.corner-stamp strong { font-size: 1.6rem; }
.corner-stamp span { font-size: .65rem; letter-spacing: .12em; margin-top: 3px; }

.match-info { display: flex; flex-direction: column; gap: 1rem; }
.match-info h1 {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.1;
  margin: .4rem 0;
  color: var(--ink);
}
.match-info h1 em { color: var(--red); font-style: normal; }
.match-info p.lead {
  color: var(--ink-soft);
  margin: 0;
}
.match-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: .5rem;
}

/* Section ancrée (tabs anchorables) */
.match-toc {
  position: sticky;
  top: var(--topbar-h);
  z-index: 10;
  background: var(--ink);
  color: var(--cream);
  padding: .6rem clamp(.8rem, 3vw, 1.6rem);
  border-top: 1px solid var(--red);
  border-bottom: 1px solid var(--red);
  overflow-x: auto;
  white-space: nowrap;
}
.match-toc-inner {
  display: inline-flex;
  gap: 1.6rem;
  font-family: var(--font-script);
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.match-toc a {
  color: var(--cream);
  padding: .15rem 0;
  position: relative;
}
.match-toc a:hover { color: var(--led); text-decoration: none; }
.match-toc a.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--led);
}

.match-section {
  padding: clamp(2.5rem, 6vw, 5rem) 0;
}
.match-section + .match-section { border-top: 1px dashed rgba(20, 34, 58, .18); }
.match-section.alt { background: var(--paper-2); }
.match-section.dark {
  background: var(--ink);
  color: var(--cream);
}
.match-section.dark h2 { color: var(--led); }
.match-section.dark .kicker {
  background: transparent;
  color: var(--led);
  border-color: var(--led);
}
.match-section.dark p { color: rgba(251, 243, 223, .85); }

/* Personnage du match */
.character-card {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1.4rem, 3vw, 2.5rem);
  align-items: center;
  background: var(--cream);
  border: 0;
  border-radius: 4px;
  padding: clamp(1rem, 2.5vw, 2rem);
  box-shadow: var(--shadow-card);
  position: relative;
}
.character-card::before {
  content: "Fiche personnage";
  position: absolute;
  top: -14px; left: 24px;
  background: var(--red);
  color: var(--cream);
  font-family: var(--font-script);
  font-size: .75rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: .25rem .7rem;
  border: 0;
}
.character-card img {
  width: 100%;
  height: auto;
  border: 0;
  box-shadow: var(--shadow-soft);
}
.character-info h3 {
  font-family: var(--font-title);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  margin: 0 0 .35rem;
  color: var(--ink);
}
.character-info .role {
  font-family: var(--font-script);
  letter-spacing: .08em;
  color: var(--red);
  font-size: .9rem;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: inline-block;
  border-bottom: 2px solid var(--red);
  padding-bottom: 3px;
}
.character-info .traits {
  list-style: none; padding: 0; margin: 1rem 0 0;
  display: grid; gap: .4rem;
}
.character-info .traits li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--ink-soft);
  font-size: .98rem;
}
.character-info .traits li::before {
  content: "⚽";
  position: absolute; left: 0; top: 0;
}

/* BD Carousel — vignettes verticales à gauche, planche à la hauteur d'écran */
.bd-carousel {
  position: relative;
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 1.2rem;
  max-width: 1280px;
  margin: 0 auto;
  align-items: stretch;
}
.bd-frame {
  position: relative;
  min-width: 0;
}
.bd-stage {
  position: relative;
  background: transparent;
  border: 0;
  border-radius: 6px;
  padding: 0;
  /* Hauteur calibrée pour remplir l'écran (sticky topbar+ticker+toc ~150px) */
  height: clamp(480px, calc(100vh - 180px), 880px);
  overflow: hidden;
}
.bd-slide {
  position: absolute;
  inset: 0 0 44px;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  opacity: 0;
  transform: translateX(40px) scale(.985);
  transition: opacity .35s ease, transform .35s ease;
  pointer-events: none;
}
.bd-slide.is-active {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}
.bd-slide img,
.bd-slide video {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border: 0;
  background: transparent;
  box-shadow: 0 12px 30px rgba(91, 74, 60, .18);
  border-radius: 4px;
}
.bd-slide-video video {
  background: #000;
}
.bd-slide-video figcaption strong { color: var(--ochre-deep); }
.bd-slide figcaption {
  position: absolute;
  bottom: -38px;
  left: 0; right: 0;
  font-family: var(--font-script);
  font-size: .82rem;
  letter-spacing: .04em;
  color: var(--ink-soft);
  text-align: center;
}
.bd-slide figcaption strong {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--red);
  letter-spacing: .06em;
  margin-right: .35rem;
}

.bd-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--ink);
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 12px rgba(91, 74, 60, .14), 0 8px 18px rgba(0,0,0,.16);
  transition: transform .15s, background .15s;
  z-index: 3;
}
.bd-nav:hover { background: var(--red); color: var(--cream); }
.bd-nav:active { transform: translateY(-50%) scale(.96); }
.bd-prev { left: 8px; }
.bd-next { right: 8px; }

.bd-counter {
  position: absolute;
  top: 14px; right: 18px;
  background: var(--ink);
  color: var(--led);
  font-family: var(--font-display);
  font-size: .9rem;
  letter-spacing: .08em;
  padding: .25rem .65rem .15rem;
  border: 0;
  border-radius: 3px;
  box-shadow: 0 2px 8px rgba(91, 74, 60, .14);
  z-index: 4;
}

/* Bande de vignettes verticale, à gauche du stage */
.bd-thumbs {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin: 0;
  max-height: clamp(480px, calc(100vh - 180px), 880px);
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--line-soft) transparent;
  grid-column: 1;
  grid-row: 1;
}
.bd-frame {
  grid-column: 2;
  grid-row: 1;
}
.bd-thumbs::-webkit-scrollbar { width: 6px; }
.bd-thumbs::-webkit-scrollbar-track { background: transparent; }
.bd-thumbs::-webkit-scrollbar-thumb { background: var(--line-soft); border-radius: 3px; }
.bd-thumb {
  width: 100%;
  aspect-ratio: 4/5;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: var(--cream);
  cursor: pointer;
  overflow: hidden;
  opacity: .55;
  filter: saturate(.85);
  transition: opacity .2s, transform .15s, box-shadow .2s, filter .2s;
  box-shadow: 0 2px 8px rgba(91, 74, 60, .14);
  flex-shrink: 0;
}
.bd-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.bd-thumb:hover {
  opacity: 1;
  filter: saturate(1);
  transform: translateY(-2px);
}
.bd-thumb.is-active {
  opacity: 1;
  filter: saturate(1);
  box-shadow: 0 0 0 2px var(--red), 0 6px 14px rgba(91, 74, 60, .18);
  transform: translateX(2px);
}
.bd-thumb-video { position: relative; }
.bd-thumb-video .play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 34, 58, .45);
  color: var(--cream);
  font-size: 1.4rem;
  text-shadow: 0 1px 2px rgba(0,0,0,.4);
  pointer-events: none;
}

/* Player video / audio façon "VHS" */
.media-frame {
  background: var(--ink);
  border: 0;
  border-radius: 4px;
  padding: 10px;
  box-shadow: var(--shadow-card);
  position: relative;
}
.media-frame::before {
  content: "REC ●";
  position: absolute;
  top: -14px; left: 18px;
  background: var(--red);
  color: var(--cream);
  font-family: var(--font-script);
  font-size: .7rem;
  letter-spacing: .14em;
  padding: .2rem .55rem;
  border: 0;
}
.media-frame video,
.media-frame audio {
  width: 100%;
  display: block;
  border-radius: 2px;
  background: #000;
}
.media-caption {
  margin-top: .8rem;
  font-family: var(--font-script);
  font-size: .9rem;
  color: var(--ink-soft);
  letter-spacing: .04em;
  text-align: center;
}
.match-section.dark .media-caption { color: rgba(251, 243, 223, .85); }

/* Bloc music */
.music-block {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: clamp(1.4rem, 3vw, 2.4rem);
  align-items: center;
  background:
    linear-gradient(135deg, rgba(255,213,74,.08), transparent 60%),
    var(--ink);
  color: var(--cream);
  border: 0;
  border-radius: 6px;
  padding: clamp(1rem, 2.5vw, 2rem);
  box-shadow: var(--shadow-card);
}
.music-thumb {
  position: relative;
  aspect-ratio: 1;
  border: 0;
  border-radius: 4px;
  overflow: hidden;
  box-shadow:
    0 4px 16px rgba(91, 74, 60, .14),
    0 12px 22px rgba(0,0,0,.35);
  transform: rotate(-1.5deg);
  background: var(--cream);
}
.music-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.music-thumb::after {
  content: "♪ SINGLE";
  position: absolute;
  bottom: -10px; right: -10px;
  background: var(--led);
  color: var(--ink);
  font-family: var(--font-display);
  letter-spacing: .08em;
  font-size: .8rem;
  padding: .25rem .55rem .15rem;
  border: 0;
  transform: rotate(4deg);
  box-shadow: 0 3px 12px rgba(91, 74, 60, .14);
}
.music-info h3 {
  font-family: var(--font-title);
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  margin: 0 0 .4rem;
  color: var(--led);
}
.music-info .meta {
  font-family: var(--font-script);
  letter-spacing: .1em;
  font-size: .82rem;
  color: rgba(251, 243, 223, .7);
  margin: 0 0 .8rem;
  text-transform: uppercase;
}
.music-info video {
  width: 100%;
  border-radius: 4px;
  background: #000;
}

/* Bouton retour */
.back-home {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-script);
  font-size: .85rem;
  letter-spacing: .12em;
  color: var(--cream);
  margin-bottom: .8rem;
  text-transform: uppercase;
  text-decoration: none;
}
.back-home::before { content: "←"; font-size: 1rem; }
.back-home:hover { color: var(--led); text-decoration: none; }

/* ============================================================
   RESPONSIVE — Football blocks & match page
   (placé après les définitions pour gagner la cascade)
   ============================================================ */
@media (max-width: 960px) {
  .next-match .container { grid-template-columns: 1fr; }
  .match-hero .container { grid-template-columns: 1fr; }
  .character-card { grid-template-columns: 1fr; }
  .music-block { grid-template-columns: 1fr; }
  .music-thumb { max-width: 260px; margin: 0 auto; }
  .scoreboard-row { gap: .5rem; }
  .scoreboard-meta { gap: .8rem 1.2rem; font-size: .75rem; }

  /* Carousel BD en mobile : repasse en pile (planche + vignettes horizontales) */
  .bd-carousel {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    gap: 1.2rem;
  }
  .bd-frame {
    grid-column: 1;
    grid-row: 1;
  }
  .bd-thumbs {
    grid-column: 1;
    grid-row: 2;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    max-height: none;
    width: 100%;
    padding-right: 0;
    padding-bottom: 4px;
  }
  .bd-thumb {
    width: 64px;
    aspect-ratio: 4/5;
    height: auto;
  }
  .bd-prev { left: 6px; }
  .bd-next { right: 6px; }
  .bd-nav { width: 40px; height: 40px; }
  .bd-stage { height: clamp(360px, calc(100vh - 220px), 620px); }
}
@media (max-width: 560px) {
  .bd-stage { height: clamp(360px, calc(100vh - 180px), 600px); }
  .bd-slide { inset: 0 0 36px; }
  .bd-slide figcaption { bottom: -30px; font-size: .72rem; }
  .bd-counter { top: 10px; right: 10px; font-size: .8rem; padding: .15rem .5rem .1rem; }
  .bd-thumbs { gap: .35rem; }
  .bd-thumb { width: 52px; }
}
@media (max-width: 560px) {
  .countdown { gap: .35rem; }
  .countdown-cell strong { font-size: 1.3rem; }
  .scoreboard { padding: 1rem .8rem; }
  .scoreboard-name { font-size: 1.4rem; }
  .scoreboard-flag { font-size: 1.8rem; }
  .scoreboard-vs { font-size: 1.3rem; padding: .15rem .5rem; }
  .scoreboard::before, .scoreboard::after { font-size: .6rem; }
  .match-toc { top: var(--topbar-h); }
  .ticker-track { gap: 1.4rem; }
  .corner-stamp { width: 64px; height: 64px; top: -10px; right: -10px; }
  .corner-stamp strong { font-size: 1.2rem; }
  .corner-stamp span { font-size: .55rem; }
  .match-info h1 { font-size: clamp(1.5rem, 6vw, 2rem); }
}

/* ============================================================
   REVEAL ON SCROLL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
/* Conserve les rotations originales pour les cartes */
.card.reveal { transform: translateY(18px) rotate(0); }
.card.reveal.is-visible:nth-child(3n) { transform: rotate(-.7deg); }
.card.reveal.is-visible:nth-child(3n+1) { transform: rotate(.5deg); }
.card.reveal.is-visible:nth-child(3n+2) { transform: rotate(-.3deg); }
/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none !important; }
}
