/* =========================================================
   TELECOM RACING — feuille de style principale
   ========================================================= */

:root {
  /* --- Couleurs de marque --- */
  --tr-red: #d3392f;
  --tr-red-dark: #a8261e;
  --tr-red-light: #ff6a56;
  --tr-red-soft: rgba(211, 57, 47, 0.12);
  --tr-red-glow: rgba(211, 57, 47, 0.45);

  /* --- Neutres --- */
  --tr-black: #0a0a0c;
  --tr-black-soft: #121317;
  --tr-black-card: #1a1c21;
  --tr-ink: #16181d;
  --tr-white: #ffffff;
  --tr-grey-050: #fafafb;
  --tr-grey-100: #f4f4f6;
  --tr-grey-200: #e9e9ee;
  --tr-grey-300: #dcdce2;
  --tr-grey-500: #8d8f99;
  --tr-grey-700: #5b5e68;

  /* --- Typographie --- */
  --font-display: "Archivo", "Arial Black", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* --- Structure --- */
  --max-width: 1180px;
  --gutter: 24px;
  --nav-height: 78px;
  --section-padding: clamp(72px, 9vw, 116px);

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 26px;

  --shadow-sm: 0 1px 2px rgba(16, 18, 22, 0.05), 0 6px 16px -12px rgba(16, 18, 22, 0.4);
  --shadow-md: 0 2px 4px rgba(16, 18, 22, 0.04), 0 24px 48px -28px rgba(16, 18, 22, 0.45);
  --shadow-lg: 0 40px 80px -40px rgba(10, 10, 12, 0.55);
  --shadow-card: var(--shadow-md);

  --ease: cubic-bezier(0.22, 0.72, 0.24, 1);
  --transition: 0.25s var(--ease);

  /* Grain léger réutilisé sur les fonds sombres */
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--tr-white);
  color: var(--tr-ink);
  line-height: 1.65;
  letter-spacing: -0.003em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 110%;
  text-transform: uppercase;
  letter-spacing: -0.012em;
  line-height: 1.05;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

p {
  margin: 0 0 1em;
  text-wrap: pretty;
}

strong {
  font-weight: 650;
  color: var(--tr-ink);
}

.section--dark strong,
.card--dark strong {
  color: var(--tr-white);
}

::selection {
  background: var(--tr-red);
  color: var(--tr-white);
}

:focus-visible {
  outline: 2px solid var(--tr-red);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Les ancres ne passent plus sous la barre de navigation */
[id] {
  scroll-margin-top: calc(var(--nav-height) + 24px);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Transition entre les pages ---------- */
main {
  transition: opacity 0.22s var(--ease);
}

body.is-leaving main {
  opacity: 0;
}

/* ---------- Sections ---------- */
.section {
  position: relative;
  padding: var(--section-padding) 0;
}

.section--tight {
  padding: clamp(48px, 6vw, 68px) 0;
}

.section--dark {
  background: var(--tr-black);
  color: var(--tr-white);
  overflow: hidden;
  isolation: isolate;
}

.section--dark::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(90% 120% at 50% -10%, rgba(211, 57, 47, 0.22), transparent 60%),
    radial-gradient(60% 80% at 88% 110%, rgba(211, 57, 47, 0.12), transparent 65%);
}

.section--dark::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.035;
  background-image: var(--noise);
  pointer-events: none;
}

.section--grey {
  background:
    linear-gradient(180deg, var(--tr-grey-050) 0%, var(--tr-grey-100) 100%);
  border-top: 1px solid var(--tr-grey-200);
  border-bottom: 1px solid var(--tr-grey-200);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--tr-red);
  margin-bottom: 16px;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--tr-red-light), var(--tr-red));
  display: inline-block;
  flex: none;
}

.section-head {
  max-width: 760px;
  margin: 0 0 clamp(36px, 5vw, 56px);
}

.section-head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head--center .eyebrow {
  justify-content: center;
}

.section-head h2 {
  font-size: clamp(1.9rem, 4.2vw, 2.9rem);
  letter-spacing: -0.02em;
}

.lead {
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--tr-grey-700);
}

.section--dark .lead {
  color: rgba(255, 255, 255, 0.72);
}

/* ---------- Motif damier ---------- */
.checker-strip {
  height: 12px;
  background-image: repeating-conic-gradient(var(--tr-black) 0% 25%, var(--tr-white) 0% 50%);
  background-size: 12px 12px;
  opacity: 0.9;
}

