/* ==========================================================================
   TRAME STUDIO
   Direction artistique : noir profond, typographie Switzer, photo plein cadre.
   Toutes les valeurs partagées sont dans les variables ci-dessous.
   ========================================================================== */
/* Police Switzer (Fontshare, licence gratuite), hébergée dans le site */
@font-face { font-family: "Switzer"; src: url("../fonts/switzer-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Switzer"; src: url("../fonts/switzer-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Switzer"; src: url("../fonts/switzer-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Switzer"; src: url("../fonts/switzer-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  /* Couleurs */
  --bg: #000000;
  --surface: #0a0a0a;
  --ink: #ffffff;
  --ink-soft: rgba(255, 255, 255, .62);
  --ink-mute: rgba(255, 255, 255, .38);
  --line: rgba(255, 255, 255, .12);
  --ghost: #161616;          /* texte géant du pied de page */
  --btn-bg: #ffffff;
  --btn-ink: #000000;

  /* Typographie */
  --font: "Switzer", "Inter", system-ui, -apple-system, sans-serif;
  --fs-hero: clamp(44px, 4.2vw, 60px);
  --fs-h2: clamp(34px, 3.2vw, 45px);
  --fs-h3: clamp(20px, 1.6vw, 22px);
  --fs-about: clamp(22px, 2.1vw, 30px);
  --fs-body: 16px;
  --fs-small: 14px;

  /* Espacements */
  --container: 1200px;
  --gutter: clamp(20px, 5vw, 40px);
  --section: clamp(96px, 11vw, 160px);
  --radius: 2px;
  --radius-card: 4px;

  /* Mouvement */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 500 var(--fs-body)/1.45 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.is-loading { overflow: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
::selection { background: var(--ink); color: var(--bg); }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-top: var(--section); }

/* ---------- Texte qui roule au survol (boutons, liens) ---------- */
.roll { display: inline-grid; overflow: hidden; vertical-align: top; }
.roll > span { grid-area: 1 / 1; transition: transform .5s var(--ease); }
.roll > span + span { transform: translateY(105%); }
a:hover > .roll > span, .roll:hover > span, .btn:hover .roll > span { transform: translateY(-105%); }
a:hover > .roll > span + span, .roll:hover > span + span, .btn:hover .roll > span + span { transform: none; }

/* ---------- Bouton ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 25px; border-radius: var(--radius); background: var(--btn-bg); color: var(--btn-ink); font-size: var(--fs-small); font-weight: 600; letter-spacing: 0; text-transform: uppercase; white-space: nowrap; transition: transform .4s var(--ease); }
.btn:active { transform: scale(.97); }

/* ---------- Titres de section ---------- */
h2 { font-size: var(--fs-h2); font-weight: 600; line-height: 1.2; letter-spacing: -.02em; text-transform: uppercase; }
.head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 64px; }
.head__sub { max-width: 340px; margin-top: 6px; color: var(--ink-soft); font-size: 17px; line-height: 1.45; }

/* ==========================================================================
   ÉCRAN D'OUVERTURE
   ========================================================================== */
.loader { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; pointer-events: none; }
.loader__cols { position: absolute; inset: 0; z-index: -1; display: grid; grid-template-columns: repeat(8, 1fr); }
.loader__cols i { background: var(--bg); transition: transform 1s var(--ease-io); }
.loader__word { font-size: 22px; font-weight: 600; letter-spacing: -.02em; transition: opacity .4s; }
.loader.is-out .loader__word { opacity: 0; }
.loader.is-out .loader__cols i { transform: translateY(-101%); }
.loader.is-out .loader__cols i:nth-child(2) { transition-delay: .06s; }
.loader.is-out .loader__cols i:nth-child(3) { transition-delay: .12s; }
.loader.is-out .loader__cols i:nth-child(4) { transition-delay: .18s; }
.loader.is-out .loader__cols i:nth-child(5) { transition-delay: .24s; }
.loader.is-out .loader__cols i:nth-child(6) { transition-delay: .30s; }
.loader.is-out .loader__cols i:nth-child(7) { transition-delay: .36s; }
.loader.is-out .loader__cols i:nth-child(8) { transition-delay: .42s; }
.loader.is-done { display: none; }

/* lettres découpées : montée + flou */
[data-chars] .c { display: inline-block; opacity: 0; filter: blur(8px); transform: translateY(40%); transition: opacity .6s var(--ease), filter .6s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i) * 45ms + var(--d, 0ms)); }
[data-chars].is-in .c { opacity: 1; filter: blur(0); transform: none; }

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 60; display: flex; justify-content: space-between; align-items: center; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding: 14px var(--gutter); font-size: var(--fs-small); font-weight: 600; text-transform: uppercase; }
.nav::before { content: ""; position: absolute; inset: 0 calc(50% - 50vw) -24px; z-index: -1; background: linear-gradient(to bottom, rgba(0,0,0,.7), transparent); pointer-events: none; }
.nav__logo { display: block; color: var(--ink); line-height: 0; }
.nav__logo svg { width: auto; height: 18px; }
.nav__links { display: flex; align-items: center; gap: 24px; }
.nav__links > a, .nav__trigger { color: var(--ink); font-weight: 600; text-transform: uppercase; transition: color .35s; }
.nav__links > a:hover, .nav__trigger:hover, .nav__drop.is-open .nav__trigger { color: var(--ink-mute); }
.nav__links > a[aria-current="page"], .nav__trigger[data-current] { color: var(--ink-mute); }
.nav__trigger:hover .roll > span, .nav__drop.is-open .nav__trigger .roll > span { transform: translateY(-105%); }
.nav__trigger:hover .roll > span + span, .nav__drop.is-open .nav__trigger .roll > span + span { transform: none; }

/* Liste déroulante « Travaux » */
.nav__drop { position: relative; }
.nav__panel { position: absolute; top: calc(100% + 14px); left: -16px; width: 260px; padding: 8px; border: 1px solid var(--line); border-radius: var(--radius-card); background: rgba(10,10,10,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); opacity: 0; visibility: hidden; filter: blur(6px); transform: translateY(-6px); transition: opacity .4s var(--ease), transform .45s var(--ease), filter .4s var(--ease), visibility 0s .45s; }
.nav__panel::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.nav__drop.is-open .nav__panel { opacity: 1; visibility: visible; filter: none; transform: none; transition-delay: 0s; }
@media (hover: hover) { .nav__drop:not(.is-closing):hover .nav__panel { opacity: 1; visibility: visible; filter: none; transform: none; transition-delay: 0s; } }
.nav__panel a { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; padding: 12px 10px; border-radius: var(--radius); font-weight: 600; text-transform: uppercase; transition: background .3s; }
.nav__panel a + a { border-top: 1px solid var(--line); }
.nav__panel a:hover { background: rgba(255,255,255,.06); }
.nav__panel a[aria-current="page"] .nav__label { color: var(--ink-mute); }
.nav__n { font-size: 12px; color: var(--ink-mute); }
.nav__arrow { opacity: .4; transition: transform .4s var(--ease), opacity .3s; }
.nav__panel a:hover .nav__arrow { opacity: 1; transform: translate(2px, -2px); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { position: relative; display: grid; place-items: center; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; }
.hero__img, .hero__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__img img { object-position: 50% 35%; transform: scale(1.12); transition: transform 2.2s var(--ease); will-change: transform; }
.is-ready .hero__img img { transform: scale(1); }
.hero__shade { position: absolute; inset: 0; background: radial-gradient(60% 45% at 50% 52%, rgba(0,0,0,.38), transparent 70%), linear-gradient(to bottom, rgba(0,0,0,.35), transparent 22%, transparent 70%, rgba(0,0,0,.55)); }
.hero__content { position: relative; z-index: 1; padding-inline: var(--gutter); text-align: center; }
.hero__title { font-size: var(--fs-hero); font-weight: 700; line-height: 1.2; letter-spacing: -.04em; }
.hero__soft { color: rgba(255,255,255,.72); }
.hero__text { max-width: 520px; margin: 14px auto 0; font-size: 17px; line-height: 1.5; color: rgba(255,255,255,.88); }

/* ---------- Bandeau d'infos, collé sous le menu ---------- */
.infobar { position: relative; z-index: 2; margin-top: -56px; pointer-events: none; }
.infobar__row { display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; padding-block: 18px; font-size: var(--fs-small); font-weight: 600; text-transform: uppercase; white-space: nowrap; }
.infobar__row span:nth-child(3) { font-variant-numeric: tabular-nums; }

/* ==========================================================================
   À PROPOS
   ========================================================================== */
.about { padding-top: 140px; }
.about__text { max-width: 820px; margin-inline: auto; font-size: var(--fs-about); line-height: 1.2; letter-spacing: -.01em; }
.about__text .w { color: rgba(255,255,255,.2); transition: color .35s; }
.about__text .w.is-on { color: var(--ink); }
.stats { display: flex; justify-content: space-between; gap: 32px; margin-top: 140px; }
.stat strong { display: block; font-size: 28px; font-weight: 600; letter-spacing: -.02em; }
.stat span { display: block; margin-top: 4px; color: var(--ink-soft); }

/* ==========================================================================
   TRAVAUX : bandeau de cartes qui défile
   ========================================================================== */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.marquee__track { display: flex; gap: 16px; width: max-content; animation: slide 60s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(calc(-50% - 8px)); } }
.work { position: relative; flex: none; width: clamp(260px, 25vw, 364px); aspect-ratio: 3 / 2; border-radius: var(--radius-card); overflow: hidden; text-align: left; isolation: isolate; }
.work img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .6s; }
.work::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.6), transparent 55%); transition: opacity .5s; }
.work:hover img { transform: scale(1.06); }
.work__meta { position: absolute; left: 10px; right: 10px; bottom: 8px; z-index: 1; transition: transform .5s var(--ease); }
.work:hover .work__meta { transform: translateY(-4px); }
.work__tag { display: block; font-size: var(--fs-small); font-weight: 600; color: rgba(255,255,255,.7); }
.work__title { display: block; font-size: clamp(20px, 2vw, 30px); font-weight: 600; line-height: 1.1; letter-spacing: -.02em; text-transform: uppercase; }

