/* ==========================================================================
   Châtellerault Football Club — feuille de style principale
   Sommaire : 1. Tokens  2. Base  3. Utilitaires  4. Boutons  5. Header
              6. Transitions de page  7. Sections de l'accueil  8. Footer
              9. Animations  10. Responsive
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  /* Couleurs issues du logo officiel */
  --cyan: #43d3f5;
  --cyan-600: #1fb4d9;
  --cyan-900: #0b3a47;
  --orange: #faa770;
  --ink: #0b0d10;          /* fond principal */
  --ink-2: #13161b;        /* surfaces */
  --ink-3: #1c2027;        /* surfaces surélevées */
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #f3f5f6;
  --muted: #98a2ad;
  --paper: #f4f2ec;        /* sections claires */
  --paper-ink: #14171c;

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;

  --fs-hero: clamp(3.4rem, 11vw, 11.5rem);
  --fs-h2: clamp(2.4rem, 6vw, 5.4rem);
  --fs-h3: clamp(1.35rem, 2.2vw, 1.9rem);
  --fs-body: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);

  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1440px;
  --radius: 18px;
  --radius-sm: 10px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --header-h: 76px;
}

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--cyan); color: var(--ink); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 1000;
  padding: 10px 16px; background: var(--cyan); color: var(--ink); font-weight: 700;
  border-radius: 8px; transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

/* 3. Utilitaires ----------------------------------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(80px, 12vw, 160px); position: relative; }
.section--paper { background: var(--paper); color: var(--paper-ink); }

.display {
  font-family: var(--font);
  font-weight: 850;
  font-stretch: 62%;
  font-variation-settings: "wdth" 62;
  text-transform: uppercase;
  line-height: 0.88;
  letter-spacing: -0.01em;
}
.h2 { font-size: var(--fs-h2); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--cyan);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.section--paper .eyebrow { color: var(--cyan-600); }
.muted { color: var(--muted); }
.accent { color: var(--cyan); }
.outline-text { color: transparent; -webkit-text-stroke: 1.5px currentColor; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: clamp(40px, 6vw, 72px); flex-wrap: wrap; }
.section-head .h2 { margin-top: 14px; }

/* Lignes masquées pour les titres animés */
.line-mask { display: block; overflow: hidden; padding: 0.16em 0 0.04em; margin: -0.16em 0 -0.04em; } /* marge haute : accents des majuscules (É, Â) */
.line-mask > span { display: block; will-change: transform; }

/* 4. Boutons --------------------------------------------------------------- */
.btn {
  --btn-bg: var(--cyan); --btn-fg: var(--ink);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px;
  border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 700; font-size: 0.95rem; letter-spacing: 0.01em;
  transition: transform 0.4s var(--ease-out), background-color 0.3s, color 0.3s;
  white-space: nowrap;
}
.btn::before { /* remplissage au survol */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--text); border-radius: inherit;
  transform: translateY(101%); transition: transform 0.5s var(--ease-out);
}
.btn:hover::before { transform: translateY(0); }
.btn:active { transform: scale(0.96); }
.btn svg { width: 18px; height: 18px; transition: transform 0.4s var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--text); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.btn--ghost:hover { color: var(--ink); }
.btn--dark { --btn-bg: var(--ink); --btn-fg: var(--text); }
.btn--dark::before { background: var(--cyan); }
.btn--dark:hover { color: var(--ink); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 0.875rem; }

/* Onde au clic (ajoutée en JS) */
.ripple {
  position: absolute; border-radius: 50%; pointer-events: none; z-index: 2;
  background: rgba(255, 255, 255, 0.45); transform: scale(0);
  animation: ripple 0.65s var(--ease-out) forwards;
}
@keyframes ripple { to { transform: scale(1); opacity: 0; } }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
  transition: background-size 0.45s var(--ease-out);
  padding-bottom: 2px;
}
.link-arrow:hover { background-size: 100% 2px; }
.link-arrow svg { width: 16px; height: 16px; transition: transform 0.4s var(--ease-out); }
.link-arrow:hover svg { transform: translate(3px, -3px); }

