/* ==========================================================================
   Car Vision Parts — feuille de style
   Grammaire : ivoire + or brossé + noir profond (carte de visite CVP)
   ========================================================================== */

:root {
  --bg: #FBFAF7;
  --bg-alt: #F6F3EC;
  --surface: #FFFFFF;
  --ink: #0E0E0E;
  --ink-2: #2A2A2A;
  --ink-on-dark: #B8B5AE;
  --anthracite: #3A3D42;
  --muted: #7A7772;
  --line: #E4DDCF;
  --gold-dark: #8A6A12;
  --gold: #C9A227;
  --gold-light: #F2D27A;
  --gold-tint: #F6EFDD;
  --gold-brushed: linear-gradient(105deg, #8A6A12 0%, #C9A227 35%, #F2D27A 52%, #C9A227 68%, #8A6A12 100%);
  --success: #1F7A5C;
  --shadow: 20, 18, 14;

  --font-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-inout: cubic-bezier(0.87, 0, 0.13, 1);
  --container: 1280px;
  --gutter: clamp(20px, 4vw, 48px);
  --radius: 16px;
  --nav-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
html, body { overflow-x: clip; } /* aucun débordement horizontal ne doit élargir la page sur mobile */
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure { margin: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---- Typographie ---------------------------------------------------- */
.mono { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }
.kicker {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-dark);
}
.kicker__line { width: 40px; height: 1px; background: var(--gold); transform-origin: left; }
.h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.04; letter-spacing: -0.02em;
  color: var(--ink); text-wrap: balance;
}
.h3 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.25rem, 1.8vw, 1.5rem); line-height: 1.25; color: var(--ink); }
.lead { font-size: clamp(1.05rem, 1.35vw, 1.2rem); color: var(--ink-2); max-width: 62ch; }
.gold-text {
  background: var(--gold-brushed); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-style: normal;
}
.gold-text--sm { color: var(--gold-dark); background: none; -webkit-text-fill-color: currentColor; }

/* ---- Layout ----------------------------------------------------------- */
.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding: clamp(84px, 10vw, 150px) 0; position: relative; }
.section__head { display: grid; gap: 22px; max-width: 760px; margin-bottom: clamp(44px, 5vw, 72px); }
.section__head .kicker { margin-bottom: -6px; }
.section__num { position: absolute; inset-inline-end: var(--gutter); top: clamp(84px, 10vw, 150px); color: var(--muted); direction: ltr; }

/* ---- Boutons ---------------------------------------------------------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 16px 28px; border-radius: 999px;
  font-family: var(--font-display); font-weight: 600; font-size: 15px; letter-spacing: 0.01em;
  transition: transform 0.24s var(--ease-out), background-color 0.24s, border-color 0.24s, color 0.24s;
  overflow: hidden; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-130%) skewX(-18deg);
  background: linear-gradient(110deg, transparent 35%, rgba(242, 210, 122, 0.55) 50%, transparent 65%);
  transition: none;
}
.btn--dark:hover::after { transform: translateX(130%) skewX(-18deg); transition: transform 0.7s var(--ease-out); }
.btn--ghost { border: 1px solid var(--line); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--gold); }
.btn--gold { background: var(--gold-brushed); color: var(--ink); }
.btn--wa { background: var(--success); color: #fff; }
.btn svg { width: 18px; height: 18px; }

/* ---- Grain, rail d'or, curseur --------------------------------------- */
.grain {
  position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: 0.045; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='160' height='160' filter='url(%23n)'/></svg>");
}
.gold-rail { position: fixed; right: 0; top: 0; height: 100vh; width: 4px; z-index: 55; pointer-events: none; }
.gold-rail__bar { position: absolute; inset: 0; background: var(--gold-brushed); transform-origin: top; transform: scaleY(0); }
.gold-rail__bar::after {
  content: ""; position: absolute; left: 0; right: 0; height: 120px; top: 100%;
  background: linear-gradient(to top, transparent, rgba(242, 210, 122, 0.9), transparent);
  animation: railSheen 8s linear infinite;
}
@keyframes railSheen { 0% { top: 100%; } 100% { top: -120px; } }
.gold-rail__num {
  position: absolute; right: 14px; bottom: 22px; color: var(--muted);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em;
  writing-mode: vertical-rl; transform: rotate(180deg);
}
@media (max-width: 1023px) { .gold-rail { display: none; } }

.cursor { position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none; display: none; }
.cursor__dot { position: absolute; width: 8px; height: 8px; margin: -4px; border-radius: 50%; background: var(--ink); }
.cursor__ring {
  position: absolute; width: 34px; height: 34px; margin: -17px; border-radius: 50%; border: 1px solid var(--gold);
  display: grid; place-items: center; transition: width 0.25s var(--ease-out), height 0.25s var(--ease-out), margin 0.25s var(--ease-out), background-color 0.25s;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; color: var(--ink); text-transform: uppercase;
}
.cursor.is-label .cursor__ring { width: 68px; height: 68px; margin: -34px; background: rgba(251, 250, 247, 0.9); }
.cursor.is-label .cursor__dot { opacity: 0; }
@media (pointer: fine) and (min-width: 1024px) { .js .cursor { display: block; } }

/* ---- Préloader -------------------------------------------------------- */
.preloader {
  position: fixed; inset: 0; z-index: 100; background: var(--bg);
  display: grid; place-items: center;
}
.preloader__box { position: relative; width: 220px; height: 220px; display: grid; place-items: center; }
.preloader__ring { position: absolute; inset: 0; }
.preloader__ring circle { fill: none; stroke: var(--gold); stroke-width: 1.5; stroke-linecap: round; }
.preloader__emblem { width: 150px; }
.preloader__count { position: absolute; right: clamp(24px, 4vw, 48px); bottom: 28px; color: var(--muted); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; }
.preloader__count b { color: var(--ink); font-weight: 500; }
.preloader.is-done { display: none; }
html:not(.js) .preloader { display: none; }

