/* ===========================================================
   DIMZ — Custom CSS v2 (keyframe mosaic)
   For Semplice : Settings → Custom CSS
   =========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800;900&family=Archivo+Narrow:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&family=Instrument+Serif:ital@0;1&family=Bricolage+Grotesque:wght@400;500;600;700;800&display=swap');

/* -------- Tokens -------- */
:root,
[data-theme="noir"] {
  --ink: #f5f3ee;
  --paper: #000000;
  --accent: #3EEED7;
  --muted: #6a655c;
  --line: rgba(245, 243, 238, 0.18);
}

html { background: #000; }
html, body { color: var(--ink); margin: 0; padding: 0; }
body { background: transparent !important; font-family: 'Archivo', sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; position: relative; }

/* Sous WordPress, des plugins tiers (Complianz : frontend.min.css) déclarent
   `body, html { color:#000; line-height:1.66667 }` et se chargent APRÈS ce fichier :
   à spécificité égale ils gagnent, et la couleur + l'interligne s'héritent sur tout le site.
   Le sélecteur d'attribut (0,1,1) passe devant (0,0,1) quel que soit l'ordre de chargement.
   line-height:normal reproduit le body sans line-height de l'aperçu. */
body[data-theme] { color: var(--ink); line-height: normal; font-family: 'Archivo', sans-serif; }

/* Dither — deepest background layer, ~30% presence */
.dither-bg {
  position: fixed; inset: 0;
  z-index: -2;
  pointer-events: none;
  width: 100%; height: 100%;
  overflow: hidden;
  opacity: 0.30;
}
.dither-bg canvas { display: block; width: 100% !important; height: 100% !important; }

/* Liquid Ether — main fluid layer, sits above the dither, transparent where no flow */
.liquid-ether-bg {
  position: fixed; inset: 0;
  z-index: -1;
  pointer-events: none;
  width: 100%; height: 100%;
  overflow: hidden;
}
.liquid-ether-bg canvas { display: block; width: 100% !important; height: 100% !important; }
img { display: block; max-width: 100%; }
* { box-sizing: border-box; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; padding: 0; }

/* -------- Type utilities -------- */
.mono { font-family: 'JetBrains Mono', ui-monospace, 'SF Mono', Consolas, monospace; font-feature-settings: "tnum" 1; }
.serif { font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-weight: 400; }
.display { font-family: 'Bricolage Grotesque', 'Archivo', Inter, system-ui, sans-serif; font-weight: 800; letter-spacing: -0.04em; line-height: 0.85; }
.narrow { font-family: 'Archivo Narrow', 'Archivo', sans-serif; }
.accent { color: var(--accent); }

::selection { background: var(--accent); color: #fff; }

/* -------- Underline link -------- */
.ul-link { position: relative; display: inline-block; color: inherit; text-decoration: none; }
.ul-link::after {
  content: ''; position: absolute; left: 0; bottom: -2px; height: 1.5px; width: 100%;
  background: currentColor; transform-origin: right center; transform: scaleX(0);
  transition: transform 320ms cubic-bezier(.7,0,.2,1);
}
.ul-link:hover::after { transform-origin: left center; transform: scaleX(1); }
.arrow-rotate { display: inline-block; transition: transform 300ms cubic-bezier(.2,.8,.2,1); }
a:hover .arrow-rotate, button:hover .arrow-rotate { transform: rotate(45deg); }

/* -------- Buttons -------- */
.btn-solid {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 1rem 1.6rem;
  background: var(--ink); color: var(--paper);
  border-radius: 999px; border: none; cursor: pointer; text-decoration: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  transition: background 200ms, color 200ms, transform 200ms;
}
.btn-solid:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }
.btn-solid--paper { background: #f5f3ee; color: #0a0a0a; }
.btn-solid--paper:hover { background: var(--accent); color: #fff; }

/* ===========================================================
   KEYFRAME MARK — signature shape used as period, bullet, accent
   =========================================================== */
.kf-mark {
  display: inline-block;
  width: 0.78em; height: 0.78em;
  background-color: var(--accent);
  -webkit-mask-image: url('assets/keyframe-2.svg');
          mask-image: url('assets/keyframe-2.svg');
  -webkit-mask-repeat: no-repeat;       mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;          mask-size: 100% 100%;
  -webkit-mask-position: center;         mask-position: center;
  vertical-align: -0.08em;
  flex-shrink: 0;
}
.kf-mark--period {
  width: 0.18em; height: 0.18em;
  margin-left: 0.06em;
  vertical-align: baseline;
  transform: translateY(0.05em);
}
.kf-mark--num {
  width: 0.95em; height: 0.95em;
  vertical-align: -0.18em;
  margin: 0 0.02em;
}

/* ===========================================================
   CUSTOM CURSOR (desktop only) — circle → keyframe shape
   =========================================================== */
@media (hover: hover) and (pointer: fine) {
  body.cursor-on, body.cursor-on * { cursor: none !important; }
  .dimz-cursor {
    position: fixed; top: 0; left: 0;
    width: 14px; height: 14px;
    pointer-events: none;
    z-index: 10000;
    mix-blend-mode: difference;
    transform: translate(-50%, -50%);
    transition: width 220ms cubic-bezier(.2,.8,.2,1), height 220ms cubic-bezier(.2,.8,.2,1), mix-blend-mode 0ms 200ms;
  }
  .dimz-cursor-shape {
    position: absolute; inset: 0;
    background: var(--ink);
    border-radius: 50%;
    transition: background 200ms, border-radius 200ms;
  }
  .dimz-cursor.hover {
    width: 64px; height: 64px;
    mix-blend-mode: normal;
  }
  .dimz-cursor.hover .dimz-cursor-shape {
    background: var(--accent);
    border-radius: 0;
    -webkit-mask-image: url('assets/keyframe-2.svg');
            mask-image: url('assets/keyframe-2.svg');
    -webkit-mask-repeat: no-repeat;       mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;          mask-size: 100% 100%;
    animation: cursor-spin 2.6s cubic-bezier(.65,0,.35,1) infinite;
  }
  @keyframes cursor-spin {
    0%   { transform: rotate(0deg); }
    20%  { transform: rotate(90deg); }
    40%  { transform: rotate(90deg); }
    60%  { transform: rotate(180deg); }
    80%  { transform: rotate(270deg); }
    100% { transform: rotate(360deg); }
  }
  .dimz-cursor .label {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-family: 'JetBrains Mono', monospace; font-size: 10px;
    text-transform: uppercase; letter-spacing: 0.08em;
    opacity: 0; transition: opacity 160ms;
    z-index: 2;
  }
  .dimz-cursor.hover .label { opacity: 1; }
  /* Labels texte dans le curseur masqués (Ouvrir / Voir / Retour / etc.) */
  .dimz-cursor .label { display: none !important; }
}
@media (hover: none), (pointer: coarse) { .dimz-cursor { display: none; } }

/* ===========================================================
   NAV — logo + menu collé à gauche
   =========================================================== */
.ds-nav {
  position: fixed; top: 0; left: 0; right: 0;
  padding: 20px 32px;
  display: flex; align-items: center; gap: 32px;
  mix-blend-mode: difference; color: #fff;
  z-index: 100;
}
.ds-nav__logo {
  display: inline-flex; align-items: center; gap: 10px;
  color: inherit; text-decoration: none;
}
.ds-logo-mark {
  display: inline-block; width: 26px; height: 26px;
  background: #fff;
  -webkit-mask-image: url('assets/logo-dimz.png');
          mask-image: url('assets/logo-dimz.png');
  -webkit-mask-repeat: no-repeat;        mask-repeat: no-repeat;
  -webkit-mask-size: contain;            mask-size: contain;
  -webkit-mask-position: center;         mask-position: center;
}
.ds-nav__menu { display: flex; gap: 28px; }
.ds-nav__menu a {
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  opacity: 0.78;
}
.ds-nav__menu a:hover { opacity: 1; }
.ds-nav__num { opacity: 0.5; margin-right: 6px; }

@media (max-width: 760px) {
  .hide-on-mobile { display: none !important; }
  .ds-nav { padding: 16px 20px; justify-content: space-between; }
}

/* ===========================================================
   BURGER MENU (mobile uniquement)
   =========================================================== */
.ds-burger {
  display: none;          /* caché en desktop, activé en mobile */
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px; height: 38px;
  margin-left: auto;
  background: none; border: none; cursor: pointer;
  padding: 8px;
  z-index: 1002;
}
.ds-burger span {
  display: block;
  width: 22px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 300ms cubic-bezier(.2,.8,.2,1), opacity 200ms;
}
.ds-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ds-burger.is-open span:nth-child(2) { opacity: 0; }
.ds-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Backdrop sombre derrière le drawer */
.ds-mobile-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 1000;
  opacity: 0; pointer-events: none;
  transition: opacity 360ms cubic-bezier(.2,.8,.2,1);
}
.ds-mobile-backdrop.is-open { opacity: 1; pointer-events: auto; }

/* Drawer latéral (slide depuis la droite) */
.ds-mobile-menu {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(80vw, 330px);
  background: rgba(10,10,10,0.98);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-left: 1px solid rgba(245,243,238,0.1);
  z-index: 1001;
  display: flex; flex-direction: column;
  align-items: flex-start; justify-content: center;
  gap: 26px;
  padding: 0 36px;
  transform: translateX(100%);
  transition: transform 380ms cubic-bezier(.2,.8,.2,1);
}
.ds-mobile-menu.is-open { transform: translateX(0); }
.ds-mobile-menu a {
  color: #f5f3ee;
  font-family: 'Bricolage Grotesque', 'Archivo', sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 8vw, 40px);
  text-transform: uppercase;
  letter-spacing: -0.03em;
  text-decoration: none;
  display: flex; align-items: center; gap: 12px;
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 360ms, transform 360ms, color 200ms;
}
.ds-mobile-menu.is-open a { opacity: 1; transform: translateX(0); }
.ds-mobile-menu.is-open a:nth-child(1) { transition-delay: 0.12s; }
.ds-mobile-menu.is-open a:nth-child(2) { transition-delay: 0.18s; }
.ds-mobile-menu.is-open a:nth-child(3) { transition-delay: 0.24s; }
.ds-mobile-menu.is-open a:nth-child(4) { transition-delay: 0.30s; }
.ds-mobile-menu a:active { color: var(--accent); }
.ds-mobile-menu a.is-active { color: var(--accent); }
.ds-mobile-menu__num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; opacity: 0.4;
}
/* Marqueur keyframe à côté de l'onglet actif */
.ds-mobile-menu__kf {
  display: inline-block;
  width: 0.5em; height: 0.5em;
  flex: 0 0 auto;
  background-color: var(--accent);
  -webkit-mask-image: url('assets/keyframe-2.svg');
          mask-image: url('assets/keyframe-2.svg');
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-size: contain;     mask-size: contain;
  -webkit-mask-position: center;  mask-position: center;
}