/* ==========================================================================
   FILMS & REELS
   ========================================================================== */
.films { display: grid; grid-template-columns: 2.1fr 1fr 1fr 1fr; gap: 16px; align-items: end; }
.film { position: relative; display: block; width: 100%; border-radius: var(--radius-card); overflow: hidden; text-align: left; background: var(--surface); isolation: isolate; }
.film--film { aspect-ratio: 16 / 9; align-self: stretch; height: 100%; }
.film--reel { aspect-ratio: 9 / 16; }
.film img, .film video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.film:hover img { transform: scale(1.05); }
.film::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.7), transparent 50%); }
.film__meta { position: absolute; left: 12px; right: 12px; bottom: 10px; z-index: 1; }
.film__tag { display: block; font-size: 13px; font-weight: 600; color: rgba(255,255,255,.7); }
.film__title { display: block; font-size: clamp(18px, 1.6vw, 24px); font-weight: 600; line-height: 1.1; letter-spacing: -.02em; text-transform: uppercase; }
.film--film .film__title { font-size: clamp(24px, 2.4vw, 34px); }
.film__state { position: absolute; top: 10px; right: 10px; z-index: 1; padding: 4px 10px; border-radius: var(--radius); background: var(--btn-bg); color: var(--btn-ink); font-size: 12px; font-weight: 600; text-transform: uppercase; }
.film__play { position: absolute; left: 50%; top: 50%; z-index: 1; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--btn-bg); color: var(--btn-ink); font-size: 16px; transform: translate(-50%, -50%) scale(.9); transition: transform .5s var(--ease); }
.film:hover .film__play { transform: translate(-50%, -50%) scale(1); }