/* ---- Navigation ------------------------------------------------------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 70; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--gutter);
  transition: background-color 0.35s, box-shadow 0.35s, height 0.35s, backdrop-filter 0.35s;
}
.nav.is-scrolled { height: 68px; background: rgba(251, 250, 247, 0.86); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.nav__brand img { height: 54px; width: auto; transition: height 0.35s; }
.nav.is-scrolled .nav__brand img { height: 42px; }
.nav__links { display: flex; gap: clamp(16px, 1.8vw, 28px); }
.nav__links a { position: relative; font-weight: 500; font-size: 14.5px; color: var(--ink); padding: 6px 0; white-space: nowrap; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease-out); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); }
.nav__right { display: flex; align-items: center; gap: 14px; }
.nav__cta { padding: 12px 22px; font-size: 14px; gap: 8px; }
.nav__cta svg { width: 15px; height: 15px; }
.nav__ext { display: none; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: rgba(255, 255, 255, 0.6); }
.lang button { padding: 6px 10px; border-radius: 999px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; color: var(--muted); transition: background-color 0.25s, color 0.25s; }
.lang button:hover { color: var(--ink); }
.lang button.is-active { background: var(--ink); color: #fff; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }
.nav__burger { display: none; width: 44px; height: 44px; position: relative; }
.nav__burger span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--ink); transition: transform 0.3s var(--ease-out), top 0.3s; }
.nav__burger span:first-child { top: 17px; } .nav__burger span:last-child { top: 26px; }
.nav.is-open .nav__burger span:first-child { top: 21px; transform: rotate(45deg); }
.nav.is-open .nav__burger span:last-child { top: 21px; transform: rotate(-45deg); }
@media (max-width: 1180px) {
  .nav__links { position: fixed; inset: var(--nav-h) 0 auto 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 24px; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity 0.3s, transform 0.3s var(--ease-out); }
  .nav.is-open .nav__links { opacity: 1; transform: none; pointer-events: auto; }
  .nav__links a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav__ext { display: block; color: var(--gold-dark); font-weight: 600; }
  .nav__cta { display: none; }
  .nav__right { gap: 8px; }
  .lang button { padding: 6px 8px; }
  .nav__burger { display: block; }
  .nav.is-scrolled { height: var(--nav-h); }
}

/* ---- Hero ------------------------------------------------------------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-top: var(--nav-h); overflow: hidden; }
.hero__band { position: absolute; top: 0; right: 0; bottom: 0; width: 46%; z-index: 0; transform-origin: bottom right; }
.hero__band-fill {
  position: absolute; inset: 0; background: var(--gold-brushed); clip-path: url(#bandClip);
  -webkit-clip-path: url(#bandClip);
}
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; opacity: 0.55; filter: contrast(1.05) saturate(0.6); }
.hero__band-brush { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.10) 0 1px, transparent 1px 3px); mix-blend-mode: overlay; opacity: 0.8; }
.hero__band-sheen { position: absolute; inset: 0; background: linear-gradient(110deg, transparent 40%, rgba(255, 245, 210, 0.42) 50%, transparent 60%); background-size: 300% 100%; background-position: 200% 0; }
.hero__band-svg { position: absolute; width: 0; height: 0; }
@supports not (clip-path: url(#x)) { .hero__band-fill { clip-path: polygon(38% 0, 100% 0, 100% 100%, 12% 100%); } }

.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(12, 1fr); align-items: center; gap: 24px; padding-top: 2vh; }
.hero__content { grid-column: 1 / span 8; grid-row: 1; display: grid; gap: 22px; }
.hero__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.1rem, 3.5vw, 3.3rem); line-height: 1.04; letter-spacing: -0.025em; color: var(--ink); }
.hero__doors { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 780px; margin-top: 4px; }
.door { position: relative; display: grid; gap: 8px; align-content: start; padding: 20px 22px 18px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.78); backdrop-filter: blur(8px); overflow: hidden; transition: transform 0.3s var(--ease-out), box-shadow 0.3s, border-color 0.3s; }
.door::before { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 100%; background: var(--gold-brushed); transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease-out); }
.door:hover { transform: translateY(-3px); box-shadow: 0 22px 44px rgba(var(--shadow), 0.12); }
.door:hover::before { transform: scaleX(1); }
.door__k { color: var(--gold-dark); font-size: 11px; }
.door h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; line-height: 1.2; color: var(--ink); letter-spacing: -0.01em; }
.door p { color: var(--muted); font-size: 0.92rem; line-height: 1.5; }
.door .btn { justify-self: start; padding: 11px 18px; font-size: 14px; margin-top: 6px; }
.door__link { font-size: 12.5px; color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.door__link:hover { color: var(--gold-dark); }
.door--maker { background: var(--ink); border-color: transparent; color: var(--ink-on-dark); }
.door--maker .door__k { color: var(--gold-light); }
.door--maker h3 { color: #fff; }
.door--maker p { color: var(--ink-on-dark); }
[dir="rtl"] .door::before { transform-origin: right; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero__title .line > span { display: block; }
.hero__lead { max-width: 60ch; font-size: clamp(1rem, 1.2vw, 1.12rem); color: var(--ink-2); }

.hero__piece { grid-column: 7 / span 5; grid-row: 1; position: relative; justify-self: center; width: min(100%, 520px); aspect-ratio: 1; display: grid; place-items: center; }
.hero__piece img { position: relative; z-index: 1; width: 72%; filter: drop-shadow(0 30px 60px rgba(var(--shadow), 0.22)); }
.hero__dim { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hero__dim circle, .hero__dim line, .hero__dim path { fill: none; stroke: var(--gold); stroke-width: 1.25; }
.hero__dim text { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; fill: var(--gold-dark); }
.hero__piece figcaption { position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%); color: var(--gold-dark); white-space: nowrap; }

.hero__foot { position: relative; z-index: 1; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 40px; padding: 28px 0 26px; margin-top: auto; }
.hero__stats { display: flex; gap: 32px; color: var(--muted); }
.hero__stats li { display: flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.hero__stats b { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: 0; color: var(--ink); font-variant-numeric: tabular-nums; }
.hero__scroll { display: inline-flex; align-items: center; gap: 14px; color: var(--muted); }
.hero__scroll-line { position: relative; width: 1px; height: 48px; background: var(--line); overflow: hidden; }
.hero__scroll-line i { position: absolute; left: 0; top: -8px; width: 1px; height: 8px; background: var(--gold); animation: scrollDot 1.8s var(--ease-inout) infinite; }
@keyframes scrollDot { 0% { top: -8px; } 100% { top: 56px; } }

.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; align-items: center; gap: 56px; width: max-content; animation: marquee var(--marquee-dur, 46s) linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track img { height: 30px; width: auto; max-width: 140px; object-fit: contain; filter: grayscale(1); opacity: 0.55; transition: filter 0.3s, opacity 0.3s; }
.marquee__track img:hover { filter: none; opacity: 1; }
@keyframes marquee { to { transform: translateX(-50%); } }

@media (max-width: 599px) {
  .hero__title { font-size: 1.9rem; line-height: 1.1; }
  .hero__title .line { overflow: visible; }
  .hero__lead { font-size: 1rem; }
  .hero__doors { grid-template-columns: 1fr; gap: 12px; }
  .hero__doors .door { padding: 18px 18px 16px; }
  .hero__grid { padding-top: 8vh; gap: 24px; }
  .hero__foot { padding-top: 16px; }
}
@media (max-width: 1023px) {
  .hero { min-height: auto; padding-bottom: 20px; }
  .hero__band { width: 100%; height: 42vh; top: auto; bottom: 0; }
  .hero__band-fill { clip-path: polygon(0 32%, 100% 0, 100% 100%, 0 100%); -webkit-clip-path: polygon(0 32%, 100% 0, 100% 100%, 0 100%); }
  .hero__grid { grid-template-columns: 1fr; padding-top: 10vh; gap: 32px; }
  .hero__content { grid-column: 1; }
  .hero__piece { grid-column: 1; grid-row: 2; width: min(70%, 360px); margin-top: 12px; }
  .hero__foot { grid-template-columns: 1fr; gap: 24px; padding-top: 24px; }
  .hero__stats { flex-wrap: wrap; gap: 16px 24px; }
  .hero__scroll { display: none; }
}

/* ---- Chiffres --------------------------------------------------------- */
.stats { padding: clamp(40px, 5vw, 64px) 0 clamp(24px, 3vw, 40px); position: relative; background: var(--bg); }
.about { padding-top: clamp(48px, 5vw, 72px); }
.stats .container { width: min(1100px, 100% - 2 * var(--gutter)); }
.stats::before { content: ""; position: absolute; inset: 0; opacity: 0.6; pointer-events: none; background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='104' viewBox='0 0 120 104'><path d='M30 2 L60 19 L60 53 L30 70 L0 53 L0 19 Z M90 53 L120 70 L120 104 L90 121 L60 104 L60 70 Z' fill='none' stroke='%23C9A227' stroke-opacity='0.12'/></svg>"); }
.stats__ruler { width: 100%; height: 40px; overflow: visible; margin-bottom: 18px; }
.stats__ruler line { stroke: var(--gold); stroke-width: 1; }
.stats__grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: 20px; background: rgba(255, 255, 255, 0.72); overflow: hidden; }
.stat { padding: 26px 28px 24px; border-inline-start: 1px solid var(--line); }
.stat:first-child { border-inline-start: 0; }
.stat b { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.9rem, 3vw, 3rem); line-height: 1; letter-spacing: -0.03em; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat b small { font-size: 0.5em; color: var(--gold-dark); font-weight: 700; letter-spacing: 0; margin-inline-start: 4px; }
.stat i { display: block; width: 32px; height: 2px; margin: 14px 0 10px; background: var(--gold-brushed); transform-origin: left; }
.stat span { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 1023px) { .stats__grid { grid-template-columns: repeat(2, 1fr); } .stat { padding: 20px 20px 18px; } .stat:nth-child(3) { border-inline-start: 0; } .stat:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* ---- Qui sommes-nous ------------------------------------------------- */
.about__head { display: grid; gap: 22px; max-width: 920px; margin-bottom: clamp(40px, 5vw, 64px); }
.about__manifesto { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.9rem, 3.6vw, 3.2rem); line-height: 1.12; letter-spacing: -0.02em; color: var(--ink); text-wrap: balance; }
.about__manifesto u { text-decoration: none; background: linear-gradient(var(--gold), var(--gold)) no-repeat 0 94% / 100% 3px; }
.about__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 40px; align-items: center; }
.about__text { grid-column: 1 / span 6; display: grid; gap: 30px; }
.about__text .lead { max-width: 48ch; }
.about__points { display: grid; gap: 4px; }
.about__points li { display: grid; grid-template-columns: 40px 1fr; gap: 16px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line); }
.about__points li:last-child { border-bottom: 1px solid var(--line); }
.about__points svg { width: 40px; height: 40px; }
.about__points svg path, .about__points svg circle, .about__points svg rect, .about__points svg line { fill: none; stroke: var(--gold); stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }
.about__points h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; color: var(--ink); margin-bottom: 2px; }
.about__points p { color: var(--muted); font-size: 0.93rem; }
.about__coord { color: var(--gold-dark); }
.about__media { grid-column: 7 / span 6; position: relative; }
.medallion { position: relative; aspect-ratio: 5 / 4; border-radius: 24px; overflow: hidden; background: var(--ink); box-shadow: 0 30px 60px rgba(var(--shadow), 0.14); }
.medallion video, .medallion img { width: 100%; height: 100%; object-fit: cover; }
.medallion::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(14, 14, 14, 0.55)); }
.medallion__label { position: absolute; inset-inline-start: 20px; bottom: 18px; color: var(--gold-light); z-index: 1; }
.corner { position: absolute; width: 22px; height: 22px; border: 1.25px solid var(--gold); }
.corner--tl { left: -12px; top: -12px; border-right: 0; border-bottom: 0; }
.corner--tr { right: -12px; top: -12px; border-left: 0; border-bottom: 0; }
.corner--bl { left: -12px; bottom: -12px; border-right: 0; border-top: 0; }
.corner--br { right: -12px; bottom: -12px; border-left: 0; border-top: 0; }
.about__card {
  position: absolute; inset-inline-start: -48px; bottom: 36px; z-index: 2; padding: 18px 22px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.82); backdrop-filter: blur(12px); border: 1px solid var(--line);
  box-shadow: 0 20px 40px rgba(var(--shadow), 0.10); display: grid; gap: 4px;
}
.about__card b { font-family: var(--font-display); font-weight: 600; color: var(--ink); font-size: 15px; }
.about__card span { color: var(--muted); font-size: 13px; }
@media (max-width: 1023px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__text, .about__media { grid-column: 1; }
  .about__media { margin-top: 12px; }
  .medallion { aspect-ratio: 4 / 3; }
  .about__card { inset-inline-start: 12px; }
}

