/* =========================================================
   MADEX Events · feuille de style
   Typo : Playfair Display (titres) · Inter (texte) · Zilla Slab (logo)
   Direction : sombre, cinématique, rouge MADEX, or pour la distinction
   ========================================================= */

:root {
  --bg: #0b0b0d;
  --bg-2: #121215;
  --surface: #18181c;
  --line: rgba(255, 255, 255, .12);
  --line-strong: rgba(255, 255, 255, .24);
  --text: #f5f3ef;
  --muted: #a6a6ae;
  --paper: #f4f1ec;
  --ink: #121316;
  --ink-muted: #55575e;
  --red: #c60e0e;
  --red-dark: #a10b0b;
  --red-bright: #f0443a;
  --gold: #d9b26f;

  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-brand: 'Zilla Slab', Rockwell, Georgia, serif;

  --container: 1320px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(88px, 11vw, 160px);
  --header-h: 76px;
  --radius: 6px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.65;
  overflow-x: hidden; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, video, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.04; margin: 0; letter-spacing: -.015em; }
h2 { font-size: clamp(2.3rem, 5vw, 4.4rem); text-wrap: balance; }
h3 { font-size: 1.4rem; }
h1 em, h2 em, .footer-big em { font-style: italic; font-weight: 500; color: var(--red-bright); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--red-bright); outline-offset: 3px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--red); color: #fff; padding: 10px 16px; text-decoration: none; }
.skip-link:focus { top: 12px; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

.kicker, .signature, .tag, .footer-title, .metiers-title, .clients-title {
  font-family: var(--font-body); font-size: .78rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
}
.kicker { display: flex; align-items: center; gap: 12px; color: var(--muted); }
.kicker::before { content: ''; width: 28px; height: 1px; background: var(--red-bright); flex-shrink: 0; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px; padding: 0 1.6em; border: 1px solid transparent; border-radius: 999px;
  font-family: var(--font-body); font-weight: 600; font-size: .98rem; letter-spacing: .01em;
  text-decoration: none; white-space: nowrap;
  transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.btn svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); }