.checker-tag {
  display: inline-block;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background-image: repeating-conic-gradient(var(--tr-black) 0% 25%, var(--tr-white) 0% 50%);
  background-size: 9px 9px;
  box-shadow: 0 6px 18px -8px rgba(10, 10, 12, 0.6);
  flex: none;
}

/* ---------- Barre de progression de lecture ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 200;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--tr-red-dark), var(--tr-red), var(--tr-red-light));
  box-shadow: 0 0 12px var(--tr-red-glow);
  transform-origin: left center;
}

/* ---------- Boutons ---------- */
.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 16px 32px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform var(--transition), background var(--transition),
    color var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, 0.32) 48%, transparent 64%);
  transform: translateX(-130%);
  transition: transform 0.75s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:hover::after {
  transform: translateX(130%);
}

.btn:active {
  transform: translateY(0) scale(0.985);
}

.btn--primary {
  background: linear-gradient(180deg, var(--tr-red) 0%, #a8261e 100%);
  color: var(--tr-white);
  box-shadow: 0 12px 26px -12px var(--tr-red-glow), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn--primary:hover {
  background: linear-gradient(180deg, var(--tr-red-light) 0%, var(--tr-red) 100%);
  box-shadow: 0 18px 34px -14px var(--tr-red-glow), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn--outline {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--tr-white);
  backdrop-filter: blur(6px);
}

.btn--outline:hover {
  border-color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.12);
}

.btn--dark {
  background: linear-gradient(180deg, #24262c 0%, var(--tr-black) 100%);
  color: var(--tr-white);
  box-shadow: 0 14px 30px -16px rgba(10, 10, 12, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn--dark:hover {
  background: linear-gradient(180deg, #303239 0%, #131418 100%);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  /* Opaque en haut de page (le fond blanc du body passerait au travers),
     effet verre dépoli uniquement une fois la page défilée. */
  background: var(--tr-black);
  transition: background var(--transition), box-shadow var(--transition);
}

.navbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16) 20%, rgba(211, 57, 47, 0.5) 50%, rgba(255, 255, 255, 0.16) 80%, transparent);
}

.navbar.is-scrolled {
  background: rgba(10, 10, 12, 0.86);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 16px 34px -24px rgba(0, 0, 0, 0.85);
}

.navbar__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  transition: height var(--transition);
}

.navbar.is-scrolled .navbar__inner {
  height: 64px;
}

.navbar__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  transition: transform var(--transition);
}

.navbar__brand:hover {
  transform: translateY(-1px);
}

.navbar__brand img {
  height: 34px;
  width: auto;
  filter: drop-shadow(0 4px 14px rgba(211, 57, 47, 0.28));
  transition: height var(--transition);
}

.navbar.is-scrolled .navbar__brand img {
  height: 29px;
}

.navbar__links {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
}

/* Pastille rouge qui glisse d'un lien à l'autre (positionnée en JS) */
.navbar__indicator {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--tr-red) 0%, #a8261e 100%);
  box-shadow: 0 8px 20px -10px var(--tr-red-glow);
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  transition: transform 0.45s var(--ease), width 0.45s var(--ease),
    height 0.45s var(--ease), top 0.45s var(--ease), opacity 0.3s var(--ease);
}

.navbar__links a {
  position: relative;
  z-index: 1;
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.58);
  padding: 10px 14px;
  border-radius: 999px;
  transition: color var(--transition), background var(--transition);
}

/* Au survol, seul le mot s'éclaircit : la pastille, elle, ne bouge qu'au clic */
.navbar__links a:hover,
.navbar__links a:focus-visible,
.navbar__links a.is-active {
  color: var(--tr-white);
}

.navbar__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  cursor: pointer;
  padding: 0;
  align-items: center;
}

.navbar__toggle span {
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--tr-white);
  transition: transform var(--transition), opacity var(--transition);
}

