/* =========================================================
   Setsuna Prod · feuille de style
   Univers : noir, crème, kanji, beaucoup d'espace
   Les animations ne s'activent que si le JavaScript tourne
   (classe .anim sur <html>) et si le visiteur n'a pas
   demandé de réduire les mouvements
   ========================================================= */

:root {
  --noir: #000000;
  --noir-2: #0b0b0b;           /* fonds des cadres vides */
  --creme: #F0ECE4;            /* couleur du logo */
  --creme-2: rgba(240, 236, 228, 0.66);  /* texte secondaire */
  --creme-3: rgba(240, 236, 228, 0.36);  /* indications discrètes */
  --filet: rgba(240, 236, 228, 0.14);    /* traits fins */

  /* Textes posés sur les images et les vidéos : toujours crème, quel que soit le mode */
  --lumiere: #F0ECE4;
  --lumiere-2: rgba(240, 236, 228, 0.66);
  --lumiere-3: rgba(240, 236, 228, 0.45);

  /* Police : Jost si elle est installée dans assets/fonts, sinon une géométrique du système */
  --police: "Jost", "Futura", "Avenir Next", "Century Gothic", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --marge: clamp(20px, 5vw, 72px);
  --espace-section: clamp(112px, 16vh, 180px);
  --lent: cubic-bezier(0.2, 0.7, 0.2, 1);       /* sortie douce */
  --volet: cubic-bezier(0.7, 0, 0.2, 1);        /* rideau : départ franc, arrivée douce */
}

/* MODE CLAIR (bouton dans le menu, choix mémorisé dans le navigateur)
   Les deux couleurs de la marque s'inversent : fond crème, texte noir.
   Les variables gardent leur nom (--noir = le fond, --creme = le texte) */
html[data-theme="clair"] {
  --noir: #F0ECE4;
  --noir-2: #E4DED3;
  --creme: #0B0B0B;
  --creme-2: rgba(11, 11, 11, 0.68);
  --creme-3: rgba(11, 11, 11, 0.42);
  --filet: rgba(11, 11, 11, 0.16);
  color-scheme: light;
}
/* Logo et kanji (images crème) passent au noir */
html[data-theme="clair"] .logo img,
html[data-theme="clair"] .entete-kanji img { filter: brightness(0); }

/* Passage d'un mode à l'autre : un fondu enchaîné sur toute la page */
::view-transition-old(root), ::view-transition-new(root) {
  animation-duration: 0.7s;
  animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--noir);
  color-scheme: dark;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--noir);
  color: var(--creme);
  font-family: var(--police);
  font-weight: 400;
  font-size: clamp(16px, 0.5vw + 14px, 18px);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 1px solid var(--creme); outline-offset: 4px; }

::selection { background: var(--creme); color: var(--noir); }

/* Lien d'évitement (clavier) */
.evitement {
  position: absolute; left: var(--marge); top: -100px; z-index: 10;
  padding: 8px 14px; background: var(--creme); color: var(--noir);
}
.evitement:focus { top: 16px; }

/* Petites capitales espacées, comme « SETSUNA PROD » sur le logo */
.metier,
.entete nav a,
.section-titre,
.savoir-faire,
.pied,
.video-texte,
.video-bientot,
.intro-signature,
.contact-liens,
.lecteur-fermer {
  text-transform: uppercase;
  letter-spacing: 0.38em;
  font-size: 0.72rem;
  font-weight: 400;
}

/* ---------- En-tête ---------- */
.entete {
  position: absolute; inset: 0 0 auto 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 28px var(--marge);
}
.entete-kanji img { height: 18px; width: auto; opacity: 0.9; }
.entete nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 44px); }
.entete nav a { color: var(--creme-2); transition: color 0.4s; }
.entete nav a:hover { color: var(--creme); }

/* Bouton mode clair / sombre : un cercle à moitié plein qui pivote */
.theme-bascule {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; margin: -9px -9px -9px 0; padding: 0;
  background: none; border: 0; border-radius: 50%;
  color: var(--creme-2); cursor: pointer; transition: color 0.4s;
}
.theme-bascule:hover { color: var(--creme); }
.theme-icone {
  width: 14px; height: 14px; border-radius: 50%;
  border: 1px solid currentColor;
  background: linear-gradient(90deg, currentColor 50%, transparent 50%);
  transition: transform 0.8s var(--lent);
}
html[data-theme="clair"] .theme-icone { transform: rotate(180deg); }

