/* ==========================================================================
   AFRICA FOOTBALL CLUB — Feuille de style principale
   Couleurs et polices du club définies une seule fois dans :root
   ========================================================================== */

:root {
  --navy: #0D346B;
  --navy-dark: #082449;
  --navy-light: #164a92;
  --green: #68B54B;
  --green-dark: #4f9a36;
  --white: #FFFFFF;
  --text: #1A1A1A;
  --grey: #F4F6F8;
  --muted: #5B6574;
  --line: #E3E7EC;
  --danger: #D64545;
  --warn: #E0A400;

  --font-title: 'Bebas Neue', 'Oswald', Impact, 'Arial Narrow', sans-serif;
  --font-text: 'Barlow', 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --container: 1280px;
  --gutter: 16px;
  --radius: 6px;
  --radius-lg: 12px;
  --shadow: 0 10px 30px rgba(13, 52, 107, .12);
  --shadow-lg: 0 24px 60px rgba(8, 36, 73, .25);
  --header-h: 84px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (min-width: 768px) { :root { --gutter: 24px; } }
@media (max-width: 1023px) { :root { --header-h: 68px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.skip-link { position: absolute; left: -999px; top: 0; z-index: 999; background: var(--green); color: #fff; padding: 10px 16px; }
.skip-link:focus { left: 8px; top: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3, h4 {
  font-family: var(--font-title);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .02em;
  line-height: 1;
  margin: 0 0 .4em;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); }
h2 { font-size: clamp(2.1rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); }
h4 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section--grey { background: var(--grey); }
.section--navy { background: var(--navy); color: #fff; }
.section--tight { padding-block: clamp(40px, 5vw, 64px); }

/* Titres de section avec rappel des étoiles du logo */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 32px; flex-wrap: wrap; }
.section-head h2 { margin: 0; color: var(--navy); }
.section--navy .section-head h2 { color: #fff; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-text); font-weight: 700; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--green); margin-bottom: 8px;
}
.kicker::before {
  content: ""; width: 34px; height: 10px; flex: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 10'%3E%3Cpath d='M5 0l1.2 3.5H10L7 5.7l1.1 3.6L5 7.1 1.9 9.3 3 5.7 0 3.5h3.8zM17 0l1.2 3.5H22L19 5.7l1.1 3.6L17 7.1l-3.1 2.2L15 5.7l-3-2.2h3.8zM29 0l1.2 3.5H34L31 5.7l1.1 3.6L29 7.1l-3.1 2.2L27 5.7l-3-2.2h3.8z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 10'%3E%3Cpath d='M5 0l1.2 3.5H10L7 5.7l1.1 3.6L5 7.1 1.9 9.3 3 5.7 0 3.5h3.8zM17 0l1.2 3.5H22L19 5.7l1.1 3.6L17 7.1l-3.1 2.2L15 5.7l-3-2.2h3.8zM29 0l1.2 3.5H34L31 5.7l1.1 3.6L29 7.1l-3.1 2.2L27 5.7l-3-2.2h3.8z'/%3E%3C/svg%3E") center / contain no-repeat;
  background: var(--green);
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 720px; }
.section--navy .lead { color: rgba(255, 255, 255, .8); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 26px;
  font-family: var(--font-text); font-weight: 700; font-size: .9rem; letter-spacing: .1em; text-transform: uppercase;
  border-radius: var(--radius); border: 2px solid var(--green);
  background: var(--green); color: #fff;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); box-shadow: 0 8px 20px rgba(104, 181, 75, .35); }
.btn:hover svg { transform: translateX(4px); }
.btn--navy { background: var(--navy); border-color: var(--navy); }
.btn--navy:hover { background: var(--navy-light); border-color: var(--navy-light); box-shadow: 0 8px 20px rgba(13, 52, 107, .3); }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: #fff; box-shadow: none; }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.btn--ghost:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn--sm { min-height: 38px; padding: 8px 16px; font-size: .78rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
@media (max-width: 480px) {
  .btn { white-space: normal; text-align: center; letter-spacing: .06em; padding-inline: 18px; }
  .panel-foot .btn, .center > .btn { width: 100%; }
}

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; color: var(--navy); }
.link-arrow svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.link-arrow:hover { color: var(--green-dark); }
.link-arrow:hover svg { transform: translateX(4px); }

.tag {
  display: inline-block; padding: 4px 10px; border-radius: 3px;
  background: var(--green); color: #fff;
  font-weight: 700; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; line-height: 1.4;
}
.tag--navy { background: var(--navy); }
.tag--light { background: rgba(255, 255, 255, .15); }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--header-h);
  background: var(--navy);
  color: #fff;
  transition: height .3s var(--ease), box-shadow .3s;
}
/* En-tête transparent sur toutes les pages, fond bleu dès que l'on fait défiler */
.site-header:not(.is-scrolled) { background: transparent; }
.nav-open .site-header { background: var(--navy); }
.site-header.is-scrolled { --header-h: 66px; height: 66px; box-shadow: 0 6px 24px rgba(0, 0, 0, .25); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand img { height: calc(var(--header-h) + 18px); width: auto; margin-top: 24px; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .3)); transition: height .3s var(--ease), margin .3s var(--ease); }
.site-header.is-scrolled .brand img { height: 56px; margin-top: 0; }
.brand-name { font-family: var(--font-title); font-size: 1.5rem; line-height: .9; letter-spacing: .04em; }
.brand-name { white-space: nowrap; }

.main-nav { margin-left: auto; height: 100%; }
.main-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; height: 100%; }
.main-nav > ul > li { position: static; height: 100%; display: flex; }
.nav-link {
  position: relative; display: flex; align-items: center; gap: 6px; padding: 0 18px;
  font-family: var(--font-title); font-size: 1.3rem; letter-spacing: .06em;
}
.nav-link::after {
  content: ""; position: absolute; left: 18px; right: 18px; bottom: 18px; height: 3px; background: var(--green);
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.site-header.is-scrolled .nav-link::after { bottom: 12px; }
.nav-link:hover::after, .nav-link[aria-current="page"]::after, .has-mega:hover > .nav-link::after, .has-mega.is-open > .nav-link::after { transform: scaleX(1); }
.nav-link svg { width: 12px; height: 12px; transition: transform .25s; }
.has-mega:hover .nav-link svg, .has-mega.is-open .nav-link svg { transform: rotate(180deg); }

/* Mega menu « Le club » */
.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; color: var(--text);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  border-top: 3px solid var(--green);
}
.has-mega:hover .mega, .has-mega:focus-within .mega, .has-mega.is-open .mega { opacity: 1; visibility: visible; transform: none; }
.mega-inner { display: grid; grid-template-columns: repeat(3, 1fr) 1.3fr; gap: 40px; padding-block: 40px; }
.mega-col h3 { color: var(--navy); font-size: 1.6rem; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--line); }
.mega-col h3 a:hover { color: var(--green-dark); }
.mega-col ul { list-style: none; margin: 0; padding: 0; }
.mega-col li a { display: flex; align-items: center; gap: 8px; padding: 7px 0; font-weight: 600; color: var(--muted); transition: color .2s, transform .2s; }
.mega-col li a::before { content: ""; width: 6px; height: 6px; background: var(--green); transform: rotate(45deg); flex: none; }
.mega-col li a:hover { color: var(--navy); transform: translateX(4px); }
.mega-col p { color: var(--muted); font-size: .95rem; }
.mega-feature { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 220px; color: #fff; display: flex; align-items: flex-end; }
.mega-feature img.mega-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.mega-feature::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(8, 36, 73, .92)); z-index: 1; }
.mega-feature:hover img.mega-img { transform: scale(1.06); }
.mega-feature div { position: relative; z-index: 2; padding: 20px; }
.mega-feature h4 { font-size: 1.6rem; margin: 6px 0 0; }