/* ---- Catégories ------------------------------------------------------- */
.categories { background: var(--bg-alt); padding: clamp(44px, 5vw, 72px) 0 clamp(36px, 4vw, 56px); }
.categories .section__head { margin-bottom: 4px; }
.categories .section__num { top: clamp(44px, 5vw, 72px); }
.cat-slider { position: relative; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); overflow: hidden; }
.cat-grid { --gap: 22px; --per: 3; display: flex; gap: var(--gap); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 44px 12px 18px; margin: 0 -12px; scrollbar-width: none; outline: none; }
.cat-grid::-webkit-scrollbar { display: none; }
.cat-grid:focus-visible { box-shadow: inset 0 0 0 2px var(--gold); border-radius: 20px; }
.cat-grid .cat { flex: 0 0 calc((100% - 24px - var(--gap) * (var(--per) - 1)) / var(--per)); scroll-snap-align: start; scroll-margin-left: 12px; }
.cat-nav { display: block; padding: 2px 0 0; }
.cat-nav__btn { position: absolute; top: 50%; z-index: 5; width: 52px; height: 52px; margin-top: -40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); box-shadow: 0 10px 24px rgba(var(--shadow), 0.12); display: grid; place-items: center; color: var(--ink); transition: border-color 0.25s, background-color 0.25s, color 0.25s, transform 0.25s, opacity 0.25s, box-shadow 0.25s; }
#catPrev { inset-inline-start: 0; } #catNext { inset-inline-end: 0; }
.cat-nav__btn svg { width: 20px; height: 20px; }
.cat-nav__btn:hover { border-color: var(--gold); color: var(--gold-dark); box-shadow: 0 14px 30px rgba(201, 162, 39, 0.22); transform: scale(1.06); }
.cat-nav__btn:disabled { opacity: 0.3; cursor: default; transform: none; border-color: var(--line); color: var(--ink); box-shadow: none; }
.cat-progress { height: 1px; background: var(--line); position: relative; margin: 0 4px; }
.cat-progress i { position: absolute; left: 0; top: -1px; height: 3px; width: 20%; background: var(--gold-brushed); border-radius: 2px; transition: transform 0.25s ease-out, width 0.25s; }
[dir="rtl"] .cat-nav__btn svg { transform: scaleX(-1); }
[dir="rtl"] .cat-progress i { left: auto; right: 0; }
@media (max-width: 1023px) { .cat-grid { --per: 2; } }
@media (max-width: 599px) { .cat-grid { --per: 1; padding-top: 36px; } .cat-nav__btn { width: 44px; height: 44px; } }
.cat {
  position: relative; display: grid; grid-template-rows: auto 1fr; background: var(--surface); border-radius: var(--radius);
  border: 1px solid var(--line); transition: transform 0.35s var(--ease-out), box-shadow 0.35s, border-color 0.35s;
}
.cat::before { content: ""; position: absolute; left: 0; top: -1px; height: 3px; width: 100%; border-radius: var(--radius) var(--radius) 0 0; background: var(--gold-brushed); transform: scaleX(0); transform-origin: center; transition: transform 0.45s var(--ease-out); z-index: 2; }
.cat:hover { transform: translateY(-6px); border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 28px 56px rgba(201, 162, 39, 0.18), 0 10px 24px rgba(var(--shadow), 0.10); z-index: 2; }
.cat:hover::before { transform: scaleX(1); }
/* La boîte image garde son format 5:4 quelle que soit l'image : l'image est positionnée en absolu, donc sa hauteur
   intrinsèque ne peut plus agrandir la boîte (différence Chromium/Edge/Opera vs Firefox). */
