/* =========================================================
   ImaginCam Productions — design tokens
   Toutes les valeurs du site viennent d'ici.
   ========================================================= */
:root {
  color-scheme: light;
  /* Couleurs : celles du site et du logo actuels */
  --paper: #f3f1ed;
  --paper-2: #e8e5df;
  --ink: #161616;
  --char: #1c1c1c;
  --char-2: #262626;
  --grey: #7f7f7f;
  --grey-light: #a7a7a7;
  --white: #ffffff;
  --red: #e20811;
  --red-dark: #b9060e;
  --line: rgba(22, 22, 22, 0.14);
  --line-light: rgba(255, 255, 255, 0.16);
  --shade: rgba(10, 10, 10, 0.55);
  --shade-strong: rgba(10, 10, 10, 0.82);

  /* Typo */
  --f-display: "Anton", "Impact", sans-serif;
  --f-body: "Manrope", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;
  --fs-mega: clamp(4rem, 17vw, 18rem);
  --fs-display: clamp(3.6rem, 9.4vw, 9.5rem);
  --fs-h2: clamp(2.8rem, 6.2vw, 6.4rem);
  --fs-h3: clamp(1.5rem, 2.4vw, 2.25rem);
  --fs-lead: clamp(1.05rem, 1.3vw, 1.25rem);
  --fs-manifesto: clamp(1.9rem, 4.4vw, 4.4rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-mono: 0.72rem;

  /* Espacements */
  --s-1: 0.5rem;
  --s-2: 1rem;
  --s-3: 1.5rem;
  --s-4: 2rem;
  --s-5: 3rem;
  --s-6: 5rem;
  --s-7: 8rem;
  --s-8: 12rem;
  --gutter: clamp(1rem, 4vw, 3.5rem);

  /* Formes */
  --r-sm: 4px;
  --r-md: 10px;
  --r-pill: 999px;
  --shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.45);

  /* Mouvement */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --t-fast: 0.35s;
  --t-med: 0.7s;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
em { font-style: normal; color: var(--red); }
::selection { background: var(--red); color: var(--white); }

[hidden] { display: none !important; }
html.is-locked, html.is-locked body { overflow: hidden; }

/* Fonts gate + fallback statique */
main, footer, .nav { visibility: hidden; }
html.is-ready main, html.is-ready footer, html.is-ready .nav,
html.is-static main, html.is-static footer, html.is-static .nav { visibility: visible; }
html.is-static .preloader { display: none; }
html.is-static [data-reveal] { opacity: 1; transform: none; }

/* ---------- Éléments communs ---------- */
.label {
  font-family: var(--f-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey);
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
}
.label--light { color: var(--grey-light); }
.dot, .rec {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--red);
  display: inline-block;
  animation: blink 1.4s steps(2, start) infinite;
}
@keyframes blink { to { opacity: 0.15; } }

.section { padding: var(--s-7) var(--gutter); position: relative; }
.section--dark { background: var(--char); color: var(--paper); }
.section__head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: var(--s-5); flex-wrap: wrap;
  margin-bottom: var(--s-6);
}
.section__num { margin-bottom: var(--s-3); }
.section__intro { max-width: 34ch; font-size: var(--fs-lead); color: var(--grey); }
.section--dark .section__intro { color: var(--grey-light); }

.h2 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: var(--fs-h2);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: 0.005em;
}

[data-reveal] { opacity: 0; transform: translateY(30px); }

/* Les masques de SplitText laissent de la place aux accents (À, Ê, É) */
.hero__line > div, .split > div, .drone__title > div { padding-top: 0.16em; margin-top: -0.16em; }