.header-tools { display: flex; align-items: center; gap: 6px; flex: none; }
.social-list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.icon-btn {
  position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  color: #fff; transition: background .2s, color .2s;
}
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:hover { background: var(--green); }
.header-tools .social-list .icon-btn { width: 34px; height: 34px; }
.header-tools .social-list .icon-btn svg { width: 15px; height: 15px; }
.cart-btn { width: 46px; height: 46px; background: rgba(255, 255, 255, .08); margin-left: 8px; }
.cart-btn svg { width: 22px; height: 22px; }
.cart-count {
  position: absolute; top: -2px; right: -2px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
  background: var(--green); color: #fff; font-size: .72rem; font-weight: 700; display: grid; place-items: center;
  transform: scale(0); transition: transform .3s var(--ease);
}
.cart-count.has-items { transform: scale(1); }
.cart-count.bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.4); } }

.burger { display: none; width: 46px; height: 46px; border-radius: var(--radius); background: rgba(255, 255, 255, .08); position: relative; }
.burger span, .burger span::before, .burger span::after {
  position: absolute; left: 12px; width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s var(--ease), opacity .2s;
}
.burger span { top: 22px; }
.burger span::before, .burger span::after { content: ""; left: 0; }
.burger span::before { top: -7px; }
.burger span::after { top: 7px; }
.nav-open .burger span { background: transparent; }
.nav-open .burger span::before { transform: translateY(7px) rotate(45deg); }
.nav-open .burger span::after { transform: translateY(-7px) rotate(-45deg); }