.cat__media { position: relative; aspect-ratio: 5 / 4; min-height: 0; background: #fff; border-radius: var(--radius) var(--radius) 0 0; overflow: visible; }
.cat__media img { position: absolute; inset: 22px; width: calc(100% - 44px); height: calc(100% - 44px); object-fit: contain; mix-blend-mode: multiply; transition: transform 0.55s var(--ease-out); will-change: transform; }
.cat:hover .cat__media img { transform: translateY(-24px) scale(1.18) rotate(-3deg); }
.cat--photo .cat__media img { mix-blend-mode: normal; border-radius: 12px; transition: transform 0.55s var(--ease-out), box-shadow 0.55s var(--ease-out); }
.cat--photo:hover .cat__media img { transform: translateY(-16px) scale(1.07); box-shadow: 0 28px 40px rgba(20, 18, 14, 0.22); }
.cat__body { padding: 22px 24px 26px; display: grid; gap: 10px; border-top: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); background: var(--surface); position: relative; }
.cat:hover .cat__body h3 { color: var(--gold-dark); }
.cat__num { color: var(--muted); }
.cat:hover .cat__num { color: var(--gold-dark); }
.cat__body h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: var(--ink); transition: color 0.3s; }
.cat__body p { color: var(--muted); font-size: 0.95rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.chip { padding: 6px 10px; border-radius: 999px; background: var(--gold-tint); color: var(--gold-dark); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }

/* ---- Pourquoi CVP (salle noire) -------------------------------------- */
.why { background: var(--ink); color: var(--ink-on-dark); overflow: hidden; padding: clamp(44px, 5vw, 72px) 0 clamp(36px, 4vw, 60px); }
.why .section__num { top: clamp(44px, 5vw, 72px); }
.why::before {
  content: ""; position: absolute; inset: 0; opacity: 0.35; pointer-events: none;
  background-image: linear-gradient(rgba(201, 162, 39, 0.12) 1px, transparent 1px), linear-gradient(90deg, rgba(201, 162, 39, 0.12) 1px, transparent 1px);
  background-size: 48px 48px;
}
.why__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.16; pointer-events: none; }
.why .container { position: relative; }
.why .h2 { color: #fff; }
.why .kicker { color: var(--gold-light); }
.why .kicker__line { background: var(--gold-light); }
.why__grid { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: start; }
.why__sticky { position: sticky; top: 120px; display: grid; gap: 22px; }
.why__big { font-family: var(--font-display); font-weight: 800; font-size: clamp(5rem, 12vw, 11rem); line-height: 0.9; letter-spacing: -0.04em; }
.why__timeline { position: relative; padding: 0; }
.why__sticky { top: 96px; }
.why__wire { position: absolute; top: 0; bottom: 0; inset-inline-start: 35px; width: 2px; background: rgba(255, 255, 255, 0.08); }
.why__wire i { position: absolute; inset: 0; background: linear-gradient(180deg, #F2D27A, #C9A227 60%, #8A6A12); transform: scaleY(0); transform-origin: top; box-shadow: 0 0 14px rgba(242, 210, 122, 0.5); }
.why__wire b { position: absolute; left: -5px; top: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--gold-light); box-shadow: 0 0 0 4px rgba(242, 210, 122, 0.18), 0 0 22px rgba(242, 210, 122, 0.9); transform: translateY(-6px); }
.why__list { display: grid; gap: 0; }
.why__item { position: relative; display: grid; grid-template-columns: 72px 1fr; gap: 28px; align-items: center; padding: clamp(26px, 3.5vh, 40px) 0; min-height: 22vh; transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out); }
.why__item:first-child { padding-top: 6px; }
.why__item:last-child { padding-bottom: 6px; }
.why__hex { width: 72px; height: 72px; overflow: visible; transition: filter 0.6s var(--ease-out), transform 0.6s var(--ease-out); }
.why__hex path, .why__hex circle, .why__hex line, .why__hex rect, .why__hex polyline { fill: none; stroke: rgba(255, 255, 255, 0.35); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; transition: stroke 0.5s, fill 0.5s; }
.why__hex .hex { fill: var(--ink); stroke: rgba(255, 255, 255, 0.22); }
.why__item h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.45rem; color: rgba(255, 255, 255, 0.55); margin-bottom: 8px; transition: color 0.5s; }
.why__item p { color: rgba(184, 181, 174, 0.55); max-width: 52ch; transition: color 0.5s; }
.js .why__item { opacity: 0.45; transform: translateX(10px); }
.why__item.is-lit { opacity: 1; transform: none; }
.why__item.is-lit .why__hex { filter: drop-shadow(0 0 14px rgba(242, 210, 122, 0.65)); transform: scale(1.06); }
.why__item.is-lit .why__hex .hex { fill: rgba(201, 162, 39, 0.14); stroke: var(--gold-light); }
.why__item.is-lit .why__hex path, .why__item.is-lit .why__hex circle, .why__item.is-lit .why__hex line, .why__item.is-lit .why__hex rect, .why__item.is-lit .why__hex polyline { stroke: var(--gold-light); }
.why__item.is-lit h3 { color: #fff; }
.why__item.is-lit p { color: var(--ink-on-dark); }
.why__item::after { content: ""; position: absolute; inset-inline-start: 36px; top: 50%; width: 0; height: 1px; background: linear-gradient(90deg, var(--gold-light), transparent); opacity: 0; transition: width 0.6s var(--ease-out), opacity 0.4s; pointer-events: none; }
[dir="rtl"] .why__item::after { background: linear-gradient(270deg, var(--gold-light), transparent); }
[dir="rtl"] .js .why__item { transform: translateX(-10px); }
@media (max-width: 1023px) { .why__grid { grid-template-columns: 1fr; } .why__sticky { position: static; } .why__big { font-size: 5rem; } .why__item { min-height: 0; padding: 30px 0; } }

/* ---- Marques ----------------------------------------------------------- */
.brands { padding: clamp(44px, 5vw, 72px) 0 clamp(36px, 4vw, 56px); }
.brands .section__num { top: clamp(44px, 5vw, 72px); }
.brands .section__head { margin-bottom: 26px; }
.brands__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font-size: 14px; font-weight: 500; transition: border-color 0.25s, background-color 0.25s, color 0.25s; }
.filter:hover { border-color: var(--gold); }
.filter.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.brands__count { color: var(--muted); }
.brand-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.brand {
  position: relative; display: grid; aspect-ratio: 1; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line);
  overflow: hidden; text-align: left; padding: 0; transition: transform 0.3s var(--ease-out), box-shadow 0.3s, opacity 0.4s, border-color 0.3s;
}
.brand::before { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 100%; background: var(--gold-brushed); transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease-out); z-index: 3; }
.brand:hover { transform: translateY(-4px); box-shadow: 0 24px 48px rgba(var(--shadow), 0.12); border-color: transparent; }
.brand:hover::before { transform: scaleX(1); }
.brand.is-dim { opacity: 0.28; }
.brand__piece { position: absolute; inset: 0; object-fit: contain; padding: 12% 16% 34%; width: 100%; height: 100%; opacity: 0; transform: scale(0.94); transition: opacity 0.4s, transform 0.5s var(--ease-out); }
.brand:hover .brand__piece { opacity: 0.16; transform: scale(1); }
.brand__logo { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 14% 16% 32%; z-index: 1; transition: transform 0.4s var(--ease-out); }
.brand__logo img { width: auto; height: auto; max-height: 100%; max-width: 100%; object-fit: contain; }
.brand:hover .brand__logo { transform: scale(0.96); }
.brand__meta { position: absolute; inset-inline-start: 16px; inset-inline-end: 44px; bottom: 14px; color: var(--muted); z-index: 2; line-height: 1.5; font-size: 10.5px; }
.brand__meta b { color: var(--ink); font-weight: 500; }
.brand__arrow { position: absolute; inset-inline-end: 14px; bottom: 12px; width: 26px; height: 26px; display: grid; place-items: center; color: var(--gold-dark); z-index: 2; transition: transform 0.3s var(--ease-out); }
.brand:hover .brand__arrow { transform: translate(3px, -3px); }
.brand--wide { grid-column: span 2; aspect-ratio: auto; }
.brand--wide .brand__logo { padding: 7% 22% 15%; }
.brand--wide .brand__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.10; }
/* Showroom des marques : liste typographique + scène */
.showcase { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 4vw, 56px); align-items: start; margin-top: 6px; }
.blist__hint { color: var(--muted); margin-bottom: 10px; }
.blist { display: grid; }
.brow { display: grid; grid-template-columns: 34px 1fr; grid-template-rows: auto auto; column-gap: 14px; row-gap: 4px; align-items: baseline; width: 100%; padding: 13px 0; border: 0; border-top: 1px solid var(--line); background: none; text-align: start; cursor: pointer; transition: opacity 0.35s, border-color 0.35s; }
.brow:last-child { border-bottom: 1px solid var(--line); }
.brow__num { grid-row: 1 / span 2; align-self: start; padding-top: 6px; color: var(--muted); transition: color 0.3s; }
.brow__name { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.1rem, 1.5vw, 1.4rem); letter-spacing: -0.015em; color: var(--ink); line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color 0.3s, transform 0.35s var(--ease-out); }
.brow__meta { color: var(--muted); font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brow:hover .brow__name, .brow.is-active .brow__name { color: var(--gold-dark); transform: translateX(8px); }
.brow.is-active .brow__num { color: var(--gold-dark); }
.brow.is-active { border-top-color: var(--gold); }
.brow.is-active + .brow { border-top-color: var(--gold); }
.brow.is-dim { opacity: 0.3; }
[dir="rtl"] .brow:hover .brow__name, [dir="rtl"] .brow.is-active .brow__name { transform: translateX(-8px); }
.stage { position: sticky; top: 96px; border-radius: 24px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 30px 60px rgba(var(--shadow), 0.10); }
.stage__media { position: relative; aspect-ratio: 16 / 9; background: #fff; overflow: hidden; }
.stage__media img#stageImg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stage__media img#stageImg.is-contain { object-fit: contain; padding: 28px; }
.stage__logo { position: absolute; inset-inline-start: 18px; top: 18px; height: 56px; padding: 10px 14px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.92); border: 1px solid var(--line); border-radius: 12px; backdrop-filter: blur(6px); }
.stage__logo img { max-height: 34px; max-width: 120px; width: auto; height: auto; object-fit: contain; }
.stage__progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(14, 14, 14, 0.12); }
.stage__progress i { position: absolute; inset: 0; background: var(--gold-brushed); transform: scaleX(0); transform-origin: left; }
[dir="rtl"] .stage__progress i { transform-origin: right; }
.stage__body { padding: 22px 26px 26px; display: grid; gap: 12px; }
.stage__top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; }
.stage__top h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; color: var(--ink); letter-spacing: -0.01em; }
.stage__top .mono { color: var(--muted); }
.stage__tag { color: var(--ink-2); font-size: 1rem; }
.stage__facts { display: flex; flex-wrap: wrap; gap: 10px; }
.sfact { padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; display: grid; gap: 2px; min-width: 110px; }
.sfact b { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--ink); white-space: nowrap; }
.sfact span { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.stage__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.stage__cta .btn { padding: 11px 18px; font-size: 14px; }
@media (max-width: 1023px) { .showcase { grid-template-columns: 1fr; } .stage { position: static; order: -1; } .brow { grid-template-columns: 30px 1fr; padding: 11px 0; } }
.brands__marquee { margin-top: 56px; display: grid; gap: 22px; }
.supplier { margin-top: clamp(36px, 4vw, 56px); display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; padding: clamp(32px, 4vw, 56px); border-radius: 24px; background: var(--ink); color: var(--ink-on-dark); position: relative; overflow: hidden; }
.supplier::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.5; background-image: linear-gradient(rgba(201, 162, 39, 0.10) 1px, transparent 1px), linear-gradient(90deg, rgba(201, 162, 39, 0.10) 1px, transparent 1px); background-size: 48px 48px; }
.supplier > * { position: relative; }
.supplier .kicker { color: var(--gold-light); }
.supplier .kicker__line { background: var(--gold-light); }
.supplier__text { display: grid; gap: 20px; align-content: start; }
.supplier__text h3 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 2.4vw, 2.1rem); line-height: 1.15; letter-spacing: -0.015em; color: #fff; text-wrap: balance; }
.supplier__text p { max-width: 56ch; }
.supplier__text .btn { justify-self: start; margin-top: 6px; }
.supplier__points { display: grid; gap: 22px; align-content: center; }
.supplier__points li { display: grid; grid-template-columns: 28px 1fr; gap: 16px; align-items: start; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.10); }
.supplier__points li:first-child { border-top: 0; padding-top: 0; }
.supplier__points svg { width: 28px; height: 28px; }
.supplier__points svg path { fill: none; stroke: var(--gold); stroke-width: 1.4; }
.supplier__points h4 { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: #fff; margin: 0 0 4px; }
.supplier__points p { font-size: 0.95rem; }
@media (max-width: 1023px) { .supplier { grid-template-columns: 1fr; gap: 32px; } }
.brands__marquee .marquee__track img { filter: grayscale(1) sepia(1) saturate(4) hue-rotate(6deg) brightness(0.85); opacity: 0.45; height: 26px; }
.brands__marquee .marquee--reverse .marquee__track { animation-direction: reverse; }
@media (max-width: 1023px) { .brand-grid { grid-template-columns: repeat(3, 1fr); } .brand--wide { grid-column: span 3; aspect-ratio: 3 / 1; } .brand--wide .brand__logo { padding: 14% 30% 26%; } }
@media (max-width: 599px) { .brand-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } .brand--wide { grid-column: span 2; aspect-ratio: 2 / 1; } .brand__meta { font-size: 9px; line-height: 1.45; inset-inline-start: 12px; inset-inline-end: 34px; bottom: 10px; } .brand__arrow { inset-inline-end: 8px; bottom: 8px; } }