/* 5. Header ---------------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--header-h);
  transition: background-color 0.4s, backdrop-filter 0.4s, transform 0.5s var(--ease-out), border-color 0.4s;
  border-bottom: 1px solid transparent;
  view-transition-name: site-header;
}
.site-header.is-scrolled {
  background: rgba(11, 13, 16, 0.72);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-color: var(--line);
}
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img { width: 46px; height: 46px; transition: transform 0.6s var(--ease-out); }
.brand:hover img { transform: rotate(-12deg) scale(1.06); }
.brand-name { font-weight: 800; font-variation-settings: "wdth" 75; text-transform: uppercase; line-height: 1; font-size: 0.95rem; letter-spacing: 0.02em; }
.brand-name small { display: block; font-size: 0.68rem; color: var(--muted); letter-spacing: 0.2em; margin-top: 4px; font-weight: 600; }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 4px; }
.main-nav a {
  position: relative; display: block; padding: 10px 14px; border-radius: 999px;
  font-size: 0.92rem; font-weight: 600; color: rgba(243, 245, 246, 0.82);
  transition: color 0.25s, background-color 0.25s;
}
.main-nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.main-nav a[aria-current="page"] { color: var(--text); }
.main-nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 50%; bottom: 3px; width: 5px; height: 5px; margin-left: -2.5px;
  border-radius: 50%; background: var(--cyan);
}
.header-actions { display: flex; align-items: center; gap: 10px; }

.menu-toggle {
  display: none; width: 48px; height: 48px; border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--line-strong); position: relative; z-index: 120;
}
.menu-toggle span {
  position: absolute; left: 15px; right: 15px; height: 2px; background: var(--text); border-radius: 2px;
  transition: transform 0.5s var(--ease-out), top 0.5s var(--ease-out);
}
.menu-toggle span:nth-child(1) { top: 19px; }
.menu-toggle span:nth-child(2) { top: 27px; }
.menu-open .menu-toggle span:nth-child(1) { top: 23px; transform: rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { top: 23px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90; /* sous le header pour garder le bouton de fermeture */
  background: var(--ink);
  clip-path: circle(0% at calc(100% - 44px) 38px);
  transition: clip-path 0.8s var(--ease-in-out);
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--header-h) + 20px) var(--gutter) 40px;
  visibility: hidden;
}
.menu-open .mobile-menu { clip-path: circle(150% at calc(100% - 44px) 38px); visibility: visible; }
.mobile-menu ul { display: grid; gap: 2px; }
.mobile-menu ul a {
  display: flex; align-items: baseline; gap: 14px;
  font-size: clamp(2.2rem, 9.5vw, 3.6rem); font-weight: 850; font-variation-settings: "wdth" 62;
  text-transform: uppercase; line-height: 1.05;
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.5s, transform 0.6s var(--ease-out), color 0.25s;
}
.mobile-menu ul a small { font-size: 0.8rem; color: var(--cyan); font-variation-settings: "wdth" 100; font-weight: 600; }
.mobile-menu ul a:hover, .mobile-menu ul a[aria-current="page"] { color: var(--cyan); }
.menu-open .mobile-menu ul a { opacity: 1; transform: none; }
.mobile-menu-foot { opacity: 0; transition: opacity 0.5s 0.55s; }
.menu-open .mobile-menu-foot { opacity: 1; }
.menu-open .site-header { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; border-color: transparent; }
.menu-open .mobile-menu li:nth-child(1) a { transition-delay: 0.25s; }
.menu-open .mobile-menu li:nth-child(2) a { transition-delay: 0.29s; }
.menu-open .mobile-menu li:nth-child(3) a { transition-delay: 0.33s; }
.menu-open .mobile-menu li:nth-child(4) a { transition-delay: 0.37s; }
.menu-open .mobile-menu li:nth-child(5) a { transition-delay: 0.41s; }
.menu-open .mobile-menu li:nth-child(6) a { transition-delay: 0.45s; }
.menu-open .mobile-menu li:nth-child(7) a { transition-delay: 0.49s; }
.menu-open .mobile-menu li:nth-child(8) a { transition-delay: 0.53s; }
.menu-open .mobile-menu li:nth-child(9) a { transition-delay: 0.57s; }
.mobile-menu-foot { margin-top: 40px; display: flex; gap: 12px; flex-wrap: wrap; }

