/* JSR Expériences — feuille commune
   Charte : blanc, anthracite #2B2B2B, bleu JSR #0870C4 (clients/jsr-experiences/CHARTE.md)
   Forme : angles vifs, coin coupé en bas à droite sur boutons et plaques (une seule règle de forme). */

:root {
  --white: #FFFFFF;
  --paper: #F3F5F7;
  --line: #DDE2E7;
  --ink: #2B2B2B;
  --ink-2: #4E5660;
  --ink-3: #5C646E;
  --blue: #0870C4;
  --blue-deep: #06599C;
  --sky: #0A9BDF;
  --navy: #2E3A8C;
  --cut: 12px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --font: "Archivo", system-ui, sans-serif;
  --max: 1400px;
  --gutter: clamp(16px, 4vw, 48px);
  --head-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 16px); }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font-family: var(--font); font-size: 17px; line-height: 1.6;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 {
  font-family: var(--font); font-weight: 800; font-variation-settings: "wdth" 125;
  line-height: 1.04; letter-spacing: -0.01em; margin: 0; text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--white); padding: 8px 12px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* ---------- Logo : fichier du client (sources/site-web, PNG détouré) ---------- */
.brand { display: inline-flex; flex: none; text-decoration: none; }
.brand img { width: 142px; height: auto; }

/* ---------- En-tête ---------- */
.head {
  position: sticky; top: 0; z-index: 40; height: var(--head-h);
  background: var(--white); border-bottom: 1px solid var(--line);
}
.head .wrap { height: 100%; display: flex; align-items: center; gap: 20px; }
.tabs { display: flex; gap: 2px; margin-left: auto; }
.tabs a {
  position: relative; padding: 10px 7px; text-decoration: none; white-space: nowrap;
  font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  font-variation-settings: "wdth" 110; color: var(--ink-2);
  transition: color 160ms ease;
}
.tabs a::after {
  content: ""; position: absolute; left: 7px; right: 7px; bottom: 2px; height: 3px;
  background: var(--blue); transform: scaleX(0); transform-origin: left;
  transition: transform 220ms var(--ease-out);
}
.tabs a[aria-current="page"] { color: var(--ink); }
.tabs a[aria-current="page"]::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) {
  .tabs a:hover { color: var(--ink); }
  .tabs a:hover::after { transform: scaleX(1); }
}
.head-actions { display: flex; align-items: center; gap: 10px; }
.tel {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.tel i { font-size: 19px; color: var(--blue); }
.burger { display: none; }

@media (max-width: 1520px) {
  .tel span { display: none; }
  .tel { width: 44px; height: 44px; justify-content: center; border: 1px solid var(--line); border-radius: 12px; }
}
@media (max-width: 1300px) {
  .tabs {
    position: fixed; inset: var(--head-h) 0 auto 0; flex-direction: column; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out), visibility 0s 200ms;
  }
  .tabs a { padding: 14px 0; font-size: 16px; border-bottom: 1px solid var(--line); }
  .tabs a::after { left: 0; right: auto; width: 32px; bottom: -1px; }
  .head.open .tabs { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
  .head-actions { margin-left: auto; }
  .burger {
    display: inline-grid; place-items: center; width: 44px; height: 44px;
    border: 1px solid var(--line); border-radius: 12px; background: var(--white); color: var(--ink); cursor: pointer;
  }
  .burger i { font-size: 22px; }
}
@media (max-width: 640px) {
  .tel span { display: none; }
  .tel { width: 44px; height: 44px; justify-content: center; border: 1px solid var(--line); border-radius: 12px; }
  .head .btn { padding: 0 14px; }
  .head .btn .long { display: none; }
  .brand img { width: 112px; }
}
@media (min-width: 641px) { .head .btn .short { display: none; } }

/* ---------- Boutons : biseau course, penché comme le logo JSR (option B validée par Irian le 17/11) ---------- */
.btn {
  --bg: var(--blue); --fg: var(--white); --ring: transparent;
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: 50px; padding: 0 28px; border: 0; cursor: pointer; white-space: nowrap;
  background: none; color: var(--fg); text-decoration: none;
  font: 800 13.5px/1 var(--font); letter-spacing: 0.07em; text-transform: uppercase;
  font-variation-settings: "wdth" 115;
  transition: color 180ms ease, transform 160ms var(--ease-out);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--bg); border-radius: 6px; transform: skewX(-12deg);
  box-shadow: inset 0 0 0 1.5px var(--ring);
  transition: background-color 180ms ease, box-shadow 180ms ease;
}
/* Survol : le remplissage balaie le biseau de gauche à droite */
.btn { --sweep: var(--blue-deep); }
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 6px; background: var(--sweep);
  transform: skewX(-12deg) scaleX(0); transform-origin: 0 50%; transition: transform 280ms var(--ease-out);
}
.btn-ghost { --sweep: var(--ink); }
.btn-light { --sweep: var(--white); }
.btn .chip { display: inline-flex; }
.btn i { font-size: 17px; transition: transform 240ms var(--ease-out); }
.btn:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover::after { transform: skewX(-12deg) scaleX(1); }
  .btn:hover .chip i { transform: translateX(4px); }
  .btn-ghost:hover { --fg: var(--white); }
  .btn-light:hover { --fg: var(--ink); --ring: var(--white); }
}
.btn-ghost { --bg: transparent; --fg: var(--ink); --ring: var(--ink); }
.btn-light { --bg: rgba(255,255,255,0.06); --fg: var(--white); --ring: rgba(255,255,255,0.9); }
.head .btn { height: 44px; font-size: 12.5px; padding: 0 22px; }

