/* ---- tokens.css ---- */
/* Généré par build.py depuis design/tokens.json : ne pas modifier à la main. */
/* Thème Nuit par défaut ; une section claire porte la classe .jour. */
:root {
  --fond: #111111;
  --fond-2: #1a1a1a;
  --fond-3: #242424;
  --encre: #f0eee9;
  --encre-2: #bdbab3;
  --encre-3: #8c8984;
  --filet: #2b2b2b;
  --filet-fort: #6a6a6a;
  --orange: #ff5500;
  --orange-texte: #ff5500;
  --violet: #685bc7;
  --sun-glare: #ddff00;
  --noir: #111111;
  --blanc-casse: #f0eee9;
  --blanc: #ffffff;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 40px;
  --space-7: 80px;
  --space-8: 160px;
  --space-9: 240px;
  --radius-s: 4px;
  --radius-m: 10px;
  --radius-l: 16px;
  --radius-pill: 999px;
  --ombre-1: 0 1px 0 rgba(255,255,255,0.06) inset, 0 8px 24px rgba(0,0,0,0.35);
  --ombre-2: 0 1px 0 rgba(255,255,255,0.08) inset, 0 24px 60px rgba(0,0,0,0.55);
  --ombre-objet: 0 40px 80px rgba(0,0,0,0.6);
  --halo-orange: 0 0 80px rgba(255,85,0,0.25);
  --colonnes-desktop: 12;
  --colonnes-tablette: 8;
  --colonnes-mobile: 4;
  --marge-desktop: 3vw;
  --marge-mobile: 20px;
  --contenu-max: 1360px;
  --lecture-max: 600px;
  --courbe-orage: cubic-bezier(0.2, 0.8, 0.2, 1);
  --duree-fente: 500ms;
  --duree-survol: 200ms;
  --duree-mot: 250ms;
  --police-sans: "Archivo", system-ui, sans-serif;
  --police-serif: "Petrona", Georgia, serif;
  --police-script: "Ballet", cursive;
  --display-taille: 120px;
  --titre-1-taille: 64px;
  --titre-2-taille: 36px;
  --phrase-taille: 40px;
  --chapo-taille: 20px;
  --corps-taille: 16px;
  --donnee-taille: 15px;
  --label-taille: 11px;
  --bouton-taille: 13px;
  --contrepoint-taille: 64px;
  --signature-taille: 96px;
  --display-mobile-taille: 56px;
  --titre-1-mobile-taille: 36px;
  --titre-2-mobile-taille: 26px;
  --phrase-mobile-taille: 26px;
}
.jour {
  --fond: #f4f3ef;
  --fond-2: #ebe9e4;
  --fond-3: #dfddd7;
  --encre: #111111;
  --encre-2: #4a4744;
  --encre-3: #63605b;
  --filet: #d4d1ca;
  --filet-fort: #8a867f;
  --orange-texte: #b83d0a;
  --ombre-1: 0 1px 2px rgba(17,17,17,0.06), 0 8px 24px rgba(17,17,17,0.06);
  --ombre-2: 0 2px 6px rgba(17,17,17,0.08), 0 24px 60px rgba(17,17,17,0.12);
  --ombre-objet: 0 40px 80px rgba(17,17,17,0.18);
}