/* 6. Transitions de page --------------------------------------------------- */
/* Navigateurs récents (Chrome, Edge, Safari 18+) : transition native entre pages */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out 0.35s var(--ease-in-out) both; }
::view-transition-new(root) { animation: vt-in 0.55s var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-40px) scale(0.98); filter: blur(4px); } }
@keyframes vt-in { from { clip-path: inset(100% 0 0 0); transform: translateY(60px); } to { clip-path: inset(0 0 0 0); transform: none; } }

/* Autres navigateurs : rideau animé en JS */
.page-curtain {
  position: fixed; inset: 0; z-index: 900; pointer-events: none;
  background: var(--cyan); transform: translateY(100%);
  display: grid; place-items: center;
}
.page-curtain img { width: 84px; height: 84px; }

/* Préchargement : seulement à la première visite de la session */
.preloader {
  position: fixed; inset: 0; z-index: 950; background: var(--ink);
  display: grid; place-items: center;
}
.preloader-inner { display: grid; justify-items: center; gap: 22px; }
.preloader-logo { width: 110px; height: 110px; }
.preloader-bar { width: 160px; height: 2px; background: var(--line); overflow: hidden; border-radius: 2px; }
.preloader-bar span { display: block; height: 100%; width: 100%; background: var(--cyan); transform-origin: left; transform: scaleX(0); }
.no-preloader .preloader { display: none; }

/* 7. Accueil --------------------------------------------------------------- */

/* --- Hero --- */
.hero {
  position: relative; min-height: 100svh; overflow: hidden;
  display: grid; align-items: end;
  padding-top: calc(var(--header-h) + 24px);
  isolation: isolate;
}
.hero-media {
  position: absolute; inset: 0 0 0 auto; width: min(58vw, 980px); z-index: -1;
  overflow: hidden;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; transform-origin: 50% 30%; }
.hero-media {
  /* fondu de la photo vers la gauche (masque : aucun bord visible) */
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.45) 22%, #000 55%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.45) 22%, #000 55%);
}
.hero-media::after { /* lisibilité du menu en haut, fondu vers le bas */
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 13, 16, 0.7) 0%, rgba(11, 13, 16, 0) 22%),
    linear-gradient(0deg, var(--ink) 0%, rgba(11, 13, 16, 0) 40%);
}
.hero-bg-word {
  position: absolute; z-index: -2; left: -0.04em; top: calc(var(--header-h) + 2vh);
  font-size: clamp(6rem, 24vw, 26rem); color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.07); white-space: nowrap; pointer-events: none;
}
.hero-content {
  position: relative; padding-bottom: clamp(56px, 9vh, 104px);
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 40px;
}
.hero-title { font-size: clamp(3.4rem, min(10.5vw, 17vh), 11rem); margin: 20px 0 26px; }
.hero-title .accent { color: var(--cyan); }
.hero-lead { max-width: 34ch; font-size: clamp(1.05rem, 1.3vw, 1.25rem); color: rgba(243, 245, 246, 0.8); }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.scroll-cue {
  position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted);
}
.scroll-cue i { width: 1px; height: 36px; background: var(--line-strong); position: relative; overflow: hidden; order: 2; }
.scroll-cue i::after { content: ""; position: absolute; inset: 0; background: var(--cyan); animation: scrollcue 2s var(--ease-in-out) infinite; }
@keyframes scrollcue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* --- Carte prochain match --- */
.match-card {
  position: relative; width: min(100%, 420px);
  background: rgba(19, 22, 27, 0.72);
  backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 22px 20px;
  overflow: hidden;
}
.match-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--cyan), var(--orange)); }
.match-card-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: rgba(67, 211, 245, 0.12); color: var(--cyan); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.badge--live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: pulse 1.6s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
.match-teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin: 20px 0 18px; text-align: center; }
.team { display: grid; justify-items: center; gap: 10px; font-weight: 700; font-size: 0.92rem; line-height: 1.2; }
.team-crest { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--ink-3); font-weight: 850; font-variation-settings: "wdth" 62; font-size: 1.3rem; color: var(--muted); }
.team-crest img { width: 56px; height: 56px; }
.match-vs { font-weight: 850; font-variation-settings: "wdth" 62; font-size: 1.1rem; color: var(--muted); }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.countdown div { background: var(--ink-3); border-radius: var(--radius-sm); padding: 10px 4px 8px; text-align: center; }
.countdown strong { display: block; font-size: 1.7rem; font-weight: 850; font-variation-settings: "wdth" 70; line-height: 1; font-variant-numeric: tabular-nums; }
.countdown span { font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.match-meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; font-size: 0.85rem; color: var(--muted); }