.navbar__toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.navbar__toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.navbar__toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(120% 100% at 78% 0%, #2b100d 0%, transparent 58%),
    linear-gradient(180deg, #141519 0%, var(--tr-black) 65%);
  color: var(--tr-white);
  overflow: hidden;
  padding: clamp(96px, 13vw, 152px) 0 clamp(84px, 10vw, 124px);
}

/* Traits de vitesse en diagonale */
.hero::before {
  content: "";
  position: absolute;
  inset: -10% -20%;
  z-index: -2;
  background:
    linear-gradient(108deg, transparent 62.4%, var(--tr-red) 62.4%, var(--tr-red) 67.4%, transparent 67.4%),
    linear-gradient(108deg, transparent 68.6%, rgba(211, 57, 47, 0.32) 68.6%, rgba(211, 57, 47, 0.32) 70.7%, transparent 70.7%),
    linear-gradient(108deg, transparent 72.0%, rgba(255, 255, 255, 0.07) 72.0%, rgba(255, 255, 255, 0.07) 72.8%, transparent 72.8%),
    linear-gradient(108deg, transparent 78.5%, rgba(211, 57, 47, 0.16) 78.5%, rgba(211, 57, 47, 0.16) 79.6%, transparent 79.6%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 74%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 74%, transparent 100%);
}

/* Voile de lisibilité + halo + grain */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg, rgba(10, 10, 12, 0.97) 0%, rgba(10, 10, 12, 0.92) 38%, rgba(10, 10, 12, 0.36) 64%, rgba(10, 10, 12, 0) 82%),
    linear-gradient(0deg, var(--tr-black) 0%, rgba(10, 10, 12, 0) 30%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.028) 0 1px, transparent 1px 72px),
    radial-gradient(60% 50% at 50% 118%, rgba(211, 57, 47, 0.22), transparent 62%);
}

.hero__inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.hero--page {
  padding: clamp(72px, 9vw, 104px) 0 clamp(64px, 8vw, 92px);
}

.hero__tag {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 22px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero__tag::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tr-red-light);
  box-shadow: 0 0 0 4px rgba(211, 57, 47, 0.22);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(211, 57, 47, 0.28); }
  50% { box-shadow: 0 0 0 7px rgba(211, 57, 47, 0.05); }
}

.hero h1 {
  font-size: clamp(2.6rem, 7.2vw, 5rem);
  font-weight: 900;
  font-stretch: 115%;
  letter-spacing: -0.028em;
  line-height: 0.96;
  max-width: 15ch;
  margin-bottom: 0.4em;
}

.hero h1 span {
  color: var(--tr-red);
  background: linear-gradient(96deg, var(--tr-red-light) 0%, var(--tr-red) 42%, #8e2019 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 8px 28px rgba(211, 57, 47, 0.35));
}

.hero p {
  max-width: 56ch;
  font-size: clamp(1rem, 1.6vw, 1.16rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.74);
  margin-bottom: 2em;
}

.hero--page h1 {
  font-size: clamp(2.1rem, 5.4vw, 3.5rem);
}

.hero--page p {
  margin-bottom: 0;
}

/* Entrée animée du hero */
.hero__inner > * {
  animation: heroIn 0.85s var(--ease) both;
}

.hero__inner > *:nth-child(1) { animation-delay: 0.05s; }
.hero__inner > *:nth-child(2) { animation-delay: 0.14s; }
.hero__inner > *:nth-child(3) { animation-delay: 0.23s; }
.hero__inner > *:nth-child(4) { animation-delay: 0.32s; }
.hero__inner > *:nth-child(5) { animation-delay: 0.42s; }

@keyframes heroIn {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

.scroll-cue {
  margin-top: clamp(40px, 6vw, 64px);
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.scroll-cue__line {
  width: 52px;
  height: 1px;
  background: rgba(255, 255, 255, 0.22);
  position: relative;
  overflow: hidden;
}

.scroll-cue__line::after {
  content: "";
  position: absolute;
  left: -52px;
  top: 0;
  width: 52px;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--tr-red), transparent);
  animation: cue 2s ease-in-out infinite;
}

@keyframes cue {
  0% { left: -52px; }
  60%, 100% { left: 52px; }
}

/* ---------- Bandeau de chiffres ---------- */
.stat-strip {
  position: relative;
  background: var(--tr-black);
  color: var(--tr-white);
  padding: clamp(36px, 5vw, 52px) 0;
  overflow: hidden;
}

.stat-strip::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(211, 57, 47, 0.65), transparent);
}

.stat-strip__row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.stat-strip__item {
  position: relative;
  text-align: center;
  padding: 4px 8px;
}

.stat-strip__item::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 10%;
  bottom: 10%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.16), transparent);
}