/* ---------- Texte posé sur l'image : blanc, ombre, dégradé seulement du côté du texte ---------- */
/* Lisibilité renforcée (19/11) : ombre en trois couches sur les lettres (contour net, relief court, halo large)
   + halo sombre diffus derrière le bloc de texte, le reste de la photo garde sa lumière. */
.on-image {
  color: var(--white);
  text-shadow: 0 1px 1px rgba(5, 8, 12, 0.55), 0 2px 6px rgba(5, 8, 12, 0.45), 0 8px 30px rgba(5, 8, 12, 0.5);
}
.on-image h1, .on-image h2 {
  text-shadow: 0 1px 0 rgba(5, 8, 12, 0.4), 0 3px 8px rgba(5, 8, 12, 0.45), 0 14px 44px rgba(5, 8, 12, 0.55);
}
.on-image p { color: var(--white); font-weight: 500; }
.on-image::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  inset: -22% -26% -24% -30%;
  background: radial-gradient(closest-side, rgba(6, 9, 13, 0.62), rgba(6, 9, 13, 0.34) 58%, rgba(6, 9, 13, 0) 100%);
}

/* ---------- Film d'accueil ---------- */
.film { position: relative; height: 860vh; background: #10141A; }
.film-stage { position: sticky; top: var(--head-h); height: calc(100vh - var(--head-h)); height: calc(100svh - var(--head-h)); overflow: hidden; }
.film-stage img, .film-stage video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%;
}
.film-stage video { opacity: 0; transition: opacity 300ms ease; }
.film-stage video.ready { opacity: 1; }
.film-stage::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to right, rgba(10, 13, 18, 0.72) 0%, rgba(10, 13, 18, 0.42) 30%, rgba(10, 13, 18, 0) 56%),
    linear-gradient(to top, rgba(10, 13, 18, 0.55) 0%, rgba(10, 13, 18, 0) 38%);
}
.beat {
  position: absolute; z-index: 2; left: var(--gutter); bottom: clamp(32px, 9vh, 96px);
  width: min(580px, calc(100% - 2 * var(--gutter)));
  opacity: 0; transform: translateY(16px);
  transition: opacity 320ms var(--ease-out), transform 320ms var(--ease-out);
  pointer-events: none;
}
.beat.on { opacity: 1; transform: none; pointer-events: auto; }
.beat h1 { font-size: clamp(34px, 4.4vw, 62px); }
.beat h2 { font-size: clamp(26px, 3vw, 40px); }
.beat p { margin-top: 16px; max-width: 44ch; font-size: 18px; }
.beat .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; text-shadow: none; }
.beat-quote blockquote { margin: 0; font-size: clamp(22px, 2.2vw, 30px); font-weight: 700; line-height: 1.3; font-variation-settings: "wdth" 108; }
.beat-quote cite { display: block; margin-top: 16px; font-style: normal; font-weight: 600; color: #9FD3F5; }
.titles { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; }
.titles li { display: grid; grid-template-columns: 84px 1fr; gap: 14px; align-items: baseline; font-size: 17px; }
.titles b { white-space: nowrap; font-variant-numeric: tabular-nums; color: #9FD3F5; font-weight: 800; }
.film-fade { position: absolute; inset: 0; z-index: 3; background: #0B0E12; opacity: 0; pointer-events: none; }
.xp-section { background: #0B0E12; color: var(--white); }
.xp-section .section-head p { color: rgba(255,255,255,0.75); }
.film-bar { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.18); }
.film-bar i { display: block; height: 100%; width: 100%; background: var(--blue); transform: scaleX(0); transform-origin: left; }

@media (max-width: 760px) {
  .film { height: 720vh; }
  .film-stage img, .film-stage video { object-position: 50% 50%; }
  .film-stage::after { background: linear-gradient(to top, rgba(10,13,18,0.86) 0%, rgba(10,13,18,0.55) 42%, rgba(10,13,18,0) 70%); }
  .beat { left: 16px; right: 16px; width: auto; bottom: 22px; }
  .beat p { font-size: 16px; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(72px, 10vw, 128px); }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { font-size: clamp(30px, 4vw, 52px); }
.section-head p { margin-top: 16px; color: var(--ink-2); font-size: 18px; max-width: 60ch; }

/* Expériences : grille asymétrique */
.xp { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.xp a {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 300px; overflow: hidden; text-decoration: none; color: var(--white);
  background: var(--ink);
  border-radius: 16px; isolation: isolate;
}
.xp a img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out); }
.xp a::before { content: ""; position: absolute; inset: 25% 0 0 0; background: linear-gradient(to top, rgba(22,26,31,.94) 0%, rgba(22,26,31,.72) 40%, rgba(22,26,31,0) 100%); z-index: 1; }
.xp .xp-txt { position: relative; z-index: 2; padding: 24px; text-shadow: 0 1px 1px rgba(5,8,12,.5), 0 2px 8px rgba(5,8,12,.45), 0 8px 26px rgba(5,8,12,.45); }
.xp h3 { font-size: clamp(22px, 2.2vw, 30px); }
.xp p { margin-top: 6px; color: var(--white); font-weight: 500; font-size: 15px; max-width: 40ch; }
.xp .from { display: inline-block; margin-top: 12px; font-weight: 800; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: #9FD3F5; }
@media (hover: hover) and (pointer: fine) { .xp a:hover img { transform: scale(1.04); } }
.xp .x-a { grid-column: span 4; min-height: 460px; }
.xp .x-b { grid-column: span 2; min-height: 460px; }
.xp .x-c, .xp .x-d, .xp .x-e { grid-column: span 2; min-height: 320px; }
@media (max-width: 900px) {
  .xp { grid-template-columns: 1fr 1fr; }
  .xp .x-a { grid-column: span 2; min-height: 360px; }
  .xp .x-b, .xp .x-c, .xp .x-d { grid-column: span 1; min-height: 260px; }
  .xp .x-e { grid-column: span 2; min-height: 260px; }
}
/* Glace et off-road : au second plan, une simple ligne de liens */
.also { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 26px; color: rgba(255,255,255,.7); font-size: 15px; }
.also a { display: inline-flex; align-items: center; gap: 8px; color: var(--white); text-decoration: none; font-weight: 700; border-bottom: 1px solid rgba(255,255,255,.3); padding-block: 4px; transition: border-color 160ms ease; }
.also a i { font-size: 15px; color: #9FD3F5; transition: transform 220ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .also a:hover { border-color: var(--white); } .also a:hover i { transform: translateX(3px); } }
@media (max-width: 560px) {
  .xp { grid-template-columns: 1fr; }
  .xp a { grid-column: auto !important; min-height: 240px !important; }
}

/* Voitures : fiches techniques */
.cars { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 14px; }
.cars-section { padding-top: clamp(80px, 11vw, 140px); }
.car { border-radius: 16px; background: var(--paper); padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 18px; overflow: hidden; }
.car > img { margin: calc(-1 * clamp(24px, 3vw, 36px)) calc(-1 * clamp(24px, 3vw, 36px)) 6px; width: calc(100% + 2 * clamp(24px, 3vw, 36px)); max-width: none; aspect-ratio: 16 / 10; object-fit: cover; }
.car.hero { background: var(--ink); color: var(--white); }
.car h3 { font-size: clamp(22px, 2.2vw, 30px); }
.car .lede { color: var(--ink-2); font-size: 15.5px; }
.car.hero .lede { color: rgba(255,255,255,.78); }
.specs { display: flex; flex-wrap: wrap; gap: 22px 32px; margin-top: auto; }
.spec b { display: block; font-size: clamp(30px, 3.4vw, 46px); font-weight: 800; font-variation-settings: "wdth" 125; line-height: 1; font-variant-numeric: tabular-nums; }
.spec span { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.car.hero .spec span { color: rgba(255,255,255,.6); }
.price { font-weight: 800; letter-spacing: .04em; color: var(--blue); }
.car.hero .price { color: #9FD3F5; }
@media (max-width: 900px) { .cars { grid-template-columns: 1fr; } }

/* Paddock : deux rangées de vraies photos qui glissent en sens contraire au défilement */
.paddock { padding-block: clamp(72px, 10vw, 128px); overflow: hidden; }
.pk-row { display: flex; gap: 14px; width: max-content; margin-left: -20vw; will-change: transform; }
.pk-row + .pk-row { margin-top: 14px; }
.pk-row img { width: clamp(260px, 30vw, 600px); aspect-ratio: 3 / 2; object-fit: cover; border-radius: 16px; background: var(--paper); }
@media (max-width: 760px) { .pk-row img { width: 72vw; } .pk-row { margin-left: -90vw; } }

/* Jeremy : photo au panneau n° 1, son texte, le palmarès (remonté sous les expériences) */
.jeremy { background: var(--paper); }
.jeremy-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.jeremy-ph { margin: 0; }
.jeremy-ph img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; border-radius: 16px; }
.jeremy h2 { font-size: clamp(34px, 4.6vw, 60px); }
.jeremy .lead { margin-top: 20px; font-size: clamp(18px, 1.6vw, 21px); font-weight: 600; line-height: 1.45; }
.jeremy-txt > p + p { margin-top: 14px; color: var(--ink-2); }
.palm-list { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.palm-list li { display: grid; grid-template-columns: 80px 1fr; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 15.5px; line-height: 1.45; }
.palm-list b { white-space: nowrap; color: var(--blue); font-weight: 800; font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .jeremy-grid, .palm-list { grid-template-columns: 1fr; } .jeremy-ph img { aspect-ratio: 1 / 1; } }


/* Liste d'offres (page Stages et baptêmes) */
.offer-list { list-style: none; margin: 18px 0 0; padding: 0; border-top: 1px solid var(--line); }
.offer-list li > * { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 20px; padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.offer-list b { font-weight: 800; font-variation-settings: "wdth" 112; }
.offer-list span { grid-row: 2; color: var(--ink-3); font-size: 15px; }
.offer-list em { grid-row: 1 / 3; grid-column: 2; align-self: center; font-style: normal; font-weight: 800; color: var(--blue); white-space: nowrap; }
@media (hover: hover) and (pointer: fine) { .offer-list a { transition: background-color 160ms ease; } .offer-list a:hover b { color: var(--blue); } }


/* Clôture */
.close { background: var(--blue); color: var(--white); }
.close .wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: end; }
.close h2 { font-size: clamp(32px, 4.6vw, 60px); }
.close p { margin-top: 14px; color: rgba(255,255,255,.85); max-width: 46ch; }
.close .big-tel { display: block; font-size: clamp(28px, 3.6vw, 46px); font-weight: 800; font-variation-settings: "wdth" 125; text-decoration: none; font-variant-numeric: tabular-nums; }
.close .actions { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; }
.close .btn { --bg: var(--white); --fg: var(--blue); --sweep: var(--ink); }
@media (hover: hover) and (pointer: fine) { .close .btn:hover { --fg: var(--white); } }
@media (max-width: 760px) { .close .wrap { grid-template-columns: 1fr; } }

/* Pied */
.foot { padding-block: 40px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-3); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot a { text-decoration: none; }
.foot-logo { width: 106px; height: auto; }
.foot .credits { flex-basis: 100%; font-size: 12.5px; color: var(--ink-3); }
@media (hover: hover) and (pointer: fine) { .foot a:hover { color: var(--ink); } }

/* ---------- Pages prestations ---------- */
.page-hero { position: relative; min-height: min(78dvh, 720px); display: flex; align-items: flex-end; overflow: hidden; background: var(--ink); }
.page-hero > img { position: absolute; inset: -6% 0 0 0; width: 100%; height: 106%; object-fit: cover; will-change: transform; }
/* Montage de la page Voitures : trois panneaux penchés comme le logo, chacun avec le nom de sa voiture */
.hero-montage { position: absolute; inset: -6% -7% 0; display: flex; gap: 6px; will-change: transform; }
.hero-montage figure { position: relative; flex: 1; margin: 0; overflow: hidden; transform: skewX(-8deg); background: var(--ink); }
.hero-montage img { position: absolute; top: 0; left: -22%; width: 144%; max-width: none; height: 100%; object-fit: cover; transform: skewX(8deg); }
.hero-montage figcaption {
  position: absolute; z-index: 3; top: calc(6% + 22px); right: 40px; transform: skewX(8deg);
  padding: 6px 12px; border-radius: 6px; background: rgba(8, 11, 15, 0.62); color: var(--white);
  font-size: 12.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; font-variation-settings: "wdth" 112;
}
/* Montage : hauteur plafonnée pour qu'aucune photo ne soit agrandie (la plus petite fait 653 px de haut) */
.page-hero:has(.hero-montage) { min-height: min(72dvh, 620px); }
.hero-montage.n4 img { left: -16%; width: 132%; }
/* Le dernier panneau déborde à droite (marge du montage + inclinaison) : son étiquette rentre dans l'écran */
.hero-montage figure:last-child figcaption { right: calc(7vw + 90px); }
/* Téléphone : les trois panneaux en bandeau en haut, le texte en dessous sur fond sombre */
@media (max-width: 760px) {
  .page-hero:has(.hero-montage) { min-height: 0; padding-top: 50vw; }
  .page-hero:has(.hero-montage) .hero-txt { margin-top: 28px; }
  .hero-montage { inset: -3% -12% auto; height: calc(56vw + 3%); gap: 4px; }
  .hero-montage img { left: -30%; width: 160%; }
  .hero-montage figcaption { top: auto; bottom: 10px; left: 50%; right: auto; translate: -50% 0; width: max-content; max-width: 80%;
    padding: 4px 7px; font-size: 11px; letter-spacing: .04em; text-align: center; white-space: normal; }
  .hero-montage figure:first-child figcaption { left: calc(50% + 9vw); right: auto; }
  .hero-montage figure:last-child figcaption { left: calc(50% - 9vw); right: auto; }
  .page-hero:has(.hero-montage)::after { background: linear-gradient(to top, rgba(10,13,18,1) 0%, rgba(10,13,18,.92) 52%, rgba(10,13,18,0) 70%); }
}
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, rgba(10,13,18,0.74) 0%, rgba(10,13,18,0.4) 36%, rgba(10,13,18,0) 62%), linear-gradient(to top, rgba(10,13,18,0.6) 0%, rgba(10,13,18,0) 45%); }
.page-hero .hero-txt { position: relative; z-index: 2; margin: 0 0 clamp(32px, 6vw, 72px) max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter))); width: min(640px, calc(100% - 2 * var(--gutter))); }
.page-hero h1 { font-size: clamp(34px, 4.6vw, 62px); }
.page-hero p { margin-top: 16px; font-size: 18px; max-width: 46ch; }
.page-hero .actions { margin-top: 26px; display: flex; gap: 10px; flex-wrap: wrap; text-shadow: none; }
.page-hero .crumbs, .page-hero .crumbs a { color: rgba(255,255,255,0.92); font-weight: 500; }
@media (max-width: 760px) { .page-hero::after { background: linear-gradient(to top, rgba(10,13,18,0.86) 0%, rgba(10,13,18,0.5) 50%, rgba(10,13,18,0.1) 100%); } }
.crumbs { font-size: 13px; color: var(--ink-3); margin-bottom: 12px; }
.crumbs a { text-decoration: none; }

.detail { display: grid; grid-template-columns: 1fr 340px; gap: clamp(32px, 6vw, 96px); align-items: start; }
.prose { max-width: 66ch; }
.prose p + p { margin-top: 18px; }
.prose h2 { font-size: clamp(24px, 2.6vw, 34px); margin: 48px 0 16px; }
.prose h2:first-child { margin-top: 0; }
.chips { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { border-radius: 8px; padding: 8px 12px; background: var(--paper); font-size: 14.5px; font-weight: 600; }
.aside { position: sticky; top: calc(var(--head-h) + 24px); background: var(--paper); padding: 28px; border-radius: 16px; }
.aside .from-label { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.aside .from-price { display: block; margin: 4px 0 18px; font-size: 40px; font-weight: 800; font-variation-settings: "wdth" 125; line-height: 1; }
.aside .btn { width: 100%; }
.aside .btn + .btn { margin-top: 8px; }
.aside small { display: block; margin-top: 14px; color: var(--ink-3); font-size: 13.5px; }
@media (max-width: 900px) { .detail { grid-template-columns: 1fr; } .aside { position: static; } }

/* Galerie d'une prestation */
.gal { display: grid; gap: 14px; }
.gal-2 { grid-template-columns: 1.4fr 1fr; }
.gal-3 { grid-template-columns: 1fr 1fr 1fr; }
.gal figure { margin: 0; }
.gal img { width: 100%; height: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 16px; }
.gal-1 img { aspect-ratio: 21 / 9; }
@media (max-width: 760px) { .gal-2, .gal-3 { grid-template-columns: 1fr; } .gal-1 img { aspect-ratio: 4 / 3; } }

.more { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.more a {
  position: relative; isolation: isolate; overflow: hidden; min-height: 210px; border-radius: 16px; padding: 22px;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; text-decoration: none; color: var(--white); background: var(--ink);
  font-weight: 800; letter-spacing: .04em; text-transform: uppercase; font-variation-settings: "wdth" 115;
  text-shadow: 0 1px 1px rgba(5,8,12,.5), 0 2px 10px rgba(5,8,12,.5);
}
.more a img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out); }
.more a::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(10,13,18,.82) 0%, rgba(10,13,18,.25) 60%, rgba(10,13,18,.05) 100%); }
.more a i { font-size: 20px; color: #9FD3F5; transition: transform 220ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .more a:hover img { transform: scale(1.05); } .more a:hover i { transform: translateX(4px); } }
@media (max-width: 760px) { .more { grid-template-columns: 1fr; } .more a { min-height: 150px; } }

/* Mouvement signature, la coupe biseau : chaque grande photo entre par un balayage penché à l'angle du logo */
.wipe { clip-path: polygon(0 0, 0 0, -16% 100%, -16% 100%); transition: clip-path 1000ms cubic-bezier(0.77, 0, 0.175, 1); }
.wipe img { transform: scale(1.06); transition: transform 1400ms var(--ease-out); }
.wipe.in { clip-path: polygon(0 0, 116% 0, 100% 100%, -16% 100%); }
.wipe.in img { transform: none; }

/* Apparition au défilement */
.rise { opacity: 0; transform: translateY(18px); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); }
.rise.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .rise { opacity: 1; transform: none; transition: none; }
  .wipe, .wipe.in { clip-path: none; transition: none; }
  .wipe img { transform: none; transition: none; }
  .btn::after { transition: none; }
  .beat { transition: opacity 200ms ease; transform: none; }
  .film { height: auto; }
  .film-stage { position: relative; top: 0; height: auto; min-height: calc(100dvh - var(--head-h)); }
  .film-stage video { display: none; }
  .beat { position: relative; left: auto; bottom: auto; margin: 24px var(--gutter); opacity: 1; pointer-events: auto; }
  .page-hero > img, .hero-montage { transform: none !important; }
  .pk-row { flex-wrap: wrap; width: auto; margin-left: 0 !important; padding-inline: var(--gutter); }
}

