/* Suli Barbershop — feuille de style
   Direction : affiche suisse × barbier de quartier. Rouge du logo, encre, papier ;
   le bleu électrique des LED du salon en accent. Motifs : la trame « dégradé » et le barber pole. */

/* ── Polices (auto-hébergées, SIL Open Font License) ───────────────────── */
@font-face {
  font-family: "Big Shoulders";
  src: url("../fonts/big-shoulders-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../fonts/schibsted-grotesk-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../fonts/schibsted-grotesk-italic-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: italic;
  font-display: swap;
}
/* Repli aux métriques proches pour limiter le saut de mise en page au chargement */
@font-face {
  font-family: "Big Shoulders Fallback";
  src: local("Arial Narrow"), local("ArialNarrow-Bold"), local("Arial");
  size-adjust: 86%;
  ascent-override: 104%;
  descent-override: 27%;
}
@font-face {
  font-family: "Schibsted Fallback";
  src: local("Arial");
  size-adjust: 101%;
  ascent-override: 95%;
  descent-override: 25%;
}

/* ── Tokens ─────────────────────────────────────────────────────────────── */
:root {
  /* couleurs primitives */
  --red: #d40a0a;              /* rouge mesuré sur le logo */
  --red-press: #b00508;
  --ink: #0e1015;
  --ink-2: #1a1d25;
  --night: #0a0e29;            /* le salon le soir, sous les LED bleues */
  --pole-blue: #2447ff;
  --paper: #f4f5f6;
  --paper-2: #e8eaee;
  --white: #fdfdfc;
  --ok: #22a45d;

  /* rôles */
  --text: var(--ink);
  --text-muted: #4d515b;
  --line: rgb(14 16 21 / .14);
  --on-dark: #f3f3f1;
  --on-dark-muted: #b8bcc7;
  --line-dark: rgb(255 255 255 / .14);
  --focus: var(--pole-blue);

  /* typographie */
  --font-display: "Big Shoulders", "Big Shoulders Fallback", "Arial Narrow", sans-serif;
  --font-body: "Schibsted Grotesk", "Schibsted Fallback", system-ui, sans-serif;
  --step--1: .875rem;
  --step-0: 1.0625rem;
  --step-1: 1.1875rem;
  --step-2: clamp(1.25rem, 1.1rem + .6vw, 1.5rem);
  --step-3: clamp(1.75rem, 1.35rem + 1.6vw, 2.5rem);
  --step-4: clamp(2.6rem, 1.7rem + 3.6vw, 4.5rem);
  --step-5: clamp(3.4rem, 2rem + 5.4vw, 6rem);

  /* espacement (base 4 px) */
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --section-y: clamp(4.5rem, 2.8rem + 6vw, 8.5rem);
  --gutter: clamp(1rem, .45rem + 2.8vw, 3rem);
  --container: 82rem;

  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 14px;
  --shadow-lg: 0 28px 60px -28px rgb(10 12 18 / .55);

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-expo: cubic-bezier(.16, 1, .3, 1);

  --header-h: 72px;
  --z-pole: 5;
  --z-header: 50;
  --z-bar: 60;
  --z-menu: 70;
}

/* ── Base ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}
body {
  min-height: 100vh;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
address { font-style: normal; }
q { quotes: "«\202F" "\202F»" "“" "”"; }
sup { font-size: .62em; line-height: 0; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
.section--red :focus-visible,
.section--ink :focus-visible,
.section--night :focus-visible,
.hero :focus-visible,
.site-footer :focus-visible,
.mobile-menu :focus-visible,
.lightbox :focus-visible,
.action-bar :focus-visible { outline-color: var(--white); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: 100;
  padding: var(--space-3) var(--space-4);
  background: var(--ink);
  color: var(--white);
  font-weight: 700;
  border-radius: var(--radius-sm);
}
.skip-link:focus { top: var(--space-4); }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-y); }
.section--ink { background: var(--ink); color: var(--on-dark); }
.section--red { background: var(--red); color: var(--white); }

/* ── Typographie ────────────────────────────────────────────────────────── */
.h2 {
  font-family: var(--font-display);
  font-size: var(--step-4);
  font-weight: 800;
  line-height: .96;
  letter-spacing: .005em;
  text-transform: uppercase;
}
.section-head { display: grid; gap: var(--space-4); max-width: 44rem; }
.section-lead { font-size: var(--step-1); max-width: 52ch; color: var(--text-muted); }
.section--ink .section-lead,
.section--night .section-lead { color: var(--on-dark-muted); }

/* ── Boutons ────────────────────────────────────────────────────────────── */
.btn {
  --btn-bg: var(--red);
  --btn-fg: var(--white);
  --btn-border: var(--btn-bg);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  min-height: 48px;
  padding: .75em 1.3em;
  overflow: hidden;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 2px solid var(--btn-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: .01em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s var(--ease-out);
}
/* Au survol, une fine bande de barber pole se déroule sous le libellé */
.btn::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 4px;
  background: url("../img/pole-helice-h.svg") 0 0 / 22px 100% repeat-x;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease-out);
}
.btn:hover::after { transform: scaleX(1); }
.btn:active { transform: translateY(1px) scale(.985); }
.btn--red:hover { --btn-bg: var(--red-press); }
.btn--light { --btn-bg: var(--white); --btn-fg: var(--red); }
.btn--light:hover { --btn-bg: #fff; --btn-fg: var(--red-press); }
.btn--outline-light { --btn-bg: transparent; --btn-fg: var(--white); --btn-border: rgb(255 255 255 / .7); }
.btn--outline-light:hover { --btn-bg: rgb(255 255 255 / .1); --btn-border: var(--white); }
.btn--sm { min-height: 44px; padding: .55em 1em; font-size: .9375rem; }
.btn--lg { min-height: 56px; padding: .9em 1.6em; font-size: 1.0625rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgb(212 10 10 / .5);
  text-underline-offset: .3em;
  transition: text-decoration-color .2s ease, color .2s ease;
}
.link-arrow:hover { color: var(--red); text-decoration-color: currentColor; }

/* ── Barber pole de progression (bord gauche, grands écrans) ─────────────── */
.scroll-pole { display: none; }
@supports (animation-timeline: scroll()) {
  @media (min-width: 1100px) and (prefers-reduced-motion: no-preference) {
    .scroll-pole {
      display: block;
      position: fixed;
      inset: 0 auto 0 0;
      z-index: var(--z-pole);
      width: 6px;
      background:
        linear-gradient(90deg, rgb(0 0 0 / .45), rgb(255 255 255 / .35) 40%, rgb(0 0 0 / .45)),
        url("../img/pole-helice-v.svg") 0 0 / 100% 16px repeat-y;
      pointer-events: none;
      animation: pole-progress linear both;
      animation-timeline: scroll(root);
    }
  }
}
@keyframes pole-progress {
  from { clip-path: inset(0 0 100% 0); background-position: 0 0; }
  to { clip-path: inset(0 0 0 0); background-position: 0 192px; }
}

/* ── En-tête ────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 10px 30px -24px rgb(14 16 21 / .5); }
.header-inner {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  height: var(--header-h);
}
.brand { display: block; flex: none; }
.brand img { width: auto; height: 36px; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: clamp(1rem, .2rem + 1.4vw, 1.9rem); }
.nav a {
  position: relative;
  display: inline-block;
  padding-block: .4rem;
  font-size: .9375rem;
  font-weight: 600;
  text-decoration: none;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .3s var(--ease-out);
}
.nav a:hover::after,
.nav a[aria-current="true"]::after { transform: scaleX(1); transform-origin: left; }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: .4em .8em;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .8125rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  color: var(--text-muted);
}
.status-pill[hidden] { display: none; }
.status-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  flex: none;
  background: #8a8f99;
}
[data-open="true"] .status-dot { background: var(--ok); animation: status-pulse 2.4s ease-out infinite; }
@keyframes status-pulse {
  0% { box-shadow: 0 0 0 0 rgb(34 164 93 / .55); }
  70%, 100% { box-shadow: 0 0 0 8px rgb(34 164 93 / 0); }
}

.menu-toggle {
  display: none;
  width: 48px; height: 48px;
  margin-right: -8px;
  place-items: center;
  background: none;
  border: 0;
  border-radius: var(--radius-sm);
}
.menu-toggle .icon { grid-area: 1 / 1; width: 26px; height: 26px; }
.menu-toggle .icon-close,
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 1080px) {
  .status-pill { display: none; }
}
@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .nav { display: none; }
  .header-cta { margin-left: auto; }
  .menu-toggle { display: grid; }
  .brand img { height: 30px; }
}
@media (max-width: 380px) {
  .brand img { height: 26px; }
  .header-cta { padding-inline: .8em; }
}

/* ── Menu mobile ────────────────────────────────────────────────────────── */
.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: var(--z-menu);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-6);
  padding: var(--space-6) var(--gutter) calc(var(--space-6) + env(safe-area-inset-bottom));
  overflow-y: auto;
  background: var(--ink);
  color: var(--on-dark);
  animation: menu-in .35s var(--ease-out);
}
.mobile-menu[hidden] { display: none; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-12px); } }
.mobile-menu nav a {
  display: block;
  padding-block: .35rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 1.6rem + 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
}
.mobile-menu nav a:hover { color: var(--red); }
.mobile-menu-foot { display: grid; gap: var(--space-3); }
.mobile-menu-address { color: var(--on-dark-muted); font-size: var(--step--1); }
body.menu-open { overflow: hidden; }

