/* Sponso'ring — styles globaux
   Mobile-first : la base cible ~390 px, puis min-width 768 px (desktop) et 1024 px (nav complète, hero en 2 colonnes). */

/* ---------- Tokens ---------- */
:root {
  --bg: #0B0B0C;
  --surface: #141417;
  --border: #2A2A31;
  --line: #1F1F25;
  --border-strong: #4A4A52;
  --text: #F5F3EE;
  --text-2: #A3A3AD;
  --text-soft: #C9C9D1;
  --text-body: #D4D2CC;
  --text-muted: #E4E2DC;
  --text-faint: #6E6E78;
  --red: #E5202E;
  --red-dark: #B3101B;
  --gold: #D9A441;
  --green: #3FBF7F;

  /* Saira Condensed : la police libre la plus proche de celle d'ufc.com */
  --font-display: 'Saira Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Archivo', system-ui, sans-serif;
  --font-narrow: 'Saira Condensed', 'Arial Narrow', sans-serif;
  --ease-out: cubic-bezier(.2, .8, .2, 1);

  --container: 1280px;
  --gutter: 16px;
}

@media (min-width: 768px) {
  :root { --gutter: 32px; }
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--text); }
a:hover { color: #FFFFFF; }

h1, h2, h3, p, ul, ol, blockquote, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

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

.d {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: 800;
  line-height: .92;
  letter-spacing: 0;
}

.n {
  font-family: var(--font-narrow);
  text-transform: uppercase;
  letter-spacing: .09em;
  font-weight: 600;
}

.tab { font-variant-numeric: tabular-nums; }
.red { color: var(--red); }

/* Visuels en attente de vraies photos */
.ph { background: repeating-linear-gradient(135deg, #1D1D23 0 12px, #17171C 12px 24px); }
.ph-label {
  position: absolute;
  top: 40%;
  left: 0;
  right: 0;
  padding: 0 16px;
  text-align: center;
  font-size: 11px;
  color: var(--text-faint);
}

/* Photo qui remplit son conteneur (le parent doit être en position relative) */
.cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cover--hero-home, .cover--sarah { object-position: 45% 30%; }
.cover--yanis { object-position: 40% 30%; }
.cover--mehdi { object-position: 50% 20%; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Variantes de texte mobile / desktop */
@media (max-width: 767.98px) { .lg-only { display: none !important; } }
@media (min-width: 768px) { .sm-only { display: none !important; } }

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

.section-title { font-size: 32px; }
@media (min-width: 768px) { .section-title { font-size: 48px; } }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  transition: filter .15s, background-color .25s, border-color .15s, box-shadow .25s, transform .25s;
}
/* Les boutons pleins s'allument au survol, comme sur ufc.com */
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { color: #fff; background: #F7323F; box-shadow: 0 0 0 4px rgba(229, 32, 46, .18), 0 0 24px rgba(242, 30, 30, .5); transform: translateY(-2px); }
.btn--light { background: var(--text); color: var(--bg); }
.btn--light:hover { color: var(--bg); background: #fff; }
.btn--gold { background: var(--gold); color: var(--bg); }
.btn--gold:hover { color: var(--bg); filter: brightness(1.08); box-shadow: 0 0 22px rgba(217, 164, 65, .4); transform: translateY(-2px); }
.btn--ghost { border: 1px solid var(--border-strong); color: var(--text); font-weight: 600; background: transparent; }
.btn--ghost:hover { border-color: var(--text-2); }
.btn--lg { height: 54px; }

@media (min-width: 768px) {
  .btn--lg { height: 56px; padding: 0 28px; font-size: 17px; }
  .btn--ghost.btn--lg { padding: 0 26px; }
}

/* ---------- Badges ---------- */
.badge {
  display: inline-block;
  font-size: 11px;
  padding: 5px 8px;
  border-radius: 4px;
}
.badge--disc { border: 1px solid rgba(245, 243, 238, .5); background: rgba(11, 11, 12, .6); }
.badge--amateur { border: 1px solid var(--text-2); color: var(--text-muted); background: rgba(11, 11, 12, .6); }
.badge--pro { background: var(--gold); color: var(--bg); }

/* ---------- Logo ---------- */
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.logo-mark {
  --size: 30px;
  width: var(--size);
  height: var(--size);
  border-radius: 7px;
  background: var(--red);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex: none;
}
.logo-mark::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 8px;
  height: 14px;
  background: linear-gradient(var(--red-dark) 0 2px, transparent 2px 6px, var(--red-dark) 6px 8px, transparent 8px 12px, var(--red-dark) 12px 14px);
}
/* Le gant blanc remplace l'ancien S */
.logo-mark__s { display: none; }
.logo-mark::after {
  content: "";
  position: absolute;
  inset: 17% 26% 13% 25%;
  background: url("../img/logo-gant.svg") center / contain no-repeat;
}

/* « RING » en blanc sur la cage rouge, et un gant qui vient la frapper.
   RING reste sur la même ligne que « SPONSO’ » : la cage est dessinée derrière le texte,
   calée sur les majuscules de Saira Condensed (0,7 em de haut, ligne de base à 0,805 em
   du haut avec une hauteur de ligne de 0,92) avec 0,12 em de marge au-dessus et en dessous,
   pour que le mot tombe pile au milieu. */
.wordmark { font-size: 22px; color: var(--text); display: inline-flex; align-items: baseline; white-space: nowrap; }
.wordmark span { position: relative; z-index: 0; color: #fff; margin-left: .24em; }
.wordmark span::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -.16em;
  right: -.16em;
  top: -.01em;
  bottom: -.01em;
  border-radius: .1em;
  background:
    repeating-linear-gradient(180deg, transparent 0 24%, var(--red-dark) 24% 30%, transparent 30% 37%),
    var(--red);
}
.wordmark::after {
  content: "";
  width: 1em;
  height: .75em;
  margin-left: .02em;
  position: relative;
  top: .03em;
  background: url("../img/logo-gant-coup.svg") center / contain no-repeat;
}

/* Le coup de gant : joué une fois à l'arrivée sur l'accueil, puis au survol du logo */
.brand.is-punching .wordmark::after, .brand:hover .wordmark::after { animation: logo-punch .55s cubic-bezier(.2, .9, .3, 1.2) both; }
.brand.is-punching .wordmark span, .brand:hover .wordmark span { animation: logo-shake .45s ease-out .16s both; }
.brand.is-punching .wordmark::after { animation-delay: .35s; }
.brand.is-punching .wordmark span { animation-delay: .51s; }
@keyframes logo-punch {
  0% { transform: translateX(.8em); opacity: 0; }
  30% { opacity: 1; }
  55% { transform: translateX(-.1em); }
  100% { transform: translateX(0); }
}
@keyframes logo-shake {
  0%, 100% { transform: none; }
  30% { transform: translateX(-.06em) rotate(-2deg); }
  65% { transform: translateX(.02em); }
}

@media (min-width: 768px) {
  .brand { gap: 10px; }
  .logo-mark { --size: 34px; border-radius: 8px; }
  .logo-mark::before {
    top: 9px;
    height: 16px;
    background: linear-gradient(var(--red-dark) 0 2px, transparent 2px 7px, var(--red-dark) 7px 9px, transparent 9px 14px, var(--red-dark) 14px 16px);
  }
  .wordmark { font-size: 26px; }
}

/* ---------- Header ---------- */
/* La barre du haut reste visible quand on descend, et se resserre un peu (main.js pose .is-scrolled) */
.site-header {
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  transition: background-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { background: rgba(11, 11, 12, .9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 8px 24px rgba(0, 0, 0, .35); }
.header-inner {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.main-nav, .header-actions { display: none; }
.header-mobile { display: flex; gap: 4px; }

.icon-btn {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 8px;
}

.mobile-menu {
  border-top: 1px solid var(--line);
  padding: 8px var(--gutter) 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a {
  min-height: 52px;
  display: flex;
  align-items: center;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.mobile-menu .btn { height: 50px; }

@media (min-width: 768px) {
  .header-inner { min-height: 76px; flex-wrap: wrap; transition: min-height .3s var(--ease-out); }
  .site-header.is-scrolled .header-inner { min-height: 62px; }
  .site-header .brand { flex: none; }
}

@media (min-width: 1024px) {
  .header-mobile, .mobile-menu { display: none !important; }
  .main-nav { display: flex; flex-wrap: wrap; gap: 22px; font: 600 16px var(--font-narrow); letter-spacing: .06em; text-transform: uppercase; }
  .main-nav a { text-decoration: none; color: var(--text-soft); position: relative; padding: 8px 0; }
  .main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--text); }
  .main-nav a.is-strong { color: var(--text); }
  /* Barre rouge qui glisse sous le lien survolé, comme sur ufc.com */
  .main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: var(--red);
    transform: scaleX(0);
    transition: transform .3s var(--ease-out);
  }
  .main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
  .header-actions { display: flex; gap: 10px; }
  .header-actions .link-btn {
    height: 44px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    text-decoration: none;
    font-weight: 600;
  }
}

/* ---------- Hero ---------- */
/* Mobile : photo plein cadre, texte superposé en bas. Desktop : texte à gauche, photo + carte à droite. */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "stack" "trust";
}
.hero__media {
  grid-area: stack;
  position: relative;
  min-height: 600px;
  overflow: hidden;
}
.hero__text {
  grid-area: stack;
  align-self: end;
  position: relative;
  z-index: 1;
  padding: 24px var(--gutter) 28px;
  background: linear-gradient(rgba(11, 11, 12, 0), var(--bg) 45%);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.hero__media .ph-label { top: 150px; }
.hero__eyebrow { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; }
.hero__eyebrow span { padding: 7px 12px; border-radius: 6px; background: var(--red); color: #fff; line-height: 1; }
.hero__title { font-size: 58px; }
.hero__lead { font-size: 16px; line-height: 1.5; color: var(--text-body); }
.hero__ctas { display: flex; flex-direction: column; gap: 16px; }
.hero__ctas .btn { width: 100%; }

.hero-card { display: none; }

.trust {
  grid-area: trust;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 14px var(--gutter);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--text-soft);
}
.trust li { display: flex; align-items: center; gap: 6px; }
.trust b { color: var(--text); }

@media (min-width: 768px) {
  .hero {
    max-width: var(--container);
    margin: 0 auto;
    padding: 48px var(--gutter);
    grid-template-areas: "text" "trust" "media";
  }
  .hero__text {
    grid-area: text;
    padding: 0;
    background: none;
    gap: 24px;
  }
  .hero__media {
    grid-area: media;
    min-height: 0;
    height: 600px;
    border-radius: 18px;
    margin-top: 48px;
  }
  .hero__media .ph-label { top: 46%; font-size: 12px; }
  .hero__eyebrow { font-size: 16px; gap: 10px; }
  .hero__eyebrow span { padding: 9px 14px; }
  .hero__title { font-size: clamp(64px, 6.7vw, 96px); }
  .hero__lead { font-size: 19px; line-height: 1.55; max-width: 520px; }
  .hero__ctas { flex-direction: row; flex-wrap: wrap; gap: 12px; }
  .hero__ctas .btn { width: auto; }

  .trust {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 22px;
    padding: 8px 0 0;
    margin-top: 24px;
    border: 0;
    font-size: 14px;
  }

  .hero-card {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 20px;
    padding: 16px;
    border-radius: 12px;
    background: rgba(11, 11, 12, .88);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-decoration: none;
    transition: border-color .15s;
  }
  .hero-card:hover { border-color: var(--border-strong); }
  .hero-card__head { display: flex; justify-content: space-between; align-items: center; }
  .hero-card__name { font-size: 24px; }
  .hero-card__title { font-size: 14px; color: var(--text-soft); }
  .hero-card__meta { font-size: 13px; color: var(--text-soft); }
  .hero-card__meta b { color: var(--text); }
}

@media (min-width: 1024px) {
  .hero {
    grid-template-columns: minmax(0, 1.07fr) minmax(0, 1fr);
    grid-template-rows: 1fr auto auto 1fr;
    grid-template-areas: ". media" "text media" "trust media" ". media";
    column-gap: 48px;
  }
  .hero__media { margin-top: 0; }
}

/* ---------- Barre de progression ---------- */
.progress { display: block; height: 8px; border-radius: 4px; background: var(--border); overflow: hidden; }
.progress__bar { height: 100%; background: var(--red); transition: width 1.4s var(--ease-out); }

/* ---------- Campagnes à la une ---------- */
.featured { padding-top: 36px; padding-bottom: 8px; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 12px;
}
.section-head a { font-size: 14px; color: var(--text-soft); }
.section-head a:hover { color: var(--text); }

.campaigns {
  display: flex;
  gap: 12px;
  padding: 18px var(--gutter);
  margin: 0 calc(var(--gutter) * -1);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 var(--gutter);
  scrollbar-width: none;
}
.campaigns::-webkit-scrollbar { display: none; }
.campaigns > li { flex: none; width: 280px; scroll-snap-align: start; display: flex; }

.campaign-card {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  transition: border-color .15s;
}
.campaign-card:hover { border-color: var(--border-strong); color: var(--text); }
.campaign-card__media { height: 250px; position: relative; }
.campaign-card__tags { position: absolute; z-index: 1; top: 12px; left: 12px; display: flex; gap: 6px; }
.campaign-card__id {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px;
  background: linear-gradient(rgba(11, 11, 12, 0), var(--bg) 85%);
}
.campaign-card__name { font-size: 26px; }
.campaign-card__club {
  font-size: 13px;
  color: var(--text-soft);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.campaign-card__body { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.campaign-card__title { font-size: 15px; font-weight: 600; line-height: 1.3; min-height: 40px; }
.campaign-card__meta {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-soft);
}
.campaign-card__meta b { color: var(--text); }

@media (min-width: 768px) {
  .featured { padding-top: 48px; padding-bottom: 48px; }
  .section-head { margin-bottom: 24px; }
  .section-head a { font-size: 15px; }
  .campaigns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    padding: 0;
    margin: 0;
    overflow: visible;
  }
  .campaigns > li { width: auto; }
  .campaign-card__media { height: 320px; }
  .campaign-card__tags { top: 14px; left: 14px; }
  .campaign-card__id { padding: 18px; }
  .campaign-card__name { font-size: 30px; }
  .campaign-card__club { font-size: 14px; margin-top: 6px; }
  .campaign-card__body { padding: 18px; gap: 12px; }
  .campaign-card__title { font-size: 16px; min-height: 0; line-height: 1.3; }
  .campaign-card__meta { font-size: 14px; }
}

/* ---------- Comment ça marche ---------- */
.how { padding-top: 28px; padding-bottom: 28px; display: flex; flex-direction: column; gap: 18px; scroll-margin-top: 16px; }

.tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 4px;
}
.tabs button {
  height: 44px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text-soft);
  font: 600 15px var(--font-body);
  cursor: pointer;
}
.tabs button[aria-selected="true"] { background: var(--text); color: var(--bg); font-weight: 700; }

.how__grid { display: grid; gap: 24px; }
.how__col:not(.is-active) { display: none; }
.how__label { display: none; }
.steps { display: flex; flex-direction: column; gap: 18px; }
.step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
}
.step__n { font-size: 40px; color: var(--red); width: 36px; flex: none; }
.step__title { font-weight: 700; font-size: 16px; }
.step__desc { font-size: 14px; line-height: 1.5; color: var(--text-2); margin-top: 4px; }

@media (min-width: 768px) {
  .how { padding-top: 48px; padding-bottom: 48px; gap: 24px; }
  .tabs { display: none; }
  .how__grid { grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); }
  .how__col, .how__col:not(.is-active) {
    display: flex;
    flex-direction: column;
    gap: 20px;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
  }
  .how__label { display: block; font-size: 13px; }
  .steps { gap: 20px; }
  .step { padding: 0; border: 0; border-radius: 0; }
  .step__n { font-size: 44px; width: 34px; }
  .how__col--fan .step__n { color: var(--text); }
  .step__title { font-size: 17px; }
  .step__desc { font-size: 15px; }
}

/* ---------- Prochains combats + chiffres ---------- */
.fights-row { padding-top: 28px; padding-bottom: 8px; display: flex; flex-direction: column; gap: 20px; }
.fights { display: flex; flex-direction: column; gap: 14px; }
.fights ul { display: flex; flex-direction: column; gap: 14px; }

.fight {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas: "date body" "date disc";
  align-content: center;
  column-gap: 14px;
  row-gap: 3px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  transition: border-color .15s;
}
.fight:hover { border-color: var(--border-strong); color: var(--text); }
.fight__date {
  grid-area: date;
  align-self: center;
  width: 58px;
  height: 62px;
  border-radius: 8px;
  background: var(--text);
  color: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.fight__day { font-size: 26px; }
.fight__month { font-size: 11px; }
.fight__body { grid-area: body; align-self: end; display: flex; flex-direction: column; gap: 3px; }
.fight__name { font-weight: 700; font-size: 15px; }
.fight__event { font-size: 13px; color: var(--text-2); }
.fight__disc { grid-area: disc; align-self: start; font-size: 11px; color: var(--text-soft); }

/* Chiffres clés, présentés comme les statistiques des combattants sur ufc.com */
.stats {
  width: 100%;
  border-top: 3px solid var(--red);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
.stats__item { padding: 20px 0; border-bottom: 1px solid var(--border); }
.stats__item:last-child { border-bottom: 0; }
.stats__value { font-size: 64px; display: flex; align-items: baseline; gap: 8px; }
.stats__value small { font-size: .4em; color: var(--red); }
.stats__label { font-size: 16px; color: var(--text-2); margin-top: 8px; line-height: 1.35; }
.stats-note { font-size: 11px; color: var(--text-faint); margin-top: -12px; }

@media (min-width: 768px) {
  .fights-row { padding-top: 48px; padding-bottom: 48px; flex-direction: row; flex-wrap: wrap; gap: 24px; }
  .fights { flex: 2 1 520px; }
  .fights .section-title { margin-bottom: 10px; }
  .fight {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "date body disc";
    align-items: center;
    column-gap: 18px;
    padding: 14px;
  }
  .fight__date { width: 68px; height: 70px; }
  .fight__day { font-size: 30px; }
  .fight__body { align-self: center; }
  .fight__name { font-size: 17px; }
  .fight__event { font-size: 14px; }
  .fight__disc { align-self: center; font-size: 12px; }

  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stats__item { padding: 28px 32px 8px; border-bottom: 0; border-left: 1px solid var(--border); }
  .stats__item:first-child { border-left: 0; padding-left: 0; }
  .stats__value { font-size: clamp(64px, 7.5vw, 104px); }
  .stats__label { font-size: 17px; max-width: 260px; }
}

/* ---------- Témoignage ---------- */
.testimonial { padding-top: 36px; padding-bottom: 36px; display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.testimonial__portrait { display: none; }
.testimonial__body { flex: 1 1 480px; display: flex; flex-direction: column; gap: 18px; }
.testimonial__mark { font-size: 64px; color: var(--red); line-height: .6; height: 30px; }
.testimonial__quote { font-size: 21px; line-height: 1.4; font-weight: 600; }
.testimonial__author { display: flex; align-items: center; gap: 12px; }
.testimonial__avatar { position: relative; overflow: hidden; width: 48px; height: 48px; border-radius: 50%; flex: none; }
.testimonial__name { font-weight: 700; }
.testimonial__meta { font-size: 13px; color: var(--text-2); }

@media (min-width: 768px) {
  .testimonial { padding-top: 48px; padding-bottom: 48px; }
  .testimonial__portrait { display: block; position: relative; overflow: hidden; flex: 0 1 360px; height: 420px; border-radius: 16px; }
  .testimonial__body { gap: 22px; }
  .testimonial__mark { font-size: 96px; height: 44px; }
  .testimonial__quote { font-size: 32px; line-height: 1.3; }
  .testimonial__avatar { display: none; }
  .testimonial__name { font-size: 17px; }
  .testimonial__meta { font-size: 15px; }
}

/* ---------- Partenaires ---------- */
.partners { border-top: 1px solid var(--line); }
.partners__inner { padding-top: 24px; padding-bottom: 24px; display: flex; flex-direction: column; gap: 14px; }
.partners__label { font-size: 12px; color: var(--text-2); }
.partners__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.partners__grid li {
  height: 52px;
  border-radius: 8px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  text-align: center;
  font-size: 11px;
  color: var(--text-2);
}

@media (min-width: 768px) {
  .partners { border-bottom: 1px solid var(--line); }
  .partners__inner { padding-top: 28px; padding-bottom: 28px; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 20px; }
  .partners__label { flex: 0 0 200px; }
  .partners__grid { flex: 1 1 600px; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }
  .partners__grid li { height: 56px; font-size: 12px; }
}

/* ---------- CTA sponsors ---------- */
.sponsor-cta { padding-top: 16px; padding-bottom: 16px; }
.sponsor-cta__box {
  border: 1px solid var(--gold);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sponsor-cta__text { display: flex; flex-direction: column; gap: 12px; }
.sponsor-cta__eyebrow { font-size: 12px; color: var(--gold); }
.sponsor-cta__title { font-size: 30px; }
.sponsor-cta__lead { font-size: 14px; line-height: 1.5; color: var(--text-soft); }
.sponsor-cta .btn { height: 50px; width: 100%; }

@media (min-width: 768px) {
  .sponsor-cta { padding-top: 56px; padding-bottom: 56px; }
  .sponsor-cta__box {
    border-radius: 18px;
    padding: 40px;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 24px;
    align-items: center;
    justify-content: space-between;
  }
  .sponsor-cta__text { flex: 1 1 520px; }
  .sponsor-cta__eyebrow { font-size: 13px; }
  .sponsor-cta__title { font-size: 48px; }
  .sponsor-cta__lead { font-size: 16px; line-height: 1.55; }
  .sponsor-cta .btn { width: auto; height: 56px; padding: 0 28px; font-size: 17px; }
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 16px; }
.footer-inner {
  padding-top: 32px;
  padding-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-size: 14px;
  color: var(--text-2);
}
.footer-brand { display: contents; }
.footer-brand .wordmark { font-size: 24px; order: 0; }
.footer-copy { order: 2; font-size: 12px; }
.footer-links { order: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.footer-links ul { display: contents; }
.footer-links a { color: var(--text-soft); text-decoration: none; }
.footer-links a:hover { color: var(--text); }

@media (min-width: 768px) {
  .site-footer { margin-top: 0; }
  .footer-inner { padding-top: 40px; padding-bottom: 40px; flex-direction: row; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
  .footer-brand { display: flex; flex-direction: column; gap: 10px; }
  .footer-brand .wordmark { font-size: 28px; }
  .footer-copy { font-size: 14px; }
  .footer-links { display: flex; flex-wrap: wrap; gap: 56px; }
  .footer-links ul { display: flex; flex-direction: column; gap: 10px; }
}

/* ---------- Message temporaire (toast) ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 96px;
  transform: translateX(-50%);
  z-index: 20;
  padding: 12px 18px;
  border-radius: 10px;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .4);
}

/* ---------- Animations (inspirées d'ufc.com) ----------
   Elles ne s'activent que si le JavaScript tourne (classe .js-anim posée par main.js)
   et jamais pour les visiteurs qui ont demandé à réduire les animations. */

/* Titre révélé : un bandeau rouge balaie le titre et laisse apparaître le texte */
.js-anim .reveal { position: relative; animation: reveal-text 0s linear .5s both; }
.js-anim .reveal::after {
  content: "";
  position: absolute;
  inset: -.04em -.08em;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  animation: reveal-wipe .8s cubic-bezier(.7, 0, .2, 1) .1s both;
}
@keyframes reveal-text { from { color: transparent; } }
@keyframes reveal-wipe {
  0% { transform: scaleX(0); transform-origin: left; }
  49% { transform: scaleX(1); transform-origin: left; }
  50% { transform: scaleX(1); transform-origin: right; }
  100% { transform: scaleX(0); transform-origin: right; }
}

/* Blocs qui montent en apparaissant quand on fait défiler la page */
.js-anim .rise { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.js-anim .rise.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .brand.is-punching .wordmark::after, .brand:hover .wordmark::after,
  .brand.is-punching .wordmark span, .brand:hover .wordmark span { animation: none; }
  .btn--red:hover, .btn--gold:hover { transform: none; }
  .progress__bar { transition: none; }
}

/* ---------- Choix de la langue (FR / EN) ---------- */
.header-actions .lang-switch {
  min-width: 44px;
  height: 44px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  font: 700 15px var(--font-narrow);
  letter-spacing: .08em;
  color: var(--text-soft);
  text-decoration: none;
  transition: border-color .15s, color .15s;
}
.header-actions .lang-switch:hover { color: var(--text); border-color: var(--text-2); }
