/* ==========================================================================
   Delap Productions — DA « Viseur »
   ========================================================================== */

:root {
  --bg: #111214;
  --bg-alt: #17181b;
  --surface: #1a1c1f;
  --line: #24262a;
  --line-strong: #34363b;
  --text: #f5f3ee;
  --text-2: #c9c7c1;
  --text-3: #a3a5ab;
  --accent: #f2a93b;
  --accent-hover: #ffc56a;
  --rec: #ff4d3d;

  --font: "Space Grotesk", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, "Liberation Mono", Menlo, monospace;

  --container: 1200px;
  --pad: clamp(20px, 5vw, 48px);
  --header-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
main:focus { outline: none; }
html.is-locked { overflow: hidden; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
:focus:not(:focus-visible) { outline: none; }

.visually-hidden {
  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: absolute; left: 12px; top: -100px; z-index: 200;
  padding: 12px 18px; background: var(--accent); color: var(--bg);
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad); }

/* ---------- Typo utilitaires ---------- */
.eyebrow {
  display: block;
  color: var(--accent);
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  line-height: 1.4;
}
.h2 {
  font-size: clamp(2rem, 4.6vw, 3.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.02em;
}
.lead { color: var(--text-2); font-size: clamp(1.0625rem, 1.6vw, 1.25rem); }

/* ---------- Coins de cadrage (signature Viseur) ---------- */
.corners { position: absolute; inset: 0; pointer-events: none; --c-len: 28px; --c-w: 4px; --c-off: 0px; }
.corners i { position: absolute; width: var(--c-len); height: var(--c-len); border: 0 solid var(--accent); }
.corners i:nth-child(1) { top: var(--c-off); left: var(--c-off); border-top-width: var(--c-w); border-left-width: var(--c-w); }
.corners i:nth-child(2) { top: var(--c-off); right: var(--c-off); border-top-width: var(--c-w); border-right-width: var(--c-w); }
.corners i:nth-child(3) { bottom: var(--c-off); left: var(--c-off); border-bottom-width: var(--c-w); border-left-width: var(--c-w); }
.corners i:nth-child(4) { bottom: var(--c-off); right: var(--c-off); border-bottom-width: var(--c-w); border-right-width: var(--c-w); }

/* ---------- Point REC ---------- */
.rec-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--rec); flex: none; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px;
  border: 2px solid var(--accent); background: transparent; color: var(--accent);
  font-weight: 500; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn:hover { background: var(--accent); color: var(--bg); }
.link-arrow {
  display: inline-flex; align-items: center; gap: .5em; min-height: 44px;
  color: var(--accent); font-weight: 500; text-decoration: none;
  border-bottom: 2px solid transparent;
}
.link-arrow:hover { color: var(--accent-hover); border-bottom-color: currentColor; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  transition: background-color .3s var(--ease), border-color .3s var(--ease);
}
/* Transparent par-dessus le hero (seulement avec JS, qui gère le passage en opaque) */
.js .site-header--overlay:not(.is-scrolled):not(.is-open) { background: transparent; border-bottom-color: transparent; }

.site-header__inner {
  height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--pad);
}
.logo {
  display: inline-flex; align-items: center; gap: 4px; min-height: 44px;
  font-weight: 700; font-size: 1.5rem; letter-spacing: .02em; text-decoration: none; color: var(--text);
}
.logo .rec-dot { width: 8px; height: 8px; margin-left: 2px; transform: translateY(5px); }

.nav { display: flex; align-items: center; }
.nav__list { display: flex; align-items: center; gap: 4px; }
.nav__link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  color: var(--text); text-decoration: none; font-weight: 500; font-size: .9375rem;
}
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--accent); }

.lang { display: inline-flex; align-items: center; margin-left: 12px; padding-left: 12px; border-left: 1px solid var(--line-strong); }
.lang a, .lang span {
  display: inline-flex; align-items: center; justify-content: center; min-width: 36px; min-height: 44px;
  font-size: .8125rem; font-weight: 700; letter-spacing: .1em; text-decoration: none; color: var(--text-3);
}
.lang a:hover { color: var(--accent); }
.lang [aria-current="true"] { color: var(--text); }