@media (max-width: 760px) {
  .ds-burger { display: flex; }
  /* La nav passe au-dessus de tout (le burger doit rester cliquable) */
  .ds-nav { z-index: 1000; mix-blend-mode: normal; }
  /* Éléments du hero qui chevauchaient le burger (coin haut-droit) masqués sur mobile */
  .hero-hud--top { display: none !important; }
  .hero-video__rec { display: none !important; }
}
@media (min-width: 761px) {
  .ds-mobile-menu, .ds-burger { display: none !important; }
}

/* ===========================================================
   HERO SHOWREEL
   =========================================================== */
.hero-stage {
  position: relative;
  height: 100vh; min-height: 640px;
  width: 100%; overflow: hidden;
  background: #000;
  transform: scale(calc(1 - var(--hp, 0) * 0.06));
  border-radius: calc(var(--hp, 0) * 24px);
  transform-origin: center top;
  transition: transform 60ms linear;
}
.hero-video { position: absolute; inset: 0; overflow: hidden; background: #000; }
.hero-video video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.55) contrast(1.05) saturate(0.85);
}
.hero-video__scanlines {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(180deg, transparent 0 3px, rgba(245,243,238,0.025) 3px 4px);
  pointer-events: none;
  mix-blend-mode: overlay;
}
.hero-video__rec {
  position: absolute; top: 32px; right: 32px;
  color: #f5f3ee; font-size: 11px; letter-spacing: 0.18em;
  opacity: 0.7; padding: 6px 12px;
  border: 1px solid rgba(245,243,238,0.3); border-radius: 4px;
  z-index: 4;
  display: inline-flex; align-items: center; gap: 8px;
}
.hero-video__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); display: inline-block;
}
.hero-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 30%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
}
.hero-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none; z-index: 3;
}
.hero-title {
  font-size: clamp(56px, 12vw, 220px);
  text-transform: uppercase;
  letter-spacing: -0.05em;
  line-height: 0.85;
  text-align: left;
  color: #f5f3ee;
  margin: 0;
  display: inline-block;
  text-shadow: 0 4px 40px rgba(0,0,0,0.55), 0 0 1px rgba(0,0,0,0.4);
}
.hero-title__line { display: block; }
.hero-title__line--shift { padding-left: 0.78em; }
.hero-title .serif {
  font-family: 'Instrument Serif', serif;
  font-style: italic; font-weight: 400;
  letter-spacing: -0.02em;
  text-transform: lowercase;
  font-size: 0.85em;
  margin-right: 0.08em;
  color: var(--accent);
}
.hero-hud {
  position: absolute; left: 32px; right: 32px;
  display: flex; justify-content: space-between; align-items: flex-start;
  flex-wrap: wrap; gap: 16px; z-index: 4;
  color: #f5f3ee;
}
.hero-hud--top { top: 100px; }
.hero-hud--bottom { bottom: 32px; align-items: flex-end; }
.hero-hud__badge {
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  display: flex; gap: 14px; align-items: center;
}
.hero-hud__pulse {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(62, 238, 215, 0.25);
  animation: dimzPulse 2s infinite;
}
.hero-hud__location { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.7; }
.hero-hud__catch { max-width: 540px; text-align: left; }
/* Logo monogramme (mask blanc) ferré à gauche, au-dessus du nom */
.hero-hud__logo {
  display: block;
  width: 44px; height: 44px;
  margin: 0 0 14px 0;
  background: #fff;
  -webkit-mask-image: url('assets/logo-dimz.png');
          mask-image: url('assets/logo-dimz.png');
  -webkit-mask-repeat: no-repeat;   mask-repeat: no-repeat;
  -webkit-mask-size: contain;       mask-size: contain;
  -webkit-mask-position: left center; mask-position: left center;
}
.hero-hud__catch p {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.3;
  opacity: 0.92;
  margin: 0 0 24px 0;
}
.hero-hud__name { font-style: italic; }
.hero-hud__role { opacity: 0.7; }
.hero-hud__scroll { text-align: right; }
.hero-hud__scroll .mono { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.55; margin-bottom: 8px; }
.hero-hud__scroll-bar {
  width: 1.5px; height: 60px; background: #f5f3ee; opacity: 0.6;
  margin-left: auto; animation: dimzScrollHint 1.8s ease-in-out infinite;
}
@keyframes dimzPulse { 0%, 100% { opacity: 1 } 50% { opacity: 0.4 } }
@keyframes dimzScrollHint {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ===========================================================
   REVEAL ON SCROLL (with safety net)
   =========================================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 800ms cubic-bezier(.2,.7,.2,1), transform 800ms cubic-bezier(.2,.7,.2,1);
  animation: reveal-fallback 600ms 2.5s forwards;
}
.reveal.in { opacity: 1; transform: none; animation: none; }
@keyframes reveal-fallback {
  to { opacity: 1; transform: none; }
}
.split-up .line { display: block; overflow: hidden; }
.split-up .line > span { display: inline-block; will-change: transform; }
.split-words .word { display: inline-block; }

/* Selection title : 2 lignes même sans .split-up (SplitText gère l'animation) */
.selection__title .line { display: block; }
.selection__title .line > span { display: inline-block; }

/* ---------------------------------------------------------
   SplitText spans — preserve baseline / line-height inheritance
   so big titles ne changent pas d'interlignage ni de baseline
   --------------------------------------------------------- */