/* --- Bandeau défilant --- */
.marquee {
  --gap: 48px;
  display: flex; overflow: hidden; user-select: none;
  background: var(--cyan); color: var(--ink);
  padding-block: 18px; transform: rotate(-1.5deg) scale(1.04); margin-block: -12px;
  position: relative; z-index: 2;
}
.marquee-track { display: flex; flex-shrink: 0; gap: var(--gap); padding-right: var(--gap); align-items: center; animation: marquee 32s linear infinite; }
.marquee-track span { font-size: clamp(1.4rem, 3vw, 2.4rem); font-weight: 850; font-variation-settings: "wdth" 62; text-transform: uppercase; white-space: nowrap; }
.marquee-track img { width: 34px; height: 34px; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* --- Parcours visiteurs --- */
.paths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.path-card {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 48px;
  min-height: 300px; padding: 28px; border-radius: var(--radius);
  background: var(--ink-2); border: 1px solid var(--line);
  overflow: hidden; isolation: isolate;
  transition: border-color 0.4s, transform 0.6s var(--ease-out);
}
.path-card::before {
  content: ""; position: absolute; z-index: -1; width: 420px; height: 420px; border-radius: 50%;
  left: var(--mx, 50%); top: var(--my, 50%); transform: translate(-50%, -50%) scale(0);
  background: radial-gradient(circle, rgba(67, 211, 245, 0.22), transparent 65%);
  transition: transform 0.6s var(--ease-out);
}
.path-card:hover { border-color: rgba(67, 211, 245, 0.45); transform: translateY(-6px); }
.path-card:hover::before { transform: translate(-50%, -50%) scale(1); }
.path-num { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.16em; color: var(--muted); }
.path-card h3 { font-size: clamp(2rem, 3.4vw, 2.9rem); margin-top: 10px; }
.path-card p { color: var(--muted); margin-top: 12px; max-width: 32ch; }
.path-links { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; font-size: 0.85rem; font-weight: 600; background: rgba(255, 255, 255, 0.06); transition: background-color 0.25s, color 0.25s; }
.chip:hover { background: var(--cyan); color: var(--ink); }

/* --- Résultats & calendrier (aperçu) --- */
.fixtures { display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px; }
.result-hero {
  position: relative; border-radius: var(--radius); overflow: hidden; min-height: 460px;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 32px;
  isolation: isolate;
}
.result-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease-out); }
.result-hero:hover img { transform: scale(1.04); }
.result-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(11, 13, 16, 0.95) 10%, rgba(11, 13, 16, 0.2) 70%); }
.result-score { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; margin: 18px 0 16px; }
.result-score strong { font-size: clamp(4rem, 8vw, 7rem); line-height: 0.85; white-space: nowrap; }
.result-score .team-name { font-size: clamp(1rem, 1.5vw, 1.3rem); font-weight: 800; text-transform: uppercase; font-variation-settings: "wdth" 75; line-height: 1.15; }
.result-score .team-name:last-child { text-align: right; }
.result-outcome { display: inline-block; padding: 4px 10px; border-radius: 6px; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.1em; }
.outcome-V { background: var(--cyan); color: var(--ink); }
.outcome-N { background: #e3e6ea; color: var(--ink); }
.outcome-D { background: var(--orange); color: var(--ink); }

.fixture-list { display: grid; gap: 10px; align-content: start; }
.fixture {
  display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 18px;
  padding: 16px 18px; border-radius: var(--radius-sm); background: var(--ink-2); border: 1px solid var(--line);
  transition: background-color 0.3s, border-color 0.3s, transform 0.5s var(--ease-out);
}
.fixture:hover { background: var(--ink-3); border-color: var(--line-strong); transform: translateX(6px); }
.fixture-date { text-align: center; line-height: 1; }
.fixture-date strong { display: block; font-size: 1.9rem; font-weight: 850; font-variation-settings: "wdth" 62; }
.fixture-date span { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.fixture-info strong { display: block; font-weight: 700; line-height: 1.3; }
.fixture-info span { font-size: 0.85rem; color: var(--muted); }
.fixture-side { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 5px 9px; border-radius: 6px; background: rgba(255, 255, 255, 0.06); color: var(--muted); }
.fixture-side.is-home { background: rgba(67, 211, 245, 0.14); color: var(--cyan); }
.fixtures-foot { margin-top: 8px; }

/* --- Chiffres clés --- */
.stats-wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.stats-photo { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; }
.stats-photo img { width: 100%; height: 115%; object-fit: cover; }
.stats-photo figcaption { position: absolute; left: 16px; bottom: 16px; padding: 8px 12px; border-radius: 8px; background: rgba(11, 13, 16, 0.7); backdrop-filter: blur(8px); font-size: 0.8rem; }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid rgba(20, 23, 28, 0.14); }
.stat { padding: 28px 8px 28px 0; border-bottom: 1px solid rgba(20, 23, 28, 0.14); }
.stat:nth-child(odd) { border-right: 1px solid rgba(20, 23, 28, 0.14); }
.stat:nth-child(even) { padding-left: 28px; }
.stat strong { display: block; font-size: clamp(3.4rem, 7vw, 6rem); line-height: 0.9; font-variant-numeric: tabular-nums; }
.stat strong sup { font-size: 0.45em; color: var(--cyan-600); vertical-align: top; position: relative; top: 0.15em; }
.stat > span { display: block; margin-top: 8px; font-weight: 600; color: #4c535c; }
.labels { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.label-pill { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px; background: var(--paper-ink); color: var(--paper); font-size: 0.85rem; font-weight: 700; }
.label-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }

/* --- Projet socio-éducatif (défilement horizontal) --- */
.engage { overflow: hidden; }
.engage-pin { display: flex; flex-direction: column; justify-content: center; min-height: 100svh; padding-block: 100px 60px; }
.engage-track { display: flex; gap: 20px; padding-inline: var(--gutter); will-change: transform; }
.engage-intro { flex: 0 0 min(440px, 80vw); display: flex; flex-direction: column; justify-content: space-between; padding-right: 40px; }
.engage-intro p { color: var(--muted); margin-top: 24px; }
.engage-intro blockquote { margin: 32px 0 0; padding-left: 18px; border-left: 2px solid var(--orange); font-style: italic; color: rgba(243, 245, 246, 0.85); }
.engage-intro cite { display: block; margin-top: 10px; font-style: normal; font-size: 0.85rem; color: var(--muted); }
.engage-card {
  flex: 0 0 min(400px, 78vw); min-height: 480px; border-radius: var(--radius);
  background: var(--ink-2); border: 1px solid var(--line); padding: 28px;
  display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden;
}
.engage-card .num { font-size: clamp(5rem, 9vw, 8rem); line-height: 0.85; color: var(--cyan); }
.engage-card .num small { font-size: 1rem; line-height: 1.3; color: var(--muted); font-variation-settings: "wdth" 100; letter-spacing: 0.04em; text-transform: none; font-weight: 600; display: block; margin-top: 10px; }
.engage-card h3 { font-size: var(--fs-h3); font-weight: 800; line-height: 1.15; margin-bottom: 10px; }
.engage-card p { color: var(--muted); font-size: 0.98rem; }
.engage-card--photo { padding: 0; }
.engage-card--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.engage-card--photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(11, 13, 16, 0.9), transparent 55%); }
.engage-card--photo div { position: relative; z-index: 1; margin-top: auto; padding: 28px; }
.engage-progress { margin: 40px var(--gutter) 0; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.engage-progress span { display: block; height: 100%; background: var(--cyan); transform-origin: left; transform: scaleX(0); }

/* --- Actualités --- */
.news-grid { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: auto auto; gap: 16px; }
.news-card { position: relative; display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--ink-2); border: 1px solid var(--line); }
.news-card:first-child { grid-row: span 2; }
.news-media { position: relative; overflow: hidden; aspect-ratio: 16 / 10; }
.news-card:first-child .news-media { aspect-ratio: auto; flex: 1; min-height: 340px; }
.news-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.news-card:hover .news-media img { transform: scale(1.06); }
.news-body { padding: 22px 24px 26px; display: grid; gap: 10px; }
.news-meta { display: flex; gap: 12px; align-items: center; font-size: 0.8rem; color: var(--muted); }
.news-body h3 { font-size: clamp(1.2rem, 1.7vw, 1.55rem); font-weight: 800; line-height: 1.2; }
.news-card:first-child .news-body h3 { font-size: clamp(1.5rem, 2.4vw, 2.2rem); }
.news-body p { color: var(--muted); font-size: 0.95rem; }
.news-card a::after { content: ""; position: absolute; inset: 0; } /* carte entière cliquable */