.burger {
  display: none; position: relative; width: 48px; height: 48px; margin-right: -12px;
  background: none; border: 0; cursor: pointer;
}
.burger span, .burger span::before, .burger span::after {
  position: absolute; left: 13px; width: 22px; height: 2px; background: var(--text); content: "";
  transition: transform .25s var(--ease), opacity .2s;
}
.burger span { top: 23px; }
.burger span::before { left: 0; top: -7px; }
.burger span::after { left: 0; top: 7px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 767.98px) {
  .js .burger { display: block; }
  .js .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    flex-direction: column; align-items: stretch; padding: 24px var(--pad) 40px;
    background: var(--bg); border-top: 1px solid var(--line);
    overflow-y: auto;
  }
  .js .nav:not(.is-open) { display: none; }
  .js .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .js .nav__link { min-height: 64px; padding: 0; font-size: 1.75rem; font-weight: 700; border-bottom: 1px solid var(--line); }
  .js .lang { margin: 24px 0 0; padding: 0; border: 0; gap: 8px; }
  .js .lang a, .js .lang span { min-width: 48px; min-height: 48px; border: 1px solid var(--line-strong); }
  .js .lang [aria-current="true"] { border-color: var(--accent); }
  /* sans JS : navigation compacte toujours visible */
  .no-js .nav__link { padding: 0 6px; font-size: .875rem; }
  .no-js .lang { margin-left: 4px; padding-left: 4px; }
  .no-js .site-header { height: auto; min-height: var(--header-h); }
  .no-js .site-header__inner { flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; gap: 0 12px; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 560px;
  overflow: hidden; background: var(--surface);
  display: flex; align-items: flex-end; justify-content: center;
}
.hero__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__veil {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(17,18,20,.92) 0%, rgba(17,18,20,.55) 40%, rgba(17,18,20,.25) 70%, rgba(17,18,20,.45) 100%);
}
/* cadre : 24px des bords, le haut démarre sous la barre de navigation */
.hero .corners { inset: calc(var(--header-h) + 8px) 24px 24px; --c-len: clamp(28px, 4vw, 48px); z-index: 2; }
.hero__rec {
  position: absolute; z-index: 2; top: calc(var(--header-h) + 8px + clamp(18px, 2.5vw, 26px)); left: calc(24px + clamp(18px, 3vw, 30px));
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: .8125rem; letter-spacing: .08em;
  color: var(--text-2);
}
.hero__rec .rec-dot { animation: rec-blink 1.2s steps(1, end) infinite; }
.hero__rec b { color: var(--text); font-weight: 700; }
@keyframes rec-blink { 50% { opacity: 0; } }