.split-char,
.split-word {
  display: inline-block;
  line-height: inherit;
  letter-spacing: inherit;
  vertical-align: baseline;
  /* permet le wrap naturel entre mots */
  white-space: normal;
}
.split-line {
  display: block;
  line-height: inherit;
}
/* Le keyframe-period reste collé après le dernier char, à la baseline */
.split-char + .kf-mark--period,
.split-word + .kf-mark--period { vertical-align: baseline; }

/* ===========================================================
   SELECTION (mosaïque keyframe — 5 projets en motif brique)
   =========================================================== */
.selection { padding: 140px 32px 80px; max-width: 1600px; margin: 0 auto; }
.selection__head {
  display: flex; justify-content: space-between; align-items: baseline;
  flex-wrap: wrap; gap: 16px; margin-bottom: 80px;
}
.selection__kicker {
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  opacity: 0.7; margin-bottom: 12px;
  display: inline-flex; align-items: center; gap: 4px;
}
.selection__title {
  font-size: clamp(48px, 8vw, 120px);
  text-transform: uppercase; letter-spacing: -0.04em; line-height: 1.02;
  margin: 0;
}
.selection__title .line + .line {
  margin-top: 0.14em;
}
.selection__title .serif {
  font-family: 'Instrument Serif', serif; font-style: italic; font-weight: 400;
}
.selection__see-all { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; }

.sel-mosaic {
  max-width: 1400px;
  margin: 0 auto;
}
.sel-row { display: grid; gap: 10px; }
.sel-row-1 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sel-row-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 10px;
  padding-left: calc((100% - 20px) / 6 + 5px);
  padding-right: calc((100% - 20px) / 6 + 5px);
}
@media (max-width: 760px) {
  /* Toutes les cartes même taille : 2 colonnes uniformes sur les 2 rangées
     minmax(0, 1fr) = empêche les colonnes de dépasser la largeur écran */
  .sel-row-1,
  .sel-row-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0 !important;
    margin-top: 10px;
  }
  .sel-row-1 { margin-top: 0; }
  .selection { padding: 100px 20px 60px; }

  /* Carte seule (3e d'une rangée de 3, ex. Ravinea) → centrée, même taille */
  .sel-row .sel-kfcard:nth-child(3):last-child {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc(50% - 5px);
  }

  /* Textes des cartes : bloc compact resserré au centre du losange (zone large).
     !important nécessaire car les règles desktop arrivent plus loin dans le fichier. */
  .sel-kfcard__text { padding: 0 18% !important; }
  .sel-kfcard__num    { font-size: 7px !important;  letter-spacing: 0.06em !important; margin-bottom: 4px !important; opacity: 0.72; }
  .sel-kfcard__title  { font-size: 17px !important; line-height: 0.92 !important; }
  .sel-kfcard__type   { font-size: 6.5px !important; letter-spacing: 0.03em !important; margin-top: 4px !important; line-height: 1.2 !important; }
  /* CTA masqué sur mobile (pas de hover) — sinon il réserve de l'espace et décale le texte vers le haut */
  .sel-kfcard__cta    { display: none !important; }

  /* Titre des pages (À propos / Contact) : 1er mot sur sa ligne, l'accent serif groupé sur la 2e */
  .page-title__a { display: block; }
  .page-title .serif { white-space: nowrap; }
  /* Lead : on autorise le retour à la ligne sur mobile (sinon ça déborde).
     !important car la règle desktop (white-space:nowrap) est plus bas dans le fichier. */
  .page-hero__lead { white-space: normal !important; }

  /* Hero home : centré horizontal + légèrement remonté (vertical milieu - 6vh) */
  .hero-overlay {
    align-items: center !important;
    justify-content: center !important;
    padding-top: 0 !important;
    padding-bottom: 12vh !important;
  }

  /* Page projet : meta sur 2 colonnes sur mobile (au lieu de tout empilé) */
  .prj-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 18px 14px !important;
    padding: 20px 0 !important;
  }
  .prj-meta__label { font-size: 9px !important; margin-bottom: 4px !important; }
  .prj-meta__value { font-size: 13px !important; }
  /* Logos logiciels sur une seule ligne sur mobile (taille réduite, pas de wrap) */
  .tool-badges {
    flex-wrap: nowrap !important;
    gap: 5px !important;
  }
  .tool-badge {
    width: 26px !important; height: 26px !important;
    border-radius: 4px !important;
    flex: 0 0 auto;
  }
  .tool-badge img { max-width: 70% !important; max-height: 70% !important; }
  .hero-title { text-align: center !important; }
  .hero-title__line--shift { padding-left: 0 !important; }
}

.sel-kfcard {
  cursor: pointer;
  position: relative;
  display: block;
}
.sel-kfcard__tile {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: visible;   /* le texte n'est plus clippé par le masque keyframe */
  transition: transform 500ms cubic-bezier(.2,.8,.2,1);
}
.sel-kfcard:hover .sel-kfcard__tile { transform: scale(1.02); }
.sel-kfcard__visual {
  position: absolute; inset: 0;
  background-color: #0a0a0a;
}
/* Masque keyframe (losange) UNIQUEMENT sur les aperçus de la home (.sel-kfcard).
   Les pages projet (hero, suivant, shots, campagnes) restent rectangulaires. */
.sel-kfcard .sel-kfcard__visual {
  overflow: hidden;
  -webkit-mask-image: url('assets/keyframe-2.svg');
          mask-image: url('assets/keyframe-2.svg');
  -webkit-mask-repeat: no-repeat;        mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;          mask-size: 100% 100%;
}

/* Video preview injected by JS — covers the visual host at any aspect ratio.
   Stays under the dark veil + text overlays via z-index.
   Two stacked .preview-vid per card crossfade between clip A and clip B. */
/* Sound toggle button — overlay sur les vidéos hero
   État muted par défaut, classe .sound-toggle--on quand son activé */
.sound-toggle {
  position: absolute;
  bottom: 20px; right: 20px;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(245,243,238,0.4);
  background: rgba(10,10,10,0.55);
  color: #f5f3ee;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: background 220ms, border-color 220ms, color 220ms, transform 220ms;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.sound-toggle:hover {
  background: var(--accent);
  color: #0a0a0a;
  border-color: var(--accent);
  transform: scale(1.08);
}
.sound-toggle__icon {
  width: 20px; height: 20px;
  display: block;
}
/* Default state = muted → show "off" icon */
.sound-toggle .sound-toggle__icon--on  { display: none; }
.sound-toggle .sound-toggle__icon--off { display: block; }
/* Active state (.sound-toggle--on) → show "on" icon */
.sound-toggle.sound-toggle--on .sound-toggle__icon--on  { display: block; }
.sound-toggle.sound-toggle--on .sound-toggle__icon--off { display: none; }
.sound-toggle.sound-toggle--on {
  background: var(--accent);
  color: #0a0a0a;
  border-color: var(--accent);
}
@media (max-width: 760px) {
  .sound-toggle { width: 38px; height: 38px; bottom: 14px; right: 14px; }
  .sound-toggle__icon { width: 18px; height: 18px; }
}

.preview-vid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  z-index: 1;
  background: transparent;
  opacity: 1;
  transition: opacity 350ms cubic-bezier(.45,.05,.55,.95);
  will-change: opacity;
}
.sel-kfcard__veil,
.sel-kfcard__text,
.sel-kfcard__progress,
.sel-kfcard__header,
.sel-kfcard__footer,
.sel-kfcard__hover {
  z-index: 2;
}
.sel-kfcard__veil {
  position: absolute; inset: 0;
  background: radial-gradient(circle at center, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 45%, rgba(0,0,0,0.05) 80%);
  opacity: 1;
  transition: opacity 400ms cubic-bezier(.2,.7,.2,1);
  -webkit-mask-image: url('assets/keyframe-2.svg');
          mask-image: url('assets/keyframe-2.svg');
  -webkit-mask-repeat: no-repeat;        mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;          mask-size: 100% 100%;
}
.sel-kfcard:hover .sel-kfcard__veil { opacity: 0; }
.sel-kfcard__text {
  position: absolute; inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center; color: #fff;
  padding: 0 8%;
  box-sizing: border-box;
  pointer-events: none;
}
.sel-kfcard__num {
  font-size: clamp(10px, 0.9vw, 13px);
  letter-spacing: 0.28em;
  opacity: 0.8;
  margin-bottom: 14px;
}
.sel-kfcard__title {
  font-size: clamp(28px, 3.2vw, 56px);
  text-transform: uppercase;
  letter-spacing: -0.035em;
  line-height: 0.92;
  margin: 0;
  text-shadow: 0 2px 32px rgba(0,0,0,0.5);
}
.sel-kfcard__type {
  font-size: clamp(10px, 0.85vw, 12px);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-top: 16px;
}
.sel-kfcard__cta {
  font-size: clamp(10px, 0.85vw, 12px);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin-top: 22px;
  padding: 8px 14px;
  display: inline-block;
  border: 1px solid rgba(255,255,255,0.6);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 280ms, transform 280ms;
}
.sel-kfcard:hover .sel-kfcard__cta { opacity: 1; transform: translateY(0); }