.status-line {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  font-weight: 600;
}
.status-line[hidden] { display: none; }

/* ── Héros ──────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  isolation: isolate;
  padding-block: clamp(2.75rem, 1.2rem + 5vw, 5.5rem) clamp(3rem, 2rem + 3vw, 4.5rem);
  background: var(--red);
  color: var(--white);
}
/* La trame « dégradé » : sous le bloc rouge, les points rapetissent comme un fade à la nuque */
.hero::after {
  content: "";
  position: absolute;
  inset: 100% 0 auto;
  z-index: -1;
  height: clamp(56px, 2.5rem + 3.5vw, 96px);
  background: url("../img/degrade-rouge.svg") 0 0 / auto 100% repeat-x;
}
.hero-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--space-7) var(--space-5);
  align-items: end;
}
.hero-copy { grid-column: 1 / span 7; padding-bottom: var(--space-4); }
.hero-title {
  display: grid;
  font-family: var(--font-display);
  font-size: var(--step-5);
  font-weight: 800;
  line-height: .92;
  letter-spacing: .004em;
  text-transform: uppercase;
}
.hero-kicker {
  display: block;
  margin-bottom: var(--space-5);
  font-family: var(--font-body);
  font-size: .9375rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .1em;
}
.hero-kicker::before {
  content: "";
  display: inline-block;
  width: 2.2em;
  height: 2px;
  margin-right: .7em;
  vertical-align: .3em;
  background: currentColor;
}
.hero-line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-line > span { display: block; }
.hero-lead {
  max-width: 34ch;
  margin-top: var(--space-6);
  font-size: var(--step-2);
  line-height: 1.45;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }
.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-5);
  margin-top: var(--space-6);
  font-size: var(--step--1);
}
.hero-proof li { display: flex; align-items: center; gap: .55em; }
.hero-proof li + li::before {
  content: "";
  width: 5px; height: 5px;
  margin-right: .35em;
  border-radius: 50%;
  background: rgb(255 255 255 / .6);
}
.stars { display: inline-flex; gap: 2px; }
.stars svg { width: 15px; height: 15px; fill: var(--white); stroke: none; }

.hero-figure {
  grid-column: 8 / -1;
  position: relative;
  z-index: 1;
  margin-bottom: calc(-1 * clamp(4rem, 2rem + 7vw, 9rem));
}
/* La légende se pose sur la photo, comme les étiquettes du book (hors de la trame rouge) */
.hero-figure figcaption {
  position: absolute;
  left: 18px;
  bottom: 18px;
  max-width: calc(100% - 66px);
  padding: .4em .7em;
  background: var(--paper);
  color: var(--ink);
  border-radius: 3px;
  font-size: .8125rem;
  font-weight: 600;
  line-height: 1.3;
}
.motion .hero-figure figcaption { animation: fade-up .6s var(--ease-out) 1.35s both; }
.motion-done .hero-figure figcaption { animation: none; }

/* Le miroir du salon : cadre noir, et la colonne lumineuse à côté */
.mirror {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: stretch;
}
.mirror .pole--v { padding-block: 2px; }
@property --pass {
  syntax: "<percentage>";
  inherits: true;
  initial-value: 114%;
}
.mirror-glass {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--ink);
  border: 7px solid var(--ink);
  box-shadow: var(--shadow-lg);
}
.mirror-glass picture,
.tile-btn picture { height: 100%; }
.mirror-glass img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 40% 50%;
  -webkit-mask-image: linear-gradient(to top, #000 calc(var(--pass) - 14%), transparent var(--pass));
  mask-image: linear-gradient(to top, #000 calc(var(--pass) - 14%), transparent var(--pass));
}
/* La lame : un trait lumineux qui accompagne le passage de la tondeuse */
.mirror-glass::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: calc(var(--pass) - 14%);
  height: 2px;
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / .85) 30%, rgb(255 255 255 / .85) 70%, transparent);
  opacity: 0;
  pointer-events: none;
}
/* ── Barber pole ────────────────────────────────────────────────────────────
   Rayures = hélices projetées sur un cylindre (tuiles SVG sans raccord de tools/pole.py).
   Volume, reflet et halo sont des calques fixes ; seule la couche des rayures bouge
   (transform, composité par le GPU), d'une période exacte : la boucle est invisible. */