/* ---- Fiche marque (dialog) ------------------------------------------- */
.fiche { border: 0; padding: 0; margin: 0; max-width: 100%; max-height: none; width: 100%; height: 100dvh; background: var(--bg); color: var(--ink-2); overflow: hidden; }
.fiche::backdrop { background: rgba(14, 14, 14, 0.5); }
.fiche__inner { height: 100%; display: grid; grid-template-rows: auto 1fr auto; }
.fiche__head { display: flex; align-items: center; gap: 22px; padding: 16px var(--gutter); border-bottom: 1px solid var(--line); background: rgba(251, 250, 247, 0.92); backdrop-filter: blur(10px); }
.fiche__logo { height: 44px; width: 150px; display: grid; place-items: start center; }
.fiche__logo img { max-height: 44px; max-width: 150px; object-fit: contain; }
.fiche__title { display: grid; gap: 2px; margin-right: auto; }
.fiche__title h2 { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--ink); line-height: 1.1; }
.fiche__title .mono { color: var(--muted); }
.fiche__actions { display: flex; gap: 10px; align-items: center; }
.fiche__actions .btn { padding: 11px 18px; font-size: 14px; }
.fiche__close { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: border-color 0.25s, transform 0.25s; }
.fiche__close:hover { border-color: var(--gold); transform: rotate(90deg); }
.fiche__body { overflow-y: auto; overscroll-behavior: contain; }
.fiche__layout { display: grid; grid-template-columns: 220px 1fr; gap: 48px; width: min(var(--container), 100% - 2 * var(--gutter)); margin: 0 auto; padding: 40px 0 60px; }
.fiche__nav { position: sticky; top: 40px; align-self: start; display: grid; gap: 4px; }
.fiche__nav a { display: block; padding: 10px 0; padding-inline-start: 16px; border-inline-start: 1px solid var(--line); color: var(--muted); font-size: 14px; transition: color 0.25s, border-color 0.25s; }
.fiche__nav a:hover { color: var(--ink); border-color: var(--gold); }
.fiche__content { display: grid; grid-template-columns: minmax(0, 1fr); gap: 56px; min-width: 0; }
.fiche__content > * { min-width: 0; max-width: 100%; }
.fiche__layout { min-width: 0; }
.fiche__hero { position: relative; aspect-ratio: 16 / 7; border-radius: 20px; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.fiche__hero img { width: 100%; height: 100%; object-fit: cover; }
.fiche__hero--contain img { object-fit: contain; padding: 24px; }
.fiche__tagline { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.35rem, 2.2vw, 1.9rem); line-height: 1.25; color: var(--ink); letter-spacing: -0.01em; text-wrap: balance; }
.fiche__desc { display: grid; gap: 18px; max-width: 70ch; }
.fiche__desc p { font-size: 1.05rem; }
.fiche h3.h3 { margin-bottom: 18px; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.fact { padding: 20px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 8px; }
.fact b { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.4rem, 2vw, 1.9rem); line-height: 1; color: var(--ink); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.fact span { color: var(--muted); font-size: 13px; }
.fact i { display: block; width: 28px; height: 2px; background: var(--gold-brushed); }
.range { display: flex; flex-wrap: wrap; gap: 10px; }
.range li { padding: 10px 14px; border-radius: 12px; background: var(--gold-tint); color: var(--ink-2); font-size: 14px; display: flex; align-items: center; gap: 10px; }
.range li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.gallery { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: thin; scrollbar-color: var(--gold) transparent; }
.gallery figure { flex: 0 0 min(72%, 420px); scroll-snap-align: start; display: grid; gap: 10px; }
.gallery__img { aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; }
.gallery__img img { width: 100%; height: 100%; object-fit: cover; }
.gallery__img--contain img { object-fit: contain; padding: 18px; }
.gallery figcaption { color: var(--muted); font-size: 12px; }
.yt { position: relative; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: var(--ink); border: 0; padding: 0; width: 100%; display: block; }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; transition: transform 0.6s var(--ease-out), opacity 0.4s; }
.yt:hover img { transform: scale(1.03); opacity: 1; }
.yt__play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 84px; height: 84px; border-radius: 50%; background: var(--gold-brushed); display: grid; place-items: center; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35); transition: transform 0.3s var(--ease-out); }
.yt:hover .yt__play { transform: translate(-50%, -50%) scale(1.06); }
.yt__play svg { width: 28px; height: 28px; margin-left: 4px; fill: var(--ink); }
.yt__title { position: absolute; left: 20px; bottom: 16px; right: 20px; color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 15px; text-align: left; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5); }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.certs { display: flex; flex-wrap: wrap; gap: 10px; }
.certs li { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; color: var(--ink); }
.fiche__foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 14px var(--gutter); border-top: 1px solid var(--line); background: var(--bg); }
.fiche__foot button { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 600; color: var(--ink); padding: 8px 0; }
.fiche__foot button span { color: var(--muted); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; }
.fiche__foot button:hover { color: var(--gold-dark); }
@media (max-width: 1023px) {
  .fiche__layout { grid-template-columns: 1fr; gap: 32px; padding-top: 24px; }
  .fiche__nav { position: static; display: flex; gap: 8px; overflow-x: auto; }
  .fiche__nav a { border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; white-space: nowrap; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .fiche__head { flex-wrap: wrap; }
  .fiche__actions .btn--dark { display: none; }
  .fiche__title h2 { font-size: 1.1rem; }
  .fiche__hero { aspect-ratio: 16 / 10; }
}
@media (max-width: 599px) {
  /* en-tête de fiche sur une seule ligne : logo · nom · site · fermer */
  .fiche__head { flex-wrap: nowrap; gap: 12px; padding: 10px 16px; }
  .fiche__logo { width: 64px; height: 36px; flex: 0 0 auto; }
  .fiche__logo img { max-height: 36px; max-width: 64px; }
  .fiche__title { min-width: 0; }
  .fiche__title h2 { font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .fiche__title .mono { display: none; }
  .fiche__actions { gap: 8px; flex: 0 0 auto; }
  .fiche__actions .btn--ghost { padding: 9px 12px; font-size: 12px; }
  .fiche__close { width: 40px; height: 40px; }
  .fiche__layout { padding: 16px 0 40px; gap: 24px; }
  .fiche__content { gap: 36px; }
  .facts { gap: 10px; }
  .fact { padding: 14px; }
  .fiche__desc p { font-size: 1rem; }
  .gallery figure { flex-basis: 78%; }
  .yt__play { width: 64px; height: 64px; }
  .fiche__foot { padding: 10px 16px; }
  .fiche__foot button { font-size: 14px; gap: 8px; }
  .fiche__foot button span { display: none; }
}

/* ---- Couverture Maroc ------------------------------------------------- */
.coverage { background: var(--bg-alt); padding: clamp(44px, 5vw, 72px) 0 clamp(36px, 4vw, 56px); }
.coverage .section__num { top: clamp(44px, 5vw, 72px); }
.coverage .section__head { margin-bottom: 14px; }
.coverage__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 24px clamp(28px, 4vw, 56px); align-items: start; }
.coverage__left { display: grid; gap: 8px; min-width: 0; }
.coverage__right { display: grid; gap: 26px; padding-top: clamp(96px, 9vw, 132px); min-width: 0; }
.delays td:last-child { white-space: normal; font-size: 12.5px; line-height: 1.4; }
.delays th:last-child, .delays td:last-child { width: 36%; }
@media (max-width: 1023px) { .coverage__right { padding-top: 0; } }
.map { position: relative; width: 100%; }
.map svg { display: block; width: 100%; max-width: 100%; height: auto; max-height: 640px; margin: 0 auto; overflow: visible; }
.map .outline { fill: rgba(255, 255, 255, 0.55); stroke: var(--gold); stroke-width: 1.2; stroke-linejoin: round; transition: fill 0.4s; }
.map .route { fill: none; stroke: var(--gold); stroke-width: 1; stroke-dasharray: 3 4; opacity: 0.8; transition: opacity 0.3s, stroke-width 0.3s, stroke 0.3s; }
.map .city { fill: var(--anthracite); transition: fill 0.3s, r 0.3s; }
.map .city--hub { fill: var(--ink); }
.map .hit { fill: transparent; cursor: pointer; }
.map .halo { fill: rgba(242, 210, 122, 0.35); }
.map .dot { fill: var(--gold-light); }
.map text { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; fill: var(--ink-2); text-transform: uppercase; transition: fill 0.3s; pointer-events: none; }
.map text.hub { font-weight: 500; fill: var(--ink); font-size: 13px; }
.map.has-hot .route:not(.is-hot) { opacity: 0.18; }
.map.has-hot .cityg:not(.is-hot) text { fill: rgba(42, 42, 42, 0.45); }
.map .route.is-hot { stroke: var(--gold-dark); stroke-width: 2.4; stroke-dasharray: none; opacity: 1; }
.map .cityg.is-hot .city { fill: var(--gold-dark); r: 5.5; }
.map .cityg.is-hot text { fill: var(--gold-dark); font-weight: 500; }
.map .tip { pointer-events: none; transition: opacity 0.25s; }
.map .tip rect { fill: var(--ink); }
.map .tip text { fill: var(--gold-light); font-size: 11px; letter-spacing: 0.06em; font-weight: 500; }
.map__legend { position: absolute; left: 0; bottom: 0; color: var(--muted); }
.steps { display: grid; gap: 0; margin-bottom: 0; }
.step { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 14px 0; align-items: center; }
.step::before { content: ""; position: absolute; inset-inline-start: 21px; top: 0; bottom: 0; width: 1px; background: var(--line); }
.step:first-child::before { top: 50%; } .step:last-child::before { bottom: 50%; }
.step__dot { position: relative; z-index: 1; width: 44px; height: 44px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; font-family: var(--font-mono); font-size: 11px; color: var(--gold-dark); }
.step h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--ink); margin-bottom: 2px; }
.step p { color: var(--muted); font-size: 0.93rem; }
.delays tr.is-hot td { background: var(--gold-tint); }
.delays tr.is-hot td:last-child { color: var(--gold-dark); }
.delays { width: 100%; border-collapse: collapse; font-size: 15px; }
.delays th, .delays td { text-align: start; padding: 10px 10px; border-bottom: 1px solid var(--line); transition: background-color 0.25s, color 0.25s; }
.delays tbody tr { cursor: default; }
.delays th { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.delays td:last-child { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.04em; color: var(--ink); white-space: normal; }
.delays tr:hover td { background: var(--gold-tint); }
.delays caption { caption-side: bottom; text-align: left; padding-top: 12px; color: var(--muted); font-size: 12.5px; }
@media (max-width: 1023px) { .coverage__grid { grid-template-columns: minmax(0, 1fr); gap: 36px; } }
@media (max-width: 599px) {
  /* carte réduite : seuls le hub et la ville survolée sont étiquetés, bulles et points agrandis */
  .map svg { max-height: none; }
  .map .cityg:not(.is-hot) text { display: none; }
  .map text.hub { display: block !important; font-size: 20px; text-anchor: end; transform: translate(-30px, 0); }
  .map__legend { display: none; }
  .map .cityg.is-hot text { font-size: 19px; }
  .map .city { r: 6; }
  .map .cityg.is-hot .city { r: 8; }
  .map .hit { r: 22; }
  .map .tip text { font-size: 18px; }
  .map__legend { position: static; margin-top: 6px; }
  .delays { table-layout: fixed; }
  .delays th, .delays td { padding: 9px 6px; font-size: 13.5px; overflow-wrap: anywhere; }
  .delays th:last-child, .delays td:last-child { width: 40%; font-size: 12px; }
}

/* ---- Process ----------------------------------------------------------- */
.process { padding: clamp(44px, 5vw, 72px) 0 clamp(36px, 4vw, 56px); }
.process .section__num { top: clamp(44px, 5vw, 72px); }
.process .section__head { margin-bottom: 30px; }
.process__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; position: relative; }
.process__line { position: absolute; left: 34px; right: 34px; top: 34px; height: 2px; background: var(--line); }
.process__line i { position: absolute; inset: 0; background: var(--gold-brushed); transform-origin: left; transform: scaleX(0); box-shadow: 0 0 12px rgba(201, 162, 39, 0.45); }
[dir="rtl"] .process__line i { transform-origin: right; }
.pstep { position: relative; display: grid; gap: 14px; padding-top: 0; transition: opacity 0.5s; }
.js .pstep { opacity: 0.5; }
.pstep.is-lit { opacity: 1; }
.pstep__hex { width: 68px; height: 68px; display: grid; place-items: center; background: var(--bg); position: relative; transition: transform 0.4s var(--ease-out), filter 0.4s; }
.pstep__hex svg { width: 68px; height: 68px; position: absolute; inset: 0; }
.pstep__hex svg path { fill: var(--surface); stroke: var(--line); stroke-width: 1.4; transition: fill 0.4s, stroke 0.4s; }
.pstep__hex b { position: relative; font-family: var(--font-mono); font-size: 13px; color: var(--muted); letter-spacing: 0.1em; transition: color 0.4s; }
.pstep.is-lit .pstep__hex { transform: scale(1.06); filter: drop-shadow(0 8px 16px rgba(201, 162, 39, 0.28)); }
.pstep.is-lit .pstep__hex svg path { fill: var(--gold-tint); stroke: var(--gold); }
.pstep.is-lit .pstep__hex b { color: var(--gold-dark); }
.pstep h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--ink); }
.pstep p { color: var(--muted); font-size: 0.95rem; }
.webshop { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: clamp(36px, 4vw, 56px); }
.webshop__col { position: relative; display: grid; gap: 12px; align-content: start; padding: 32px 34px 34px; border-radius: 20px; border: 1px solid var(--line); background: var(--gold-tint); overflow: hidden; }
.webshop__col:first-child { background: var(--ink); border-color: transparent; color: var(--ink-on-dark); }
.webshop__col:first-child::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.5; background-image: linear-gradient(rgba(201, 162, 39, 0.10) 1px, transparent 1px), linear-gradient(90deg, rgba(201, 162, 39, 0.10) 1px, transparent 1px); background-size: 40px 40px; }
.webshop__col > * { position: relative; }
.webshop__col .mono { color: var(--gold-dark); }
.webshop__col:first-child .mono { color: var(--gold-light); }
.webshop__col h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; color: var(--ink); letter-spacing: -0.01em; }
.webshop__col:first-child h3 { color: #fff; }
.webshop__col p { color: var(--muted); max-width: 40ch; }
.webshop__col:first-child p { color: var(--ink-on-dark); }
.webshop__col .btn { justify-self: start; margin-top: 8px; }
.webshop__col:first-child .btn--dark { background: var(--gold-brushed); color: var(--ink); }
@media (max-width: 1023px) { .process__grid { grid-template-columns: repeat(2, 1fr); } .process__line { display: none; } .js .pstep { opacity: 1; } .webshop { grid-template-columns: 1fr; } }
@media (max-width: 599px) { .process__grid { grid-template-columns: 1fr; } }

/* ---- Contact ----------------------------------------------------------- */
.contact { background: var(--surface); padding: clamp(44px, 5vw, 72px) 0 clamp(40px, 4vw, 60px); }
.contact .section__num { top: clamp(44px, 5vw, 72px); }
.contact .section__head { margin-bottom: 22px; }
.contact__grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.contact__left { display: grid; }
.contact__info { padding-top: 44px; }
.wa-card { display: grid; grid-template-columns: 44px 1fr auto; gap: 16px; align-items: center; padding: 18px 20px; border-radius: 16px; background: var(--success); color: #fff; box-shadow: 0 18px 36px rgba(31, 122, 92, 0.25); transition: transform 0.3s var(--ease-out), box-shadow 0.3s; }
.wa-card:hover { transform: translateY(-3px); box-shadow: 0 24px 44px rgba(31, 122, 92, 0.32); }
.wa-card svg { width: 40px; height: 40px; }
.wa-card__body { display: grid; gap: 2px; min-width: 0; }
.wa-card__body .mono { color: rgba(255, 255, 255, 0.75); }
.wa-card__body b { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; letter-spacing: 0; line-height: 1.1; }
.wa-card__body small { color: rgba(255, 255, 255, 0.82); font-size: 12.5px; }
.wa-card__arrow { font-size: 1.2rem; color: rgba(255, 255, 255, 0.9); }
.form { display: grid; gap: 18px; padding: 26px 28px 28px; border: 1px solid var(--line); border-radius: 20px; background: var(--bg); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { position: relative; display: grid; gap: 6px; }
.field label { color: var(--muted); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; }
.field input, .field select, .field textarea {
  width: 100%; padding: 9px 0; border: 0; border-bottom: 1px solid var(--line); background: transparent;
  font: inherit; color: var(--ink); outline: none; border-radius: 0; transition: border-color 0.3s;
}
.field select { appearance: none; background: transparent url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%237A7772' stroke-width='2'><path d='M6 9l6 6 6-6'/></svg>") no-repeat right center; }
.field textarea { min-height: 84px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); }
.field::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease-out); }
.field:focus-within::after { transform: scaleX(1); }
.form__actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.form__note { color: var(--muted); font-size: 13px; }
.form__status { color: var(--muted); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; min-height: 1.4em; }
.form__status.is-ok { color: var(--success); }
.form__status.is-error { color: var(--gold-dark); }
.form__status a { text-decoration: underline; color: var(--ink); }
.btn:disabled { opacity: 0.6; cursor: wait; transform: none; }
.contact__info { display: grid; gap: 20px; }
.info { display: grid; gap: 4px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.info .mono { color: var(--muted); }
.info a, .info p { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--ink); }
.info a:hover { color: var(--gold-dark); }
.info small { color: var(--muted); font-size: 13.5px; font-weight: 400; font-family: var(--font-body); }
.clock { display: flex; align-items: center; gap: 14px; }
.clock b { font-family: var(--font-mono); font-size: 22px; letter-spacing: 0.06em; color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }
.clock .status { padding: 6px 12px; border-radius: 999px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; background: var(--gold-tint); color: var(--gold-dark); }
.clock .status.is-open { background: rgba(31, 122, 92, 0.12); color: var(--success); }
.mapcard {
  position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; display: grid; place-items: center; text-align: center; gap: 12px; padding: 24px;
  background: var(--bg-alt) radial-gradient(circle at 60% 40%, rgba(201, 162, 39, 0.18), transparent 55%);
  border: 1px solid var(--line);
}
.mapcard::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(201, 162, 39, 0.10) 1px, transparent 1px), linear-gradient(90deg, rgba(201, 162, 39, 0.10) 1px, transparent 1px); background-size: 28px 28px; }
.mapcard > * { position: relative; }
.mapcard b { font-family: var(--font-display); font-weight: 600; color: var(--ink); }
@media (max-width: 1023px) { .contact__grid { grid-template-columns: 1fr; } .contact__info { padding-top: 0; } .form__row { grid-template-columns: 1fr; } .form { padding: 22px; } }