/* ==========================================================================
   SERVICES
   ========================================================================== */
.service { display: grid; grid-template-columns: 1fr 670px; gap: 40px; }
.service + .service { margin-top: 0; }
.service__title { padding-top: 24px; font-size: var(--fs-h3); font-weight: 600; line-height: 1.3; letter-spacing: -.01em; text-transform: uppercase; }
.service__body { display: grid; grid-template-columns: 310px 1fr; gap: 32px; padding-block: 24px; border-bottom: 1px solid var(--line); }
.service__tags { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; align-content: start; margin: 0; padding: 0; list-style: none; font-size: var(--fs-small); font-weight: 600; text-transform: uppercase; }
.service__body p { color: var(--ink-soft); font-size: 15px; line-height: 1.5; }

/* ==========================================================================
   MÉTHODE
   ========================================================================== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.step__n { display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--radius); background: var(--ink); color: var(--bg); font-size: 13px; font-weight: 700; }
.step__title { margin: 24px 0 18px; font-size: var(--fs-small); font-weight: 600; text-transform: uppercase; }
.step p { color: var(--ink-soft); line-height: 1.5; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { display: grid; grid-template-columns: 1fr 600px; gap: 40px; align-items: start; }
.faq__list details { border-bottom: 1px solid var(--line); }
.faq__list summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-block: 18px; list-style: none; cursor: pointer; font-weight: 600; }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary i { flex: none; width: 10px; height: 10px; margin-right: 4px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); transition: transform .4s var(--ease); }
.faq__list details[open] summary i { transform: translateY(2px) rotate(-135deg); }
.faq__list details p { padding-bottom: 20px; color: var(--ink-soft); line-height: 1.5; animation: open .5s var(--ease); }
@keyframes open { from { opacity: 0; transform: translateY(-6px); filter: blur(4px); } }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { padding-top: var(--section); overflow: hidden; }
.footer__top { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.footer__cta { max-width: 520px; }
.footer__brand { color: var(--ink-soft); font-weight: 600; text-transform: uppercase; }
.footer__title { margin: 14px 0 40px; font-size: clamp(20px, 1.7vw, 24px); line-height: 1.2; text-transform: uppercase; }
.footer__cols { display: flex; gap: 60px; }
.footer__cols div { display: grid; align-content: start; gap: 14px; }
.footer__cols p { margin-bottom: 10px; font-size: var(--fs-small); font-weight: 600; text-transform: uppercase; }
.footer__cols a { color: var(--ink-soft); transition: color .3s; }
.footer__cols a:hover { color: var(--ink); }
.footer__bar { display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 16px; margin-top: 200px; font-size: var(--fs-small); font-weight: 600; text-transform: uppercase; }
.footer__bar span:nth-child(3) { font-variant-numeric: tabular-nums; }
.footer__marquee { margin-top: 32px; overflow: hidden; color: var(--ghost); font-size: clamp(56px, 6.4vw, 92px); font-weight: 600; line-height: 1; letter-spacing: -.03em; text-transform: uppercase; white-space: nowrap; }
.footer__marquee div { display: flex; gap: .9em; width: max-content; padding-bottom: .1em; animation: slide 30s linear infinite; }

/* ==========================================================================
   VISIONNEUSE
   ========================================================================== */
