/* =====================================================================
   FIT FIVE — components.css
   Composants réutilisables : layout, boutons, header, footer, cartes,
   badges, formulaires, accordéon, modale, tooltips, notifications,
   curseur ballon.
   Système de forme : arêtes vives partout (aucun rayon, aucun flou).
   ===================================================================== */

/* ------------------------------------------------------------------ */
/* Base                                                                */
/* ------------------------------------------------------------------ */
body {
  font-family: var(--font-body);
  font-stretch: var(--w-normal);
  color: var(--text-dark);
  background: var(--bg-0);
  font-size: var(--fs-body);
  overflow-x: hidden;
}
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container-narrow { max-width: var(--maxw-narrow); margin-inline: auto; }

/* Sections claires / sombres alternées */
.section { padding-block: var(--space-xl); position: relative; }
.section--dark  { background: var(--black); color: var(--text-light); }
.section--anthr { background: var(--anthracite); color: var(--text-light); }
.section--light { background: var(--anthracite); color: var(--text-dark); }
.section--gray  { background: var(--gray-light); color: var(--text-dark); }

/* Fond légèrement texturé façon plan tactique (lignes) */
.section--tactic { position: relative; }
.section--tactic::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line-tactic) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-tactic) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, #000 40%, transparent 85%);
}
.section--tactic > .container { position: relative; z-index: 1; }

/* En-tête de section */
.section-head { max-width: 780px; margin-bottom: var(--space-lg); }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-stretch: var(--w-label);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 3px; background: var(--red);
}
.section-head.center .eyebrow { justify-content: center; }

/* Index de section : "02 —" en gros chiffre condensé */
.sec-index {
  display: flex; align-items: baseline; gap: 14px;
  font-family: var(--font-display); font-stretch: var(--w-jersey); font-weight: 900;
  font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1;
  color: var(--red); margin-bottom: 10px;
}
.sec-index span {
  font-size: 0.78rem; font-stretch: var(--w-label); font-weight: 700;
  letter-spacing: 0.2em; color: var(--text-muted);
}

.title-display, .title-h1, .title-h2 {
  font-family: var(--font-display);
  font-stretch: var(--w-jersey);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.88;
  letter-spacing: -0.005em;
}
.title-h1 { font-size: var(--fs-h1); }
.title-h2 { font-size: var(--fs-h2); }
.title-h3 {
  font-family: var(--font-head); font-stretch: var(--w-cond); font-weight: 800;
  font-size: var(--fs-h3); text-transform: uppercase; letter-spacing: 0.01em;
}
.title-h2 em, .title-h1 em, .title-display em { font-style: italic; font-weight: 900; color: var(--red-bright); }
.lead { font-size: var(--fs-lead); color: var(--text-muted); max-width: 58ch; line-height: 1.62; }
.section--light .lead, .section--gray .lead { color: var(--text-muted-dark); }
.text-red { color: var(--red); }

/* ------------------------------------------------------------------ */
/* Boutons — plaques rectangulaires, remplissage au survol             */
/* ------------------------------------------------------------------ */
.btn {
  --btn-bg: var(--red);
  --btn-fg: var(--white);
  --btn-wipe: rgba(0, 0, 0, 0.28);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--font-head);
  font-stretch: var(--w-label);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 0.88rem;
  line-height: 1;
  padding: 17px 30px;
  border-radius: 0;
  border: 2px solid transparent;
  background: var(--btn-bg);
  color: var(--btn-fg);
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform var(--t), background var(--t), color var(--t), border-color var(--t);
}
.btn > * { position: relative; z-index: 1; }
/* z-index négatif + isolation : le remplissage passe au-dessus du fond
   du bouton mais TOUJOURS sous le libellé, même s'il n'est pas balisé. */
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--btn-wipe);
  transform: scaleX(0); transform-origin: left center;
  transition: transform var(--t);
}
.btn:hover::before { transform: scaleX(1); }
.btn svg { width: 17px; height: 17px; position: relative; z-index: 1; transition: transform var(--t); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: translateY(2px); }

.btn--primary { --btn-bg: var(--red); --btn-fg: var(--white); --btn-wipe: var(--red-dark); }
.btn--dark    { --btn-bg: var(--black); --btn-fg: var(--white); --btn-wipe: var(--red); }
.btn--light   { --btn-bg: var(--white); --btn-fg: var(--black); --btn-wipe: rgba(0,0,0,0.08); }