.btn {
  display: inline-flex; align-items: center; gap: var(--s-1);
  padding: 0.95em 1.6em;
  border-radius: var(--r-pill);
  font-weight: 600; font-size: var(--fs-small);
  letter-spacing: 0.02em;
  position: relative; overflow: hidden; isolation: isolate;
  transition: color var(--t-fast) var(--ease-out), border-color var(--t-fast) var(--ease-out);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  transform: translateY(101%);
  transition: transform var(--t-fast) var(--ease-out);
}
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn--red { background: var(--red); color: var(--white); }
.btn--red::before { background: var(--ink); }
.btn--ghost { border: 1px solid var(--line); color: var(--ink); }
.btn--ghost::before { background: var(--ink); }
.btn--ghost:hover { color: var(--paper); border-color: var(--ink); }
.btn--ghost-light { border: 1px solid var(--line-light); color: var(--paper); }
.btn--ghost-light::before { background: var(--red); }
.btn--ghost-light:hover { border-color: var(--red); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

/* ---------- Préchargement ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--paper);
  display: grid; place-content: center; justify-items: center; gap: var(--s-3);
}
.preloader__logo { width: 243px; height: auto; }
.preloader__bar { width: 243px; height: 2px; background: var(--line); overflow: hidden; }
.preloader__bar span { display: block; height: 100%; background: var(--red); transform: scaleX(0); transform-origin: left; }
.preloader__tc { font-family: var(--f-mono); font-size: var(--fs-mono); letter-spacing: 0.14em; color: var(--grey); display: flex; gap: var(--s-1); align-items: center; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; gap: var(--s-4);
  padding: var(--s-2) var(--gutter);
  padding-top: max(var(--s-2), env(safe-area-inset-top));
  transition: background var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out), transform var(--t-med) var(--ease-out);
}
.nav.is-scrolled { background: rgba(243, 241, 237, 0.88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__logo img { height: 46px; width: auto; }
.nav__links { display: flex; gap: var(--s-4); margin-left: auto; }
.nav__links a {
  font-size: var(--fs-small); font-weight: 600; position: relative; padding: var(--s-1) 0;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--red);
  transform: scaleX(0); transform-origin: right; transition: transform var(--t-fast) var(--ease-out);
}
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__burger { display: none; width: 44px; height: 44px; margin-left: auto; position: relative; }
.nav__burger span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--ink); transition: transform var(--t-fast) var(--ease-out); }
.nav__burger span:first-child { top: 17px; }
.nav__burger span:last-child { top: 25px; }
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 45;
  background: var(--paper);
  display: flex; flex-direction: column; justify-content: center; gap: var(--s-2);
  padding: var(--gutter);
  clip-path: inset(0 0 100% 0);
  transition: clip-path var(--t-med) var(--ease-io);
}
.menu.is-open { clip-path: inset(0 0 0 0); }
.menu a { font-family: var(--f-display); font-size: clamp(2.8rem, 12vw, 4.5rem); text-transform: uppercase; line-height: 1.05; }
.menu a:hover { color: var(--red); }

/* ---------- Hero ---------- */
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 560px;
  overflow: hidden;
  background: var(--paper);
  --ring-x: 70%;
  --ring-y: 52%;
  --ring-size: min(74vh, 44vw);
}
.hero__copy {
  position: absolute; z-index: 3;
  left: var(--gutter); top: 0; bottom: 0;
  max-width: 48vw;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding-top: var(--s-5);
}
.hero__title {
  font-family: var(--f-display); font-weight: 400;
  font-size: var(--fs-display); line-height: 0.92;
  text-transform: uppercase;
  margin: var(--s-3) 0;
}
.hero__line { display: block; }
.hero__lead { font-size: var(--fs-lead); max-width: 38ch; color: var(--grey); }
.hero__actions { display: flex; gap: var(--s-2); flex-wrap: wrap; margin-top: var(--s-4); }