.stat-strip__item:first-child::before {
  display: none;
}

.stat-strip__num {
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: 112%;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, var(--tr-red-light), var(--tr-red) 60%, #8e2019);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
  margin-bottom: 6px;
}

.stat-strip__label {
  font-size: 0.76rem;
  line-height: 1.5;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.48);
  display: block;
}

/* ---------- Cartes / grilles ---------- */
.grid {
  display: grid;
  gap: 26px;
  align-items: stretch;
}

.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--tr-white);
  border: 1px solid var(--tr-grey-200);
  border-radius: var(--radius);
  padding: 34px 30px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--tr-red), var(--tr-red-light));
  transition: width 0.5s var(--ease);
}

.card:hover::before {
  width: 100%;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--tr-grey-300);
}

.card__icon {
  width: 54px;
  height: 54px;
  border-radius: 15px;
  background: linear-gradient(150deg, #262931 0%, var(--tr-black) 100%);
  color: var(--tr-white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  flex: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 12px 24px -14px rgba(10, 10, 12, 0.8);
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
}

.card:hover .card__icon {
  background: linear-gradient(150deg, var(--tr-red-light) 0%, var(--tr-red-dark) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 14px 26px -12px var(--tr-red-glow);
  transform: translateY(-2px);
}

/* Le damier peut remplacer l'icône dans une carte : même gabarit */
.card > .checker-tag {
  width: 54px;
  height: 54px;
  border-radius: 15px;
  background-size: 11px 11px;
  margin-bottom: 22px;
}

.card h3 {
  font-size: 1.1rem;
  letter-spacing: 0.005em;
  margin-bottom: 12px;
}

.card p {
  color: var(--tr-grey-700);
  margin-bottom: 0;
  font-size: 0.97rem;
}

.card p + p {
  margin-top: 1em;
}

.card--dark {
  background: linear-gradient(160deg, var(--tr-black-card) 0%, var(--tr-black) 100%);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--tr-white);
}

.card--dark p {
  color: rgba(255, 255, 255, 0.7);
}

.card--dark .card__icon {
  background: linear-gradient(150deg, var(--tr-red-light), var(--tr-red-dark));
  color: var(--tr-white);
}

.card__link {
  align-self: flex-start;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 20px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--tr-red);
  transition: color var(--transition);
}

.card__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--tr-red), var(--tr-red-light));
  transition: width 0.4s var(--ease);
}

.card__link:hover::after {
  width: 100%;
}

.card__link:hover {
  color: var(--tr-red-dark);
}

/* ---------- Blocs événements ---------- */
.event-block {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 60px);
  align-items: start;
  padding: clamp(44px, 6vw, 68px) 0;
  position: relative;
}

.event-block + .event-block::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--tr-grey-300), transparent 70%);
}

.event-block:first-child {
  padding-top: 0;
}

.event-block:last-child {
  padding-bottom: 0;
}

.event-block__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tr-white);
  background: linear-gradient(180deg, #24262c, var(--tr-black));
  padding: 9px 18px;
  border-radius: 999px;
  margin-bottom: 22px;
  box-shadow: 0 12px 24px -16px rgba(10, 10, 12, 0.9);
}

.event-block__badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tr-red);
  box-shadow: 0 0 0 3px rgba(211, 57, 47, 0.25);
  animation: pulse 2.4s ease-in-out infinite;
}

.event-block h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.event-block p {
  color: var(--tr-grey-700);
}

.event-block .lead {
  font-size: 1.05rem;
  color: var(--tr-ink);
  font-weight: 500;
  padding-left: 20px;
  border-left: 3px solid var(--tr-red);
  margin-bottom: 0;
}

.event-block__facts {
  position: sticky;
  top: calc(var(--nav-height) + 24px);
  background: linear-gradient(165deg, var(--tr-black-card) 0%, var(--tr-black) 100%);
  color: var(--tr-white);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 32px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.event-block__facts::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--tr-red), transparent);
}

.event-block__facts h4 {
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  color: var(--tr-red-light);
  margin-bottom: 18px;
}

.fact-list li {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 0.94rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
}

.fact-list li:first-child {
  border-top: none;
  padding-top: 0;
}

.fact-list li:last-child {
  padding-bottom: 0;
}