.pole {
  --pole-w: 16px;        /* diamètre apparent du tube */
  --pole-lead: 42px;     /* hauteur d'une période rouge-blanc-bleu-blanc, environ 2,6 × le diamètre */
  --pole-speed: 2.6s;    /* durée d'un tour complet */
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
@media (min-width: 1024px) {
  .pole { --pole-w: 20px; --pole-lead: 52px; }
}
.pole-tube {
  position: relative;
  display: block;
  flex: 1;
  width: var(--pole-w);
  overflow: hidden;
  isolation: isolate;
  background: #fbfbf8;
  box-shadow:
    0 0 0 1.5px rgb(8 10 16 / .92),
    0 0 16px 1px rgb(36 71 255 / .5),
    0 0 34px 4px rgb(212 10 10 / .28);
}
.pole-stripes {
  position: absolute;
  inset: 0 0 auto;
  height: calc(100% + var(--pole-lead));
  background: url("../img/pole-helice-v.svg") 0 0 / 100% var(--pole-lead) repeat-y;
  will-change: transform;
  animation: pole-rise var(--pole-speed) linear infinite;
}
@keyframes pole-rise { to { transform: translateY(calc(-1 * var(--pole-lead))); } }
/* Volume du cylindre : bords dans l'ombre, lumière douce à gauche du centre */
.pole-tube::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg,
    rgb(0 0 0 / .58) 0%, rgb(0 0 0 / .22) 13%, rgb(0 0 0 / 0) 27%,
    rgb(255 255 255 / .42) 35%, rgb(255 255 255 / .08) 45%, rgb(0 0 0 / 0) 57%,
    rgb(0 0 0 / .2) 79%, rgb(0 0 0 / .62) 100%);
}
/* Reflet du verre */
.pole-tube::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 29%;
  z-index: 2;
  width: 15%;
  background: linear-gradient(90deg, rgb(255 255 255 / 0), rgb(255 255 255 / .8) 50%, rgb(255 255 255 / 0));
}
/* Embouts chromés et pommeau */
.pole-cap {
  position: relative;
  z-index: 1;
  flex: none;
  width: 100%;
  height: 12px;
  background: linear-gradient(90deg, #2c3037 0%, #7a808a 15%, #e9ecf0 34%, #ffffff 43%, #b3b9c2 57%, #676d77 78%, #23272d 100%);
  border-radius: 50% 50% 3px 3px / 95% 95% 3px 3px;
  box-shadow: 0 1px 0 rgb(0 0 0 / .5), inset 0 -2px 0 rgb(0 0 0 / .22);
}
.pole-cap--bottom {
  border-radius: 3px 3px 50% 50% / 3px 3px 95% 95%;
  box-shadow: 0 -1px 0 rgb(0 0 0 / .5), inset 0 2px 0 rgb(0 0 0 / .22);
}
.pole--v { width: calc(var(--pole-w) + 8px); height: 100%; }
.pole--v::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  width: 9px;
  height: 9px;
  translate: -50% 0;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffffff 0 18%, #b9bec6 42%, #50555e 100%);
}
/* Tube horizontal pleine largeur (séparateur avant la réservation) */
.pole--h {
  --pole-w: 16px;
  --pole-lead: 42px;
  display: block;
  width: 100%;
  height: var(--pole-w);
}
@media (min-width: 1024px) {
  .pole--h { --pole-w: 20px; --pole-lead: 52px; }
}
.pole--h .pole-tube {
  width: 100%;
  height: 100%;
  box-shadow: 0 0 0 1px rgb(8 10 16 / .92), 0 0 24px 2px rgb(36 71 255 / .38);
}
.pole--h .pole-stripes {
  inset: 0 auto 0 0;
  width: calc(100% + var(--pole-lead));
  height: 100%;
  background: url("../img/pole-helice-h.svg") 0 0 / var(--pole-lead) 100% repeat-x;
  animation-name: pole-slide;
}
@keyframes pole-slide { to { transform: translateX(calc(-1 * var(--pole-lead))); } }
.pole--h .pole-tube::before {
  background: linear-gradient(180deg,
    rgb(0 0 0 / .58) 0%, rgb(0 0 0 / .22) 13%, rgb(0 0 0 / 0) 27%,
    rgb(255 255 255 / .42) 35%, rgb(255 255 255 / .08) 45%, rgb(0 0 0 / 0) 57%,
    rgb(0 0 0 / .2) 79%, rgb(0 0 0 / .62) 100%);
}
.pole--h .pole-tube::after {
  inset: 29% 0 auto;
  width: auto;
  height: 15%;
  background: linear-gradient(180deg, rgb(255 255 255 / 0), rgb(255 255 255 / .8) 50%, rgb(255 255 255 / 0));
}
/* Hors écran : rayures à l'arrêt (économie de batterie, voir main.js) */
.pole.is-paused .pole-stripes { animation-play-state: paused; }

/* Entrée du héros : classe .motion posée dans <head> uniquement si l'onglet est visible */
.motion .hero-line > span { animation: rise .9s var(--ease-expo) both; }
.motion .hero-line:nth-child(3) > span { animation-delay: .08s; }
.motion .hero-line:nth-child(4) > span { animation-delay: .16s; }
.motion .hero-kicker { animation: fade-up .7s var(--ease-out) both; }
.motion .hero-lead { animation: fade-up .8s var(--ease-out) .3s both; }
.motion .hero-actions { animation: fade-up .8s var(--ease-out) .4s both; }
.motion .hero-proof { animation: fade-up .8s var(--ease-out) .5s both; }
.motion .mirror-glass { animation: clipper-pass 1.25s var(--ease-out) .35s both; }
.motion .mirror-glass::after { animation: blade 1.25s var(--ease-out) .35s both; }
/* Filet de sécurité : si le rendu n'a pas avancé (onglet en arrière-plan, capture), on affiche l'état final */
.motion-done .hero-line > span,
.motion-done .hero-kicker,
.motion-done .hero-lead,
.motion-done .hero-actions,
.motion-done .hero-proof,
.motion-done .mirror-glass,
.motion-done .mirror-glass::after { animation: none; }
@keyframes rise { from { transform: translateY(105%); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } }
@keyframes clipper-pass { from { --pass: 0%; } to { --pass: 114%; } }
@keyframes blade { 0% { opacity: 0; } 12%, 70% { opacity: 1; } 100% { opacity: 0; } }

@media (max-width: 1023px) {
  .hero-copy, .hero-figure { grid-column: 1 / -1; }
  .hero-figure { max-width: 30rem; margin-bottom: calc(-1 * clamp(3rem, 8vw, 5rem)); }
}