/* ----- Project visuals — REMOVED.
   La vidéo couvre tout. Derrière elle, fond noir uni (cf. .sel-kfcard__visual).
   Les classes .sel-visual--devialet / mclaren / ravinea / pfl / kdot / crystals
   sont conservées dans le HTML pour rétro-compat mais n'appliquent plus de style. */

/* ===========================================================
   MARQUEE
   =========================================================== */
.marquee-strip {
  overflow: hidden;
  border-top: 1.5px solid var(--line);
  border-bottom: 1.5px solid var(--line);
  padding: 18px 0;
}
.marquee {
  display: flex; gap: 2.5rem;
  white-space: nowrap;
  animation: dimzMarquee 38s linear infinite;
  will-change: transform;
}
.marquee--reverse { animation-direction: reverse; }
.marquee__item {
  font-size: clamp(28px, 5vw, 56px);
  text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 2.5rem;
  color: var(--ink);
}
.marquee__sep {
  height: 1.4em;
  display: inline-block;
  flex-shrink: 0;
  vertical-align: middle;
  transform: translateY(-0.04em);
  pointer-events: none;
}
@keyframes dimzMarquee {
  from { transform: translate3d(0,0,0); }
  to   { transform: translate3d(-50%,0,0); }
}

/* ===========================================================
   STATS — "En chiffres" (replaces manifesto)
   =========================================================== */
.stats {
  padding: 160px 32px;
  border-top: 1.5px solid var(--line);
  border-bottom: 1.5px solid var(--line);
}
.stats__inner { max-width: 1400px; margin: 0 auto; }
.stats__kicker {
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  opacity: 0.55; margin-bottom: 56px;
  display: inline-flex; align-items: center; gap: 4px;
}
.stats__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(48px, 6vw, 120px);
  align-items: center;
}
@media (max-width: 900px) {
  .stats__grid { grid-template-columns: 1fr; gap: 60px; }
}
.stats__title {
  font-size: clamp(44px, 6.4vw, 108px);
  text-transform: none;
  letter-spacing: -0.035em;
  line-height: 0.92;
  font-weight: 800;
  margin: 0;
}
.stats__title-ghost { color: #ffffff; opacity: 1; }
.stats__title-strong { color: var(--accent); }
.stats__cta-wrap { margin-top: 56px; }
.stats__rule { width: 64px; height: 2px; background: var(--accent); margin-bottom: 32px; }
.stats__cta {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 22px 44px;
  border: 1.5px solid var(--ink);
  color: var(--accent);
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  background: transparent;
  transition: background 220ms, color 220ms, transform 220ms;
  text-decoration: none;
}
.stats__cta:hover {
  background: var(--ink); color: var(--paper);
}
.stats__right {
  border-left: 1.5px solid var(--ink);
  padding-left: clamp(28px, 3.5vw, 56px);
  display: flex; flex-direction: column;
  gap: clamp(40px, 4.5vw, 64px);
}
@media (max-width: 900px) {
  .stats__right { border-left: none; border-top: 1.5px solid var(--ink); padding-left: 0; padding-top: 48px; }
}
.stats__num {
  color: var(--accent);
  font-size: clamp(56px, 6.5vw, 104px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  font-weight: 800;
  margin-bottom: 18px;
}
.stats__label {
  font-size: 12px; letter-spacing: 0.08em; line-height: 1.6;
  color: var(--muted); text-transform: lowercase;
}

/* ===========================================================
   SERVICES
   =========================================================== */
.services { padding: 120px 32px; max-width: 1600px; margin: 0 auto; }
.services__kicker {
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  opacity: 0.55; margin-bottom: 40px;
  display: inline-flex; align-items: center; gap: 4px;
}
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0;
  border-top: 1.5px solid var(--line);
}
.services__cell {
  padding: 40px 28px;
  border-bottom: 1.5px solid var(--line);
  border-right: 1.5px solid var(--line);
  min-height: 360px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.services__cell:last-child { border-right: none; }
.services__num { font-size: 11px; letter-spacing: 0.2em; opacity: 0.55; margin-bottom: 24px; }
.services__name {
  font-size: clamp(28px, 3.5vw, 48px);
  text-transform: uppercase; letter-spacing: -0.03em; margin: 0 0 20px 0;
}
.services__desc { font-size: 15px; line-height: 1.55; max-width: 360px; margin: 0; }
.services__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 32px; }
.services__tag {
  font-size: 10px; padding: 4px 10px;
  border: 1px solid var(--ink); border-radius: 99px;
  letter-spacing: 0.1em; text-transform: uppercase;
}

/* ===========================================================
   PAGE HERO (used on projets, à propos, contact, projet pages)
   =========================================================== */
.page-hero {
  padding: 180px 32px 80px;
  max-width: 1600px;
  margin: 0 auto;
  position: relative;
}
.page-hero__kicker {
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  opacity: 0.7; margin-bottom: 24px;
  display: inline-flex; align-items: center; gap: 4px;
}
.page-title {
  font-size: clamp(56px, 11vw, 180px);
  text-transform: uppercase; letter-spacing: -0.045em;
  line-height: 0.88;
  margin: 0;
}
.page-title .serif {
  font-family: 'Instrument Serif', serif; font-style: italic; font-weight: 400;
  color: var(--accent);
}
.page-hero__lead {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: clamp(18px, 2vw, 26px);
  max-width: none;
  white-space: nowrap;   /* desktop : une seule ligne */
  margin-top: 40px;
  line-height: 1.4;
  opacity: 0.85;
}

/* All-projects grid (legacy — kept for back compat) */
.all-projects { padding: 40px 32px 140px; max-width: 1600px; margin: 0 auto; }
.all-projects__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 900px) { .all-projects__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .all-projects__grid { grid-template-columns: 1fr; } }

/* ===========================================================
   WORKS PAGE (projets.html) — index complet
   =========================================================== */
.works-header {
  padding: 140px 32px 60px;
  max-width: 1600px;
  margin: 0 auto;
}
.works-header__kicker {
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  opacity: 0.7; margin-bottom: 24px;
  display: inline-flex; align-items: center; gap: 4px;
}
.works-title {
  font-size: clamp(64px, 14vw, 240px);
  text-transform: uppercase; letter-spacing: -0.05em; line-height: 0.82;
  margin: 0;
}
.works-title .serif {
  font-family: 'Instrument Serif', serif; font-style: italic; font-weight: 400;
}
.works-filters {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
  margin-top: 80px; padding-top: 24px;
  border-top: 1.5px solid var(--ink);
}
.works-filters__tags { display: flex; gap: 8px; flex-wrap: wrap; }
.works-filter {
  padding: 8px 14px;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  border-radius: 99px;
  border: 1.5px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background 200ms, color 200ms;
}
.works-filter.on { background: var(--ink); color: var(--paper); }
.works-views {
  display: flex; gap: 4px;
  border: 1.5px solid var(--ink);
  border-radius: 99px;
  padding: 3px;
}
.works-view {
  padding: 6px 14px;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  border-radius: 99px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background 200ms, color 200ms;
}
.works-view.on { background: var(--ink); color: var(--paper); }

.works-grid-wrap { padding: 0 32px 120px; max-width: 1600px; margin: 0 auto; }
.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 32px;
}
.works-grid[data-view="list"] {
  display: block;
  border-top: 1.5px solid var(--ink);
}

