/* ==========================================================================
   JÉRÉMY SAUTEREL — PORTFOLIO V2
   Direction : sombre, cinématographique, lumières violet → bleu.
   --------------------------------------------------------------------------
   00. Polices          08. Hero               16. Contact
   01. Variables        09. Bandeau défilant   17. Pied de page
   02. Base             10. Sections           18. Visionneuse photo
   03. Grain & aurores  11. À propos           19. Lecteur vidéo
   04. Boutons          12. Photos             20. Alerte, notification, bandeau
   05. Chargement       13. Vidéos             21. Pages légales
   06. Curseur          14. Graphisme          22. Mouvement réduit / secours
   07. Navigation       15. Cartes (commun)    23. Adaptations d'écran
   ========================================================================== */

/* ---------- 00. POLICES (auto-hébergées, aucun appel à Google) ---------- */
/* Montserrat (licence OFL) — titres */
@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/montserrat-var.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-var.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
}
/* Playfair Display italique (licence OFL) — mots mis en valeur */
@font-face {
  font-family: 'Playfair Display';
  src: url('../fonts/playfair-display-italic.woff2') format('woff2');
  font-weight: 400 900; font-style: italic; font-display: swap;
}
/* ---------- 01. VARIABLES ---------- */
:root {
  --bg: #07060D;
  --bg-2: #0A0913;
  --surface: #110F1C;
  --surface-2: #17142A;
  --surface-3: #1E1A36;
  --violet: #7C3AED;
  --violet-l: #A78BFA;
  --violet-xl: #C4B5FD;
  --blue: #2563EB;
  --blue-l: #60A5FA;
  --text: #EEEAFB;
  --muted: #A09CB8;
  --dim: #8A86A6;
  --line: rgba(167, 139, 250, .16);
  --line-soft: rgba(238, 234, 251, .08);
  --danger: #FB7185;
  --ok: #6EE7B7;

  --grad: linear-gradient(100deg, #8B5CF6 0%, #7C3AED 30%, #2563EB 72%, #3B82F6 100%);
  --grad-text: linear-gradient(95deg, #D8CCFF 0%, #A78BFA 38%, #7DB4FB 72%, #60A5FA 100%);
  --grad-line: linear-gradient(90deg, rgba(167,139,250,0), #A78BFA 30%, #60A5FA 70%, rgba(96,165,250,0));

  --f-display: 'Montserrat', 'Helvetica Neue', system-ui, sans-serif;
  --f-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --f-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;

  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1440px;
  --radius: 22px;
  --radius-s: 14px;
  --nav-h: 76px;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
  --ease-back: cubic-bezier(.34, 1.56, .64, 1);

  color-scheme: dark;
}

/* ---------- 02. BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: clip; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.65;
  font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: rgba(124, 58, 237, .55); color: #fff; }
:focus-visible { outline: 2px solid var(--blue-l); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

main, .footer { overflow-x: clip; }
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 1000;
  padding: 12px 18px; border-radius: 999px; background: var(--text); color: var(--bg);
  font-weight: 600; transform: translateY(-160%); transition: transform .3s var(--ease-out);
}
.skip-link:focus { transform: none; }

/* Mots en italique : serif + dégradé violet → bleu */
.accent, h1 em, h2 em, h3 em {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 560;
  letter-spacing: -.005em;
  padding-right: .04em; /* l'italique déborde : on lui laisse la place */
  /* L'italique est fine : le lissage « antialiased » du reste de la page
     l'amaigrirait trop, on garde le lissage normal. */
  -webkit-font-smoothing: auto; -moz-osx-font-smoothing: auto;
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--violet-l);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

.link-u {
  background: linear-gradient(90deg, var(--violet-l), var(--blue-l)) 0 100% / 100% 1px no-repeat;
  transition: background-size .5s var(--ease-out), color .3s;
  padding-bottom: 1px;
}
.link-u:hover { color: #fff; background-size: 0% 1px; background-position: 100% 100%; }

/* ---------- 03. GRAIN & AURORES ---------- */
.grain { position: fixed; inset: 0; z-index: 900; pointer-events: none; overflow: hidden; }
.grain::before {
  content: ''; position: absolute; left: -50%; top: -50%;
  width: 200%; height: 200%;
  opacity: .075;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 7s steps(9) infinite;
  will-change: transform;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  10% { transform: translate(-4%, -6%); } 20% { transform: translate(-9%, 3%); }
  30% { transform: translate(5%, -9%); } 40% { transform: translate(-3%, 10%); }
  50% { transform: translate(-10%, 4%); } 60% { transform: translate(8%, 0); }
  70% { transform: translate(0, 8%); } 80% { transform: translate(3%, 12%); }
  90% { transform: translate(-6%, 5%); }
}

.glow {
  position: absolute; pointer-events: none; border-radius: 50%;
  filter: blur(90px); opacity: .5; z-index: 0;
}
.glow--violet { background: radial-gradient(circle, rgba(124,58,237,.55), rgba(124,58,237,0) 70%); }
.glow--blue { background: radial-gradient(circle, rgba(37,99,235,.5), rgba(37,99,235,0) 70%); }

/* ---------- 04. BOUTONS ---------- */
.btn {
  --h: 54px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  height: var(--h); padding: 0 1.55em;
  border-radius: 999px;
  font-family: var(--f-body); font-weight: 560; font-size: 15px; letter-spacing: .01em;
  white-space: nowrap;
  isolation: isolate;
  overflow: hidden;
  transition: color .4s var(--ease-out), border-color .4s, box-shadow .5s var(--ease-out);
}
.btn__label { position: relative; display: inline-flex; align-items: center; gap: .6em; z-index: 1; }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; transition: transform .5s var(--ease-out); }
.btn:hover svg.arrow-r { transform: translateX(4px); }
.btn:hover svg.arrow-d { transform: translateY(3px); }

.btn--primary {
  color: #fff;
  background: var(--grad);
  background-size: 180% 100%;
  box-shadow: 0 10px 40px -12px rgba(124, 58, 237, .75), inset 0 1px 0 rgba(255,255,255,.22);
}
.btn--primary::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,.28) 50%, transparent 80%);
  transform: translateX(-120%); transition: transform .9s var(--ease-out);
}
.btn--primary:hover::before { transform: translateX(120%); }
.btn--primary:hover { box-shadow: 0 16px 50px -10px rgba(96, 165, 250, .6), inset 0 1px 0 rgba(255,255,255,.25); }