/* --- Boutique (teaser) --- */
.shop-banner {
  position: relative; border-radius: calc(var(--radius) + 6px); overflow: hidden;
  display: grid; grid-template-columns: 1fr 0.9fr; min-height: 560px;
  background: var(--cyan); color: var(--ink); isolation: isolate;
}
.shop-copy { padding: clamp(32px, 5vw, 72px); display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.shop-copy .eyebrow { color: var(--ink); }
.shop-copy h2 { font-size: clamp(3rem, 7vw, 6.6rem); margin-top: 16px; }
.shop-copy p { max-width: 38ch; margin-top: 18px; font-weight: 500; }
.shop-media { position: relative; overflow: hidden; }
.shop-media img { position: absolute; inset: -8% 0 0; width: 100%; height: 116%; object-fit: cover; }
.shop-tag {
  position: absolute; right: 24px; top: 24px; z-index: 1;
  width: 120px; height: 120px; border-radius: 50%; background: var(--ink); color: var(--cyan);
  display: grid; place-items: center; text-align: center; font-weight: 850; font-variation-settings: "wdth" 62;
  text-transform: uppercase; line-height: 1; font-size: 1.2rem; transform: rotate(12deg);
}

/* --- Partenaires --- */
.partners-marquee { --gap: 16px; display: flex; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.partners-marquee .marquee-track { animation-duration: 40s; }
.partner-logo {
  flex: 0 0 auto; display: grid; place-items: center; text-align: center;
  min-width: 240px; height: 120px; padding: 0 28px; border-radius: var(--radius-sm);
  background: var(--ink-2); border: 1px solid var(--line);
  transition: border-color 0.3s, background-color 0.3s;
}
.partner-logo:hover { border-color: var(--cyan); background: var(--ink-3); }
.partner-logo strong { display: block; font-size: 1.35rem; font-weight: 850; font-variation-settings: "wdth" 75; text-transform: uppercase; }
.partner-logo span { font-size: 0.78rem; color: var(--muted); }
.partners-cta { margin-top: 56px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px; padding: 32px; border-radius: var(--radius); border: 1px dashed var(--line-strong); }
.partners-cta h3 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.partners-cta p { color: var(--muted); margin-top: 8px; max-width: 60ch; }

/* 8. Footer ---------------------------------------------------------------- */
.site-footer { position: relative; background: #07080a; border-top: 1px solid var(--line); padding-top: clamp(64px, 9vw, 120px); overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.footer-brand img { width: 84px; height: 84px; margin-bottom: 20px; }
.footer-brand p { color: var(--muted); max-width: 32ch; }
.site-footer h4 { font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; font-weight: 700; }
.site-footer li + li { margin-top: 10px; }
.site-footer li a { transition: color 0.25s; }
.site-footer li a:hover { color: var(--cyan); }
.footer-address { font-style: normal; color: rgba(243, 245, 246, 0.85); }
.footer-address + .footer-address { margin-top: 16px; }
.footer-address strong { display: block; color: var(--text); }
.socials { display: flex; gap: 10px; margin-top: 24px; }
.socials a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px var(--line-strong); transition: background-color 0.3s, color 0.3s, box-shadow 0.3s, transform 0.4s var(--ease-out); }
.socials a:hover { background: var(--cyan); color: var(--ink); box-shadow: none; transform: translateY(-3px); }
.socials svg { width: 18px; height: 18px; }
.footer-giant { margin-top: 64px; font-size: clamp(3rem, 12.5vw, 13rem); line-height: 0.8; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.1); white-space: nowrap; text-align: center; transform: translateY(12%); user-select: none; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 24px; border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--muted); position: relative; z-index: 1; background: #07080a; }
.footer-bottom a:hover { color: var(--text); }

/* 9. Animations d'apparition ----------------------------------------------- */
/* L'état caché n'est appliqué que si JS est actif (classe .js sur <html>) */
.js [data-reveal]:not(.is-revealed) { opacity: 0; transform: translateY(40px); }
.js [data-reveal="fade"]:not(.is-revealed) { transform: none; }
.js [data-reveal="scale"]:not(.is-revealed) { transform: scale(0.94); }
.js [data-reveal="clip"]:not(.is-revealed) { opacity: 1; transform: none; clip-path: inset(100% 0 0 0); }
/* Le hero reste masqué jusqu'à son intro animée (évite un flash) */
.js .hero-media, .js .hero-bg-word, .js .hero-content, .js .scroll-cue { visibility: hidden; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; clip-path: none; }
  .js .hero-media, .js .hero-bg-word, .js .hero-content, .js .scroll-cue { visibility: visible; }
  @view-transition { navigation: none; }
}