/* Navigation mobile (panneau latéral) */
.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0 auto; width: min(420px, 100%); z-index: 99;
  background: var(--navy-dark); color: #fff; overflow-y: auto; overscroll-behavior: contain;
  transform: translateX(100%); transition: transform .35s var(--ease);
  padding: 24px var(--gutter) 40px;
  display: flex; flex-direction: column;
}
.nav-open .mobile-nav { transform: none; }
.nav-backdrop { position: fixed; inset: var(--header-h) 0 0; background: rgba(0, 0, 0, .5); z-index: 98; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.nav-open .nav-backdrop { opacity: 1; visibility: visible; }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav > ul > li { border-bottom: 1px solid rgba(255, 255, 255, .1); }
.mobile-nav > ul > li > a, .mobile-nav .acc-toggle {
  display: flex; width: 100%; align-items: center; justify-content: space-between;
  padding: 16px 0; font-family: var(--font-title); font-size: 1.8rem; letter-spacing: .05em; text-align: left;
}
.mobile-nav a[aria-current="page"] { color: var(--green); }
.acc-toggle svg { width: 18px; height: 18px; transition: transform .3s; }
.acc-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.acc-panel > div { overflow: hidden; }
.acc-toggle[aria-expanded="true"] + .acc-panel { grid-template-rows: 1fr; }
.acc-panel h4 { color: var(--green); font-size: 1.1rem; margin: 10px 0 4px; letter-spacing: .1em; }
.acc-panel a { display: block; padding: 8px 0 8px 12px; color: rgba(255, 255, 255, .85); font-weight: 600; }
.acc-panel a:hover { color: #fff; }
.acc-panel > div > :last-child { margin-bottom: 16px; }
.mobile-nav .social-list { margin-top: 28px; gap: 10px; }
.mobile-nav .social-list .icon-btn { background: rgba(255, 255, 255, .08); width: 44px; height: 44px; }

@media (max-width: 1180px) {
  .header-tools .social-list { display: none; }
  .nav-link { padding: 0 14px; }
}
@media (max-width: 1023px) {
  .main-nav { display: none; }
  .burger { display: inline-block; }
  .header-tools { margin-left: auto; }
  .brand img { height: 74px; margin-top: 20px; }
  .site-header.is-scrolled .brand img { height: 50px; }
  .site-header.is-scrolled { height: var(--header-h); }
}
@media (max-width: 480px) {
  .brand-name { font-size: 1.2rem; white-space: normal; max-width: 9ch; line-height: .95; }
}

/* Accueil : slider plein écran sous l'en-tête transparent */
body[data-page="home"] .hero { height: 100svh; max-height: 1000px; }
body[data-page="home"] .hero-content { padding-top: var(--header-h); }
@media (max-width: 767px) { body[data-page="home"] .hero { height: auto; max-height: none; } }

/* Bandeau des partenaires (couleur) sous le slider */
.sponsor-strip { background: transparent; padding-block: 28px; border-bottom: 1px solid var(--line); }
.sponsor-strip .container { display: flex; align-items: center; justify-content: center; gap: 20px 40px; flex-wrap: wrap; }
.sponsor-strip .kicker { margin: 0; }
.sponsor-strip-logos { display: flex; align-items: center; justify-content: center; gap: 24px clamp(32px, 6vw, 80px); flex-wrap: wrap; }
.sponsor-strip-logos > * { display: grid; place-items: center; }
.sponsor-strip-logos img.sponsor-logo { height: 76px; width: auto; max-width: 200px; object-fit: contain; transition: transform .3s var(--ease); }
.sponsor-strip-logos > :hover img.sponsor-logo { transform: scale(1.06); }
@media (max-width: 600px) {
  .sponsor-strip { padding-block: 24px; }
  .sponsor-strip-logos { gap: 18px 28px; }
  .sponsor-strip-logos img.sponsor-logo { height: 54px; max-width: 130px; }
}

/* ==========================================================================
   HERO SLIDER (accueil)
   ========================================================================== */
.hero {
  position: relative; height: calc(100svh - var(--header-h)); min-height: 620px; max-height: 960px;
  background: var(--navy-dark); color: #fff; overflow: hidden;
}
.hero-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1s var(--ease), visibility 1s; }
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-slide img.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 7s linear; }
.hero-slide img.hero-img { object-position: var(--pos, center); }
@media (max-width: 1199px) { .hero-slide img.hero-img { object-position: var(--pos-t, var(--pos, center)); } }
@media (max-width: 767px) { .hero-slide img.hero-img { object-position: var(--pos-m, var(--pos-t, var(--pos, center))); } }
.hero-slide.is-active img.hero-img { transform: scale(1); }
.hero-slide::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 36, 73, .92) 0%, rgba(8, 36, 73, .55) 45%, rgba(8, 36, 73, .1) 75%),
    linear-gradient(0deg, rgba(8, 36, 73, .95) 0%, transparent 45%),
    linear-gradient(180deg, rgba(8, 36, 73, .75) 0%, transparent 28%);
}
.hero-content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; padding-bottom: 170px; }
.hero-content > * { max-width: 720px; }
.hero-content h1, .hero-content h2.hero-title { font-size: clamp(3rem, 8vw, 6.4rem); line-height: .92; margin: 6px 0 16px; }
.hero-content p { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: rgba(255, 255, 255, .85); margin-bottom: 28px; }
.hero-slide .kicker, .hero-slide h1, .hero-slide h2, .hero-slide p, .hero-slide .btn { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.hero-slide.is-active .kicker { opacity: 1; transform: none; transition-delay: .25s; }
.hero-slide.is-active h1, .hero-slide.is-active h2 { opacity: 1; transform: none; transition-delay: .4s; }
.hero-slide.is-active p { opacity: 1; transform: none; transition-delay: .55s; }
.hero-slide.is-active .btn { opacity: 1; transform: none; transition-delay: .7s; }

.hero-controls { position: absolute; z-index: 3; right: var(--gutter); top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 10px; }
.hero-dot { width: 5px; height: 34px; background: rgba(255, 255, 255, .35); border-radius: 2px; transition: background .3s, height .3s; }
.hero-dot.is-active { background: var(--green); height: 56px; }
.hero-arrows { position: absolute; z-index: 3; right: var(--gutter); bottom: 40px; display: flex; gap: 8px; }

.round-btn {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  border: 2px solid currentColor; transition: background .2s, color .2s, border-color .2s, opacity .2s;
}
.round-btn svg { width: 18px; height: 18px; }
.round-btn:hover { background: var(--green); border-color: var(--green); color: #fff; }
.round-btn[disabled] { opacity: .3; pointer-events: none; }
.hero .round-btn { color: #fff; }
@media (max-width: 1023px) { .hero-arrows { display: none; } }

/* Bloc « Prochain match » superposé au slider */
.next-match {
  position: absolute; z-index: 4; left: 50%; bottom: 32px; transform: translateX(-50%);
  width: min(920px, calc(100% - 2 * var(--gutter)));
  background: rgba(8, 36, 73, .6);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .14); border-top: 4px solid var(--green);
  border-radius: var(--radius-lg); color: #fff;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding: 18px 28px;
  box-shadow: var(--shadow-lg);
}
.nm-team { display: flex; align-items: center; gap: 14px; min-width: 0; }
.nm-team--away { flex-direction: row-reverse; text-align: right; }
.nm-team img { width: 64px; height: 64px; object-fit: contain; flex: none; }
.nm-team strong { font-family: var(--font-title); font-weight: 400; font-size: 1.6rem; line-height: 1; letter-spacing: .03em; }
.nm-center { text-align: center; }
.nm-label { font-weight: 700; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--green); }
.nm-meta { font-size: .88rem; color: rgba(255, 255, 255, .8); line-height: 1.4; margin-top: 2px; }
.countdown { display: flex; justify-content: center; gap: 8px; margin-top: 10px; }
.countdown div { min-width: 56px; padding: 6px 4px; background: rgba(255, 255, 255, .08); border-radius: var(--radius); }
.countdown b { display: block; font-family: var(--font-title); font-weight: 400; font-size: 2rem; line-height: 1; font-variant-numeric: tabular-nums; }
.countdown span { font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.nm-live { font-family: var(--font-title); font-size: 1.8rem; color: var(--green); }

@media (max-width: 767px) {
  .hero { height: auto; min-height: 0; max-height: none; background: var(--grey); }
  .hero-stage { position: relative; height: 78svh; min-height: 520px; }
  .hero-content { padding-bottom: 128px; justify-content: flex-end; }
  .hero-controls { top: auto; bottom: 66px; right: auto; left: var(--gutter); transform: none; flex-direction: row; }
  .hero-dot { width: 28px; height: 4px; }
  .hero-dot.is-active { width: 44px; height: 4px; }
  .hero-arrows { bottom: 50px; }
  .hero-arrows .round-btn { width: 42px; height: 42px; }
  .next-match {
    position: relative; left: auto; bottom: auto; transform: none; margin: -28px auto 0; width: calc(100% - 2 * var(--gutter));
    grid-template-columns: 1fr 1fr; padding: 16px; background: rgba(13, 52, 107, .88);
  }
  .nm-center { grid-column: 1 / -1; order: 3; }
  .nm-team { flex-direction: column; text-align: center; gap: 8px; }
  .nm-team--away { flex-direction: column; text-align: center; }
  .nm-team img { width: 52px; height: 52px; }
  .nm-team strong { font-size: 1.3rem; }
  .hero + .section, .hero-wrap + .section { padding-top: 48px; }
  .hero + .sponsor-strip { margin-top: 0; }
}
@media (min-width: 768px) { .hero-stage { position: absolute; inset: 0; } }

/* ==========================================================================
   CARTES DE MATCH & CARROUSEL
   ========================================================================== */
.carousel { position: relative; }
.carousel-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: var(--slide-w, 300px); gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain;
  scrollbar-width: none; padding: 4px 4px 12px; margin: -4px -4px 0;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track > * { scroll-snap-align: start; }
.carousel-nav { display: flex; gap: 8px; }
.carousel-nav .round-btn { color: var(--navy); width: 44px; height: 44px; }
.section--navy .carousel-nav .round-btn { color: #fff; }

.home-fixtures { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 28px; align-items: stretch; }
.panel {
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow);
  padding: 28px; display: flex; flex-direction: column; min-width: 0;
}
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.panel-head h3 { margin: 0; color: var(--navy); font-size: 2rem; }
.panel-foot { margin-top: auto; padding-top: 20px; }
.panel .carousel { flex: 1; display: flex; flex-direction: column; }
.panel .carousel-track { flex: 1; }
.panel .match-card { justify-content: space-between; }
@media (max-width: 1023px) { .home-fixtures { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .panel { padding: 20px 16px; } }

.match-card {
  position: relative; display: flex; flex-direction: column; gap: 14px; height: 100%;
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px 18px; background: #fff;
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
  overflow: hidden;
}
.match-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--line); }
.match-card.is-next::before { background: var(--green); }
.match-card.is-played::before { background: var(--navy); }
.match-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.mc-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.mc-top .tag { font-size: .62rem; }
.mc-teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; text-align: center; }
.mc-team img { width: 56px; height: 56px; object-fit: contain; margin: 0 auto 8px; transition: transform .3s var(--ease); }
.match-card:hover .mc-team img { transform: scale(1.08); }
.mc-team span { display: block; font-weight: 700; font-size: .88rem; line-height: 1.2; }
.mc-team.is-us span { color: var(--navy); }
.mc-score { font-family: var(--font-title); font-size: 2.4rem; line-height: 1; color: var(--navy); white-space: nowrap; }
.mc-score small { display: block; font-family: var(--font-text); font-size: .7rem; font-weight: 700; letter-spacing: .12em; color: var(--muted); }
.mc-time { font-family: var(--font-title); font-size: 2rem; line-height: 1; color: var(--green-dark); }
.mc-info { font-size: .85rem; color: var(--muted); text-align: center; line-height: 1.4; }
.mc-date { font-weight: 700; color: var(--text); }
.mc-date::first-letter, .fx-date b::first-letter, .mh-meta span::first-letter { text-transform: uppercase; }
.mc-result { display: inline-block; width: 26px; height: 26px; line-height: 26px; border-radius: 50%; font-size: .75rem; font-weight: 800; color: #fff; text-align: center; }
.res-V { background: var(--green); }
.res-N { background: #9AA3AF; }
.res-D { background: var(--danger); }
.match-card .btn { margin-top: auto; }

/* Largeur des cartes selon le carrousel */
.carousel--fixtures { grid-auto-columns: calc((100% - 20px) / 2); }
.carousel--products, .carousel--players { grid-auto-columns: calc((100% - 60px) / 4); }
@media (max-width: 1100px) { .carousel--products, .carousel--players { grid-auto-columns: calc((100% - 40px) / 3); } }
@media (max-width: 767px) { .carousel--products, .carousel--players { grid-auto-columns: 62%; } }
@media (max-width: 600px) { .carousel--fixtures { grid-auto-columns: 86%; } }
@media (max-width: 420px) { .carousel--products, .carousel--players { grid-auto-columns: 78%; } }
.section--navy .product-card { border-color: transparent; }

/* ==========================================================================
   CLASSEMENT
   ========================================================================== */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.standings { width: 100%; border-collapse: collapse; font-size: .92rem; font-variant-numeric: tabular-nums; }
.standings th {
  text-align: center; padding: 10px 6px; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  border-bottom: 2px solid var(--line); white-space: nowrap;
}
.standings th.left, .standings td.left { text-align: left; }
.standings td { text-align: center; padding: 9px 6px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.standings tbody tr { transition: background .2s; }
.standings tbody tr:hover { background: var(--grey); }
.standings .rank { width: 40px; font-weight: 800; color: var(--navy); position: relative; }
.standings .team-cell { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.standings .team-cell img { width: 26px; height: 26px; object-fit: contain; flex: none; }
.standings .pts { font-weight: 800; color: var(--navy); font-size: 1rem; }
.standings tr.is-us { background: var(--green); color: #fff; }
.standings tr.is-us:hover { background: var(--green-dark); }
.standings tr.is-us td, .standings tr.is-us .rank, .standings tr.is-us .pts { color: #fff; }
.standings tr.zone-up .rank::before, .standings tr.zone-down .rank::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 2px; }
.standings tr.zone-up .rank::before { background: var(--navy); }
.standings tr.zone-down .rank::before { background: var(--danger); }
.standings tr.is-us .rank::before { background: #fff; }
.standings tr.is-us .mc-result { box-shadow: 0 0 0 2px #fff; }
.standings--compact td { padding: 8px 4px; }
.standings--compact th { padding: 8px 4px; }
.form-dots { display: inline-flex; gap: 3px; }
.form-dots .mc-result { width: 20px; height: 20px; line-height: 20px; font-size: .62rem; }
.legend { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 16px; font-size: .85rem; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 12px; height: 12px; border-radius: 2px; display: inline-block; }
@media (max-width: 520px) {
  .standings .hide-sm { display: none; }
  .standings .team-cell span { max-width: 130px; overflow: hidden; text-overflow: ellipsis; }
}

/* ==========================================================================
   ACTUALITÉS
   ========================================================================== */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 8px 18px; border-radius: 40px; border: 2px solid var(--line); background: #fff;
  font-weight: 700; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
  transition: all .2s var(--ease);
}
.chip:hover { border-color: var(--navy); color: var(--navy); }
.chip.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.section--navy .chip { background: transparent; border-color: rgba(255, 255, 255, .25); color: rgba(255, 255, 255, .85); }
.section--navy .chip.is-active { background: var(--green); border-color: var(--green); color: #fff; }

.news-layout { display: grid; grid-template-columns: 1.35fr 1fr; gap: 24px; }
.news-layout .news-side { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 1023px) { .news-layout { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .news-layout .news-side { grid-template-columns: 1fr; gap: 14px; }
  .news-side .news-card { flex-direction: row; }
  .news-side .news-card .thumb { width: 40%; flex: none; aspect-ratio: auto; min-height: 118px; }
  .news-side .news-card .thumb .tag { display: none; }
  .news-side .news-card .body { padding: 12px 14px; gap: 4px; }
  .news-side .news-card h3 { font-size: 1.15rem; }
}

.news-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 2px 0 var(--line); transition: transform .3s var(--ease), box-shadow .3s; height: 100%; }
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.news-card .thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--navy); }
.news-card .thumb img.card-img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.news-card:hover .thumb img.card-img { transform: scale(1.07); }
.news-card .thumb .tag { position: absolute; left: 14px; bottom: 14px; }
.news-card .body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.news-card time { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.news-card h3 { font-size: 1.45rem; color: var(--navy); margin: 0; line-height: 1.05; transition: color .2s; }
.news-card:hover h3 { color: var(--green-dark); }
.news-card p { font-size: .95rem; color: var(--muted); margin: 0; }

.news-featured { position: relative; display: flex; align-items: flex-end; min-height: 520px; border-radius: var(--radius-lg); overflow: hidden; color: #fff; background: var(--navy); }
.news-featured img.card-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.news-featured:hover img.card-img { transform: scale(1.05); }
.news-featured::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(8, 36, 73, 0) 25%, rgba(8, 36, 73, .95) 100%); }
.news-featured .body { position: relative; z-index: 2; padding: 32px; }
.news-featured h3 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); margin: 12px 0 10px; }
.news-featured p { color: rgba(255, 255, 255, .85); max-width: 560px; }
.news-featured time { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .75); margin-left: 10px; }
@media (max-width: 767px) { .news-featured { min-height: 420px; } .news-featured .body { padding: 22px; } }

.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 1023px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .news-grid { grid-template-columns: 1fr; } }

.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 48px; flex-wrap: wrap; }
.pagination a, .pagination span {
  min-width: 44px; height: 44px; padding: 0 12px; border-radius: var(--radius); display: grid; place-items: center;
  font-weight: 700; border: 2px solid var(--line); background: #fff; color: var(--navy); transition: all .2s;
}
.pagination a:hover { border-color: var(--navy); }
.pagination .is-current { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ==========================================================================
   BOUTIQUE
   ========================================================================== */
.shop-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.shop-intro .lead { margin: 0; }

/* Accueil : bandeau boutique avec photo, vagues aux couleurs du club et écusson */
.shop-band { position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(ellipse at 50% 0%, #164a92 0%, var(--navy) 55%, var(--navy-dark) 100%); }
.shop-band > .container { position: relative; z-index: 2; }
.shop-band.section { padding-block: clamp(40px, 5vw, 64px); }
.shop-band .shop-intro { margin-bottom: 24px; }
.shop-band .center.mt-l { margin-top: 28px; }
.shop-band .lead { max-width: 640px; }
.shop-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.shop-bg img.shop-bg-player { position: absolute; left: 0; bottom: 0; height: 100%; width: min(28vw, 420px); object-fit: cover; object-position: 66% 20%;
  -webkit-mask-image: linear-gradient(90deg, #000 45%, transparent 100%); mask-image: linear-gradient(90deg, #000 35%, transparent 100%); opacity: .95; }
.shop-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 36, 73, .35) 0%, rgba(8, 36, 73, 0) 30%), linear-gradient(180deg, rgba(8, 36, 73, .55) 0%, rgba(8, 36, 73, 0) 35%, rgba(8, 36, 73, 0) 75%, rgba(8, 36, 73, .5) 100%); }
.shop-bg img.shop-bg-waves { position: absolute; right: 0; top: 0; height: 100%; width: min(32vw, 460px); object-fit: cover; object-position: right center;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 35%); mask-image: linear-gradient(90deg, transparent 0%, #000 35%); opacity: .95; }
.shop-bg img.shop-bg-logo { position: absolute; right: clamp(-40px, 1vw, 40px); bottom: 6%; width: clamp(160px, 17vw, 260px); transform: rotate(-14deg); filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .45)); }
@media (min-width: 1200px) {
  .shop-band > .container { padding-inline: clamp(var(--gutter), 15vw, 300px); max-width: none; }
}
@media (max-width: 1199px) {
  .shop-bg img.shop-bg-player { opacity: .35; }
  .shop-bg img.shop-bg-waves { opacity: .5; }
  .shop-bg img.shop-bg-logo { opacity: .25; }
}
@media (max-width: 767px) {
  .shop-bg img.shop-bg-player { width: 70%; opacity: .25; }
  .shop-bg img.shop-bg-waves { width: 55%; opacity: .35; }
  .shop-bg img.shop-bg-logo { width: 140px; right: -30px; bottom: 2%; opacity: .2; }
}
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 1100px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767px) { .product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }

.product-card { position: relative; display: flex; flex-direction: column; color: var(--text); background: #fff; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); transition: box-shadow .3s, transform .3s var(--ease); height: 100%; }
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.product-card .thumb { display: block; aspect-ratio: 1; background: var(--grey); overflow: hidden; }
.product-card .thumb img.product-img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.product-card:hover .thumb img.product-img { transform: scale(1.06); }
.product-card .badge { position: absolute; top: 12px; left: 12px; z-index: 2; }
.product-card .body { padding: 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product-card .cat { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--green-dark); }
.product-card h3 { font-family: var(--font-text); text-transform: none; letter-spacing: 0; font-weight: 700; font-size: 1.02rem; line-height: 1.3; color: var(--text); margin: 0; }
.product-card h3 a:hover { color: var(--navy); }
.price { font-family: var(--font-title); font-size: 1.6rem; color: var(--navy); line-height: 1; letter-spacing: .02em; }
.price del { font-size: 1.1rem; color: var(--muted); margin-left: 8px; }
.product-card .actions { margin-top: auto; display: flex; gap: 8px; }
.product-card select { flex: 1; min-width: 0; height: 38px; border: 2px solid var(--line); border-radius: var(--radius); padding: 0 8px; background: #fff; color: var(--text); font-weight: 600; font-size: .85rem; }
.product-card .btn { flex: none; padding: 8px 12px; }
.product-card .btn svg { width: 18px; height: 18px; }
@media (max-width: 480px) {
  .product-card .actions { flex-direction: column; }
  .product-card .body { padding: 12px; }
  .price { font-size: 1.35rem; }
}
.shop-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.select { height: 44px; border: 2px solid var(--line); border-radius: var(--radius); padding: 0 14px; background: #fff; font-weight: 600; }

/* Fiche produit */
.product-page { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 900px) { .product-page { grid-template-columns: 1fr; gap: 28px; } }
.product-gallery { background: var(--grey); border-radius: var(--radius-lg); overflow: hidden; position: sticky; top: calc(var(--header-h) + 20px); }
@media (max-width: 900px) { .product-gallery { position: static; } }
.product-gallery img.product-img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.product-info h1 { color: var(--navy); font-size: clamp(2.2rem, 4vw, 3.4rem); }
.product-info .price { font-size: 2.4rem; margin: 8px 0 20px; }
.option-label { font-weight: 700; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; margin: 18px 0 10px; display: block; }
.size-list { display: flex; flex-wrap: wrap; gap: 8px; }
.size-list label { position: relative; }
.size-list input { position: absolute; opacity: 0; }
.size-list span { display: grid; place-items: center; min-width: 54px; height: 46px; padding: 0 10px; border: 2px solid var(--line); border-radius: var(--radius); font-weight: 700; cursor: pointer; transition: all .2s; }
.size-list input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.size-list input:focus-visible + span { outline: 3px solid var(--green); }
.qty { display: inline-flex; align-items: center; border: 2px solid var(--line); border-radius: var(--radius); height: 48px; }
.qty button { width: 44px; height: 100%; font-size: 1.3rem; font-weight: 700; color: var(--navy); }
.qty input { width: 48px; text-align: center; border: 0; font-weight: 700; -moz-appearance: textfield; appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.buy-row { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.buy-row .btn { flex: 1; }
.perks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 22px; }
.perks li { display: flex; gap: 12px; align-items: center; color: var(--muted); font-weight: 600; font-size: .95rem; }
.perks svg { width: 22px; height: 22px; color: var(--green); flex: none; }

/* Panier */
.cart-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 960px) { .cart-layout { grid-template-columns: 1fr; } }
.cart-item { display: grid; grid-template-columns: 96px 1fr auto; gap: 18px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cart-item img.product-img { width: 96px; height: 96px; object-fit: cover; border-radius: var(--radius); background: var(--grey); }
.cart-item h3 { font-family: var(--font-text); text-transform: none; letter-spacing: 0; font-size: 1.05rem; font-weight: 700; margin: 0 0 4px; }
.cart-item .meta { color: var(--muted); font-size: .9rem; }
.cart-item .right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.cart-item .qty { height: 40px; }
.cart-item .qty button { width: 36px; }
.cart-item .qty input { width: 36px; }
.remove-btn { color: var(--muted); font-size: .82rem; font-weight: 600; text-decoration: underline; }
.remove-btn:hover { color: var(--danger); }
@media (max-width: 560px) {
  .cart-item { grid-template-columns: 72px 1fr; }
  .cart-item img.product-img { width: 72px; height: 72px; }
  .cart-item .right { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
}
.summary { background: var(--grey); border-radius: var(--radius-lg); padding: 28px; position: sticky; top: calc(var(--header-h) + 20px); }
@media (max-width: 960px) { .summary { position: static; } }
.summary h2 { color: var(--navy); font-size: 2rem; }
.summary-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); }
.summary-row.total { border: 0; font-family: var(--font-title); font-size: 1.8rem; color: var(--navy); padding-top: 16px; }
.pay-options { display: grid; gap: 10px; }
.pay-option { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 2px solid var(--line); border-radius: var(--radius); background: #fff; cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.pay-option:has(input:checked) { border-color: var(--green); box-shadow: 0 0 0 3px rgba(104, 181, 75, .2); }
.pay-option input { accent-color: var(--green); width: 18px; height: 18px; }
.pay-option b { display: block; }
.pay-option small { color: var(--muted); }
.pay-logo { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; color: #fff; font-size: .8rem; flex: none; }
.empty-state { text-align: center; padding: 64px 16px; }
.empty-state svg { width: 72px; height: 72px; margin: 0 auto 16px; color: var(--line); }

/* ==========================================================================
   SPONSORS (défilement continu)
   ========================================================================== */
.sponsors { padding-block: 56px; background: transparent; border-top: 1px solid var(--line); }
.sponsors h2 { text-align: center; color: var(--navy); font-size: 2rem; margin-bottom: 28px; }
.marquee { overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee var(--marquee-speed, 40s) linear infinite; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee-track > * { flex: none; display: grid; place-items: center; width: 220px; height: 90px; padding: 10px 24px; }
.marquee-track img.sponsor-logo { max-height: 64px; width: auto; filter: grayscale(1); opacity: .55; transition: filter .35s, opacity .35s, transform .35s var(--ease); }
.marquee-track > :hover img.sponsor-logo, .marquee-track a:focus-visible img.sponsor-logo { filter: none; opacity: 1; transform: scale(1.06); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (max-width: 600px) { .marquee-track > * { width: 170px; height: 76px; } }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, .8); position: relative; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--green); }
.footer-main { display: grid; grid-template-columns: 1.3fr 1fr 1.1fr 1.4fr; gap: 40px; padding-block: 64px 48px; position: relative; }
.footer-watermark { position: absolute; right: -60px; bottom: -80px; width: 340px; opacity: .04; pointer-events: none; }
.site-footer h3 { color: #fff; font-size: 1.5rem; margin-bottom: 18px; }
.footer-brand img.footer-logo { width: 96px; margin-bottom: 16px; }
.footer-brand p { font-size: .95rem; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-links a { transition: color .2s, padding .2s; }
.footer-links a:hover { color: var(--green); padding-left: 4px; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; font-size: .95rem; }
.contact-list li { display: flex; gap: 12px; }
.contact-list svg { width: 20px; height: 20px; color: var(--green); flex: none; margin-top: 3px; }
.contact-list a:hover { color: #fff; }
.site-footer .social-list { gap: 8px; margin-bottom: 24px; }
.site-footer .social-list .icon-btn { background: rgba(255, 255, 255, .08); width: 42px; height: 42px; }
.newsletter-form { display: flex; gap: 0; background: #fff; border-radius: var(--radius); overflow: hidden; padding: 4px; }
.newsletter-form input { flex: 1; min-width: 0; border: 0; padding: 0 14px; color: var(--text); background: transparent; height: 46px; }
.newsletter-form input:focus { outline: none; }
.newsletter-form .btn { min-height: 46px; padding: 8px 18px; }
.form-note { font-size: .82rem; margin-top: 10px; color: rgba(255, 255, 255, .6); }
.form-msg { font-size: .9rem; margin-top: 10px; font-weight: 600; }
.form-msg.ok { color: var(--green); }
.form-msg.err { color: #ff8a8a; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding-block: 22px; font-size: .88rem; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-bottom ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; flex-wrap: wrap; }
.footer-bottom a:hover { color: var(--green); }
@media (max-width: 1023px) { .footer-main { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-main { grid-template-columns: 1fr; gap: 32px; padding-block: 48px 32px; } }

/* ==========================================================================
   EN-TÊTE DES PAGES INTÉRIEURES
   ========================================================================== */
.page-hero { position: relative; background: var(--navy); color: #fff; padding-block: calc(var(--header-h) + clamp(40px, 7vw, 96px)) clamp(40px, 6vw, 72px); overflow: hidden; }
.page-hero--compact { padding-bottom: 28px; }
.page-hero--compact .breadcrumb { margin: 0; }
.page-hero img.page-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .28; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 36, 73, .95), rgba(8, 36, 73, .4)); }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { margin: 6px 0 12px; }
.page-hero .lead { color: rgba(255, 255, 255, .85); margin: 0; }
.page-hero-stars { position: absolute; right: 5%; top: 50%; transform: translateY(-50%); width: min(30vw, 340px); opacity: .1; z-index: 1; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 6px; padding: 0; font-size: .82rem; font-weight: 600; color: rgba(255, 255, 255, .65); text-transform: uppercase; letter-spacing: .08em; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.breadcrumb a:hover { color: var(--green); }

/* Sous-navigation (onglets) */
.subnav { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: var(--header-h); z-index: 50; transition: top .3s var(--ease); }
@media (min-width: 1024px) { html.is-scrolled .subnav { top: 66px; } }
.subnav .container { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.subnav .container::-webkit-scrollbar { display: none; }
.subnav a, .subnav button { padding: 16px 18px; font-weight: 700; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); white-space: nowrap; border-bottom: 3px solid transparent; transition: color .2s, border-color .2s; }
.subnav a:hover, .subnav button:hover { color: var(--navy); }
.subnav .is-active { color: var(--navy); border-bottom-color: var(--green); }

/* ==========================================================================
   EFFECTIF / JOUEURS
   ========================================================================== */
.position-block + .position-block { margin-top: 56px; }
.position-title { display: flex; align-items: center; gap: 16px; color: var(--navy); margin-bottom: 24px; }
.position-title::after { content: ""; flex: 1; height: 2px; background: var(--line); }
.position-title span { font-family: var(--font-text); font-size: .9rem; font-weight: 700; color: var(--muted); letter-spacing: .05em; }
.players-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 1100px) { .players-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767px) { .players-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }

.player-card { position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden; background: var(--navy); color: #fff; aspect-ratio: 4 / 5; isolation: isolate; }
.player-card img.player-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .6s var(--ease); z-index: -1; }
.player-card:hover img.player-photo { transform: scale(1.06); }
.player-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(8, 36, 73, .95)); z-index: -1; }
.player-card .num { position: absolute; top: 10px; right: 16px; font-family: var(--font-title); font-size: clamp(3rem, 6vw, 4.6rem); line-height: 1; color: rgba(255, 255, 255, .9); text-shadow: 0 4px 18px rgba(0, 0, 0, .3); }
.player-card .info { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px; }
.player-card .first { display: block; font-weight: 600; font-size: .95rem; color: rgba(255, 255, 255, .85); }
.player-card .last { display: block; font-family: var(--font-title); font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1; letter-spacing: .03em; }
.player-card .pos { display: inline-block; margin-top: 8px; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--green); }
.player-card .bar { position: absolute; left: 0; bottom: 0; height: 4px; width: 100%; background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.player-card:hover .bar { transform: scaleX(1); }

.staff-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.staff-card { background: #fff; border-radius: var(--radius-lg); padding: 22px; border-left: 4px solid var(--green); box-shadow: 0 2px 0 var(--line); }
.staff-card strong { display: block; font-size: 1.1rem; color: var(--navy); }
.staff-card span { color: var(--muted); font-size: .92rem; }

/* Fiche joueur */
.player-hero { background: var(--navy); color: #fff; position: relative; overflow: hidden; padding-top: var(--header-h); }
.player-hero .container { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: end; position: relative; z-index: 1; }
.player-hero-photo { position: relative; align-self: stretch; min-height: 420px; }
.player-hero-photo img.player-photo { width: 100%; height: 100%; max-height: 560px; object-fit: cover; object-position: top; border-radius: var(--radius-lg) var(--radius-lg) 0 0; margin-top: 48px; }
.player-hero-num { position: absolute; right: -2%; top: 50%; transform: translateY(-50%); font-family: var(--font-title); font-size: clamp(14rem, 34vw, 30rem); line-height: .8; color: rgba(255, 255, 255, .05); pointer-events: none; }
.player-hero-info { padding-block: 56px; }
.player-hero-info .first { font-size: 1.5rem; font-weight: 600; color: rgba(255, 255, 255, .85); display: block; }
.player-hero-info h1 { font-size: clamp(3.4rem, 8vw, 6.4rem); margin: 0 0 10px; }
.player-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255, 255, 255, .12); border-radius: var(--radius-lg); overflow: hidden; margin-top: 28px; }
.player-facts div { background: var(--navy); padding: 16px 18px; }
.player-facts dt { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--green); }
.player-facts dd { margin: 4px 0 0; font-weight: 600; font-size: 1.05rem; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stat { background: var(--grey); border-radius: var(--radius-lg); padding: 24px; text-align: center; }
.stat b { display: block; font-family: var(--font-title); font-weight: 400; font-size: 3.4rem; line-height: 1; color: var(--navy); }
.stat span { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 860px) {
  .player-hero .container { grid-template-columns: 1fr; gap: 0; }
  .player-hero-photo { min-height: 0; order: 2; }
  .player-hero-photo img.player-photo { margin-top: 0; max-height: 440px; }
  .player-hero-info { padding-block: 40px 28px; }
  .player-facts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) { .stat-row { grid-template-columns: 1fr 1fr 1fr; gap: 10px; } .stat { padding: 16px 8px; } .stat b { font-size: 2.4rem; } }

/* ==========================================================================
   CALENDRIER & FICHE MATCH
   ========================================================================== */
.month-title { color: var(--navy); margin: 48px 0 16px; font-size: 2rem; display: flex; align-items: center; gap: 16px; }
.month-title::after { content: ""; flex: 1; height: 2px; background: var(--line); }
.month-title:first-child { margin-top: 0; }
.fixture-row {
  display: grid; grid-template-columns: 170px 1fr auto 1fr 160px; align-items: center; gap: 16px;
  background: #fff; border-radius: var(--radius-lg); padding: 16px 22px; margin-bottom: 10px; border: 1px solid var(--line);
  transition: box-shadow .25s, border-color .25s, transform .25s var(--ease);
}
.fixture-row:hover { box-shadow: var(--shadow); border-color: transparent; transform: translateY(-2px); }
.fixture-row.is-next { border: 2px solid var(--green); }
.fx-date { font-size: .85rem; line-height: 1.35; }
.fx-date b { display: block; color: var(--navy); }
.fx-date span { color: var(--muted); }
.fx-team { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.fx-team.home { justify-content: flex-end; text-align: right; }
.fx-team img { width: 40px; height: 40px; object-fit: contain; flex: none; }
.fx-team.is-us { color: var(--navy); }
.fx-score { min-width: 92px; text-align: center; font-family: var(--font-title); font-size: 2rem; line-height: 1; padding: 8px 12px; border-radius: var(--radius); background: var(--navy); color: #fff; }
.fx-score.upcoming { background: var(--grey); color: var(--green-dark); font-size: 1.6rem; }
.fx-comp { text-align: right; font-size: .8rem; color: var(--muted); line-height: 1.35; }
.fx-comp b { display: block; color: var(--text); }
@media (max-width: 900px) {
  .fixture-row { grid-template-columns: 1fr auto 1fr; padding: 14px; gap: 10px; }
  .fx-date, .fx-comp { grid-column: 1 / -1; text-align: center; }
  .fx-date { order: -1; }
  .fx-team { flex-direction: column; text-align: center; gap: 6px; font-size: .9rem; }
  .fx-team.home { flex-direction: column-reverse; text-align: center; justify-content: flex-end; }
  .fx-team { justify-content: flex-start; }
  .cal-toolbar .filters, .cal-toolbar .select { width: 100%; }
  .fx-score { min-width: 76px; font-size: 1.7rem; }
}
.cal-toolbar { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; align-items: center; }

.match-hero { background: var(--navy); color: #fff; padding-block: calc(var(--header-h) + 40px) 56px; position: relative; overflow: hidden; }
.match-hero img.page-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .2; }
.match-hero .container { position: relative; z-index: 1; text-align: center; }
.mh-board { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; margin: 28px 0; }
.mh-team img { width: clamp(80px, 12vw, 140px); height: clamp(80px, 12vw, 140px); object-fit: contain; margin: 0 auto 14px; }
.mh-team strong { font-family: var(--font-title); font-weight: 400; font-size: clamp(1.4rem, 3vw, 2.4rem); line-height: 1; display: block; }
.mh-score { font-family: var(--font-title); font-size: clamp(3.6rem, 10vw, 7rem); line-height: 1; }
.mh-meta { display: flex; justify-content: center; gap: 10px 28px; flex-wrap: wrap; color: rgba(255, 255, 255, .85); font-weight: 600; }
.mh-meta span { display: inline-flex; gap: 8px; align-items: center; }
.mh-meta svg { width: 18px; height: 18px; color: var(--green); }

/* ==========================================================================
   ARTICLE
   ========================================================================== */
.article-hero { position: relative; min-height: 62vh; display: flex; align-items: flex-end; color: #fff; background: var(--navy); overflow: hidden; }
.article-hero img.page-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.article-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 36, 73, .2), rgba(8, 36, 73, .95)); }
.article-hero .container { position: relative; z-index: 2; padding-block: calc(var(--header-h) + 48px) 48px; max-width: 980px; }
.article-hero h1 { font-size: clamp(2.4rem, 5.5vw, 4.4rem); margin: 14px 0; }
.article-meta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; color: rgba(255, 255, 255, .85); font-weight: 600; font-size: .92rem; }
.article-layout { display: grid; grid-template-columns: 72px minmax(0, 760px); gap: 40px; justify-content: center; }
.share { position: sticky; top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; gap: 10px; align-self: start; }
.share .label { font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); text-align: center; }
.share a, .share button { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--grey); color: var(--navy); margin: 0 auto; transition: background .2s, color .2s, transform .2s; }
.share a:hover, .share button:hover { background: var(--green); color: #fff; transform: translateY(-2px); }
.share svg { width: 18px; height: 18px; }
@media (max-width: 860px) {
  .article-layout { grid-template-columns: 1fr; gap: 24px; }
  .share { position: static; flex-direction: row; flex-wrap: wrap; align-items: center; order: 2; border-top: 1px solid var(--line); padding-top: 24px; }
  .share .label { margin-right: 8px; }
  .share a, .share button { margin: 0; }
}
.prose { font-size: 1.12rem; line-height: 1.75; }
.prose > :first-child { margin-top: 0; }
.prose h2 { color: var(--navy); font-size: clamp(1.8rem, 3vw, 2.4rem); margin: 1.6em 0 .5em; }
.prose h3 { color: var(--navy); margin: 1.4em 0 .5em; }
.prose a { color: var(--navy); text-decoration: underline; text-decoration-color: var(--green); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose a:hover { color: var(--green-dark); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--green); }
.prose blockquote { margin: 1.6em 0; padding: 20px 28px; border-left: 5px solid var(--green); background: var(--grey); border-radius: 0 var(--radius-lg) var(--radius-lg) 0; font-size: 1.2rem; font-style: italic; color: var(--navy); }
.prose blockquote p:last-child { margin: 0; }
.prose img { border-radius: var(--radius-lg); margin: 1.4em 0; }
.prose .intro { font-size: 1.3rem; font-weight: 600; color: var(--navy); }

/* ==========================================================================
   HISTOIRE
   ========================================================================== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.split-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; }
.split-media img.split-img { width: 100%; height: 100%; object-fit: cover; }
.split-media--portrait { aspect-ratio: 4 / 5; max-width: 480px; justify-self: center; width: 100%; }
.split-media--portrait img.split-img { object-position: center 30%; }
.split-media::after { content: ""; position: absolute; inset: auto 0 0 auto; width: 40%; height: 8px; background: var(--green); }
.figures { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.figure { text-align: center; padding: 28px 12px; border: 1px solid rgba(255, 255, 255, .15); border-radius: var(--radius-lg); }
.figure b { display: block; font-family: var(--font-title); font-weight: 400; font-size: clamp(2.8rem, 5vw, 4rem); line-height: 1; color: var(--green); }
.figure span { font-weight: 600; font-size: .9rem; letter-spacing: .06em; text-transform: uppercase; }
@media (max-width: 767px) { .figures { grid-template-columns: repeat(2, 1fr); } }

.timeline { position: relative; list-style: none; padding: 0; margin: 0; }
.timeline::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; background: var(--line); transform: translateX(-50%); }
.timeline li { position: relative; width: 50%; padding: 0 48px 48px 0; }
.timeline li:nth-child(even) { margin-left: 50%; padding: 0 0 48px 48px; }
.timeline li::before { content: ""; position: absolute; top: 10px; right: -11px; width: 22px; height: 22px; border-radius: 50%; background: var(--green); border: 5px solid #fff; box-shadow: 0 0 0 2px var(--green); z-index: 1; }
.timeline li:nth-child(even)::before { right: auto; left: -11px; }
.tl-card { background: #fff; border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); }
.timeline li:nth-child(odd) .tl-card { text-align: right; }
.tl-year { font-family: var(--font-title); font-size: 3rem; line-height: 1; color: var(--green); }
.tl-card h3 { color: var(--navy); margin: 4px 0 6px; }
.tl-card p { margin: 0; color: var(--muted); }
@media (max-width: 767px) {
  .timeline::before { left: 11px; }
  .timeline li, .timeline li:nth-child(even) { width: 100%; margin: 0; padding: 0 0 28px 44px; }
  .timeline li::before, .timeline li:nth-child(even)::before { left: 0; right: auto; }
  .timeline li:nth-child(odd) .tl-card { text-align: left; }
}
.trophy-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.trophy { display: flex; gap: 18px; align-items: center; background: #fff; border-radius: var(--radius-lg); padding: 22px; box-shadow: 0 2px 0 var(--line); transition: transform .3s var(--ease), box-shadow .3s; }
.trophy:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.trophy-count { flex: none; width: 70px; height: 70px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; font-family: var(--font-title); font-size: 2.2rem; position: relative; }
.trophy-count::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px dashed var(--green); }
.trophy strong { display: block; color: var(--navy); font-size: 1.05rem; line-height: 1.3; }
.trophy span { color: var(--muted); font-size: .9rem; }
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1023px) { .values-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .values-grid { grid-template-columns: 1fr; } }
.value-card { padding: 30px 24px; border-radius: var(--radius-lg); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); transition: background .3s, transform .3s var(--ease); }
.value-card:hover { background: rgba(104, 181, 75, .15); transform: translateY(-4px); }
.value-card svg { width: 34px; height: 34px; color: var(--green); margin-bottom: 14px; }
.value-card h3 { color: #fff; font-size: 1.8rem; }
.value-card p { margin: 0; color: rgba(255, 255, 255, .75); }

/* ==========================================================================
   FORMATION
   ========================================================================== */
.cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; }
.cat-grid > :nth-child(-n+3) { grid-column: span 2; }
.cat-grid > :nth-child(n+4) { grid-column: span 3; }
@media (max-width: 900px) { .cat-grid { grid-template-columns: 1fr 1fr; } .cat-grid > * { grid-column: auto !important; } }
@media (max-width: 560px) { .cat-grid { grid-template-columns: 1fr; } }
.cat-card { position: relative; display: flex; align-items: flex-end; min-height: 320px; border-radius: var(--radius-lg); overflow: hidden; color: #fff; background: var(--navy); isolation: isolate; }
.cat-card img.cat-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .7s var(--ease); }
.cat-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 30%, rgba(8, 36, 73, .95)); transition: background .4s; }
.cat-card:hover img.cat-img { transform: scale(1.07); }
.cat-card:hover::before { background: linear-gradient(180deg, rgba(13, 52, 107, .25) 0%, rgba(8, 36, 73, .97)); }
.cat-card .body { padding: 26px; }
.cat-card h3 { font-size: 2.4rem; margin: 6px 0 6px; }
.cat-card p { margin: 0 0 14px; color: rgba(255, 255, 255, .85); }
.cat-card .link-arrow { color: var(--green); }
.info-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .info-cards { grid-template-columns: 1fr; } }
.info-card { background: #fff; border-radius: var(--radius-lg); padding: 28px; box-shadow: 0 2px 0 var(--line); }
.info-card h3 { color: var(--navy); display: flex; gap: 10px; align-items: center; }
.info-card h3 svg { width: 26px; height: 26px; color: var(--green); }
.info-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.info-card li { padding-left: 18px; position: relative; }
.info-card li::before { content: ""; position: absolute; left: 0; top: .6em; width: 7px; height: 7px; background: var(--green); transform: rotate(45deg); }
.info-card li small { display: block; color: var(--muted); }
.cta-band { background: var(--green); color: #fff; border-radius: var(--radius-lg); padding: clamp(28px, 5vw, 48px); display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; position: relative; overflow: hidden; }
.cta-band h2 { margin: 0 0 6px; }
.cta-band p { margin: 0; font-size: 1.1rem; }
.cta-band .btn { background: var(--navy); border-color: var(--navy); }
.cta-band .btn:hover { background: #fff; color: var(--navy); border-color: #fff; }

/* ==========================================================================
   CONTACT & FORMULAIRES
   ========================================================================== */
.contact-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 960px) { .contact-layout { grid-template-columns: 1fr; } }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 700; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 6px; color: var(--navy); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 2px solid var(--line); border-radius: var(--radius); background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(104, 181, 75, .2); }
.field .hint { font-size: .82rem; color: var(--muted); margin-top: 4px; }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: .85rem; font-weight: 600; margin: 6px 0 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--muted); }
.check input { accent-color: var(--green); width: 18px; height: 18px; margin-top: 3px; flex: none; }
.check a { color: var(--navy); text-decoration: underline; }
.contact-card { background: var(--navy); color: #fff; border-radius: var(--radius-lg); padding: 32px; }
.contact-card h2 { font-size: 2rem; }
.contact-card .contact-list { color: rgba(255, 255, 255, .85); margin-bottom: 24px; }
.contact-card .social-list { gap: 8px; }
.contact-card .social-list .icon-btn { background: rgba(255, 255, 255, .1); width: 44px; height: 44px; }
.map-wrap { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 21 / 8; background: var(--grey); }
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 767px) { .map-wrap { aspect-ratio: 4 / 3; } }
.notice { padding: 16px 20px; border-radius: var(--radius); background: #eef7ea; border-left: 4px solid var(--green); color: #2d5a1e; font-weight: 600; }
.notice.err { background: #fdeeee; border-color: var(--danger); color: #8a1f1f; }

/* ==========================================================================
   UTILITAIRES & ANIMATIONS
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-l { margin-top: 48px; }
.stack > * + * { margin-top: 16px; }
.muted { color: var(--muted); }
.skeleton { background: linear-gradient(90deg, var(--grey) 25%, #e9edf1 50%, var(--grey) 75%); background-size: 200% 100%; animation: skel 1.2s infinite; border-radius: var(--radius-lg); min-height: 200px; }
@keyframes skel { to { background-position: -200% 0; } }

.toast {
  position: fixed; z-index: 200; left: 50%; bottom: 24px; transform: translate(-50%, 140%);
  background: var(--navy); color: #fff; border-left: 5px solid var(--green); border-radius: var(--radius);
  padding: 14px 18px; box-shadow: var(--shadow-lg); display: flex; gap: 14px; align-items: center; max-width: calc(100% - 32px);
  transition: transform .4s var(--ease); font-weight: 600;
}
.toast.is-visible { transform: translate(-50%, 0); }
.toast a { color: var(--green); text-decoration: underline; white-space: nowrap; }

.back-top { position: fixed; right: 18px; bottom: 18px; z-index: 90; width: 48px; height: 48px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(12px); transition: all .3s var(--ease); }
.back-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-top:hover { background: var(--navy); }
.back-top svg { width: 20px; height: 20px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
}

@media print {
  .site-header, .site-footer, .share, .back-top, .sponsors { display: none !important; }
  body { padding-top: 0; }
}

/* ==========================================================================
   MÉDIATHÈQUE (accueil + page galerie)
   ========================================================================== */
.media-tabs { margin: -8px 0 24px; }
.carousel--media { grid-auto-columns: calc((100% - 40px) / 3); }
@media (max-width: 1023px) { .carousel--media { grid-auto-columns: calc((100% - 20px) / 2); } }
@media (max-width: 600px) { .carousel--media { grid-auto-columns: 84%; } }
.media-tile {
  position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--navy); cursor: zoom-in; isolation: isolate;
}
.media-tile img.media-img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.media-tile:hover img.media-img, .media-tile:focus-visible img.media-img { transform: scale(1.06); }
.media-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(8, 36, 73, .85)); z-index: 1; opacity: .9; transition: opacity .3s; }
.media-caption { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 2; color: #fff; font-weight: 600; font-size: .92rem; line-height: 1.3; text-align: left; }
.media-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1023px) { .media-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .media-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } .media-caption { font-size: .8rem; left: 10px; right: 10px; bottom: 8px; } }