.btn--ghost {
  background: transparent; color: currentColor; border-color: currentColor;
  --btn-wipe: var(--red);
}
.btn--ghost:hover { color: var(--white); border-color: var(--red); }

.btn--outline-red { background: transparent; color: var(--red); border-color: var(--red); --btn-wipe: var(--red); }
.btn--outline-red:hover { color: var(--white); }

.btn--sm { padding: 11px 18px; font-size: 0.76rem; }
.btn--lg { padding: 21px 40px; font-size: 0.98rem; }
.btn--block { width: 100%; }

.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn[disabled]::before { display: none; }

/* Spinner générique dans un bouton */
.btn .spinner {
  width: 16px; height: 16px;
  border: 2.5px solid rgba(255, 255, 255, 0.35);
  border-top-color: var(--white);
  border-radius: 50%;
  display: none;
  animation: ff-spin 0.7s linear infinite;
}
.btn.is-loading .spinner { display: inline-block; }
@keyframes ff-spin { to { transform: rotate(360deg); } }

/* Lien fléché (remplace les petits boutons secondaires) */
.arrow-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-stretch: var(--w-label); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem;
  color: var(--white); padding-bottom: 6px; border-bottom: 2px solid var(--red);
  transition: gap var(--t), color var(--t);
}
.arrow-link:hover { gap: 16px; color: var(--red-bright); }
.arrow-link svg { width: 16px; height: 16px; }

/* ------------------------------------------------------------------ */
/* Badges & pastilles de statut                                        */
/* ------------------------------------------------------------------ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-head);
  font-stretch: var(--w-label);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 6px 11px;
  background: rgba(255, 255, 255, 0.1);
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge--free   { color: var(--status-free);   background: rgba(34, 197, 94, 0.14); }
.badge--soon   { color: var(--status-soon);   background: rgba(245, 158, 11, 0.16); }
.badge--busy   { color: var(--status-busy);   background: rgba(227, 6, 19, 0.16); }
.badge--closed { color: var(--gray-400);      background: rgba(120, 120, 120, 0.18); }
.badge--red    { color: var(--white); background: var(--red); }

.badge--pulse .dot { animation: ff-pulse 1.6s ease-in-out infinite; }
@keyframes ff-pulse {
  0%, 100% { box-shadow: 0 0 0 0 currentColor; opacity: 1; }
  50% { box-shadow: 0 0 0 5px transparent; opacity: 0.6; }
}

/* ------------------------------------------------------------------ */
/* Header / Navigation                                                 */
/* ------------------------------------------------------------------ */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: var(--z-header);
  background: var(--black);
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--t);
}
.header.is-scrolled { box-shadow: 0 10px 34px rgba(0, 0, 0, 0.6); }

/* Barre de progression de lecture (pilotée par JS) */
.header__progress {
  position: absolute; left: 0; bottom: -1px; height: 2px;
  width: 100%; transform: scaleX(var(--progress, 0)); transform-origin: left;
  background: var(--red); z-index: 2;
}

.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 26px;
}
.header__logo { flex: 0 0 auto; display: inline-flex; align-items: center; }
.header__logo img { height: 34px; width: auto; }

.nav { display: flex; align-items: center; gap: 2px; margin-right: auto; }
.nav__link {
  position: relative;
  font-family: var(--font-head);
  font-stretch: var(--w-label);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  padding: 12px 15px;
  white-space: nowrap;
  transition: color var(--t);
}
.nav__link::after {
  content: "";
  position: absolute; left: 15px; right: 15px; bottom: 6px;
  height: 2px; background: var(--red);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--t);
}
.nav__link:hover { color: var(--white); }
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--white); }

/* Le bouton "Réserver un terrain" de la nav n'apparaît que dans le menu mobile
   (sur desktop, le bouton "Réserver" de droite suffit → pas de doublon). */
.nav__cta { display: none; }

.header__actions { display: flex; align-items: stretch; gap: 0; flex: 0 0 auto; height: 100%; }