.lightbox { position: fixed; inset: 0; z-index: 150; display: grid; grid-template-columns: 72px 1fr 72px; align-items: center; background: rgba(0,0,0,.96); animation: fade .35s var(--ease); }
.lightbox[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }
.lightbox__stage { display: grid; grid-template-rows: 1fr auto; gap: 14px; justify-items: center; height: 100svh; min-width: 0; margin: 0; padding: 64px 0 24px; }
.lightbox__media { position: relative; width: 100%; height: 100%; min-height: 0; }
.lightbox__media img, .lightbox__media video, .lightbox__media iframe { position: absolute; inset: 0; margin: auto; max-width: 100%; max-height: 100%; }
.lightbox__media img, .lightbox__media video { width: auto; height: auto; object-fit: contain; border-radius: var(--radius-card); animation: fade .4s var(--ease); }
.lightbox__media iframe { width: min(100%, 1100px); aspect-ratio: 16 / 9; border: 0; }
.lightbox__media iframe.is-vertical { width: auto; height: min(100%, 86svh); aspect-ratio: 9 / 16; }
.lightbox__cap { color: var(--ink-soft); font-size: var(--fs-small); font-weight: 600; text-transform: uppercase; }
.lightbox__close { position: absolute; top: 18px; right: var(--gutter); font-size: var(--fs-small); font-weight: 600; text-transform: uppercase; }
.lightbox__nav { height: 100%; font-size: 22px; opacity: .6; transition: opacity .3s; }
.lightbox__nav:hover { opacity: 1; }

/* ==========================================================================
   PAGE TRAVAUX
   ========================================================================== */
.page-head { padding-top: 180px; }
.page-title { font-size: clamp(64px, 12vw, 180px); font-weight: 700; line-height: .95; letter-spacing: -.05em; }
.page-head .head__sub { max-width: 460px; margin-top: 24px; }
.series { padding-top: var(--section); }
.series__head { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 8px 40px; margin-bottom: 48px; }
.series__tag { grid-column: 1 / -1; color: var(--ink-soft); font-size: var(--fs-small); font-weight: 600; text-transform: uppercase; }
.series__head .head__sub { justify-self: end; max-width: 380px; }
.gallery { columns: 3 280px; column-gap: 16px; }
.shot { display: block; width: 100%; margin-bottom: 16px; break-inside: avoid; border-radius: var(--radius-card); overflow: hidden; }
.shot img { width: 100%; height: auto; transition: transform 1.2s var(--ease), opacity .4s; }
.shot:hover img { transform: scale(1.04); }
@media (max-width: 767px) {
  .page-head { padding-top: 130px; }
  .series__head { grid-template-columns: 1fr; }
  .series__head .head__sub { justify-self: start; }
  .gallery { columns: 2 140px; column-gap: 8px; }
  .shot { margin-bottom: 8px; }
}

/* ==========================================================================
   PAGES CATÉGORIES (mariage, sport, influence)
   ========================================================================== */
.hero--page { place-items: end start; height: 92vh; height: 92svh; }
.hero--page .hero__content { width: 100%; padding-bottom: clamp(48px, 8vh, 96px); text-align: left; }
.hero--page .hero__shade { background: linear-gradient(to bottom, rgba(0,0,0,.45), transparent 30%, rgba(0,0,0,.15) 55%, rgba(0,0,0,.75)); }
.hero--page .hero__text, .hero--type .hero__text { margin: 18px 0 32px; max-width: 460px; }
.hero__kicker { margin-bottom: 14px; font-size: var(--fs-small); font-weight: 600; text-transform: uppercase; color: rgba(255,255,255,.8); }
.hero--type { place-items: center start; height: auto; min-height: 92vh; min-height: 92svh; padding-top: 120px; }
.hero--type .hero__content { width: 100%; text-align: left; }
.hero__ticker { position: absolute; left: 0; right: 0; bottom: 32px; overflow: hidden; color: var(--ghost); font-size: clamp(48px, 7vw, 110px); font-weight: 600; line-height: 1; letter-spacing: -.03em; text-transform: uppercase; white-space: nowrap; }
.hero__ticker div { display: flex; gap: .8em; width: max-content; animation: slide 40s linear infinite; }

