/* VLa — version 10 : correctif cadrage et organisation des miniatures de la page Projets (page 3). */
:root {
  --page-margin: 1.7vw;
  --header-top: 2.4svh; /* hauteur stable lorsque la barre Safari iOS se replie */
  --column-left: 56.78vw;
  --column-width: 41.53vw;
  --logo-width: 13.48vw;
  --logo-height: calc(var(--logo-width) * 1.371841); /* ratio exact 380 / 277 */
  --menu-gap: clamp(14px, 2vw, 34px);
  --menu-row-gap: clamp(4px, .35vw, 8px);
  --menu-indent: 1.85vw; /* retrait relatif au logo, preserve quel que soit le format */
  --menu-left: calc(var(--page-margin) + var(--menu-indent));
  --sidebar-links-top: calc(var(--header-top) + var(--logo-height) + var(--menu-gap));
  --soft-grey: #ececec;
  --mustard: #dbb23d; /* approximation ecran de CMJN 0/19/72/14 */
  --secondary: #999999;
  --black: #0a0a0a;
  --fade-speed: 250ms;
  --slide-speed: 560ms;
  font-family: Arial, Helvetica, sans-serif;
  --menu-font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--black);
  background: white;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { padding: 0; margin: 0; min-height: 100%; }
body { min-width: 320px; overflow-x: hidden; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; padding: 0; }
button:focus-visible, a:focus-visible { outline: 2px solid #444; outline-offset: 4px; }
[hidden] { display: none !important; }
#stage { min-height: 100vh; background: #fff; transition: opacity var(--fade-speed) ease; }
#stage.stage-out { opacity: 0; pointer-events: none; }
#stage.stage-in { opacity: 0; }
#stage.stage-in.stage-visible { opacity: 1; }
.brand {
  position: fixed; z-index: 30;
  top: var(--header-top); left: var(--page-margin);
  width: var(--logo-width); aspect-ratio: 277 / 380;
  display: block; transform-origin: 50% 50%;
  transition: transform 220ms ease, opacity 180ms ease;
  color: var(--soft-grey);
  background: transparent !important;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  outline-color: transparent;
  touch-action: manipulation;
  isolation: isolate;
}
.brand:active, .brand:focus, .brand:hover { background: transparent !important; }
.brand:focus-visible { outline: 2px solid #444; outline-offset: 4px; }
.brand:hover { transform: scale(1.045); }
.brand-mark {
  display: block; width: 100%; height: 100%;
  background-color: currentColor;
  pointer-events: none;
  -webkit-mask: url('assets/logo-vla.png') center / contain no-repeat;
  mask: url('assets/logo-vla.png') center / contain no-repeat;
}
body.photo-mode .brand { color: #fff; }
/* Galerie d’accueil, pages 1 à 1D : respiration lente du blanc au moutarde puis au blanc.
   Pas d’animation sur le menu, le répertoire, ni les fiches projets. */
body.photo-mode .brand-mark { animation: vla-mustard-pulse 6.4s ease-in-out infinite; }
@keyframes vla-mustard-pulse {
  0%, 100% { background-color: #ffffff; }
  50% { background-color: var(--mustard); }
}
/* T10: trajet DXF blanc jusqu’au rebond ; barre du A et impact simultanés.
   Les changements de couleur démarrent après le bump. */
#snake-intro{position:fixed;inset:0;z-index:25;width:100%;height:100%;pointer-events:none;overflow:hidden;display:block}
body.snake-running .brand-mark{visibility:hidden!important}
body.home-first .brand-mark{animation:none!important;background-color:#fff!important}
body.lightbox-open .brand { visibility: hidden; opacity: 0; pointer-events: none; transition: none; }
body.lightbox-open { overflow: hidden !important; }
/* pages 1 à 1D : une photographie couvre toute la fenêtre. */
.home { height: 100vh; height: 100dvh; width: 100vw; overflow: hidden; position: relative; background: #e6e3df; }
/* Geste horizontal natif : pas de déplacement vertical accidentel sur l'accueil et le plein écran.
   La fiche laisse défiler la page verticalement (pan-y). */
.carousel { position: relative; overflow: hidden; width: 100%; height: 100%; background: #e9e9e9; user-select: none; -webkit-user-select: none; touch-action: pan-y; overscroll-behavior-x: contain; cursor: grab; }
.home .carousel, .lightbox .carousel { touch-action: none; }
.carousel.is-dragging { cursor: grabbing; }
.carousel .arrow { cursor: pointer; }
.carousel img { -webkit-user-drag: none; user-select: none; -webkit-user-select: none; pointer-events: none; }
.slide-track { display: flex; width: 300%; height: 100%; transform: translate3d(-33.333333%,0,0); will-change: transform; }
.slide { width: 33.333333%; height: 100%; flex: 0 0 33.333333%; overflow: hidden; position: relative; background: #e8e8e8; }
.slide img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center; transition: transform 230ms ease; }
.carousel-controls { position: absolute; inset: 0; pointer-events: none; z-index: 5; }
.arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 6.2vw; min-width: 44px; height: 90px; display: grid; place-items: center; color: white; pointer-events: auto; }
.arrow--left { left: 0; }
.arrow--right { right: 0; }
.arrow svg { display: block; width: clamp(24px, 2.7vw, 45px); height: clamp(40px, 5vw, 70px); transition: transform 220ms ease; filter: drop-shadow(0 0 1px rgba(0,0,0,.08)); }
.arrow:hover svg { transform: scale(1.12); }
.arrow--left:hover svg { transform: scale(1.12); }
.arrow:focus-visible { outline: 2px solid currentColor; outline-offset: -4px; }

/* V9 — Safari iOS : neutraliser uniquement le rectangle gris au toucher des flèches.
   Le survol et le focus clavier sur macOS restent inchangés. */
@supports (-webkit-touch-callout: none) {
  @media (hover: none) and (pointer: coarse) {
    .carousel .arrow,
    .carousel .arrow svg,
    .carousel .arrow svg path {
      -webkit-tap-highlight-color: transparent !important;
      -webkit-touch-callout: none;
    }
    .carousel .arrow {
      -webkit-appearance: none;
      appearance: none;
      border: 0;
      background: transparent !important;
      box-shadow: none !important;
      touch-action: manipulation;
    }
    .carousel .arrow:active,
    .carousel .arrow:focus:not(:focus-visible) {
      background: transparent !important;
      box-shadow: none !important;
      outline: none;
    }
  }
}

/* page 2 : logo et menu partagent un repere fixe ; le menu ne peut plus defiler sous le logo sur iOS. */
body.menu-mode { overflow: hidden; }
body.menu-mode #stage { height: 100svh; height: 100dvh; min-height: 0; overflow: hidden; }
.menu-screen { position: relative; width: 100%; height: 100svh; height: 100dvh; min-height: 0; background: #fff; overflow: hidden; }
.main-menu { position: fixed; z-index: 25; top: var(--sidebar-links-top); left: var(--menu-left); display: flex; flex-direction: column; align-items: flex-start; gap: var(--menu-row-gap); }
.menu-link { display: inline-block; font-family: var(--menu-font); font-size: clamp(19px, 1.66vw, 29px); line-height: 1.14; font-weight: 300; text-align: left; color: var(--mustard); transform-origin: 0% 50%; transition: transform 220ms ease, opacity 290ms ease; }
.menu-link:hover { transform: scale(1.06); }
.main-menu.menu-fade-out { opacity: 0; transition: opacity 320ms ease; pointer-events: none; }
/* page 3 : axe de la liste au même x que l'image pleine largeur des fiches. */
.project-index { width: 100%; min-height: 100vh; background: #fff; }
.project-list { margin-left: var(--column-left); width: var(--column-width); padding-top: var(--header-top); padding-bottom: 12vh; }
/* Nouvelle trame rouge de la maquette page 3 : la colonne d'information reste
   à 56,78vw ; la miniature débute à 74,76vw et se termine à 98,31vw.
   Image : 23,55vw × 14,36vw (rapport ≈ 1,64). Deux modules de 3,59vw
   séparent les photos successives, qui restent alignées en haut avec les textes. */
.project-row { display: grid; grid-template-columns: minmax(0,1fr) 23.55vw; gap: 0; align-items: start; min-height: 14.36vw; margin-bottom: 7.18vw; }
.project-text { color: #0a0a0a; font-family: var(--menu-font); font-size: clamp(16px,1.66vw,26px); font-weight: 300; line-height: 1.22; text-align: left; display: flex; align-items: flex-start; flex-direction: column; max-width: max-content; }
.project-text span { display: block; }
.project-text .muted { color: var(--mustard); transition: color 180ms ease; }
.project-text:hover .muted, .project-text:focus-visible .muted { color: #0a0a0a; }
.project-thumb { display: block; position: relative; overflow: hidden; width: 100%; height: 14.36vw; background: #ebebeb; }
.project-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 230ms ease; }
.project-thumb:hover img { transform: scale(1.045); }
/* page 3, puis pages 3A et suivantes : boutons de retour identiques et fixes. */
.back-to-menu, .back-to-projects { position: fixed; z-index: 22; top: var(--sidebar-links-top); left: var(--menu-left); display: flex; align-items: center; gap: 7px; color: var(--mustard); font-family: var(--menu-font); font-size: clamp(19px, 1.66vw, 29px); line-height: 1.14; font-weight: 300; transform-origin: 0% 50%; transition: transform 220ms ease; }
.back-to-menu:hover, .back-to-projects:hover { transform: scale(1.055); }
.back-to-menu svg, .back-to-projects svg { display: block; width: clamp(13px,1.35vw,22px); height: clamp(23px,2.6vw,39px); }
.detail-page { min-height: 100vh; background: #fff; padding-top: var(--header-top); padding-bottom: 6vh; }
.detail-content { margin-left: var(--column-left); width: var(--column-width); }
.detail-frame { width: 100%; height: 41.53vh; position: relative; background: #ebebeb; overflow: hidden; cursor: zoom-in; }
.detail-frame .slide img { transition: transform 230ms ease; }
.detail-frame:hover .slide img { transform: scale(1.024); }
.detail-frame .arrow { width: 5.1vw; }
.detail-meta { margin-top: 2.2vh; font-family: var(--menu-font); font-size: clamp(16px,1.66vw,26px); font-weight: 300; line-height: 1.22; }
.detail-meta .name, .detail-meta .location { color: #070707; }
.detail-meta .location, .detail-meta .muted { display: block; }
.detail-meta .muted { color: var(--secondary); }
.detail-description { white-space: pre-line; margin-top: 2.1vh; font-family: var(--menu-font); font-size: clamp(16px,1.65vw,26px); font-weight: 300; line-height: 1.22; color: var(--secondary); text-align: justify; hyphens: auto; overflow-wrap: break-word; }
/* Fullscreen galerie : uniquement l'image et les deux flèches. */
.lightbox { position: fixed; inset: 0; z-index: 100; width: 100vw; height: 100vh; height: 100dvh; overflow: hidden; background: #e9e9e9; }
.lightbox .slide { cursor: zoom-out; }
.lightbox .slide img { object-fit: cover; }
.lightbox .arrow { z-index: 101; }
/* Écrans 4 et 5 : aucune conception graphique inventée à ce stade. */
.pending-screen { background: #fff; min-height: 100vh; }
.pending-note { position: absolute; left: var(--column-left); top: 36vh; font-size: 15px; color: #aaa; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
@media (max-width: 760px) {
  :root { --page-margin: 5vw; --header-top: 3svh; --logo-width: 26vw; --column-left: 37vw; --column-width: 58vw; --menu-indent: 3.55vw; --menu-row-gap: 4px; }
  .brand { width: var(--logo-width); }
  .main-menu { top: var(--sidebar-links-top); left: var(--menu-left); gap: var(--menu-row-gap); }
  .menu-link { font-size: 21px; }
  .project-row { grid-template-columns: minmax(0,1fr) 32vw; min-height: 19.5vw; margin-bottom: 12vw; }
  .project-thumb { width: 100%; height: 19.5vw; }
  .project-text, .detail-meta { font-size: 14px; }
  .detail-description { font-size: 14px; line-height: 1.35; }
  .back-to-menu, .back-to-projects { top: var(--sidebar-links-top); left: var(--menu-left); font-size: 21px; }
  .detail-frame { height: 34vh; }
  .arrow { width: 12vw; }
  .menu-link, .back-to-menu, .back-to-projects { -webkit-tap-highlight-color: transparent; }
}
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* V16 — page Compétences, visual associations validated against user drawing.
   Thin rules link the first competence to luxury brands, and the third
   to contractors; NO short vertical remnant above the second rule. */
.skills-page{background:#fff;min-height:100vh;padding:var(--header-top) var(--page-margin) 8vh 22vw;font-family:var(--menu-font);color:#0b0e21}
.skills-editorial{width:100%;max-width:1330px;margin:0 auto;}
.skills-title{white-space:pre-line;font-size:clamp(25px,2.95vw,54px);font-weight:780;letter-spacing:-.035em;line-height:1.06;margin:0 0 clamp(38px,5.5vw,90px);max-width:690px}
.skills-feature{display:flex;justify-content:flex-end;margin:-15px 0 clamp(20px,4vw,55px)}
.skills-feature img{width:min(100%,420px);max-height:330px;object-fit:cover}
.skills-content{--skill-rule:#b7b7b7;display:grid;gap:0}
.skills-bullet{position:relative;font-size:clamp(17px,1.6vw,26px);font-weight:300;line-height:1.2;padding:0 18px 0 1.45em;color:#0b0e21}
.skills-bullet::before{content:'➞';position:absolute;top:0;left:0;font-family:Arial,sans-serif;font-size:.94em;font-weight:400;line-height:1.05;color:inherit}
.skills-references{list-style:none;padding:0 12px 4px 10px;margin:0;color:#999;text-align:right;font-size:clamp(15px,1.48vw,22px);font-weight:300;line-height:1.14;border-right:1px solid var(--skill-rule)}
.skills-references li{margin:0}
.skills-brand-association{display:grid;grid-template-columns:minmax(0,58fr) minmax(0,42fr);align-items:end;border-bottom:1px solid var(--skill-rule);min-height:190px}
.skills-brand-association .skills-bullet{padding-bottom:10px}
.skills-standalone{display:grid;gap:clamp(20px,2.4vw,44px);padding:clamp(23px,2.2vw,34px) 0}
.skills-partner-heading{border-bottom:1px solid var(--skill-rule);padding:0 0 13px}
.skills-partner-body{display:grid;grid-template-columns:minmax(0,58fr) minmax(0,42fr);align-items:start}
.skills-partner-points{display:grid;gap:clamp(20px,2.4vw,44px);padding-top:clamp(18px,2vw,29px)}
.skills-partner-body .skills-references{padding-top:4px;padding-bottom:7px}
.skills-draft{font-size:19px;color:#999;min-height:60vh}
/* Contact : aucune adresse n'est inscrite dans le HTML, CSS ou JS. */
.contact-page{min-height:100vh;padding:var(--sidebar-links-top) 3vw 12vh var(--column-left);font-family:var(--menu-font)}
.contact-content{font-size:clamp(18px,1.8vw,30px);font-weight:300;line-height:1.75;overflow-wrap:anywhere;white-space:pre-line}
.contact-content h1{font-size:clamp(22px,2.4vw,40px);font-weight:300;margin:0 0 26px;text-transform:lowercase}
.contact-content p{margin:9px 0}.contact-content a{color:inherit;text-decoration:none;border-bottom:1px solid #ccc}.contact-content a:hover{border-color:var(--mustard)}
.contact-message{color:#888;font-size:clamp(14px,1.15vw,18px);line-height:1.65;max-width:540px}
@media(max-width:920px){.skills-page{padding-left:27vw;padding-right:4vw}.skills-title{font-size:clamp(24px,4vw,42px)}.skills-bullet{font-size:clamp(15px,1.9vw,20px)}.skills-references{font-size:clamp(13px,1.6vw,18px)}.contact-page{padding-left:35vw}}
@media(max-width:620px){
 .skills-page{padding-top:calc(var(--sidebar-links-top) + 26px);padding-left:var(--page-margin);padding-right:var(--page-margin)}
 .skills-title{font-size:clamp(22px,6vw,34px);margin-bottom:26px}
 .skills-bullet{font-size:16px;line-height:1.25;padding-left:1.4em}
 .skills-references{font-size:15px;line-height:1.2;text-align:right}
 .skills-brand-association{grid-template-columns:1fr;min-height:0;gap:12px}
 .skills-brand-association .skills-references{margin-left:26px}
 .skills-partner-body{grid-template-columns:1fr}
 .skills-partner-body .skills-references{grid-row:1;margin-left:26px;padding-top:11px}
 .skills-partner-points{grid-row:2}
 .skills-standalone,.skills-partner-points{gap:20px;padding:20px 0}
 .contact-page{padding-left:var(--page-margin);padding-top:calc(var(--sidebar-links-top) + 28px)}
}

/* V18 — first home frame: no zoom / no geometry manipulation; both WebPs
   have identical 1365 x 2048 dimensions, aligned via the same object-fit crop. */
.slide--light-transition > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.slide--light-transition > .lighting-night { z-index: 0; }
.slide--light-transition > .lighting-day {
  z-index: 1;
  opacity: 0;
  transition: none; /* V31 : opacité pilotée exactement par les frames du serpent */
  will-change: opacity;
}
body.home-lights-on .slide--light-transition > .lighting-day { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .slide--light-transition > .lighting-day { transition: none; }
}


/* V21 — Ajustements d'alignement demandés sur les pages 3 et 3A+.
   Alignement selon la verticale rouge des maquettes (x ≈ 53,38 % du viewport).
   Page 3 : seuls les textes bougent ; les miniatures gardent EXACTEMENT
   leur x, y, largeur, hauteur et ratio d'origine.
   Pages 3A+ : déplacement du bloc entier (galerie + métadonnées + description),
   sans étirement ni modification des photographies. */
:root { --project-horizontal-shift: 3.40vw; }
.project-index .project-text {
  position: relative;
  left: calc(-1 * var(--project-horizontal-shift));
}
.detail-page .detail-content {
  margin-left: calc(var(--column-left) - var(--project-horizontal-shift));
}

/* V22 — Page Compétences: disposition exactement validée dans la simulation.
   L'image provient toujours de D1/R2, jamais d'un fichier de démonstration.
   L'alignement reprend le bord gauche de la colonne des pages projets (V21). */
:root { --skills-hero-x: calc(var(--column-left) - var(--project-horizontal-shift)); }
.skills-editorial { max-width:none; margin:0; }
.skills-hero {
  margin-left: calc(var(--skills-hero-x) - 22vw);
  width: calc(100vw - var(--skills-hero-x) - var(--page-margin));
  max-width: none;
}
.skills-hero .skills-title {
  max-width: none;
  margin: 0 0 clamp(32px,4vw,72px);
  text-align: left;
  white-space: pre-line;
}
.skills-hero .skills-feature { display:block; margin:0 0 clamp(40px,5.1vw,85px); }
.skills-hero .skills-feature img {
  display:block; width:100%; max-width:none; max-height:none; height:auto; object-fit:contain;
}
@media(max-width:920px) and (min-width:621px) {
  .skills-hero { margin-left:calc(var(--skills-hero-x) - 27vw); }
}
@media(max-width:620px) {
  .skills-hero { margin-left:0; width:100%; }
  .skills-hero .skills-title { font-size:clamp(22px,5.8vw,34px);white-space:normal;margin-bottom:25px; }
  .skills-hero .skills-feature { margin-bottom:34px; }
}
/* V22 — Plein écran iOS: même fenêtre pour le stage et les carrousels.
   Ne modifie pas le cadrage : object-fit:cover demeure inchangé. */
html.vla-edge-to-edge { background:#17130f; overscroll-behavior: none; }
body.photo-mode, body.lightbox-open { background:#17130f; overscroll-behavior: none; }
body.photo-mode { overflow:hidden; }
body.photo-mode #stage {
  position:fixed; inset:0;
  width:100%; height:100vh; height:100dvh;
  min-height:0; overflow:hidden;
  background:#17130f;
}
body.photo-mode #stage .home {
  width:100%; height:100%; min-height:0;
}
body.photo-mode #stage .home-frame { height:100%; }
.lightbox {
  position:fixed; inset:0;
  width:100%; height:100vh; height:100dvh;
  min-height:0; overflow:hidden;
  background:#17130f;
}
.lightbox .carousel, .home .carousel { height:100%; }
@supports (-webkit-touch-callout:none) {
  body.photo-mode #stage, .lightbox { -webkit-overflow-scrolling:auto; }
  /* Avoid the white pull-to-scroll bands on iPhone. */
  html.vla-edge-to-edge, body.photo-mode, body.lightbox-open { overscroll-behavior-y:none; }
}


/* Les pages éditoriales reprennent l’axe des fiches projets. */
:root {
  --vla-editorial-start: calc(var(--column-left) - var(--project-horizontal-shift));
  --vla-editorial-end: var(--page-margin);
}
.skills-editorial-page,.agency-editorial-page{min-height:100vh;background:#fff;font-family:var(--menu-font);color:#121212;}
.vla-editorial-rail{position:relative;isolation:isolate; margin-left:var(--vla-editorial-start); margin-right:var(--vla-editorial-end); padding-top:var(--header-top);padding-bottom:6rem; min-width:0;}
.vla-editorial-photo{display:block;margin:0 0 clamp(15px,1.45vw,26px);width:100%; aspect-ratio:1; overflow:hidden;background:#ececec;}
.agency-editorial-page .vla-editorial-photo{aspect-ratio:3 / 4;max-height:85svh;}
.vla-editorial-photo img{display:block;width:100%;height:100%;object-fit:cover;}
.vla-photo-placeholder{width:100%;height:100%;display:grid;place-items:center;color:#969696;font-size:clamp(15px,1.66vw,26px);font-weight:300;}
.vla-editorial-title{margin:0 0 clamp(18px,1.45vw,26px);font-size:clamp(18px,1.87vw,34px);line-height:1.2;font-weight:700;text-transform:uppercase;letter-spacing:-.012em;text-align:left;overflow-wrap:break-word;white-space:normal;}
.skills-editorial-page .vla-editorial-title{text-align:justify;text-align-last:left;}
.vla-skill-list{list-style:none;margin:0;padding:0;}
.vla-skill-row{--skill-chevron-offset:clamp(18px,2.25vw,37px);position:relative; margin:0 0 clamp(24px,2.65vw,48px);font-size:clamp(16px,1.66vw,26px);line-height:1.21;font-weight:300;min-width:0;}
.vla-skill-static,.vla-skill-toggle{display:block;position:relative;width:100%;text-align:justify;text-align-last:left;overflow-wrap:break-word;hyphens:none;}
.vla-skill-toggle{width:calc(100% + var(--skill-chevron-offset));padding:0 0 0 var(--skill-chevron-offset);margin:0 0 0 calc(-1 * var(--skill-chevron-offset));min-height:24px;background:transparent;color:var(--mustard);font-size:inherit;font-weight:inherit;line-height:inherit;cursor:pointer;}
.vla-skill-toggle:hover{color:#b48c20;}
.vla-skill-chevron{position:absolute;top:50%;left:calc(-1 * var(--skill-chevron-offset));transform:translateY(-50%);width:clamp(11px,1.3vw,20px);height:clamp(19px,2.2vw,36px);color:#bdc0c2;pointer-events:none;}
.vla-skill-toggle .vla-skill-chevron{left:0;color:var(--mustard);}
.vla-reference-panel{position:absolute;z-index:6;top:0;right:0;max-width:100%;width:max-content;padding:clamp(13px,1.4vw,23px) clamp(16px,1.9vw,29px);background:#fff; border-radius:22px 10px 10px 22px;box-shadow:-8px 5px 18px rgba(0,0,0,.20),0 1px 4px rgba(0,0,0,.05);font-size:clamp(16px,1.66vw,26px);line-height:1.2;text-align:right; font-weight:300; opacity:0;transform:translateX(10px);transition:opacity .22s ease,transform .22s ease;}
.vla-reference-panel.is-open{opacity:1;transform:translateX(0);}
.vla-reference-panel ul{list-style:none;margin:0;padding:0;}
.vla-reference-panel li{overflow-wrap:break-word;}
.vla-agency-copy{font-size:clamp(16px,1.66vw,26px);font-weight:300;line-height:1.31;letter-spacing:-.018em;text-align:justify;text-align-last:left;overflow-wrap:break-word;}
.vla-agency-copy .vla-editorial-title{margin:0 0 clamp(17px,1.45vw,26px);}
.vla-agency-copy p{margin:0 0 clamp(24px,2vw,36px);}
.vla-agency-copy p:last-child{margin-bottom:0;}
@media (max-width:760px){
  .vla-skill-row,.vla-agency-copy{font-size:clamp(14px,2.1vw,18px);line-height:1.3;}
  .vla-editorial-title{font-size:clamp(15px,2.15vw,20px);}
  .vla-editorial-rail{padding-bottom:4rem;}
  .vla-skill-row{margin-bottom:clamp(18px,2.2vw,30px);}
  .vla-reference-panel{font-size:clamp(13px,2vw,17px);padding:12px 12px 13px 17px;}
  .vla-reference-panel li{overflow-wrap:anywhere;}
  .vla-skill-row{--skill-chevron-offset:19px;}
  .vla-skill-chevron{width:11px;height:20px;}
}
@media (max-width:480px){
  :is(.skills-editorial-page,.agency-editorial-page) .back-to-menu{font-size:clamp(16px,4.4vw,21px);}
  .vla-skill-row,.vla-agency-copy{font-size:clamp(13px,3.65vw,17px);}
  .vla-editorial-title{font-size:clamp(14px,3.65vw,18px);}
  .vla-reference-panel{font-size:clamp(12px,3.4vw,16px);}
}
@media(prefers-reduced-motion:reduce){.vla-reference-panel{transition:none}}

/* V30 — Zoom des fiches projet, indépendant du carrousel d'accueil.
   Garde-fou Safari/cache : les images ne sont JAMAIS masquées en attendant JS.
   Si JS et CSS de versions différentes se chargent, le plein écran cover reste visible.
   Seul le JS V30 active la classe vla-project-zoom. */
.lightbox .slide img { transition: none; }
.lightbox.vla-project-zoom .slide img.photo-ready {
  object-fit: contain;
  transform: scale(var(--project-cover-scale, 1));
  transform-origin: center center;
  transition: none;
}
/* Animation explicite uniquement entre les modes d'UNE même photo.
   Pas de transition de zoom lors d'un swipe ni à la création d'une diapositive. */
.lightbox.vla-project-zoom.zoom-transition .slide img.photo-ready {
  transition: transform 260ms cubic-bezier(.22,.72,.28,1);
}
.lightbox.vla-project-zoom.is-contained .slide img.photo-ready { transform: scale(1); }
.lightbox.is-contained,
.lightbox.is-contained .carousel,
.lightbox.is-contained .slide { background: #fff; }
html.vla-project-fit,
body.vla-project-fit { background: #fff; }
.lightbox.is-contained .slide { cursor: zoom-in; }
.lightbox.is-contained .arrow { color: #525252; }
@media (prefers-reduced-motion: reduce) {
  .lightbox.vla-project-zoom.zoom-transition .slide img.photo-ready { transition: none; }
}

/* V31 — formulaire Contact blanc, même Helvetica Neue que le reste du site. */
.contact-page{background:#fff;color:var(--black);min-height:100vh;min-height:100dvh}
.contact-content{font-family:var(--menu-font);font-size:clamp(15px,1.18vw,19px);font-weight:300;line-height:1.5;max-width:980px;padding-right:clamp(22px,5vw,105px);}
.contact-content h1{font-size:clamp(22px,2.4vw,40px);font-weight:300;line-height:1.2;margin:0 0 clamp(24px,3.4vw,48px)}
.contact-intro{max-width:600px;font-size:clamp(14px,1.16vw,19px);line-height:1.65;margin:0 0 32px!important}
.vla-contact-form{max-width:570px;width:100%;display:flex;flex-direction:column;gap:18px}
.contact-field{display:flex;flex-direction:column;gap:6px}
.contact-field label,.contact-callback{font-size:clamp(14px,1.03vw,17px);font-family:var(--menu-font);font-weight:300;color:#111}
.contact-field input,.contact-field textarea{display:block;width:100%;border:0;border-bottom:1px solid #bcbcbc;border-radius:0;background:#fff;color:#111;font:300 clamp(15px,1.14vw,18px)/1.5 var(--menu-font);padding:9px 1px 10px;outline:none;-webkit-appearance:none;appearance:none;resize:vertical;min-height:42px}
.contact-field textarea{min-height:115px;border:1px solid #d1d1d1;padding:12px;margin-top:3px}
.contact-field input:focus,.contact-field textarea:focus{border-color:var(--mustard)}
.contact-callback{display:flex;align-items:center;gap:10px;cursor:pointer;max-width:max-content;margin-top:3px}
.contact-callback input{width:16px;height:16px;margin:0;accent-color:var(--mustard)}
.contact-phone-field{padding-bottom:3px}
.contact-honeypot{position:absolute;left:-9999px;top:auto;width:1px;height:1px;overflow:hidden;opacity:0;pointer-events:none}
.contact-turnstile{min-height:65px;margin-top:5px}
.contact-actions{display:flex;align-items:center;gap:18px;flex-wrap:wrap}
.contact-submit{font-family:var(--menu-font);font-size:clamp(18px,1.45vw,24px);font-weight:300;color:var(--mustard);line-height:1.2;text-transform:lowercase;min-width:88px;text-align:left;transition:opacity .15s ease}
.contact-submit:hover:not(:disabled){opacity:.7}
.contact-submit:disabled{color:#bbb;cursor:not-allowed}
.contact-status{color:#666;font-size:13px;line-height:1.5;flex:1;min-width:210px;max-width:380px}
.contact-status.is-error{color:#a43d34}
.contact-privacy{font-size:12px!important;line-height:1.6!important;color:#777!important;max-width:550px;margin:3px 0 0!important}
@media(max-width:620px){
 .contact-content{padding:0 18px 60px 0;max-width:100%}
 .contact-content h1{margin-bottom:24px}
 .contact-intro{margin-bottom:25px!important}
 .vla-contact-form{gap:14px}
 .contact-turnstile{margin-top:2px}
}


/* V34 — Sur l'accueil le dessin du logo reste blanc, comme en V33. */
body.photo-mode .brand-mark {
  animation:none !important;
  background-color:#ffffff !important;
}
/* Le bouton de l'accueil PORTE la même classe `back-to-menu` que toutes
   les pages suivantes. Aucune position, taille, police, hauteur, écartement
   ou taille de flèche n'est redéfinie ici : une seule règle de référence.
   Seuls le sens de la flèche (SVG), la couleur et le fondu diffèrent. */
.home-menu {
  z-index:32;
  color:#fff;
  opacity:0;
  pointer-events:none;
  transition:transform 220ms ease, opacity 1300ms ease;
  -webkit-tap-highlight-color:transparent;
}
body.home-menu-unlocked .home-menu {
  opacity:1;
  pointer-events:auto;
  animation:vla-v34-menu-color 6.4s ease-in-out 1.3s infinite;
}
@keyframes vla-v34-menu-color {
  0%,100% {color:#fff;}
  50% {color:var(--mustard);}
}
/* Des versions plus anciennes adaptaient uniquement les retours des pages
   éditoriales sur iPhone ; en V34, toute navigation « menu » partage enfin
   strictement le même gabarit, même sous 480 px. */
@media (max-width:480px) {
  :is(.skills-editorial-page,.agency-editorial-page) .back-to-menu {
    font-size:21px;
  }
}
/* iOS : un tap conserve parfois :hover ; ne pas agrandir le bouton au toucher,
   afin que ses dimensions restent strictement identiques d'une page à l'autre. */
@media (hover:none) and (pointer:coarse) {
  .back-to-menu:hover, .back-to-projects:hover {transform:none;}
}


/* V32 — Bouton croix blanc cerné d'un cercle blanc, sur photo projet plein écran. */
.lightbox .vla-fullscreen-close{
  position:absolute; z-index:112;top:18px;right:18px;
  display:grid;place-items:center;
  width:40px;height:40px;
  padding:0;border:1px solid #ffffff;border-radius:50%;
  color:#ffffff;background:rgba(0,0,0,.06);
  box-shadow:0 0 2px rgba(0,0,0,.35),0 0 6px rgba(0,0,0,.18);
  filter:drop-shadow(0 0 2px rgba(0,0,0,.38));
  cursor:pointer;-webkit-tap-highlight-color:transparent;
  touch-action:manipulation;
}
.lightbox .vla-fullscreen-close svg {display:block;width:24px;height:24px;}
.lightbox .vla-fullscreen-close:hover {background:rgba(0,0,0,.2);}
.lightbox .vla-fullscreen-close:focus-visible {outline:2px solid var(--mustard);outline-offset:4px;}
@media(max-width:760px){.lightbox .vla-fullscreen-close{width:36px;height:36px;}}

/* V32 — Contact: même rail droit que Compétences / Agence / fiches projets.
   Aucun contenu ne se place sous ou devant le logo et le retour « menu ».
   Conserve la totalité du formulaire V31 (callback, Turnstile, anti-spam). */
.contact-page {
  padding:var(--header-top) var(--vla-editorial-end) 8vh var(--vla-editorial-start);
  min-height:100vh;min-height:100dvh;
}
.contact-content {
  width:100%; max-width:none; min-width:0;
  padding:0; white-space:normal;
  overflow-wrap:anywhere;
}
.contact-page .vla-contact-form {
  width:100%; max-width:570px; min-width:0;
}
.contact-page .contact-field input,
.contact-page .contact-field textarea { min-width:0;max-width:100%;}
.contact-page .contact-turnstile {width:100%;max-width:100%;min-width:0;overflow:hidden;}
.contact-page .contact-turnstile iframe {max-width:100%;}
@media(max-width:760px) {
  .contact-page {
    padding-left:max(var(--vla-editorial-start), calc(var(--page-margin) + var(--logo-width) + 8px));
    padding-right:var(--vla-editorial-end);
  }
  .contact-content {padding:0 0 60px 0;max-width:none;}
}
@media(max-width:480px) {
  .contact-content {font-size:clamp(14px,3.65vw,17px);}
  .contact-content h1 {font-size:clamp(18px,4.4vw,23px);}
  .contact-page .vla-contact-form {gap:14px;}
  .contact-page .contact-status {min-width:0;}
}


/* V35 — shared return button geometry. Home/menu/skills/agency/contact and
   project index all use identical .back-to-menu markup and size metrics.
   On home, only the triangle orientation, colors and opacity are different. */
.back-to-menu, .back-to-projects {
  top:var(--sidebar-links-top);
  left:var(--menu-left);
  font-family:var(--menu-font);
  font-size:clamp(19px, 1.66vw, 29px);
  line-height:1.14;
  font-weight:300;
  gap:7px;
}
.back-to-menu svg, .back-to-projects svg {
  flex:none;
  width:clamp(13px, 1.35vw, 22px);
  height:clamp(23px, 2.6vw, 39px);
}
/* Keep the V34 mobile parity: use exactly 21px on all return controls. */
@media(max-width:760px){
  .back-to-menu, .back-to-projects {font-size:21px;}
}
/* Same SVG path/box as the other pages, mirrored only on home. */
.home-menu svg {transform:scaleX(-1);transform-origin:center;}

/* Photo 1: its right carousel arrow is fully hidden before the button menu
   has finished appearing. It then fades from 0 to 1 over 1.3 seconds. */
body.home-first .home .carousel .arrow--right {
  opacity:0;
  pointer-events:none;
  transition:opacity 1300ms ease;
}
body.home-first.home-gallery-arrow-unlocked .home .carousel .arrow--right {
  opacity:1;
  pointer-events:auto;
}
@media(prefers-reduced-motion:reduce){
  .home-menu, body.home-first .home .carousel .arrow--right {transition:none!important;}
}