.fact-list li::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  margin-top: 9px;
  background: var(--tr-red);
  transform: rotate(45deg);
  box-shadow: 0 0 10px rgba(211, 57, 47, 0.6);
}

/* ---------- Timeline ---------- */
.timeline {
  display: flex;
  gap: 0;
  border-top: 3px solid var(--tr-black);
  margin-top: 8px;
}

.timeline__item {
  flex: 1;
  padding: 22px 24px;
  border-right: 1px solid var(--tr-grey-300);
}

.timeline__item:last-child {
  border-right: none;
}

.timeline__year {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--tr-red);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
}

/* ---------- Roulette des bureaux ---------- */
.carousel {
  position: relative;
}

.carousel__track {
  overflow: hidden;
}

.carousel__slides {
  display: flex;
  transition: transform 0.55s var(--ease);
}

.carousel__slide {
  flex: 0 0 100%;
  width: 100%;
}

.bureau-year {
  text-align: center;
  margin-bottom: clamp(32px, 5vw, 48px);
}

.bureau-year__label {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: var(--tr-red);
  text-transform: uppercase;
}

.bureau-year__title {
  font-size: clamp(1.9rem, 4.4vw, 2.8rem);
  letter-spacing: -0.02em;
  margin: 8px 0 0;
}

.members-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(22px, 3vw, 34px);
}

.members-grid--3 {
  grid-template-columns: repeat(3, 1fr);
  max-width: 720px;
  margin: 0 auto;
}

.member-card {
  text-align: center;
}

.member-card__photo {
  position: relative;
  width: 100%;
  max-width: 176px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 20px;
  border: 3px solid transparent;
  background-image:
    linear-gradient(var(--tr-black), var(--tr-black)),
    linear-gradient(150deg, var(--tr-red-light) 0%, var(--tr-red) 45%, #6d221b 100%);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  box-shadow: 0 0 0 0 rgba(211, 57, 47, 0.3), 0 22px 40px -24px rgba(10, 10, 12, 0.7);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.member-card:hover .member-card__photo {
  transform: translateY(-6px);
  box-shadow: 0 0 0 7px rgba(211, 57, 47, 0.12), 0 30px 50px -26px rgba(10, 10, 12, 0.8);
}

.member-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.member-card:hover .member-card__photo img {
  transform: scale(1.05);
}

.member-card__initials {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 112%;
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  letter-spacing: 0.02em;
  color: var(--tr-white);
  background:
    radial-gradient(80% 80% at 30% 20%, rgba(211, 57, 47, 0.28), transparent 60%),
    linear-gradient(150deg, #22242a 0%, var(--tr-black) 100%);
}

.member-card__role {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--tr-red);
  margin-bottom: 4px;
}

.member-card__name {
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0;
}

.carousel__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-top: clamp(36px, 5vw, 52px);
}

.carousel__btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--tr-grey-300);
  background: var(--tr-white);
  color: var(--tr-black);
  font-size: 1.05rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: background var(--transition), color var(--transition),
    border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.carousel__btn:hover {
  background: linear-gradient(180deg, var(--tr-red), #a8261e);
  border-color: transparent;
  color: var(--tr-white);
  transform: translateY(-2px);
  box-shadow: 0 14px 26px -12px var(--tr-red-glow);
}

.carousel__dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.carousel__dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--tr-grey-300);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background var(--transition), width var(--transition);
}

.carousel__dot:hover {
  background: var(--tr-grey-500);
}

.carousel__dot.is-active {
  background: linear-gradient(90deg, var(--tr-red), var(--tr-red-light));
  width: 26px;
}

/* ---------- Palmarès (équipe de course) ---------- */
.trophy {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 30px;
  background: linear-gradient(140deg, #1d1f25 0%, var(--tr-black) 60%);
  color: var(--tr-white);
  border-radius: var(--radius-lg);
  padding: clamp(30px, 4vw, 42px) clamp(28px, 4vw, 44px);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.trophy::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(50% 120% at 88% 50%, rgba(211, 57, 47, 0.28), transparent 62%);
  pointer-events: none;
}

.trophy > * {
  position: relative;
}

.trophy__icon {
  font-size: 2.6rem;
  flex: none;
  color: var(--tr-red);
  filter: drop-shadow(0 6px 18px rgba(211, 57, 47, 0.45));
}

.trophy__num {
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: 112%;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, var(--tr-red-light), var(--tr-red) 70%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.trophy__label {
  color: rgba(255, 255, 255, 0.66);
}

.stat-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.stat-mini {
  background: var(--tr-white);
  border: 1px solid var(--tr-grey-200);
  border-radius: var(--radius);
  padding: 26px 22px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.stat-mini:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.stat-mini__num {
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: 112%;
  font-size: 1.9rem;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, var(--tr-red), #8e2019);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
  margin-bottom: 6px;
}

.stat-mini__label {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--tr-grey-700);
}

/* ---------- Formules sponsors ---------- */
.tier-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--tr-white);
  border: 1px solid var(--tr-grey-200);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.tier-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--tr-grey-300);
}