/* ── Le book ────────────────────────────────────────────────────────────── */
.book { padding-top: calc(var(--section-y) + clamp(1.5rem, .5rem + 4vw, 4rem)); }
.book-head { max-width: 38rem; }
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-6);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  min-height: 44px;
  padding: .45em 1em;
  background: transparent;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  font-size: .9375rem;
  font-weight: 600;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.chip-count { font-family: var(--font-display); font-weight: 800; font-size: 1.05em; color: var(--red); }
.chip[aria-pressed="true"] .chip-count { color: #ff8a82; }

.book-wrap { container-type: inline-size; margin-top: var(--space-6); }
.book-grid {
  --cols: 2;
  --gap: .625rem;
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  grid-auto-rows: calc((100cqi - (var(--cols) - 1) * var(--gap)) / var(--cols) * 4 / 3);
  grid-auto-flow: dense;
  gap: var(--gap);
}
@media (min-width: 700px) { .book-grid { --cols: 3; --gap: .875rem; } }
@media (min-width: 1100px) { .book-grid { --cols: 4; --gap: 1rem; } }
.tile { position: relative; min-width: 0; }
.tile[hidden] { display: none; }
.tile--big { grid-column: span 2; grid-row: span 2; }
.tile--wide { grid-column: span 2; }
.tile-btn {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  background: var(--paper-2);
  border: 0;
  border-radius: var(--radius-sm);
  cursor: zoom-in;
}
.tile-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease-out);
}
.tile-btn:hover img { transform: scale(1.045); }
.tile-cap {
  position: absolute;
  left: .5rem;
  bottom: .5rem;
  display: inline-flex;
  align-items: baseline;
  gap: .5em;
  max-width: calc(100% - 1rem);
  padding: .35em .65em;
  background: var(--paper);
  color: var(--ink);
  border-radius: 3px;
  font-size: .8125rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: left;
}
.tile-num { font-family: var(--font-display); font-size: 1.1em; font-weight: 800; color: var(--red); }
@media (hover: hover) {
  .tile-cap { transform: translateY(calc(100% + .75rem)); transition: transform .4s var(--ease-out); }
  .tile-btn:hover .tile-cap,
  .tile-btn:focus-visible .tile-cap { transform: none; }
}
.tile-btn:focus-visible { outline-offset: -3px; }
.book-more { margin-top: var(--space-6); }

/* ── Lightbox ───────────────────────────────────────────────────────────── */
.lightbox {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  padding: 0;
  background: transparent;
  border: 0;
  color: var(--white);
}
.lightbox::backdrop { background: rgb(8 9 13 / .94); }
.lightbox[open] { animation: fade-in .25s ease; }
@keyframes fade-in { from { opacity: 0; } }
.lightbox-inner {
  position: relative;
  display: grid;
  place-items: center;
  height: 100%;
  padding: 64px 72px 24px;
}
.lightbox-figure { display: grid; justify-items: center; gap: var(--space-3); max-height: 100%; }
.lightbox-figure picture { display: contents; }
.lightbox-figure img {
  width: auto;
  max-width: min(100%, 900px);
  max-height: calc(100dvh - 150px);
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: #15171d;
}
.lightbox-figure figcaption { font-weight: 600; text-align: center; }
.lightbox-count {
  position: absolute;
  top: 20px; left: 24px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: .04em;
}
.lightbox-btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  background: rgb(255 255 255 / .1);
  border: 0;
  border-radius: 50%;
  color: var(--white);
  transition: background-color .2s ease;
}
.lightbox-btn:hover { background: rgb(255 255 255 / .22); }
.lightbox-btn .icon { width: 24px; height: 24px; }
.lightbox-close { top: 12px; right: 12px; }
.lightbox-prev { left: 12px; top: 50%; translate: 0 -50%; }
.lightbox-next { right: 12px; top: 50%; translate: 0 -50%; }
@media (max-width: 640px) {
  .lightbox-inner { padding: 64px 12px 88px; }
  .lightbox-prev, .lightbox-next { top: auto; bottom: 20px; translate: none; }
  .lightbox-prev { left: calc(50% - 60px); }
  .lightbox-next { right: calc(50% - 60px); }
}

/* ── Tarifs ─────────────────────────────────────────────────────────────── */
.tarifs-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--space-8) var(--space-5);
  align-items: start;
}
.tarifs-main { grid-column: 1 / span 7; }
.tarifs-side { grid-column: 9 / -1; padding-top: var(--space-4); }
@media (min-width: 1024px) {
  .tarifs-side { position: sticky; top: calc(var(--header-h) + var(--space-6)); }
}
.price-list { margin-top: var(--space-7); border-top: 1px solid var(--line-dark); }
.price { padding-block: var(--space-5); border-bottom: 1px solid var(--line-dark); }
.price-row {
  display: flex;
  align-items: baseline;
  gap: var(--space-4);
}
.price-name {
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}
.price-lead {
  flex: 1;
  min-width: 1.5rem;
  border-bottom: 3px dotted var(--red);
  transform-origin: left;
}
.price-amount {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 1.6rem + 2.3vw, 3.4rem);
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.price-desc { margin-top: var(--space-2); max-width: 52ch; color: var(--on-dark-muted); }
.price-tag {
  display: inline-block;
  margin-left: .35em;
  padding: .1em .55em;
  background: var(--red);
  color: var(--white);
  border-radius: 3px;
  font-size: .8125rem;
  font-weight: 700;
  white-space: nowrap;
}
.price-quote { color: var(--on-dark); font-style: italic; }
.price-quote-by { font-size: .8125rem; white-space: nowrap; }
.tarifs-cta { display: grid; justify-items: start; gap: var(--space-3); margin-top: var(--space-7); }
.tarifs-cta p { color: var(--on-dark-muted); font-size: var(--step--1); }
.tarifs-cta a:not(.btn) { color: var(--on-dark); font-weight: 700; }