.hero__ring {
  position: absolute; z-index: 1;
  left: var(--ring-x); top: var(--ring-y);
  width: var(--ring-size); height: var(--ring-size);
  margin: calc(var(--ring-size) / -2) 0 0 calc(var(--ring-size) / -2);
  transform-origin: 50% 50%;
  overflow: visible;
}
.ring-outer { fill: none; stroke: var(--char-2); stroke-width: 9; stroke-linecap: round; stroke-dasharray: 925 400; stroke-dashoffset: 0; }
.ring-inner { fill: none; stroke: url(#ringGrad); stroke-width: 28; stroke-dasharray: 793 1106; stroke-dashoffset: -141; }
.ring-dot { fill: var(--red); }

.hero__frame {
  position: absolute; inset: 0; z-index: 2;
  /* triangle par défaut (sans JS) */
  --h: calc(var(--ring-size) / 2);
  clip-path: polygon(calc(var(--ring-x) - 0.405 * var(--h)) calc(var(--ring-y) - 0.54 * var(--h)), calc(var(--ring-x) + 0.545 * var(--h)) var(--ring-y), calc(var(--ring-x) + 0.545 * var(--h)) var(--ring-y), calc(var(--ring-x) - 0.405 * var(--h)) calc(var(--ring-y) + 0.54 * var(--h)));
}
.hero__img { width: 100%; height: 100%; object-fit: cover; transform-origin: 70% 50%; }
.hero__shade { position: absolute; inset: 0; background: var(--shade); opacity: 0; }
.viewfinder { position: absolute; inset: var(--s-6) var(--gutter) var(--s-4); opacity: 0; color: var(--white); font-family: var(--f-mono); font-size: var(--fs-mono); letter-spacing: 0.14em; }
.vf-c { position: absolute; width: 34px; height: 34px; border-color: rgba(255, 255, 255, 0.8); border-style: solid; border-width: 0; }
.vf-tl { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; }
.vf-tr { top: 0; right: 0; border-top-width: 2px; border-right-width: 2px; }
.vf-bl { bottom: 0; left: 0; border-bottom-width: 2px; border-left-width: 2px; }
.vf-br { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; }
.vf-rec { position: absolute; top: var(--s-2); left: var(--s-5); display: flex; gap: var(--s-1); align-items: center; }
.vf-tc { position: absolute; top: var(--s-2); right: var(--s-5); }
.vf-meta { position: absolute; bottom: var(--s-2); right: var(--s-5); }
.hero__reveal {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: var(--s-7);
  color: var(--white); opacity: 0;
}
.hero__reveal-title {
  font-family: var(--f-display); text-transform: uppercase;
  font-size: var(--fs-h2); line-height: 0.95; margin-top: var(--s-2);
}
.hero__scroll {
  position: absolute; z-index: 3; left: var(--gutter); bottom: var(--s-4);
  font-family: var(--f-mono); font-size: var(--fs-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--grey);
  display: flex; align-items: center; gap: var(--s-2);
}
.hero__scroll span { width: 40px; height: 1px; background: var(--grey); position: relative; overflow: hidden; }
.hero__scroll span::after { content: ""; position: absolute; inset: 0; background: var(--red); animation: scrollLine 2s var(--ease-io) infinite; }
@keyframes scrollLine { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

/* ---------- Bandeau ---------- */
.marquee { background: var(--red); color: var(--white); overflow: hidden; padding: var(--s-2) 0; }
.marquee__track { display: flex; width: max-content; align-items: center; gap: var(--s-4); }
.marquee__track span { font-family: var(--f-display); font-size: clamp(1.6rem, 3vw, 2.6rem); text-transform: uppercase; white-space: nowrap; }
.marquee__track b { font-size: var(--fs-small); opacity: 0.7; }
html.is-static .marquee__track, .reduce .marquee__track { flex-wrap: wrap; width: auto; justify-content: center; }

/* ---------- Manifeste ---------- */
.manifesto { padding-top: var(--s-8); padding-bottom: var(--s-8); }
.manifesto__text {
  font-family: var(--f-display); text-transform: uppercase;
  font-size: var(--fs-manifesto); line-height: 1.05;
  max-width: 22ch;
}
.manifesto__text .word { opacity: 0.12; }
.manifesto .manifesto__text { max-width: 30ch; font-size: clamp(1.9rem, 3.6vw, 3.7rem); }
.manifesto__sign { margin-top: var(--s-5); font-size: var(--fs-lead); color: var(--grey); }

/* ---------- Réalisations ---------- */
.filters { display: flex; gap: var(--s-1); flex-wrap: wrap; }
.filter {
  padding: 0.6em 1.2em; border-radius: var(--r-pill);
  border: 1px solid var(--line-light); color: var(--grey-light);
  font-size: var(--fs-small); font-weight: 600;
  transition: background var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out), border-color var(--t-fast) var(--ease-out);
}
.filter:hover { color: var(--paper); border-color: var(--paper); }
.filter.is-active { background: var(--red); border-color: var(--red); color: var(--white); }

.grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  grid-auto-flow: dense; gap: var(--s-3);
}
.card {
  position: relative; display: block; text-align: left;
  border-radius: var(--r-md); overflow: hidden;
  aspect-ratio: 4 / 3; background: var(--char-2);
}
.card--wide { grid-column: span 2; aspect-ratio: auto; }
.card.is-hidden { display: none; }
.card__media { position: absolute; inset: -6% 0; overflow: hidden; }
/* 3 mouvements qui se cumulent : transform (entrée GSAP), translate (dérive lente), scale (survol) */
/* Calques séparés : GSAP anime l'image, le CSS anime .card__zoom (dérive + survol) */
.card__zoom { display: block; width: 100%; height: 100%; transition: transform 1.1s var(--ease-out); animation: drift 16s ease-in-out infinite alternate; }
.card__media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.85); transition: filter 1.1s var(--ease-out); }
.card:nth-child(3n+2) .card__zoom { animation-duration: 19s; animation-delay: -6s; animation-direction: alternate-reverse; }
.card:nth-child(3n) .card__zoom { animation-duration: 22s; animation-delay: -11s; }
@keyframes drift { from { translate: -1.5% 1%; } to { translate: 1.5% -1%; } }
.card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--shade-strong), transparent 55%); }
.card:hover .card__zoom, .card:focus-visible .card__zoom { transform: scale(1.08); }
.card:hover .card__media img, .card:focus-visible .card__media img { filter: saturate(1.08); }
.card { will-change: transform; transform-style: flat; }
.card__vf { position: absolute; inset: var(--s-2); z-index: 1; pointer-events: none; color: var(--white); font-family: var(--f-mono); font-size: var(--fs-mono); letter-spacing: 0.14em; opacity: 0; transition: opacity var(--t-fast) var(--ease-out), inset var(--t-med) var(--ease-out); }
.card__vf .vf-c { width: 22px; height: 22px; }
.card:hover .card__vf, .card:focus-visible .card__vf { opacity: 1; inset: var(--s-3); }
.card__rec { position: absolute; top: 2px; left: 30px; display: flex; gap: 6px; align-items: center; }
.card__tc { position: absolute; bottom: 2px; right: 30px; }
.card__info { transition: translate var(--t-med) var(--ease-out); }
.card:hover .card__info { translate: 0 -10px; }
.card:hover .card__cat { color: var(--red); }
.card__info { position: absolute; z-index: 1; left: var(--s-3); right: var(--s-3); bottom: var(--s-3); display: flex; flex-direction: column; gap: 2px; }
.card__cat { font-family: var(--f-mono); font-size: var(--fs-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--grey-light); }
.card__title { font-family: var(--f-display); font-size: var(--fs-h3); text-transform: uppercase; line-height: 1.05; color: var(--white); }
.card__play {
  position: absolute; z-index: 1; top: var(--s-3); right: var(--s-3);
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--line-light);
  display: grid; place-items: center;
  transition: background var(--t-fast) var(--ease-out), border-color var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out);
}
.card__play::before { content: ""; width: 0; height: 0; margin-left: 4px; border-left: 14px solid var(--white); border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.card__play { top: var(--s-4); right: var(--s-4); transition: background var(--t-fast) var(--ease-out), border-color var(--t-fast) var(--ease-out), scale var(--t-fast) var(--ease-out); }
.card:hover .card__play { background: var(--red); border-color: var(--red); scale: 1.12; }
.card__play::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid var(--red); opacity: 0; }
.card:hover .card__play::after { animation: pulse 1.4s var(--ease-out) infinite; }
@keyframes pulse { from { opacity: 0.9; transform: scale(1); } to { opacity: 0; transform: scale(1.7); } }