/* ---- base.css ---- */
/* Base : police, reset, grille, feuilles */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/archivo-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Mise en page (doc de passation) */
  --contenu: 1920px;                         /* au-delà, le contenu se centre */
  --marge: max(20px, min(3vw, 57.6px));      /* 3vw, 20px au minimum, bloquée avec le contenu */
  --gouttiere: 24px;
  --section-haut: clamp(80px, 8.3vw, 120px); /* position du label « 00X · Nom » */
  --respire-haut: clamp(112px, 12.5vw, 180px); /* Offres, Studio, Contact : plus d'air en haut… */
  --respire-bas: clamp(128px, 14vw, 200px);    /* … et en bas */
  --chevauche: 40px;                         /* feuilles qui montent */
  --rayon-feuille: 28px;
  --entete-h: 84px;
  --texte-label: 11px;
}
@media (min-width: 1024px) {
  /* Bureau : encore plus d'air autour d'Offres, Studio et Contact (240 / 260 px à 1440 px) */
  :root { --respire-haut: clamp(180px, 16.7vw, 280px); --respire-bas: clamp(200px, 18vw, 300px); }
}
@media (max-width: 767px) {
  :root { --marge: 20px; --gouttiere: 16px; --section-haut: 80px; --respire-haut: 112px; --respire-bas: 112px; --chevauche: 24px; --rayon-feuille: 20px; --entete-h: 72px; }
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  scroll-behavior: smooth; scroll-padding-top: var(--entete-h);
  background: var(--fond);
}
body {
  margin: 0; overflow-x: clip;
  font-family: var(--police-sans); font-size: 16px; line-height: 1.5;
  color: var(--encre); background: var(--fond);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img, svg, video, picture { display: block; max-width: 100%; }
h1, h2, h3, p, dl, dd { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--orange); color: var(--noir); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

.sr {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.evitement {
  position: fixed; z-index: 100; left: 12px; top: 12px; padding: 12px 18px; border-radius: var(--radius-pill);
  background: var(--orange); color: var(--noir); font-size: 13px; font-weight: 700;
  transform: translateY(-200%);
}
.evitement:focus { transform: none; }

/* Cadre : 1920 px au plus, centré ; les fonds restent pleine largeur */
.cadre { width: 100%; max-width: var(--contenu); margin-inline: auto; padding-inline: var(--marge); }
.grille { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gouttiere); }
@media (max-width: 1023px) { .grille { grid-template-columns: repeat(8, minmax(0, 1fr)); } }
@media (max-width: 767px)  { .grille { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Feuille qui monte : la section se pose sur la précédente */
.feuille {
  position: relative; margin-top: calc(-1 * var(--chevauche));
  border-radius: var(--rayon-feuille) var(--rayon-feuille) 0 0;
  box-shadow: 0 -24px 60px rgba(0, 0, 0, 0.55);
  background: var(--fond); color: var(--encre);
  overflow: hidden; overflow: clip; /* clip : coupe sans casser position: sticky à l'intérieur */
}
@media (max-width: 767px) { .feuille { box-shadow: 0 -16px 40px rgba(0, 0, 0, 0.55); } }

/* Pages à venir : vierges, seuls l'en-tête et le pied de page sont posés */
.page-vide { min-height: 70svh; }

/* ---- components.css ---- */
/* Composants partagés : labels, liens, boutons, statut, logo, emplacements 3D */

.label {
  font-size: var(--texte-label); font-weight: 500; line-height: 1.4;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--encre-3);
}

/* Lien texte : orange au survol, soulignement qui se dessine de gauche à droite */
.lien { position: relative; transition: color var(--duree-survol); }
.lien::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left center; transition: transform 0.35s var(--courbe-orage);
}
@media (hover: hover) {
  .lien:hover { color: var(--orange) !important; }
  .lien:hover::after { transform: scaleX(1); }
}
.lien:active { color: var(--orange) !important; }

.logo { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; transition: color var(--duree-survol); }
.logo__icone { width: 34px; height: 34px; flex: none; }
@media (hover: hover) { .logo:hover { color: var(--orange) !important; } }

/* Boutons : pastilles, texte en capitales */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 0 22px; border: 0; border-radius: var(--radius-pill);
  font-size: 13px; font-weight: 700; line-height: 1; letter-spacing: 0.08em; text-transform: uppercase;
  white-space: nowrap; text-decoration: none; background: transparent; color: inherit;
  transition: background-color var(--duree-survol), box-shadow var(--duree-survol), color var(--duree-survol);
}
.btn--sombre { background: var(--noir); color: var(--blanc-casse); }
.btn--clair  { background: var(--blanc-casse); color: var(--noir); }
.btn--trait  { box-shadow: inset 0 0 0 1px var(--filet-fort); }
.btn--grand  { min-height: 52px; padding: 0 28px; font-size: 14px; }
@media (hover: hover) {
  .btn--sombre:hover { background: #2b2b2b; }
  .btn--clair:hover  { background: var(--blanc); }
  .btn--trait:hover  { box-shadow: inset 0 0 0 1px var(--encre-3); color: var(--encre); }
}
.btn--sombre:active { background: #2b2b2b; }
.btn--clair:active  { background: var(--blanc); }

/* Point orange dans les boutons d'action */
.point { width: 7px; height: 7px; flex: none; border-radius: var(--radius-pill); background: var(--orange); box-shadow: 0 0 10px rgba(255, 85, 0, 0.6); }

/* Statut « Disponible » : point cerné de Sun Glare */
.statut { display: inline-flex; align-items: center; gap: 8px; }
.statut__point {
  width: 7px; height: 7px; flex: none; border-radius: var(--radius-pill); background: var(--encre);
  box-shadow: 0 0 0 2px var(--sun-glare), 0 0 10px rgba(221, 255, 0, 0.6);
}

/* Emplacement 3D : la forme reste visible tant que le rendu n'est pas branché */
.slot { position: relative; }
.slot__label {
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; text-align: center;
  padding: 12px; pointer-events: none;
}
.slot__media, .slot__media img { width: 100%; height: 100%; object-fit: contain; }
.slot:has(.slot__media) { background: none !important; box-shadow: none !important; }
/* Objet à écran vidéo : rendu centré, à la largeur de l'emplacement (proportions dans le HTML), vidéo sous la vitre (lib/ecran.js) */
.slot__media.ecran-objet { position: absolute; left: 50%; top: 50%; width: 100%; height: auto; translate: -50% -50%; }
.ecran-objet__ecran { position: absolute; inset: 0; overflow: hidden; }
.ecran-objet video { position: absolute; left: 0; top: 0; max-width: none; transform-origin: 0 0; object-fit: fill; background: #111; }
.ecran-objet img { position: relative; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 24px 30px rgba(17, 17, 17, 0.22)); }
html.slots [data-slot]::after {
  content: attr(data-slot); position: absolute; left: 6px; top: 6px; z-index: 5; padding: 2px 6px; border-radius: 4px;
  background: var(--sun-glare); color: var(--noir); font: 600 10px/1.4 var(--police-sans); letter-spacing: 0.04em;
}
html.slots [data-slot] { outline: 1px dashed var(--sun-glare); }

/* ---- sections/entete.css ---- */
/* En-tête fixe : prend les couleurs de la section qui passe dessous (data-entete="clair" | "sombre") */

.entete {
  --e-encre: var(--noir); --e-statut: #63605b; --e-point: var(--noir);
  --e-btn-bg: var(--noir); --e-btn-fg: var(--blanc-casse); --e-btn-survol: #2b2b2b; --e-anneau: #bdbab3;
  position: fixed; z-index: 50; top: 0; left: 0; right: 0;
  color: var(--e-encre); pointer-events: none;
}
.entete--sombre {
  --e-encre: var(--blanc-casse); --e-statut: #bdbab3; --e-point: var(--blanc-casse);
  --e-btn-bg: var(--blanc-casse); --e-btn-fg: var(--noir); --e-btn-survol: var(--blanc); --e-anneau: #6a6a6a;
}
.entete__barre { position: relative; z-index: 2; align-items: center; padding-block: 20px; pointer-events: none; }
.entete__barre > * { pointer-events: auto; }
.entete, .entete .label, .entete__statut, .entete__trait { transition: color var(--duree-survol), background-color var(--duree-survol); }

.entete__logo { grid-column: 1 / span 4; justify-self: start; color: var(--e-encre); }
.entete__nom { font-size: 15px; font-weight: 500; letter-spacing: -0.01em; }
.entete__nav { grid-column: 5 / span 4; display: flex; justify-content: center; gap: 32px; color: var(--e-encre); }
.entete__droite { grid-column: 9 / -1; display: flex; justify-content: flex-end; align-items: center; gap: 24px; }
.entete__statut { color: var(--e-statut); }
.entete .statut__point { background: var(--e-point); }
.entete__brief { background: var(--e-btn-bg); color: var(--e-btn-fg); }
@media (hover: hover) { .entete__brief:hover { background: var(--e-btn-survol); } }
.entete__brief:active { background: var(--e-btn-survol); }

.entete__menu {
  display: none; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 0; border: 0; border-radius: var(--radius-pill);
  background: transparent; box-shadow: inset 0 0 0 1px var(--e-anneau);
}
.entete__trait { width: 16px; height: 1.5px; background: var(--e-encre); transition: transform 0.3s var(--courbe-orage); }
.entete--menu .entete__trait:first-of-type { transform: translateY(3.25px) rotate(45deg); }
.entete--menu .entete__trait:last-of-type  { transform: translateY(-3.25px) rotate(-45deg); }

/* Flou progressif façon verre dès qu'on quitte le hero (FOND_FLOUTE dans js/sections/entete.js) :
   net en bas, de plus en plus flou et teinté vers le haut, sans bord visible. */
.entete__flou {
  --teinte: 244, 243, 239;
  position: absolute; left: 0; right: 0; top: 0; height: calc(var(--entete-h) + 40px); pointer-events: none;
  background: linear-gradient(to bottom, rgba(var(--teinte), 0.5), rgba(var(--teinte), 0.22) 55%, rgba(var(--teinte), 0));
  opacity: 0; transition: opacity 0.4s var(--courbe-orage);
}
.entete--sombre .entete__flou { --teinte: 17, 17, 17; }
.entete__flou span { position: absolute; inset: 0; }
.entete__flou span:nth-child(1) {
  -webkit-backdrop-filter: blur(1px) saturate(140%); backdrop-filter: blur(1px) saturate(140%);
  -webkit-mask-image: linear-gradient(to top, transparent 0%, #000 35%); mask-image: linear-gradient(to top, transparent 0%, #000 35%);
}
.entete__flou span:nth-child(2) {
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  -webkit-mask-image: linear-gradient(to top, transparent 20%, #000 55%); mask-image: linear-gradient(to top, transparent 20%, #000 55%);
}
.entete__flou span:nth-child(3) {
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  -webkit-mask-image: linear-gradient(to top, transparent 40%, #000 75%); mask-image: linear-gradient(to top, transparent 40%, #000 75%);
}
.entete__flou span:nth-child(4) {
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  -webkit-mask-image: linear-gradient(to top, transparent 60%, #000 95%); mask-image: linear-gradient(to top, transparent 60%, #000 95%);
}
.entete--floute .entete__flou { opacity: 1; }
.entete--menu .entete__flou { opacity: 0; }

/* Menu plein écran (mobile et tablette) : pas dessiné dans la maquette, version la plus simple */
.menu {
  position: fixed; inset: 0; z-index: 1; display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--entete-h) + 32px) 0 40px; background: var(--fond); color: var(--encre);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.3s var(--courbe-orage), visibility 0s linear 0.3s;
}
.entete--menu .menu { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity 0.3s var(--courbe-orage); }
.menu__nav { display: flex; flex-direction: column; }
.menu__nav a {
  display: flex; align-items: center; min-height: 64px; border-bottom: 1px solid var(--filet);
  font-size: 36px; font-weight: 500; letter-spacing: -0.03em; transition: color var(--duree-survol);
}
.menu__nav a:first-child { border-top: 1px solid var(--filet); }
.menu__nav a:active { color: var(--orange); }
.menu__pied { color: var(--encre-2); }
.menu .statut__point { background: var(--blanc-casse); }

/* Tablette et mobile : logo, bouton brief, menu */
@media (max-width: 1023px) {
  .entete__barre { display: flex; justify-content: space-between; gap: 12px; }
  .entete__nav, .entete__statut { display: none; }
  .entete__droite { gap: 8px; }
  .entete__menu { display: inline-flex; }
}
@media (max-width: 767px) {
  .entete__barre { padding-block: 14px; }
  .entete__logo { gap: 10px; }
  .entete__logo .logo__icone { width: 28px; height: 28px; }
  .entete__nom { display: none; }
  .entete__brief { gap: 8px; padding: 0 16px; font-size: 12px; }
  .entete__brief .point { width: 6px; height: 6px; box-shadow: 0 0 8px rgba(255, 85, 0, 0.6); }
}

/* ---- sections/hero.css ---- */
/* Hero : fond clair, objets 3D, la nuit tombe au défilement */

.hero {
  --hh: max(100svh, 640px);                                   /* hauteur visible à l'arrivée */
  --u: min(calc(min(100vw, 1920px) / 1440), calc(var(--hh) / 900)); /* 1 px de maquette */
  position: relative; z-index: 1; overflow: hidden;
  height: calc(var(--hh) + var(--chevauche));                 /* le Manifeste commence sous le bord de l'écran */
  background: var(--fond); color: var(--encre);
}

/* Quadrillage qui s'efface vers les bords */
.hero__grille {
  position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M.5 0V40M0 .5H40' fill='none' stroke='%23E5E3DE'/%3E%3Cpath fill='%23D1CFCB' d='M0 0h2v2H0zM39 0h1v2h-1zM0 39h2v1H0zM39 39h1v1h-1z'/%3E%3C/svg%3E");
  background-size: 40px 40px; background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(62% 62% at 50% 45%, #000 0%, rgba(0,0,0,.85) 45%, transparent 100%);
  mask-image: radial-gradient(62% 62% at 50% 45%, #000 0%, rgba(0,0,0,.85) 45%, transparent 100%);
}
/* Quadrillage en négatif pour la nuit : même écart de contraste que le jour, mais clair sur sombre */
.hero__grille--nuit {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M.5 0V40M0 .5H40' fill='none' stroke='%23222120'/%3E%3Cpath fill='%23383634' d='M0 0h2v2H0zM39 0h1v2h-1zM0 39h2v1H0zM39 39h1v1h-1z'/%3E%3C/svg%3E");
  opacity: 0;
}
/* Lueur posée au bord haut du Manifeste (ombre inversée), visible seulement la nuit */
.hero__lueur {
  position: absolute; z-index: 1; left: 0; right: 0; top: var(--hh); height: 200px; pointer-events: none;
  border-radius: var(--rayon-feuille) var(--rayon-feuille) 0 0;
  box-shadow: 0 -20px 50px rgba(240, 238, 233, 0.08);
  opacity: 0;
}
@media (max-width: 767px) { .hero__lueur { box-shadow: 0 -16px 40px rgba(240, 238, 233, 0.08); } }
/* La nuit : un calque sombre dont seule l'opacité change */
.hero__nuit { position: absolute; inset: 0; background: var(--noir); opacity: 0; pointer-events: none; }

/* Objets */
.hero__objets { position: absolute; z-index: 2; left: 0; right: 0; top: 0; height: var(--hh); max-width: var(--contenu); margin-inline: auto; }
.objet {
  position: absolute; left: var(--l); top: var(--t);
  width: max(calc(var(--w) * var(--u)), calc(var(--w) * 0.5px));
  height: max(calc(var(--h) * var(--u)), calc(var(--h) * 0.5px));
  will-change: transform;
  /* Écartement au survol d'un voisin : propriété translate, indépendante de la parallaxe (transform) */
  transition: translate 0.6s var(--courbe-orage);
}
.objet--survol { z-index: 2; }
.objet__forme {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  border-radius: var(--rad); rotate: var(--r);
  box-shadow: 0 30px 60px rgba(17, 17, 17, 0.16);
  transition: scale 0.5s var(--courbe-orage);
}
.objet--survol .objet__forme { scale: 1.18; }
.objet--clair .objet__forme { background: radial-gradient(circle at 35% 28%, #fff, #e5e3de 60%, #d1cfcb); color: #63605b; }
.objet--sombre .objet__forme { background: radial-gradient(circle at 35% 28%, #4a4a4a, #1e1e1e 60%, #0b0b0b); color: #8c8984; }
.objet:focus-visible { outline: none; }
.objet:focus-visible .objet__forme { outline: 2px solid var(--orange); outline-offset: 4px; }
.objet__legende { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Titre et coins : ancrés au bas de l'écran, distances proportionnelles à sa hauteur */
.hero__contenu { position: absolute; z-index: 3; inset: 0 0 var(--chevauche); pointer-events: none; }
.hero__contenu--nuit { opacity: 0; }
.hero__texte {
  position: absolute; left: 50%; bottom: calc(var(--hh) * 150 / 900); transform: translateX(-50%);
  width: min(920px, 90%); text-align: center; display: flex; flex-direction: column; gap: 16px;
}
.hero__titre { font-size: clamp(32px, 3.4vw, 48px); font-weight: 850; line-height: 1.05; letter-spacing: -0.02em; text-transform: uppercase; }
.hero__sous-titre { font-size: 20px; line-height: 1.45; color: var(--encre-2); }
.hero__coins {
  position: absolute; left: 0; right: 0; bottom: calc(var(--hh) * 72 / 900);
  max-width: var(--contenu); margin-inline: auto; padding-inline: var(--marge);
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; line-height: 1.6;
}
.hero__coin-mobile { display: none; }
.hero__defiler { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.hero__defiler span { display: block; width: 1px; height: 36px; background: linear-gradient(currentColor, transparent); }

/* Interrupteur jour / nuit : sur le bord gauche, entre les objets */
.bascule {
  position: absolute; z-index: 4; left: max(var(--marge), calc((100% - var(--contenu)) / 2 + var(--marge)));
  top: calc(var(--hh) * 0.52);
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0; border: 0; background: none;
  font-size: var(--texte-label); font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  color: #63605b; transition: color 0.4s;
}
.bascule__piste {
  position: relative; width: 44px; height: 24px; border-radius: var(--radius-pill);
  background: transparent; box-shadow: inset 0 0 0 1px #8a867f; transition: box-shadow 0.4s, background-color 0.4s;
}
.bascule__bouton {
  position: absolute; left: 4px; top: 4px; width: 16px; height: 16px; border-radius: var(--radius-pill);
  background: var(--noir); transition: transform 0.4s var(--courbe-orage), background-color 0.4s, box-shadow 0.4s;
}
.bascule[aria-checked="true"] .bascule__bouton {
  transform: translateX(20px); background: var(--blanc-casse);
  box-shadow: 0 0 0 2px var(--sun-glare), 0 0 10px rgba(221, 255, 0, 0.6);
}
.hero--nuit .bascule { color: #8c8984; }
.hero--nuit .bascule__piste { box-shadow: inset 0 0 0 1px #6a6a6a; }
.hero--nuit .bascule__bouton { background: var(--blanc-casse); }
@media (hover: hover) { .bascule:hover { color: var(--orange); } }
.bascule:focus-visible { outline: none; }
.bascule:focus-visible .bascule__piste { outline: 2px solid var(--orange); outline-offset: 3px; }
.curseur-fin .hero .bascule { cursor: none; }

/* Transition douce quand on clique sur l'interrupteur (au défilement, la nuit suit le scroll sans délai) */
.hero--fondu .hero__nuit, .hero--fondu .hero__grille, .hero--fondu .hero__lueur, .hero--fondu .hero__contenu { transition: opacity 0.7s var(--courbe-orage); }

/* Version nuit du texte (clone créé par hero.js) */
.hero__contenu--nuit .hero__titre { color: var(--blanc-casse); }
.hero__contenu--nuit .hero__sous-titre { color: #bdbab3; }
.hero__contenu--nuit .label { color: #8c8984; }
.hero__contenu--nuit .statut__point { background: var(--blanc-casse); }

/* Curseur maison : pointeur fin seulement. Taille par transform (12 px au repos, 104 px sur un objet) */
.hero__curseur { display: none; }
.curseur-fin .hero { cursor: none; }
.curseur-fin .hero a { cursor: none; }
.curseur-fin .hero__curseur {
  display: block; position: fixed; z-index: 60; left: 0; top: 0; width: 104px; height: 104px; margin: -52px 0 0 -52px;
  pointer-events: none; opacity: 0; transition: opacity 0.2s; will-change: transform;
}
.hero__curseur-rond {
  width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  border-radius: var(--radius-pill); background: var(--noir); color: var(--blanc-casse);
  box-shadow: 0 0 0 1px rgba(240, 238, 233, 0.25);
  font-size: 10px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; text-align: center;
  scale: 0.1154; transition: scale 0.25s var(--courbe-orage);
}
.hero__curseur-rond > span { opacity: 0; transition: opacity 0.2s; }
/* La nuit, le curseur passe en négatif : rond clair, texte sombre */
.hero__curseur-rond { transition: scale 0.25s var(--courbe-orage), background-color 0.3s, color 0.3s, box-shadow 0.3s; }
.hero--nuit .hero__curseur-rond { background: var(--blanc-casse); color: var(--noir); box-shadow: 0 0 0 1px rgba(17, 17, 17, 0.25); }
.hero--nuit .hero__curseur-cat { color: #63605b; }
.hero__curseur-cat { color: #8c8984; padding-inline: 8px; }
.hero__curseur--visible { opacity: 1 !important; }
.hero__curseur--chaud .hero__curseur-rond { scale: 1; }
.hero__curseur--chaud .hero__curseur-rond > span { opacity: 1; }

/* Mobile : maquette à 390 × 844, cinq objets légendés */
@media (max-width: 767px) {
  .hero { --um: min(calc(100vw / 390), calc(var(--hh) / 844)); }
  .hero__grille { background-size: 32px 32px; -webkit-mask-image: radial-gradient(70% 70% at 50% 40%, #000 0%, rgba(0,0,0,.85) 45%, transparent 100%); mask-image: radial-gradient(70% 70% at 50% 40%, #000 0%, rgba(0,0,0,.85) 45%, transparent 100%); }
  .objet.objet--bureau { display: none; }
  .objet {
    left: var(--ml); top: var(--mt); width: calc(var(--mw) * var(--um)); height: auto;
    display: flex; flex-direction: column; align-items: center; gap: 8px;
  }
  .objet__forme {
    position: relative; inset: auto; width: 100%; height: calc(var(--mh) * var(--um));
    border-radius: var(--mrad); rotate: var(--mr); box-shadow: 0 20px 40px rgba(17, 17, 17, 0.16);
  }
  .objet__forme .slot__label { font-size: 9px; font-weight: 600; letter-spacing: 0.06em; padding: 8px; }
  .objet__legende {
    position: static; width: auto; height: auto; overflow: visible; clip: auto;
    font-size: 10px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: #63605b;
  }
  .hero__texte { left: 20px; right: 20px; width: auto; transform: none; bottom: calc(var(--hh) * 120 / 844); gap: 12px; }
  .bascule { left: 20px; top: calc(var(--hh) * 0.37); font-size: 10px; }
  .hero__titre { font-size: 26px; }
  .hero__sous-titre { font-size: 16px; }
  .hero__coins { bottom: calc(var(--hh) * 40 / 844); font-size: 10px; }
  .hero__coin-bureau, .hero__defiler { display: none; }
  .hero__coin-mobile { display: block; }
  .hero__coin-mobile .statut { gap: 6px; }
  .hero__coin-mobile .statut__point { width: 6px; height: 6px; box-shadow: 0 0 0 2px var(--sun-glare), 0 0 8px rgba(221, 255, 0, 0.6); }
}

/* ---- sections/projets-bande.css ---- */
/* Bandeau de projets sous le hero : commence pile au bord bas de l'écran, invisible à l'arrivée */

.bande {
  position: relative; z-index: 2; overflow: hidden;
  margin-top: calc(-1 * var(--chevauche));          /* recouvre la marge basse du hero : démarre au bord de l'écran */
  padding-bottom: var(--chevauche);                 /* le Manifeste se pose dessus sans cacher les tuiles */
  background: var(--fond); color: var(--encre);
}

/* Apparition au défilement (classe posée par projets-bande.js) */
.js .bande__contenu { opacity: 0; transform: translateY(32px); transition: opacity 0.8s var(--courbe-orage), transform 0.9s var(--courbe-orage); }
.js .bande--visible .bande__contenu { opacity: 1; transform: none; }

.bande__piste { display: flex; width: max-content; height: 200px; animation: defile 60s linear infinite; }
.bande:hover .bande__piste, .bande:focus-within .bande__piste { animation-play-state: paused; }

.tuile {
  position: relative; flex: 0 0 300px; height: 200px; overflow: hidden;
  display: flex; align-items: center; justify-content: center; color: var(--encre-3);
}
.tuile__media {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 35% 28%, #3a3a3a, #1c1c1c 62%, #0c0c0c);
}
.tuile__media .slot__label { font-size: 10px; font-weight: 500; }
.tuile__media .slot__media { position: absolute; inset: 0; object-fit: cover; }
.tuile__legende {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 32px 14px 12px; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.75)); color: var(--encre);
  opacity: 0; transition: opacity 0.25s;
}
.tuile:hover .tuile__legende, .tuile:focus-visible .tuile__legende { opacity: 1; }
.tuile:focus-visible { outline: 2px solid var(--orange); outline-offset: -2px; }
.tuile__titre { font-size: 13px; font-weight: 500; }
.tuile__cat { font-size: 11px; color: #b5b2ad; white-space: nowrap; }

@media (max-width: 767px) {
  .bande__piste { height: 140px; animation-duration: 45s; }
  .tuile { flex-basis: 210px; height: 140px; }
}

/* Mouvement réduit : pas de défilement automatique, le bandeau se parcourt à la main */
@media (prefers-reduced-motion: reduce) {
  .bande__contenu { overflow-x: auto; }
  .js .bande__contenu { opacity: 1; transform: none; }
}

/* ---- sections/manifeste.css ---- */
/* Manifeste : la phrase s'allume mot à mot, bandeau des références */

.manifeste {
  z-index: 5; padding-top: var(--section-haut); padding-bottom: 56px;
  box-shadow: 0 -20px 50px rgba(17, 17, 17, 0.25);
}

/* Colonnes de la grille, en filets très discrets */
.colonnes { position: absolute; inset: 0; left: 0; right: 0; pointer-events: none; }
.colonnes__grille { height: 100%; }
.colonnes__grille span { border-left: 1px solid #1e1e1e; }
.colonnes__grille span:last-child { border-right: 1px solid #1e1e1e; }
@media (max-width: 1023px) { .colonnes__grille span:nth-child(n+9) { display: none; } .colonnes__grille span:nth-child(8) { border-right: 1px solid #1e1e1e; } }
@media (max-width: 767px)  { .colonnes__grille span:nth-child(n+5) { display: none; } .colonnes__grille span:nth-child(4) { border-right: 1px solid #1e1e1e; } }

/* Croix de repère sur le filet du haut */
.repere {
  position: absolute; z-index: 2; top: 0; width: 13px; height: 13px; transform: translate(-50%, -50%);
  background: linear-gradient(#6a6a6a, #6a6a6a) center / 1px 100% no-repeat, linear-gradient(#6a6a6a, #6a6a6a) center / 100% 1px no-repeat;
}
.repere--g { left: 0.5px; }
.repere--4 { left: calc((100% + var(--gouttiere)) / 4 + 0.5px); }
.repere--d { left: calc(100% - 0.5px); }

.manifeste__haut, .manifeste__refs { position: relative; }
.manifeste__rangee { position: relative; border-top: 1px solid var(--filet); padding-top: 32px; }
.manifeste__labels { grid-column: 1 / span 3; display: flex; flex-direction: column; gap: 10px; }
.manifeste__titre { font: inherit; }
.manifeste__phrase {
  grid-column: 4 / span 9;
  font-size: clamp(36px, 4.4vw, 64px); line-height: 1.12; font-weight: 400; letter-spacing: -0.03em;
}
.manifeste__accent { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 8px; }

/* Mots allumés au défilement (opacité seulement : 0.18 sur le fond = #3A3A3A de la maquette) */
.mot { opacity: 0.18; transition: opacity var(--duree-mot) var(--courbe-orage); }
.mot--on { opacity: 1; }

/* Références */
.manifeste__refs { margin-top: clamp(96px, 14vw, 230px); }
.manifeste__refs-filet { border-top: 1px solid var(--filet); padding-top: 32px; }
.manifeste__refs .label { margin-bottom: 20px; }
.bandeau {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.bandeau__piste {
  display: flex; align-items: center; width: max-content; margin: 0; padding: 0; list-style: none;
  animation: defile 45s linear infinite;
}
.bandeau:hover .bandeau__piste { animation-play-state: paused; }
.bandeau__piste li {
  padding: 0 44px; font-size: 32px; font-weight: 500; letter-spacing: -0.02em; white-space: nowrap;
  color: #6a6a6a; transition: color 0.25s;
}
.bandeau__piste li:hover { color: var(--encre); }
@keyframes defile { from { transform: translateX(0); } to { transform: translateX(-50%); } }

@media (max-width: 1023px) {
  .manifeste__labels { grid-column: 1 / span 2; }
  .manifeste__phrase { grid-column: 3 / span 6; }
  .repere--4 { display: none; }
}
@media (max-width: 767px) {
  .manifeste { box-shadow: 0 -16px 40px rgba(0, 0, 0, 0.55); }
  .repere { width: 11px; height: 11px; }
  .manifeste__rangee { display: block; padding-top: 24px; }
  .manifeste__labels { flex-direction: row; justify-content: space-between; }
  .manifeste__metier { display: none; }
  .manifeste__phrase { margin-top: 32px; font-size: 30px; line-height: 1.15; }
  .manifeste__accent { text-underline-offset: 6px; }
  .manifeste__refs { margin-top: 96px; }
  .manifeste__refs-filet { padding-top: 24px; }
  .manifeste__refs .label { margin-bottom: 16px; }
  .bandeau { -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
  .bandeau__piste { animation-duration: 36s; }
  .bandeau__piste li { padding: 0 24px; font-size: 22px; }
}

/* ---- sections/offres.css ---- */
/* Offres : cartes portrait qui se fendent en éclair (artboard « Offres B ») */

.offres { z-index: 6; padding-bottom: var(--respire-bas); }
.offres__tete { align-items: start; padding-top: var(--respire-haut); padding-bottom: clamp(64px, 6.5vw, 96px); }
.offres__label { grid-column: 1 / span 3; }
.offres__titre { grid-column: 4 / span 9; font-size: clamp(40px, 4.4vw, 64px); font-weight: 500; line-height: 1; letter-spacing: -0.03em; }

.offres__cartes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }

.carte { position: relative; display: block; aspect-ratio: 3 / 4; perspective: 1200px; rotate: var(--rot); color: var(--noir); }
.carte--violet { color: var(--blanc); }
.carte:focus-visible { outline: none; }
.carte:focus-visible .carte__incline { outline: 2px solid var(--orange); outline-offset: 6px; border-radius: 24px; }

.carte__incline { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform 0.18s ease-out; }

/* Dessous : les projets de la catégorie (emplacement 3D) */
.carte__fond {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; overflow: hidden;
  border-radius: 24px; background: radial-gradient(circle at 35% 28%, #3a3a3a, #1c1c1c 62%, #0c0c0c);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55); color: var(--encre-3);
}
.carte__fond .slot__label { font-size: 10px; font-weight: 500; }
.carte__fond .slot__media img { object-fit: cover; }

/* Dessus : la carte de couleur, en deux moitiés découpées en éclair */
.carte__moitie {
  position: absolute; inset: 0; overflow: hidden; border-radius: 24px; background: var(--c);
  transition: transform var(--duree-fente) var(--courbe-orage);
}
.carte--orange { --c: var(--orange); }
.carte--violet { --c: var(--violet); }
.carte--blanc  { --c: var(--blanc-casse); }
.carte--glare  { --c: var(--sun-glare); }
/* Fermée, la moitié gauche reste entière sous la droite : pas de liseré sur la fente.
   Elle n'est découpée qu'à l'ouverture, et le reste jusqu'à la fin de la fermeture. */
.carte--fendue .carte__moitie--g {
  clip-path: polygon(0 0, 100% 0, 100% 0, 100% 100%, 100% 100%, 0 100%);
  transition: transform var(--duree-fente) var(--courbe-orage), clip-path 0s linear var(--duree-fente);
}
.carte--fendue.carte--ouverte .carte__moitie--g {
  clip-path: polygon(0 0, 56% 0, 46% 42%, 58% 47%, 44% 100%, 0 100%);
  transition: transform var(--duree-fente) var(--courbe-orage), clip-path 0s;
}
.carte--fendue .carte__moitie--d { clip-path: polygon(56% 0, 100% 0, 100% 100%, 44% 100%, 58% 47%, 46% 42%); }
.carte--ouverte .carte__moitie--g { transform: translate(-24%, -4%) rotate(-6deg); }
.carte--ouverte .carte__moitie--d { transform: translate(24%, 4%) rotate(6deg); }

.carte__contenu {
  position: absolute; inset: 0; padding: 26px; display: flex; flex-direction: column; justify-content: space-between; gap: 20px;
}
.carte__tag { display: flex; align-items: center; gap: 12px; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.carte__num { border: 1.5px solid currentColor; border-radius: var(--radius-pill); padding: 6px 12px; }
.carte__titre { font-size: clamp(26px, 2.5vw, 36px); font-weight: 850; line-height: 0.98; letter-spacing: -0.02em; text-transform: uppercase; }
.carte__texte { font-size: 15px; line-height: 1.5; font-weight: 500; }

/* Reflet qui suit le curseur (déplacé par transform) */
.carte__reflet {
  position: absolute; left: -50%; top: -50%; width: 100%; height: 100%; pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 50%);
  mix-blend-mode: soft-light; opacity: 0; transition: opacity var(--duree-survol);
}
.carte--survol .carte__reflet { opacity: 1; }

/* Tablette : deux colonnes */
@media (max-width: 1023px) {
  .offres__label { grid-column: 1 / span 2; }
  .offres__titre { grid-column: 3 / span 6; }
  .offres__cartes { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
}

/* Mobile : les cartes s'empilent au défilement et chacune se fend en arrivant sur la pile */
@media (max-width: 767px) {
  .offres { padding-bottom: var(--respire-bas); }
  .offres__tete { display: block; padding-bottom: 40px; }
  .offres__label { margin-bottom: 20px; }
  .offres__titre { font-size: 34px; }
  .offres__cartes { display: block; padding-top: 16px; padding-bottom: 120px; }
  .carte {
    position: sticky; top: calc(var(--entete-h) + 8px + var(--i, 0) * 48px);
    aspect-ratio: auto; height: 300px; margin: 0 6px 220px; rotate: var(--mrot);
  }
  .carte:last-child { margin-bottom: 0; }
  .carte:nth-child(2) { --i: 1; }
  .carte:nth-child(3) { --i: 2; }
  .carte:nth-child(4) { --i: 3; }
  .carte__fond, .carte__moitie { border-radius: 20px; }
  .carte__fond { box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5); }
  .carte__contenu { padding: 22px; gap: 14px; }
  .carte__tag { gap: 10px; font-size: 10px; }
  .carte__num { padding: 5px 10px; }
  .carte__titre { font-size: 30px; max-width: 280px; }
  .carte__texte { font-size: 14px; max-width: 300px; }
  .carte--ouverte .carte__moitie--g { transform: translate(-20%, -4%) rotate(-5deg); }
  .carte--ouverte .carte__moitie--d { transform: translate(20%, 4%) rotate(5deg); }
}

/* ---- sections/methode.css ---- */
/* Méthode : l'éclair pousse au défilement, l'étape reste à l'écran (artboard « Méthode C ») */

.methode { z-index: 7; height: 300svh; }
.methode__scene { position: sticky; top: 0; height: 100svh; min-height: 560px; overflow: hidden; }
.methode__haut { position: absolute; left: 0; right: 0; top: var(--section-haut); display: flex; justify-content: space-between; }
.methode__titre { font: inherit; }

/* Éclair : tracés de la maquette, dessinés par stroke-dashoffset */
.eclair { position: absolute; overflow: visible; }
.eclair path { stroke-dasharray: 1 1; }
.eclair--bureau { left: 50%; top: calc(100% * 20 / 900); height: calc(100% * 860 / 900); width: auto; aspect-ratio: 200 / 860; transform: translateX(-50%); }
.eclair--mobile { display: none; }
.eclair__noeud {
  fill: #f5f9ff; filter: drop-shadow(0 0 8px rgba(191, 214, 255, 0.9));
  transform-box: fill-box; transform-origin: center; transform: scale(0);
  transition: transform 0.35s var(--courbe-orage);
}
.eclair__noeud.on { transform: scale(1); }
.eclair__noeud.frais { transform: scale(2); }

/* Étapes */
.methode__etapes { margin: 0; padding: 0; list-style: none; }
.etape { position: absolute; max-width: calc(50% - 72px - var(--marge)); color: #3a3a3a; transition: color 0.35s; }
.etape--1 { right: calc(50% + 72px); top: calc(100% * 238 / 900); text-align: right; }
.etape--2 { left: calc(50% + 72px); top: calc(100% * 528 / 900); }
.etape--3 { right: calc(50% + 72px); top: calc(100% * 640 / 900); text-align: right; }
.etape__num { margin-bottom: 8px; font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; transition: color 0.35s; }
.etape__titre { font-size: clamp(32px, 3.4vw, 48px); font-weight: 500; letter-spacing: -0.03em; line-height: 1; }
.etape__info {
  display: inline-block; max-width: 360px; margin-top: 18px; font-size: 14px; line-height: 1.5; color: var(--encre-3);
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.5s 0.15s, transform 0.6s 0.15s var(--courbe-orage);
}
.etape__info strong { display: block; margin-bottom: 4px; font-size: 16px; font-weight: 500; color: var(--encre); }
.etape__point { display: none; }
.etape.on { color: var(--encre); }
.etape.on .etape__num { color: var(--orange); }
.etape.on .etape__info { opacity: 1; transform: none; }

/* Mouvement réduit : tout est affiché, pas d'épinglage */
@media (prefers-reduced-motion: reduce) {
  .methode { height: auto; }
  .methode__scene { position: relative; height: 900px; max-height: 100svh; min-height: 640px; }
}

/* Tablette : l'éclair passe à gauche, les étapes en colonne à sa droite (comme sur mobile) */
@media (max-width: 1023px) {
  .eclair--bureau { display: none; }
  .eclair--mobile { display: block; left: var(--marge); top: calc(100% * 140 / 860); height: calc(100% * 640 / 860); width: auto; aspect-ratio: 130 / 640; }
  .etape { left: calc(var(--marge) + 160px); right: var(--marge); max-width: 560px; text-align: left; }
  .etape--1 { top: calc(100% * 306 / 860); }
  .etape--2 { top: calc(100% * 526 / 860); }
  .etape--3 { top: calc(100% * 690 / 860); }
  .eclair__noeud { filter: drop-shadow(0 0 6px rgba(191, 214, 255, 0.9)); }
}

/* Mobile : maquette à 390 × 860 */
@media (max-width: 767px) {
  .methode { height: 250svh; }
  .methode__haut { top: 80px; }
  .eclair--mobile { left: 10px; }
  .etape { left: 150px; right: 20px; }
  .etape__num { margin-bottom: 4px; font-size: 10px; }
  .etape__titre { font-size: 23px; line-height: 1.08; }
  .etape__info { margin-top: 8px; font-size: 13px; line-height: 1.45; }
  .etape__info strong { display: inline; margin: 0; font-size: inherit; font-weight: 400; }
  .etape__point { display: inline; }
}

/* ---- sections/studio.css ---- */
/* Studio : la tête 3D suit le curseur (le défilement sur mobile), fiche de Mathieu */

.studio { z-index: 8; padding-top: var(--respire-haut); padding-bottom: var(--respire-bas); }
.studio__label { position: relative; z-index: 1; color: #63605b; }

/* « Derrière l'orage. » qui défile en fond */
.studio__defile { position: absolute; left: 0; right: 0; top: calc(var(--respire-haut) + 30px); overflow: hidden; pointer-events: none; }
.studio__piste { display: flex; width: max-content; animation: defile 32s linear infinite; }
.studio__piste span { padding-right: 80px; white-space: nowrap; font-size: clamp(72px, 9.72vw, 187px); font-weight: 500; letter-spacing: -0.05em; line-height: 1; color: #e3e1dc; }

.studio__corps { position: relative; align-items: center; margin-top: clamp(48px, 5.5vw, 80px); }
.studio__tete { grid-column: 1 / span 5; display: flex; flex-direction: column; align-items: center; gap: 28px; }
.studio__texte { grid-column: 7 / span 6; position: relative; }

/* Tête : placeholder dessiné tant que la séquence de rendus n'est pas branchée */
.tete { --taille: clamp(260px, 26vw, 380px); position: relative; width: var(--taille); height: var(--taille); perspective: 900px; }
.tete__visage {
  position: absolute; inset: 0; border-radius: 50%; display: flex; align-items: flex-end; justify-content: center;
  background: radial-gradient(circle at 38% 30%, #4a4a4a, #1e1e1e 58%, #0b0b0b);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.3); color: #8c8984;
  transform-style: preserve-3d; transition: transform 0.25s ease-out; will-change: transform;
}
.tete__visage .slot__label { margin-bottom: 14%; font-size: 10px; font-weight: 500; padding: 0; transform: translateZ(20px); white-space: nowrap; }
.tete__oeil {
  position: absolute; top: 40%; width: 15%; height: 15%; border-radius: 50%; background: var(--blanc-casse);
  display: flex; align-items: center; justify-content: center; transform: translateZ(30px);
}
.tete__oeil--g { left: 27%; }
.tete__oeil--d { right: 27%; }
.tete__pupille { width: 36%; height: 36%; border-radius: 50%; background: var(--noir); transition: transform 0.15s ease-out; }
.tete__visage:has(.slot__media) .tete__oeil { display: none; }
.tete__visage:has(.slot__media) { background: none; box-shadow: none; border-radius: 0; }
.tete__ombre { display: block; width: 240px; height: 18px; border-radius: 50%; background: rgba(17, 17, 17, 0.18); filter: blur(8px); }

/* Fiche */
.studio__titre { font-size: clamp(36px, 3.6vw, 52px); font-weight: 500; line-height: 1; letter-spacing: -0.03em; }
.fiche { margin: 36px 0; border-top: 1px solid #d1cfcb; }
.fiche > div { display: grid; grid-template-columns: 120px 1fr; gap: 24px; padding: 16px 0; border-bottom: 1px solid #d1cfcb; }
.fiche dt { padding-top: 3px; color: #63605b; }
.fiche dd { margin: 0; font-size: 17px; }

.studio__reseaux { display: none; }
.studio__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.studio__cv { color: var(--noir); }

/* Tablette et mobile : tête centrée, texte dessous */
@media (max-width: 1023px) {
  .studio__corps { display: flex; flex-direction: column; align-items: stretch; }
  .studio__tete { align-self: center; }
  .studio__texte { width: 100%; max-width: 640px; align-self: center; margin-top: 36px; }
}
@media (max-width: 767px) {
  .studio { padding-bottom: var(--respire-bas); }
  .studio__defile { top: calc(var(--respire-haut) + 28px); }
  .studio__piste { animation-duration: 24s; }
  .studio__piste span { padding-right: 40px; font-size: 72px; }
  .studio__corps { margin-top: 20px; }
  .studio__tete { gap: 0; }
  .tete { --taille: 220px; }
  .tete__visage { box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3); transform: rotateY(-14deg) rotateX(4deg); }
  .tete__visage .slot__label { font-size: 8px; white-space: normal; max-width: 70%; }
  .tete__ombre { width: 140px; height: 12px; margin-top: 18px; filter: blur(6px); }
  .studio__texte { margin-top: 36px; }
  .studio__titre { font-size: 30px; }
  .fiche { margin: 24px 0 28px; }
  .fiche > div { grid-template-columns: 84px 1fr; gap: 16px; padding: 14px 0; }
  .fiche dd { font-size: 16px; }
  .studio__reseaux { display: block; }
  .studio__reseaux .label { margin-bottom: 4px; color: #63605b; }
  .studio__reseaux nav { display: flex; flex-direction: column; border-top: 1px solid #d1cfcb; }
  .studio__reseaux a {
    display: flex; justify-content: space-between; align-items: center; min-height: 52px; border-bottom: 1px solid #d1cfcb;
    font-size: 24px; font-weight: 500; letter-spacing: -0.02em;
  }
  .studio__reseaux a::after { display: none; }
  .studio__reseaux a span { font-size: 18px; }
  .studio__actions { flex-wrap: nowrap; gap: 10px; margin-top: 24px; }
  .studio__actions .btn { min-height: 52px; }
  .studio__ecrire { order: 1; flex: 1; }
  .studio__cv { order: 2; padding: 0 20px; box-shadow: inset 0 0 0 1px #bdbab3; }
  .studio__cv-long { display: none; }
}

/* ---- sections/contact.css ---- */
/* Contact : la phrase à trous prépare le mail, l'aperçu se remplit pendant la saisie */

.contact { z-index: 9; padding-top: var(--respire-haut); padding-bottom: var(--respire-bas); }
.contact__titre { padding-bottom: clamp(64px, 6.5vw, 96px); }
.contact__grille { row-gap: 40px; align-items: start; }

.contact__phrase { grid-column: 1 / span 6; font-size: clamp(28px, 2.8vw, 40px); font-weight: 500; line-height: 1.35; letter-spacing: -0.02em; }
.champ { display: inline-block; max-width: 100%; }
.champ input {
  max-width: 100%; min-width: 3ch; margin: 0 4px; padding: 0 4px;
  font: inherit; color: inherit; background: transparent;
  border: 0; border-bottom: 1.5px solid var(--orange); border-radius: 0;
  field-sizing: content;
}
.champ input::placeholder { color: inherit; opacity: 0.35; }
.champ input:focus { outline: none; border-bottom-color: var(--sun-glare); }
.champ input:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; }

.apercu {
  grid-column: 8 / span 5; grid-row: 1 / span 3; rotate: 1.5deg;
  padding: 28px; border-radius: 20px; background: var(--fond-2);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 40px 80px rgba(0, 0, 0, 0.5);
  font-size: 15px; line-height: 1.6;
}
.apercu__tete { display: grid; grid-template-columns: 64px 1fr; gap: 10px 16px; padding-bottom: 18px; border-bottom: 1px solid var(--filet); }
.apercu__tete .label { padding-top: 3px; }
.apercu__ligne { margin-top: 12px; color: var(--encre-2); }
.apercu__tete + div .apercu__ligne:first-child { margin-top: 18px; }
.apercu__note { color: #63605b; }
[data-apercu] { color: #63605b; }
[data-apercu].rempli { color: var(--encre); }

.contact__actions { grid-column: 1 / span 6; display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.contact__rassure { font-size: 14px; color: var(--encre-3); }

.contact__direct { grid-column: 1 / span 6; display: flex; flex-direction: column; gap: 12px; padding-top: 24px; border-top: 1px solid var(--filet); }
.contact__adresse { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.contact__adresse a { font-size: clamp(22px, 2vw, 28px); font-weight: 500; letter-spacing: -0.01em; user-select: all; }
.contact__copier { padding: 0 18px; font-size: 12px; font-weight: 500; color: var(--encre-2); box-shadow: inset 0 0 0 1px #3a3a3a; }
@media (hover: hover) { .contact__copier:hover { box-shadow: inset 0 0 0 1px var(--encre-3); color: var(--encre); } }

/* Tablette et mobile : une colonne, l'aperçu sous la phrase (ordre de la maquette mobile) */
@media (max-width: 1023px) {
  .contact__grille { display: flex; flex-direction: column; align-items: stretch; gap: 24px; }
  .contact__phrase { order: 1; }
  .apercu { order: 2; rotate: none; }
  .contact__actions { order: 3; flex-direction: column; align-items: stretch; gap: 16px; }
  .contact__actions .btn { width: 100%; }
  .contact__rassure { text-align: center; font-size: 13px; }
  .contact__direct { order: 4; padding-top: 22px; }
}
@media (max-width: 767px) {
  .contact { padding-bottom: var(--respire-bas); }
  .contact__titre { padding-bottom: 40px; }
  .contact__phrase { font-size: 26px; line-height: 1.45; }
  .champ input { margin: 0 2px; padding: 0 2px; }
  .apercu { padding: 22px; border-radius: 18px; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 24px 50px rgba(0, 0, 0, 0.5); }
  .apercu__tete { grid-template-columns: 60px 1fr; gap: 8px 12px; padding-bottom: 16px; }
  .apercu__ligne { margin-top: 10px; }
  .apercu__tete + div .apercu__ligne:first-child { margin-top: 16px; }
  .contact__adresse { gap: 10px 14px; }
  .contact__adresse a { font-size: 20px; }
}

/* ---- sections/pied.css ---- */
/* Pied de page : plan du site, réseaux, contact, le nom en très grand */

.pied { position: relative; z-index: 10; overflow: hidden; background: var(--fond); color: var(--encre); }
.pied__haut { align-content: start; padding-top: 64px; padding-bottom: 96px; border-top: 1px solid var(--filet); }
.pied__marque { grid-column: 1 / span 4; display: flex; flex-direction: column; gap: 18px; }
.pied__logo { align-self: flex-start; min-height: 0; color: var(--encre); font-size: 17px; font-weight: 500; letter-spacing: -0.01em; }
.pied__logo .logo__icone { width: 30px; height: 30px; }
.pied__marque p { max-width: 300px; font-size: 14px; line-height: 1.55; color: var(--encre-3); }
.pied__col { display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.pied__col .label { margin-bottom: 6px; }
.pied__col a { align-self: flex-start; }
.pied__site { grid-column: 6 / span 2; }
.pied__reseaux { grid-column: 8 / span 2; }
.pied__contact { grid-column: 10 / span 3; }
.pied__ville { color: var(--encre-2); }

.pied__bas {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px;
  padding: 24px 0 32px; border-top: 1px solid var(--filet);
}
.pied__liens { display: flex; gap: 24px; }
.pied__haut-page { color: var(--encre); }
.pied__haut-court { display: none; }
.pied__credits { margin-top: -16px; padding-bottom: 24px; font-size: 11px; line-height: 1.5; color: var(--encre-3); }
.pied__credits a { color: inherit; }

.pied__nom {
  margin: 8px 0 -0.24em; white-space: nowrap;
  font-size: min(14vw, 268.8px); font-weight: 500; line-height: 1; letter-spacing: -0.06em;
}

@media (max-width: 1023px) {
  .pied__marque { grid-column: 1 / -1; margin-bottom: 24px; }
  .pied__site { grid-column: 1 / span 2; }
  .pied__reseaux { grid-column: 3 / span 3; }
  .pied__contact { grid-column: 6 / span 3; }
}
@media (max-width: 767px) {
  .pied__haut { display: flex; flex-direction: column; gap: 36px; padding-top: 48px; padding-bottom: 48px; }
  .pied__marque { gap: 12px; margin: 0; }
  .pied__logo { gap: 10px; font-size: 16px; }
  .pied__logo .logo__icone { width: 28px; height: 28px; }
  .pied__site, .pied__reseaux { gap: 10px; }
  .pied__col .label { margin-bottom: 4px; }
  /* Site et Réseaux côte à côte, Contact dessous */
  .pied__haut { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 16px; }
  .pied__marque, .pied__contact { grid-column: 1 / -1; }
  .pied__site { grid-column: 1; }
  .pied__reseaux { grid-column: 2; }
  .pied__contact { gap: 8px; }
  .pied__bas { flex-direction: column; align-items: flex-start; gap: 10px; padding: 20px 0; font-size: 10px; }
  .pied__liens { gap: 20px; }
  .pied__haut-long { display: none; }
  .pied__haut-court { display: inline; }
  .pied__nom { margin-top: 0; font-size: 16.5vw; }
}

/* ---- motion.css ---- */
/* Mouvement réduit : pas d'animation de défilement, chaque section dans son état final.
   Les modules JS lisent la même préférence et posent directement l'état final. */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important; transition-delay: 0s !important;
  }
  .defile { animation: none !important; }
}