.tier-card--highlight {
  border-color: transparent;
  background: linear-gradient(165deg, #22252b 0%, var(--tr-black) 100%);
  color: var(--tr-white);
  box-shadow: 0 30px 60px -30px rgba(10, 10, 12, 0.7), 0 0 0 1px rgba(211, 57, 47, 0.4);
}

.tier-card--highlight::before {
  content: "";
  position: absolute;
  top: 0;
  left: 26px;
  right: 26px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--tr-red), transparent);
}

.tier-card--highlight:hover {
  box-shadow: 0 40px 70px -30px rgba(10, 10, 12, 0.8), 0 0 0 1px rgba(211, 57, 47, 0.7);
}

.tier-card__badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tr-white);
  background: linear-gradient(180deg, var(--tr-red), #a8261e);
  padding: 5px 14px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 10px 20px -10px var(--tr-red-glow);
}

.tier-card__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 110%;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-size: 1.05rem;
  margin-bottom: 16px;
}

.tier-card__list li {
  padding: 11px 0;
  border-top: 1px solid var(--tr-grey-200);
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--tr-grey-700);
  display: flex;
  gap: 11px;
  align-items: flex-start;
}

.tier-card__list li:first-child {
  border-top: none;
}

.tier-card__list li::before {
  content: "✓";
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--tr-red-soft);
  color: var(--tr-red);
  font-size: 0.66rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tier-card--highlight .tier-card__list li {
  color: rgba(255, 255, 255, 0.78);
  border-top-color: rgba(255, 255, 255, 0.1);
}

.tier-card--highlight .tier-card__list li::before {
  background: rgba(211, 57, 47, 0.22);
  color: var(--tr-red-light);
}

/* ---------- Anciens partenaires ---------- */
/* En flex plutôt qu'en grille : quand la rangée se coupe, la dernière ligne
   reste centrée au lieu de laisser un trou à droite. */
.trust-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.trust-logo {
  flex: 1 1 168px;
  min-width: 148px;
  max-width: 232px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 22px;
  border: 1px solid var(--tr-grey-200);
  border-radius: var(--radius);
  /* Les logos sont sombres et détourés : ils ont besoin d'un fond clair */
  background: var(--tr-white);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.trust-logo:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--tr-grey-300);
}

.trust-logo img {
  width: 100%;
  height: auto;
}

.empty-state {
  position: relative;
  border: 2px dashed var(--tr-grey-300);
  border-radius: var(--radius-lg);
  padding: clamp(44px, 6vw, 68px) 30px;
  text-align: center;
  color: var(--tr-grey-700);
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(211, 57, 47, 0.05), transparent 70%),
    var(--tr-grey-050);
}

.empty-state h3 {
  color: var(--tr-ink);
}

.empty-state .checker-tag {
  width: 48px;
  height: 48px;
  background-size: 12px 12px;
  margin: 0 auto 22px;
}

/* ---------- Galerie ---------- */
.gallery-event + .gallery-event {
  margin-top: clamp(48px, 6vw, 76px);
}

.gallery-event__head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 24px;
}

.gallery-event__head h3 {
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  letter-spacing: -0.015em;
  margin: 0;
  flex: none;
}

.gallery-event__count {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tr-red);
  flex: none;
}

/* Trait de séparation qui remplit l'espace restant */
.gallery-event__head::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--tr-grey-300), transparent);
}

/* Mosaïque en colonnes : chaque photo garde ses proportions, rien n'est recadré */
.gallery-grid {
  column-count: 3;
  column-gap: 18px;
}

/* Le nombre de colonnes suit le nombre de photos : aucune colonne ne reste vide,
   et une série courte s'affiche simplement en plus grand. */