/* =========================================================
   OUVERTURE
   Un seul réglage pilote tout : --p, de 0 (cadre cinémascope)
   à 1 (plein écran). Le JavaScript le fait varier au défilement
   ========================================================= */
.ouverture { position: relative; }
.ouverture-scene {
  position: relative; height: 100vh; height: 100svh; overflow: hidden;

  --p: 0;
  --H: 100svh;                                   /* hauteur de l'écran */
  --fh: min(41.84vw, 52svh);                     /* hauteur du cadre 2.39 */
  --fw: calc(var(--fh) * 2.39);                  /* largeur du cadre */
  --cy: 60svh;                                   /* centre vertical du cadre */
  /* marges du cadre au départ (0) et à l'arrivée (1) */
  --t0: calc(var(--cy) - var(--fh) / 2);
  --b0: calc(var(--H) - var(--cy) - var(--fh) / 2);
  --l0: calc((100% - var(--fw)) / 2);
  --t1: 0px; --b1: 0px;
  /* marges actuelles */
  --T: calc(var(--t0) + (var(--t1) - var(--t0)) * var(--p));
  --B: calc(var(--b0) + (var(--b1) - var(--b0)) * var(--p));
  --L: calc(var(--l0) * (1 - var(--p)));
  /* les mêmes, mesurées depuis le cadre d'arrivée */
  --Ti: calc(var(--T) - var(--t1));
  --Bi: calc(var(--B) - var(--b1));
}
.anim .ouverture { height: 210vh; height: 210svh; }
.anim .ouverture-scene { position: sticky; top: 0; }

/* L'image occupe le cadre d'arrivée (tout l'écran sur ordinateur, un 4:5 sur téléphone)
   et une découpe l'ouvre peu à peu */
.ouverture-image {
  position: absolute; left: 0; right: 0; top: var(--t1); bottom: var(--b1); z-index: 1; /* passe devant le logo en s'ouvrant */
  clip-path: inset(var(--Ti) var(--L) var(--Bi) var(--L));
  background: var(--noir-2);
}
.ouverture-image img {
  transform: scale(calc(1.16 - 0.16 * var(--p)));
  transform-origin: 50% calc(var(--cy) - var(--t1));
}

.ouverture-titre {
  position: absolute; left: 0; right: 0; top: 0;
  height: var(--t0);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(14px, 2.4vh, 28px);
  padding-top: 56px;   /* place pour le menu */
  opacity: calc(1 - var(--p) * 2.2);
  transform: translate3d(0, calc(var(--p) * -8vh), 0);
}
.logo { margin: 0; }
.logo img { width: auto; height: auto; max-width: clamp(200px, 24vw, 380px); max-height: 16vh; }
.metier { margin: 0; color: var(--creme-2); padding-left: 0.38em; text-align: center; }

.tc {
  position: absolute; margin: 0;
  left: calc(var(--L) + 2px); top: calc(var(--H) - var(--B) + 14px);
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em;
  color: var(--creme-3);
  opacity: calc(1 - var(--p) * 4);
}
.ouverture .video-lecture { inset: var(--Ti) var(--L) var(--Bi) var(--L); }
.ouverture .video.sans-video .video-bientot { right: calc(var(--L) + 24px); bottom: calc(var(--Bi) + 18px); }

/* Apparition depuis le noir au chargement (sans figer l'opacité ensuite) */
@media (prefers-reduced-motion: no-preference) {
  .ouverture-titre, .ouverture-image, .tc, .entete { animation: fondu 1.6s var(--lent) backwards; }
  .ouverture-image { animation-delay: 0.35s; }
  .tc { animation-delay: 0.6s; }
  .entete { animation-delay: 0.9s; }
}
@keyframes fondu { from { opacity: 0; } }

/* =========================================================
   LECTEUR VIDÉO
   Image + bouton : rien n'est chargé chez Vimeo ou YouTube
   avant le clic. La vidéo s'ouvre alors en plein écran
   ========================================================= */