.tools-photo img { width: 100%; border-radius: var(--radius); }
.welcome {
  position: relative;
  margin: -5.5rem 0 0 -2.5rem;
  padding: var(--space-6) var(--space-5) var(--space-5);
  background: var(--red);
  color: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  rotate: -2deg;
}
.welcome::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 8px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: url("../img/pole-helice-h.svg") 0 0 / 22px 100% repeat-x;
}
.welcome-title {
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}
.welcome-sub { margin-top: var(--space-1); font-weight: 600; }
.stamps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-5);
}
.stamp { display: grid; justify-items: center; gap: var(--space-2); text-align: center; }
.stamp-mark {
  display: grid;
  place-items: center;
  width: clamp(4.25rem, 3.4rem + 2vw, 5.25rem);
  aspect-ratio: 1;
  border: 2.5px solid var(--white);
  border-radius: 50%;
  outline: 1.5px dashed rgb(255 255 255 / .75);
  outline-offset: 3px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  rotate: -8deg;
}
.stamp:nth-child(2) .stamp-mark { rotate: 6deg; }
.stamp:nth-child(3) .stamp-mark { rotate: -3deg; }
.stamp-label { display: grid; font-size: .8125rem; line-height: 1.3; }
.stamp-label strong { font-size: .875rem; }
.welcome-note { margin-top: var(--space-4); font-size: .75rem; }
/* Coup de tampon quand la carte arrive à l'écran (le tampon reste visible sans animation) */
.welcome.is-stamped .stamp-mark { animation: stamp .55s var(--ease-expo) both; }
.welcome.is-stamped .stamp:nth-child(2) .stamp-mark { animation-delay: .22s; }
.welcome.is-stamped .stamp:nth-child(3) .stamp-mark { animation-delay: .44s; }
@keyframes stamp {
  0% { transform: scale(1.7); filter: blur(2px); }
  60% { transform: scale(.94); filter: none; }
  100% { transform: scale(1); }
}

/* Les pointillés des prix se tracent au défilement */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .price-lead {
      animation: draw-lead linear both;
      animation-timeline: view();
      animation-range: entry 15% cover 45%;
    }
  }
}
@keyframes draw-lead { from { transform: scaleX(0); } }

@media (max-width: 1023px) {
  .tarifs-main, .tarifs-side { grid-column: 1 / -1; }
  .tarifs-side { display: grid; grid-template-columns: minmax(0, 1fr); max-width: 34rem; }
  .welcome { margin: -4.5rem 0 0 var(--space-4); }
}
@media (max-width: 480px) {
  .price-row { flex-wrap: wrap; row-gap: 0; }
  .welcome { margin-inline: var(--space-2) 0; padding-inline: var(--space-4); }
}