.gallery-grid--duo {
  column-count: 2;
}

.gallery-grid--single {
  column-count: 1;
  max-width: 640px;
}

.gallery-tile {
  position: relative;
  display: block;
  width: 100%;
  break-inside: avoid;
  margin: 0 0 18px;
  padding: 0;
  border: none;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(150deg, #1e2026 0%, var(--tr-black) 100%);
  box-shadow: var(--shadow-sm);
  cursor: zoom-in;
  transition: transform var(--transition), box-shadow var(--transition);
}

.gallery-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(10, 10, 12, 0.5) 100%);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

.gallery-tile:hover,
.gallery-tile:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.gallery-tile:hover::after,
.gallery-tile:focus-visible::after {
  opacity: 1;
}

.gallery-tile img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.8s var(--ease);
}

.gallery-tile:hover img {
  transform: scale(1.04);
}

/* ---------- Visionneuse plein écran ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 48px);
  background: rgba(6, 6, 8, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}

.lightbox[hidden] {
  display: none;
}

.lightbox.is-open {
  opacity: 1;
}

.lightbox__figure {
  position: relative;
  margin: 0;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  transform: scale(0.97);
  transition: transform 0.25s var(--ease);
}

.lightbox.is-open .lightbox__figure {
  transform: scale(1);
}

.lightbox__figure img {
  max-width: 100%;
  max-height: calc(100vh - 190px);
  width: auto;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.9);
}

.lightbox__caption {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
  max-width: 60ch;
}

.lightbox__index {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--tr-red-light);
  flex: none;
}

.lightbox__btn {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: var(--tr-white);
  font-size: 1.2rem;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.lightbox__btn:hover {
  background: linear-gradient(180deg, var(--tr-red), #a8261e);
  border-color: transparent;
  transform: scale(1.06);
}

.lightbox__close {
  top: clamp(12px, 3vw, 28px);
  right: clamp(12px, 3vw, 28px);
}

.lightbox__prev {
  left: clamp(12px, 3vw, 28px);
  top: 50%;
  margin-top: -24px;
}

.lightbox__next {
  right: clamp(12px, 3vw, 28px);
  top: 50%;
  margin-top: -24px;
}

/* ---------- Contact ---------- */
.contact-card {
  background: linear-gradient(150deg, #1d1f25 0%, var(--tr-black) 55%);
  color: var(--tr-white);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 68px) clamp(24px, 5vw, 56px);
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.contact-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(118deg, transparent 58%, rgba(211, 57, 47, 0.4) 58%, rgba(211, 57, 47, 0.4) 61%, transparent 61%),
    linear-gradient(118deg, transparent 64%, rgba(211, 57, 47, 0.14) 64%, rgba(211, 57, 47, 0.14) 65.4%, transparent 65.4%),
    radial-gradient(70% 90% at 50% -10%, rgba(211, 57, 47, 0.22), transparent 60%);
}

.contact-card > * {
  position: relative;
  z-index: 1;
}

.contact-card h2 {
  font-size: clamp(1.6rem, 3.6vw, 2.3rem);
  letter-spacing: -0.02em;
}

.contact-email {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 108%;
  font-size: clamp(1.15rem, 3.6vw, 1.9rem);
  letter-spacing: -0.015em;
  color: var(--tr-white);
  word-break: break-word;
  margin: 20px 0 32px;
  display: inline-block;
  padding-bottom: 10px;
  background-image: linear-gradient(90deg, var(--tr-red), var(--tr-red-light));
  background-repeat: no-repeat;
  background-size: 100% 3px;
  background-position: 0 100%;
  transition: opacity var(--transition), background-size var(--transition);
}

.contact-email:hover {
  opacity: 0.88;
  background-size: 100% 5px;
}

.contact-meta {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 42px;
  flex-wrap: wrap;
}

.contact-meta__item {
  text-align: left;
  padding: 14px 22px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.contact-meta__item p:last-child {
  margin-bottom: 0;
  font-size: 0.95rem;
}

.contact-meta__item a:hover {
  color: var(--tr-red-light);
}

.contact-meta__label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 4px;
}

.copy-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: var(--tr-white);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 0.76rem;
  cursor: pointer;
  margin-left: 10px;
  transition: background var(--transition);
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ---------- Footer ---------- */
.footer {
  position: relative;
  background: var(--tr-black);
  color: rgba(255, 255, 255, 0.65);
  padding: clamp(52px, 7vw, 76px) 0 0;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(70% 100% at 12% 0%, rgba(211, 57, 47, 0.14), transparent 60%);
  pointer-events: none;
}