/* Card (grid view) */
.works-card {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.works-card__visual {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.works-card__visual .sel-kfcard__visual {
  position: absolute; inset: 0;
  transition: transform 500ms cubic-bezier(.2,.8,.2,1);
}
.works-card:hover .works-card__visual .sel-kfcard__visual { transform: scale(1.04); }
.works-card__bottom {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: 16px; gap: 16px;
}
.works-card__title {
  font-size: clamp(22px, 2.4vw, 32px);
  text-transform: uppercase; letter-spacing: -0.03em;
  margin: 0;
  transition: color 200ms;
}
.works-card:hover .works-card__title { color: var(--accent); }
.works-card__meta {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  opacity: 0.55; margin-top: 4px;
}
.works-card__num {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  opacity: 0.7;
  display: inline-flex; align-items: center; gap: 3px;
}


/* List view — flex row : [titre + meta] à gauche, [numéro] à droite */
.works-grid[data-view="list"] .works-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1.5px solid var(--ink);
}
.works-grid[data-view="list"] .works-card__visual { display: none; }
.works-grid[data-view="list"] .works-card__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 24px;
}
.works-grid[data-view="list"] .works-card__bottom > div {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 18px;
  flex-wrap: wrap;
}
.works-grid[data-view="list"] .works-card__title {
  font-size: clamp(22px, 3vw, 36px);
  white-space: nowrap;       /* empêche C-media / K Dot / PFL Paris de passer sur 2 lignes */
  margin: 0;
}
.works-grid[data-view="list"] .works-card__meta {
  display: inline-block;
  opacity: 0.55;
  white-space: nowrap;
}
.works-grid[data-view="list"] .works-card__num {
  flex: 0 0 auto;            /* le numéro reste à droite, ne se décale pas sur le texte */
  align-self: center;
}

.works-card.hidden,
.works-grid[data-view="list"] .works-card.hidden,
.works-grid[data-view="grid"] .works-card.hidden { display: none !important; }

@media (max-width: 800px) {
  .works-grid { grid-template-columns: 1fr; gap: 24px; }
  .works-grid[data-view="list"] .works-card__title { white-space: normal; }
  .works-grid[data-view="list"] .works-card__bottom > div { gap: 4px; }
}

/* ===========================================================
   PROJECT CASE STUDY (projet.html) — complet
   =========================================================== */
.prj-hero {
  padding: 140px 32px 60px;
  max-width: 1600px;
  margin: 0 auto;
}
.prj-back {
  display: inline-block;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 32px;
}
.prj-crumb {
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  opacity: 0.7; margin-bottom: 16px;
  display: inline-flex; align-items: center; gap: 4px;
}
.prj-crumb__kf {
  width: 0.95em; height: 0.95em;
  vertical-align: -0.18em; margin: 0 0.02em;
}
.prj-title {
  font-size: clamp(56px, 12vw, 200px);
  text-transform: uppercase; letter-spacing: -0.05em; line-height: 0.85;
  margin: 0;
}
.prj-summary {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-size: clamp(22px, 2.6vw, 36px);
  line-height: 1.3;
  max-width: 800px;
  margin-top: 32px;
}

.prj-meta-wrap { padding: 0 32px 60px; max-width: 1600px; margin: 0 auto; }
.prj-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  padding: 24px 0;
  border-top: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
}
.prj-meta__label {
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  opacity: 0.55; margin-bottom: 8px;
}
.prj-meta__value { font-size: 15px; line-height: 1.4; }

/* Tool badges — vrais logos éditeurs en image */
.tool-badges {
  display: flex; flex-wrap: wrap; gap: 8px;
  align-items: center;
}
.tool-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: 6px;
  background: rgba(245, 243, 238, 0.06);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: background 200ms, transform 200ms;
}
.tool-badge:hover { background: rgba(245, 243, 238, 0.12); transform: translateY(-1px); }
.tool-badge img {
  display: block;
  max-width: 70%;
  max-height: 70%;
  object-fit: contain;
}
/* Petit ajustement par logo pour homogénéiser la perception de taille */
.tool-badge--c4d img     { max-width: 80%; max-height: 80%; }
.tool-badge--blender img { max-width: 65%; max-height: 65%; }
.tool-badge--ue5 img     { max-width: 75%; max-height: 75%; }
.tool-badge--octane img  { max-width: 75%; max-height: 75%; }
.tool-badge--ae img      { max-width: 65%; max-height: 65%; }

/* Mini-palette : 3 carrés en ligne (gauche = plus dominant, droite = moins dominant) */
.prj-palette-mini {
  display: inline-flex;
  flex-direction: row;
  gap: 4px;
  align-items: center;
}
.prj-palette-mini__sw {
  position: relative;
  width: 26px;
  height: 26px;
  border-radius: 4px;
  background: #1a1a1a;
  cursor: help;
  transition: transform 200ms, box-shadow 200ms;
}
.prj-palette-mini__sw:hover {
  transform: scale(1.15);
  box-shadow: 0 4px 14px rgba(0,0,0,0.45);
  z-index: 2;
}
/* Tooltip avec hex code visible au hover */
.prj-palette-mini__sw::after {
  content: attr(data-hex);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--paper);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  padding: 4px 8px;
  border-radius: 3px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms;
  z-index: 3;
}
.prj-palette-mini__sw:hover::after { opacity: 1; }

.ia-flag {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
}
.ia-flag--yes {
  background: var(--accent);
  color: #0a0a0a;
}
.ia-flag--no {
  background: transparent;
  border: 1.5px solid rgba(245,243,238,0.3);
  color: var(--muted);
}

.prj-hero-visual-wrap { padding: 0 32px 60px; max-width: 1600px; margin: 0 auto; }
.prj-hero-visual {
  width: 100%;
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
}
.prj-hero-visual .sel-kfcard__visual {
  position: absolute; inset: 0;
}

.prj-two-col {
  padding: 60px 32px;
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 60px;
}
.prj-two-col__label {
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  opacity: 0.55; margin-bottom: 16px;
}
.prj-two-col__text { font-size: 17px; line-height: 1.55; margin: 0; }

/* Screenshots vidéo — 2 thumbs côte à côte (sous la vidéo hero) */
.prj-shots {
  padding: 60px 32px;
  max-width: 1600px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.prj-shot {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0a0a0a;
}
/* Quand le shot est dans une cellule two-col (sous Contexte ou Approche) */
.prj-two-col__shot {
  margin-top: 32px;
  border-radius: 4px;
}
/* Masquer les shots pour les projets multi-campagnes (Mafia) — déjà géré par JS qui cache .prj-two-col */
.prj-shot video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  pointer-events: none;
}
@media (max-width: 720px) {
  .prj-shots { grid-template-columns: 1fr; }
}

/* Campagnes — pour les clients récurrents avec plusieurs projets distincts */
.prj-campaigns {
  padding: 80px 32px;
  max-width: 1600px;
  margin: 0 auto;
  border-top: 1.5px solid var(--line);
}
.prj-campaigns__kicker {
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  opacity: 0.55; margin-bottom: 48px;
}
.prj-campaigns__list {
  display: flex; flex-direction: column;
  gap: 80px;
}
.prj-campaign {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 48px;
  align-items: start;
}
@media (max-width: 900px) {
  .prj-campaign { grid-template-columns: 1fr; gap: 24px; }
}
.prj-campaign__head .mono {
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  opacity: 0.55; margin-bottom: 12px;
}
.prj-campaign__title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: clamp(32px, 4vw, 56px);
  text-transform: uppercase; letter-spacing: -0.03em;
  line-height: 0.95;
  margin: 0 0 20px;
}
.prj-campaign__desc {
  font-size: 15px;
  line-height: 1.55;
  opacity: 0.85;
  max-width: 380px;
}
.prj-campaign__right {
  display: flex; flex-direction: column;
  gap: 12px;
}
.prj-campaign__main {
  position: relative;
  width: 100%;
  background: #0a0a0a;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}
.prj-campaign__main.prj-campaign__vid--v {
  /* Si la principale est verticale (rare, ex. claquettes / soccer) */
  aspect-ratio: 9 / 16;
  max-width: 380px;
}
.prj-campaign__extras {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}
.prj-campaign__vid {
  position: relative;
  width: 100%;
  background: #0a0a0a;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  cursor: pointer;
}
.prj-campaign__vid--v {
  aspect-ratio: 9 / 16;
}
.prj-campaign__vid video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  pointer-events: none;
}
/* Sound toggle inside a campaign main video — plus petit, accent à l'intérieur */
.sound-toggle--campaign {
  width: 38px; height: 38px;
  bottom: 12px; right: 12px;
}