.btn-ghost { background: rgba(255, 255, 255, .06); border-color: var(--line-strong); color: #fff; backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .12); }
.btn-ghost svg { width: 16px; height: 16px; }
.btn-ghost:hover svg { transform: none; }
.btn-note { font-weight: 500; opacity: .65; font-size: .875rem; }
.btn-sm { min-height: 42px; padding: 0 1.2em; font-size: .9rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .6; cursor: progress; }

/* ---------- En-tête ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  transition: background-color .35s var(--ease), transform .45s var(--ease), border-color .35s;
  border-bottom: 1px solid transparent;
}
.site-header.is-solid { background: rgba(11, 11, 13, .94); border-bottom-color: var(--line); backdrop-filter: saturate(140%) blur(10px); }
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.brand img { width: 50px; height: auto; }
.brand-name { font-family: var(--font-brand); font-weight: 700; font-size: 1.12rem; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.brand-name span { color: var(--muted); }
.nav { display: flex; align-items: center; gap: 28px; }
.nav ul { display: flex; gap: 26px; }
.nav ul a { position: relative; text-decoration: none; font-size: .95rem; font-weight: 500; padding: 8px 0; color: rgba(255, 255, 255, .86); transition: color .2s; white-space: nowrap; }
.nav ul a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--red-bright); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.nav ul a:hover { color: #fff; }
.nav ul a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-lang { font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-decoration: none; padding: 6px 10px; border: 1px solid var(--line-strong); border-radius: 999px; }
.nav-lang:hover { border-color: #fff; }
.menu-toggle { display: none; width: 48px; height: 48px; border: 1px solid var(--line-strong); border-radius: 50%; background: transparent; position: relative; }
.menu-toggle span { position: absolute; left: 14px; right: 14px; height: 2px; background: #fff; transition: transform .3s var(--ease), top .3s var(--ease); }
.menu-toggle span:first-child { top: 19px; }
.menu-toggle span:last-child { top: 27px; }
.menu-toggle[aria-expanded="true"] span:first-child { top: 23px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { top: 23px; transform: rotate(-45deg); }
@media (min-width: 1024px) and (max-width: 1239px) {
  .nav, .nav ul { gap: 18px; }
  .brand-name { font-size: 1rem; }
}
@media (max-width: 1023px) {
  .menu-toggle { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto; flex-direction: column; align-items: stretch; gap: 20px;
    padding: 24px var(--gutter) 32px; background: rgba(11, 11, 13, .98); border-bottom: 1px solid var(--line);
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s .3s;
  }
  .nav.is-open { opacity: 1; transform: none; visibility: visible; transition: opacity .3s var(--ease), transform .3s var(--ease); }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { display: block; padding: 14px 0; font-family: var(--font-display); font-size: 1.6rem; border-bottom: 1px solid var(--line); }
  .nav ul a::after { display: none; }
  .nav-lang { align-self: flex-start; }
  .nav .btn { width: 100%; }
}
@media (max-width: 400px) {
  .brand-name { font-size: .95rem; letter-spacing: .1em; }
  .brand img { width: 42px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; padding: calc(var(--header-h) + 96px) 0 clamp(56px, 9vh, 104px); overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -1; background: #000 url('/assets/video/madex-hero-poster.jpg') center / cover no-repeat; }
.hero-video { width: 100%; height: 100%; object-fit: cover; }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(11, 11, 13, 1) 0%, rgba(11, 11, 13, .82) 32%, rgba(11, 11, 13, .5) 64%, rgba(11, 11, 13, .62) 100%),
    linear-gradient(to right, rgba(11, 11, 13, .6), transparent 72%);
}
.hero-content { position: relative; }
.signature { display: inline-flex; align-items: center; gap: 14px; color: rgba(255, 255, 255, .8); }
.signature::before, .signature::after { content: ''; width: 32px; height: 1px; background: var(--red-bright); }
.hero-title { margin: 0; font-size: clamp(3rem, 8.6vw, 8.4rem); font-weight: 500; line-height: .98; letter-spacing: -.025em; }
.hero-title .signature { display: flex; flex-wrap: wrap; row-gap: 6px; margin-bottom: 24px; line-height: 1.5; }
.sig-sep { width: 5px; height: 5px; border-radius: 50%; background: var(--red-bright); }
@media (max-width: 599px) {
  .hero-title .signature::after, .hero-title .sig-sep { display: none; }
  .hero-title .signature { flex-wrap: wrap; }
  .hero-title .signature > span:first-child { flex: 1 1 0; min-width: 0; }
  .hero-title .signature > span[lang] { flex-basis: 100%; padding-left: 46px; }
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .08em; }
.hero-title .line > span { display: inline-block; }
.hero-bottom { margin-top: clamp(28px, 4vw, 48px); display: grid; gap: 28px; align-items: end; }
.hero-lead { max-width: 34rem; font-size: clamp(1.05rem, 1.4vw, 1.22rem); color: rgba(255, 255, 255, .86); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 1024px) { .hero-bottom { grid-template-columns: 1fr auto; } }

.award-chip {
  position: absolute; right: var(--gutter); top: calc(var(--header-h) + 28px);
  display: inline-flex; align-items: center; gap: 12px; padding: 10px 18px;
  border: 1px solid rgba(217, 178, 111, .45); border-radius: 999px;
  background: rgba(11, 11, 13, .45); backdrop-filter: blur(8px);
  color: var(--gold); text-decoration: none; line-height: 1.2; text-align: center;
  transition: border-color .25s, background-color .25s;
}
.award-chip:hover { border-color: var(--gold); background: rgba(217, 178, 111, .12); }
.award-chip > span { display: grid; }
.award-chip strong { color: #fff; font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: 1.05rem; }
.award-chip strong + span { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; }
.award-chip .laurel { width: 14px; height: 30px; flex-shrink: 0; }
.laurel-r { transform: scaleX(-1); }
@media (max-width: 599px) {
  .award-chip { left: var(--gutter); right: auto; top: calc(var(--header-h) + 16px); padding: 8px 14px; }
  .award-chip strong { font-size: .95rem; }
}
.video-toggle {
  position: absolute; right: var(--gutter); bottom: 20px; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: rgba(11, 11, 13, .4); backdrop-filter: blur(6px); display: grid; place-items: center;
}
.video-toggle svg { width: 16px; height: 16px; }
.video-toggle .i-play { display: none; }
.video-toggle[aria-pressed="true"] .i-play { display: block; }
.video-toggle[aria-pressed="true"] .i-pause { display: none; }

@media (prefers-reduced-motion: no-preference) {
  .js .hero-title .line > span { transform: translateY(105%); animation: line-up 1.1s var(--ease-out) forwards; }
  .js .hero-title .line:nth-child(3) > span { animation-delay: .14s; }
  .js .hero-title .line:nth-child(4) > span { animation-delay: .28s; }
  .js .signature, .js .hero-bottom, .js .award-chip { opacity: 0; animation: fade-up .9s var(--ease-out) forwards; }
  .js .hero-bottom { animation-delay: .55s; }
  .js .award-chip { animation-delay: .8s; }
  .js .hero-media { animation: hero-zoom 2.4s var(--ease-out) both; }
}
@keyframes line-up { to { transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes hero-zoom { from { transform: scale(1.08); } to { transform: none; } }

/* ---------- Clients ---------- */
.clients { padding: clamp(48px, 6vw, 72px) 0; border-bottom: 1px solid var(--line); }
.clients-head { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 32px; position: relative; }
.clients-title { color: var(--muted); }
.marquee-pause { position: absolute; right: var(--gutter); background: none; border: 0; padding: 6px 0; font-size: .78rem; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.marquee-pause:hover { color: var(--text); }
@media (max-width: 699px) { .marquee-pause { position: static; } .clients-head { flex-direction: column; gap: 6px; } }
.logo-marquee { display: flex; overflow: hidden; mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent); }
.logo-track { display: flex; align-items: center; gap: clamp(36px, 5vw, 64px); padding-right: clamp(36px, 5vw, 64px); flex-shrink: 0; }
.logo-track li { flex-shrink: 0; }
.logo-track img { width: clamp(64px, 7vw, 88px); height: auto; filter: grayscale(1); opacity: .72; transition: filter .4s, opacity .4s, transform .4s var(--ease); }
.logo-track img:hover { filter: none; opacity: 1; transform: scale(1.06); }
.client-name { font-family: var(--font-display); font-style: italic; font-size: clamp(1.4rem, 2.4vw, 2rem); color: rgba(245, 243, 239, .6); white-space: nowrap; transition: color .3s; }
.client-name:hover { color: #fff; }
@media (prefers-reduced-motion: no-preference) {
  .logo-track { animation: marquee 42s linear infinite; }
  .logo-marquee:hover .logo-track, .logo-marquee.is-paused .logo-track { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) {
  .logo-marquee { flex-wrap: wrap; justify-content: center; mask-image: none; -webkit-mask-image: none; }
  .logo-track { flex-wrap: wrap; justify-content: center; padding: 0 var(--gutter); }
  .logo-track[aria-hidden="true"] { display: none; }
  .marquee-pause { display: none; }
}
@keyframes marquee { to { transform: translateX(-100%); } }

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; position: relative; }
.section-ink2 { background: var(--bg-2); }
.section-paper { background: var(--paper); color: var(--ink); }
.section-paper .kicker { color: var(--ink-muted); }
.section-paper h2 em { color: var(--red); }
.section-head { max-width: 920px; margin-bottom: clamp(48px, 6vw, 80px); }
.section-head h2 { margin-top: 18px; }
.section-intro { margin-top: 22px; max-width: 42rem; color: var(--muted); font-size: 1.125rem; }
.section-head-split { max-width: none; display: grid; gap: 28px; align-items: end; }
.section-head-aside p { color: var(--muted); max-width: 30rem; }
@media (min-width: 1024px) { .section-head-split { grid-template-columns: 1.4fr 1fr; } }
.tag { display: inline-block; font-size: .72rem; color: var(--red-bright); }
.tag-gold { color: var(--gold); }
.fine { font-size: .85rem; color: var(--muted); margin-top: 12px; }

/* ---------- Prix ---------- */
.award { overflow: hidden; }
.award::before {
  content: ''; position: absolute; width: 900px; height: 900px; right: -300px; top: -200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 178, 111, .10), transparent 65%); pointer-events: none;
}
.award-grid { display: grid; gap: clamp(48px, 6vw, 96px); align-items: center; }
@media (min-width: 1024px) { .award-grid { grid-template-columns: 5fr 7fr; } }
.laurel-badge { display: inline-flex; align-items: center; gap: 14px; color: var(--gold); margin-bottom: 28px; }
.laurel-badge .laurel { width: 26px; height: 52px; }
.laurel-badge p { text-align: center; line-height: 1.2; }
.laurel-badge strong { display: block; font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: 1.5rem; color: #fff; }
.laurel-badge span { font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; }
.award-text h2 { font-size: clamp(2.2rem, 4vw, 3.7rem); }
.award-text h2 em { color: var(--gold); }
.award-text > p { margin-top: 24px; color: var(--muted); font-size: 1.125rem; max-width: 34rem; }
.meta-list { margin: 32px 0 0; border-top: 1px solid var(--line); }
.meta-list div { display: grid; grid-template-columns: 9rem 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.meta-list dt { font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); padding-top: .25em; }
.meta-list dd { margin: 0; }
@media (max-width: 520px) { .meta-list div { grid-template-columns: 1fr; gap: 2px; } }
.award-media { position: relative; margin: 0 0 56px; }
.award-main { position: relative; display: block; overflow: hidden; border-radius: var(--radius); aspect-ratio: 16 / 10; background: var(--surface); }
.award-main img { position: absolute; left: 0; top: -7.5%; width: 100%; height: 115%; object-fit: cover; transform: translateY(var(--py, 0)); }
.award-inset {
  position: absolute; left: -6%; bottom: -56px; width: 46%; overflow: hidden; border-radius: var(--radius);
  border: 6px solid var(--bg); box-shadow: 0 30px 60px rgba(0, 0, 0, .5); aspect-ratio: 16 / 9;
}
.award-inset img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.award-inset:hover img { transform: scale(1.05); }
.award-media figcaption { position: absolute; right: 0; bottom: -40px; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 1023px) {
  .award-inset { left: auto; right: 12px; width: 52%; bottom: -40px; border-width: 4px; }
  .award-media figcaption { right: auto; left: 0; }
}

/* ---------- Projets (carrousel) ---------- */
.carousel {
  display: flex; gap: clamp(16px, 2.4vw, 32px); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 0 var(--gutter) 8px; scroll-padding-inline: var(--gutter); scrollbar-width: none; cursor: grab;
  margin-left: max(0px, calc((100vw - var(--container)) / 2));
}
.carousel::-webkit-scrollbar { display: none; }
.carousel.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.carousel.is-dragging a { pointer-events: none; }
.carousel:focus-visible { outline-offset: -2px; }
.concept-card { flex: 0 0 min(84vw, 680px); scroll-snap-align: start; display: flex; flex-direction: column; }
.concept-media, .compare { position: relative; display: block; overflow: hidden; border-radius: var(--radius); aspect-ratio: 16 / 10; background: var(--surface); }
.concept-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.concept-media:hover img { transform: scale(1.04); }
.concept-thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.concept-thumbs a { display: block; overflow: hidden; border-radius: var(--radius); aspect-ratio: 16 / 7; }
.concept-thumbs img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), opacity .3s; opacity: .85; }
.concept-thumbs a:hover img { transform: scale(1.05); opacity: 1; }
.concept-body { padding-top: 22px; max-width: 40rem; }
.concept-body h3 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); margin-top: 8px; }
.concept-meta { margin-top: 6px; color: var(--muted); font-size: .92rem; }
.concept-body > p:not(.tag):not(.fine):not(.concept-meta) { margin-top: 12px; color: rgba(245, 243, 239, .84); }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .6s var(--ease), transform 1.2s var(--ease); }
.compare-b { opacity: 0; transform: scale(1.04); }
.compare.is-b .compare-a { opacity: 0; transform: scale(1.04); }
.compare.is-b .compare-b { opacity: 1; transform: none; }
.compare-switch { position: absolute; left: 14px; bottom: 14px; display: flex; padding: 4px; gap: 4px; background: rgba(11, 11, 13, .72); backdrop-filter: blur(8px); border-radius: 999px; border: 1px solid var(--line); }
.compare-switch button { min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; font-size: .85rem; font-weight: 600; color: rgba(255, 255, 255, .75); transition: background-color .25s, color .25s; }
.compare-switch button[aria-pressed="true"] { background: #fff; color: var(--ink); }
.carousel-ui { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 24px; max-width: 30rem; }
.carousel-count { font-family: var(--font-display); font-style: italic; font-size: 1.3rem; color: var(--muted); }
.carousel-count span:first-child { color: var(--text); }
.carousel-nav { display: flex; gap: 10px; }
.round-btn { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-strong); background: transparent; display: grid; place-items: center; transition: background-color .25s, border-color .25s, opacity .25s; }
.round-btn svg { width: 20px; height: 20px; }
.round-btn:hover:not(:disabled) { background: #fff; color: var(--ink); border-color: #fff; }
.round-btn:disabled { opacity: .35; cursor: default; }
.carousel-progress { margin-top: 36px; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.carousel-progress span { display: block; height: 100%; width: 100%; background: var(--red-bright); transform-origin: left; transform: scaleX(var(--p, .14)); transition: transform .3s var(--ease); }

/* ---------- Maquette 3D ---------- */
.s3d { position: relative; padding: var(--section) 0 0; background: radial-gradient(ellipse at 80% 30%, rgba(198, 14, 14, .10), transparent 50%), var(--bg); }
.s3d-head { margin-bottom: clamp(32px, 4vw, 56px); }
.s3d-layout { display: grid; position: relative; }
@media (min-width: 1024px) {
  .s3d-layout { grid-template-columns: minmax(300px, .78fr) 1.5fr; gap: clamp(32px, 4vw, 64px); }
  .s3d-sticky { grid-column: 2; grid-row: 1; position: sticky; top: calc(var(--header-h) + 20px); align-self: start; height: calc(100vh - var(--header-h) - 40px); }
  .s3d-steps { grid-column: 1; grid-row: 1; }
  .s3d-step { min-height: 88vh; display: flex; flex-direction: column; justify-content: center; }
  .s3d-step:first-child { min-height: 70vh; justify-content: flex-start; padding-top: 8vh; }
  .s3d-step:last-child { min-height: 92vh; }
}
@media (max-width: 1023px) {
  .s3d-sticky { position: sticky; top: 8px; z-index: 2; height: min(56vh, 520px); }
  .s3d-step { min-height: 72vh; padding: 28px 4px; }
  .s3d-step:last-child { min-height: 60vh; }
}
.s3d-stage {
  position: relative; margin: 0; height: 100%; border-radius: 12px; overflow: hidden; isolation: isolate;
  border: 1px solid var(--line); background: radial-gradient(ellipse at 50% 30%, #222228, #0b0b0d 78%);
  touch-action: pan-y; box-shadow: 0 40px 80px rgba(0, 0, 0, .45);
}
.s3d-stage::before {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 1s var(--ease);
  background:
    linear-gradient(rgba(60, 50, 40, .05) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(90deg, rgba(60, 50, 40, .05) 1px, transparent 1px) 0 0 / 22px 22px,
    radial-gradient(ellipse at 50% 40%, #f7f4ee, #e9e3d7);
}
.s3d-stage.is-paper::before { opacity: 1; }
.s3d-stage[data-step="4"] { background: radial-gradient(ellipse at 50% 30%, #17171c, #050506 78%); }
.stand3d-canvas { position: absolute; inset: 0; cursor: grab; }
.stand3d-canvas:active { cursor: grabbing; }
.stand3d-canvas canvas { width: 100% !important; height: 100% !important; }
.s3d-fallback { display: none; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.no-webgl .s3d-fallback { display: block; }
.no-webgl .s3d-dots, .no-webgl .s3d-hint, .no-webgl .s3d-labels { display: none; }

.s3d-labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.s3d-label {
  position: absolute; left: 0; top: 0; white-space: nowrap; font-size: .72rem; font-weight: 600; letter-spacing: .06em;
  padding: 4px 9px; border-radius: 999px; opacity: 0; transition: opacity .5s var(--ease); will-change: transform;
}
.s3d-label.is-on { opacity: 1; }
.s3d-label.dim { background: #c60e0e; color: #fff; font-family: var(--font-display); font-style: italic; font-size: .85rem; letter-spacing: 0; }
.s3d-label.zone { background: rgba(18, 19, 22, .82); color: #fff; text-transform: uppercase; letter-spacing: .14em; }
.s3d-label.note { background: rgba(255, 255, 255, .92); color: var(--ink); padding-left: 20px; }
.s3d-label.note::before { content: ''; position: absolute; left: 8px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--red); }
.s3d-stage[data-step="4"] .s3d-label.note { background: rgba(18, 18, 22, .85); color: #fff; }
.s3d-label.axis {
  width: 26px; height: 26px; padding: 0; display: grid; place-items: center; border-radius: 50%;
  border: 1.5px solid #4a6386; color: #4a6386; background: #f7f4ee;
  font-family: var(--font-display); font-style: italic; font-size: .9rem; letter-spacing: 0;
}
.s3d-cartouche {
  position: absolute; right: 16px; bottom: 46px; width: 210px; padding: 10px 12px; pointer-events: none;
  border: 1px solid rgba(42, 42, 47, .55); background: rgba(247, 244, 238, .92); color: #2a2a2f;
  font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; opacity: 0; transform: translateY(8px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.s3d-stage.is-paper .s3d-cartouche { opacity: 1; transform: none; }
.c-brand { font-family: var(--font-brand); font-weight: 700; font-size: .8rem; letter-spacing: .16em; padding-bottom: 6px; border-bottom: 1px solid rgba(42, 42, 47, .4); }
.s3d-cartouche dl { margin: 6px 0 0; display: grid; gap: 3px; }
.s3d-cartouche dl div { display: flex; justify-content: space-between; gap: 10px; }
.s3d-cartouche dt { opacity: .6; }
.s3d-cartouche dd { margin: 0; font-weight: 600; }
.c-scale { width: 124px; height: 22px; margin-top: 8px; color: #2a2a2f; }
@media (max-width: 699px) { .s3d-cartouche, .s3d-label.minor { display: none; } }

.s3d-hud { position: absolute; left: 18px; top: 16px; right: 18px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; pointer-events: none; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; transition: color .8s var(--ease); color: rgba(255, 255, 255, .78); }
.s3d-hud-step span:first-child { color: var(--red-bright); font-weight: 700; }
.s3d-hud-info { color: inherit; opacity: .75; }
.s3d-stage.is-paper .s3d-hud, .s3d-stage.is-paper .s3d-hint { color: rgba(18, 19, 22, .75); }
.s3d-hint { position: absolute; right: 18px; bottom: 22px; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .6); pointer-events: none; transition: color .8s; }
.s3d-dots { position: absolute; left: 14px; bottom: 14px; display: flex; gap: 2px; }
.s3d-dots button { width: 32px; height: 32px; border: 0; background: transparent; position: relative; }
.s3d-dots button::after { content: ''; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: rgba(255, 255, 255, .35); transition: transform .3s, background-color .3s; }
.s3d-stage.is-paper .s3d-dots button::after { background: rgba(18, 19, 22, .25); }
.s3d-dots button[aria-current="step"]::after { background: var(--red-bright) !important; transform: scale(1.4); }
.s3d-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(128, 128, 128, .2); }
.s3d-progress span { display: block; height: 100%; background: var(--red-bright); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform .2s linear; }
@media (max-width: 599px) { .s3d-hint { display: none; } .s3d-hud-info { display: none; } }

.s3d-step { transition: opacity .5s var(--ease); }
@media (min-width: 1024px) { .js .s3d-step:not(.is-active) { opacity: .28; } }
.s3d-step-num { font-family: var(--font-display); font-style: italic; font-size: 3.4rem; line-height: 1; color: var(--red-bright); }
.s3d-step h3 { margin-top: 10px; font-size: clamp(2rem, 3vw, 2.8rem); }
.s3d-step > p { margin-top: 16px; color: rgba(245, 243, 239, .8); font-size: 1.08rem; max-width: 30rem; }
.s3d-specs { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.s3d-specs li { padding: 5px 12px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: .8rem; color: rgba(245, 243, 239, .85); }

.s3d-renders { padding-top: clamp(72px, 9vw, 128px); padding-bottom: var(--section); }
.s3d-renders-head { display: grid; gap: 14px; margin-bottom: 36px; }
@media (min-width: 900px) { .s3d-renders-head { grid-template-columns: 1fr 1fr; align-items: end; } }
.s3d-renders-head h3 { font-size: clamp(2rem, 3.6vw, 3.2rem); }
.s3d-renders-head h3 em { font-style: italic; color: var(--red-bright); }
.s3d-renders-head p { color: var(--muted); max-width: 28rem; }
.renders-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 900px) { .renders-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.renders-grid a { position: relative; display: block; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 3; background: var(--surface); text-decoration: none; }
.renders-grid a::after {
  content: 'Conception 3D'; position: absolute; left: 10px; bottom: 10px; padding: 4px 10px; border-radius: 999px;
  background: rgba(11, 11, 13, .78); backdrop-filter: blur(6px); color: #fff; font-size: .68rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
}
.s3d-renders-head p strong { color: var(--text); font-weight: 600; }
.renders-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter .5s; filter: saturate(.85); }
.renders-grid a:hover img { transform: scale(1.06); filter: none; }

/* ---------- Clés en main ---------- */
.film { position: relative; min-height: min(88vh, 820px); display: flex; align-items: center; overflow: hidden; isolation: isolate; text-align: center; }
.film-bg { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; z-index: -2; transform: translateY(var(--py, 0)); }
.film-shade { position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at center, rgba(11, 11, 13, .7), rgba(11, 11, 13, .94)), linear-gradient(to bottom, transparent 70%, var(--bg)); }
.film-content { display: flex; flex-direction: column; align-items: center; padding-block: var(--section); }
.film-content .kicker { justify-content: center; color: rgba(255, 255, 255, .75); }
.film-content h2 { margin-top: 18px; max-width: 16ch; }
.film-content > p:not(.kicker) { margin-top: 18px; color: rgba(255, 255, 255, .84); max-width: 34rem; }
.play-btn { position: relative; margin-top: 40px; width: 104px; height: 104px; border-radius: 50%; border: 0; background: var(--red); color: #fff; display: grid; place-items: center; transition: transform .35s var(--ease), background-color .25s; }
.play-btn svg { width: 34px; height: 34px; margin-left: 4px; }
.play-btn:hover { transform: scale(1.06); background: var(--red-dark); }
.play-ring { position: absolute; inset: -12px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35); }
@media (prefers-reduced-motion: no-preference) { .play-ring { animation: ring 2.4s var(--ease) infinite; } }
@keyframes ring { 0% { transform: scale(.9); opacity: 1; } 100% { transform: scale(1.35); opacity: 0; } }
.film-duration { margin-top: 18px; font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.turnkey-body { padding-bottom: var(--section); }
.builds { display: grid; gap: clamp(40px, 5vw, 64px) 32px; }
@media (min-width: 900px) {
  .builds { grid-template-columns: 1fr 1fr; }
  .build:nth-child(2) { margin-top: 96px; }
}
.build-media { display: block; overflow: hidden; border-radius: var(--radius); aspect-ratio: 16 / 11; background: var(--surface); }
.build-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.build:hover .build-media img { transform: scale(1.05); }
.build-body { padding-top: 24px; }
.build-body h3 { font-size: clamp(2rem, 3.2vw, 2.8rem); margin-top: 10px; }
.build-meta { color: var(--muted); font-size: .95rem; margin-top: 6px; }
.build-body > p:last-child { margin-top: 14px; max-width: 34rem; color: rgba(245, 243, 239, .84); }
.process { margin-top: clamp(80px, 10vw, 140px); padding-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); display: grid; gap: 36px; }
@media (min-width: 1024px) { .process { grid-template-columns: 1fr 2.4fr; align-items: start; } }
.process-head h3 { font-size: clamp(2rem, 3.2vw, 2.6rem); }
.process-head p { margin-top: 14px; color: var(--muted); }
.process-steps { display: grid; gap: 20px; }
@media (min-width: 640px) { .process-steps { grid-template-columns: repeat(3, 1fr); } }
.process-steps a { display: block; text-decoration: none; }
.process-steps figure { margin: 0; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius); background: #fff; }
.process-steps img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.process-steps a:hover img { transform: scale(1.05); }
.process-steps li:first-child img { object-fit: contain; padding: 6%; }
.process-steps p { margin-top: 14px; font-family: var(--font-display); font-size: 1.15rem; }
.process-steps p span { font-family: var(--font-body); font-size: .8rem; font-weight: 600; color: var(--red-bright); margin-right: .6em; letter-spacing: .1em; }
.process-steps li { position: relative; }
@media (min-width: 640px) {
  .process-steps li:not(:last-child)::after {
    content: ''; position: absolute; top: calc(50% - 22px); right: -14px; width: 8px; height: 8px;
    border-top: 2px solid var(--red-bright); border-right: 2px solid var(--red-bright); transform: rotate(45deg);
  }
}

/* ---------- Expertise ---------- */
.exp-layout { display: grid; gap: 48px; }
@media (min-width: 1024px) { .exp-layout { grid-template-columns: 1.35fr 1fr; align-items: start; } }
.expertise { border-top: 1px solid rgba(18, 19, 22, .16); }
.expertise > li { display: grid; grid-template-columns: 3.4rem 1fr; gap: 6px 20px; padding: clamp(26px, 3vw, 40px) 0; border-bottom: 1px solid rgba(18, 19, 22, .16); outline-offset: -2px; cursor: default; }
.exp-num { font-family: var(--font-display); font-style: italic; font-size: 1.4rem; color: var(--ink-muted); transition: color .3s; line-height: 1.2; }
.exp-main h3 { display: flex; align-items: center; gap: 14px; font-size: clamp(1.6rem, 2.6vw, 2.3rem); transition: transform .4s var(--ease), color .3s; }
.exp-main h3 svg { width: 28px; height: 28px; color: var(--red); flex-shrink: 0; }
.exp-main > p { margin-top: 12px; color: var(--ink-muted); max-width: 36rem; }
.expertise > li.is-active .exp-num { color: var(--red); }
.expertise > li.is-active h3 { transform: translateX(8px); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chips li { padding: 4px 12px; border: 1px solid rgba(18, 19, 22, .2); border-radius: 999px; font-size: .8rem; font-weight: 500; }
.exp-thumb { grid-column: 1 / -1; margin-top: 18px; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); }
.exp-panel { display: none; }
@media (min-width: 1024px) {
  .exp-thumb { display: none; }
  .exp-panel { display: block; position: sticky; top: calc(var(--header-h) + 32px); aspect-ratio: 1 / 1; border-radius: var(--radius); overflow: hidden; background: #ddd; }
  .exp-panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity .7s var(--ease), transform 1.4s var(--ease); }
  .exp-panel img.is-active { opacity: 1; transform: none; }
  .exp-panel::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .55), transparent 45%); }
  .exp-panel-num { position: absolute; left: 24px; bottom: 16px; z-index: 1; font-family: var(--font-display); font-style: italic; font-size: 5rem; line-height: 1; color: #fff; }
}

/* ---------- Méthode ---------- */
.steps { display: grid; gap: 0; position: relative; }
@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(5, 1fr); gap: 24px; }
  .steps::before { content: ''; position: absolute; left: 0; right: 0; top: 22px; height: 1px; background: var(--line-strong); }
  .steps::after { content: ''; position: absolute; left: 0; top: 22px; height: 2px; margin-top: -.5px; width: var(--progress, 0%); background: var(--red-bright); transition: width 1.2s var(--ease); }
}
.steps li { position: relative; padding: 0 0 36px 64px; }
@media (min-width: 1024px) { .steps li { padding: 0; } }
.steps li::before {
  content: ''; position: absolute; left: 16px; top: 16px; width: 12px; height: 12px; transform: rotate(45deg);
  background: var(--bg); border: 2px solid var(--line-strong); transition: background-color .4s, border-color .4s; z-index: 1;
}
.steps li:not(:last-child)::after { content: ''; position: absolute; left: 21.5px; top: 34px; bottom: 0; width: 1px; background: var(--line-strong); }
@media (min-width: 1024px) {
  .steps li::before { position: relative; display: block; left: 0; top: 16px; margin-bottom: 40px; }
  .steps li:not(:last-child)::after { display: none; }
}
.steps li.is-active::before { background: var(--red-bright); border-color: var(--red-bright); }
.step-num { display: block; font-family: var(--font-display); font-style: italic; font-size: 3.6rem; line-height: 1; color: rgba(255, 255, 255, .22); transition: color .5s; }
.steps li.is-active .step-num { color: var(--red-bright); }
.steps h3 { margin-top: 12px; font-size: 1.5rem; }
.steps p { margin-top: 8px; color: var(--muted); font-size: 1rem; }

/* ---------- Agence ---------- */
.agence { position: relative; padding: var(--section) 0; overflow: hidden; isolation: isolate; }
.agence-bg { position: absolute; inset: 0; z-index: -1; }
.agence-bg img { position: absolute; left: 0; top: -8%; width: 100%; height: 116%; object-fit: cover; transform: translateY(var(--py, 0)); }
.agence-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(11, 11, 13, .94) 0%, rgba(11, 11, 13, .78) 42%, rgba(11, 11, 13, .38) 100%), linear-gradient(to bottom, rgba(11, 11, 13, .5), transparent 25%, transparent 75%, rgba(11, 11, 13, .7)); }
@media (max-width: 1023px) { .agence-bg::after { background: rgba(11, 11, 13, .8); } }
.agence-grid { display: grid; gap: clamp(48px, 6vw, 96px); }
@media (min-width: 1024px) { .agence-grid { grid-template-columns: 1.1fr 1fr; align-items: center; } }
.agence-story h2 { margin-top: 18px; }
.agence-story > p { margin-top: 22px; color: rgba(245, 243, 239, .8); font-size: 1.1rem; max-width: 36rem; }
.vision { margin: 36px 0 0; padding-left: 22px; border-left: 2px solid var(--red-bright); max-width: 34rem; }
.vision p { font-family: var(--font-display); font-style: italic; font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.35; }
.agence-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.agence-photos img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); box-shadow: 0 30px 60px rgba(0, 0, 0, .45); }
.agence-photos img:last-child { margin-top: 48px; }
.metiers { margin-top: 28px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(18, 18, 21, .72); backdrop-filter: blur(8px); }
.metiers-title { color: var(--muted); }
.metiers ul { margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; }
.metiers li { display: flex; align-items: center; gap: 10px; font-size: .95rem; font-weight: 500; }
.metiers svg { width: 20px; height: 20px; color: var(--red-bright); flex-shrink: 0; }
@media (max-width: 459px) { .metiers ul { grid-template-columns: 1fr; } }

/* ---------- Devis ---------- */
.devis { background: radial-gradient(ellipse at 0% 100%, rgba(198, 14, 14, .18), transparent 55%), var(--bg-2); border-top: 1px solid var(--line); }
.devis-grid { display: grid; gap: 56px; }
@media (min-width: 1024px) {
  .devis-grid { grid-template-columns: 1fr 1.25fr; align-items: start; }
  .devis-intro { position: sticky; top: calc(var(--header-h) + 40px); }
}
.devis-intro h2 { margin-top: 18px; font-size: clamp(2.2rem, 4vw, 3.6rem); }
.devis-intro > p { margin-top: 22px; color: var(--muted); font-size: 1.125rem; max-width: 30rem; }
.contact-list { margin-top: 36px; display: grid; gap: 14px; }
.contact-list li { display: flex; align-items: center; gap: 14px; font-size: 1.05rem; }
.contact-list svg { width: 22px; height: 22px; color: var(--red-bright); flex-shrink: 0; }
.contact-list a { text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.contact-list a:hover { border-color: #fff; }
.quote-form { padding: clamp(24px, 4vw, 48px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); display: grid; gap: 20px; }
.form-row { display: grid; gap: 20px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 8px; }
.field label { font-size: .9rem; font-weight: 500; }
.field label span { color: var(--red-bright); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; font: inherit; font-size: 1rem; color: var(--text);
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--radius); transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #fff 50%), linear-gradient(135deg, #fff 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.field ::placeholder { color: #75757d; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red-bright); box-shadow: 0 0 0 3px rgba(240, 68, 58, .25); }
.field [aria-invalid="true"] { border-color: var(--red-bright); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: var(--muted); cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--red); flex-shrink: 0; }
.check a { color: var(--text); }
.check input[aria-invalid="true"] { outline: 2px solid var(--red-bright); outline-offset: 2px; }
.form-status { padding: 14px 16px; border-radius: var(--radius); background: rgba(46, 160, 67, .14); border: 1px solid rgba(46, 160, 67, .45); font-size: .95rem; }
.form-status.is-error { background: rgba(240, 68, 58, .12); border-color: rgba(240, 68, 58, .5); }
.form-note { font-size: .8rem; color: var(--muted); }

/* ---------- Pied de page ---------- */
.site-footer { padding: clamp(64px, 8vw, 112px) 0 32px; border-top: 1px solid var(--line); overflow: hidden; }
.footer-big { font-family: var(--font-display); font-weight: 500; font-size: clamp(2.6rem, 8vw, 8rem); line-height: 1; letter-spacing: -.025em; margin-bottom: clamp(48px, 6vw, 80px); }
.footer-grid { display: grid; gap: 40px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } }
.footer-tag { margin-top: 18px; color: var(--muted); max-width: 22rem; font-size: .95rem; }
.footer-title { color: var(--muted); margin-bottom: 14px; }
.footer-grid ul { display: grid; gap: 8px; font-size: .95rem; }
.footer-grid ul a { text-decoration: none; }
.footer-grid ul a:hover { color: var(--red-bright); }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: .85rem; color: var(--muted); }
.footer-bottom ul { display: flex; gap: 20px; }
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { color: var(--text); }

/* ---------- Pages légales et 404 ---------- */
.legal-header { border-bottom: 1px solid var(--line); }
.legal-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: var(--header-h); }
.legal-back { font-size: .9rem; text-decoration: none; color: var(--muted); }
.legal-back:hover { color: var(--text); }
.legal { max-width: 820px; padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(64px, 8vw, 120px); }
.legal h1 { margin-top: 16px; font-size: clamp(2.4rem, 5vw, 3.8rem); }
.legal h2 { margin-top: 44px; font-size: 1.5rem; }
.legal p, .legal ul { margin-top: 14px; color: rgba(245, 243, 239, .82); }
.legal ul { list-style: disc; padding-left: 1.3em; display: grid; gap: 6px; }
.legal a { color: var(--text); text-underline-offset: 3px; }
.legal-date { color: var(--muted) !important; font-size: .9rem; }
.legal-footer { border-top: 1px solid var(--line); padding: 24px 0 32px; font-size: .85rem; color: var(--muted); }
.legal-footer a { color: inherit; }
.notfound { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; gap: 22px; padding-block: 64px; }
.notfound-code { font-family: var(--font-display); font-style: italic; font-size: clamp(5rem, 16vw, 11rem); line-height: 1; color: var(--red-bright); }
.notfound h1 { font-size: clamp(2rem, 5vw, 3.6rem); max-width: 18ch; }
.notfound-en { color: var(--muted); }