/* Bande pellicule "Produit par ImaginCam" */
.reel { position: relative; margin: calc(-1 * var(--s-4)) calc(-1 * var(--gutter)) var(--s-5); overflow: hidden; padding: var(--s-3) 0; border-block: 1px solid var(--line-light); }
.reel::before, .reel::after { content: ""; position: absolute; left: 0; right: 0; height: 6px; background: radial-gradient(circle, rgba(255,255,255,0.16) 2px, transparent 2.5px) 0 0 / 22px 6px repeat-x; }
.reel::before { top: 7px; }
.reel::after { bottom: 7px; }
.reel__track { display: flex; align-items: center; gap: var(--s-4); width: max-content; white-space: nowrap; padding-left: var(--gutter); }
.reel__track span { font-family: var(--f-display); font-size: clamp(2.4rem, 6vw, 5.5rem); line-height: 1; text-transform: uppercase; color: transparent; -webkit-text-stroke: 1px rgba(243, 241, 237, 0.35); }
.reel__track span:first-child, .reel__track span:nth-child(9) { color: var(--paper); -webkit-text-stroke: 0; }
.reel__track b { width: 14px; height: 14px; border-radius: 50%; background: var(--red); flex: none; }
.work__more { margin-top: var(--s-6); display: flex; justify-content: center; }

/* ---------- Services ---------- */
.services__list { list-style: none; border-top: 1px solid var(--line); }
.service {
  display: grid; grid-template-columns: 5rem 1fr 1fr; gap: var(--s-4); align-items: baseline;
  padding: var(--s-4) 0; border-bottom: 1px solid var(--line);
  position: relative; cursor: default;
}
.service::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--red);
  transform: scaleX(0); transform-origin: left; transition: transform var(--t-med) var(--ease-out);
}
.service:hover::before { transform: scaleX(1); }
.service__num { font-family: var(--f-mono); font-size: var(--fs-mono); letter-spacing: 0.14em; color: var(--red); }
.service__title { font-family: var(--f-display); font-weight: 400; font-size: var(--fs-h3); text-transform: uppercase; line-height: 1.05; transition: transform var(--t-fast) var(--ease-out); }
.service:hover .service__title { transform: translateX(var(--s-2)); }
.service__text { color: var(--grey); max-width: 46ch; }
.service-preview {
  position: fixed; top: 0; left: 0; z-index: 30;
  width: 300px; aspect-ratio: 4 / 3; border-radius: var(--r-md); overflow: hidden;
  pointer-events: none; opacity: 0; box-shadow: var(--shadow);
  margin: -112px 0 0 -150px;
}
.service-preview img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: none) { .service-preview { display: none; } }