/* ==========================================================================
   VISIONNEUSE PLEIN ÉCRAN
   ========================================================================== */
html.lb-lock { overflow: hidden; }
.lightbox {
  position: fixed; inset: 0; z-index: 300; background: rgba(4, 16, 34, .96);
  display: grid; grid-template-columns: 72px 1fr 72px; align-items: center;
  opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lb-figure { margin: 0; height: 100vh; height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 56px 0 16px; min-width: 0; }
.lightbox img.lb-img { max-width: 100%; max-height: calc(100dvh - 130px); object-fit: contain; border-radius: var(--radius); opacity: 0; transition: opacity .25s; }
.lightbox img.lb-img.is-loaded { opacity: 1; }
.lb-figure figcaption { color: rgba(255, 255, 255, .9); text-align: center; margin-top: 14px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; font-size: .95rem; }
.lb-count { color: var(--green); font-weight: 700; letter-spacing: .08em; }
.lb-btn { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(255, 255, 255, .1); justify-self: center; transition: background .2s; }
.lb-btn:hover { background: var(--green); }
.lb-btn svg { width: 24px; height: 24px; }
.lb-close { position: absolute; top: 16px; right: 16px; z-index: 2; }
.lightbox.is-single .lb-prev, .lightbox.is-single .lb-next { visibility: hidden; }
@media (max-width: 600px) {
  .lightbox { grid-template-columns: 1fr; }
  .lb-prev, .lb-next { position: absolute; bottom: 18px; z-index: 2; }
  .lb-prev { left: calc(50% - 64px); }
  .lb-next { left: calc(50% + 12px); }
  .lb-figure { padding: 64px 8px 88px; }
  .lightbox img.lb-img { max-height: calc(100dvh - 190px); }
}

/* ==========================================================================
   CARROUSELS PHOTO DANS LES ARTICLES
   ========================================================================== */
.photo-carousel { margin: 2em 0; }
.prose .pc-title { font-family: var(--font-title); font-size: 1.5rem; color: var(--navy); margin: 0 0 10px; letter-spacing: .02em; }
.pc-viewport { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--navy-dark); }
.pc-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.pc-track::-webkit-scrollbar { display: none; }
.pc-slide { flex: 0 0 100%; scroll-snap-align: start; margin: 0; position: relative; }
.pc-open { display: block; width: 100%; aspect-ratio: 16 / 10; cursor: zoom-in; }
.prose .pc-open img.pc-img { width: 100%; height: 100%; object-fit: contain; margin: 0; border-radius: 0; background: var(--navy-dark); }
.pc-slide figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 18px 14px; background: linear-gradient(180deg, transparent, rgba(4, 16, 34, .85)); color: #fff; font-size: .92rem; line-height: 1.4; pointer-events: none; }
.pc-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .92); color: var(--navy); box-shadow: var(--shadow); transition: background .2s, color .2s, opacity .2s; }
.pc-arrow:hover { background: var(--green); color: #fff; }
.pc-arrow[disabled] { opacity: 0; pointer-events: none; }
.pc-arrow svg { width: 20px; height: 20px; }
.pc-prev { left: 12px; }
.pc-next { right: 12px; }
.pc-count { position: absolute; top: 12px; right: 12px; background: rgba(4, 16, 34, .7); color: #fff; font-size: .78rem; font-weight: 700; letter-spacing: .08em; padding: 4px 10px; border-radius: 20px; }
.pc-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.pc-thumbs::-webkit-scrollbar { display: none; }
.pc-thumb { flex: 0 0 76px; height: 54px; border-radius: var(--radius); overflow: hidden; opacity: .55; outline-offset: 2px; transition: opacity .2s; border: 2px solid transparent; }
.pc-thumb.is-active { opacity: 1; border-color: var(--green); }
.prose .pc-thumb img.pc-thumb-img { width: 100%; height: 100%; object-fit: cover; margin: 0; border-radius: 0; }
@media (max-width: 600px) { .pc-arrow { width: 38px; height: 38px; } .pc-open { aspect-ratio: 4 / 3; } }
.prose img.zoomable { cursor: zoom-in; }
