/* =========================================================
   Éric Rocher · Stratège créatif à CV interactif
   ========================================================= */

@font-face { font-family: "Helvetica Now Display"; src: url(assets/fonts/HelveticaNowDisplay-Light.woff2) format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Helvetica Now Display"; src: url(assets/fonts/HelveticaNowDisplay-LightIta.woff2) format("woff2"); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: "Helvetica Now Display"; src: url(assets/fonts/HelveticaNowDisplay-Regular.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Helvetica Now Display"; src: url(assets/fonts/HelveticaNowDisplay-RegIta.woff2) format("woff2"); font-weight: 400 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Helvetica Now Display"; src: url(assets/fonts/HelveticaNowDisplay-Medium.woff2) format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Helvetica Now Display"; src: url(assets/fonts/HelveticaNowDisplay-Bold.woff2) format("woff2"); font-weight: 600 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Helvetica Now Display"; src: url(assets/fonts/HelveticaNowDisplay-ExtraBold.woff2) format("woff2"); font-weight: 800 900; font-style: normal; font-display: swap; }

:root {
  --bg: #07090a;
  --bg-2: #0d1110;
  --ink: #f2efe8;
  --ink-2: rgba(242, 239, 232, .66);
  --ink-3: rgba(242, 239, 232, .38);
  --line: rgba(242, 239, 232, .12);
  --accent: #7ee08f;
  --gold: #e8c77a;

  /* Famille Helvetica, embarquée (Helvetica Now Display) pour un rendu identique partout */
  --f-helvetica: "Helvetica Now Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --f-display: var(--f-helvetica);
  --f-serif: var(--f-helvetica);
  --f-body: var(--f-helvetica);

  --gutter: clamp(16px, 5vw, 80px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.is-loading { overflow: 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-family: var(--f-serif); font-style: italic; font-weight: 300; }
::selection { background: var(--accent); color: var(--bg); }
/* retours à la ligne soignés : titres équilibrés, pas de mot orphelin en fin de paragraphe */
h1, h2, h3, h4, blockquote { text-wrap: balance; }
p, li, dd { text-wrap: pretty; }

@media (hover: hover) and (pointer: fine) {
  html.has-cursor, html.has-cursor * { cursor: none !important; }
}

/* ---------- utilities ---------- */
.eyebrow {
  font-family: var(--f-body);
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
  transition: color .8s;
}
.h-display {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(44px, 9vw, 150px);
  line-height: .92;
  letter-spacing: -.035em;
}
.h-display--md { font-size: clamp(36px, 6.4vw, 104px); }
.h-display em, .contact__title em, .hat__title em {
  color: var(--accent);
  letter-spacing: -.01em;
  transition: color .8s;
}
.split-line { display: block; overflow: hidden; padding-bottom: .06em; }
.split { display: inline-block; }
.split .ch { display: inline-block; will-change: transform; }
.split .w { display: inline-block; white-space: nowrap; }

/* ---------- loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--bg);
  display: grid; place-items: center;
}
.loader__name {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(56px, 13vw, 200px);
  line-height: .9; letter-spacing: -.04em; text-align: center;
}
.loader__line { display: block; overflow: hidden; }
.loader__line > span { display: inline-block; }
html:not(.no-anim) .loader__line > span { opacity: 0; }
.loader__logo { width: clamp(180px, 30vw, 380px); height: auto; }
.loader__count {
  position: absolute; right: var(--gutter); bottom: 40px;
  font-family: var(--f-display); font-size: clamp(40px, 7vw, 96px); font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.loader__bar { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 28px; height: 1px; background: var(--line); }
.loader__bar span { display: block; height: 100%; width: 0; background: var(--accent); }

/* ---------- cursor ---------- */
.cursor { position: fixed; inset: 0; pointer-events: none; z-index: 90; display: none; }
html.has-cursor .cursor { display: block; }
.cursor__dot, .cursor__ring {
  position: absolute; top: 0; left: 0; border-radius: 50%;
  will-change: transform;
}
.cursor__dot {
  width: 8px; height: 8px; margin: -4px 0 0 -4px;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent), 0 0 30px var(--accent);
  transition: background .6s, box-shadow .6s, opacity .3s;
}
.cursor__ring {
  width: 44px; height: 44px; margin: -22px 0 0 -22px;
  border: 1px solid rgba(242, 239, 232, .5);
  display: grid; place-items: center;
  transition: width .5s var(--ease), height .5s var(--ease), margin .5s var(--ease),
              background .5s var(--ease), border-color .5s, backdrop-filter .5s;
}
.cursor__label {
  font-family: var(--f-display); font-size: 13px; font-weight: 700; letter-spacing: .02em;
  color: var(--bg); opacity: 0; transform: scale(.4);
  transition: opacity .3s, transform .5s var(--ease);
  white-space: nowrap;
}
.cursor.is-hover .cursor__ring {
  width: 72px; height: 72px; margin: -36px 0 0 -36px;
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}
.cursor.is-label .cursor__ring {
  width: 96px; height: 96px; margin: -48px 0 0 -48px;
  background: var(--accent); border-color: var(--accent);
}
.cursor.is-label .cursor__label { opacity: 1; transform: scale(1); }
.cursor.is-label .cursor__dot { opacity: 0; }
.cursor.is-down .cursor__ring { width: 30px; height: 30px; margin: -15px 0 0 -15px; }

.fx-trail { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 89; }

/* ---------- ambient + grain + progress ---------- */
.ambient { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.ambient__blob {
  position: absolute; top: 0; left: 0;
  width: 60vmax; height: 60vmax; margin: -30vmax 0 0 -30vmax;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 22%, transparent) 0%, transparent 62%);
  filter: blur(40px);
  opacity: .55;
  will-change: transform;
}
.grain {
  position: fixed; inset: -50%; z-index: 88; pointer-events: none; opacity: .07;
  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='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0) } 20% { transform: translate(-3%, 2%) } 40% { transform: translate(2%, -4%) }
  60% { transform: translate(-4%, -2%) } 80% { transform: translate(3%, 3%) } 100% { transform: translate(0, 0) }
}
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; }
.progress span { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); box-shadow: 0 0 12px var(--accent); transition: background .8s; }