.hero__content {
  position: relative; z-index: 3; width: 100%; max-width: 980px;
  padding: 0 calc(24px + var(--pad)) clamp(64px, 11vh, 112px);
  text-align: center;
}
.hero__title {
  margin: 18px 0 18px;
  font-size: clamp(2.75rem, 6.6vw, 4.75rem);
  font-weight: 700; line-height: 1; letter-spacing: -.03em;
}
.hero__text { max-width: 640px; margin: 0 auto; color: var(--text-2); font-size: clamp(1.0625rem, 1.7vw, 1.25rem); }
.hero__showreel {
  display: inline-flex; align-items: center; gap: 14px; margin-top: 32px; min-height: 56px;
  background: none; border: 0; padding: 0 8px 0 0; cursor: pointer; color: var(--text);
  font-weight: 500; font-size: 1rem;
}
.hero__showreel .play {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  border: 2px solid var(--accent); color: var(--accent);
  transition: background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.hero__showreel .play svg { width: 18px; height: 18px; margin-left: 3px; }
.hero__showreel:hover .play { background: var(--accent); color: var(--bg); transform: scale(1.05); }
.hero__showreel:hover { color: var(--accent-hover); }

/* ==========================================================================
   Bandeau logos
   ========================================================================== */
.logos { padding: 40px 0 44px; border-bottom: 1px solid var(--line); overflow: hidden; }
.logos__label { text-align: center; color: var(--text-3); margin-bottom: 28px; }
.logos__viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.logos__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.logos__viewport:hover .logos__track { animation-play-state: paused; }
.logos__list { display: flex; align-items: center; flex: none; }
.logos__item {
  display: flex; align-items: center; justify-content: center;
  height: 56px; padding: 0 clamp(24px, 3.5vw, 44px);
  opacity: .6; transition: opacity .25s var(--ease);
}
.logos__item:hover { opacity: 1; }
.logos__item img { height: 30px; width: auto; }
/* hauteur optique réglée logo par logo : logos larges plus bas, logos carrés limités */
.logos__item--nike img { height: 28px; }
.logos__item--nfl img { height: 36px; }
.logos__item--mcdonalds img { height: 34px; }
.logos__item--leboncoin img { height: 22px; }
.logos__item--asics img { height: 28px; }
.logos__item--zalando img { height: 23px; }
.logos__item--kappa img { height: 25px; }
.logos__item--redbull img { height: 24px; }
.logos__item--warner img { height: 52px; } /* écusson étroit : même poids visuel que Nike/McDonald's */
.logos__item span { font-weight: 500; font-size: 1.375rem; white-space: nowrap; letter-spacing: -.01em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section--alt { background: var(--bg-alt); }
.section__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-bottom: clamp(32px, 4vw, 48px); }
.section__head .eyebrow { margin-bottom: 14px; }

.work { padding-bottom: 0; }
.work__more { display: flex; justify-content: center; padding: 40px var(--pad) clamp(72px, 9vw, 112px); }

/* ==========================================================================
   Grille projets (pleine largeur, 4px)
   ========================================================================== */
.grid { display: grid; grid-template-columns: 1fr; gap: 4px; }
@media (min-width: 768px) { .grid { grid-template-columns: 1fr 1fr; } }

.card { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface); }
.card__hit {
  position: absolute; inset: 0; display: block; width: 100%; height: 100%;
  padding: 0; border: 0; background: none; color: var(--text); text-align: left; text-decoration: none; cursor: pointer;
}
.card__hit:focus-visible { outline: none; }
.card__media, .card__media img, .card__media video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.card__media img, .card__media video {
  filter: brightness(.6);
  transition: filter .45s var(--ease), transform .8s var(--ease);
}
.card__veil {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(17,18,20,.88) 0%, rgba(17,18,20,.45) 38%, rgba(17,18,20,0) 65%);
}
.card__badge {
  position: absolute; top: 18px; right: 18px; z-index: 2;
  padding: 5px 9px; background: var(--accent); color: var(--bg);
  font-size: .6875rem; font-weight: 700; letter-spacing: .14em; line-height: 1.2;
}
@media (max-width: 767px) { .card__badge { top: 10px; right: 10px; } }
.card__cat {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  padding: 5px 9px; background: rgba(17,18,20,.72); border: 1px solid var(--line-strong);
  font-size: .6875rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; line-height: 1.2;
}
.card__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 20px 20px 18px; }
.card__title {
  display: flex; align-items: center; gap: 12px;
  font-size: clamp(1.25rem, 2.3vw, 1.875rem); font-weight: 700; line-height: 1.1; letter-spacing: -.015em;
}
.card__title .rec-dot { opacity: 0; transform: scale(.4); transition: opacity .3s var(--ease), transform .3s var(--ease); }
.card__meta, .card__role { display: block; }
.card__meta { margin-top: 6px; color: var(--text-2); font-size: .9375rem; }
.card__role {
  margin-top: 8px; color: var(--accent);
  font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
}
.card .corners { --c-off: 14px; --c-len: 26px; z-index: 3; opacity: 0; transform: scale(1.04); transition: opacity .35s var(--ease), transform .45s var(--ease); }
/* icône Instagram : 20px dans une zone cliquable de 44px, logée dans le coin de cadrage.
   Visible au survol sur ordinateur, toujours visible sur écran tactile. */
.card__insta {
  position: absolute; z-index: 4; right: 18px; top: 18px;
  display: grid; place-items: center; width: 44px; height: 44px;
  color: var(--text); text-decoration: none;
  transition: color .2s var(--ease), opacity .25s var(--ease);
}
.card__insta svg { width: 20px; height: 20px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.7)); }
.card__insta:hover { color: var(--accent); }
@media (hover: hover) and (pointer: fine) {
  .card__insta { opacity: 0; }
  .card:hover .card__insta, .card:focus-within .card__insta { opacity: 1; }
}
.card--empty .card__media { display: flex; align-items: center; justify-content: center; }

.card:hover .card__media img, .card:hover .card__media video,
.card:focus-within .card__media img, .card:focus-within .card__media video { filter: brightness(1); }
.card:hover .corners, .card:hover .card__title .rec-dot,
.card:focus-within .corners, .card:focus-within .card__title .rec-dot { opacity: 1; transform: scale(1); }
/* contour de focus du lien principal, dessiné à l'intérieur de la vignette */
.card__hit:focus-visible::after { content: ""; position: absolute; inset: 0; z-index: 5; outline: 2px solid var(--accent); outline-offset: -2px; }

@media (max-width: 479.98px) {
  .card__body { padding: 14px 14px 12px; }
  .card__meta { font-size: .8125rem; margin-top: 4px; }
  .card__role { margin-top: 4px; font-size: .6875rem; }
  .card__cat { top: 10px; left: 10px; }
  .card__insta { right: 10px; top: 10px; }
  .card .corners { --c-off: 8px; --c-len: 18px; --c-w: 3px; }
}