/* ===========================================================
   Video controls (sound + fullscreen) — réutilisables sur toute vidéo
   =========================================================== */
.video-ctrl {
  position: absolute;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1.5px solid rgba(245,243,238,0.4);
  background: rgba(10,10,10,0.55);
  color: #f5f3ee;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 6;
  transition: background 200ms, border-color 200ms, color 200ms, transform 200ms, opacity 200ms;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0.92;
}
.video-ctrl:hover {
  background: var(--accent);
  color: #0a0a0a;
  border-color: var(--accent);
  transform: scale(1.08);
  opacity: 1;
}
.video-ctrl__icon {
  width: 18px; height: 18px;
  display: block;
}
/* Sound : positionné bottom-right, fullscreen : top-right */
.video-ctrl--sound { bottom: 14px; right: 14px; }
.video-ctrl--fs    { top: 14px; right: 14px; }

/* Toggle icon visibility based on muted state */
.video-ctrl--sound .video-ctrl__icon--on  { display: none; }
.video-ctrl--sound .video-ctrl__icon--off { display: block; }
.video-ctrl--sound.video-ctrl--on .video-ctrl__icon--on  { display: block; }
.video-ctrl--sound.video-ctrl--on .video-ctrl__icon--off { display: none; }
.video-ctrl--sound.video-ctrl--on {
  background: var(--accent);
  color: #0a0a0a;
  border-color: var(--accent);
}

/* Variante mini pour les preview cards (selection, projets, next preview) */
.video-ctrl--mini {
  width: 28px; height: 28px;
  border-width: 1px;
  opacity: 0;
}
.video-ctrl--mini .video-ctrl__icon { width: 13px; height: 13px; }
.video-ctrl--mini.video-ctrl--fs    { top: 10px; right: 10px; }
.video-ctrl--mini.video-ctrl--sound { bottom: 10px; right: 10px; }
/* Mini : apparaissent au hover du parent */
.sel-kfcard:hover .video-ctrl--mini,
.works-card:hover .video-ctrl--mini,
.prj-next:hover .video-ctrl--mini,
.prj-campaign__vid:hover .video-ctrl--mini,
.video-ctrl--mini:hover {
  opacity: 0.9;
}

@media (max-width: 760px) {
  .video-ctrl { width: 34px; height: 34px; }
  .video-ctrl__icon { width: 16px; height: 16px; }
}

/* Style "feature" : layout vertical full-width (main 16:9 comme hero + 2 extras carrés) */
.prj-campaign--feature {
  display: block;
  grid-template-columns: none;
}
.prj-campaign--feature .prj-campaign__head {
  margin-bottom: 32px;
  max-width: 800px;
}
.prj-campaign--feature .prj-campaign__main {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
}
/* Mains verticales (claquettes / soccer) : on garde leur ratio 9:16, juste constraint en largeur */
.prj-campaign--feature .prj-campaign__main.prj-campaign__vid--v {
  max-width: 420px;
  aspect-ratio: 9 / 16;
}
.prj-campaign__extras--feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 1280px;
  margin: 16px auto 0;
}
/* Campagnes C-media : extras en 16:9 natif (pas square crop) */
.prj-campaign__extras--16-9 .prj-campaign__vid {
  aspect-ratio: 16 / 9 !important;
  width: 100%;
  background: #0a0a0a;
  overflow: hidden;
  position: relative;
}
.prj-campaign__extras--16-9 .prj-campaign__vid video {
  position: absolute; inset: 0;
  width: 100% !important; height: 100% !important;
  object-fit: cover;
  object-position: center;
}

/* === C-media : grid unifié main+extras, toutes les vidéos empilées en grand, centrées === */
.prj-campaign__videos-grid {
  display: grid;
  grid-template-columns: 1fr;   /* Toujours 1 colonne — vidéos empilées verticalement */
  gap: 24px;
  max-width: 1400px;
  width: 100%;
  margin: 32px auto 0;
  padding: 0 32px;
  box-sizing: border-box;
  justify-content: center;
}
.prj-campaign__videos-grid--cols-1,
.prj-campaign__videos-grid--cols-2 {
  grid-template-columns: 1fr;
}
.prj-campaign__videos-grid .prj-campaign__vid {
  aspect-ratio: 16 / 9 !important;
  width: 100% !important;
  max-width: none !important;
  background: #0a0a0a;
  overflow: hidden;
  position: relative;
  border-radius: 4px;
}
.prj-campaign__videos-grid .prj-campaign__vid video {
  position: absolute; inset: 0;
  width: 100% !important; height: 100% !important;
  object-fit: cover;
  object-position: center;
}
.prj-campaign__vid--sq {
  aspect-ratio: 1 / 1;
}
.prj-campaign--feature .prj-campaign__extras--feature .prj-campaign__vid--sq video {
  /* Vidéos verticales (9:16) recadrées en carré : montrer le centre */
  object-fit: cover;
  object-position: center;
}
@media (max-width: 720px) {
  .prj-campaign__extras--feature { grid-template-columns: 1fr; }
}

/* Prose (Contexte + Approche) sous chaque campagne feature */
.prj-campaign__prose {
  max-width: 1280px;
  margin: 32px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
@media (max-width: 720px) {
  .prj-campaign__prose { grid-template-columns: 1fr; gap: 24px; }
}
.prj-campaign__col-label {
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  opacity: 0.55; margin-bottom: 12px;
}
.prj-campaign__col-text {
  font-size: 16px; line-height: 1.55; margin: 0;
  opacity: 0.92;
}

/* Images spécifiques à la campagne */
.prj-campaign__images {
  max-width: 1280px;
  margin: 24px auto 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}
.prj-campaign__img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #1a1a1a;
}
.prj-campaign__img img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(.2,.8,.2,1);
}
.prj-campaign__img:hover img { transform: scale(1.04); }

/* Bigger spacing between consecutive feature campaigns */
.prj-campaigns--has-feature .prj-campaign + .prj-campaign { margin-top: 40px; }

/* Moodboard — grille auto-fit, images carrées avec object-cover */
.prj-moodboard {
  padding: 60px 32px;
  max-width: 1600px;
  margin: 0 auto;
}
.prj-moodboard__title {
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  opacity: 0.55; margin-bottom: 24px;
}
.prj-moodboard__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.prj-moodboard__item {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #1a1a1a;
}
.prj-moodboard__item img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(.2,.8,.2,1);
}
.prj-moodboard__item:hover img { transform: scale(1.04); }