.intro-words { padding-top: var(--section); }

.offer { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 32px; }
.offer__item { padding-top: 24px; border-top: 1px solid var(--line); }
.offer__item span { font-size: var(--fs-small); font-weight: 600; color: var(--ink-mute); }
.offer__item h3 { margin: 40px 0 14px; font-size: var(--fs-h3); font-weight: 600; letter-spacing: -.01em; text-transform: uppercase; }
.offer__item p { color: var(--ink-soft); font-size: 15px; line-height: 1.5; }

.cta-band { display: grid; justify-items: center; gap: 32px; padding-block: 40px; text-align: center; }
.cta-band h2 { max-width: 14ch; font-size: clamp(40px, 5vw, 72px); line-height: 1.05; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 9px 18px; border: 1px solid rgba(255,255,255,.3); border-radius: var(--radius); font-size: var(--fs-small); font-weight: 600; text-transform: uppercase; transition: background .3s, color .3s, border-color .3s; }
.chip:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.service__title a { display: inline-flex; gap: 10px; align-items: baseline; }
.service__title a i { font-style: normal; font-size: .8em; opacity: .5; transition: transform .4s var(--ease), opacity .3s; }
.service__title a:hover i { transform: translate(3px, -3px); opacity: 1; }

/* Sessions sport */
.session { padding-top: var(--section); }
.session__head { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 40px; align-items: end; margin-bottom: 48px; }
.session__n { grid-column: 1 / -1; font-size: var(--fs-small); font-weight: 600; text-transform: uppercase; color: var(--ink-mute); }
.session__head h2 { font-size: clamp(40px, 5vw, 72px); line-height: 1; }
.session__info { display: flex; gap: 24px; justify-self: end; font-size: var(--fs-small); font-weight: 600; text-transform: uppercase; }
.session__text { grid-column: 2; justify-self: end; max-width: 460px; color: var(--ink-soft); font-size: 17px; line-height: 1.5; }
.session__films { margin-bottom: 16px; }
.next-session { display: grid; justify-items: start; gap: 16px; padding: 56px; border: 1px dashed rgba(255,255,255,.22); border-radius: var(--radius-card); }
.next-session .btn { margin-top: 12px; }

