/* ============================================================
   site.css — Loïs Pinson
   Fond clair, une famille (Archivo), un accent (vert racing),
   cartes arrondies façon Apple, motifs de piste (kerb, damier, points).
   ============================================================ */
@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --paper: #09090b;
  --paper-2: #111114;
  --card: #16161a;
  --ink: #f4f3ee;
  --mut: #8f8f98;
  --line: rgba(255, 255, 255, .11);
  --fill-soft: rgba(255, 255, 255, .07);
  --thumb: #2c2c33;
  --acc: #2e55d6;
  --acc-2: #5b82ff;
  --acc-3: #a9c0ff;
  --night: #0d0d0f;
  --metal: linear-gradient(135deg, #5f646c 0%, #b9bec6 14%, #eef0f3 28%, #ffffff 36%, #c3c8cf 48%, #80858d 64%, #dfe2e6 80%, #8c9199 100%);
  --brush: repeating-linear-gradient(90deg, rgba(255, 255, 255, .07) 0 1px, transparent 1px 3px);
  --onmetal: #16181c;
  --glow: var(--glow);
  --chart: #c3c8cf;
  --suit-fill: rgba(255, 255, 255, .06);
  --r: 28px;
  --wrap: 1320px;
  --pad: clamp(20px, 4.2vw, 64px);
  --nav: 68px;
  --e: cubic-bezier(.2, .7, .2, 1);
  --shadow: 0 20px 60px -24px rgba(0, 0, 0, .8);
  --up: #3ecf8e; --down: #ff6b57;
  color-scheme: dark;
}
body.theme-light {
  --paper: #f4f3ee; --paper-2: #eae8e1; --card: #ffffff; --ink: #0d0d0f; --mut: #6b6b70;
  --line: rgba(13, 13, 15, .12); --fill-soft: rgba(13, 13, 15, .07); --thumb: #ffffff;
  --acc: #c8102e; --acc-2: #c8102e; --acc-3: #ff8b9b;
  --metal: linear-gradient(135deg, #4a4e55 0%, #72777f 20%, #9ea3ab 38%, #b9bec6 48%, #82878f 64%, #5c6068 82%, #7a7f87 100%);
  --brush: repeating-linear-gradient(90deg, rgba(255, 255, 255, .1) 0 1px, transparent 1px 3px);
  --onmetal: #ffffff; --glow: rgba(255, 70, 90, .38); --chart: #ff8b9b; --suit-fill: rgba(255, 255, 255, .6);
  --shadow: 0 1px 2px rgba(13, 13, 15, .04), 0 12px 40px -12px rgba(13, 13, 15, .12);
  --up: #1f8a5b; --down: #c2412c; color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav) + 20px); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.6 "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--acc-2); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--acc); color: #fff; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--pad) * 2); margin: 0 auto; padding: 0 var(--pad); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 99px; }
.skip:focus { left: 8px; }

/* ---------- titres ---------- */
.h2, .h3, h1, .road__name, .num b, .contact__mail, .cta__h, .hero__name, .statement__q, .foot__brand, .nav__brand, .tile__v, .pk__name, .pk__price, .ticker span {
  font-stretch: 112%;
}
.h2 { font-size: clamp(34px, 4.6vw, 68px); font-weight: 600; line-height: 1; letter-spacing: -.035em; margin-bottom: clamp(24px, 3.4vw, 44px); }
.h3 { font-size: clamp(22px, 2vw, 28px); font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }
.lead { font-size: clamp(19px, 1.7vw, 24px); line-height: 1.5; max-width: 34em; margin-bottom: 1em; }
.fine { font-size: 14px; line-height: 1.5; color: var(--mut); }
.note { margin-top: 16px; font-size: 14px; color: var(--mut); }

/* ---------- boutons & liens ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px; height: 52px; padding: 0 26px;
  border-radius: 99px; border: 1.5px solid transparent; background-image: var(--brush), var(--metal); background-size: auto, 200% 200%; color: var(--onmetal);
  font-size: 15px; font-weight: 500; letter-spacing: -.005em;
  transition: background .3s var(--e), color .3s var(--e), border-color .3s var(--e), transform .3s var(--e);
}
.btn:hover { background: var(--acc); background-image: none; color: #fff; }
.btn--line { background: linear-gradient(var(--paper), var(--paper)) padding-box, var(--metal) border-box; color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--paper); }
.btn--light { background: #fff; color: #0d0d0f; }
.btn--light:hover { background: var(--acc); color: #fff; }
.btn--line-light { background: transparent; border: 1.5px solid rgba(255, 255, 255, .5); color: #fff; }
.btn--line-light:hover { background: #fff; border-color: #fff; color: #0d0d0f; }
.arr { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--e); }
a:hover > .arr, .btn:hover .arr, .link:hover .arr { transform: translateX(4px); }
.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; border-bottom: 1px solid var(--line); padding-bottom: 3px; transition: border-color .3s, color .3s; }
.link:hover { border-color: var(--acc-2); color: var(--acc-2); }

/* ---------- navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav);
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: calc(var(--wrap) + var(--pad) * 2); margin: 0 auto; padding: 0 var(--pad); }
.nav__brand { font-size: 19px; font-weight: 650; letter-spacing: -.03em; }
.nav__links { display: none; gap: 34px; }
.nav__links a { position: relative; font-size: 14px; font-weight: 500; color: var(--mut); padding: 6px 0; transition: color .25s; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--acc-2); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--e); }
.nav__links a:hover, .nav__links a.is-active { color: var(--ink); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); }
.nav__r { display: flex; align-items: center; gap: 18px; }
.lang { display: flex; gap: 2px; font-size: 13px; font-weight: 500; }
.lang button { border: 0; background: none; padding: 6px 7px; color: var(--mut); border-radius: 99px; transition: color .2s; }
.lang button.is-active, .lang button:hover { color: var(--ink); }
.lang button + button::before { content: "/"; margin-right: 9px; margin-left: -7px; color: var(--line); }
.nav__burger { width: 40px; height: 40px; border: 0; background: none; position: relative; }
.nav__burger span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--ink); transition: transform .35s var(--e), top .35s var(--e); }
.nav__burger span:first-child { top: 16px; }
.nav__burger span:last-child { top: 23px; }
.nav__burger[aria-expanded="true"] span:first-child { top: 19.5px; transform: rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { top: 19.5px; transform: rotate(-45deg); }
.menu { position: fixed; inset: var(--nav) 0 0 0; z-index: 49; background: var(--paper); padding: 28px var(--pad); display: flex; flex-direction: column; }
.menu[hidden] { display: none; }
.menu a { font-size: clamp(34px, 9vw, 52px); font-weight: 600; font-stretch: 112%; letter-spacing: -.035em; padding: 12px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .nav__links { display: flex; } .nav__burger, .menu { display: none !important; } }

/* ---------- reveal ---------- */
.js .rv { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--e) var(--d, 0ms), transform 1s var(--e) var(--d, 0ms); }
.js .rv.in { opacity: 1; transform: none; }

/* ---------- motifs de piste ---------- */
.kerb { height: 16px; background: repeating-linear-gradient(135deg, var(--acc) 0 16px, var(--paper) 16px 32px); }
.checker { height: 32px; background: conic-gradient(var(--ink) 25%, transparent 0 50%, var(--ink) 0 75%, transparent 0) 0 0 / 32px 32px; opacity: .9; }
.dots { background-image: radial-gradient(rgba(13, 13, 15, .16) 1.1px, transparent 1.4px); background-size: 20px 20px; }

/* défilement de texte */
.ticker { overflow: hidden; border-block: 1px solid var(--ink); background: var(--paper); padding: 14px 0; }
.ticker__t { display: flex; width: max-content; animation: tick 38s linear infinite; }
.ticker span { font-size: clamp(32px, 4.4vw, 64px); font-weight: 650; letter-spacing: -.035em; line-height: 1; white-space: nowrap; padding-right: .5em; }
.ticker span.o { color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.ticker i { font-style: normal; color: var(--acc-2); padding-right: .5em; font-size: clamp(28px, 3.6vw, 52px); line-height: 1; align-self: center; }
@keyframes tick { to { transform: translateX(-50%); } }
.ticker:hover .ticker__t { animation-play-state: paused; }

/* pastille tournante */
.badge { position: absolute; z-index: 3; width: clamp(110px, 12vw, 168px); aspect-ratio: 1; left: 0; bottom: 8%; transform: translateX(-50%); border-radius: 50%; background: var(--paper); box-shadow: var(--shadow); display: grid; place-items: center; }
.badge svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 22s linear infinite; }
.badge text { font-size: 11.2px; font-weight: 600; letter-spacing: .14em; fill: var(--ink); font-family: inherit; text-transform: uppercase; }
.badge b { font-size: clamp(34px, 3.8vw, 52px); font-weight: 700; font-stretch: 122%; letter-spacing: -.05em; color: var(--acc-2); line-height: 1; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- hero (accueil) ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); min-height: calc(100svh - 80px); padding-top: var(--nav); position: relative; }
.hero__txt { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 48px; padding: clamp(32px, 5vw, 72px) var(--pad) clamp(32px, 4vw, 56px); isolation: isolate; }
.hero__txt::before { content: ""; position: absolute; inset: 0 0 0 0; z-index: -1; -webkit-mask-image: linear-gradient(90deg, #000 20%, transparent); mask-image: linear-gradient(90deg, #000 20%, transparent); }
.hero__19 { position: absolute; right: 2%; top: 8%; z-index: -1; font-size: clamp(220px, 34vw, 560px); font-weight: 800; font-stretch: 125%; letter-spacing: -.08em; line-height: .8; color: transparent; -webkit-text-stroke: 1.5px var(--line); user-select: none; pointer-events: none; }
.hero__name { font-size: clamp(64px, 10.4vw, 188px); font-weight: 700; font-stretch: 122%; line-height: .86; letter-spacing: -.05em; display: flex; flex-direction: column; margin-top: clamp(8px, 4vh, 56px); }
.hero__name span { display: block; overflow: hidden; padding-bottom: .06em; animation: rise 1.1s var(--e) both; }
.hero__l2 { animation-delay: .1s !important; color: var(--acc); }
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
.hero__bot { display: grid; gap: 28px; max-width: 34em; animation: fade 1.2s var(--e) .5s both; }
.hero__lede { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
@keyframes fade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero__imgwrap { position: relative; padding: 0 var(--pad) clamp(20px, 3vw, 40px) 0; display: grid; }
.hero__img { position: relative; overflow: hidden; background: var(--paper-2); min-height: 60vh; border-radius: var(--r); }
.hero__img img { position: absolute; inset: -4% 0; width: 100%; height: 108%; object-fit: cover; object-position: 50% 30%; will-change: transform; animation: zoom 2s var(--e) both; }
@keyframes zoom { from { scale: 1.12; } to { scale: 1; } }
@media (max-width: 899px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero__imgwrap { padding: 0 var(--pad); order: 2; }
  .hero__img { min-height: 0; aspect-ratio: 4 / 5; }
  .hero__name { font-size: clamp(64px, 20vw, 150px); }
  .badge { left: auto; right: calc(var(--pad) + 12px); transform: none; bottom: -40px; }
}

/* ---------- énoncé ---------- */
.statement { padding: clamp(72px, 10vw, 150px) 0; }
.statement--sm { padding: clamp(60px, 8vw, 110px) 0; background: var(--paper-2); }
.statement__q { font-size: clamp(30px, 4.7vw, 70px); line-height: 1.1; font-weight: 600; letter-spacing: -.035em; max-width: 19em; }
.statement__q .w { opacity: .16; transition: opacity .5s var(--e); }
.statement__q .w.on { opacity: 1; }
.no-split .statement__q .w { opacity: 1; }

/* ---------- sections ---------- */
.sec { padding: clamp(56px, 7vw, 104px) 0; }
.sec--tight { padding-top: clamp(24px, 3vw, 48px); }
.sec--paper2 { background: var(--paper-2); }
.sec__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(24px, 3.4vw, 44px); }
.sec__head .h2 { margin-bottom: 0; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(36px, 7vw, 112px); align-items: start; }
@media (max-width: 899px) { .grid2 { grid-template-columns: 1fr; } }

.about__img img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 45% 20%; border-radius: var(--r); }
.about__txt .h2 { margin-bottom: 28px; }
.facts { margin-top: 36px; }
.facts div { display: grid; grid-template-columns: 9em 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.facts div:last-child { border-bottom: 1px solid var(--line); }
.facts dt { color: var(--mut); font-size: 15px; }
.facts dd { font-weight: 500; }

/* chiffres (accueil) */
.nums { padding-top: 0; }
.nums__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.num { background: var(--card); border-radius: var(--r); padding: 28px 28px 24px; display: grid; gap: 14px; align-content: space-between; min-height: 190px; box-shadow: var(--shadow); }
.num b { font-size: clamp(44px, 5.2vw, 84px); font-weight: 650; line-height: .95; letter-spacing: -.045em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.num b i { font-style: normal; }
.num b em { font-style: normal; font-size: .42em; letter-spacing: -.02em; margin-left: .1em; color: var(--mut); }
.num span { color: var(--mut); font-size: 15px; }
.num:nth-child(4) { background: var(--acc); color: #fff; }
.num:nth-child(4) b { background: none; -webkit-text-fill-color: #fff; }
.num:nth-child(4) span, .num:nth-child(4) b em { color: rgba(255, 255, 255, .72); }
@media (max-width: 899px) { .nums__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .num { min-height: 150px; } }

/* feuille de route */
.road { border-top: 1px solid var(--ink); }
.road__row { display: grid; grid-template-columns: minmax(90px, 1fr) minmax(0, 3fr) minmax(0, 3fr); gap: 24px; align-items: baseline; padding: 26px 0; border-bottom: 1px solid var(--line); transition: padding .5s var(--e); }
.road__row:hover { padding-left: 14px; }
.road__year { color: var(--mut); font-weight: 500; font-variant-numeric: tabular-nums; }
.road__row:first-child .road__year { color: var(--acc-2); }
.road__name { font-size: clamp(26px, 3.2vw, 46px); font-weight: 600; letter-spacing: -.035em; line-height: 1.05; transition: color .3s; }
.road__row:hover .road__name { color: var(--acc-2); }
.road__desc { color: var(--mut); max-width: 28em; }
@media (max-width: 899px) { .road__row { grid-template-columns: 1fr; gap: 10px; padding: 24px 0; } .road__row:hover { padding-left: 0; } }

/* bandeau d'appel */
.cta { position: relative; min-height: 78vh; display: grid; align-items: end; overflow: hidden; color: #fff; background: var(--night); isolation: isolate; }
.cta__bg { position: absolute; inset: -10% 0; background-size: cover; background-position: 50% 30%; z-index: -2; will-change: transform; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 8, 10, .35), rgba(8, 8, 10, .82)); }
.cta__in { padding-top: 120px; padding-bottom: clamp(48px, 7vw, 96px); display: grid; gap: 36px; }
.cta__h { font-size: clamp(44px, 7.4vw, 128px); font-weight: 650; line-height: .94; letter-spacing: -.045em; max-width: 12em; }
.cta__btns { display: flex; flex-wrap: wrap; gap: 12px; }

.cta--plain { min-height: 0; background: var(--acc); }
.cta--plain::before { display: none; }
.cta--plain .cta__in { padding-top: clamp(64px, 9vw, 120px); }

/* ---------- en-tête de page ---------- */
.phead { position: relative; padding: calc(var(--nav) + clamp(40px, 6vw, 88px)) 0 clamp(24px, 3.4vw, 48px); overflow: hidden; }
.phead .wrap { position: relative; }
.phead h1 { font-size: clamp(48px, 8.6vw, 144px); font-weight: 700; font-stretch: 122%; line-height: .9; letter-spacing: -.05em; }
.phead__lede { margin-top: clamp(20px, 2.6vw, 32px); max-width: 30em; font-size: clamp(19px, 1.8vw, 26px); line-height: 1.45; color: color-mix(in srgb, var(--ink) 74%, transparent); }
.phead__cta { display: flex; flex-wrap: wrap; gap: 12px; padding-bottom: 8px; }

/* ---------- motorsport : frise ---------- */
.tl { border-top: 1px solid var(--ink); }
.tl__row { display: grid; grid-template-columns: minmax(90px, 1fr) minmax(0, 3.4fr) minmax(0, 2.2fr); gap: 24px 32px; padding: 30px 0; border-bottom: 1px solid var(--line); align-items: start; }
.tl__year { color: var(--acc-2); font-weight: 500; font-variant-numeric: tabular-nums; padding-top: .5em; }
.tl__main { display: grid; gap: 8px; justify-items: start; }
.tl__main .h3 { font-size: clamp(26px, 2.8vw, 40px); letter-spacing: -.03em; }
.tl__place { color: var(--mut); }
.tl__desc { max-width: 32em; margin-top: 6px; }
.tl__aside { overflow: hidden; border-radius: 20px; }
.tl__aside img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 1s var(--e); }
.tl__row:hover .tl__aside img { transform: scale(1.04); }
.tl__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tl__stats div { background: var(--card); border-radius: 20px; padding: 18px 20px; display: grid; gap: 2px; box-shadow: var(--shadow); }
.tl__stats b { font-size: clamp(26px, 2.6vw, 38px); font-weight: 650; font-stretch: 112%; letter-spacing: -.04em; color: var(--acc-2); font-variant-numeric: tabular-nums; }
.tl__stats span { font-size: 13px; color: var(--mut); }
@media (max-width: 899px) { .tl__row { grid-template-columns: 1fr; gap: 14px; } .tl__year { padding-top: 0; } }

.grid2--budget { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
@media (max-width: 899px) { .grid2--budget { grid-template-columns: 1fr; } }
.ledger { background: var(--card); border-radius: var(--r); padding: 8px 28px; box-shadow: var(--shadow); }
.ledger li { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.ledger b { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ledger__total { border-bottom: 0 !important; font-size: clamp(24px, 2.6vw, 38px); font-weight: 600; font-stretch: 112%; letter-spacing: -.03em; color: var(--acc-2); }
.ledger + .fine { margin-top: 20px; max-width: 36em; }

/* ============ iRacing : bento ============ */
.seg { position: relative; display: inline-flex; padding: 4px; border-radius: 99px; background: var(--fill-soft); margin-bottom: 20px; isolation: isolate; }
.seg button { position: relative; z-index: 1; border: 0; background: none; padding: 9px 24px; border-radius: 99px; font-size: 14px; font-weight: 500; color: var(--mut); transition: color .3s; white-space: nowrap; }
.seg button.is-active { color: var(--ink); }
.seg__thumb { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: 99px; background: var(--thumb); box-shadow: 0 1px 3px rgba(0, 0, 0, .25), 0 4px 14px -4px rgba(0, 0, 0, .3); transition: transform .5s var(--e), width .5s var(--e); }
.seg--lg { display: flex; justify-content: center; width: fit-content; margin: 0 auto 28px; padding: 5px; }
.seg--lg button { padding: 13px clamp(18px, 3.4vw, 40px); font-size: 15px; }
.pane[hidden] { display: none; }
.pane { animation: paneIn .6s var(--e) both; }
@keyframes paneIn { from { opacity: 0; transform: translateY(14px) scale(.995); } to { opacity: 1; transform: none; } }

.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tile { position: relative; background: var(--card); border-radius: var(--r); padding: 24px 26px 26px; display: grid; gap: 10px; align-content: space-between; min-height: 168px; box-shadow: var(--shadow); overflow: hidden; transition: transform .5s var(--e), box-shadow .5s var(--e); }
.tile:hover { transform: translateY(-3px); }
.tile__l { font-size: 14px; color: var(--mut); font-weight: 500; }
.tile__v { font-size: clamp(38px, 4.4vw, 68px); font-weight: 650; letter-spacing: -.05em; line-height: .95; font-variant-numeric: tabular-nums; }
.tile__v small { font-size: .34em; font-weight: 500; letter-spacing: 0; color: var(--mut); margin-left: .4em; }
.tile__s { font-size: 13px; color: var(--mut); }
.tile--span2 { grid-column: span 2; }
.tile--hero { grid-column: span 2; grid-row: span 2; background: var(--night); color: #fff; padding: 28px 28px 14px; align-content: start; gap: 0; --line: rgba(255, 255, 255, .13); --mut: #9b9ba3; --paper: #0d0d0f; }
.tile--hero::before { content: ""; position: absolute; inset: auto -20% -50% -20%; height: 90%; background: radial-gradient(60% 60% at 50% 100%, var(--glow), transparent 70%); pointer-events: none; }
.tile--hero > * { position: relative; }
.tile--hero .tile__v { font-size: clamp(76px, 9.4vw, 148px); font-weight: 700; font-stretch: 122%; letter-spacing: -.06em; line-height: .86; margin: 10px 0 8px; }
.tile--hero .chartwrap { margin: 10px -8px 0; color: var(--chart); }
.tile--hero .note { color: var(--mut); }

/* anneaux */
.tile--ring { grid-template-columns: 1fr auto; align-items: end; }
.tile--ring .tile__l { grid-column: 1 / -1; align-self: start; }
.ring { position: relative; width: 92px; height: 92px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 3.6; stroke-linecap: round; }
.ring__bg { stroke: var(--fill-soft); }
.ring__v { stroke: var(--acc-2); stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1.6s var(--e) .25s; }
.in .ring__v, html:not(.js) .ring__v { stroke-dashoffset: var(--o); }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.tile__badge { display: inline-grid; place-items: center; width: .62em; height: .62em; min-width: 30px; min-height: 30px; border-radius: 9px; background: #facc15; color: #111; font-weight: 700; font-size: .38em; margin-right: .5em; vertical-align: middle; letter-spacing: 0; transform: translateY(-.1em); }
.arrowpair { display: flex; align-items: center; gap: .3em; }
.arrowpair .arr { width: .6em; height: .6em; stroke-width: 1.8; color: var(--acc-2); }

.chart { width: 100%; height: auto; overflow: visible; }
.ch__grid { stroke: var(--line); stroke-width: 1; }
.ch__y, .ch__x { fill: var(--mut); font-size: 13px; font-family: inherit; }
.ch__line { fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.ch__area { opacity: 0; transition: opacity 1.2s var(--e) .8s; }
.ch__dot { fill: var(--paper); stroke: currentColor; stroke-width: 2.6; opacity: 0; transition: opacity .5s var(--e) 1.2s; }
.ch__dot.is-last { fill: currentColor; }
.chartwrap.in .ch__line { stroke-dashoffset: 0; transition: stroke-dashoffset 1.8s var(--e) .2s; }
.chartwrap.in .ch__area, .chartwrap.in .ch__dot { opacity: 1; }
html:not(.js) .ch__line { stroke-dashoffset: 0; } html:not(.js) .ch__area, html:not(.js) .ch__dot { opacity: 1; }
@media (max-width: 899px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile--hero { grid-column: span 2; grid-row: auto; }
}

/* résultats */
.results { background: var(--card); border-radius: var(--r); padding: 10px 28px 28px; box-shadow: var(--shadow); }
.rl__h, .rl__r { display: grid; grid-template-columns: 74px 94px minmax(0, 1fr) 70px 46px 64px 64px; gap: 14px; align-items: center; }
.rl__h { padding: 18px 0 12px; font-size: 13px; color: var(--mut); }
.rl__r { padding: 14px 0; border-top: 1px solid var(--line); transition: background .25s; font-variant-numeric: tabular-nums; border-radius: 0; }
.rl__r:hover { background: color-mix(in srgb, var(--acc-2) 7%, transparent); }
.rl__pos { display: inline-grid; place-items: center; min-width: 52px; height: 32px; padding: 0 10px; border-radius: 99px; background: var(--paper); font-weight: 600; font-size: 14px; }
.rl__pos.is-podium { background: var(--acc); color: #fff; }
.rl__date { font-size: 14px; color: var(--mut); line-height: 1.3; }
.rl__date small { display: block; font-size: 12px; opacity: .8; }
.rl__race b { font-weight: 600; display: block; line-height: 1.3; }
.rl__race small { color: var(--mut); font-size: 13px; }
.rl__n { text-align: right; font-size: 14px; color: var(--mut); }
.rl__d { text-align: right; font-weight: 600; font-size: 14px; }
.rl__h .rl__n, .rl__h .rl__d { font-weight: 400; }
.up { color: var(--up); } .down { color: var(--down); }
.results.is-collapsed .is-extra { display: none; }
.results .more { margin-top: 24px; }
@media (max-width: 760px) {
  .results { padding: 6px 18px 22px; }
  .rl__h { display: none; }
  .rl__r { grid-template-columns: auto minmax(0, 1fr) auto auto; grid-template-areas: "pos race ir sr" "pos date inc sof"; gap: 4px 12px; }
  .rl__pos { grid-area: pos; } .rl__race { grid-area: race; } .rl__date { grid-area: date; }
  .rl__sof { grid-area: sof; } .rl__inc { grid-area: inc; } .rl__sr { grid-area: sr; } .rl__ir { grid-area: ir; }
}

/* ============ sponsoring : sélecteur de formules ============ */
.pk__stage { position: relative; }
.pk__card { display: grid; gap: clamp(24px, 3vw, 40px); background: var(--card); border-radius: 40px; padding: clamp(24px, 3.6vw, 52px); box-shadow: var(--shadow); animation: paneIn .6s var(--e) both; }
.pk__card[hidden] { display: none; }
.pk__info { display: grid; align-content: start; gap: 14px; }
.pk__tag { justify-self: start; font-size: 13px; font-weight: 500; padding: 5px 14px; border-radius: 99px; background: color-mix(in srgb, var(--acc-2) 14%, transparent); color: var(--acc); min-height: 28px; }
.pk__tag:empty { visibility: hidden; }
.pk__name { font-size: clamp(22px, 2.2vw, 30px); font-weight: 600; letter-spacing: -.03em; }
.pk__price { font-size: clamp(56px, 8vw, 120px); font-weight: 700; font-stretch: 120%; letter-spacing: -.06em; line-height: .9; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pk__sum { color: var(--mut); max-width: 30em; margin-bottom: 8px; }
.pk__cta { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.pk__chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pk__chips li { display: grid; gap: 2px; padding: 12px 16px; border-radius: 18px; background: var(--paper); font-size: 14px; line-height: 1.35; }
.pk__chips li b { font-weight: 600; font-size: 15px; color: var(--acc); }
.pk__chips li.off { background: transparent; border: 1px dashed var(--line); color: var(--mut); }
.pk__chips li.off b { color: var(--mut); font-weight: 400; }
.pk__vis { position: relative; border-radius: 28px; background: radial-gradient(80% 70% at 50% 40%, color-mix(in srgb, var(--acc) 38%, var(--card)), var(--paper) 78%); display: grid; place-items: center; padding: clamp(16px, 2vw, 28px); min-height: 280px; }
.pk__vis figcaption { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; font-size: 12px; color: var(--mut); }
.pk__vis .suit { max-height: 440px; }
.suit { width: 100%; height: auto; }
.suit-o { fill: var(--suit-fill); stroke: var(--ink); stroke-opacity: .45; stroke-width: 1.5; stroke-linejoin: round; }
.suit-z { fill: transparent; stroke: var(--ink); stroke-opacity: .25; stroke-width: 1.2; stroke-dasharray: 3 3; transition: fill .5s var(--e), stroke .3s; }
.suit-z.is-on { fill: var(--acc-2); stroke: var(--acc); stroke-opacity: 1; stroke-dasharray: none; animation: glow 2.6s ease-in-out infinite; }
@keyframes glow { 50% { fill-opacity: .72; } }
.suit-z.on { fill: var(--ink); stroke: var(--ink); stroke-opacity: 1; stroke-dasharray: none; }
@media (max-width: 899px) { .pk__card { grid-template-columns: 1fr; border-radius: 30px; } .pk__vis { order: -1; min-height: 240px; } }
@media (max-width: 479px) { .pk__chips { grid-template-columns: 1fr; } }

/* ============ le projet en détail ============ */
.dt { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: clamp(24px, 5vw, 80px); align-items: start; }
.dt__tabs { display: grid; gap: 6px; position: sticky; top: calc(var(--nav) + 20px); }
.dt__tab { display: grid; grid-template-columns: 2.4em 1fr; align-items: baseline; text-align: left; padding: 18px 20px; border: 0; border-radius: 20px; background: transparent; transition: background .35s var(--e), color .3s, box-shadow .35s; color: var(--mut); }
.dt__tab span { font-size: 13px; font-variant-numeric: tabular-nums; }
.dt__tab b { font-size: clamp(19px, 1.9vw, 26px); font-weight: 600; font-stretch: 108%; letter-spacing: -.025em; }
.dt__tab:hover { color: var(--ink); background: var(--fill-soft); }
.dt__tab[aria-selected="true"] { color: var(--ink); background: var(--card); box-shadow: var(--shadow); }
.dt__tab[aria-selected="true"] span { color: var(--acc-2); }
.dt__panel[hidden] { display: none; }
.dt__panel { background: var(--card); border-radius: 32px; padding: clamp(22px, 3.4vw, 48px); box-shadow: var(--shadow); animation: paneIn .55s var(--e) both; }
.dt__item { padding: 22px 0; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.dt__item:first-child { border-top: 0; padding-top: 0; }
.dt__item:last-child { padding-bottom: 0; }
.dt__item p { color: color-mix(in srgb, var(--ink) 74%, transparent); max-width: 38em; }
.dt__verb { display: grid; grid-template-columns: minmax(7em, 1fr) minmax(0, 2.2fr); gap: 16px; align-items: baseline; padding: 18px 0; border-top: 1px solid var(--line); }
.dt__verb:first-child { border-top: 0; padding-top: 0; }
.dt__verb b { font-size: clamp(20px, 2vw, 28px); font-weight: 600; font-stretch: 110%; letter-spacing: -.03em; color: var(--acc-2); }
.dt__suit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.dt__suit .pk__vis { padding: 18px; min-height: 0; }
.zones li { display: flex; gap: 14px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 15px; transition: color .2s; }
.zones li span { color: var(--mut); font-variant-numeric: tabular-nums; }
.zones li.on { color: var(--acc-2); }
.notes { margin-top: 20px; }
.notes li { padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; color: color-mix(in srgb, var(--ink) 78%, transparent); }
.logos { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.logos img { height: 96px; width: auto; padding: 14px 20px; background: var(--night); border-radius: 20px; object-fit: contain; }
.fund { display: grid; gap: 12px; justify-items: start; padding-top: 24px; border-top: 1px solid var(--line); }
.fund p { color: var(--mut); }
.disclaimer { max-width: 48em; margin-top: 32px; }
@media (max-width: 899px) { .dt { grid-template-columns: 1fr; } .dt__tabs { position: static; grid-template-columns: 1fr 1fr; } .dt__suit { grid-template-columns: 1fr; } }
@media (max-width: 599px) { .dt__tabs { grid-template-columns: 1fr; } .dt__verb { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- galerie ---------- */
.gal { columns: 3; column-gap: 16px; }
.gal__i { break-inside: avoid; margin-bottom: 24px; }
.gal__b { display: block; width: 100%; padding: 0; border: 0; background: var(--paper-2); overflow: hidden; border-radius: 22px; cursor: zoom-in; }
.gal__b img { width: 100%; height: auto; transition: transform 1.2s var(--e); }
.gal__b:hover img { transform: scale(1.04); }
.gal figcaption { margin-top: 10px; padding-left: 6px; font-size: 14px; color: var(--mut); }
@media (max-width: 999px) { .gal { columns: 2; } }
@media (max-width: 599px) { .gal { columns: 1; } }
.lb { position: fixed; inset: 0; z-index: 90; background: rgba(10, 10, 12, .94); display: grid; place-items: center; align-content: center; gap: 16px; padding: 24px; cursor: zoom-out; animation: fade .3s both; }
.lb[hidden] { display: none; }
.lb img { max-width: 92vw; max-height: 82vh; width: auto; height: auto; border-radius: 16px; }
.lb p { color: #fff; font-size: 15px; opacity: .8; }
.lb__x { position: absolute; top: 14px; right: 18px; width: 48px; height: 48px; border: 0; background: none; color: #fff; font-size: 34px; line-height: 1; }

/* ---------- contact ---------- */
.contact__mail { display: inline-block; font-size: clamp(24px, 3.4vw, 52px); font-weight: 600; letter-spacing: -.035em; line-height: 1.1; word-break: break-word; border-bottom: 2px solid var(--ink); padding-bottom: 6px; transition: color .3s, border-color .3s; }
.contact__mail:hover { color: var(--acc-2); border-color: var(--acc-2); }
.contact__soc { margin-top: 40px; display: grid; gap: 14px; justify-items: start; }
.form { background: var(--card); border-radius: var(--r); padding: clamp(22px, 3vw, 40px); box-shadow: var(--shadow); }
.form label { display: block; margin-bottom: 22px; }
.form label span { display: block; font-size: 14px; color: var(--mut); margin-bottom: 4px; }
.form input, .form textarea { width: 100%; border: 0; border-bottom: 1px solid var(--line); background: transparent; padding: 10px 0 12px; font: inherit; font-size: 19px; color: var(--ink); border-radius: 0; resize: vertical; transition: border-color .25s; }
.form input:focus, .form textarea:focus { outline: 0; border-color: var(--acc-2); }
.form .btn { margin-top: 4px; }
.form .fine { margin-top: 16px; }

/* ---------- pied de page ---------- */
.foot { padding: clamp(48px, 7vw, 88px) 0 36px; position: relative; border-top: 1px solid var(--line); }
.foot__in { padding-top: 0; display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 40px; }
.foot__brand { font-size: 28px; font-weight: 650; letter-spacing: -.035em; display: inline-block; margin-bottom: 14px; }
.foot__id p { color: var(--mut); max-width: 24em; }
.foot__col { display: grid; gap: 8px; align-content: start; }
.foot__col a { width: fit-content; font-size: 15px; transition: color .2s; }
.foot__col a:hover { color: var(--acc-2); }
.foot__bar { margin-top: clamp(40px, 6vw, 80px); color: var(--mut); font-size: 14px; }
@media (max-width: 799px) { .foot__in { grid-template-columns: 1fr 1fr; } .foot__id { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .js .rv { opacity: 1; transform: none; }
}

.pk__top { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(20px, 3vw, 44px); }
.pk__cta { margin-bottom: 0; }
.pk__incl { border-top: 1px solid var(--line); padding-top: 8px; }
.pk__h { display: flex; justify-content: space-between; align-items: baseline; font-size: 18px; font-weight: 600; letter-spacing: -.02em; padding: 18px 0 8px; }
.pk__h span { font-size: 14px; font-weight: 500; color: var(--mut); font-variant-numeric: tabular-nums; }
.inc li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 15px 0; border-top: 1px solid var(--line); }
.inc li:first-child { border-top: 0; }
.inc i { font-style: normal; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: var(--acc-2); color: #fff; }
.inc__l { font-weight: 500; }
.inc__v { font-style: normal; font-weight: 600; text-align: right; }
.inc li.off { color: var(--mut); }
.inc li.off i { background: var(--paper-2); color: var(--mut); }
.inc li.off .inc__l { font-weight: 400; text-decoration: line-through; text-decoration-color: var(--line); }
.inc li.off .inc__v { font-weight: 400; color: var(--mut); }
@media (max-width: 899px) { .pk__top { grid-template-columns: 1fr; } }

/* texte métal (argent) */
.num b, .tile__v, .tl__stats b, .pk__price, .inc__v, .ledger__total, .dt__verb b {
  background-image: var(--metal); background-size: 200% 200%;
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
.tile__v small, .num b em { -webkit-text-fill-color: var(--mut); }
.tile__badge { -webkit-text-fill-color: #111; }
.num:nth-child(4) b em { -webkit-text-fill-color: rgba(255, 255, 255, .72); }
.inc li.off .inc__v { background: none; -webkit-text-fill-color: var(--mut); }
.pk__card, .tile, .num, .form, .ledger, .results, .dt__panel { border: 1px solid var(--line); }
.pk__card { border: 1.5px solid transparent; background: linear-gradient(var(--card), var(--card)) padding-box, var(--metal) border-box; }
.hero__img { box-shadow: 0 0 0 1.5px transparent; position: relative; }
.hero__img::after { content: ""; position: absolute; inset: 0; border-radius: var(--r); padding: 2px; background: var(--metal); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.nav__links a::after { background: var(--metal); }
.tile--hero { --metal: linear-gradient(135deg, #5f646c 0%, #b9bec6 14%, #eef0f3 28%, #ffffff 36%, #c3c8cf 48%, #80858d 64%, #dfe2e6 80%, #8c9199 100%); }
.tile--ring .tile__v { white-space: nowrap; }
.tile--ring .tile__s { display: block; margin-top: 4px; }