.prj-gallery {
  padding: 60px 32px;
  max-width: 1600px;
  margin: 0 auto;
  display: flex; flex-direction: column; gap: 16px;
}
.prj-gallery__row { display: grid; gap: 16px; }
.prj-gallery__row--two   { grid-template-columns: 2fr 1fr; }
.prj-gallery__row--three { grid-template-columns: 1fr 1fr 1fr; }
.prj-thumb {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.prj-thumb--4-3 { aspect-ratio: 4 / 3; }
.prj-thumb--3-4 { aspect-ratio: 3 / 4; }
.prj-thumb--1-1 { aspect-ratio: 1 / 1; }
.prj-thumb .sel-kfcard__visual { position: absolute; inset: 0; }
@media (max-width: 720px) {
  .prj-gallery__row--two, .prj-gallery__row--three { grid-template-columns: 1fr; }
}

.prj-palette-wrap { padding: 60px 32px; max-width: 1400px; margin: 0 auto; }
.prj-palette__title {
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  opacity: 0.55; margin-bottom: 24px;
}
.prj-palette {
  display: grid; gap: 12px;
  grid-template-columns: repeat(3, 1fr);
}
.prj-palette__swatch {
  position: relative;
  aspect-ratio: 4 / 3;
  padding: 16px;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.prj-palette__swatch .mono { font-family: 'JetBrains Mono', monospace; }
.prj-palette__swatch .ton-label {
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
}
.prj-palette__swatch .ton-hex { font-size: 14px; margin-top: 4px; }

.prj-next {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 120px 32px;
  border-top: 1.5px solid var(--ink);
  cursor: pointer;
}
.prj-next__inner {
  max-width: 1600px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 24px;
}
.prj-next__hint {
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  opacity: 0.55; margin-bottom: 16px;
}
.prj-next__title {
  font-size: clamp(48px, 9vw, 140px);
  text-transform: uppercase; letter-spacing: -0.04em; line-height: 0.85;
  margin: 0;
  transition: color 200ms;
}
.prj-next:hover .prj-next__title { color: var(--accent); }
.prj-next__visual {
  width: 280px; max-width: 40vw;
  aspect-ratio: 4 / 3;
  position: relative; overflow: hidden;
  background: #0a0a0a;
}
.prj-next__visual .sel-kfcard__visual {
  position: absolute; inset: 0;
  background: #0a0a0a;
}
.prj-next__visual video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  pointer-events: none;
  transition: transform 600ms cubic-bezier(.2,.8,.2,1);
}
.prj-next:hover .prj-next__visual video { transform: scale(1.04); }
.prj-next__arrow {
  display: inline-block;
  margin-left: 0.15em;
}

/* ===========================================================
   FULLSCREEN STATE — quand un conteneur entre en fullscreen
   on s'assure que la vidéo remplit l'écran sur fond noir,
   et que les contrôles restent visibles et fonctionnels.
   =========================================================== */
:fullscreen,
:-webkit-full-screen,
:-moz-full-screen {
  background: #000 !important;
}
:fullscreen video,
:-webkit-full-screen video,
:-moz-full-screen video {
  width: 100% !important;
  height: 100% !important;
  max-width: 100vw;
  max-height: 100vh;
  object-fit: contain !important;
  position: relative !important;
  inset: auto !important;
  background: #000;
}
/* Forcer aspect-ratio à none en fullscreen pour qu'on remplisse vraiment */
:fullscreen.prj-campaign__main,
:fullscreen.prj-shot,
:fullscreen.prj-hero-visual,
:fullscreen.prj-next__visual,
:fullscreen.prj-campaign__vid,
:fullscreen.sel-kfcard__visual,
:fullscreen.works-card__visual,
:-webkit-full-screen.prj-campaign__main,
:-webkit-full-screen.prj-shot,
:-webkit-full-screen.prj-hero-visual,
:-webkit-full-screen.prj-next__visual,
:-webkit-full-screen.prj-campaign__vid,
:-webkit-full-screen.sel-kfcard__visual,
:-webkit-full-screen.works-card__visual {
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  aspect-ratio: auto !important;
  -webkit-mask-image: none !important;
          mask-image: none !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
}
/* Boutons toujours visibles en fullscreen */
:fullscreen .video-ctrl,
:-webkit-full-screen .video-ctrl {
  opacity: 1 !important;
  z-index: 9999;
  bottom: 32px !important;
}
:fullscreen .video-ctrl--fs,
:-webkit-full-screen .video-ctrl--fs {
  right: 32px !important;
}
:fullscreen .video-ctrl--sound,
:-webkit-full-screen .video-ctrl--sound {
  right: 88px !important;
}

/* ===========================================================
   PROJECT CASE STUDY (projet.html)
   =========================================================== */
.project-hero {
  padding: 160px 32px 80px;
  max-width: 1600px;
  margin: 0 auto;
}
.project-hero__crumb {
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  opacity: 0.6; margin-bottom: 28px;
  display: inline-flex; align-items: center; gap: 6px;
}
.project-hero__crumb a { color: inherit; text-decoration: none; opacity: 0.6; }
.project-hero__crumb a:hover { opacity: 1; }
.project-hero__title {
  font-size: clamp(64px, 13vw, 220px);
  text-transform: uppercase; letter-spacing: -0.05em;
  line-height: 0.86; margin: 0 0 40px;
}
.project-hero__meta {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 32px; padding: 32px 0;
  border-top: 1.5px solid var(--line);
  border-bottom: 1.5px solid var(--line);
}
.project-meta__label {
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  opacity: 0.55; margin-bottom: 8px;
}
.project-meta__value {
  font-size: 15px; line-height: 1.45;
}
.project-context {
  padding: 80px 32px;
  max-width: 1000px;
  margin: 0 auto;
}
.project-context p {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: clamp(20px, 2.2vw, 32px);
  line-height: 1.4;
  opacity: 0.9;
  margin: 0 0 32px;
}
.project-film {
  padding: 40px 32px 120px;
  max-width: 1400px;
  margin: 0 auto;
}
.project-film__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0a0a0a;
  border: 1.5px solid var(--line);
  display: flex; align-items: center; justify-content: center;
}
.project-film__placeholder {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  opacity: 0.5;
}
.project-credits {
  padding: 0 32px 120px;
  max-width: 1000px;
  margin: 0 auto;
}
.project-credits__title {
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  opacity: 0.55; margin-bottom: 24px;
}
.project-credits__list {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px;
  font-size: 14px; line-height: 1.6;
}
.project-credits__list b {
  display: block; font-weight: 500; opacity: 0.6;
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 4px;
}
.project-next {
  border-top: 1.5px solid var(--line);
  padding: 80px 32px 120px;
  text-align: center;
}
.project-next__hint {
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  opacity: 0.55; margin-bottom: 16px;
}
.project-next__link {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: clamp(40px, 7vw, 96px);
  text-transform: uppercase; letter-spacing: -0.04em;
  color: var(--ink); text-decoration: none;
  transition: color 200ms;
}
.project-next__link:hover { color: var(--accent); }

/* ===========================================================
   ABOUT (a-propos.html)
   =========================================================== */
.about-bio {
  padding: 40px 32px 100px;
  max-width: 1000px;
  margin: 0 auto;
}
.about-bio p {
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.55;
  margin: 0 0 24px;
}
.about-bio__signature {
  font-family: 'Instrument Serif', serif !important;
  font-style: italic;
  color: var(--accent) !important;
  font-size: clamp(20px, 2vw, 26px) !important;
  border-top: 1px solid var(--line);
  padding-top: 32px;
  margin-top: 16px !important;
}

/* ===== Vidéo "Dimz Toy" à côté du texte de présentation ===== */
.about-bio-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0px;
  max-width: 1640px;
  margin: 0 auto;
  /* léger décalage vers la gauche pour que la vidéo morde dans la marge */
  padding: 20px 32px 100px 0;
}
/* Le texte conserve EXACTEMENT sa mise en page (largeur 1000px, nb de lignes) */
.about-bio-wrap .about-bio {
  flex: 0 0 auto;
  margin: 0;                        /* plus de centrage auto : il s'aligne à droite de la vidéo */
}
.about-toy {
  flex: 0 0 auto;
  width: 860px;                     /* vidéo agrandie encore */
  aspect-ratio: 1 / 1;
  margin-left: -100px;              /* collée plus à gauche */
  margin-right: -100px;             /* rapproche le texte de la vidéo (vidéo plus large) */
  margin-top: -400px;               /* remontée encore */
  margin-bottom: -400px;            /* compense pour ne pas pousser le texte */
}
/* La hauteur du parent vient d'aspect-ratio, sans hauteur explicite : Firefox échoue sur
   les DEUX façons classiques de remplir un tel parent — `height:100%` (vidéo à 3587px de
   haut, figurine hors cadre) comme `position:absolute; inset:0` (vidéo géante et déplacée).
   Chrome et Safari acceptent les deux. On supprime donc les deux : la vidéo porte son propre
   aspect-ratio et se dimensionne sur sa largeur, qui est définie. Aucun pourcentage à
   résoudre, aucun bloc conteneur à interpréter. */
.about-toy__vid {
  /* !important : sous Firefox, un tiers (script Semplice résiduel ou extension navigateur)
     pose `style="position:absolute"` EN INLINE sur cette vidéo. Un style inline bat toute
     feuille de style — sauf une déclaration !important, qui repasse devant. Sans ça la vidéo
     s'ancrait sur le <body> et prenait 1680px (largeur fenêtre) au lieu des 860px du parent.
     Les dimensions sont figées ici pour la même raison. */
  position: static !important;
  inset: auto !important;
  display: block;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1 / 1;              /* même ratio que .about-toy */
  object-fit: contain;              /* la vidéo 16:9 se loge dans le carré */
  background: transparent;          /* canal alpha → fond du site visible */
  pointer-events: none;             /* pas de dblclick fullscreen */
  -webkit-user-select: none; user-select: none;
}
.about-toy__vid::-webkit-media-controls,
.about-toy__vid::-webkit-media-controls-panel,
.about-toy__vid::-webkit-media-controls-play-button,
.about-toy__vid::-webkit-media-controls-start-playback-button,
.about-toy__vid::-webkit-media-controls-fullscreen-button,
.about-toy__vid::-webkit-media-controls-volume-slider,
.about-toy__vid::-webkit-media-controls-mute-button { display: none !important; -webkit-appearance: none; }