/* Bloc téléphone : libellé + numéro, séparé par un filet */
.header__phone {
  display: inline-flex; align-items: center; gap: 11px;
  padding: 0 24px 0 22px;
  border-left: 1px solid var(--line);
  color: var(--white);
  transition: background var(--t);
}
.header__phone:hover { background: rgba(255, 255, 255, 0.04); }
.header__phone .ic {
  display: grid; place-items: center;
  width: 34px; height: 34px; flex: 0 0 34px;
  border: 1px solid var(--line-strong); color: var(--red);
  transition: background var(--t), color var(--t), border-color var(--t);
}
.header__phone:hover .ic { background: var(--red); border-color: var(--red); color: var(--white); }
.header__phone svg { width: 15px; height: 15px; }
.header__phone .txt { display: grid; gap: 2px; line-height: 1; }
.header__phone .lbl {
  font-family: var(--font-head); font-stretch: var(--w-label); font-weight: 700;
  font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-muted);
}
.header__phone .num {
  font-family: var(--font-head); font-stretch: var(--w-cond); font-weight: 800;
  font-size: 1.08rem; letter-spacing: 0.02em; white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* Bouton "Réserver" du header : plaque rouge pleine hauteur */
.header__book {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 0 30px;
  background: var(--red); color: var(--white);
  font-family: var(--font-head); font-stretch: var(--w-label); font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.84rem;
  position: relative; overflow: hidden; isolation: isolate;
}
.header__book::before {
  content: ""; position: absolute; inset: 0; z-index: 0; background: var(--black);
  transform: translateY(101%); transition: transform var(--t);
}
.header__book:hover::before { transform: translateY(0); }
.header__book > * { position: relative; z-index: 1; }
.header__book svg { width: 16px; height: 16px; transition: transform var(--t); }
.header__book:hover svg { transform: translateX(4px); }

.header__status {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); text-transform: uppercase;
  letter-spacing: 0.12em; font-size: 0.7rem; font-weight: 700;
  color: var(--status-free);
  padding: 5px 11px;
  background: rgba(34,197,94,0.12);
}
.header__status .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--status-free); animation: ff-pulse 1.8s infinite; }
.header__status.is-closed { color: var(--gray-400); background: rgba(120,120,120,0.16); }
.header__status.is-closed .dot { background: var(--gray-400); animation: none; }

/* Hamburger */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 52px; height: 100%;
  border-left: 1px solid var(--line);
}
.burger span {
  display: block; width: 24px; height: 2.5px; margin-inline: auto;
  background: var(--white);
  transition: transform var(--t), opacity var(--t);
}
.burger.is-open span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

/* Panneau de navigation mobile */
.nav-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.7);
  opacity: 0; visibility: hidden; transition: opacity var(--t), visibility var(--t);
  z-index: 990;
}
.nav-backdrop.is-open { opacity: 1; visibility: visible; }

/* Bouton flottant "Réserver" (mobile) */
.fab-reserve {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0;
  z-index: 900;
  justify-content: center;
}

/* ------------------------------------------------------------------ */
/* Curseur ballon (pointeurs fins uniquement)                          */
/* ------------------------------------------------------------------ */
body.has-ball-cursor,
body.has-ball-cursor a,
body.has-ball-cursor button,
body.has-ball-cursor select,
body.has-ball-cursor [role="button"],
body.has-ball-cursor label { cursor: none; }
body.has-ball-cursor input,
body.has-ball-cursor textarea { cursor: text; }

.ball-cursor {
  position: fixed; top: 0; left: 0;
  width: 30px; height: 30px;
  margin: -15px 0 0 -15px;
  z-index: var(--z-cursor);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
  will-change: transform;
}
.ball-cursor.is-on { opacity: 1; }
.ball-cursor.is-hidden { opacity: 0; }
.ball-cursor__spin { width: 100%; height: 100%; will-change: transform; }
.ball-cursor svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 3px 6px rgba(0,0,0,0.55)); }
.ball-cursor__ring {
  position: absolute; inset: -12px;
  border: 2px solid var(--red);
  opacity: 0; transform: scale(0.5) rotate(45deg);
  transition: opacity var(--t), transform var(--t);
}
.ball-cursor.is-active .ball-cursor__ring { opacity: 1; transform: scale(1) rotate(45deg); }
/* La rotation et l'échelle du ballon sont pilotées par matchday.js. */

/* ------------------------------------------------------------------ */
/* Cartes génériques                                                   */
/* ------------------------------------------------------------------ */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--red); }
.card--dark { background: var(--gray-800); border-color: var(--gray-600); color: var(--text-light); }