/* ---- Footer ------------------------------------------------------------ */
.footer { position: relative; background: var(--ink); color: var(--ink-on-dark); padding: clamp(110px, 12vw, 160px) 0 40px; overflow: hidden; }
.footer::before { content: ""; position: absolute; left: -10%; right: -10%; top: -1px; height: clamp(60px, 8vw, 110px); background: var(--surface); border-radius: 0 0 50% 50% / 0 0 100% 100%; }
.footer::after { content: ""; position: absolute; left: -10%; right: -10%; top: calc(clamp(60px, 8vw, 110px) - 2px); height: 2px; background: var(--gold-brushed); border-radius: 0 0 50% 50% / 0 0 100% 100%; opacity: 0.9; }
.footer { padding-top: clamp(84px, 9vw, 116px); padding-bottom: clamp(36px, 4vw, 56px); }
.footer__grid { position: relative; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer__copy { color: var(--muted); font-size: 13px; padding-top: 10px; }
.footer__brand { display: grid; gap: 18px; align-content: start; }
.footer__brand img { width: 132px; height: auto; }
.footer__brand p { max-width: 36ch; font-size: 15px; }
.footer h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 18px; font-weight: 500; }
.footer__col ul { display: grid; gap: 10px; }
.footer__col a { color: var(--ink-on-dark); font-size: 15px; transition: color 0.25s; }
.footer__col a:hover { color: #fff; }
.footer__col button { color: var(--ink-on-dark); font-size: 15px; padding: 0; text-align: left; transition: color 0.25s; }
.footer__col button:hover { color: #fff; }
.footer__logos { display: flex; flex-wrap: wrap; gap: 18px 22px; align-items: center; padding: 34px 0; }
.footer__logos img { height: 22px; width: auto; max-width: 110px; filter: grayscale(1) brightness(10); opacity: 0.55; }
.footer__word { font-family: var(--font-display); font-weight: 800; font-size: clamp(3rem, 12.5vw, 12rem); line-height: 0.8; letter-spacing: -0.03em; color: transparent; -webkit-text-stroke: 1px rgba(201, 162, 39, 0.65); white-space: nowrap; margin: 20px -0.02em -0.22em; user-select: none; }
.footer__word span { background: var(--gold-brushed); -webkit-background-clip: text; background-clip: text; -webkit-text-stroke: 0; color: transparent; display: inline-block; clip-path: inset(0 100% 0 0); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 28px; margin-top: 10px; font-size: 13px; color: var(--muted); }
.footer__bottom a { color: var(--ink-on-dark); }
.footer__bottom a:hover { color: #fff; }
@media (max-width: 1023px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 599px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---- États d'animation (uniquement quand JS + GSAP sont prêts) ------- */
.js .reveal { opacity: 0; transform: translateY(24px); }
.js .reveal.kicker .kicker__line { transform: scaleX(0); }
.js .reveal-clip { clip-path: inset(0 0 100% 0); }
.js .hero__title .line > span { transform: translateY(110%); }
.js .hero__content .kicker, .js .hero__lead, .js .hero__doors .door, .js .hero__foot { opacity: 0; }
.js .hero__doors .door { transform: translateY(16px); }
.js .hero__band { transform: scaleY(0); }
.js .stat b, .js .stat span { opacity: 0; }

/* ---- Sens de lecture RTL (arabe) + typographie arabe ------------------ */
[dir="rtl"] .gold-rail { right: auto; left: 0; }
[dir="rtl"] .gold-rail__num { right: auto; left: 14px; }
[dir="rtl"] .preloader__count { right: auto; left: clamp(24px, 4vw, 48px); direction: ltr; }
[dir="rtl"] .hero__band { right: auto; left: 0; }
[dir="rtl"] .hero__band-fill { transform: scaleX(-1); }
[dir="rtl"] .kicker__line, [dir="rtl"] .stat i, [dir="rtl"] .process__line i, [dir="rtl"] .cat::before, [dir="rtl"] .brand::before, [dir="rtl"] .nav__links a::after, [dir="rtl"] .field::after { transform-origin: right; }
[dir="rtl"] .brand__arrow svg, [dir="rtl"] .nav__cta svg { transform: scaleX(-1); }
[dir="rtl"] .brand:hover .brand__arrow { transform: translate(-3px, -3px); }
[dir="rtl"] .fiche__foot .fiche__arrow { display: inline-block; transform: scaleX(-1); }
[dir="rtl"] .map svg text { direction: rtl; }
[dir="rtl"] .hero__stats b, [dir="rtl"] .stat b, [dir="rtl"] .fact b, [dir="rtl"] .clock b, [dir="rtl"] .why__big, [dir="rtl"] .delays td:last-child { direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] .marquee, [dir="rtl"] .hero__band-svg { direction: ltr; }
[dir="rtl"] .footer::before, [dir="rtl"] .footer::after { transform: none; }
[lang="ar"] { --font-display: "Cairo", "Sora", "Segoe UI", system-ui, sans-serif; --font-body: "Cairo", "Inter", "Segoe UI", system-ui, sans-serif; }
[lang="ar"] .mono, [lang="ar"] .kicker, [lang="ar"] .chip, [lang="ar"] .filter, [lang="ar"] .certs li, [lang="ar"] .step__dot, [lang="ar"] .field label, [lang="ar"] .form__status, [lang="ar"] .brand__meta, [lang="ar"] .delays th, [lang="ar"] .footer h4, [lang="ar"] .cat__num, [lang="ar"] .gallery figcaption { font-family: "Cairo", "Segoe UI", system-ui, sans-serif; letter-spacing: 0; text-transform: none; font-size: 13px; }
[lang="ar"] .hero__title, [lang="ar"] .h2, [lang="ar"] .about__manifesto, [lang="ar"] .fiche__tagline, [lang="ar"] .supplier__text h3 { letter-spacing: 0; line-height: 1.3; text-wrap: balance; }
[lang="ar"] .hero__title { font-size: clamp(1.9rem, 3.1vw, 3rem); }
[lang="ar"] .hero__title .line { padding-bottom: 0.18em; }
[lang="ar"] body, [lang="ar"] .lead, [lang="ar"] .hero__lead { line-height: 1.85; }
[lang="ar"] .stat b, [lang="ar"] .hero__stats b, [lang="ar"] .fact b, [lang="ar"] .why__big, [lang="ar"] .clock b, [lang="ar"] .preloader__count { font-family: "Sora", system-ui, sans-serif; }
[lang="ar"] .brand__meta b, [lang="ar"] .lang button { font-family: var(--font-mono); }

@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .reveal.kicker .kicker__line, .js .reveal-clip, .js .hero__title .line > span, .js .hero__content .kicker, .js .hero__lead, .js .hero__doors .door, .js .hero__foot, .js .hero__band, .js .stat b, .js .stat span, .js .why__item, .js .pstep { opacity: 1; transform: none; clip-path: none; }
  .marquee__track, .hero__scroll-line i, .gold-rail__bar::after { animation: none; }
  .preloader { display: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Pages légales (tools/build-legal.js) ---------- */
.legal-page { background: var(--bg); }
.lnav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 76px; padding: 0 var(--gutter); background: rgba(251, 250, 247, 0.9); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.lnav__brand img { height: 46px; width: auto; display: block; }
.lnav__right { display: flex; align-items: center; gap: 14px; }
.lang--links a { padding: 6px 10px; border-radius: 999px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; color: var(--muted); transition: background-color 0.25s, color 0.25s; }
.lang--links a:hover { color: var(--ink); }
.lang--links a.is-active { background: var(--ink); color: #fff; }
.lnav__back { padding: 10px 16px; font-size: 13px; }
.legal { padding: clamp(44px, 5vw, 72px) 0 clamp(60px, 6vw, 90px); }
.legal__wrap { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.legal__side { position: sticky; top: 100px; display: grid; gap: 8px; }
.legal__sidetitle { color: var(--gold-dark); margin-top: 18px; }
.legal__sidetitle:first-child { margin-top: 0; }
.legal__toc { list-style: none; display: grid; gap: 4px; padding: 0; }
.legal__toc a { display: flex; gap: 12px; align-items: baseline; font-size: 14px; color: var(--muted); padding: 4px 0 4px 14px; padding-inline-start: 14px; padding-inline-end: 0; border-inline-start: 1px solid var(--line); transition: color 0.25s, border-color 0.25s; }
.legal__toc a .mono { color: var(--gold-dark); font-size: 11px; }
.legal__toc a:hover { color: var(--ink); border-color: var(--gold); }
.legal__other { list-style: none; padding: 0; }
.legal__other a { font-size: 14px; color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.legal__body { max-width: 72ch; }
.legal__body h1 { font-family: var(--font-display); font-size: clamp(34px, 4.2vw, 54px); line-height: 1.05; letter-spacing: -0.02em; margin: 14px 0 12px; }
.legal__meta { color: var(--muted); margin-bottom: 26px; }
.legal__intro { font-size: 17px; line-height: 1.65; color: #2a2a2a; padding: 18px 22px; border-inline-start: 2px solid var(--gold); background: var(--gold-tint); border-radius: 0 12px 12px 0; margin-bottom: 40px; }
[dir="rtl"] .legal__intro { border-radius: 12px 0 0 12px; }
.legal__sec { padding: 26px 0; border-top: 1px solid var(--line); scroll-margin-top: 100px; }
.legal__sec h2 { display: flex; align-items: baseline; gap: 14px; font-family: var(--font-display); font-size: clamp(20px, 2vw, 24px); letter-spacing: -0.01em; margin-bottom: 14px; }
.legal__num { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; color: var(--gold-dark); }
.legal__sec p, .legal__sec li { font-size: 15.5px; line-height: 1.7; color: #2a2a2a; }
.legal__sec p + p, .legal__sec ul + p, .legal__sec p + ul { margin-top: 12px; }
.legal__sec ul { list-style: disc; padding-inline-start: 20px; display: grid; gap: 8px; }
.legal__sec li::marker { color: var(--gold); }
.legal__sec a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.legal__sec a:hover { color: var(--gold-dark); }
.legal__sec code { font-family: var(--font-mono); font-size: 13px; background: var(--bg-alt); padding: 2px 6px; border-radius: 6px; }
.legal__sec strong { color: var(--ink); font-weight: 600; }
.lfoot { border-top: 1px solid var(--line); padding: 22px 0; font-size: 13px; color: var(--muted); }
.lfoot__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.lfoot a { color: var(--muted); }
.lfoot a:hover, .lfoot a[aria-current] { color: var(--ink); }
[lang="ar"] .legal__body h1, [lang="ar"] .legal__sec h2 { letter-spacing: 0; line-height: 1.3; }
.footer__legal { display: flex; gap: 14px; flex-wrap: wrap; }
.footer__col .footer__legal a { font-size: 13px; color: var(--muted); }
.footer__col .footer__legal a:hover { color: #fff; }
.form__consent { color: var(--muted); font-size: 12.5px; line-height: 1.5; margin-top: -6px; }
.form__consent a { color: var(--gold-dark); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 900px) {
  .legal__wrap { grid-template-columns: 1fr; }
  .legal__side { position: static; }
  .legal__toc, .legal__sidetitle:first-child { display: none; }
  .lnav__back { display: none; }
  .legal__body h1 { font-size: clamp(30px, 8vw, 40px); }
}

/* ---------- Pages marques (tools/build-brands.js) + liens vers ces pages ---------- */
.stage__more { display: inline-block; margin-top: 12px; font-size: 13px; color: var(--muted); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; transition: color 0.25s; }
.stage__more:hover { color: var(--gold-dark); }
.fiche__page { font-size: 13px; color: var(--muted); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; text-align: center; transition: color 0.25s; }
.fiche__page:hover { color: var(--gold-dark); }
.bp { padding: clamp(24px, 3.5vw, 44px) 0 clamp(50px, 6vw, 80px); }
.bp__crumbs { color: var(--muted); display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.bp__crumbs a { color: var(--muted); }
.bp__crumbs a:hover { color: var(--ink); }
.bp__crumbs [aria-current] { color: var(--gold-dark); }
.bp__head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px 36px; align-items: center; margin-bottom: clamp(28px, 4vw, 44px); }
.bp__logo { width: 190px; height: 112px; display: flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px; overflow: hidden; }
.bp__logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.bp__head h1 { font-family: var(--font-display); font-size: clamp(30px, 4vw, 52px); line-height: 1.05; letter-spacing: -0.02em; margin: 10px 0 8px; }
.bp__meta { color: var(--muted); }
.bp__grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(28px, 4vw, 64px); align-items: start; }
.bp__main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; min-width: 0; }
.bp__main > * { min-width: 0; max-width: 100%; }
.bp__main .fiche__hero img, .bp__main .gallery img { display: block; }
.bp__source { color: var(--muted); }
.bp__source a { color: var(--ink); }
.bp__side { position: sticky; top: 96px; display: grid; gap: 16px; }
.bp__card { padding: 22px; border-radius: 18px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.7); display: grid; gap: 12px; }
.bp__card h3 { font-family: var(--font-display); font-size: 1.15rem; line-height: 1.2; }
.bp__card h4 { color: var(--gold-dark); }
.bp__card p { color: var(--muted); font-size: 14px; line-height: 1.55; }
.bp__card .btn { justify-self: start; }
.bp__card .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.bp__link { font-size: 13.5px; color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.bp__link:hover { color: var(--gold-dark); }
.bp__card--dark { background: var(--ink); border-color: transparent; }
.bp__card--dark h3 { color: #fff; }
.bp__card--dark p { color: rgba(255, 255, 255, 0.72); }
.bp__card--dark .bp__link { color: #fff; }
.bp__others { display: grid; }
.bp__others a { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 14px; }
.bp__others a:last-child { border-bottom: 0; }
.bp__others a:hover { color: var(--gold-dark); }
.bp__others .mono { color: var(--muted); }
.bp__pager { display: flex; justify-content: space-between; gap: 16px; margin-top: clamp(36px, 5vw, 60px); padding-top: 22px; border-top: 1px solid var(--line); }
.bp__pager a { display: inline-flex; flex-direction: column; gap: 4px; font-family: var(--font-display); font-weight: 600; color: var(--ink); }
.bp__pager a[rel="next"] { text-align: end; align-items: flex-end; }
.bp__pager a:hover { color: var(--gold-dark); }
.bp__pager a span { color: var(--muted); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; }
@media (max-width: 1023px) { .bp__grid { grid-template-columns: minmax(0, 1fr); } .bp__side { position: static; } }
@media (max-width: 599px) {
  .bp__head { grid-template-columns: 1fr; gap: 16px; }
  .bp__logo { width: 150px; height: 88px; padding: 12px; }
  .bp__main { gap: 32px; }
  .bp__card { padding: 18px; }
  .brandpage .lnav__back { display: none; }
}

/* ---------- Consentement cookies (js/consent.js) ---------- */
.consent { position: fixed; z-index: 90; inset-inline: 16px; bottom: 16px; margin-inline-start: auto; max-width: 540px; padding: 16px 18px; border-radius: 16px; background: rgba(251, 250, 247, 0.97); backdrop-filter: blur(12px); border: 1px solid var(--line); box-shadow: 0 18px 50px rgba(14, 14, 14, 0.14); display: grid; gap: 12px; font-size: 13.5px; line-height: 1.5; color: #2a2a2a; }
.consent[hidden] { display: none !important; }
.consent a { color: var(--gold-dark); text-decoration: underline; text-underline-offset: 3px; }
.consent__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.consent .btn { padding: 9px 16px; font-size: 13px; }
@media (min-width: 700px) { .consent { inset-inline-start: auto; inset-inline-end: 24px; bottom: 24px; } }
.footer__col .footer__legal button { font-size: 13px; color: var(--muted); }
.footer__col .footer__legal button:hover { color: #fff; }
button.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; cursor: pointer; }
button.linklike:hover { color: var(--gold-dark); }