/* ── Le barbier ─────────────────────────────────────────────────────────── */
.barbier-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--space-8) var(--space-5);
  align-items: center;
}
.barbier-art { grid-column: 1 / span 6; position: relative; padding-bottom: var(--space-8); }
.barbier-illus { width: 100%; }
.barbier-photo {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 36%;
  padding: 6px 6px 0;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  rotate: 3deg;
}
.barbier-photo figcaption { padding: .4rem .2rem .45rem; font-size: .75rem; font-weight: 600; color: var(--text-muted); }
/* Emplacement du portrait de Brwa : la vraie photo remplacera ce cadre après validation du projet */
.barbier-photo--attente { padding-bottom: 20px; }
.portrait-attente {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--paper-2);
}
.portrait-attente::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: url("../img/degrade-rouge.svg") 0 0 / auto 100% repeat-x;
  transform: scaleY(-1);
  opacity: .22;
}
.portrait-nom {
  position: relative;
  z-index: 1;
  display: grid;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1rem + 2.2vw, 2.6rem);
  font-weight: 800;
  line-height: .92;
  text-align: center;
  text-transform: uppercase;
}
.portrait-nom span + span { color: var(--red); }
.barbier-text { grid-column: 8 / -1; display: grid; gap: var(--space-4); }
.barbier-text p { max-width: 58ch; }
.barbier-text .h2 { margin-bottom: var(--space-3); }
.signature { margin-top: var(--space-4); }
.signature p {
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 700;
  line-height: 1.05;
  color: var(--red);
  text-transform: uppercase;
}
.signature footer { margin-top: var(--space-2); font-weight: 600; color: var(--text-muted); }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    /* Le dessin du logo se découvre de haut en bas, comme un passage de tondeuse */
    .barbier-illus {
      animation: uncover linear both;
      animation-timeline: view();
      animation-range: entry 10% cover 40%;
    }
    .barbier-photo {
      animation: settle linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 35%;
    }
  }
}
@keyframes uncover { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes settle { from { transform: translateY(40px) rotate(4deg); } }

.values-title {
  margin-top: var(--space-9);
  font-size: var(--step-1);
  font-weight: 700;
}
.values {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: var(--space-4);
  border-top: 2px solid var(--ink);
}
.value { padding: var(--space-5) var(--space-5) 0 0; }
.value + .value { padding-left: var(--space-5); border-left: 1px solid var(--line); }
.value-word {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem);
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.value-quote { margin-top: var(--space-3); }
.value-quote p { font-style: italic; }
.value-quote footer { margin-top: var(--space-2); font-size: var(--step--1); color: var(--text-muted); }

@media (max-width: 1023px) {
  .barbier-art, .barbier-text { grid-column: 1 / -1; }
  .barbier-art { max-width: 36rem; }
  .barbier-photo { right: .75rem; width: 40%; }
  .values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .value:nth-child(3) { padding-left: 0; border-left: 0; }
  .value:nth-child(n + 3) { margin-top: var(--space-5); border-top: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .values { grid-template-columns: minmax(0, 1fr); }
  .value + .value { padding-left: 0; border-left: 0; margin-top: var(--space-5); border-top: 1px solid var(--line); }
}

/* ── Avis ───────────────────────────────────────────────────────────────── */
.avis { overflow: hidden; padding-bottom: var(--space-8); }
.avis-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-5);
}
.avis-head .h2 { max-width: 12ch; }
.ratings { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.rating {
  display: grid;
  gap: .15rem;
  min-width: 12.5rem;
  padding: var(--space-3) var(--space-4);
  border: 1.5px solid rgb(255 255 255 / .55);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background-color .2s ease, border-color .2s ease;
}
.rating:hover { background: rgb(255 255 255 / .1); border-color: var(--white); }
.rating-score { font-family: var(--font-display); font-size: 2.6rem; font-weight: 800; line-height: 1; }
.rating-meta { display: inline-flex; align-items: center; gap: .4em; font-size: var(--step--1); font-weight: 600; }
.rating-meta .icon { width: 1em; height: 1em; }

.quotes {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--space-7) var(--space-5);
  margin-top: var(--space-8);
}
.quote { position: relative; padding-top: 4.25rem; }
.quote::before {
  content: "«";
  position: absolute;
  top: -.28em;
  left: -.04em;
  font-family: var(--font-display);
  font-size: 6rem;
  font-weight: 800;
  line-height: 1;
  color: var(--ink);
}
.quote p { font-size: var(--step-2); font-weight: 500; line-height: 1.4; }
.quote footer { margin-top: var(--space-3); font-weight: 700; }
.quote footer span { font-weight: 500; }
.quote:nth-child(1) { grid-column: 1 / span 5; }
.quote:nth-child(2) { grid-column: 7 / span 6; margin-top: var(--space-8); }
.quote:nth-child(3) { grid-column: 3 / span 5; }
@media (max-width: 900px) {
  .quote:nth-child(n) { grid-column: 1 / -1; margin-top: 0; }
}