main, .footer { position: relative; z-index: 1; }
/* rien ne doit élargir la page (grands numéros, éléments en cours d'animation) ;
   « clip » plutôt que « hidden » pour garder le position: sticky du parcours */
main { overflow-x: clip; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px var(--gutter);
  transition: transform .6s var(--ease), background .4s, padding .4s;
}
.nav.is-scrolled {
  padding-top: 14px; padding-bottom: 14px;
  background: rgba(7, 9, 10, .55);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.nav.is-hidden { transform: translateY(-110%); }
.nav__logo { display: block; padding: 6px 0; }
.nav__logo img { height: 34px; width: auto; transition: filter .6s, transform .6s var(--ease); }
.nav__logo:hover img { transform: scale(1.06); filter: drop-shadow(0 0 14px var(--accent)); }
.nav__links { display: flex; gap: clamp(16px, 2.6vw, 40px); }
.nav__links a {
  position: relative; font-size: 14px; font-weight: 500; color: var(--ink-2);
  transition: color .3s; padding: 4px 0;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.nav__links a:hover, .nav__links a.is-active { color: var(--ink); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__burger { display: none; width: 44px; height: 44px; position: relative; }
.nav__burger span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--ink); transition: transform .5s var(--ease); }
.nav__burger span:first-child { top: 17px; }
.nav__burger span:last-child { top: 25px; }
.menu-open .nav__burger span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-open .nav__burger span:last-child { transform: translateY(-4px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 45; background: var(--bg);
  display: flex; flex-direction: column; justify-content: center; gap: 8px;
  padding: 0 var(--gutter);
  clip-path: circle(0% at calc(100% - 40px) 40px);
  transition: clip-path .9s var(--ease);
  pointer-events: none;
}
.mobile-menu a { font-family: var(--f-display); font-weight: 700; font-size: 44px; letter-spacing: -.03em; line-height: 1.15; }
.mobile-menu .mobile-menu__cv { font-family: var(--f-body); font-size: 15px; font-weight: 600; color: var(--accent); margin-top: 24px; }
.menu-open .mobile-menu { clip-path: circle(150% at calc(100% - 40px) 40px); pointer-events: auto; }

/* ---------- buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  height: 56px; padding: 0 30px; border-radius: 999px;
  font-weight: 600; font-size: 15px; letter-spacing: .01em;
  overflow: hidden; isolation: isolate;
  transition: color .5s var(--ease), border-color .5s, background .5s;
}
.btn--sm { height: 44px; padding: 0 20px; font-size: 13px; }
.btn--lg { height: 68px; padding: 0 40px; font-size: 16px; }
.btn__icon { width: 16px; height: 16px; }
.btn--primary { background: var(--accent); color: var(--bg); transition: background .8s; }
.btn--primary::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--ink); transform: translateY(101%); transition: transform .6s var(--ease);
}
.btn--primary:hover::before { transform: translateY(0); }
.btn__shine {
  position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; z-index: 1;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: skewX(-20deg); animation: shine 4.5s var(--ease) infinite; pointer-events: none;
}
@keyframes shine { 0%, 60% { left: -60%; } 100% { left: 140%; } }
.btn--ghost { border: 1px solid var(--line); color: var(--ink); }
.btn--ghost::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--accent); transform: scale(0); transition: transform .6s var(--ease);
}
.btn--ghost:hover { color: var(--bg); border-color: var(--accent); }
.btn--ghost:hover::before { transform: scale(1.4); }
.btn__text, .btn__icon { position: relative; z-index: 2; pointer-events: none; }

/* ---------- hero ---------- */
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 640px;
  overflow: hidden; isolation: isolate;
}
.hero__media { position: absolute; inset: -4%; z-index: -3; will-change: transform; }
.hero__img {
  position: absolute; inset: 0; background-size: cover; background-position: 50% 30%;
}
.hero__img--base { filter: brightness(.42) saturate(.8) contrast(1.05); }
.hero__img--lit {
  filter: brightness(1.12) saturate(1.15);
  --mx: 50%; --my: 40%;
  -webkit-mask-image: radial-gradient(circle 300px at var(--mx) var(--my), #000 0%, rgba(0,0,0,.6) 35%, transparent 72%);
          mask-image: radial-gradient(circle 300px at var(--mx) var(--my), #000 0%, rgba(0,0,0,.6) 35%, transparent 72%);
}
.hero__particles { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; pointer-events: none; }
.hero__shade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(7,9,10,.85) 0%, rgba(7,9,10,.2) 45%, transparent 60%),
    linear-gradient(0deg, var(--bg) 0%, rgba(7,9,10,0) 38%);
}
.hero__content {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(140px, 20vh, 220px);
  pointer-events: none;
}
.hero__content .split-line, .hero__content .split { pointer-events: auto; }
.hero__kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2);
  margin-bottom: 34px;
}
.hero__name {
  font-family: var(--f-display); font-weight: 800;
  font-size: clamp(64px, 13.5vw, 230px);
  line-height: .84; letter-spacing: -.04em;
  will-change: transform;
}
.hero__name .split-line { padding-top: .16em; margin-top: -.16em; }
.hero__name .split-line:nth-child(2) .split { color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.hero__name .ch { transition: color .6s var(--ease), -webkit-text-stroke-color .6s, text-shadow .6s; }
.hero__name .ch:hover { color: var(--accent); -webkit-text-stroke-color: var(--accent); text-shadow: 0 0 40px var(--accent); transition-duration: .1s; }
.hero__title { font-size: clamp(30px, 4vw, 56px); line-height: 1.1; margin-top: 18px; color: var(--accent); transition: color .8s; }
.hero__sub { margin-top: 10px; color: var(--ink-2); font-size: clamp(14px, 1.2vw, 17px); max-width: 560px; }
.hero__side {
  position: absolute; right: var(--gutter); top: 42%;
  text-align: right; font-size: 14px; color: var(--ink-2); line-height: 1.5;
  display: flex; flex-direction: column; gap: 18px;
}
.hero__side strong { color: var(--ink); font-weight: 600; }
.hero__ctas {
  position: absolute; left: var(--gutter); bottom: 52px;
  display: flex; gap: 14px; flex-wrap: wrap;
}
.hero__scroll {
  position: absolute; right: var(--gutter); bottom: 52px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-2);
}
.hero__scroll i { width: 1px; height: 64px; background: var(--line); position: relative; overflow: hidden; }
.hero__scroll i::after {
  content: ""; position: absolute; left: 0; top: -50%; width: 100%; height: 50%;
  background: var(--accent); animation: scrollLine 2s var(--ease) infinite;
}
@keyframes scrollLine { to { top: 110%; } }