/* Cartes vidéo sans image : version typographique */
.film--typo { background: radial-gradient(120% 70% at 80% 0%, #1d1d1d, #050505 70%); }
.film__word { position: absolute; left: 12px; right: 12px; top: 16px; font-size: clamp(34px, 3.4vw, 52px); font-weight: 700; line-height: .95; letter-spacing: -.04em; text-transform: uppercase; color: rgba(255,255,255,.14); overflow-wrap: anywhere; }
.films--reels { grid-template-columns: repeat(5, 1fr); }

@media (max-width: 1100px) {
  .offer { grid-template-columns: 1fr 1fr; gap: 48px 32px; }
}
@media (max-width: 767px) {
  .offer { grid-template-columns: 1fr; gap: 40px; }
  .offer__item h3 { margin-top: 20px; }
  .session__head { grid-template-columns: 1fr; }
  .session__info, .session__text { grid-column: auto; justify-self: start; }
  .next-session { padding: 32px 24px; }
  .films--reels { grid-template-columns: repeat(5, 72%); }
  .hero--type { min-height: 80svh; }
}

/* ==========================================================================
   APPARITIONS AU SCROLL
   ========================================================================== */
.blur-in { opacity: 0; filter: blur(10px); transform: translateY(16px); transition: opacity .9s var(--ease), filter .9s var(--ease), transform .9s var(--ease); }
.rise { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.blur-in.is-in, .rise.is-in { opacity: 1; filter: blur(0); transform: none; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px) {
  .service { grid-template-columns: 1fr; gap: 0; }
  .service__title { padding-top: 32px; }
  .faq { grid-template-columns: 1fr; }
  .films { grid-template-columns: repeat(3, 1fr); }
  .film--film { grid-column: 1 / -1; height: auto; }
}
@media (max-width: 767px) {
  .nav { font-size: 12px; }
  .nav__links { gap: 12px; }
  .nav__drop { position: static; }
  .nav__panel { left: var(--gutter); right: var(--gutter); width: auto; top: 52px; }
  .infobar__row { grid-template-columns: auto auto; }
  .infobar__row span:nth-child(n+3) { display: none; }
  .hero__text { font-size: 15px; }
  .about { padding-top: 110px; }
  .stats { flex-wrap: wrap; margin-top: 90px; }
  .stat { width: calc(50% - 16px); }
  .head { flex-direction: column; align-items: flex-start; margin-bottom: 40px; }
  .service__body { grid-template-columns: 1fr; gap: 20px; }
  .steps { grid-template-columns: 1fr; gap: 48px; }
  .films { grid-template-columns: repeat(3, 70%); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .films::-webkit-scrollbar { display: none; }
  .film--film { grid-column: auto; aspect-ratio: 9 / 16; }
  .film { scroll-snap-align: start; }
  .films { grid-template-columns: repeat(4, 72%); }
  .footer__cols { gap: 36px; flex-wrap: wrap; }
  .footer__bar { grid-template-columns: 1fr 1fr; margin-top: 120px; }
  .footer__bar span:nth-child(n+3) { display: none; }
  .lightbox { grid-template-columns: 40px 1fr 40px; }
}
@media (max-width: 389px) {
  .nav__home { display: none; }
  .infobar__row { grid-template-columns: auto; }
  .infobar__row span:nth-child(2) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Mentions légales & 404 ---------- */
.legal { padding-top: 160px; max-width: calc(820px + 2 * var(--gutter)); }
.legal .page-title { font-size: clamp(40px, 7vw, 96px); margin-bottom: 56px; }
.legal section { padding-block: 28px; border-top: 1px solid var(--line); }
.legal h2 { margin-bottom: 14px; font-size: var(--fs-h3); }
.legal p { color: var(--ink-soft); line-height: 1.6; }
.legal p + p { margin-top: 12px; }
.legal a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.notfound { display: grid; align-content: center; justify-items: start; gap: 24px; min-height: 100vh; min-height: 100svh; }
.notfound .chips { align-items: center; }

/* ---------- Services : traînée de photos au survol ---------- */
.trail { position: fixed; inset: 0; z-index: 45; pointer-events: none; overflow: hidden; }
.trail__img { position: absolute; width: clamp(180px, 16vw, 240px); aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-card); box-shadow: 0 18px 40px rgba(0, 0, 0, .5); opacity: 0; will-change: transform, opacity; }
.service { position: relative; }
.service__tags a { text-decoration: underline; text-decoration-color: rgba(255,255,255,.3); text-underline-offset: 4px; transition: text-decoration-color .3s; }
.service__tags a:hover { text-decoration-color: var(--ink); }
.lightbox__media iframe.is-social { width: min(420px, 92vw); height: min(100%, 88svh); background: #fff; border-radius: var(--radius-card); }

/* ==========================================================================
   THÈME CLAIR (Trame Digital) : mêmes composants, couleurs inversées
   ========================================================================== */
.theme-light {
  --bg: #ffffff;
  --surface: #f4f4f2;
  --ink: #0b0b0b;
  --ink-soft: rgba(0, 0, 0, .6);
  --ink-mute: rgba(0, 0, 0, .4);
  --line: rgba(0, 0, 0, .12);
  --ghost: #ededeb;
  --btn-bg: #0b0b0b;
  --btn-ink: #ffffff;
}
.theme-light .nav::before { background: linear-gradient(to bottom, rgba(255,255,255,.92), rgba(255,255,255,0)); }
.theme-light .nav__panel { background: rgba(255,255,255,.95); box-shadow: 0 20px 50px rgba(0,0,0,.08); }
.theme-light .nav__panel a:hover { background: rgba(0,0,0,.05); }
.theme-light .hero__kicker { color: var(--ink-soft); }
.theme-light .hero__text { color: var(--ink-soft); }
.theme-light .about__text .w { color: rgba(0,0,0,.14); }
.theme-light .chip { border-color: rgba(0,0,0,.25); }
.theme-light .service__tags a { text-decoration-color: rgba(0,0,0,.3); }
.theme-light .trail__img { box-shadow: 0 18px 40px rgba(0,0,0,.18); }
.theme-light ::selection { background: var(--ink); color: var(--bg); }

/* Hero de la page digital */
.hero--digital { min-height: 0; padding-top: 150px; display: block; }
.hero--digital .hero__content { margin-bottom: 64px; }
.hero--digital .page-title { font-size: clamp(56px, 10vw, 150px); letter-spacing: -.05em; }
.hero--digital .chips { align-items: center; }

/* Fenêtre de navigateur autour des captures */
.browser { overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); box-shadow: 0 30px 80px rgba(0,0,0,.12); }
.browser__bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-bottom: 1px solid var(--line); }
.browser__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--ink-mute); opacity: .5; }
.browser__bar span { margin-left: 10px; font-size: 12px; color: var(--ink-mute); }
.browser img { width: 100%; height: auto; }

/* Réalisation */
.case { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; align-items: start; }
.case__side { display: grid; gap: 16px; }
.case__facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 64px; }
.phones { margin-top: 64px; }
.phones img { width: 100%; border-radius: 10px; }