.marquee {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-8);
  padding-block: var(--space-4);
  border-block: 2px solid rgb(255 255 255 / .85);
  overflow: hidden;
}
.marquee-track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: marquee 70s linear infinite;
}
.marquee-track--reverse { animation-direction: reverse; animation-duration: 80s; }
.marquee:hover .marquee-track,
.marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee-track li {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1.1rem + 2vw, 2.8rem);
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
  white-space: nowrap;
}
.marquee-track li::after {
  content: "";
  display: inline-block;
  width: .5em; height: .5em;
  margin-left: 1.5rem;
  vertical-align: .15em;
  border-radius: 50%;
  background: var(--ink);
}
.marquee-track cite {
  margin-left: .5em;
  font-family: var(--font-body);
  font-size: .42em;
  font-style: normal;
  font-weight: 600;
  text-transform: none;
  vertical-align: .35em;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── Horaires & accès ───────────────────────────────────────────────────── */
.section--night {
  background:
    radial-gradient(70rem 36rem at 88% -10%, rgb(36 71 255 / .32), transparent 62%),
    radial-gradient(46rem 30rem at -5% 110%, rgb(212 10 10 / .2), transparent 60%),
    var(--night);
  color: var(--on-dark);
}
.infos-grid {
  display: grid;
  grid-template-columns: minmax(0, 11rem) minmax(0, 4.5fr) minmax(0, 6fr);
  gap: var(--space-7);
  align-items: start;
}
.infos-pole {
  align-self: stretch;
  overflow: hidden;
  border-radius: 999px 999px var(--radius-lg) var(--radius-lg);
  box-shadow: 0 0 60px rgb(36 71 255 / .35);
}
.infos-pole img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; }
.infos-hours { display: grid; gap: var(--space-5); }
.status-line--big {
  padding: .55em 1em;
  background: rgb(255 255 255 / .08);
  border-radius: 999px;
  justify-self: start;
}
.hours { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours th,
.hours td { padding: .7rem .75rem; border-bottom: 1px solid var(--line-dark); font-weight: 500; }
.hours th { text-align: left; }
.hours td { text-align: right; color: var(--on-dark-muted); white-space: nowrap; }
.hours tr.is-today th,
.hours tr.is-today td { color: var(--white); font-weight: 700; background: rgb(255 255 255 / .08); }
.hours tr.is-today th { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.hours tr.is-today td { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.hours tr.is-today th::after {
  content: "aujourd’hui";
  margin-left: .6em;
  padding: .1em .45em;
  background: var(--red);
  border-radius: 3px;
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .04em;
  vertical-align: .15em;
}
.hours-note { font-size: var(--step--1); color: var(--on-dark-muted); }

.infos-access { display: grid; gap: var(--space-5); }
.map {
  position: relative;
  aspect-ratio: 800 / 560;
  overflow: hidden;
  background: #0b1030;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
}
.map > img,
.map > svg { width: 100%; height: 100%; }
.map-pin-pulse { transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) {
  .map-pin-pulse { animation: pin-pulse 2.4s var(--ease-out) infinite; }
}
@keyframes pin-pulse { from { transform: scale(.6); opacity: 1; } to { transform: scale(2.4); opacity: 0; } }
.address-card { display: grid; gap: var(--space-3); }
.address-line { display: flex; gap: .75em; align-items: flex-start; }
.address-line .icon { margin-top: .25em; color: var(--red); stroke-width: 2.2; }
.address-line strong { font-size: var(--step-1); }
.address-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-2); }

@media (max-width: 1100px) {
  .infos-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
  .infos-pole { display: none; }
}
@media (max-width: 820px) {
  .infos-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ── Pied de page ───────────────────────────────────────────────────────── */
.site-footer { background: var(--ink); color: var(--on-dark); }
.footer-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-6);
  padding-block: var(--space-9) var(--space-8);
  border-bottom: 1px solid var(--line-dark);
}
.footer-cta-title {
  max-width: 11ch;
  font-family: var(--font-display);
  font-size: var(--step-4);
  font-weight: 800;
  line-height: .95;
  text-transform: uppercase;
}
.footer-cta-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 1fr));
  gap: var(--space-7) var(--space-5);
  padding-block: var(--space-8);
}
.footer-brand picture {
  display: inline-block;
  padding: .9rem 1.1rem .7rem;
  background: var(--white);
  border-radius: var(--radius);
  rotate: -3deg;
  box-shadow: 0 16px 40px -18px rgb(0 0 0 / .7);
}
.footer-brand img { width: 150px; }
.footer-title {
  margin-bottom: var(--space-3);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.footer-col p,
.footer-links { color: var(--on-dark-muted); }
.footer-links { display: grid; gap: .35rem; }
.footer-links a,
.footer-bottom a { text-decoration-color: rgb(255 255 255 / .35); }
.footer-links a:hover,
.footer-bottom a:hover { color: var(--white); text-decoration-color: currentColor; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3);
  padding-block: var(--space-5) calc(var(--space-5) + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line-dark);
  font-size: var(--step--1);
  color: var(--on-dark-muted);
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ── Pages secondaires : mentions légales, 404 ──────────────────────────── */
.legal-cta { margin-left: auto; }
.legal-inner { max-width: 48rem; }
.legal-back { margin-bottom: var(--space-5); }
.legal .h2 { margin-bottom: var(--space-7); }
.legal section + section { margin-top: var(--space-7); }
.legal h2:not(.h2) {
  margin-bottom: var(--space-3);
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}
.legal ul { display: grid; gap: var(--space-3); padding-left: 1.2em; }
.legal li::marker { color: var(--red); }
.legal a:not(.btn) { text-decoration-color: rgb(212 10 10 / .5); }
.page-legal .footer-bottom { border-top: 0; }

.error-hero { display: grid; align-items: center; min-height: 100vh; }
.error-hero::after { display: none; }
.error-logo { display: inline-block; margin-bottom: var(--space-8); }
.error-logo img { width: auto; height: 40px; }

/* ── Barre d'actions mobile ─────────────────────────────────────────────── */
.action-bar { display: none; }
@media (max-width: 899px) {
  .action-bar {
    position: fixed;
    inset: auto 0 0 0;
    z-index: var(--z-bar);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
    gap: var(--space-2);
    padding: .6rem var(--gutter) calc(.6rem + env(safe-area-inset-bottom));
    background: rgb(14 16 21 / .97);
    box-shadow: 0 -12px 30px -18px rgb(0 0 0 / .6);
    transition: transform .4s var(--ease-out);
  }
  .js .action-bar:not(.is-visible) { transform: translateY(110%); }
  .site-footer { padding-bottom: 76px; }
}

/* ── Mouvement réduit ───────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .marquee-track { width: auto; flex-wrap: wrap; row-gap: .5rem; padding-inline: var(--gutter); animation: none; }
  .marquee-track li { white-space: normal; }
  .marquee-dup { display: none; }
  .pole-stripes { animation: none; }
}