.btn--ghost {
  color: var(--text);
  border: 1px solid rgba(196, 181, 253, .26);
  background: rgba(17, 15, 28, .45);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.btn--ghost::before {
  content: ''; position: absolute; inset: -1px; z-index: 0; border-radius: inherit;
  background: var(--grad);
  clip-path: circle(0% at var(--bx, 50%) var(--by, 50%));
  transition: clip-path .6s var(--ease-out);
}
.btn--ghost:hover { border-color: transparent; color: #fff; }
.btn--ghost:hover::before { clip-path: circle(150% at var(--bx, 50%) var(--by, 50%)); }
.btn--sm { --h: 44px; padding: 0 1.2em; font-size: 14px; }

/* ---------- 05. ÉCRAN DE CHARGEMENT & RIDEAU ---------- */
.loader {
  position: fixed; inset: 0; z-index: 2000;
  display: grid; place-items: center;
  background: var(--bg);
  /* Filet de sécurité si le JavaScript ne s'exécute pas */
  animation: loaderSecours .6s 6s forwards;
}
.loader.is-js { animation: none; }
@keyframes loaderSecours { to { opacity: 0; visibility: hidden; } }
.loader__inner { display: grid; justify-items: center; gap: 28px; }
.loader__logo { width: 78px; height: auto; color: var(--text); overflow: visible; }
.loader__logo .trace {
  fill: none; stroke: url(#loaderGrad); stroke-width: 1.6;
  stroke-dasharray: 700; stroke-dashoffset: 700;
  animation: tracer 1.4s var(--ease-io) .1s forwards;
}
.loader__logo .plein { fill: currentColor; opacity: 0; animation: remplir .7s ease 1.1s forwards; }
@keyframes tracer { to { stroke-dashoffset: 0; } }
@keyframes remplir { to { opacity: 1; } }
.loader__meta { display: flex; align-items: baseline; gap: 18px; font-family: var(--f-display); }
.loader__pct { font-size: 15px; font-weight: 600; letter-spacing: .08em; font-variant-numeric: tabular-nums; min-width: 4ch; text-align: right; color: var(--text); }
.loader__bar { width: 140px; height: 1px; background: var(--line-soft); position: relative; overflow: hidden; }
.loader__bar i { position: absolute; inset: 0; background: var(--grad); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.loader__name { font-size: 11px; letter-spacing: .32em; text-transform: uppercase; color: var(--muted); font-family: var(--f-body); }

.curtain {
  position: fixed; inset: 0; z-index: 2100; pointer-events: none;
  display: grid; place-items: center;
  clip-path: inset(100% 0 0 0);
}
.curtain__panel { position: absolute; inset: 0; background: linear-gradient(160deg, #1B1040 0%, #4C1D95 28%, #7C3AED 50%, #2563EB 78%, #0B1B4D 100%); }
.curtain__logo { position: relative; width: 56px; color: #fff; opacity: .9; }
.curtain.is-covering { clip-path: inset(0 0 0 0); transition: clip-path .72s var(--ease-io); pointer-events: auto; }
html.arrive .curtain { clip-path: inset(0 0 0 0); transition: none; }
html.arrive .curtain.is-leaving { clip-path: inset(0 0 100% 0); transition: clip-path .9s var(--ease-io); }
html.arrive .loader { display: none; }

/* ---------- 06. CURSEUR PERSONNALISÉ ---------- */
.cursor { position: fixed; top: 0; left: 0; z-index: 1900; pointer-events: none; display: none; }
.has-cursor .cursor { display: block; }
.has-cursor, .has-cursor a, .has-cursor button, .has-cursor [data-cursor], .has-cursor label { cursor: none; }
.has-cursor input, .has-cursor textarea, .has-cursor select { cursor: auto; }
.cursor__dot, .cursor__ring { position: absolute; top: 0; left: 0; border-radius: 50%; will-change: transform; }
.cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: #fff; mix-blend-mode: difference; transition: opacity .3s, width .3s, height .3s, margin .3s; }
.cursor__ring {
  width: 30px; height: 30px; margin: -15px 0 0 -15px;
  border: 1px solid rgba(238, 234, 251, .55);
  display: grid; place-items: center;
  transition: width .5s var(--ease-out), height .5s var(--ease-out), margin .5s var(--ease-out), background-color .4s, border-color .4s, opacity .3s;
}
/* Étiquette retirée à ta demande (plus de « Voir » / « Lire ») */
.cursor__label { display: none;
  font-family: var(--f-display); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: #fff; opacity: 0; transform: scale(.6); transition: opacity .3s, transform .5s var(--ease-out);
}
.cursor.is-link .cursor__ring { width: 42px; height: 42px; margin: -21px 0 0 -21px; border-color: rgba(238,234,251,.9); background: transparent; }
.cursor.is-hidden .cursor__dot, .cursor.is-hidden .cursor__ring { opacity: 0; }
.cursor.is-down .cursor__ring { width: 24px; height: 24px; margin: -12px 0 0 -12px; }

/* Barre de progression du défilement */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 1200; pointer-events: none; }
.progress i { position: absolute; inset: 0; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); box-shadow: 0 0 12px rgba(124,58,237,.8); }

/* ---------- 07. NAVIGATION ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1100;
  height: var(--nav-h);
  transition: transform .6s var(--ease-out), background-color .5s, border-color .5s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(7, 6, 13, .62);
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line-soft);
}
.nav.is-hidden { transform: translateY(-105%); }
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav__logo { display: inline-flex; align-items: center; gap: 12px; font-family: var(--f-display); font-weight: 700; font-size: 16px; letter-spacing: .01em; }
.nav__logo svg { width: 26px; height: auto; color: var(--text); transition: transform .8s var(--ease-out); }
.nav__logo:hover svg { transform: rotate(-8deg) scale(1.06); }
.nav__menu { display: flex; align-items: center; gap: 10px; }
.nav__list { position: relative; display: flex; align-items: center; gap: 2px; padding: 5px; border-radius: 999px; border: 1px solid var(--line-soft); background: rgba(17, 15, 28, .4); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.nav__link {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 16px; border-radius: 999px;
  font-size: 14px; font-weight: 500; color: var(--muted);
  transition: color .35s;
}
.nav__link small { font-size: 10.5px; font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: .04em; color: var(--dim); transition: color .35s; }
.nav__link:hover, .nav__link.is-active { color: var(--text); }
.nav__link.is-active small { color: var(--violet-xl); }
.nav__pill {
  position: absolute; top: 5px; left: 0; height: 38px; width: 0; z-index: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(124,58,237,.32), rgba(37,99,235,.3));
  box-shadow: inset 0 0 0 1px rgba(167,139,250,.35);
  opacity: 0;
  transition: transform .6s var(--ease-out), width .6s var(--ease-out), opacity .4s;
}
.nav__cta { margin-left: 6px; }
.nav__burger { display: none; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: rgba(17,15,28,.5); position: relative; }
.nav__burger span { position: absolute; left: 14px; right: 14px; height: 1.5px; background: var(--text); border-radius: 2px; transition: transform .5s var(--ease-out), top .5s var(--ease-out); }
.nav__burger span:nth-child(1) { top: 19px; }
.nav__burger span:nth-child(2) { top: 27px; }
.menu-open .nav__burger span:nth-child(1) { top: 23px; transform: rotate(45deg); }
.menu-open .nav__burger span:nth-child(2) { top: 23px; transform: rotate(-45deg); }

/* Menu plein écran (mobile) */
.menu {
  position: fixed; inset: 0; z-index: 1050;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(var(--nav-h) + 20px) var(--gutter) 36px;
  background: radial-gradient(120% 70% at 100% 0%, rgba(124,58,237,.35), transparent 60%), radial-gradient(90% 60% at 0% 100%, rgba(37,99,235,.28), transparent 60%), var(--bg);
  clip-path: inset(0 0 100% 0);
  /* visibility attend la fin du rideau : le menu se referme en glissant,
     et ses liens ne sont plus atteignables au clavier une fois fermé */
  transition: clip-path .8s var(--ease-io), visibility 0s linear .8s;
  visibility: hidden;
}
.menu-open .menu { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .8s var(--ease-io), visibility 0s; }
.menu__list { display: grid; gap: 4px; }
.menu__link { display: flex; align-items: baseline; gap: 14px; font-family: var(--f-display); font-weight: 700; font-size: clamp(2.4rem, 12vw, 4rem); line-height: 1.08; letter-spacing: -.02em; }
.menu__link small { font-size: 12px; font-weight: 600; color: var(--violet-l); letter-spacing: .1em; }
.menu__link > span { display: inline-block; }
.menu__foot { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- 08. HERO ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: 100vh; min-height: 100svh;
  padding: calc(var(--nav-h) + clamp(28px, 6vh, 80px)) 0 clamp(72px, 10vh, 120px);
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.6s ease; }
.hero__canvas.is-on { opacity: 1; }
/* Repli CSS : lueurs floues animées (visible sans WebGL) */
.hero__fallback { position: absolute; inset: 0; overflow: hidden; }
.hero__fallback span { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; animation: derive 18s ease-in-out infinite alternate; }
.hero__fallback span:nth-child(1) { width: 60vw; height: 60vw; right: -12vw; top: -22vw; background: radial-gradient(circle, rgba(124,58,237,.8), transparent 65%); }
.hero__fallback span:nth-child(2) { width: 46vw; height: 46vw; right: 18vw; top: 8vh; background: radial-gradient(circle, rgba(37,99,235,.7), transparent 65%); animation-duration: 22s; animation-delay: -6s; }
.hero__fallback span:nth-child(3) { width: 40vw; height: 40vw; left: -14vw; top: 10vh; background: radial-gradient(circle, rgba(167,139,250,.35), transparent 65%); animation-duration: 26s; animation-delay: -12s; }
@keyframes derive { to { transform: translate3d(-6vw, 8vh, 0) scale(1.15); } }
.hero__canvas.is-on ~ .hero__fallback { opacity: 0; transition: opacity 1.6s; }
.hero__bg::after { /* fondu vers le fond de page */
  content: ''; position: absolute; inset: auto 0 0 0; height: 45%;
  background: linear-gradient(to bottom, rgba(7,6,13,0), var(--bg));
}
.hero__lines { position: absolute; inset: 0; background-image: linear-gradient(rgba(238,234,251,.035) 1px, transparent 1px); background-size: 100% 88px; mask-image: radial-gradient(80% 60% at 70% 30%, #000, transparent); -webkit-mask-image: radial-gradient(80% 60% at 70% 30%, #000, transparent); }

.hero__inner { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: end; }
.hero__badge {
  grid-column: 1 / -1; justify-self: start;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 12px; border-radius: 999px;
  font-size: 13px; font-weight: 500; color: var(--text);
  border: 1px solid var(--line); background: rgba(17,15,28,.45);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  margin-bottom: clamp(18px, 3vh, 30px);
}
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.pulse::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid var(--ok); animation: pulse 2.2s var(--ease-out) infinite; }
@keyframes pulse { from { transform: scale(.5); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }

.hero__title {
  grid-column: 1 / -1;
  position: relative; z-index: 2;
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(3.3rem, 10.2vw, 11.4rem);
  line-height: .9; letter-spacing: -.045em;
  margin: 0 0 clamp(22px, 3.4vh, 40px) -.04em;
  white-space: nowrap;
}
.hero__title .s-char { will-change: transform; }
.hero__title .s-char-mask { padding: .02em .02em .1em; margin: -.02em -.02em -.1em; }
.hero__col { grid-column: 1 / span 7; position: relative; z-index: 2; }
.hero__subtitle { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.25rem, 2vw, 1.75rem); line-height: 1.25; letter-spacing: -.01em; color: var(--text); margin-bottom: 16px; }
.hero__subtitle strong { font-weight: 700; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero__text { max-width: 600px; color: var(--muted); font-size: clamp(15.5px, 1.15vw, 17.5px); }
.hero__text strong { color: var(--text); font-weight: 600; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(24px, 4vh, 36px); }
.hero__stats { display: flex; gap: clamp(22px, 4vw, 56px); margin-top: clamp(26px, 4vh, 44px); padding-top: 20px; border-top: 1px solid var(--line-soft); max-width: 620px; }
.hero__stats li { display: grid; gap: 2px; }
.hero__stats strong { font-family: var(--f-display); font-weight: 600; font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.hero__stats strong .suf { font-family: var(--f-body); font-weight: 300; margin-left: .04em; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero__stats li > span { font-size: 13px; color: var(--muted); }

/* Pile de trois photos en relief */
.hero__stack {
  grid-column: 8 / -1; align-self: center; justify-self: center;
  position: relative; width: min(100%, 440px); aspect-ratio: 1 / 1.08;
  perspective: 1100px; z-index: 1;
}
/* Ordinateur : la pile flotte à droite sans pousser le texte */
@media (min-width: 961px) {
  .hero__stack { position: absolute; right: 0; bottom: -1vh; width: min(37vw, 58vh, 470px); }
}
.stack { position: absolute; inset: 0; transform-style: preserve-3d; will-change: transform; }
.stack__card {
  position: absolute; width: 52%; aspect-ratio: 2 / 3;
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(196,181,253,.14);
  background: var(--surface);
  will-change: transform;
}
.stack__card img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.14); }
.stack__card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(124,58,237,.18), transparent 40%, rgba(37,99,235,.2)); mix-blend-mode: soft-light; }
.stack__card--1 { left: 24%; top: 6%; z-index: 3; transform: translateZ(90px) rotate(-3deg); }
.stack__card--2 { left: 0; top: 18%; z-index: 2; transform: translateZ(20px) rotate(-11deg); }
.stack__card--3 { left: 48%; top: 20%; z-index: 1; transform: translateZ(-40px) rotate(9deg); }

.hero__scroll {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  display: grid; justify-items: center; gap: 10px;
  font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted);
}
.hero__scroll-line { width: 1px; height: 44px; background: rgba(238,234,251,.12); position: relative; overflow: hidden; }
.hero__scroll-line::after { content: ''; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: linear-gradient(var(--violet-l), var(--blue-l)); animation: descente 2.2s var(--ease-io) infinite; }
@keyframes descente { to { top: 110%; } }

/* ---------- 09. BANDEAU DÉFILANT ---------- */
.marquee {
  position: relative; overflow: hidden;
  padding: clamp(10px, 1.2vw, 16px) 0;
  border-block: 1px solid var(--line-soft);
  background: linear-gradient(90deg, rgba(124,58,237,.06), rgba(37,99,235,.06));
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__group { display: flex; align-items: center; flex: none; }
.marquee__item {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(1.25rem, 2.6vw, 2.4rem); line-height: 1.2; letter-spacing: -.03em;
  white-space: nowrap; padding: 0 .35em;
}
.marquee__item:nth-child(4n+3) { color: transparent; -webkit-text-stroke: 1px rgba(196,181,253,.6); }
.marquee__star { flex: none; width: clamp(12px, 1.3vw, 20px); height: auto; margin: 0 .3em; fill: url(#gradStar); }

/* ---------- 10. SECTIONS ---------- */
.section { position: relative; padding: clamp(76px, 10vw, 150px) 0; }
.section--tight-top { padding-top: clamp(56px, 6.5vw, 96px); }
#a-propos { padding-top: clamp(50px, 6vw, 86px); }
.section__head { position: relative; display: grid; gap: 20px; margin-bottom: clamp(48px, 6vw, 88px); max-width: 980px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--f-display); font-size: 12.5px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before { content: ''; width: 42px; height: 1px; background: linear-gradient(90deg, var(--violet-l), var(--blue-l)); }
.eyebrow b { font-weight: 700; color: var(--violet-xl); letter-spacing: .08em; }
.title {
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(2.5rem, 6.4vw, 6.2rem);
  line-height: .98; letter-spacing: -.04em;
  text-wrap: balance;
}
.title em { line-height: .9; }
.lead { font-size: clamp(16.5px, 1.35vw, 19.5px); color: var(--muted); max-width: 640px; line-height: 1.6; }
.s-line-mask { padding: .04em .14em .16em 0; margin: -.04em -.14em -.16em 0; }

/* ---------- 11. À PROPOS ---------- */
.about { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.panel {
  position: relative; isolation: isolate;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(23,20,42,.72), rgba(17,15,28,.72));
  border: 1px solid var(--line-soft);
  padding: clamp(24px, 3vw, 44px);
  overflow: hidden;
}
.panel::before { /* lueur qui suit la souris */
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(200px circle at var(--mx, 50%) var(--my, -20%), rgba(124,58,237,.12), transparent 70%);
  opacity: 0; transition: opacity .5s;
}
.panel:hover::before { opacity: 1; }
.panel::after { /* liseré dégradé */
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgba(167,139,250,.35), rgba(167,139,250,0) 35%, rgba(96,165,250,0) 65%, rgba(96,165,250,.3));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.panel__title { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.3rem, 1.9vw, 1.65rem); letter-spacing: -.025em; line-height: 1.15; margin-bottom: 22px; }
.panel__title small { display: block; font-family: var(--f-body); font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--violet-l); margin-bottom: 10px; }

.bio { grid-column: 1 / span 7; display: grid; align-content: start; }
/* Intro façon message : portrait en petite bulle, texte à droite */
.bio__intro { display: flex; align-items: flex-start; gap: clamp(14px, 1.6vw, 20px); }
.bio__intro p { font-size: clamp(16.5px, 1.35vw, 19px); line-height: 1.65; color: var(--text); }
.bio__intro strong { font-weight: 600; }
.bio__intro a { color: var(--violet-xl); }
.bio__avatar {
  flex: none; width: clamp(54px, 5vw, 66px); aspect-ratio: 1; margin-top: 3px;
  border-radius: 50%; padding: 2px;
  background: linear-gradient(140deg, var(--violet-l), var(--violet) 45%, var(--blue-l));
  box-shadow: 0 8px 22px -10px rgba(124,58,237,.7);
  transition: transform .6s var(--ease-back);
}
.bio__avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: 50% 35%; border: 2px solid var(--surface); }
.bio__avatar:hover { transform: scale(1.08) rotate(-4deg); }
/* Sur téléphone, la suite de la bio est repliée derrière un bouton (comme sur l'ancien site) */
.bio-toggle { display: none; align-items: center; gap: 10px; margin-top: 24px; padding: 10px 18px 10px 20px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; font-weight: 550; color: var(--text); transition: background-color .3s, border-color .3s; justify-self: start; }
.bio-toggle:hover { background: rgba(124,58,237,.14); border-color: rgba(167,139,250,.5); }
.bio-toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .5s var(--ease-out); }
.bio-toggle[aria-expanded='true'] svg { transform: rotate(180deg); }
.bio-panel { display: grid; grid-template-rows: 1fr; }
.bio-panel > div { min-height: 0; overflow: hidden; }
.bio-panel p { color: var(--muted); margin-top: 18px; max-width: 62ch; }
.bio-panel p:first-child { margin-top: 26px; }
.bio-panel strong { color: var(--text); font-weight: 600; }
@media (max-width: 700px) {
  .js .bio-toggle { display: inline-flex; }
  .js .bio-panel { grid-template-rows: 0fr; transition: grid-template-rows .7s var(--ease-out); }
  .js .bio-panel.is-open, .is-failsafe .bio-panel { grid-template-rows: 1fr; }
}

.tools-panel { grid-column: 8 / -1; }
.skills-panel { grid-column: 1 / span 6; }
.tools { display: grid; grid-template-columns: 1fr; gap: 8px; }
.tools li {
  display: grid; grid-template-columns: 32px 1fr auto; column-gap: 14px; align-items: center;
  padding: 11px 16px 11px 12px; border-radius: 14px; background: rgba(7,6,13,.45); border: 1px solid var(--line-soft);
  transition: border-color .4s, transform .5s var(--ease-out), background-color .4s;
}
.tools li:hover { border-color: rgba(167,139,250,.35); background: rgba(124,58,237,.08); transform: translateX(4px); }
.tools__logo { width: 32px; height: 32px; border-radius: 8px; }
.tools__name { font-weight: 600; font-size: 15px; line-height: 1.25; }
.tools__tag { font-size: 12px; font-weight: 500; letter-spacing: .04em; color: var(--muted); line-height: 1.3; text-align: right; padding: 4px 10px; border-radius: 999px; background: rgba(167,139,250,.08); }
@media (min-width: 701px) and (max-width: 960px) { .tools { grid-template-columns: 1fr 1fr; } }

.metiers { display: grid; gap: 16px; }
.metiers li { display: grid; gap: 4px; padding-left: 18px; position: relative; }
.metiers li::before { content: ''; position: absolute; left: 0; top: .6em; width: 7px; height: 7px; border-radius: 2px; background: var(--grad); transform: rotate(45deg); }
.metiers b { font-family: var(--f-display); font-weight: 700; font-size: 17px; letter-spacing: -.01em; }
.metiers span { color: var(--muted); font-size: 15px; line-height: 1.55; }
.facts { display: grid; gap: 0; margin: 28px 0 0; border-top: 1px solid var(--line-soft); }
.facts__row { display: grid; grid-template-columns: 110px 1fr; gap: 4px 16px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.facts dt { grid-row: 1 / span 2; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--violet-l); padding-top: 3px; }
.facts dd { margin: 0; font-size: 15px; font-weight: 500; }
.facts dd span { color: var(--muted); font-weight: 400; }
.facts dd span::before { content: ' · '; color: var(--dim); }

.path-panel { grid-column: 7 / -1; }
.timeline { position: relative; display: grid; gap: 30px; padding-left: 36px; }
.timeline__rail { position: absolute; left: 8px; top: 8px; bottom: 8px; width: 2px; background: rgba(238,234,251,.08); border-radius: 2px; }
.timeline__rail i { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(var(--violet-l), var(--violet) 50%, var(--blue-l)); transform-origin: 50% 0; box-shadow: 0 0 14px rgba(124,58,237,.7); }
.timeline__item { position: relative; }
.timeline__item::before {
  content: ''; position: absolute; left: -36px; top: 5px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--bg); border: 2px solid rgba(238,234,251,.18);
  transition: border-color .5s, box-shadow .5s, background-color .5s;
}
.timeline__item.is-on::before { border-color: var(--violet-l); background: var(--violet); box-shadow: 0 0 0 5px rgba(124,58,237,.18), 0 0 18px rgba(124,58,237,.8); }
.timeline__date { display: inline-block; font-family: var(--f-display); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-l); margin-bottom: 6px; }
.timeline__item h4 { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.1rem, 1.5vw, 1.3rem); letter-spacing: -.01em; line-height: 1.3; margin-bottom: 6px; }
.timeline__item p { color: var(--muted); font-size: 15.5px; max-width: 58ch; }
.livrables { margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line-soft); }
.facts + .livrables { border-top: 0; padding-top: 0; margin-top: 30px; }
.livrables__label { font-family: var(--f-display); font-weight: 700; font-size: 1.1rem; letter-spacing: -.01em; margin-bottom: 14px; }
.checklist { display: flex; flex-wrap: wrap; gap: 10px; }
.checklist li { display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px 9px 10px; border-radius: 999px; background: rgba(7,6,13,.45); border: 1px solid var(--line-soft); font-weight: 500; font-size: 14.5px; }
.checklist svg { flex: none; width: 20px; height: 20px; padding: 4px; border-radius: 50%; background: var(--grad); fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- 12. PHOTOS ---------- */
.section-intro { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: end; margin-bottom: clamp(56px, 7vw, 100px); }
.section-intro .section__head { grid-column: 1 / span 8; margin: 0; }
.section-intro .note { grid-column: 9 / -1; }
.note { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 16px; border: 1px solid var(--line-soft); background: rgba(17,15,28,.6); font-size: 14px; color: var(--muted); line-height: 1.5; }
.note svg { flex: none; width: 20px; height: 20px; fill: none; stroke: var(--blue-l); stroke-width: 1.8; stroke-linecap: round; margin-top: 1px; }

/* Rangées qui défilent de droite à gauche (photos, vidéos, graphisme) :
   une seule ligne, pleine largeur d'écran, avec sa barre de défilement */
.rail { position: relative; }
.rail__track {
  display: flex; align-items: flex-start; gap: clamp(16px, 2vw, 28px);
  overflow-x: auto; overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  margin-inline: calc(50% - 50vw);
  padding: 12px max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter))) 34px;
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter)));
  cursor: grab;
}
.rail__track::-webkit-scrollbar { display: none; }
.rail__track:focus-visible { outline-offset: -4px; }
.rail__track img { -webkit-user-drag: none; user-select: none; }
.rail__track > * { flex: none; scroll-snap-align: start; }
.rail__track.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.rail__track.is-dragging .work__media, .rail__track.is-dragging .reel__media { pointer-events: none; }
.has-cursor .rail__track { cursor: none; }
.rail--photos .work { width: clamp(250px, 25vw, 380px); }
.rail--videos .reel { width: clamp(220px, 21vw, 310px); }
.rail__bar { display: flex; align-items: center; gap: 22px; margin-top: 6px; }
.rail__scroll { position: relative; flex: 1; height: 4px; border-radius: 4px; background: rgba(238,234,251,.09); cursor: pointer; touch-action: none; }
.rail__scroll::before { content: ''; position: absolute; left: 0; right: 0; top: -12px; bottom: -12px; }
.rail__thumb {
  position: absolute; left: 0; top: 0; height: 100%; width: 25%; min-width: 40px;
  border-radius: inherit; background: var(--grad);
  box-shadow: 0 0 10px rgba(124,58,237,.55);
  transition: height .3s var(--ease-out), top .3s var(--ease-out);
}
.rail__scroll:hover .rail__thumb, .rail__scroll.is-dragging .rail__thumb { height: 8px; top: -2px; }
.rail__btns { display: flex; gap: 8px; flex: none; }
.rail__btn { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); background: rgba(17,15,28,.6); color: var(--text); transition: background-color .3s, border-color .3s, opacity .3s; }
.rail__btn:hover:not(:disabled) { background: rgba(124,58,237,.22); border-color: rgba(167,139,250,.6); }
.rail__btn:disabled { opacity: .3; cursor: default; }
.rail__btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rail.is-static .rail__bar { display: none; }   /* tout tient à l'écran : pas de barre, et pas de vide à sa place */
/* La rangée du graphisme n'est pas dans un conteneur centré : on aligne sa barre sur la grille */
.rail--graphic .rail__bar { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- 15. CARTES (commun photos, graphisme) ---------- */
.work { position: relative; }
.work__media {
  position: relative; display: block; width: 100%;
  aspect-ratio: var(--ar, 2 / 3);
  border-radius: var(--radius); overflow: hidden;
  background: var(--surface);
  transform-style: preserve-3d;
  will-change: transform;
  box-shadow: 0 30px 70px -40px rgba(0,0,0,.95);
  text-align: left;
}
.work__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.001); transition: transform 1.2s var(--ease-out), filter 1s var(--ease-out); }
.work__media:hover img, .work__media:focus-visible img { transform: scale(1.085); }
.work__veil { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(155deg, rgba(124,58,237,.9), rgba(37,99,235,.85)); mix-blend-mode: soft-light; opacity: 0; transition: opacity .8s var(--ease-out); }
.work__media::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(7,6,13,0) 55%, rgba(7,6,13,.55)); opacity: .9; transition: opacity .8s; }
.work__media:hover .work__veil, .work__media:focus-visible .work__veil { opacity: 1; }
.work__shine { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.1), transparent 60%); opacity: 0; transition: opacity .6s; }
.work__media:hover .work__shine { opacity: 1; }
.work__count {
  position: absolute; left: 16px; top: 16px; z-index: 3;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .02em; color: #fff;
  background: rgba(7,6,13,.5); border: 1px solid rgba(255,255,255,.14);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.work__count::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: linear-gradient(135deg, var(--violet-l), var(--blue-l)); }