/* Blocs de bascule Studio ⇄ Digital */
.switch { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: clamp(32px, 5vw, 64px); border-radius: 10px; overflow: hidden; transition: transform .6s var(--ease); }
.switch:hover { transform: translateY(-4px); }
.switch--light { background: #ffffff; color: #0b0b0b; }
.switch--dark { background: #000000; color: #ffffff; }
.switch__kicker { font-size: var(--fs-small); font-weight: 600; text-transform: uppercase; opacity: .55; }
.switch__title { margin: 14px 0 18px; font-size: clamp(36px, 4.4vw, 64px); line-height: 1; letter-spacing: -.03em; }
.switch__sub { max-width: 420px; margin-bottom: 32px; font-size: 17px; line-height: 1.5; opacity: .65; }
.switch--light .btn { background: #0b0b0b; color: #fff; }
.switch--dark .btn { background: #fff; color: #0b0b0b; }
.switch:hover .btn .roll > span { transform: translateY(-105%); }
.switch:hover .btn .roll > span + span { transform: none; }
.switch__visual { overflow: hidden; border-radius: 8px; }
.switch__visual img { width: 100%; height: auto; transition: transform 1.2s var(--ease); }
.switch:hover .switch__visual img { transform: scale(1.04); }

@media (max-width: 900px) {
  .switch { grid-template-columns: 1fr; gap: 32px; }
  .case { grid-template-columns: 1fr; }
  .case__facts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
  .hero--digital { padding-top: 120px; }
  .case__facts { gap: 24px; }
}
[data-chars] .cw { display: inline-block; white-space: nowrap; }
@media (max-width: 767px) { .hero--digital .page-title { font-size: 15vw; } }

/* ==========================================================================
   RÉALISATIONS IMMERSIVES (digital.html)
   La section prend la couleur du projet affiché ; chaque projet reste collé
   à l'écran pendant que le site défile dans le navigateur et le téléphone.
   ========================================================================== */
.cases { --case-bg: #0b0b0b; position: relative; margin-top: var(--section); padding-top: var(--section); background: var(--bg); color: var(--ink); transition: background-color .9s var(--ease), color .6s; }
.cases.is-on { background: var(--case-bg); color: #fff; }
.cases__head { margin-bottom: 40px; }
.cases__kicker { margin-bottom: 14px; font-size: var(--fs-small); font-weight: 600; text-transform: uppercase; opacity: .6; }
.cases__title { font-size: clamp(44px, 6.4vw, 96px); line-height: .98; letter-spacing: -.04em; }
.cases .head__sub { margin-top: 18px; color: inherit; opacity: .6; }

.case-x { position: relative; height: 300vh; }
.case-x__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.case-x__grid { display: grid; grid-template-columns: 1fr 1.55fr; gap: clamp(32px, 4vw, 72px); align-items: center; }

.case-x__info { opacity: calc(var(--enter, 0) * 1.6 - .3); transform: translateY(calc((1 - var(--enter, 0)) * 60px)); }
.case-x__n { font-size: var(--fs-small); font-weight: 600; opacity: .5; }
.case-x__type { margin-top: 28px; font-size: var(--fs-small); font-weight: 600; text-transform: uppercase; opacity: .7; }
.case-x__name { margin: 10px 0 20px; font-size: clamp(40px, 4.6vw, 72px); font-weight: 700; line-height: .95; letter-spacing: -.04em; text-transform: none; }
.case-x__desc { max-width: 420px; font-size: 17px; line-height: 1.5; opacity: .72; }
.case-x__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 32px; padding: 0; list-style: none; }
.case-x__tags li { padding: 6px 12px; border: 1px solid rgba(255,255,255,.28); border-radius: var(--radius); font-size: 12px; font-weight: 600; text-transform: uppercase; }

/* Scène : navigateur + téléphone */
.case-x__stage { position: relative; perspective: 1400px; }
.case-x__browser { overflow: hidden; border-radius: 12px; background: #fff; box-shadow: 0 50px 120px rgba(0,0,0,.45); transform: translateY(calc((1 - var(--enter, 0)) * 120px)) rotateX(calc((1 - var(--enter, 0)) * 14deg)) scale(calc(.88 + var(--enter, 0) * .12)); transform-origin: 50% 100%; }
.case-x__browser .browser__bar { height: 30px; background: #f1f1ef; color: #777; border-color: rgba(0,0,0,.08); }
.case-x__browser .browser__bar span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.case-x__browser .case-x__screen { height: min(56vh, 520px); }
.case-x__screen { position: relative; overflow: hidden; }
.case-x__shot { display: block; width: 100%; height: auto; will-change: transform; }
.case-x__phone { position: absolute; right: -4%; bottom: -8%; width: clamp(130px, 13vw, 200px); padding: 7px; border-radius: 30px; background: #0b0b0b; box-shadow: 0 30px 70px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.12); transform: translateY(calc((1 - var(--enter, 0)) * 220px)); }
.case-x__phone .case-x__screen { aspect-ratio: 9 / 19.5; border-radius: 24px; }

.case-x__progress { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 32px; height: 2px; max-width: var(--container); margin-inline: auto; background: rgba(255,255,255,.15); }
.case-x__progress i { display: block; height: 100%; background: currentColor; transform: scaleX(0); transform-origin: left; }

@media (max-width: 900px) {
  .case-x { height: 260vh; }
  .case-x__grid { grid-template-columns: 1fr; gap: 24px; }
  .case-x__type { margin-top: 12px; }
  .case-x__name { margin: 6px 0 10px; font-size: 40px; }
  .case-x__desc { font-size: 15px; }
  .case-x__tags { margin: 14px 0 16px; }
  .case-x__tags li:nth-child(n+3) { display: none; }
  .case-x__browser { display: none; }
  .case-x__stage { display: grid; place-items: center; }
  .case-x__phone { position: relative; right: auto; bottom: auto; width: min(52vw, 210px); }
}
@media (max-width: 900px) and (max-height: 760px) {
  .case-x__desc { display: none; }
  .case-x__phone { width: min(44vw, 170px); }
}
@media (prefers-reduced-motion: reduce) {
  .case-x__info, .case-x__browser, .case-x__phone { opacity: 1; transform: none; }
}
/* Menu en clair au-dessus des réalisations (fond sombre) */
.nav-on-dark .nav { --ink: #ffffff; --ink-mute: rgba(255,255,255,.5); }
.nav-on-dark .nav::before { background: linear-gradient(to bottom, rgba(0,0,0,.35), rgba(0,0,0,0)); }
.nav .nav__links > a, .nav .nav__trigger, .nav__logo { transition: color .5s; }
.cases .case-x .btn { background: #fff; color: #0b0b0b; }

/* Projet « grain » : dégradé vers le noir + grain argentique animé */
.case-x--grain .case-x__sticky::before,
.case-x--grain .case-x__sticky::after { content: ""; position: absolute; pointer-events: none; z-index: 0; }
.case-x--grain .case-x__sticky::before {
  inset: 0;
  background:
    radial-gradient(120% 90% at 78% 30%, transparent 0%, rgba(0,0,0,.35) 55%, rgba(0,0,0,.85) 100%),
    linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,.25) 45%, #000 100%);
  opacity: var(--enter, 0);
}
.case-x--grain .case-x__sticky::after {
  inset: -50%;
  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 type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: calc(var(--enter, 0) * .16);
  mix-blend-mode: screen;
  animation: grain 1.2s steps(5) infinite;
}
.case-x__sticky > * { position: relative; z-index: 1; }
.case-x__sticky > .case-x__progress { position: absolute; }
@keyframes grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-4%, 3%); } 40% { transform: translate(3%, -4%); } 60% { transform: translate(-2%, -2%); } 80% { transform: translate(4%, 2%); } 100% { transform: translate(0, 0); } }
@media (prefers-reduced-motion: reduce) { .case-x--grain .case-x__sticky::after { animation: none; } }

/* ---------- Défilement doux : géré en JS, on coupe le lissage natif ---------- */
html.smooth { scroll-behavior: auto; }

/* ---------- Curseur « objectif photo » ---------- */
.lens { position: fixed; left: 0; top: 0; z-index: 300; width: 0; height: 0; pointer-events: none; opacity: 0; transition: opacity .3s; mix-blend-mode: difference; }
.lens.is-on { opacity: 1; }
.lens span { position: absolute; left: 0; top: 0; border-radius: 50%; transform: translate(-50%, -50%); transition: width .45s var(--ease), height .45s var(--ease), border-width .3s, opacity .3s; }
.lens__ring { width: 42px; height: 42px; border: 1.5px solid #fff; }
.lens__iris { width: 16px; height: 16px; border: 1.5px solid #fff; translate: calc(var(--dx, 0px) * .25) calc(var(--dy, 0px) * .25); }
.lens__dot { width: 4px; height: 4px; background: #fff; translate: var(--dx, 0px) var(--dy, 0px); }
.lens.is-focus .lens__ring { width: 68px; height: 68px; }
.lens.is-focus .lens__iris { width: 28px; height: 28px; }
.lens.is-shot .lens__ring { width: 30px; height: 30px; border-width: 3px; }
.lens.is-shot .lens__iris { width: 8px; height: 8px; }
@media (hover: hover) and (pointer: fine) {
  .has-lens, .has-lens * { cursor: none !important; }
}

/* ---------- Curseur Windows rétro (Trame Digital) ---------- */
@media (hover: hover) and (pointer: fine) {
  .theme-light, .theme-light * { cursor: url("../cursor-arrow.png") 0 0, default; }
  .theme-light a, .theme-light a *, .theme-light button, .theme-light button *, .theme-light summary, .theme-light summary *, .theme-light label { cursor: url("../cursor-hand.png") 16 0, pointer; }
}