.video {
  position: absolute; inset: 0;
  display: block; width: 100%; height: 100%;
  padding: 0; border: 0; background: var(--noir-2);
  cursor: pointer; overflow: hidden;
}
.video img { width: 100%; height: 100%; object-fit: cover; }
.video-lecture {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center; gap: 18px;
  color: var(--lumiere);
  opacity: 0.9; transition: opacity 0.6s;
}
.video:hover .video-lecture { opacity: 1; }
.video-icone {
  width: 56px; height: 56px; border-radius: 50%;
  border: 1px solid rgba(240, 236, 228, 0.7);
  position: relative;
  backdrop-filter: blur(2px);
  transition: transform 0.6s var(--lent);
}
.video:hover .video-icone { transform: scale(1.08); }
.video-icone::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  transform: translate(-35%, -50%);
  border-style: solid; border-width: 7px 0 7px 12px;
  border-color: transparent transparent transparent var(--lumiere);
}
.video-bientot { display: none; }

/* Vidéo pas encore en ligne : pas de bouton lecture */
.video.sans-video { cursor: default; }
.video.sans-video .video-lecture { display: none; }
.video.sans-video .video-bientot {
  display: block; position: absolute; right: var(--marge); bottom: 18px;
  color: var(--lumiere-2);
}
.projet .video.sans-video .video-bientot { display: none; }

/* Fenêtre plein écran */
.lecteur-voile {
  position: fixed; inset: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center;
  padding: 72px var(--marge) 40px;
  background: rgba(0, 0, 0, 0.96);
  opacity: 0; transition: opacity 0.5s var(--lent);
}
.lecteur-voile.ouvert { opacity: 1; }
.lecteur-cadre {
  position: relative; width: min(100%, calc((100svh - 112px) * 16 / 9));
  aspect-ratio: 16 / 9; background: #000;
  transform: scale(0.97); transition: transform 0.7s var(--lent);
}
.lecteur-voile.ouvert .lecteur-cadre { transform: none; }
.lecteur-cadre iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lecteur-fermer {
  position: absolute; top: 24px; right: var(--marge);
  padding: 8px 0; background: none; border: 0; cursor: pointer;
  color: var(--lumiere-2); transition: color 0.4s;
}
.lecteur-fermer:hover { color: var(--lumiere); }
body.lecteur-actif { overflow: hidden; }

/* ---------- Sections ---------- */
.section { padding: var(--espace-section) var(--marge) 0; max-width: 1440px; margin: 0 auto; }
.section-titre {
  display: flex; align-items: baseline; gap: 20px;
  margin: 0 0 clamp(40px, 7vh, 72px);
  font-size: 0.92rem;
  color: var(--creme-2);
}
.section-titre span { font-family: var(--mono); letter-spacing: 0.1em; color: var(--creme-3); }

/* ---------- Intro : la grande phrase ---------- */
.intro { max-width: 1440px; margin: 0 auto; padding: var(--espace-section) var(--marge) 0; }
.intro-phrase {
  margin: 0; max-width: 17em;
  font-size: clamp(1.75rem, 4.4vw, 4.25rem); line-height: 1.14; letter-spacing: -0.01em; font-weight: 400;
  color: var(--creme-2);
}
.intro-phrase strong { color: var(--creme); font-weight: inherit; }
/* Avec animation : chaque mot s'allume au défilement (opacité réglée par le JavaScript) */
.anim .intro-phrase { color: var(--creme); }
.anim .intro-phrase .mot { opacity: 0.14; transition: opacity 0.25s linear; }
.intro-signature { margin: clamp(28px, 4vh, 44px) 0 0; color: var(--creme-3); }

/* ---------- Projets : grille à tailles variées ---------- */
.grille {
  display: grid; grid-template-columns: minmax(0, 1fr);
  gap: clamp(56px, 8vh, 104px) clamp(20px, 2.4vw, 40px);
}
.media { position: relative; aspect-ratio: 16 / 9; background: var(--noir-2); overflow: hidden; }
.projet--large .media { aspect-ratio: 2.39 / 1; }
.projet--5 .media { aspect-ratio: 4 / 5; }