/* ------------------------------------------------------------------ */
/* Formulaires                                                         */
/* ------------------------------------------------------------------ */
.field { display: flex; flex-direction: column; margin-bottom: 4px; }
.field > label {
  font-family: var(--font-head); font-stretch: var(--w-label); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.72rem;
  color: var(--text-muted); margin-bottom: 8px;
}
.req { color: var(--red); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.input, .select, .textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 14px 15px;
  border: 1.5px solid var(--line-strong);
  background: var(--surface);
  color: var(--text-dark);
  transition: border-color var(--t), box-shadow var(--t);
}
.input::placeholder, .textarea::placeholder { color: var(--gray-400); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: inset 0 -3px 0 var(--red);
}
.textarea { resize: vertical; min-height: 120px; }

/* Champs sur fond sombre */
.form--dark .input, .form--dark .select, .form--dark .textarea {
  background: var(--gray-900); border-color: var(--gray-600); color: var(--text-light);
}
.form--dark .input::placeholder, .form--dark .textarea::placeholder { color: var(--gray-400); }

.field.has-error .input,
.field.has-error .select,
.field.has-error .textarea { border-color: var(--red); background: rgba(227,6,19,0.06); }
.field .error-msg { color: var(--red-bright); font-size: 0.8rem; margin-top: 6px; min-height: 1em; font-weight: 600; }

.checkbox { display: flex; align-items: flex-start; gap: 10px; font-size: 0.88rem; font-weight: 500; cursor: pointer; }
.checkbox input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--red); flex: 0 0 auto; }
.inline-link { color: var(--red); text-decoration: underline; }
.form--dark .inline-link { color: var(--red-bright); }

.form-success {
  display: none;
  align-items: center; gap: 10px;
  background: rgba(34, 197, 94, 0.12);
  border-left: 4px solid var(--status-free);
  color: inherit;
  padding: 14px 16px;
  font-weight: 600; margin-top: 8px;
}
.form-success.is-visible { display: flex; }

/* ------------------------------------------------------------------ */
/* Accordéon (FAQ)                                                     */
/* ------------------------------------------------------------------ */
.accordion { display: grid; gap: 10px; }
.acc-item { border: 1px solid var(--line); background: var(--surface); }
.section--dark .acc-item, .section--anthr .acc-item { background: var(--gray-800); border-color: var(--gray-600); }
.acc-trigger {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  text-align: left;
  padding: 20px 22px;
  font-family: var(--font-head); font-stretch: var(--w-cond); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.03em; font-size: 1.05rem;
  color: inherit;
  transition: color var(--t);
}
.acc-trigger:hover { color: var(--red); }
.acc-icon { flex: 0 0 auto; width: 22px; height: 22px; position: relative; }
.acc-icon::before, .acc-icon::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: var(--red);
}
.acc-icon::before { width: 14px; height: 2.5px; }
.acc-icon::after  { width: 2.5px; height: 14px; transition: transform var(--t); }
.acc-trigger[aria-expanded="true"] .acc-icon::after { transform: translate(-50%, -50%) scaleY(0); }
.acc-panel { max-height: 0; overflow: hidden; transition: max-height var(--t); }
.acc-panel__inner { padding: 0 22px 22px; color: var(--text-muted-dark); }
.section--dark .acc-panel__inner, .section--anthr .acc-panel__inner { color: var(--text-muted); }

/* ------------------------------------------------------------------ */
/* Modale                                                              */
/* ------------------------------------------------------------------ */
.modal {
  position: fixed; inset: 0; z-index: var(--z-modal);
  display: grid; place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.82);
  opacity: 0; visibility: hidden;
  transition: opacity var(--t), visibility var(--t);
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal__box {
  width: min(560px, 100%);
  max-height: 88vh; overflow-y: auto;
  background: var(--anthracite); color: var(--text-light);
  border: 1px solid var(--gray-600);
  border-top: 3px solid var(--red);
  box-shadow: var(--shadow-lg);
  transform: translateY(18px);
  transition: transform var(--t);
}
.modal.is-open .modal__box { transform: none; }
.modal__close {
  position: absolute; top: 16px; right: 16px;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.1); color: var(--white);
  font-size: 1.4rem; line-height: 1;
  transition: background var(--t);
}
.modal__close:hover { background: var(--red); }