/* Fallback : pas de vidéo uploadée → bio centrée comme à l'origine */
.about-bio-wrap--no-toy { display: block; padding: 0; }
.about-bio-wrap--no-toy .about-bio { margin: 0 auto; }

/* Sous 1200px : la vidéo passe au-dessus du texte, tout recentré.
   On neutralise les marges négatives utilisées en desktop. */
@media (max-width: 1200px) {
  .about-bio-wrap {
    flex-direction: column;
    gap: 12px;
    padding: 20px 32px 80px;
  }
  .about-toy {
    width: 100%;
    max-width: 460px;
    margin: 0 auto;                 /* annule les margin négatifs desktop */
  }
  .about-bio-wrap .about-bio { max-width: 100%; }
}
@media (max-width: 760px) {
  /* Vidéo agrandie sur iPhone. transform:scale ne reflow pas ; la figurine
     est centrée dans une zone alpha transparente, donc le débordement de la
     box ne crée pas de collision visuelle avec le texte. */
  .about-bio-wrap { padding-top: 0 !important; gap: 0 !important; }
  .about-toy {
    max-width: 340px;
    margin: -50px auto 20px;       /* remontée encore : marge haute négative */
    transform: scale(1.9);          /* plus grande qu'avant (1.5) */
    transform-origin: center center;
  }
  /* Remonte le texte de présentation (moins de padding au-dessus) */
  .about-bio { padding-top: 0 !important; }
}
/* ----- About Showreel (lecture manuelle, jamais autoplay) ----- */
.about-showreel {
  padding: 20px 32px 80px;
  max-width: 1200px;
  margin: 0 auto;
}
.about-showreel__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0a0a0a;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
}
.about-showreel__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.about-showreel__play {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 84px; height: 84px;
  border-radius: 50%;
  background: rgba(10,10,10,0.55);
  border: 1.5px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 240ms, transform 240ms;
  z-index: 3;
}
.about-showreel__frame:hover .about-showreel__play {
  background: var(--accent);
  transform: translate(-50%, -50%) scale(1.06);
}
.about-showreel__play svg { width: 30px; height: 30px; margin-left: 4px; }
.about-showreel__play path { fill: var(--ink); transition: fill 240ms; }
.about-showreel__frame:hover .about-showreel__play path { fill: #0a0a0a; }
.about-showreel__play.is-hidden { display: none; }
/* Placeholder (pas encore de vidéo) */
.about-showreel__placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 14px;
  background: repeating-linear-gradient(45deg, #0c0c0c 0 12px, #111 12px 24px);
  color: rgba(245,243,238,0.4);
}
.about-showreel__ph-icon {
  width: 64px; height: 64px; border-radius: 50%;
  border: 1.5px solid rgba(62,238,215,0.5);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: var(--accent); padding-left: 4px;
}
.about-showreel__ph-text {
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
}
@media (max-width: 760px) {
  .about-showreel { padding: 10px 20px 60px; }
  .about-showreel__play { width: 60px; height: 60px; }
  .about-showreel__play svg { width: 22px; height: 22px; }
}

.about-clients {
  padding: 60px 32px 100px;
  max-width: 1400px;
  margin: 0 auto;
  border-top: 1.5px solid var(--line);
}
.about-clients__title {
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  opacity: 0.6; margin-bottom: 48px;
}
.about-clients__list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 48px;                   /* row-gap 20px · column-gap 48px identique entre chaque nom */
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: clamp(22px, 2.4vw, 38px);
  text-transform: uppercase;
  letter-spacing: -0.02em;
}
.about-clients__list span { opacity: 0.85; white-space: nowrap; }
.about-process {
  padding: 60px 32px 100px;
  max-width: 1400px;
  margin: 0 auto;
  border-top: 1.5px solid var(--line);
}
.about-process__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
}
.about-process__cell {
  padding: 28px 24px;
  border-right: 1.5px solid var(--line);
}
.about-process__cell:last-child { border-right: none; }
.about-process__num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.2em; opacity: 0.55; margin-bottom: 14px;
}
.about-process__name {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: clamp(26px, 3vw, 40px);
  text-transform: uppercase; letter-spacing: -0.03em;
  margin: 0 0 12px;
}
.about-process__desc { font-size: 14px; line-height: 1.55; opacity: 0.85; }

/* ===========================================================
   CONTACT (contact.html)
   =========================================================== */
.contact-grid {
  padding: 40px 32px 120px;
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 100px);
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-form { display: flex; flex-direction: column; gap: 24px; }
.contact-form label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  opacity: 0.55; margin-bottom: 6px;
  display: block;
}
.contact-form input, .contact-form textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1.5px solid var(--line);
  color: var(--ink);
  font-family: inherit;
  font-size: 18px;
  padding: 12px 0;
  outline: none;
  transition: border-color 220ms;
}
.contact-form input:focus, .contact-form textarea:focus {
  border-bottom-color: var(--accent);
}
.contact-form textarea { resize: vertical; min-height: 140px; }
.contact-form__submit {
  align-self: flex-start;
  margin-top: 24px;
  padding: 22px 44px;
  border: 1.5px solid var(--ink);
  color: var(--accent);
  background: transparent;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  cursor: pointer;
  transition: background 220ms, color 220ms;
}
.contact-form__submit:hover { background: var(--ink); color: var(--paper); }
.contact-side__block { margin-bottom: 48px; }
.contact-side__label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  opacity: 0.55; margin-bottom: 12px;
}
.contact-side__value {
  font-size: 22px; line-height: 1.4;
}
.contact-side__value a { color: var(--accent); text-decoration: none; }
.contact-side__value a:hover { text-decoration: underline; }

/* ===========================================================
   FOOTER
   =========================================================== */
.ds-footer {
  background: #000; color: var(--ink);
  padding: 80px 32px 32px;
  position: relative; overflow: hidden;
  border-top: 1.5px solid var(--line);
}
.ds-footer__inner { max-width: 1600px; margin: 0 auto; }
.ds-footer__display {
  font-size: clamp(64px, 14vw, 220px);
  text-transform: uppercase; line-height: 0.85; letter-spacing: -0.04em;
}
.ds-footer__display .serif {
  font-family: 'Instrument Serif', serif; font-style: italic; font-weight: 400;
  letter-spacing: -0.02em;
}
a.ds-footer__cta {
  display: block; color: inherit; text-decoration: none;
  transition: opacity .3s ease;
}
a.ds-footer__cta:hover { opacity: 0.75; }
a.ds-footer__cta:hover .ds-footer__arrow { transform: translateX(14px); }
.ds-footer__arrow {
  display: inline-block;
  font-family: 'Archivo', sans-serif; font-style: normal; font-weight: 400;
  font-size: 0.42em; line-height: 1;
  margin-left: 0.35em; vertical-align: 0.35em;
  opacity: 0.85; transition: transform .35s ease;
}
.ds-footer__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-top: 80px; padding-top: 32px;
  border-top: 1px solid rgba(245,243,238,0.2);
}
.ds-footer__col-title {
  font-size: 11px; letter-spacing: 0.18em; opacity: 0.5; text-transform: uppercase; margin-bottom: 14px;
}
.ds-footer__link { font-size: 18px; display: block; margin: 0 0 4px; }
.ds-footer__addr { font-size: 14px; line-height: 1.6; opacity: 0.85; }
.ds-footer__legal {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  margin-top: 80px; font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; opacity: 0.55;
}

/* ===========================================================
   Mobile fine-tuning
   =========================================================== */
@media (max-width: 760px) {
  .hero-hud { left: 16px; right: 16px; }
  .hero-hud--top { top: 80px; }
  .stats { padding: 100px 20px; }
  .services { padding: 80px 20px; }
  .ds-footer { padding: 60px 20px 24px; }
  .services__cell { border-right: none; }
}