/* ---------- Drone ---------- */
.drone { overflow: hidden; }
.drone__stage { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; }
.drone__media { position: absolute; inset: 0; clip-path: inset(12% 10% 12% 10% round var(--r-md)); }
.drone__media img { width: 100%; height: 118%; object-fit: cover; }
.drone__shade { position: absolute; inset: 0; background: linear-gradient(90deg, var(--shade-strong), transparent 70%); opacity: 0; pointer-events: none; }
.drone__copy { position: absolute; left: var(--gutter); bottom: var(--s-6); z-index: 1; color: var(--white); }
.drone__title { font-family: var(--f-display); font-weight: 400; font-size: var(--fs-display); line-height: 0.9; text-transform: uppercase; margin: var(--s-2) 0; }
.drone__sub { font-size: var(--fs-lead); color: var(--paper-2); }
.drone__intro { font-size: var(--fs-h3); font-family: var(--f-display); text-transform: uppercase; line-height: 1.15; max-width: 40ch; margin-bottom: var(--s-6); }
.specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); margin-bottom: var(--s-6); }
.spec { border-top: 1px solid var(--line-light); padding-top: var(--s-3); }
.spec__k { display: block; font-family: var(--f-display); font-size: var(--fs-h3); text-transform: uppercase; margin-bottom: var(--s-1); }
.spec::before { content: ""; display: block; width: 32px; height: 2px; background: var(--red); margin: -1px 0 var(--s-3); transform: translateY(calc(-1 * var(--s-3))); }
.spec p { color: var(--grey-light); }
.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-3); }
.strip__item { aspect-ratio: 1; border-radius: var(--r-md); overflow: hidden; }
.strip__item img { width: 100%; height: 120%; object-fit: cover; }
.strip__item:nth-child(even) { margin-top: var(--s-6); }

/* ---------- Chiffres ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
.stat { border-top: 2px solid var(--ink); padding-top: var(--s-3); }
.stat__num, .stat__unit { font-family: var(--f-display); font-size: var(--fs-h2); line-height: 1; font-variant-numeric: tabular-nums; }
.stat__num { color: var(--red); }
.stat__unit { margin-left: 0.15em; font-size: var(--fs-h3); text-transform: uppercase; }
.stat__unit--big { margin-left: 0; font-size: var(--fs-h2); color: var(--red); }
.stat__label { margin-top: var(--s-2); color: var(--grey); font-size: var(--fs-small); max-width: 24ch; }

/* ---------- À propos ---------- */
.about { display: grid; grid-template-columns: 5fr 7fr; gap: var(--s-6); align-items: center; }
.about__photo { position: relative; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 4 / 5; clip-path: inset(0 0 0 0); }
.about__photo img { width: 100%; height: 115%; object-fit: cover; }
.about__photo figcaption { position: absolute; left: var(--s-3); bottom: var(--s-3); background: var(--shade-strong); padding: var(--s-1) var(--s-2); border-radius: var(--r-pill); color: var(--paper); }
.about__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); margin-top: var(--s-5); }
.about__k { font-family: var(--f-mono); font-weight: 500; font-size: var(--fs-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--red); margin-bottom: var(--s-2); }
.about__cols p { color: var(--grey-light); font-size: var(--fs-small); }

/* ---------- Contact ---------- */
.contact { isolation: isolate; overflow: hidden; }
.contact::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(226, 8, 17, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(226, 8, 17, 0.09) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 70% 40%, #000 20%, transparent 85%);
  mask-image: radial-gradient(ellipse 85% 75% at 70% 40%, #000 20%, transparent 85%);
}
.contact::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  width: 520px; height: 520px; right: -140px; top: -120px; border-radius: 50%;
  background: radial-gradient(circle, rgba(226, 8, 17, 0.08), transparent 65%);
}
.contact__title { font-family: var(--f-display); font-weight: 400; font-size: var(--fs-display); line-height: 0.92; text-transform: uppercase; margin-bottom: var(--s-4); }
.contact__head { margin-bottom: var(--s-6); }
.contact__grid { display: grid; grid-template-columns: 7fr 5fr; gap: var(--s-6); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4) var(--s-3); }
.field { display: flex; flex-direction: column; gap: var(--s-1); }
.field--full { grid-column: 1 / -1; }
.field span { font-family: var(--f-mono); font-size: var(--fs-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--grey); }
.field input, .field textarea {
  font: inherit; color: var(--ink); background: transparent;
  border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  padding: var(--s-1) 0; resize: vertical;
  transition: border-color var(--t-fast) var(--ease-out);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--red); }