/* ---------- marquee ---------- */
.marquee {
  position: relative; z-index: 2;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 34px 0; overflow: hidden; white-space: nowrap;
  background: var(--bg);
  /* les logos apparaissent / disparaissent en fondu sur les bords */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  --s: 1.15;
}
.marquee__track {
  display: inline-flex; align-items: center; gap: clamp(56px, 7vw, 110px);
  list-style: none; will-change: transform;
}
.client { flex: none; display: grid; place-items: center; height: calc(90px * var(--s)); }
.client img {
  width: calc(var(--w) * var(--s)); height: auto;
  filter: grayscale(1) brightness(1.15);
  opacity: .7;
  transition: filter .5s var(--ease), opacity .5s, transform .6s var(--ease);
}
.client:hover img {
  filter: grayscale(0) brightness(1) drop-shadow(0 0 18px color-mix(in srgb, var(--accent) 45%, transparent));
  opacity: 1; transform: scale(1.1);
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- manifesto ---------- */
.manifesto { padding: clamp(110px, 18vh, 200px) var(--gutter) clamp(80px, 12vh, 140px); }
.manifesto__text {
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(28px, 4.4vw, 68px); line-height: 1.08; letter-spacing: -.025em;
  max-width: 1300px;
  /* justifié des deux côtés ; la césure évite les grands trous entre les mots */
  text-align: justify; text-align-last: left;
  text-justify: inter-character; /* répartit l’espace entre les lettres : pas de trous entre les mots */
  -webkit-hyphens: auto; hyphens: auto;
}
.manifesto__text em { color: var(--accent); transition: color .8s; }
.words .wd { display: inline; opacity: .14; } /* inline (pas inline-block) pour que la justification puisse s’y appliquer */
.stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0;
  margin-top: clamp(80px, 12vh, 140px);
  border-top: 1px solid var(--line);
}
.stat { padding: 34px 28px 0 0; border-right: 1px solid var(--line); }
.stat + .stat { padding-left: 28px; }
.stat:last-child { border-right: 0; }
.stat__num {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(54px, 7vw, 110px); line-height: 1; letter-spacing: -.04em;
}
.stat__num sup { font-size: .38em; color: var(--accent); vertical-align: top; margin-left: 4px; position: relative; top: .35em; transition: color .8s; }
.stat p {
  color: var(--ink); opacity: .82; margin-top: 18px;
  font-size: clamp(18px, 1.45vw, 22px); line-height: 1.35; font-weight: 500;
  max-width: 340px;
}