/* ------------------------------------------------------------------ */
/* Tooltip                                                             */
/* ------------------------------------------------------------------ */
.tooltip {
  position: fixed;
  z-index: var(--z-toast);
  background: var(--black);
  color: var(--white);
  border-left: 3px solid var(--red);
  padding: 9px 12px;
  font-size: 0.82rem;
  pointer-events: none;
  opacity: 0; transform: translateY(4px);
  transition: opacity var(--t-fast), transform var(--t-fast);
  max-width: 240px;
  box-shadow: var(--shadow);
}
.tooltip.is-visible { opacity: 1; transform: none; }

/* ------------------------------------------------------------------ */
/* Notifications (toasts)                                              */
/* ------------------------------------------------------------------ */
.toast-wrap {
  position: fixed; top: calc(var(--header-h) + 14px); right: 16px;
  z-index: var(--z-toast);
  display: flex; flex-direction: column; gap: 10px;
  max-width: 340px;
}
.toast {
  display: flex; align-items: center; gap: 12px;
  background: var(--anthracite); color: var(--white);
  border-left: 4px solid var(--red);
  padding: 14px 16px;
  box-shadow: var(--shadow-lg);
  transform: translateX(120%); opacity: 0;
  transition: transform var(--t), opacity var(--t);
}
.toast.is-visible { transform: none; opacity: 1; }
.toast--success { border-left-color: var(--status-free); }
.toast--error   { border-left-color: var(--red); }
.toast__icon { flex: 0 0 auto; font-size: 1.1rem; }

/* ------------------------------------------------------------------ */
/* Bouton retour en haut                                               */
/* ------------------------------------------------------------------ */
.to-top {
  position: fixed; right: 0; bottom: 0; z-index: 850;
  width: 52px; height: 52px;
  display: grid; place-items: center;
  background: var(--red); color: var(--white);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity var(--t), visibility var(--t), transform var(--t), background var(--t);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--white); color: var(--black); }

/* ------------------------------------------------------------------ */
/* Accessibilité : skip link + focus                                   */
/* ------------------------------------------------------------------ */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 3000;
  background: var(--red); color: var(--white);
  padding: 10px 16px; font-weight: 700;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--red-bright); outline-offset: 2px; }

/* ------------------------------------------------------------------ */
/* Footer                                                              */
/* ------------------------------------------------------------------ */
.footer {
  background: #05060A;
  color: var(--text-muted);
  border-top: 3px solid var(--red);
  position: relative;
  overflow: hidden;
}

/* Signature géante en filaire */
.footer__mark {
  font-family: var(--font-display); font-stretch: var(--w-jersey); font-weight: 900;
  text-transform: uppercase; line-height: 0.8;
  font-size: clamp(4.5rem, 17vw, 16rem);
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.14);
  letter-spacing: 0.01em;
  padding: 42px var(--gutter) 0;
  max-width: var(--maxw); margin-inline: auto;
  user-select: none;
}

.footer__top {
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(28px, 5vw, 70px); align-items: end;
  padding-block: 30px 46px;
  border-bottom: 1px solid var(--line);
}
.footer__claim {
  font-family: var(--font-head); font-stretch: var(--w-cond); font-weight: 800;
  text-transform: uppercase; font-size: clamp(1.2rem, 2.4vw, 1.9rem);
  line-height: 1.1; color: var(--white); max-width: 22ch;
}
.footer__claim em { font-style: italic; color: var(--red-bright); }
.footer__about { font-size: 0.92rem; max-width: 42ch; margin-top: 14px; line-height: 1.6; }