/* ==========================================================================
   Passe premium (2026-11-19) : héros épinglés, feuille qui recouvre, chiffre clé,
   bandeaux en fenêtre de parallaxe, garage, titres masqués, cartes inclinables.
   Tout ce qui bouge dépend de html.fx (posé seulement si le mouvement n'est pas réduit).
   ========================================================================== */

/* Héros épinglé */
.ph-dim { position: absolute; inset: 0; z-index: 1; background: #0A0D12; opacity: 0; pointer-events: none; }
.fx .ph { height: 190vh; }
.fx .page-hero { position: sticky; top: var(--head-h); height: calc(100dvh - var(--head-h)); min-height: 0; }
@media (min-width: 761px) { .fx .hero-montage { inset: -5% -7% -5%; } }
.fx .page-hero .hero-txt, .fx .hero-fact { will-change: transform, opacity; }

/* La page glisse par-dessus le héros, comme une feuille */
.fx .sheet { position: relative; z-index: 3; margin-top: -45vh; background: var(--white); border-radius: 28px 28px 0 0; box-shadow: 0 -28px 60px rgba(8, 11, 15, 0.28); }

/* Chiffre clé (vrais chiffres du client) */
.hero-fact { position: absolute; z-index: 2; right: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter))); bottom: clamp(32px, 6vw, 72px); max-width: 380px; text-align: right; }
.fx .hero-fact { opacity: 0; }
.hf-num { display: flex; align-items: baseline; justify-content: flex-end; gap: 10px; }
.hf-num b { font-size: clamp(76px, 10.5vw, 160px); font-weight: 900; font-variation-settings: "wdth" 125; line-height: 0.9; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.hf-num span { font-size: clamp(16px, 1.7vw, 24px); font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #9FD3F5; }
.hero-fact small { display: block; margin-top: 12px; font-size: 15px; font-weight: 600; line-height: 1.45; }
@media (max-width: 760px) {
  .hero-fact { top: 18px; bottom: auto; right: 16px; max-width: 70vw; }
  .hf-num b { font-size: 60px; }
  .hero-fact small { font-size: 12.5px; margin-top: 6px; }
  .page-hero:has(.hero-montage) .hero-fact { display: none; }
  .fx .ph { height: 170vh; }
  .fx .sheet { margin-top: -38vh; border-radius: 22px 22px 0 0; }
}
html:not(.fx) .hero-fact { display: none; }

/* Bandeau photo en fenêtre de parallaxe, phrase du client à droite */
.band { position: relative; isolation: isolate; height: 72vh; min-height: 420px; overflow: hidden; background: #0B0E12; display: flex; align-items: flex-end; justify-content: flex-end; }
.band img { position: absolute; z-index: -2; left: 0; top: -12%; width: 100%; height: 124%; max-width: none; object-fit: cover; will-change: transform; }
.band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to left, rgba(10, 13, 18, 0.62) 0%, rgba(10, 13, 18, 0.2) 55%, rgba(10, 13, 18, 0) 80%), linear-gradient(to top, rgba(10, 13, 18, 0.5) 0%, rgba(10, 13, 18, 0) 50%); }
.band p { position: relative; margin: 0 max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter))) clamp(36px, 6vw, 80px) var(--gutter); max-width: 17ch; text-align: right; font-size: clamp(28px, 3.8vw, 56px); font-weight: 800; font-variation-settings: "wdth" 118; line-height: 1.08; letter-spacing: -0.01em; }
@media (max-width: 760px) { .band { height: 60vh; } .band p { font-size: 28px; } }