/* ---------- hats intro ---------- */
.hats-intro { position: relative; padding: clamp(80px, 12vh, 140px) var(--gutter); }
.hats-intro { container-type: inline-size; }
.hats-intro .h-display {
  /* même rendu que les titres d'expertise (« Stratège créatif ») : ceux-ci font 11,5 % de la
     largeur de leur colonne, qui vaut (largeur utile − écart) × 1,05 / 2,05 */
  font-size: clamp(40px, calc((100cqi - clamp(40px, 7vw, 120px)) * 1.05 / 2.05 * .115), 124px);
  font-weight: 700; line-height: .9; letter-spacing: -.045em;
}
@media (max-width: 820px) {
  /* les expertises passent sur une colonne : le titre occupe toute la largeur */
  .hats-intro .h-display { font-size: clamp(40px, 11.5cqi, 124px); }
  /* sur mobile le titre est étroit : le texte reprend toute la largeur */
  .hats-intro .hats-intro__head { width: auto; }
  .hats-intro .hats-intro__text { width: auto; }
}
.hats-intro__head { width: fit-content; max-width: 100%; }
.hats-intro__text {
  width: 0; min-width: 100%; /* ne pousse pas la largeur : s'aligne sur celle du titre */
  font-size: clamp(17px, 1.4vw, 21px); color: var(--ink-2); margin-top: 14px;
  text-align: justify; text-align-last: left; -webkit-hyphens: auto; hyphens: auto;
}

/* ---------- hat (casquette) ---------- */
.hat { position: relative; padding: clamp(90px, 14vh, 160px) var(--gutter); }
.hat__bignum {
  position: absolute; top: 4%; right: -2vw; z-index: -1;
  font-family: var(--f-display); font-weight: 700; font-size: clamp(200px, 34vw, 560px);
  line-height: .8; letter-spacing: -.06em;
  color: transparent; -webkit-text-stroke: 1px rgba(242, 239, 232, .08);
  pointer-events: none; user-select: none;
}
.hat--rev .hat__bignum { right: auto; left: -2vw; }
.hat__grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(40px, 7vw, 120px); align-items: center;
}
.hat--rev .hat__visual { order: 2; }
.hat__visual { position: relative; perspective: 1200px; }
.frame {
  position: relative; border-radius: 22px; overflow: hidden;
  aspect-ratio: 4 / 5;
  transform-style: preserve-3d; will-change: transform, clip-path;
  box-shadow: 0 50px 120px -30px rgba(0, 0, 0, .8), 0 0 0 1px var(--line);
}
.frame::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), inset 0 -120px 120px -60px rgba(0,0,0,.45);
}
.frame__inner { position: absolute; inset: -12% 0; }
.frame__inner img { width: 100%; height: 100%; object-fit: cover; }
.frame__glare {
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: overlay;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,.55), transparent 50%);
  opacity: 0; transition: opacity .4s;
}
.frame:hover .frame__glare { opacity: 1; }

.floaters { position: absolute; inset: 0; pointer-events: none; }
.postit {
  position: absolute; left: var(--x); top: var(--y);
  padding: 18px 20px 26px; min-width: 104px;
  background: #ece6a8; color: #2a2a1c;
  font-family: var(--f-serif); font-style: italic; font-size: 26px; line-height: 1;
  rotate: var(--r);
  box-shadow: 0 18px 40px rgba(0,0,0,.45);
  will-change: transform;
}
.app {
  position: absolute; left: var(--x); top: var(--y);
  width: 64px; height: 64px; border-radius: 16px;
  display: grid; place-items: center;
  font-family: var(--f-display); font-weight: 700; font-size: 24px;
  color: var(--c); background: var(--b);
  border: 2px solid var(--c);
  box-shadow: 0 0 30px color-mix(in srgb, var(--c) 55%, transparent), 0 20px 40px rgba(0,0,0,.5);
  backdrop-filter: blur(6px);
  will-change: transform;
}