/* Les 3 centres, en colonnes séparées par des filets */
.footer__centres {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
}
.footer__centre {
  padding: 34px clamp(16px, 3vw, 34px) 34px 0;
  border-right: 1px solid var(--line);
  display: grid; gap: 8px; align-content: start;
}
.footer__centre:last-child { border-right: 0; }
.footer__centre:not(:first-child) { padding-left: clamp(16px, 3vw, 34px); }
.footer__centre .no {
  font-family: var(--font-display); font-stretch: var(--w-jersey); font-weight: 900;
  font-size: 0.9rem; color: var(--red); letter-spacing: 0.1em;
}
.footer__centre h4 {
  font-family: var(--font-display); font-stretch: var(--w-jersey); font-weight: 900;
  text-transform: uppercase; font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 0.9;
  color: var(--white); letter-spacing: 0;
}
.footer__centre p { font-size: 0.9rem; line-height: 1.55; }
.footer__centre .tel {
  font-family: var(--font-head); font-stretch: var(--w-cond); font-weight: 800;
  font-size: 1.15rem; color: var(--white); font-variant-numeric: tabular-nums;
  display: inline-block; margin-top: 4px;
}
.footer__centre .tel:hover { color: var(--red-bright); }
.footer__centre .hrs {
  font-family: var(--font-head); font-stretch: var(--w-label); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.68rem; color: var(--text-muted);
}
.footer__centre .lnks { display: flex; gap: 16px; margin-top: 10px; flex-wrap: wrap; }
.footer__centre .lnks a {
  font-family: var(--font-head); font-stretch: var(--w-label); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.7rem;
  color: var(--white); border-bottom: 2px solid var(--red); padding-bottom: 3px;
}
.footer__centre .lnks a:hover { color: var(--red-bright); }

/* Bandeau navigation + newsletter */
.footer__utility {
  display: grid; grid-template-columns: 1fr auto;
  gap: 26px 40px; align-items: start;
  padding-block: 34px;
  border-bottom: 1px solid var(--line);
}
.footer__nav { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.footer__nav a {
  font-family: var(--font-head); font-stretch: var(--w-label); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem; color: var(--text-muted);
}
.footer__nav a:hover { color: var(--white); }
.footer__nlhead {
  font-family: var(--font-head); font-stretch: var(--w-label); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.7rem; color: var(--white);
  margin-bottom: 10px;
}

/* Newsletter */
.newsletter { margin-top: 0; }
.newsletter__form { display: flex; gap: 0; }
.newsletter__form input {
  flex: 1; min-width: 0; width: 260px;
  padding: 13px 14px;
  border: 1px solid var(--line-strong); border-right: 0;
  background: transparent; color: var(--white); font-family: var(--font-body);
}
.newsletter__form input::placeholder { color: var(--gray-400); }
.newsletter__form input:focus { outline: none; border-color: var(--red); }
.newsletter__msg { font-size: 0.8rem; margin-top: 8px; min-height: 1em; }
.newsletter__msg.ok { color: var(--status-free); }
.newsletter__msg.err { color: var(--red-bright); }

/* Réseaux sociaux */
.socials { display: flex; gap: 0; margin-top: 18px; }
.socials a + a { border-left: 0; }
.social-btn {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong);
  color: var(--white);
  transition: background var(--t), color var(--t), border-color var(--t);
}
.social-btn:hover { background: var(--red); border-color: var(--red); }
.social-btn svg { width: 19px; height: 19px; }

.footer__bottom { padding-block: 22px; }
.footer__bottom-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  font-size: 0.8rem; flex-wrap: wrap;
}
.footer__legal { display: flex; gap: 22px; flex-wrap: wrap; }
.footer__legal a:hover { color: var(--red-bright); }

/* ------------------------------------------------------------------ */
/* Scrollbar personnalisée                                             */
/* ------------------------------------------------------------------ */
* { scrollbar-width: thin; scrollbar-color: var(--red) var(--gray-light); }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--gray-light); }
::-webkit-scrollbar-thumb { background: var(--red); border: 3px solid var(--gray-light); }
::-webkit-scrollbar-thumb:hover { background: var(--red-bright); }

/* ------------------------------------------------------------------ */
/* Rotateur de mots (titre animé) — sans flou                          */
/* ------------------------------------------------------------------ */
.rotator { display: inline-block; }
.rotator__word { display: inline-block; transition: opacity .28s ease, transform .28s cubic-bezier(0.2,0.7,0.3,1); }
.rotator.is-swapping .rotator__word { opacity: 0; transform: translateY(0.3em) skewX(-8deg); }

/* ------------------------------------------------------------------ */
/* Animation "reveal" au scroll                                        */
/* ------------------------------------------------------------------ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity var(--t-slow), transform var(--t-slow); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.07s; }
.reveal.d2 { transition-delay: 0.14s; }
.reveal.d3 { transition-delay: 0.21s; }
.reveal.d4 { transition-delay: 0.28s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