/* Titres qui sortent d'un masque */
.kin { overflow: hidden; padding-bottom: 0.12em; }
.kin > span { display: inline-block; }
.fx .kin > span { transform: translateY(108%); transition: transform 900ms var(--ease-out); }
.fx .kin.in > span { transform: none; }

/* Cartes inclinables : la transition adoucit l'inclinaison */
@media (hover: hover) and (pointer: fine) {
  .xp a, .more a { transform-style: preserve-3d; transition: opacity 600ms var(--ease-out), transform 420ms var(--ease-out); }
  .xp a img, .more a img { transition: transform 600ms var(--ease-out), translate 420ms var(--ease-out); }
}

/* Le garage (page Voitures) */
.garage { background: #0B0E12; color: var(--white); }
.g-stage { padding-block: clamp(64px, 9vw, 120px); }
.g-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.g-media { position: relative; height: min(64vh, 640px); border-radius: 16px; overflow: hidden; background: #151A21; }
.g-ph { position: absolute; inset: 0; margin: 0; }
.g-ph img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.fx .g-ph + .g-ph { clip-path: polygon(0 0, 0 0, -16% 100%, 0 100%); }
.g-ticks { position: absolute; z-index: 3; left: 18px; bottom: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.g-ticks button { position: relative; isolation: isolate; border: 0; background: none; color: var(--white); cursor: pointer; padding: 10px 16px; font: 800 12px/1 var(--font); letter-spacing: 0.08em; text-transform: uppercase; font-variation-settings: "wdth" 112; }
.g-ticks button::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 6px; transform: skewX(-12deg); background: rgba(8, 11, 15, 0.66); transition: background-color 200ms ease; }
.g-ticks button.on::before { background: var(--blue); }
.g-hp { display: flex; align-items: baseline; gap: 12px; }
.g-hp b { font-size: clamp(84px, 9.5vw, 156px); font-weight: 900; font-variation-settings: "wdth" 125; line-height: 0.85; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.g-hp span { font-size: 24px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #9FD3F5; }
.g-cars { display: grid; }
.g-car h2 { font-size: clamp(26px, 2.6vw, 38px); margin-top: 20px; }
.g-car p { margin-top: 12px; color: rgba(255, 255, 255, 0.84); max-width: 46ch; }
.g-car .chips li { background: rgba(255, 255, 255, 0.09); color: var(--white); }
.g-price { display: block; margin-top: 18px; font-weight: 800; letter-spacing: 0.04em; color: #9FD3F5; }
.fx .garage { height: 330vh; }
.fx .g-stage { position: sticky; top: var(--head-h); height: calc(100dvh - var(--head-h)); padding-block: clamp(24px, 4vh, 56px); display: flex; align-items: center; }
.fx .g-stage > .wrap { width: 100%; }
.fx .g-car { grid-area: 1 / 1; opacity: 0; transform: translateY(18px); transition: opacity 420ms var(--ease-out), transform 420ms var(--ease-out); pointer-events: none; }
.fx .g-car.on { opacity: 1; transform: none; pointer-events: auto; }
html:not(.fx) .g-grid { grid-template-columns: 1fr; }
html:not(.fx) .g-media { height: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; background: none; }
html:not(.fx) .g-ph { position: static; }
html:not(.fx) .g-ph img { aspect-ratio: 4 / 3; height: auto; border-radius: 12px; }
html:not(.fx) .g-ticks, html:not(.fx) .g-hp { display: none; }
html:not(.fx) .g-car + .g-car { margin-top: 40px; }
@media (max-width: 760px) {
  .g-grid { grid-template-columns: 1fr; gap: 16px; }
  .fx .g-stage { align-items: flex-start; padding-block: 14px; }
  .g-media { height: 36vh; }
  .g-ticks { left: 10px; bottom: 10px; gap: 4px; }
  .g-ticks button { padding: 8px 10px; font-size: 11px; }
  .g-hp b { font-size: 60px; }
  .g-hp span { font-size: 18px; }
  .g-car h2 { font-size: 22px; margin-top: 10px; }
  .g-car p { font-size: 14.5px; line-height: 1.5; margin-top: 8px; }
  .g-car .chips { gap: 6px; margin-top: 10px; }
  .g-car .chips li { padding: 5px 9px; font-size: 12.5px; }
  .g-price { margin-top: 10px; font-size: 14.5px; }
  html:not(.fx) .g-media { grid-template-columns: 1fr; }
}
.fx .garage.sheet { background: #0B0E12; }
@media (max-width: 760px) { .fx .hero-montage { height: 50vh; } }
@media (max-width: 760px) { .fx .hero-montage figcaption { top: calc(3% + 12px); bottom: auto; } }
/* Garage sans effets (téléphone, mouvement réduit) : chaque photo au-dessus de sa fiche */
html:not(.fx) .g-grid { display: flex; flex-direction: column; gap: 14px; }
html:not(.fx) .g-media, html:not(.fx) .g-txt, html:not(.fx) .g-cars { display: contents; }
html:not(.fx) .g-ph:nth-child(1) { order: 1; } html:not(.fx) .g-car:nth-child(1) { order: 2; }
html:not(.fx) .g-ph:nth-child(2) { order: 3; } html:not(.fx) .g-car:nth-child(2) { order: 4; }
html:not(.fx) .g-ph:nth-child(3) { order: 5; } html:not(.fx) .g-car:nth-child(3) { order: 6; }
html:not(.fx) .g-car { margin: 0 0 28px; }
html:not(.fx) .g-car + .g-car { margin-top: 0; }
html:not(.fx) .g-car h2 { margin-top: 0; }

/* Citation de fin du film, posée sur le noir après l'envol du drone */

/* ---------- Passe impeccable (2026-11-19) ---------- */
/* Surfaces du navigateur aux couleurs JSR */
::selection { background: var(--blue); color: var(--white); }
html { scrollbar-color: #9AA4AF transparent; accent-color: var(--blue); }
input, textarea { caret-color: var(--blue); }
a { text-underline-offset: 0.18em; }
.on-image :focus-visible, .garage :focus-visible, .xp-section :focus-visible, .close :focus-visible, .band :focus-visible { outline-color: #9FD3F5; }
/* Contact : numéro sur une ligne, prestations cliquables */
.aside .tel-big { font-size: 30px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.chip-links li { padding: 0; background: none; }
.chip-links a { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 12px; border-radius: 8px; background: var(--paper); text-decoration: none; transition: background-color 160ms ease, color 160ms ease; }
@media (hover: hover) and (pointer: fine) { .chip-links a:hover { background: var(--ink); color: var(--white); } }
/* Téléphone : cibles tactiles d'au moins 44 px */
@media (max-width: 760px) {
  .foot nav a, .foot > .wrap > a { display: inline-flex; align-items: center; min-height: 44px; }
  .foot nav { gap: 0 18px; }
  .also a { min-height: 44px; }
  .chip-links a { min-height: 44px; }
}
.foot .credits a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Retours de Jeremy (2026-11-23) ---------- */
/* Indicateur de défilement : on comprend que la molette fait avancer le film, et on peut le passer. */
.film-cue {
  position: absolute; z-index: 2; left: 50%; bottom: clamp(28px, 6vh, 64px); transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--white);
  transition: opacity 300ms var(--ease-out); pointer-events: none;
}
.film-cue.gone { opacity: 0; }
.cue-track { position: relative; width: 24px; height: 38px; border: 2px solid rgba(255,255,255,0.85); border-radius: 12px; }
.cue-track i { position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--white); animation: cue 1.6s var(--ease-out) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(13px); opacity: 0; } 100% { transform: translateY(0); opacity: 0; } }
.film-skip {
  position: absolute; z-index: 4; right: var(--gutter); bottom: 22px;
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 4px;
  font-size: 14px; font-weight: 700; color: var(--white); text-decoration: none;
  transition: opacity 300ms var(--ease-out);
}
.film-skip:hover { text-decoration: underline; text-underline-offset: 4px; }
.film-skip.gone { opacity: 0; pointer-events: none; }
@media (max-width: 760px) {
  .film-cue { bottom: auto; top: 18px; flex-direction: row; font-size: 12px; }
  .cue-track { width: 20px; height: 32px; }
  .film-skip { bottom: auto; top: 8px; right: 12px; font-size: 13px; }
  .film-cue { left: 16px; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .film-cue, .film-skip { display: none; }
}

/* Stage de pilotage : le programme de la journée */
.prose h3 { margin: 26px 0 10px; font-size: 18px; font-weight: 800; }
.prog { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 10px; }
.prog li { position: relative; padding-left: 26px; }
.prog li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 12px; height: 3px; background: var(--blue); transform: skewX(-30deg); }

/* Accueil, Jeremy : ses mots, entre guillemets */
.jeremy-txt > p.quote { font-weight: 500; }
@media (max-width: 760px) { .cue-more { display: none; } }

/* Contact : le mail en second, après l'appel (Jeremy préfère le téléphone) */

/* Stages : carte des circuits (image de Jeremy, texte intégré : affichée en grand, ouvrable en plein écran) */
.circuits { padding-top: 0; }
.map { position: relative; display: block; margin: 0; border-radius: 16px; overflow: hidden; background: #0B0E12; }
.map img { display: block; width: 100%; height: auto; }
.map-zoom { position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 10px; background: rgba(11,14,18,0.82); color: var(--white); font-size: 14px; font-weight: 700; }
@media (hover: hover) and (pointer: fine) { .map:hover .map-zoom { background: var(--blue); } }
@media (min-width: 761px) { .map-zoom { display: none; } }

/* Après un bandeau photo, la section suivante respire (sinon cartes et galeries collent au bandeau) */
.band + .section { padding-top: clamp(40px, 6vw, 88px) !important; }