/* ---------- Fenêtres (film, galerie) ---------- */
.modal { padding: 0; border: 0; background: transparent; color: var(--text); max-width: min(1200px, 94vw); width: 100%; overflow: visible; }
.modal::backdrop { background: rgba(5, 5, 6, .92); backdrop-filter: blur(4px); }
.modal video { width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); }
.modal figure { margin: 0; }
.modal-lightbox img { max-height: 80vh; width: auto; margin: 0 auto; border-radius: var(--radius); }
.modal figcaption { margin-top: 14px; display: flex; justify-content: center; gap: 16px; color: var(--muted); font-size: .9rem; }
.lb-count { font-family: var(--font-display); font-style: italic; }
.modal-close { position: absolute; right: 0; top: -56px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); background: rgba(11, 11, 13, .6); display: grid; place-items: center; }
.modal-close svg { width: 20px; height: 20px; }
.modal-close:hover { background: #fff; color: var(--ink); }
.lb-nav { position: absolute; top: calc(50% - 40px); width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-strong); background: rgba(11, 11, 13, .7); display: grid; place-items: center; }
.lb-nav svg { width: 20px; height: 20px; }
.lb-nav:hover { background: #fff; color: var(--ink); }
.lb-prev { left: 8px; }
.lb-next { right: 8px; }
.lb-nav[hidden] { display: none; }
.modal[open] { animation: modal-in .4s var(--ease-out); }
@keyframes modal-in { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- Apparitions au défilement ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(32px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: var(--d, 0s); }
  .js .reveal.is-visible { opacity: 1; transform: none; }
  .js .reveal-img { clip-path: inset(14% 0 14% 0 round var(--radius)); transition: clip-path 1.3s var(--ease-out); }
  .js .reveal-img.is-visible { clip-path: inset(0 0 0 0 round var(--radius)); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