.work__open {
  position: absolute; right: 16px; bottom: 16px; z-index: 3;
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(238,234,251,.92); color: var(--bg);
  transform: scale(.6) rotate(-45deg); opacity: 0;
  transition: transform .6s var(--ease-back), opacity .4s;
}
.work__open svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.work__media:hover .work__open, .work__media:focus-visible .work__open { transform: none; opacity: 1; }
.work__caption { padding: 20px 4px 0; display: grid; gap: 4px; }
.work__tag { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--violet-l); }
.work__title { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.2rem, 1.7vw, 1.6rem); line-height: 1.15; letter-spacing: -.02em; }
.work__meta { color: var(--muted); font-size: 14.5px; }
.work.is-lifted .work__media { visibility: hidden; }

/* ---------- 13. VIDÉOS ---------- */
.section--alt { background: linear-gradient(180deg, var(--bg), var(--bg-2) 20%, var(--bg-2) 80%, var(--bg)); }
.reel { position: relative; }
.reel__media {
  position: relative; display: block; width: 100%; aspect-ratio: 9 / 16;
  border-radius: var(--radius); overflow: hidden; background: var(--surface);
  box-shadow: 0 30px 70px -40px rgba(0,0,0,.95), 0 0 0 1px var(--line-soft);
  transition: box-shadow .6s var(--ease-out), transform .8s var(--ease-out);
}
.reel__media:hover { box-shadow: 0 40px 80px -30px rgba(124,58,237,.55), 0 0 0 1px rgba(167,139,250,.45); transform: translateY(-6px); }
.reel__poster, .reel__preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel__poster { z-index: 1; transition: opacity .6s, transform 1.2s var(--ease-out); }
.reel__preview { z-index: 0; }
.reel.is-playing .reel__poster { opacity: 0; }
.reel__media:hover .reel__poster { transform: scale(1.04); }
.reel__media::after { content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(180deg, rgba(7,6,13,.45), rgba(7,6,13,0) 26%, rgba(7,6,13,0) 60%, rgba(7,6,13,.7)); }
.reel__badges { position: absolute; top: 14px; left: 14px; right: 14px; z-index: 3; display: flex; justify-content: space-between; gap: 8px; }
.reel__badges > span { padding: 6px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: rgba(7,6,13,.55); border: 1px solid rgba(255,255,255,.14); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-variant-numeric: tabular-nums; }
.reel__vues { background: linear-gradient(135deg, rgba(124,58,237,.85), rgba(37,99,235,.85)) !important; border-color: rgba(196,181,253,.4) !important; }
.reel__play {
  position: absolute; left: 50%; top: 50%; z-index: 3;
  width: 66px; height: 66px; margin: -33px 0 0 -33px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(238,234,251,.14); border: 1px solid rgba(255,255,255,.35);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: transform .6s var(--ease-back), opacity .4s;
}
.reel__play svg { width: 22px; height: 22px; fill: #fff; margin-left: 3px; }
.reel.is-playing .reel__play { transform: scale(.7); opacity: 0; }
.reel__progress { position: absolute; left: 14px; right: 14px; bottom: 14px; height: 2px; z-index: 3; background: rgba(255,255,255,.18); border-radius: 2px; overflow: hidden; opacity: 0; transition: opacity .4s; }
.reel__progress i { position: absolute; inset: 0; background: linear-gradient(90deg, var(--violet-l), var(--blue-l)); transform-origin: 0 50%; transform: scaleX(0); }
.reel.is-playing .reel__progress { opacity: 1; }
.reel.is-loading .reel__play::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid transparent; border-top-color: #fff; animation: tourne .8s linear infinite; }
@keyframes tourne { to { transform: rotate(360deg); } }
.reel__caption { padding: 18px 4px 0; display: grid; gap: 4px; }
.reel.is-lifted .reel__media { visibility: hidden; }

/* ---------- 14. GRAPHISME (défilement horizontal épinglé sur ordinateur) ---------- */
.graphic { position: relative; overflow: hidden; padding: clamp(76px, 9.5vw, 136px) 0; }
.graphic__pin { position: relative; }
.graphic__head { margin-bottom: clamp(40px, 5vw, 64px); }
.graphic__intro { display: grid; gap: 20px; max-width: 820px; }
.gcard { display: grid; align-content: start; }
.gcard .work__media { height: clamp(320px, 54vh, 560px); width: auto; max-width: 84vw; aspect-ratio: var(--ar); }
.gcard .work__caption { max-width: 34ch; }
.gcard .doc-btn { margin-top: 12px; justify-self: start; }

/* ---------- 16. CONTACT (tout centré, comme l'ancien site) ---------- */
.contact { position: relative; overflow: hidden; text-align: center; padding-bottom: clamp(68px, 7.5vw, 108px); }
.contact .glow--violet { width: 60vw; height: 60vw; left: 20vw; top: -26vw;
  /* La section coupe ce qui dépasse en haut (à 43 % du halo) : on efface le halo
     en fondu à cet endroit, sinon il s'arrête net sur une ligne droite.
     Le flou est remplacé par un dégradé très progressif : avec le fondu, le flou
     laissait deviner le bord du cercle. */
  filter: none;
  background: radial-gradient(circle closest-side, rgba(124,58,237,.5), rgba(124,58,237,.36) 30%, rgba(124,58,237,.17) 58%, rgba(124,58,237,.05) 82%, rgba(124,58,237,0));
  -webkit-mask-image: linear-gradient(180deg, transparent 43%, #000 72%); mask-image: linear-gradient(180deg, transparent 43%, #000 72%); }
.contact .glow--blue { width: 46vw; height: 46vw; left: 27vw; bottom: -30vw; opacity: .35; }
.contact__inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.eyebrow--center::after { content: ''; width: 42px; height: 1px; background: linear-gradient(90deg, var(--blue-l), var(--violet-l)); }
.contact__title { font-family: var(--f-display); font-weight: 600; font-size: clamp(2.5rem, 6.4vw, 6.2rem); line-height: .98; letter-spacing: -.04em; margin: 22px 0 24px; text-wrap: balance; }
.contact__text { color: var(--muted); font-size: clamp(16.5px, 1.3vw, 19px); max-width: 46ch; margin-bottom: clamp(36px, 5vw, 56px); }
.contact__delai { display: block; margin-top: 10px; color: var(--text); font-weight: 600; }
.mail-copy { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; margin-top: 30px; font-size: 15px; color: var(--muted); }
.mail-copy__btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(17,15,28,.6); color: var(--text); font-weight: 550; font-size: 15px;
  transition: border-color .3s, background-color .3s;
}
.mail-copy__btn:hover { border-color: rgba(167,139,250,.6); background: rgba(124,58,237,.14); }
.mail-copy__btn svg { width: 16px; height: 16px; fill: none; stroke: var(--violet-l); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 24px; }
.contact__cv-note { max-width: 44ch; margin: 12px auto 0; font-size: 12.5px; line-height: 1.5; color: var(--muted); text-align: center; }
.contact__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px; margin-top: 26px; }
.contact__link { position: relative; display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 500; font-size: 15px; transition: color .3s; }
.contact__link::after { content: ''; position: absolute; left: 30px; right: 0; bottom: -4px; height: 1px; background: linear-gradient(90deg, var(--violet-l), var(--blue-l)); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease-out); }
.contact__link:hover { color: var(--text); }
.contact__link:hover::after { transform: scaleX(1); transform-origin: left; }
.contact__link svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.contact__link svg .plein { fill: currentColor; stroke: none; }