.form__submit { justify-self: start; }
.form__note { grid-column: 1 / -1; font-size: var(--fs-small); color: var(--grey); min-height: 1.6em; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__submit[disabled] { opacity: 0.6; cursor: wait; }
.form { position: relative; }
.form__legal { grid-column: 1 / -1; font-size: 0.8rem; color: var(--grey); margin-top: calc(-1 * var(--s-3)); }
.form__legal a { text-decoration: underline; text-underline-offset: 3px; }
.form__legal a:hover { color: var(--red); }
.info { display: flex; flex-direction: column; gap: var(--s-4); }
.info__block { border-top: 1px solid var(--line); padding-top: var(--s-3); }
.info__k { display: block; font-family: var(--f-mono); font-size: var(--fs-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--grey); margin-bottom: var(--s-1); }
.info__big { font-family: var(--f-display); font-size: var(--fs-h3); transition: color var(--t-fast) var(--ease-out); }
.info__big:hover, .info__link:hover, .info__social a:hover { color: var(--red); }
.info__link { display: inline-block; margin-top: var(--s-1); font-weight: 600; font-size: var(--fs-small); }
.info__social { display: flex; gap: var(--s-3); font-weight: 600; font-size: var(--fs-small); }

/* ---------- Footer ---------- */
.footer { background: var(--char); color: var(--grey-light); overflow: hidden; padding: var(--s-6) var(--gutter) var(--s-4); }
.footer__big { pointer-events: none; position: relative; z-index: 0; font-family: var(--f-display); font-size: clamp(3rem, 9vw, 8rem); line-height: 0.85; text-transform: uppercase; color: var(--char-2); white-space: nowrap; text-align: center; }
.footer__row { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); flex-wrap: wrap; margin-top: var(--s-4); font-size: var(--fs-small); }
.footer__logo { height: 40px; width: auto; background: var(--paper); padding: 6px 10px; border-radius: var(--r-sm); box-sizing: content-box; }
.footer__top:hover { color: var(--red); }
.footer__legal { display: flex; gap: var(--s-3); flex-wrap: wrap; justify-content: center; }
.footer__legal a, .footer__legal button { font-size: var(--fs-small); color: var(--grey-light); transition: color var(--t-fast) var(--ease-out); }
.footer__legal a:hover, .footer__legal button:hover { color: var(--red); }
.footer__legal button { cursor: pointer; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: color var(--t-fast) var(--ease-out), text-decoration-color var(--t-fast) var(--ease-out); }
.footer__legal button:hover { text-decoration-color: currentColor; }
.link-btn { display: inline; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-btn:hover { color: var(--red); }
.legal .link-btn { color: var(--ink); text-decoration-color: var(--red); }
.consent__text .link-btn { color: var(--paper); }

/* ---------- Lecteur vidéo ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 110;
  background: var(--shade-strong); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: grid; place-items: center; padding: var(--gutter);
}
.lightbox[hidden] { display: none; }
.lightbox__player { width: min(1200px, 100%); aspect-ratio: 16 / 9; background: var(--ink); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow); }
.lightbox__player iframe { width: 100%; height: 100%; border: 0; }
.lightbox__close { position: absolute; top: var(--s-3); right: var(--gutter); color: var(--white); font-family: var(--f-mono); font-size: var(--fs-mono); letter-spacing: 0.14em; text-transform: uppercase; padding: var(--s-1) var(--s-2); border: 1px solid var(--line-light); border-radius: var(--r-pill); }
.lightbox__close:hover { background: var(--red); border-color: var(--red); }
.gate { position: relative; width: 100%; height: 100%; display: grid; place-items: center; color: var(--paper); }
.gate__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(6px) brightness(0.35); transform: scale(1.08); }
.gate__box { position: relative; max-width: 560px; padding: var(--s-4); text-align: center; display: grid; justify-items: center; gap: var(--s-2); }
.gate__title { font-family: var(--f-display); font-size: var(--fs-h3); text-transform: uppercase; line-height: 1.05; }
.gate__text { color: var(--paper-2); font-size: var(--fs-small); }
.gate__actions { display: flex; gap: var(--s-2); flex-wrap: wrap; justify-content: center; margin-top: var(--s-1); }
.gate__fine { font-size: 0.75rem; color: var(--grey-light); }
@media (max-width: 560px) { .lightbox__player:has(.gate) { aspect-ratio: auto; min-height: 70vh; } .gate__box { padding: var(--s-3); } }

/* ---------- Bandeau cookies ---------- */
.consent {
  position: fixed; z-index: 120; left: var(--gutter); bottom: max(var(--s-3), env(safe-area-inset-bottom));
  width: min(460px, calc(100vw - 2 * var(--gutter)));
  background: var(--char); color: var(--paper);
  border-radius: var(--r-md); box-shadow: var(--shadow);
  font-family: var(--f-body);
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
}
.consent.is-in { opacity: 1; transform: none; }
.consent__main { padding: var(--s-3); display: grid; gap: var(--s-2); }
.consent__k { font-family: var(--f-mono); font-size: var(--fs-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--grey-light); display: flex; align-items: center; gap: var(--s-1); }
.consent__title { font-family: var(--f-display); font-size: 1.6rem; text-transform: uppercase; line-height: 1.05; }
.consent__text { font-size: var(--fs-small); color: var(--grey-light); line-height: 1.55; }
.consent__text a { color: var(--paper); text-decoration: underline; text-underline-offset: 3px; }
.consent__text a:hover { color: var(--red); }
.consent__prefs { display: grid; border-top: 1px solid var(--line-light); }
.consent__row { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); padding: var(--s-2) 0; border-bottom: 1px solid var(--line-light); cursor: default; }
label.consent__row { cursor: pointer; }
.consent__row strong { display: block; font-size: var(--fs-small); }
.consent__row span { display: block; font-size: 0.8rem; color: var(--grey-light); line-height: 1.45; }
.consent__always { flex: none; font-family: var(--f-mono); font-size: 0.65rem !important; letter-spacing: 0.1em; text-transform: uppercase; color: var(--grey) !important; }
.consent__toggle { flex: none; appearance: none; -webkit-appearance: none; width: 44px; height: 24px; border-radius: var(--r-pill); background: var(--char-2); border: 1px solid var(--line-light); position: relative; cursor: pointer; transition: background var(--t-fast) var(--ease-out); }
.consent__toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--grey-light); transition: transform var(--t-fast) var(--ease-out), background var(--t-fast) var(--ease-out); }
.consent__toggle:checked { background: var(--red); border-color: var(--red); }
.consent__toggle:checked::after { transform: translateX(20px); background: var(--white); }
.consent__actions { display: grid; grid-template-columns: repeat(3, auto); gap: var(--s-1); justify-content: stretch; }
.consent__actions [hidden] { display: none; }
.consent__btn { padding: 0.8em 1em; border-radius: var(--r-pill); font-size: 0.8rem; font-weight: 600; background: var(--paper); color: var(--ink); text-align: center; transition: background var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out), border-color var(--t-fast) var(--ease-out); border: 1px solid var(--paper); }
.consent__btn:hover { background: var(--white); }
.consent__btn--line { background: transparent; color: var(--paper); border-color: var(--line-light); }
.consent__btn--line:hover { background: transparent; border-color: var(--paper); }
.consent__btn--red { background: var(--red); border-color: var(--red); color: var(--white); }
.consent__btn--red:hover { background: var(--red-dark); border-color: var(--red-dark); }
@media (max-width: 560px) {
  .consent { left: var(--s-1); right: var(--s-1); bottom: max(var(--s-1), env(safe-area-inset-bottom)); width: auto; max-height: calc(100svh - 80px); overflow-y: auto; }
  .consent__actions { grid-template-columns: 1fr 1fr; }
  .consent__actions .consent__btn--red { grid-column: 1 / -1; order: -1; }
}