/* ==========================================================================
   Page Projets
   ========================================================================== */
.page-head { padding: calc(var(--header-h) + clamp(48px, 8vw, 96px)) 0 clamp(32px, 4vw, 48px); }
.page-head h1 { font-size: clamp(2.75rem, 7vw, 5rem); font-weight: 700; line-height: 1; letter-spacing: -.03em; margin-top: 14px; }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 32px; }
.filter {
  min-height: 44px; padding: 0 20px; cursor: pointer;
  background: transparent; border: 1px solid var(--line-strong); color: var(--text);
  font-weight: 500; font-size: .9375rem;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.filter:hover { border-color: var(--accent); color: var(--accent); }
.filter[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.filters__count { margin-left: 8px; color: var(--text-3); font-size: .875rem; }
.no-js .filters { display: none; }
.projects-page .grid { margin-bottom: clamp(72px, 10vw, 128px); }

/* ==========================================================================
   À propos
   ========================================================================== */
.about-section { border-top: 1px solid var(--line); }
.about { display: grid; gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (min-width: 900px) { .about { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.about__photo { position: relative; aspect-ratio: 4 / 5; background: var(--surface); border: 1px solid var(--line); }
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
.about__photo .corners { --c-off: -10px; --c-len: 36px; }
.about__placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: var(--text-3); font-size: .9375rem; letter-spacing: .04em; }
.about__text .eyebrow { margin-bottom: 14px; }
.about__text .h2 { margin-bottom: 28px; }
.about__text p { color: var(--text-2); font-size: clamp(1.0625rem, 1.5vw, 1.1875rem); }
.about__text p + p { margin-top: 18px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.tags li { padding: 8px 14px; border: 1px solid var(--line-strong); color: var(--text); font-size: .875rem; font-weight: 500; }

/* ==========================================================================
   Com & marketing
   ========================================================================== */
.com { max-width: 900px; }
.com .eyebrow { margin-bottom: 14px; }
.com .h2 { font-size: clamp(1.875rem, 4vw, 3rem); margin-bottom: 24px; }
.com p { color: var(--text-2); font-size: clamp(1.0625rem, 1.5vw, 1.1875rem); max-width: 680px; }
.com .btn { margin-top: 32px; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact { padding: clamp(88px, 13vw, 176px) 0; border-top: 1px solid var(--line); }
.contact__title {
  font-size: clamp(2.75rem, 9vw, 7.5rem); font-weight: 700; line-height: .95; letter-spacing: -.035em; max-width: 12ch;
}
.contact__lead { margin-top: 24px; color: var(--text-2); font-size: clamp(1.125rem, 2vw, 1.5rem); }
.contact__direct { display: flex; flex-wrap: wrap; gap: 8px 40px; margin-top: 48px; }
.contact__direct a {
  display: inline-flex; align-items: center; min-height: 48px;
  font-size: clamp(1.25rem, 2.6vw, 2rem); font-weight: 500; text-decoration: none; color: var(--accent);
  border-bottom: 2px solid transparent; word-break: break-word;
}
.contact__direct a:hover { color: var(--accent-hover); border-bottom-color: currentColor; }
.contact__social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.contact__social a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  border: 1px solid var(--line-strong); text-decoration: none; font-weight: 500; font-size: .9375rem;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.contact__social a:hover { border-color: var(--accent); color: var(--accent); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--text-3); font-size: .875rem; }
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }

/* ==========================================================================
   Fenêtre vidéo
   ========================================================================== */
.modal {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: var(--bg); color: var(--text);
  overflow-y: auto;
}
.modal::backdrop { background: var(--bg); }
.modal[open] { display: flex; animation: modal-in .25s var(--ease); }
@keyframes modal-in { from { opacity: 0; } }
.modal__stage {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  min-height: 100%; padding: 72px var(--pad) 40px;
}
/* centré quand tout tient à l'écran, sans rogner le haut quand ça déborde (photos, films) */
.modal__stage::before, .modal__stage::after { content: ""; flex: 1 1 0; }
.modal__close {
  position: fixed; top: 12px; right: 12px; z-index: 5;
  display: grid; place-items: center; width: 48px; height: 48px;
  background: var(--bg); border: 1px solid var(--line-strong); cursor: pointer; color: var(--text);
}
.modal__close:hover { border-color: var(--accent); color: var(--accent); }
.modal__close svg { width: 18px; height: 18px; }
.modal__viewer { position: relative; padding: 14px; max-width: 100%; }
.modal__viewer .corners { --c-len: 32px; }
.modal__media { display: flex; justify-content: center; }
.modal__media video, .modal__media img {
  max-width: min(100%, 1400px); max-height: calc(100svh - 280px); width: auto; height: auto; background: #000;
}
.modal__media video { min-width: min(100%, 320px); }
.modal__placeholder {
  display: grid; place-items: center; width: min(80vw, 960px); aspect-ratio: 16 / 9;
  background: var(--surface); color: var(--text-3); text-align: center; padding: 24px;
  font-size: clamp(1.25rem, 3vw, 2rem); font-weight: 700;
}
.modal__info { width: 100%; max-width: 960px; margin-top: 28px; text-align: center; }
.modal__title { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; }
.modal__meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 32px; margin-top: 16px; }
.modal__meta div { display: flex; flex-direction: column; }
.modal__meta dt { color: var(--text-3); font-size: .6875rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.modal__meta dd { color: var(--text); font-size: 1rem; }
.modal__meta .is-role dd { color: var(--accent); }
.modal__insta { margin-top: 12px; }

/* Galerie photos (dans le cadre de la fenêtre) */
.modal__media--gallery { display: block; }
.gallery { position: relative; display: flex; flex-direction: column; align-items: center; touch-action: pan-y; }
.gallery__img {
  max-width: min(100%, 1400px); max-height: calc(100svh - 300px); width: auto; height: auto;
  background: #000; user-select: none; -webkit-user-drag: none;
}
.gallery__nav {
  position: absolute; top: calc(50% - 22px); transform: translateY(-50%);
  display: grid; place-items: center; width: 48px; height: 48px; padding: 0;
  background: rgba(17,18,20,.72); border: 1px solid var(--line-strong); color: var(--text); cursor: pointer;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.gallery__nav svg { width: 12px; height: 20px; }
.gallery__nav:hover, .gallery__nav:focus-visible { border-color: var(--accent); color: var(--accent); }
.gallery__nav--prev { left: 8px; }
.gallery__nav--next { right: 8px; }
.gallery__bar { display: flex; align-items: center; justify-content: center; gap: 24px; min-height: 44px; margin-top: 8px; }
.gallery__count { margin: 0; font-family: var(--mono); font-variant-numeric: tabular-nums; color: var(--text-2); font-size: .9375rem; letter-spacing: .06em; }
.gallery__back { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; }
@media (min-width: 1100px) {
  .gallery__nav--prev { left: -72px; }
  .gallery__nav--next { right: -72px; }
}

/* Vignettes sous la fenêtre : films (plusieurs vidéos) et photos */
.modal__extra { width: 100%; max-width: 960px; margin-top: 32px; text-align: center; }
.modal__extra .eyebrow { margin-bottom: 12px; }
.thumbs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.thumbs__btn {
  position: relative; display: block; width: 96px; height: 96px; padding: 0; overflow: hidden;
  background: var(--surface); border: 2px solid transparent; cursor: pointer; color: var(--text-2);
  transition: border-color .2s var(--ease);
}
.thumbs__btn img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.75); transition: filter .25s var(--ease); }
.thumbs__btn:hover img, .thumbs__btn:focus-visible img, .thumbs__btn[aria-current] img { filter: none; }
.thumbs__btn:hover, .thumbs__btn:focus-visible { border-color: var(--line-strong); }
.thumbs__btn[aria-current] { border-color: var(--accent); }
.thumbs__num { display: grid; place-items: center; height: 100%; font-weight: 700; }
@media (max-width: 600px) { .thumbs__btn { width: 72px; height: 72px; } }

/* ==========================================================================
   404
   ========================================================================== */
.notfound { min-height: 100svh; display: flex; align-items: center; padding-top: var(--header-h); }
.notfound__frame { position: relative; padding: clamp(32px, 6vw, 64px); }
.notfound__code { font-family: var(--mono); color: var(--text-3); font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: 10px; }
.notfound h1 { font-size: clamp(2.5rem, 7vw, 5rem); line-height: 1; letter-spacing: -.03em; margin: 20px 0; }
.notfound p { color: var(--text-2); }
.notfound .links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 24px; }

/* ==========================================================================
   Mouvement réduit
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .hero__rec .rec-dot { animation: none; }
  .logos__track { animation: none; width: auto; }
  .logos__list { flex-wrap: wrap; justify-content: center; flex: 1; row-gap: 16px; }
  .logos__list[aria-hidden="true"] { display: none; }
  .logos__viewport { -webkit-mask-image: none; mask-image: none; }
  .card .corners { transform: none; }
}