.footer .container {
  position: relative;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 44px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__brand img {
  height: 40px;
  width: auto;
  margin-bottom: 20px;
  filter: drop-shadow(0 6px 18px rgba(211, 57, 47, 0.25));
}

.footer__brand p {
  color: rgba(255, 255, 255, 0.5);
  max-width: 340px;
  font-size: 0.94rem;
}

.footer h5 {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tr-white);
  margin-bottom: 20px;
}

.footer__links li {
  margin-bottom: 11px;
}

.footer__links a {
  font-size: 0.94rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition), padding-left var(--transition);
}

.footer__links a:hover {
  color: var(--tr-white);
  padding-left: 5px;
}

.footer__social {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.footer__social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), border-color var(--transition),
    transform var(--transition), color var(--transition);
}

.footer__social a:hover {
  background: linear-gradient(180deg, var(--tr-red), #a8261e);
  border-color: transparent;
  color: var(--tr-white);
  transform: translateY(-3px);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Apparition au scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Apparition en cascade des enfants d'une grille */
.reveal.has-stagger {
  opacity: 1;
  transform: none;
}

.reveal.has-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

.reveal.has-stagger.is-visible > * {
  opacity: 1;
  transform: none;
  transition-delay: calc(var(--i, 0) * 85ms);
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .members-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .stat-strip__row {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 30px;
  }
  .stat-strip__item:nth-child(3)::before {
    display: none;
  }
  .event-block__facts {
    position: relative;
    top: auto;
  }
}

@media (max-width: 760px) {
  :root {
    --gutter: 20px;
  }
  .navbar__links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(10, 10, 12, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    gap: 2px;
    transform: translateY(-140%);
    transition: transform 0.35s var(--ease);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 24px 40px -24px rgba(0, 0, 0, 0.9);
  }
  .navbar.is-scrolled .navbar__links {
    top: 64px;
  }
  .navbar__links.is-open {
    transform: translateY(0);
  }
  .navbar__links a {
    padding: 14px 16px;
    border-radius: 12px;
  }
  /* Menu vertical : la pastille glissante laisse place au fond classique */
  .navbar__indicator {
    display: none;
  }
  .navbar__links a:hover {
    background: rgba(255, 255, 255, 0.08);
  }
  .navbar__links a.is-active {
    background: linear-gradient(180deg, var(--tr-red) 0%, #a8261e 100%);
    box-shadow: 0 8px 20px -10px var(--tr-red-glow);
  }
  .navbar__toggle {
    display: flex;
  }
  .event-block {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .grid--3,
  .grid--2,
  .grid--4 {
    grid-template-columns: 1fr;
  }
  .members-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-grid {
    column-count: 2;
  }
  .lightbox__figure img {
    max-height: calc(100vh - 210px);
  }
  .stat-mini-grid {
    grid-template-columns: 1fr;
  }
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .timeline {
    flex-direction: column;
  }
  .timeline__item {
    border-right: none;
    border-bottom: 1px solid var(--tr-grey-300);
  }
  .contact-meta {
    gap: 12px;
  }
  .trophy {
    flex-direction: column;
    text-align: center;
    gap: 18px;
  }
  .footer__bottom {
    justify-content: center;
    text-align: center;
  }
  .hero h1 {
    max-width: none;
    font-size: clamp(2.3rem, 9vw, 3.2rem);
  }
  /* Traits de vitesse atténués : le titre reste lisible par-dessus */
  .hero::before {
    opacity: 0.5;
  }
}

@media (max-width: 480px) {
  .members-grid {
    grid-template-columns: 1fr 1fr;
  }
  .gallery-grid {
    column-count: 1;
  }
  .trust-logos {
    gap: 12px;
  }
  .gallery-event__head {
    gap: 12px;
  }
  .member-card__photo {
    max-width: 132px;
  }
  .lightbox__prev {
    left: 10px;
  }
  .lightbox__next {
    right: 10px;
  }
  .btn {
    padding: 14px 24px;
    font-size: 0.75rem;
  }
  .btn-row {
    gap: 12px;
  }
}

/* ---------- Accessibilité : mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