/* ---------- Pages légales ---------- */
.legal-nav { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: var(--s-2) var(--gutter); background: rgba(243, 241, 237, 0.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.legal-nav img { height: 42px; width: auto; }
.legal-nav__back { font-size: var(--fs-small); font-weight: 600; }
.legal-nav__back:hover { color: var(--red); }
.legal { padding: var(--s-6) var(--gutter) var(--s-7); display: grid; grid-template-columns: 1fr minmax(0, 46rem) 1fr; }
.legal > * { grid-column: 2; }
.legal__title { font-family: var(--f-display); font-weight: 400; font-size: var(--fs-h2); line-height: 0.95; text-transform: uppercase; margin: var(--s-3) 0 var(--s-2); }
.legal__date { color: var(--grey); font-size: var(--fs-small); margin-bottom: var(--s-5); }
.legal h2 { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.4rem, 2.2vw, 1.9rem); text-transform: uppercase; line-height: 1.1; margin: var(--s-5) 0 var(--s-2); padding-top: var(--s-3); border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.legal h3 { font-size: var(--fs-body); font-weight: 700; margin: var(--s-3) 0 var(--s-1); }
.legal p, .legal li { color: #3d3d3d; }
.legal p + p { margin-top: var(--s-2); }
.legal ul { padding-left: 1.2em; display: grid; gap: 6px; margin-top: var(--s-1); }
.legal a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--red); }
.legal a:hover { color: var(--red); }
.legal dl { display: grid; grid-template-columns: minmax(9rem, 13rem) 1fr; border-top: 1px solid var(--line); }
.legal dt, .legal dd { padding: var(--s-1) 0; border-bottom: 1px solid var(--line); }
.legal dt { font-family: var(--f-mono); font-size: var(--fs-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--grey); padding-top: 0.85rem; }
.legal .table { width: 100%; overflow-x: auto; margin-top: var(--s-2); }
.legal table { width: 100%; border-collapse: collapse; font-size: var(--fs-small); min-width: 520px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: var(--s-1) var(--s-1) var(--s-1) 0; border-bottom: 1px solid var(--line); }
.legal th { font-family: var(--f-mono); font-size: var(--fs-mono); font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--grey); }
.legal .todo { background: #fff1b8; color: #6b4e00; padding: 0 0.3em; border-radius: 3px; font-weight: 600; }
.legal .btn { margin-top: var(--s-2); justify-self: start; }
.legal .btn--red { color: var(--white); text-decoration: none; }
.legal-footer { background: var(--char); color: var(--grey-light); padding: var(--s-4) var(--gutter); display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); flex-wrap: wrap; font-size: var(--fs-small); }
@media (max-width: 560px) { .legal dl { grid-template-columns: 1fr; } .legal dt { border-bottom: 0; padding-bottom: 0; } }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .nav__links { gap: var(--s-3); }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .strip { grid-template-columns: repeat(2, 1fr); }
  .strip__item { aspect-ratio: 4 / 3; }
  .about { grid-template-columns: 1fr; }
  .about__photo { max-width: 520px; }
  .stats { grid-template-columns: repeat(3, 1fr); row-gap: var(--s-5); }
}
@media (max-width: 820px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }
  .nav__logo img { height: 38px; }
  .hero {
    --ring-x: 50%;
    --ring-size: clamp(170px, calc(100svh - 440px), 74vw);
    --ring-y: calc(50% + 160px);
  }
  .hero__copy { top: calc(88px + env(safe-area-inset-top)); bottom: auto; max-width: none; right: var(--gutter); justify-content: flex-start; padding-top: 0; }
  .hero__title { margin: var(--s-2) 0; font-size: clamp(2.9rem, 13.5vw, 4.2rem); }
  .hero__lead { font-size: var(--fs-body); }
  .hero__actions { display: none; }
  .hero__scroll { display: none; }
  .section { padding: var(--s-6) var(--gutter); }
  .manifesto { padding-top: var(--s-7); padding-bottom: var(--s-7); }
  .service { grid-template-columns: 3rem 1fr; }
  .service__text { grid-column: 2; }
  .specs, .about__cols { grid-template-columns: 1fr; }
  .strip { grid-template-columns: 1fr; }
  .strip__item { aspect-ratio: 16 / 10; }
  .contact__grid { grid-template-columns: 1fr; }
  .vf-meta { display: none; }
  .hero__reveal { bottom: var(--s-6); }
  /* Drone : texte lisible sur le ciel clair */
  .drone__shade { background: linear-gradient(to top, var(--shade-strong) 10%, rgba(10,10,10,0.35) 60%, transparent); }
  .drone__copy { bottom: var(--s-5); right: var(--gutter); }
  .drone__intro { font-size: clamp(1.15rem, 5vw, 1.5rem); margin-bottom: var(--s-5); }
  .strip { gap: var(--s-2); }
  .strip__item:nth-child(even) { margin-top: 0; }
  /* Zones tactiles d'au moins 44 px */
  .footer__legal a, .footer__legal button, .footer__top, .info__link, .info__social a, .form__legal .link-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; }
  .info__big { display: inline-flex; align-items: center; min-height: 48px; }
  .footer__legal { gap: var(--s-1) var(--s-2); }
  .filters { gap: 6px; }
  .filter { min-height: 40px; }
  .reel__track span { font-size: clamp(2rem, 11vw, 3rem); }
  .about__photo figcaption { left: var(--s-2); bottom: var(--s-2); }
  .lightbox__close { top: calc(var(--s-2) + env(safe-area-inset-top)); }
}
/* Téléphones très courts (ou paysage) : on allège le haut de page */
@media (max-width: 820px) and (max-height: 700px) {
  .hero__lead { display: none; }
  .hero { --ring-size: clamp(150px, calc(100svh - 360px), 70vw); --ring-y: calc(50% + 140px); }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .card--wide { grid-column: auto; aspect-ratio: 4 / 3; }
  .form { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; gap: var(--s-4); }
  .footer__row { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .card__zoom { animation: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Panneau légal (dans le site) ---------- */
html.sheet-open, html.sheet-open body { overflow: hidden; }
.legal-sheet {
  position: fixed; inset: 0; z-index: 115;
  background: var(--paper); color: var(--ink);
  display: flex; flex-direction: column;
  clip-path: inset(100% 0 0 0);
  transition: clip-path 0.55s var(--ease-io);
}
.legal-sheet.is-open { clip-path: inset(0 0 0 0); }
.legal-sheet__bar { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-2) var(--gutter); border-bottom: 1px solid var(--line); background: var(--paper); }
.legal-sheet__bar img { height: 40px; width: auto; }
.legal-sheet__tabs { display: flex; gap: var(--s-1); margin-left: auto; }
.legal-sheet__tabs button { padding: 0.55em 1.1em; border-radius: var(--r-pill); border: 1px solid var(--line); font-size: var(--fs-small); font-weight: 600; transition: background var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out), border-color var(--t-fast) var(--ease-out); }
.legal-sheet__tabs button:hover { border-color: var(--ink); }
.legal-sheet__tabs button[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.legal-sheet__close { font-family: var(--f-mono); font-size: var(--fs-mono); letter-spacing: 0.14em; text-transform: uppercase; padding: var(--s-1) var(--s-2); border: 1px solid var(--line); border-radius: var(--r-pill); }
.legal-sheet__close:hover { background: var(--red); border-color: var(--red); color: var(--white); }
.legal-sheet__scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.legal-sheet__body { padding-top: var(--s-5); }
@media (max-width: 820px) {
  .legal-sheet__bar { flex-wrap: wrap; row-gap: var(--s-1); }
  .legal-sheet__bar img { height: 32px; }
  .legal-sheet__tabs { order: 3; width: 100%; margin-left: 0; }
  .legal-sheet__tabs button { flex: 1; }
  .legal-sheet__close { margin-left: auto; }
}