.rec { position: absolute; inset: 18px; pointer-events: none; font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: 12px; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.rec__top { position: absolute; top: 10px; left: 14px; display: flex; align-items: center; gap: 8px; letter-spacing: .1em; }
.rec__dot { width: 10px; height: 10px; border-radius: 50%; background: #ff3b30; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.rec__meta { position: absolute; bottom: 10px; right: 14px; letter-spacing: .1em; opacity: .85; }
.rec__corner { position: absolute; width: 22px; height: 22px; border: 2px solid rgba(255,255,255,.85); }
.rec__corner--tl { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.rec__corner--tr { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.rec__corner--bl { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.rec__corner--br { bottom: 0; right: 0; border-left: 0; border-top: 0; }

.viewfinder { position: absolute; inset: 0; pointer-events: none; }
.viewfinder__focus {
  position: absolute; top: 0; left: 0; width: 70px; height: 70px; margin: -35px 0 0 -35px;
  border: 1.5px solid rgba(255,255,255,.9);
  box-shadow: 0 0 0 1px rgba(0,0,0,.2);
  transform: translate(var(--fx, 50%), var(--fy, 40%));
  opacity: 0; transition: opacity .3s, border-color .2s;
}
.viewfinder__focus::before, .viewfinder__focus::after { content: ""; position: absolute; background: rgba(255,255,255,.9); }
.viewfinder__focus::before { left: 50%; top: 50%; width: 10px; height: 1.5px; margin: -.75px 0 0 -5px; }
.viewfinder__focus::after { left: 50%; top: 50%; width: 1.5px; height: 10px; margin: -5px 0 0 -.75px; }
.frame--viewfinder:hover .viewfinder__focus { opacity: 1; }
.viewfinder__focus.is-locked { border-color: #4dff88; }
.viewfinder__info {
  position: absolute; left: 18px; bottom: 16px;
  font-family: ui-monospace, Menlo, monospace; font-size: 12px; letter-spacing: .1em; color: #fff; opacity: .85;
}
.flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }

.hat__title {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(40px, 11.5cqi, 124px); line-height: .9; letter-spacing: -.045em;
}
.hat__body { container-type: inline-size; min-width: 0; }
.hat__title .split-line:nth-child(2) .split { color: var(--accent); transition: color .8s; }
.hat__quote {
  font-family: var(--f-serif); font-style: italic; font-size: clamp(24px, 2.4vw, 36px); line-height: 1.2;
  margin-top: 28px; color: var(--ink);
  text-wrap: balance;
}
.hat__text {
  margin-top: 22px; color: var(--ink-2); font-size: clamp(16px, 1.15vw, 18px);
  text-align: justify; text-align-last: left; -webkit-hyphens: auto; hyphens: auto;
}
.hat__sub { margin-top: 38px; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; }
.hat__list { list-style: none; margin-top: 14px; border-top: 1px solid var(--line); }
.hat__list li {
  position: relative; padding: 14px 0 14px 30px; border-bottom: 1px solid var(--line);
  font-size: 16px; transition: padding .5s var(--ease), color .3s;
}
.hat__list li::before {
  content: "✦"; position: absolute; left: 0; top: 14px; color: var(--accent); font-size: 13px; transition: transform .6s var(--ease), color .8s;
}
.hat__list li:hover { padding-left: 40px; }
.hat__list li:hover::before { transform: rotate(180deg) scale(1.3); }

/* ---------- projects ---------- */
.projects {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 18px; margin-top: clamp(60px, 9vh, 100px);
}
.projects__label {
  grid-column: 1 / -1; font-size: 13px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-3); display: flex; align-items: center; gap: 16px;
}
.projects__label::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.pcard {
  position: relative; text-align: left;
  min-height: 230px; padding: 26px; border-radius: 18px;
  background: linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 10px;
  overflow: hidden; isolation: isolate;
  transition: translate .6s var(--ease), border-color .4s;
}
.pcard::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(400px circle at var(--px, 50%) var(--py, 50%), color-mix(in srgb, var(--accent) 22%, transparent), transparent 45%);
  opacity: 0; transition: opacity .4s;
}
.pcard:hover { translate: 0 -8px; border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.pcard:hover::before { opacity: 1; }
.pcard__client { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); transition: color .8s; }
.pcard__title { font-family: var(--f-display); font-weight: 700; font-size: 24px; line-height: 1.08; letter-spacing: -.02em; }
.pcard__role { color: var(--ink-2); font-size: 14px; margin-top: auto; }
.pcard__result { font-family: var(--f-serif); font-style: italic; font-size: 20px; color: var(--ink); }
.pcard__arrow {
  position: absolute; top: 22px; right: 22px; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); display: grid; place-items: center;
  transition: transform .6s var(--ease), background .4s, color .4s;
}
.pcard:hover .pcard__arrow { transform: rotate(-45deg); background: var(--accent); color: var(--bg); border-color: var(--accent); }
.pcard--soon { cursor: default; }
.pcard--soon .pcard__title { color: var(--ink-2); }
.pcard.is-hidden { display: none; }
/* Vidéaste : un sous-bloc par catégorie */
.projects__group {
  grid-column: 1 / -1; display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
}
.pcard.is-filtered { display: none; }
/* projets confidentiels (recommandations) */
.pcard__reco {
  position: absolute; top: 22px; left: 22px; z-index: 2; padding: 6px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  background: rgba(7, 9, 10, .7); color: var(--ink); border: 1px solid var(--line);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.modal__shield, .modal__watermark { display: none; }
/* masque le bouton « ouvrir dans Google Drive » du lecteur (coin haut droit) */
.modal__media.is-protected .modal__shield { display: block; position: absolute; top: 0; right: 0; width: 84px; height: 72px; z-index: 3; }
.modal__media.is-protected .modal__watermark {
  display: block; position: absolute; right: 18px; bottom: 16px; z-index: 3; pointer-events: none;
  padding: 6px 12px; border-radius: 999px; font-size: 11px; letter-spacing: .08em;
  background: rgba(7, 9, 10, .55); color: rgba(242, 239, 232, .85);
}
.modal__media { -webkit-user-select: none; user-select: none; }
/* onglets de catégorie (Vidéaste) */
.projects__tabs { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 6px; }
.projects__tab {
  display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--ink-2); font-weight: 600; font-size: 14px;
  transition: background .4s, border-color .4s, color .4s;
}
.projects__tab span {
  min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; display: grid; place-items: center;
  font-size: 12px; background: rgba(255, 255, 255, .08); color: var(--ink-2); transition: background .4s, color .4s;
}
.projects__tab:hover { color: var(--ink); border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.projects__tab.is-active { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.projects__tab.is-active span { background: rgba(0, 0, 0, .18); color: var(--bg); }
@media (max-width: 820px) {
  /* sur mobile, les onglets défilent horizontalement sur une seule ligne */
  .projects__tabs { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scrollbar-width: none; }
  .projects__tabs::-webkit-scrollbar { display: none; }
  .projects__tab { flex: none; }
}
/* bouton pour dérouler les autres projets d'une expertise */
.projects__more {
  grid-column: 1 / -1; justify-self: center; margin-top: 10px;
  display: inline-flex; align-items: center; gap: 12px;
  height: 52px; padding: 0 26px; border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  font-weight: 600; font-size: 15px; color: var(--ink);
  transition: background .4s, border-color .4s, color .4s;
}
.projects__more i { font-style: normal; color: var(--accent); transition: transform .5s var(--ease), color .4s; }
.projects__more:hover { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.projects__more:hover i { color: var(--bg); transform: translateY(3px); }
.projects__more[aria-expanded="true"]:hover i { transform: translateY(-3px); }
.projects__more[hidden] { display: none; }
/* cartes avec couverture Behance */
.pcard__media {
  display: block; margin: -26px -26px 10px; aspect-ratio: 16 / 10; overflow: hidden;
  border-bottom: 1px solid var(--line); background: var(--bg-2);
}
.pcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.pcard:hover .pcard__media img { transform: scale(1.06); }
.pcard--cover .pcard__arrow { background: rgba(7, 9, 10, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }

/* ---------- journey ---------- */
.journey { padding: clamp(100px, 16vh, 180px) var(--gutter); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(40px, 6vw, 100px); }
.journey__head { position: sticky; top: 120px; align-self: start; container-type: inline-size; }
.journey__head .h-display { font-size: clamp(44px, 14cqi, 150px); }
.journey__intro { margin-top: 30px; color: var(--ink-2); font-size: clamp(17px, 1.4vw, 21px); max-width: 420px; }
.timeline { position: relative; list-style: none; padding-left: 50px; }
.timeline__line { position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.timeline__line span { position: absolute; inset: 0; background: linear-gradient(var(--accent), var(--gold)); transform-origin: top; transform: scaleY(0); box-shadow: 0 0 14px var(--accent); }
.tl { position: relative; padding-bottom: 64px; }
.tl:last-child { padding-bottom: 0; }
.tl__dot {
  position: absolute; left: -50px; top: 6px; width: 15px; height: 15px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--ink-3);
  transition: background .5s, border-color .5s, box-shadow .5s;
}
.tl.is-on .tl__dot { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 20%, transparent), 0 0 24px var(--accent); }
.tl__date { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.tl__role { font-family: var(--f-display); font-weight: 700; font-size: clamp(24px, 2.6vw, 40px); line-height: 1.1; letter-spacing: -.025em; margin-top: 10px; }
.tl__role span { font-family: var(--f-serif); font-style: italic; font-weight: 400; color: var(--ink-2); letter-spacing: 0; }
.tl__text { color: var(--ink-2); margin-top: 12px; max-width: 620px; }

/* ---------- skills ---------- */
.skills { padding: clamp(80px, 12vh, 140px) var(--gutter); }
.skills__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 70px; }
.skill {
  position: relative; padding: 34px 30px 38px; border-radius: 20px; min-height: 200px;
  background: rgba(255,255,255,.025);
  display: flex; flex-direction: column; justify-content: space-between; gap: 30px;
  isolation: isolate;
}
.skill::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; z-index: -1;
  background: radial-gradient(320px circle at var(--px, -100px) var(--py, -100px), var(--accent), var(--line) 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.skill::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -2;
  background: radial-gradient(300px circle at var(--px, -100px) var(--py, -100px), color-mix(in srgb, var(--accent) 10%, transparent), transparent 60%);
}
.skill__n { font-family: var(--f-display); font-weight: 700; font-size: 15px; color: var(--accent); }
.skill p { font-family: var(--f-display); font-weight: 600; font-size: clamp(20px, 1.7vw, 26px); line-height: 1.2; letter-spacing: -.015em; }

/* ---------- toolbox ---------- */
.toolbox {
  padding: clamp(60px, 10vh, 120px) var(--gutter);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 120px);
  border-top: 1px solid var(--line);
}
.toolbox__h { font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; margin: 0 0 18px; }
.toolbox__h:not(:first-child) { margin-top: 48px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-block; padding: 12px 20px; border-radius: 999px; border: 1px solid var(--line);
  font-weight: 500; font-size: 15px;
  transition: background .4s, color .4s, border-color .4s;
}
.chip--ai { border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
/* puces avec logo : fond sombre conservé au survol pour que les logos restent visibles */
.chip--tool { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px 10px 12px; }
.chip__ico { width: 24px; height: 24px; flex: none; object-fit: contain; border-radius: 6px; }
.chip--tool:hover { background: color-mix(in srgb, var(--accent) 12%, transparent); border-color: var(--accent); }
.info { padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.info + .info { border-top: 0; }
.info__title { font-family: var(--f-display); font-weight: 600; font-size: clamp(19px, 1.6vw, 24px); line-height: 1.25; letter-spacing: -.01em; }
.info__meta { color: var(--ink-2); margin-top: 6px; font-size: 15px; }
.info__meta:first-child { margin: 0 0 6px; color: var(--accent); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; transition: color .8s; }
.info__desc { color: var(--ink-2); margin-top: 10px; font-size: 15px; line-height: 1.55; max-width: 560px; }
.langs { display: grid; gap: 20px; }
.lang { display: grid; grid-template-columns: 1fr auto; gap: 8px 20px; }
.lang span { font-family: var(--f-display); font-weight: 600; font-size: 22px; }
.lang em { color: var(--ink-2); font-size: 20px; }
.lang i { grid-column: 1 / -1; height: 2px; background: var(--line); position: relative; overflow: hidden; }
.lang i::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform 1.6s var(--ease); }
.lang.is-on i::after { --p: var(--v); }

/* ---------- contact ---------- */
.contact { padding: clamp(120px, 20vh, 220px) var(--gutter) clamp(80px, 12vh, 140px); text-align: center; position: relative; }
.contact .eyebrow { margin-bottom: 36px; }
.contact__title {
  font-family: var(--f-display); font-weight: 700; font-size: clamp(46px, 9.4vw, 160px);
  line-height: .9; letter-spacing: -.045em;
}
.contact__lead {
  font-family: var(--f-display); font-weight: 500; font-size: clamp(22px, 2.6vw, 40px);
  letter-spacing: -.02em; color: var(--ink-2); margin-bottom: 18px;
}
.contact__text { margin: 36px auto 0; max-width: 560px; color: var(--ink); opacity: .82; font-size: clamp(18px, 1.5vw, 23px); line-height: 1.45; }
/* l'appel est l'action principale : gros bouton, mis en avant */
.contact__ctas { margin-top: 52px; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.contact__ctas .btn--lg { height: 76px; padding: 0 44px; font-size: 18px; gap: 12px; }
.contact__ctas .btn__icon { width: 20px; height: 20px; }
.contact__ctas .btn--primary { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); animation: callPulse 2.6s ease-out infinite; }
@keyframes callPulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); } 70%, 100% { box-shadow: 0 0 0 22px transparent; } }
.contact__row { margin-top: 44px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 22px; }
.contact__info { display: inline-flex; align-items: center; gap: 12px; font-family: var(--f-display); font-weight: 600; font-size: clamp(17px, 1.5vw, 22px); }
.contact__sep { color: var(--ink-3); }
.contact__info a { transition: color .3s; }
.contact__info a:hover { color: var(--accent); }
.contact__copy {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  color: var(--ink-2); border: 1px solid color-mix(in srgb, var(--ink) 22%, transparent); transition: color .3s, border-color .3s, background .3s;
}
.contact__copy svg { width: 15px; height: 15px; }
.contact__copy:hover { color: var(--accent); border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.contact__row--minor { margin-top: 28px; gap: 14px 36px; }
.contact__cv { color: var(--ink-2); font-weight: 500; transition: color .3s; }
.contact__cv:hover { color: var(--accent); }
.contact__socials { display: flex; gap: 12px; }
.social {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  color: var(--ink-2); border: 1px solid color-mix(in srgb, var(--ink) 22%, transparent);
  transition: color .3s, border-color .3s, background .3s, transform .5s var(--ease);
}
.social svg { width: 20px; height: 20px; }
.social:hover { color: var(--bg); background: var(--accent); border-color: var(--accent); }

.footer {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 30px var(--gutter); border-top: 1px solid var(--line);
  font-size: 14px; color: var(--ink-3);
}
.footer__logo { height: 52px; width: auto; opacity: .9; }
.footer__top { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-size: 18px; color: var(--ink); transition: background .4s, color .4s; }
.footer__top:hover { background: var(--accent); color: var(--bg); }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 30px; z-index: 95; translate: -50% 0;
  padding: 12px 22px; border-radius: 999px; background: var(--accent); color: var(--bg); font-weight: 600; font-size: 14px;
  opacity: 0; transform: translateY(20px); transition: all .5s var(--ease); pointer-events: none;
}
.toast.is-on { opacity: 1; transform: none; }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(4, 5, 6, .7); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.modal__panel {
  position: relative; width: min(680px, 100%); max-height: 88vh; overflow-y: auto;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 26px;
  padding: clamp(28px, 5vw, 56px);
  box-shadow: 0 60px 140px rgba(0,0,0,.7), 0 0 80px color-mix(in srgb, var(--accent) 12%, transparent);
}
.modal__close { position: absolute; top: 18px; right: 18px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); transition: background .3s, transform .5s var(--ease); }
.modal__close:hover { background: var(--accent); color: var(--bg); transform: rotate(90deg); }
.modal__hat { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.modal__title { font-family: var(--f-display); font-weight: 700; font-size: clamp(30px, 4vw, 46px); line-height: 1; letter-spacing: -.035em; margin-top: 14px; padding-right: 40px; }
.modal__client { font-family: var(--f-serif); font-style: italic; font-size: 22px; color: var(--ink-2); margin-top: 8px; }
.modal__fields { margin-top: 30px; display: grid; gap: 0; }
.modal__fields > div { display: grid; grid-template-columns: 130px 1fr; gap: 20px; padding: 18px 0; border-top: 1px solid var(--line); }
.modal__fields dt { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); padding-top: 3px; }
.modal__fields dd { color: var(--ink); }
.modal__fields dd.is-result { font-family: var(--f-serif); font-style: italic; font-size: 24px; line-height: 1.2; color: var(--accent); }
.modal__media { position: relative; background: #000; }
.modal__media { margin: calc(-1 * clamp(28px, 5vw, 56px)) calc(-1 * clamp(28px, 5vw, 56px)) 28px; border-radius: 26px 26px 0 0; overflow: hidden; }
.modal__media img { width: 100%; max-height: 52vh; object-fit: cover; }
/* galerie photo : l'image entière est visible, avec flèches, compteur et miniatures */
.modal__media.is-gallery img { height: 56vh; max-height: 56vh; object-fit: contain; }
.modal__nav, .modal__count { display: none; }
.modal__media.is-gallery .modal__nav {
  display: grid; place-items: center; position: absolute; top: 50%; translate: 0 -50%;
  width: 46px; height: 46px; border-radius: 50%; font-size: 18px; color: var(--ink);
  background: rgba(7, 9, 10, .6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--line); transition: background .3s, color .3s;
}
.modal__media.is-gallery .modal__nav:hover { background: var(--accent); color: var(--bg); }
.modal__prev { left: 16px; }
.modal__next { right: 16px; }
.modal__media.is-gallery .modal__count {
  display: block; position: absolute; left: 18px; bottom: 16px; padding: 6px 12px; border-radius: 999px;
  font-size: 12px; letter-spacing: .1em; background: rgba(7, 9, 10, .6); color: var(--ink);
}
.modal__thumbs { display: flex; gap: 8px; overflow-x: auto; margin: -14px 0 24px; padding-bottom: 6px; scrollbar-width: thin; }
.modal__thumbs[hidden] { display: none; }
/* vidéos Adobe (Behance) dans la galerie */
.modal__video { display: none; width: 100%; height: 62vh; border: 0; background: #000; }
.modal__media.is-video .modal__video { display: block; }
.modal__media.is-video img { display: none; }
.modal__thumbs button.is-video { position: relative; }
.modal__thumbs button.is-video::after {
  content: "▶"; position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 16px; color: #fff; background: rgba(0, 0, 0, .45);
}
.modal__panel.is-wide { width: min(1100px, 100%); }
.modal__panel.is-wide .modal__media.is-gallery img { height: 62vh; max-height: 62vh; }
.modal__thumbs button { flex: none; width: 76px; height: 56px; border-radius: 8px; overflow: hidden; opacity: .45; outline: 2px solid transparent; outline-offset: -2px; transition: opacity .3s, outline-color .3s; }
.modal__thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.modal__thumbs button:hover { opacity: .85; }
.modal__thumbs button.is-active { opacity: 1; outline-color: var(--accent); }
.modal__link { margin-top: 28px; }
.modal__link[hidden], .modal__media[hidden] { display: none; }
.modal__close { z-index: 6; /* au-dessus du cache qui bloque le bouton Drive */ background: rgba(7, 9, 10, .6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .nav__links { display: none; }
  .nav__burger { display: block; }
  .nav .btn--sm { display: none; }
  .hero__side { display: none; }
  .skills__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  /* la cravate du sujet est à 49,6 % de la largeur de la photo : on la centre à l’écran */
  .hero__img { background-position: 49.6% 30%; }
  .hero__shade { background: linear-gradient(0deg, var(--bg) 6%, rgba(7,9,10,.55) 50%, rgba(7,9,10,.2) 100%); }
  .hero__content { bottom: 150px; right: var(--gutter); }
  .hero__ctas { bottom: 40px; right: var(--gutter); }
  .hero__ctas .btn { flex: 1; justify-content: center; padding: 0 18px; }
  .hero__scroll { display: none; }
  .hat__grid { grid-template-columns: 1fr; }
  .hat--rev .hat__visual { order: 0; }
  .hat__visual { max-width: 520px; margin: 0 auto; width: 88%; }
  .journey { grid-template-columns: 1fr; }
  .journey__head { position: static; }
  .toolbox { grid-template-columns: 1fr; }
  .postit { font-size: 18px; padding: 12px 14px 18px; min-width: 72px; }
  .app { width: 48px; height: 48px; font-size: 18px; border-radius: 12px; }
}
@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr; }
  .stat, .stat + .stat { padding-left: 0; border-right: 0; }
  .stat:nth-child(n+2) { padding-top: 30px; border-top: 1px solid var(--line); margin-top: 30px; }
  .skills__grid { grid-template-columns: 1fr; }
  .timeline { padding-left: 36px; }
  .tl__dot { left: -36px; }
  .modal__fields > div { grid-template-columns: 1fr; gap: 6px; }
  .footer { flex-direction: column-reverse; text-align: center; }
  .hero__ctas { flex-direction: column; }
  .hero__name { font-size: 15.5vw; }
  .contact__sep { display: none; }
  .modal__panel.is-wide .modal__media.is-gallery img { height: 42vh; max-height: 42vh; }
  .modal__video { height: 50vh; }
  .contact__ctas .btn--lg { width: 100%; justify-content: center; }
  .marquee { padding: 20px 0; --s: .62; }
}

@media (prefers-reduced-motion: reduce) {
  .grain, .btn__shine, .hero__scroll i::after, .contact__ctas .btn--primary { animation: none; }
  .words .wd { opacity: 1; }
}
html.no-anim .words .wd { opacity: 1; }
html.no-anim .loader { display: none; }