@media (min-width: 820px) {
  .grille { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .projet--large { grid-column: 1 / -1; }
  .projet--7 { grid-column: span 7; }
  .projet--5 { grid-column: span 5; }
  /* Deux vignettes d'une même ligne : même hauteur, largeurs différentes */
  .projet--7 .media, .projet--5 .media { aspect-ratio: auto; height: clamp(300px, 38vw, 640px); }
}

/* Parallaxe : l'image glisse un peu moins vite que son cadre */
.anim .grille .media img {
  transform: translate3d(0, var(--py, 0%), 0) scale(1.12);
  will-change: transform;
}

/* Timecode sur la vignette, comme sur les cartes (calé à l'intérieur des repères du viseur) */
.media-tc {
  position: absolute; left: 40px; bottom: 14px; z-index: 2; pointer-events: none;
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em; line-height: 1;
  color: var(--lumiere-3); transition: color 0.4s;
}
.media.en-lecture .media-tc { color: var(--lumiere); }

/* Repères de viseur : quand les photogrammes défilent (survol, ou vignette visible
   sur téléphone), les coins du cadre se posent et REC clignote, comme dans l'écran
   de la caméra. Ajoutés par le JavaScript ; data-viseur donne le texte en haut à droite */
.viseur {
  position: absolute; inset: 14px; z-index: 2; pointer-events: none;
  opacity: 0; transform: scale(1.06);
  transition: opacity 0.5s var(--lent), transform 0.8s var(--lent);
}
.media.en-lecture .viseur { opacity: 1; transform: none; }
.viseur i { position: absolute; width: 18px; height: 18px; border: 0 solid var(--lumiere); }
.viseur i:nth-child(1) { left: 0; top: 0; border-width: 1px 0 0 1px; }
.viseur i:nth-child(2) { right: 0; top: 0; border-width: 1px 1px 0 0; }
.viseur i:nth-child(3) { left: 0; bottom: 0; border-width: 0 0 1px 1px; }
.viseur i:nth-child(4) { right: 0; bottom: 0; border-width: 0 1px 1px 0; }
.viseur-rec, .viseur-info {
  position: absolute; top: 0; line-height: 1;
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em; color: var(--lumiere);
}
.viseur-rec { left: 26px; }
.viseur-info { right: 26px; }
.viseur-rec::before {
  content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 8px 1px 0;
  border-radius: 50%; background: var(--lumiere); vertical-align: middle;
}
.media.en-lecture .viseur-rec::before { animation: clignote 1.2s steps(1) infinite; }
@keyframes clignote { 50% { opacity: 0; } }

.projet-legende {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px 32px;
  margin-top: 22px;
}
.projet--large .projet-legende { grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; }
.projet--large .role { text-align: right; }
.projet h3 { margin: 0; font-size: 1.12rem; font-weight: 500; letter-spacing: 0.02em; line-height: 1.3; }
.projet--large h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); font-weight: 400; }
.role { margin: 0; color: var(--creme-2); font-size: 0.92rem; line-height: 1.6; }
@media (max-width: 600px) {
  .projet--large .projet-legende { grid-template-columns: minmax(0, 1fr); }
  .projet--large .role { text-align: left; }
}

/* Emplacements à remplir (à retirer quand le contenu est prêt) */
.vide {
  display: flex; align-items: center; justify-content: center;
  border: 1px dashed var(--filet);
  color: var(--creme-3); font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase;
  text-align: center; padding: 0 24px;
}