.form-card { width: 100%; max-width: 720px; padding: clamp(22px, 3vw, 40px); text-align: left; }
.form { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form__leurre { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field { position: relative; }
.field--wide { grid-column: 1 / -1; }
.field input, .field select, .field textarea {
  width: 100%; height: 62px; padding: 24px 18px 8px;
  border-radius: 14px; border: 1px solid rgba(238,234,251,.12);
  background: rgba(7,6,13,.55);
  font-size: 16px; color: var(--text);
  transition: border-color .35s, box-shadow .45s var(--ease-out), background-color .35s;
  appearance: none; -webkit-appearance: none;
}
.field textarea { height: auto; min-height: 150px; resize: vertical; padding-top: 28px; line-height: 1.55; }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A78BFA' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 18px; padding-right: 44px; }
.field select option { background: var(--surface); color: var(--text); }
.field label {
  position: absolute; left: 19px; top: 20px; pointer-events: none;
  font-size: 16px; color: var(--muted);
  transform-origin: 0 0;
  transition: transform .45s var(--ease-out), color .3s;
}
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field--select label, .field--exemple label { transform: translateY(-11px) scale(.76); color: var(--violet-xl); }
/* Champ avec un exemple écrit en gris : l'intitulé reste en haut, l'exemple dessous */
.field--exemple textarea::placeholder { color: var(--muted); opacity: .75; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: rgba(167,139,250,.7); background: rgba(17,15,28,.85);
  box-shadow: 0 0 0 4px rgba(124,58,237,.18), 0 0 36px -6px rgba(96,165,250,.5);
}
.field.is-invalid input, .field.is-invalid textarea { border-color: rgba(251,113,133,.7); }
.field__error { margin: 6px 4px 0; font-size: 13px; color: var(--danger); }
.form__foot { grid-column: 1 / -1; display: grid; gap: 10px; margin-top: 6px; }
.form__submit { width: 100%; }
.form__submit .spin { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: tourne .8s linear infinite; }
.form.is-sending .form__submit { pointer-events: none; }
.form.is-sending .form__submit .spin { display: inline-block; }
.form.is-sending .form__submit svg.arrow-r { display: none; }
.form__submit.is-shake { animation: secoue .5s var(--ease-out); }
@keyframes secoue { 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }
.form__status { font-size: 14px; color: var(--muted); min-height: 1.4em; text-align: center; }
.form__status.is-error { color: var(--danger); }
.form__success {
  position: absolute; inset: 0; z-index: 2;
  display: grid; place-content: center; justify-items: center; gap: 10px; text-align: center;
  /* Sans fond propre : les champs sont déjà masqués, la confirmation se fond
     dans le cadre (un fond distinct y dessinait une bordure grise) */
  background: transparent;
}
.form.is-sent > :not(.form__success) { visibility: hidden; }
.form__success svg { width: 76px; height: 76px; }
.form__success circle { fill: none; stroke: url(#gradOk); stroke-width: 2; stroke-dasharray: 220; stroke-dashoffset: 220; }
.form__success path { fill: none; stroke: #fff; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; }
.form__success.is-shown circle { animation: trace .9s var(--ease-out) forwards; }
.form__success.is-shown path { animation: trace .5s var(--ease-out) .55s forwards; }
@keyframes trace { to { stroke-dashoffset: 0; } }
.form__merci { font-family: var(--f-display); font-weight: 700; font-size: 1.6rem; }
.form__suite { color: var(--muted); }

/* ---------- 16 bis. TÉMOIGNAGES (activés dès qu'il y a de vrais textes) ---------- */
.temoignages { padding-bottom: 0; }
/* Contenu provisoire : masqué en ligne, visible seulement en aperçu local */
html:not(.apercu-local) [data-exemple] { display: none !important; }
.etiquette-exemple { position: absolute; top: 16px; right: 16px; z-index: 2; margin: 0; padding: 4px 10px; border: 1px dashed rgba(251, 191, 36, .55); border-radius: 999px; font-size: 11.5px; line-height: 1.3; color: #FCD34D; }
.temoignages .eyebrow { margin-bottom: 28px; }
.temoignages__grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 24px; }
.temoignage { display: grid; grid-template-rows: auto 1fr auto; gap: 18px; }
.temoignage__guillemet {
  font-family: var(--f-serif); font-style: italic; font-weight: 560; font-size: 88px; line-height: .5; height: 38px;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.temoignage__texte { margin: 0; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.6; color: var(--text); }
.temoignage__auteur { display: flex; align-items: center; gap: 14px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.temoignage__avatar { flex: none; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px var(--line), 0 10px 24px -12px rgba(0, 0, 0, .9); }
.temoignage__avatar--logo { object-fit: contain; padding: 7px 10px; background: var(--surface-3); }
.temoignage__qui { display: grid; gap: 2px; min-width: 0; }
.temoignage__qui strong { font-family: var(--f-display); font-weight: 700; font-size: 16px; }
.temoignage__qui span { font-size: 14px; color: var(--muted); }

/* ---------- 17. PIED DE PAGE (compact, comme l'ancien site) ---------- */
.footer { position: relative; padding: 34px 0 36px; background: linear-gradient(180deg, rgba(124,58,237,.05), rgba(7,6,13,0)); }
.footer::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--grad-line); opacity: .55; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 40px; }
.footer__brand { display: flex; align-items: center; gap: 18px; }
.footer__logo { width: 36px; height: 42px; color: var(--text); flex: none; }
.footer__brand-text { display: grid; gap: 5px; padding-left: 18px; border-left: 1px solid var(--line); }
.footer__brand-name { font-family: var(--f-display); font-weight: 700; font-size: 17px; letter-spacing: -.01em; }
.footer__brand-baseline { font-size: 11px; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); }
.footer__legal { margin-left: auto; display: grid; gap: 4px; text-align: right; font-size: 13.5px; color: var(--muted); }
.footer__liens { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 10px; }
.footer__liens a { color: var(--text); }
.footer__top { flex: none; width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: background-color .3s, border-color .3s; }
.footer__top:hover { background: rgba(124,58,237,.18); border-color: rgba(167,139,250,.6); }
.footer__top svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- 18. VISIONNEUSE PHOTO ---------- */
.lb { position: fixed; inset: 0; z-index: 1500; }
.lb__backdrop { position: absolute; inset: 0; background: rgba(5,4,10,.94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); opacity: 0; }
.lb__stage { position: absolute; inset: 0; touch-action: pan-y; }
.lb__img { position: absolute; left: 0; top: 0; border-radius: 10px; object-fit: contain; user-select: none; -webkit-user-drag: none; box-shadow: 0 40px 120px -30px rgba(0,0,0,.9); will-change: transform, opacity; }
.lb__ui { position: absolute; inset: 0; pointer-events: none; opacity: 0; }
.lb__ui > * { pointer-events: auto; }
.lb__top { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px var(--gutter); }
.lb__caption { font-size: 14px; color: var(--muted); max-width: 70ch; }
.lb__caption strong { font-family: var(--f-display); font-weight: 700; color: var(--text); letter-spacing: .01em; margin-right: 6px; }
.lb__right { display: flex; align-items: center; gap: 16px; }
.lb__counter { white-space: nowrap; font-size: 14px; font-weight: 600; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.lb__counter b { color: var(--violet-xl); }
.icon-btn { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(238,234,251,.18); background: rgba(17,15,28,.6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: background-color .3s, border-color .3s, transform .5s var(--ease-out); }
.icon-btn:hover { background: rgba(124,58,237,.3); border-color: rgba(167,139,250,.6); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lb__nav { position: absolute; top: 50%; margin-top: -25px; }
.lb__nav--prev { left: var(--gutter); }
.lb__nav--next { right: var(--gutter); }
.lb__nav--prev:hover { transform: translateX(-3px); }
.lb__nav--next:hover { transform: translateX(3px); }
.lb__thumbs { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; gap: 8px; padding: 6px; border-radius: 14px; background: rgba(17,15,28,.6); border: 1px solid var(--line-soft); max-width: calc(100vw - 32px); overflow-x: auto; scrollbar-width: none; }
.lb__thumbs::-webkit-scrollbar { display: none; }
.lb__thumbs button { flex: none; width: 44px; height: 58px; border-radius: 8px; overflow: hidden; opacity: .45; transition: opacity .3s, box-shadow .3s; }
.lb__thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.lb__thumbs button[aria-current='true'] { opacity: 1; box-shadow: 0 0 0 2px var(--violet-l); }
.lb__thumbs button:hover { opacity: .85; }
.lb.is-single .lb__nav, .lb.is-single .lb__thumbs, .lb.is-single .lb__counter { display: none; }

/* ---------- 19. LECTEUR VIDÉO ---------- */
.vb { position: fixed; inset: 0; z-index: 1500; }
.vb__backdrop { position: absolute; inset: 0; background: rgba(5,4,10,.95); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); opacity: 0; }
.vb__frame { position: absolute; left: 0; top: 0; border-radius: 18px; overflow: hidden; background: #000; box-shadow: 0 50px 140px -30px rgba(124,58,237,.45), 0 0 0 1px rgba(167,139,250,.2); will-change: transform; }
.vb__player { width: 100%; height: 100%; object-fit: contain; background: #000; }
.vb__ui { position: absolute; inset: 0; pointer-events: none; opacity: 0; }
.vb__ui > * { pointer-events: auto; }
.vb__close { position: absolute; top: 20px; right: var(--gutter); }
.vb__caption { position: absolute; top: 30px; left: var(--gutter); right: 90px; font-size: 14px; color: var(--muted); }
.vb__caption strong { font-family: var(--f-display); color: var(--text); margin-right: 6px; }

/* ---------- 20. ALERTE, NOTIFICATION, BANDEAU ---------- */
.alerte { position: fixed; inset: 0; z-index: 1600; display: grid; place-items: center; padding: 20px; background: rgba(5,4,10,.8); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); opacity: 0; transition: opacity .35s; }
.alerte.is-open { opacity: 1; }
.alerte__boite { position: relative; width: min(460px, 100%); padding: 40px 32px 30px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); text-align: center; display: grid; justify-items: center; gap: 14px; transform: translateY(20px) scale(.97); transition: transform .5s var(--ease-out); }
.alerte.is-open .alerte__boite { transform: none; }
.alerte__fermer { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; }
.alerte__croix { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: rgba(251,113,133,.12); border: 1px solid rgba(251,113,133,.4); }
.alerte__croix svg { width: 24px; height: 24px; fill: none; stroke: var(--danger); stroke-width: 2.2; stroke-linecap: round; }
.alerte__titre { font-family: var(--f-display); font-weight: 700; font-size: 1.45rem; }
.alerte__texte { color: var(--muted); font-size: 15px; }
.alerte__contact { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
.alerte__contact .btn { font-size: 14px; }
.alerte__astuce { font-size: 12.5px; color: var(--dim); }
.alerte__reessayer { margin-top: 4px; font-size: 14px; color: var(--violet-xl); text-decoration: underline; text-underline-offset: 4px; }

.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 1700;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px 12px 16px; border-radius: 999px;
  background: rgba(23,20,42,.92); border: 1px solid rgba(167,139,250,.35);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 20px 60px -20px rgba(124,58,237,.6);
  font-size: 14px; font-weight: 500;
  transform: translate(-50%, 140%); opacity: 0;
  transition: transform .6s var(--ease-out), opacity .4s;
}
.toast.is-shown { transform: translate(-50%, 0); opacity: 1; }
.toast__ok { width: 22px; height: 22px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; flex: none; }
.toast__ok svg { width: 12px; height: 12px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.toast a { color: var(--violet-xl); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }

.bandeau {
  position: fixed; left: 16px; bottom: 16px; z-index: 1300;
  display: flex; align-items: center; gap: 8px; max-width: calc(100vw - 32px);
  padding: 6px 6px 6px 14px; border-radius: 999px;
  background: rgba(17,15,28,.88); border: 1px solid var(--line-soft);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  font-size: 12.5px; line-height: 1.35; color: var(--muted);
  transform: translateY(30px); opacity: 0; transition: transform .6s var(--ease-out), opacity .4s;
}
.bandeau.is-open { transform: none; opacity: 1; }
.menu-open .bandeau, .lb-open .bandeau, .vb-open .bandeau { opacity: 0; pointer-events: none; }
.bandeau strong { color: var(--text); }
.bandeau a { color: var(--violet-xl); text-decoration: underline; text-underline-offset: 3px; }
.bandeau__ok { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: var(--text); background: rgba(238,234,251,.08); transition: background-color .3s; }
.bandeau__ok:hover { background: rgba(124,58,237,.3); }
.bandeau__ok svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* ---------- 21. PAGES LÉGALES ---------- */
.doc-page .nav { background: rgba(7,6,13,.62); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-bottom-color: var(--line-soft); }
.doc-hero { position: relative; overflow: hidden; padding: calc(var(--nav-h) + clamp(50px, 9vw, 120px)) 0 clamp(40px, 5vw, 70px); }
.doc-hero .glow--violet { width: 55vw; height: 55vw; right: -15vw; top: -25vw; }
.doc-hero .glow--blue { width: 40vw; height: 40vw; right: 20vw; top: -10vw; opacity: .35; }
.doc-hero h1 { position: relative; font-family: var(--f-display); font-weight: 700; font-size: clamp(2.4rem, 6vw, 5.2rem); line-height: 1; letter-spacing: -.04em; max-width: 16ch; }
.doc-hero .doc__maj { position: relative; margin-top: 22px; color: var(--muted); font-size: 14px; }
.doc-back { position: relative; display: inline-flex; align-items: center; gap: 10px; margin-bottom: 28px; font-size: 14px; color: var(--muted); transition: color .3s; }
.doc-back:hover { color: var(--text); }
.doc-back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s var(--ease-out); }
.doc-back:hover svg { transform: translateX(-4px); }
.doc { max-width: 760px; padding-bottom: clamp(80px, 10vw, 140px); }
.doc > p, .doc li { color: #CFCAE3; }
.doc p + p { margin-top: 14px; }
.doc h2 { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.4rem, 2.4vw, 1.9rem); letter-spacing: 0; line-height: 1.2; margin: 56px 0 16px; padding-top: 24px; border-top: 1px solid var(--line-soft); }
.doc h3 { font-family: var(--f-display); font-weight: 600; font-size: 1.1rem; margin: 26px 0 10px; color: var(--violet-xl); }
.doc ul { display: grid; gap: 10px; margin: 14px 0; }
.doc li { position: relative; padding-left: 22px; }
.doc li::before { content: ''; position: absolute; left: 2px; top: .7em; width: 7px; height: 7px; border-radius: 2px; transform: rotate(45deg); background: var(--grad); }
.doc a { color: var(--violet-xl); text-decoration: underline; text-decoration-color: rgba(167,139,250,.45); text-underline-offset: 3px; }
.doc a:hover { text-decoration-color: currentColor; }
.doc strong { color: var(--text); }
.doc__table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; }
.doc__table th, .doc__table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.doc__table th { font-weight: 600; color: var(--text); width: 50%; }
.doc__table td { color: var(--muted); }
.doc-footer { border-top: 1px solid var(--line-soft); padding: 28px 0 36px; font-size: 14px; color: var(--muted); }
.doc-footer p { display: flex; flex-wrap: wrap; gap: 6px 12px; }
.doc-footer a { color: var(--text); }

/* ---------- Étude de cas (etude-shooting-mini.html) ---------- */
.etude__eyebrow { position: relative; display: flex; margin-bottom: 18px; }
.etude__lead { position: relative; margin-top: 22px; }
.etude { padding-bottom: clamp(80px, 10vw, 140px); }
.etude h2 { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.5rem, 2.8vw, 2.2rem); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 16px; }
.etude p { color: #CFCAE3; line-height: 1.7; max-width: 60ch; }
.etude__intro { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(28px, 4vw, 64px); align-items: start; }
.etude__texte { grid-column: 1 / span 7; }
.etude__couverture { grid-column: 8 / -1; margin: 0; }
.etude__couverture img, .etude__grille img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: 0 30px 70px -40px rgba(0,0,0,.9), 0 0 0 1px var(--line-soft); }
.etude__fiche { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 28px; padding: clamp(20px, 2.4vw, 30px); margin: 0 0 clamp(32px, 4vw, 48px); }
.etude__fiche dt { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.etude__fiche dd { margin: 5px 0 0; font-family: var(--f-display); font-weight: 600; font-size: 17px; color: var(--text); }
.etude__fiche-large { grid-column: 1 / -1; }
.etude__bloc + .etude__bloc { margin-top: clamp(28px, 3.5vw, 40px); }
.etude__serie, .etude__avis, .etude__cta { margin-top: clamp(56px, 8vw, 110px); }
.etude__grille { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); margin-top: 26px; }
.etude__grille figure { margin: 0; }
.etude__grille figcaption { margin-top: 10px; font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.etude__avis .temoignage { max-width: 760px; }
.etude__cta { display: grid; justify-items: center; gap: 14px; text-align: center; }
.etude__cta p { margin: 0 auto; }
.etude__liens { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }
@media (max-width: 960px) {
  .etude__texte, .etude__couverture { grid-column: 1 / -1; }
  .etude__couverture { max-width: 520px; }
  .etude__grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) { .etude__fiche { grid-template-columns: 1fr; } }
/* La démarche : quatre étapes numérotées */
.etude__demarche { margin-top: clamp(56px, 8vw, 110px); }
.etude__etapes { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 20px); }
.etude__etape { padding: clamp(20px, 2.2vw, 28px); display: grid; align-content: start; gap: 10px; }
.etude__num { font-family: var(--f-display); font-weight: 700; font-size: 13px; letter-spacing: .14em; color: var(--violet-xl); }
.etude .etude__etape h3 { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.1rem, 1.6vw, 1.3rem); margin: 0; }
.etude .etude__etape p { margin: 0; max-width: none; font-size: 15px; line-height: 1.65; }
/* Vidéo et visuels */
.etude__video { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; border-radius: var(--radius); background: #000; box-shadow: 0 30px 70px -40px rgba(0,0,0,.9), 0 0 0 1px var(--line-soft); }
.etude__couverture--video { max-width: 420px; justify-self: end; width: 100%; }
.etude__couverture--libre img, .etude__grille--libre img { aspect-ratio: auto; object-fit: contain; }
/* Autant de colonnes que de photos (jusqu'à 5), 3 au-delà : jamais une photo seule sur sa ligne */
.etude__grille--c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.etude__grille--c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.etude__grille--c5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
/* Visuels de graphisme, de formats variés : mosaïque en colonnes */
.etude__grille--libre { display: block; columns: 3; column-gap: clamp(12px, 1.6vw, 20px); }
.etude__grille--libre figure { break-inside: avoid; margin-bottom: clamp(12px, 1.6vw, 20px); }
.etude__video-grille { display: grid; grid-template-columns: minmax(0, 360px) 1fr; gap: clamp(20px, 3vw, 40px); align-items: end; margin-top: 26px; }
.etude__video-infos { display: grid; gap: 4px; }
.etude .etude__video-infos strong { font-family: var(--f-display); font-weight: 600; color: var(--text); }
.etude .etude__video-infos span { color: var(--muted); font-size: 14px; }
.etude__doc { margin-top: 22px; }
@media (max-width: 960px) {
  .etude__couverture--video { justify-self: start; max-width: 360px; }
  .etude__grille--libre { columns: 2; }
  .etude__grille--c3, .etude__grille--c5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .etude__etapes { grid-template-columns: 1fr; }
  .etude__video-grille { grid-template-columns: 1fr; }
  .etude__video-grille .etude__video { max-width: 320px; }
}
/* Bouton « Voir l'étude de cas » sous une carte (photo, vidéo, graphisme) */
.work__caption > .doc-btn, .reel__caption > .doc-btn { margin-top: 12px; justify-self: start; }
.work__caption > .doc-btn + .doc-btn { margin-top: 8px; }

/* ---------- Page « Télécharger mon CV » (cv-telecharger.html) ---------- */
.doc-hero--centre .container { text-align: center; }
.doc-hero--centre h1 { margin-inline: auto; }
.cvdl__intro { max-width: 52ch; margin-inline: auto; font-size: clamp(15px, 1.3vw, 17px); line-height: 1.55; }
.cvdl { max-width: 640px; margin-inline: auto; padding-bottom: clamp(80px, 10vw, 140px); }
.cvdl .form-card { max-width: none; }
.cvdl__mention { font-size: 12.5px; line-height: 1.55; color: var(--muted); text-align: center; }
.cvdl__mention a { color: var(--violet-xl); text-decoration: underline; text-decoration-color: rgba(167,139,250,.45); text-underline-offset: 3px; }
.cvdl__ok { display: grid; justify-items: center; gap: 14px; text-align: center; padding: clamp(8px, 2vw, 18px) 0; }
.cvdl__ok[hidden] { display: none; }
.cvdl__coche { width: 76px; height: 76px; }
.cvdl__coche circle { fill: none; stroke: url(#gradOk); stroke-width: 2; stroke-dasharray: 220; stroke-dashoffset: 220; }
.cvdl__coche path { fill: none; stroke: #fff; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; }
.cvdl__ok.is-shown .cvdl__coche circle { animation: trace .9s var(--ease-out) forwards; }
.cvdl__ok.is-shown .cvdl__coche path { animation: trace .5s var(--ease-out) .55s forwards; }
.cvdl__merci { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.6rem, 3vw, 2rem); outline: none; }
.cvdl__suite { color: var(--muted); max-width: 42ch; }
.cvdl__versions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.cvdl__ok .contact__cv-note { margin-top: 0; }
.cvdl__retour { margin: 8px 0 0; }
@media (prefers-reduced-motion: reduce) { .cvdl__coche circle, .cvdl__coche path { stroke-dashoffset: 0; animation: none !important; } }

/* ---------- 21 bis. PAGE 404 ---------- */
.erreur {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center; text-align: center;
  padding: 80px var(--gutter);
}
.erreur__fond { position: absolute; inset: -10%; z-index: -1; pointer-events: none; transition: transform 1.2s var(--ease-out); }
.erreur__fond span { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; animation: derive 18s ease-in-out infinite alternate; }
.erreur__fond span:nth-child(1) { width: 55vw; height: 55vw; left: 42%; top: -18%; background: radial-gradient(circle, rgba(124,58,237,.75), transparent 65%); }
.erreur__fond span:nth-child(2) { width: 45vw; height: 45vw; left: 8%; top: 38%; background: radial-gradient(circle, rgba(37,99,235,.6), transparent 65%); animation-duration: 22s; animation-delay: -7s; }
.erreur__fond span:nth-child(3) { width: 30vw; height: 30vw; left: 60%; top: 58%; background: radial-gradient(circle, rgba(167,139,250,.35), transparent 65%); animation-duration: 26s; animation-delay: -12s; }
.erreur__contenu { display: grid; justify-items: center; gap: 18px; max-width: 660px; }
.erreur__marque { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--line); background: rgba(17,15,28,.5); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: transform .6s var(--ease-back), border-color .3s; }
.erreur__marque:hover { transform: rotate(-8deg) scale(1.06); border-color: rgba(167,139,250,.6); }
.erreur__marque svg { width: 26px; height: 30px; color: var(--text); }
.erreur__code {
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(7rem, 26vw, 17rem); line-height: .82; letter-spacing: -.06em;
  margin: 10px 0 4px;
  background: linear-gradient(100deg, #D8CCFF 0%, #A78BFA 25%, #7C3AED 45%, #60A5FA 70%, #D8CCFF 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: reflet 8s linear infinite;
}
@keyframes reflet { to { background-position: -250% 0; } }
.erreur__titre { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.8rem, 4.2vw, 3.2rem); line-height: 1.05; letter-spacing: -.035em; }
.erreur__texte { color: var(--muted); font-size: clamp(16px, 1.3vw, 18.5px); max-width: 44ch; }
.erreur__liens { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 12px; }

/* ---------- 22. MOUVEMENT RÉDUIT / SECOURS ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .2s !important; scroll-behavior: auto !important; }
  .grain::before { animation: none; }
  .hero__fallback span { animation: none; }
  .loader { display: none; }
  .work__media:hover img, .reel__media:hover .reel__poster { transform: none; }
  .reel__media:hover { transform: none; }
  .hero__scroll-line::after { display: none; }
}
/* Si le JavaScript plante : tout redevient visible */
.is-failsafe .loader, .is-failsafe .curtain { display: none !important; }
.is-failsafe [data-reveal], .is-failsafe .s-line, .is-failsafe .s-char, .is-failsafe .stack__card, .is-failsafe .bio__avatar, .is-failsafe .hero *, .is-failsafe .work, .is-failsafe .reel, .is-failsafe .gcard {
  opacity: 1 !important; visibility: visible !important; clip-path: none !important;
}
.is-failsafe .s-line, .is-failsafe .s-char, .is-failsafe [data-reveal] { transform: none !important; }

/* ---------- 23. ADAPTATIONS D'ÉCRAN ---------- */
/* Écrans d'ordinateur peu hauts (portables 13") : le hero tient dans l'écran */
@media (min-width: 961px) and (max-height: 860px) {
  .hero { padding-top: calc(var(--nav-h) + 4vh); padding-bottom: 56px; }
  .hero__title { font-size: min(10.2vw, 15.5vh); margin-bottom: 3vh; }
  .hero__badge { margin-bottom: 2.4vh; }
  .hero__actions { margin-top: 3vh; }
  .hero__stats { margin-top: 3.2vh; padding-top: 16px; }
  .hero__scroll { display: none; }
}
@media (max-width: 1180px) {
  .nav__link small { display: none; }
  .nav__link { padding: 0 13px; }
}
@media (max-width: 1100px) {
  .hero__col { grid-column: 1 / span 7; }
}
@media (max-width: 960px) {
  :root { --nav-h: 68px; }
  .nav__menu { display: none; }
  .nav__burger { display: block; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__col { grid-column: 1; }
  .hero__stack { grid-column: 1; order: 3; justify-self: stretch; width: 100%; max-width: 520px; aspect-ratio: 1.55 / 1; margin: 40px auto 0; }
  .stack__card { width: 34%; }
  .stack__card--1 { left: 33%; top: 2%; }
  .stack__card--2 { left: 4%; top: 12%; }
  .stack__card--3 { left: 62%; top: 12%; }
  .hero__scroll { display: none; }
  .about > * { grid-column: 1 / -1 !important; }
  .section-intro .section__head, .section-intro .note { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  body { font-size: 16px; }
  .hero { padding-top: calc(var(--nav-h) + 36px); }
  .hero__title { white-space: normal; font-size: clamp(3rem, 18.5vw, 6.4rem); line-height: .92; }
  .hero__title .s-word, .hero__title .word { display: block; }
  .hero__actions .btn { flex: 1 1 auto; }
  .hero__stats { justify-content: space-between; gap: 12px; }
  .hero__stats li > span { font-size: 12px; }
  .tools { grid-template-columns: 1fr; }
  .facts__row { grid-template-columns: 1fr; }
  .facts dt { grid-row: auto; }
  .rail--photos .work { width: 74vw; }
  .rail--videos .reel { width: 64vw; }
  .gcard .work__media { height: clamp(300px, 56vh, 440px); }
  .rail__btn { width: 40px; height: 40px; }
  .rail__bar { gap: 14px; }
  .form { grid-template-columns: 1fr; }
  .lb__nav { top: auto; bottom: 86px; margin: 0; }
  .lb__top { padding-top: 14px; }
  .lb__caption { font-size: 12.5px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .lb__caption strong { display: block; }
  .bandeau { left: 10px; bottom: 10px; max-width: calc(100vw - 20px); border-radius: 16px; font-size: 12px; }
  .toast { bottom: 18px; max-width: calc(100vw - 24px); border-radius: 18px; }
  .footer__inner { flex-direction: column; align-items: flex-start; gap: 22px; }
  .footer__legal { margin-left: 0; text-align: left; }
  .footer__liens { justify-content: flex-start; }
  .footer__top { position: absolute; right: var(--gutter); top: 30px; }
}
@media (max-width: 400px) {
  .btn { --h: 50px; padding: 0 1.2em; font-size: 14.5px; }
  .hero__stats strong { font-size: 1.85rem; }
}
@media (hover: none) {
  .work__open { transform: none; opacity: 1; width: 40px; height: 40px; }
}