/* 10. Responsive ----------------------------------------------------------- */
@media (max-width: 1100px) {
  .main-nav, .header-actions .btn--ghost { display: none; }
  .menu-toggle { display: block; }
  .header-actions { margin-left: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero-media { width: 100%; -webkit-mask-image: none; mask-image: none; }
  .hero-media::after { background: linear-gradient(0deg, var(--ink) 18%, rgba(11, 13, 16, 0.55) 55%, rgba(11, 13, 16, 0.35) 100%); }
  .hero-content { grid-template-columns: 1fr; }
  .hero-title { font-size: clamp(4rem, 19vw, 7rem); }
  .scroll-cue { display: none; }
  .paths, .fixtures, .stats-wrap, .shop-banner { grid-template-columns: 1fr; }
  .stats-photo { aspect-ratio: 16 / 11; }
  .news-grid { grid-template-columns: 1fr; }
  .news-card:first-child { grid-row: auto; }
  .shop-media { min-height: 360px; }
  .partners-cta { grid-template-columns: 1fr; }
  /* Projet : défilement tactile horizontal au lieu de l'épinglage */
  .engage-pin { min-height: 0; padding-block: 88px 72px; }
  .engage-track { overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; padding-bottom: 4px; }
  .engage-track::-webkit-scrollbar { display: none; }
  .engage-track > * { scroll-snap-align: start; }
  .engage-intro { flex-basis: 86vw; padding-right: 8px; }
  .engage-progress { display: none; }
}
@media (max-width: 600px) {
  :root { --header-h: 68px; }
  .brand-name { display: none; }
  .header-actions .btn { display: none; }
  .path-card { min-height: 0; }
  .result-hero { min-height: 400px; padding: 24px; }
  .fixture { grid-template-columns: 52px 1fr; }
  .fixture-side { display: none; }
  .stat:nth-child(even) { padding-left: 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .engage-card { min-height: 420px; }
}