/* ---------- À propos ---------- */
.a-propos-grille {
  display: grid; gap: clamp(40px, 6vw, 96px);
  grid-template-columns: minmax(0, 1fr); align-items: center;
}
@media (min-width: 820px) { .a-propos-grille { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.portrait { aspect-ratio: 4 / 5; max-width: 440px; width: 100%; overflow: hidden; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.texte { max-width: 34rem; }
.texte p { margin: 0 0 1.1em; color: var(--creme-2); }
.texte .texte-fort { color: var(--creme); font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.3; font-weight: 400; margin-bottom: 0.9em; }
.savoir-faire {
  list-style: none; padding: 28px 0 0; margin: 28px 0 0;
  border-top: 1px solid var(--filet);
  display: flex; flex-wrap: wrap; gap: 12px 36px;
  color: var(--creme);
}

/* ---------- Contact ---------- */
.contact { text-align: center; padding-bottom: var(--espace-section); }
.contact .section-titre { justify-content: center; }
.contact-accroche { margin: 0 0 20px; color: var(--creme-2); }
.contact-liens {
  list-style: none; padding: 0; margin: clamp(56px, 8vh, 88px) 0 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 40px;
  color: var(--creme-2);
}
.contact-liens a { border-bottom: 1px solid transparent; transition: border-color 0.4s, color 0.4s; }
.contact-liens a:hover { color: var(--creme); border-color: var(--creme-2); }

/* Formulaire de contact : des lignes fines, comme sur une feuille de service */
.formulaire {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px 40px;
  max-width: 46rem; margin: clamp(40px, 6vh, 64px) auto 0; text-align: left;
}
@media (min-width: 700px) {
  .formulaire { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .champ--large, .formulaire-bas, .formulaire-etat { grid-column: 1 / -1; }
}
.champ label {
  display: block; margin-bottom: 4px;
  text-transform: uppercase; letter-spacing: 0.38em; font-size: 0.68rem;
  color: var(--creme-3); transition: color 0.4s;
}
.champ:focus-within label { color: var(--creme); }
.champ input, .champ textarea {
  display: block; width: 100%; padding: 10px 0;
  background: transparent; color: var(--creme); font: inherit; line-height: 1.6;
  border: 0; border-bottom: 1px solid var(--filet); border-radius: 0;
  -webkit-appearance: none; appearance: none;
  transition: border-color 0.4s;
}
.champ textarea { min-height: 150px; resize: vertical; }
.champ input:focus, .champ textarea:focus { outline: none; border-bottom-color: var(--creme); }
/* Remplissage automatique du navigateur : garder le fond noir */
.champ input:-webkit-autofill {
  -webkit-text-fill-color: var(--creme);
  box-shadow: 0 0 0 100px var(--noir) inset;
  caret-color: var(--creme);
}
.champ-piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.formulaire-bas {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px;
}
.formulaire-note { margin: 0; color: var(--creme-3); font-size: 0.82rem; }
.formulaire-envoyer {
  padding: 15px 34px 15px calc(34px + 0.38em);
  background: transparent; color: var(--creme);
  border: 1px solid var(--creme-2); border-radius: 0;
  text-transform: uppercase; letter-spacing: 0.38em; font-size: 0.72rem;
  cursor: pointer; transition: background-color 0.4s, color 0.4s, border-color 0.4s;
}
.formulaire-envoyer:hover { background: var(--creme); color: var(--noir); border-color: var(--creme); }
.formulaire-envoyer[disabled] { opacity: 0.5; cursor: progress; }
.formulaire-etat { margin: 0; min-height: 1.6em; color: var(--creme-2); }
/* Message envoyé : les champs laissent la place à une phrase de remerciement */
.formulaire.envoye { display: block; text-align: center; }
.formulaire.envoye > :not(.formulaire-etat) { display: none; }
.formulaire.envoye .formulaire-etat { font-size: clamp(1.2rem, 2.2vw, 1.7rem); color: var(--creme); padding: 24px 0; }

/* ---------- Pied de page ---------- */
.pied {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px;
  padding: 28px var(--marge);
  border-top: 1px solid var(--filet);
  color: var(--creme-3); font-size: 0.66rem;
}
.pied a { transition: color 0.4s; }
.pied a:hover { color: var(--creme); }

/* =========================================================
   APPARITIONS AU DÉFILEMENT (data-reveal dans le HTML)
   fondu  : monte légèrement en apparaissant
   masque : le texte glisse vers le haut, sorti d'un cache
   volet  : l'image se dévoile de bas en haut, comme un rideau
   --delai : décalage, pour faire entrer les éléments en cascade
   Elles se rejouent à chaque passage. En remontant la page (classe
   depuis-haut), le mouvement s'inverse : tout arrive par le haut
   ========================================================= */
.anim [data-reveal="fondu"] {
  opacity: 0; transform: translate3d(0, 28px, 0);
  transition: opacity 1.2s var(--lent), transform 1.2s var(--lent);
  transition-delay: var(--delai, 0s);
}
.anim [data-reveal="masque"] { overflow: hidden; }
.anim [data-reveal="masque"] > .masque-int {
  display: block; transform: translate3d(0, 110%, 0);
  transition: transform 1.2s var(--lent) var(--delai, 0s);
}
.anim [data-reveal="volet"] {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.5s var(--volet) var(--delai, 0s);
}
.anim [data-reveal="fondu"].depuis-haut { transform: translate3d(0, -28px, 0); }
.anim [data-reveal="masque"].depuis-haut > .masque-int { transform: translate3d(0, -110%, 0); }
.anim [data-reveal="volet"].depuis-haut { clip-path: inset(0 0 100% 0); }
/* .visible doit rester après .depuis-haut : c'est lui qui l'emporte */
.anim [data-reveal].visible { opacity: 1; transform: none; clip-path: inset(0 0 0 0); }
.anim [data-reveal="masque"].visible > .masque-int { transform: none; }

/* carton : les lettres arrivent très espacées puis se resserrent, comme un générique.
   L'espacement final est celui du titre (il change sur téléphone) */
.anim [data-reveal="carton"] {
  white-space: nowrap;
  transition: opacity 1.4s var(--lent), letter-spacing 1.8s var(--lent);
  transition-delay: var(--delai, 0s);
}
.anim [data-reveal="carton"]:not(.visible) { opacity: 0; letter-spacing: 1.2em; }

/* =========================================================
   CURSEUR CAMÉRA (ordinateur seulement, créé par le JavaScript)
   Un point qui suit la souris en douceur, un anneau sur les liens,
   un cercle « Lire » (ou « Bientôt ») sur les vidéos
   ========================================================= */
.curseur-actif, .curseur-actif * { cursor: none !important; }
/* Dans les champs du formulaire : la barre de saisie habituelle, sans le point */
.curseur-actif input, .curseur-actif textarea { cursor: text !important; }
.curseur[data-etat="texte"] { opacity: 0; }
.curseur-actif .grille .video-lecture { display: none; } /* le curseur remplace l'icône lecture */
.curseur {
  position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none;
  opacity: 0; transition: opacity 0.3s;
}
.curseur.present { opacity: 1; }
.curseur-rond {
  position: absolute; left: 0; top: 0; width: 8px; height: 8px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid transparent; border-radius: 50%; background: var(--creme);
  transform: translate(-50%, -50%);
  transition: width 0.5s var(--lent), height 0.5s var(--lent), background-color 0.4s, border-color 0.4s, transform 0.3s var(--lent);
}
.curseur[data-etat="lien"] .curseur-rond { width: 34px; height: 34px; background: transparent; border-color: var(--creme-2); }
.curseur[data-etat="lecture"] .curseur-rond {
  width: 92px; height: 92px; background: rgba(0, 0, 0, 0.3); border-color: var(--lumiere); color: var(--lumiere);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}
.curseur.appui .curseur-rond { transform: translate(-50%, -50%) scale(0.86); }
.curseur-texte {
  font-size: 0.62rem; letter-spacing: 0.3em; padding-left: 0.3em; text-transform: uppercase; white-space: nowrap;
  opacity: 0; transition: opacity 0.25s;
}
.curseur[data-etat="lecture"] .curseur-texte { opacity: 1; transition-delay: 0.15s; }
/* Dans le lecteur plein écran, la vidéo garde le curseur normal */
.curseur-actif body.lecteur-actif, .curseur-actif body.lecteur-actif * { cursor: auto !important; }
.curseur-actif body.lecteur-actif .lecteur-fermer { cursor: pointer !important; }
body.lecteur-actif .curseur { display: none; }

/* ---------- Page texte (mentions légales) ---------- */
.page-texte { max-width: 46rem; margin: 0 auto; padding: 160px var(--marge) var(--espace-section); }
.page-texte h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 400; margin: 0 0 64px; }
.page-texte h2 { margin: 56px 0 16px; }
.page-texte p { margin: 0 0 6px; color: var(--creme-2); }
.page-texte strong { color: var(--creme); font-weight: 500; }
.page-texte a { border-bottom: 1px solid var(--filet); }
.page-texte a:hover { border-color: var(--creme); }

/* ---------- Page 404 ---------- */
.page-404 {
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px;
  padding: 0 var(--marge); text-align: center;
}
.page-404 .logo img { width: clamp(200px, 24vw, 380px); }

/* ---------- Petits écrans ---------- */
@media (max-width: 700px) {
  .ouverture-scene {
    --fh: calc(100vw / 2.39);       /* cadre sur toute la largeur */
    --cy: 58svh;
    /* arrivée : un cadre 4:5 centré plutôt que l'écran entier */
    --t1: calc((var(--H) - min(var(--H), 125vw)) / 2);
    --b1: calc((var(--H) - min(var(--H), 125vw)) / 2);
  }
}
@media (max-width: 520px) {
  .metier, .entete nav a, .section-titre, .savoir-faire, .pied, .video-texte, .video-bientot, .intro-signature, .contact-liens {
    letter-spacing: 0.22em;
  }
  .entete { padding-top: 22px; gap: 14px; }
  .entete nav { gap: 14px; }
  .entete nav a { white-space: nowrap; letter-spacing: 0.16em; }
  .entete-kanji img { height: 15px; }
  .video-icone { width: 44px; height: 44px; }
  .video-texte { display: none; }
}

/* Mouvement réduit demandé : tout est visible, rien ne bouge */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
