/* Noa Cadeau · Portfolio V1 « Houston »
   Modes : Sol (clair) et Orbite (sombre). Couleurs validées dans da-houston.html.
   Tout passe par les variables ci-dessous : changer une couleur, c'est changer une ligne. */

/* ---------- Polices (hébergées ici, licence OFL : voir fonts/OFL-*.txt) ---------- */
@font-face {
  font-family: "Space Mono";
  src: url("../fonts/SpaceMono-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Mono";
  src: url("../fonts/SpaceMono-700-latin.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/IBMPlexSans-var-latin.woff2") format("woff2");
  font-weight: 100 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Couleurs et mesures ---------- */
:root {
  --papier: #F2EDE3;
  --nuit: #0E0F12;

  /* Mode Sol */
  --fond: #F2EDE3;
  --carte: #E9E3D6;
  --encre: #161616;
  --rouge: #D9381E;          /* gros éléments seulement */
  --rouge-texte: #B3301A;    /* petits textes rouges : 5,3:1 sur papier */
  --gris: #615E58;           /* un cran plus sombre que #6B6862 pour rester AA sur la carte */
  --filet: #CFC8BA;
  --s1: var(--fond);         /* sections missions et commerces */
  --s2: var(--carte);        /* section profil */
  --hero-fond: #C4321B;      /* rouge de champ : le texte papier y fait 4,7:1 */
  --hero-ligne1: var(--papier);
  --hero-ligne2: #161616;
  --logo-couleur: var(--papier); /* ligature NC crème sur le héros rouge */
  --hero-texte: var(--papier);
  --hero-bouton: #161616;
  --hero-bouton-texte: var(--papier);
  --champ-fond: #C4321B;
  --champ-texte: var(--papier);
  --champ-survol: #161616;
  --pied-fond: #161616;
  --pied-texte: var(--papier);
  --pied-gris: #9C988F;
  --ecu-fond: var(--encre);
  --ecu-trait: var(--fond);
  --focus: var(--encre);

  --mono: "Space Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --texte: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Cinq tailles, pas une de plus */
  --t-monument: clamp(5.25rem, min(22vw, 36vh), 20rem);
  --t-geant: clamp(3.25rem, 9vw, 8.5rem);
  --t-titre: clamp(1.5rem, 1.1rem + 1.2vw, 2.25rem);
  --t-corps: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --t-petit: 0.875rem;

  --marge: clamp(16px, 2.4vw, 32px);
  --respire: clamp(88px, 11vw, 192px);
  --ecu: clamp(64px, 8.5vw, 128px);
  --ease-sortie: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: light;
}

@supports (min-height: 100svh) {
  :root { --t-monument: clamp(5.25rem, min(22vw, 36svh), 20rem); }
}

/* Mode Orbite : choisi par le visiteur, ou réglage sombre du téléphone */
:root[data-theme="orbite"] {
  --fond: #0E0F12;
  --carte: #17181C;
  --encre: #F2EDE3;
  --rouge: #FF4B2B;
  --rouge-texte: #FF4B2B;
  --gris: #9C988F;
  --filet: #2A2B2F;
  --s1: var(--carte);
  --s2: var(--fond);
  --hero-fond: #0E0F12;
  --hero-ligne1: #FF4B2B;
  --hero-ligne2: var(--papier);
  --logo-couleur: #FF4B2B;
  --hero-texte: var(--papier);
  --hero-bouton: #FF4B2B;
  --hero-bouton-texte: #0E0F12;
  --champ-fond: #B3301A;
  --champ-texte: var(--papier);
  --champ-survol: #0E0F12;
  --pied-fond: var(--papier);
  --pied-texte: #0E0F12;
  --pied-gris: #615E58;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="sol"]) {
    --fond: #0E0F12;
    --carte: #17181C;
    --encre: #F2EDE3;
    --rouge: #FF4B2B;
    --rouge-texte: #FF4B2B;
    --gris: #9C988F;
    --filet: #2A2B2F;
    --s1: var(--carte);
    --s2: var(--fond);
    --hero-fond: #0E0F12;
    --hero-ligne1: #FF4B2B;
    --hero-ligne2: var(--papier);
    --logo-couleur: #FF4B2B;
    --hero-texte: var(--papier);
    --hero-bouton: #FF4B2B;
    --hero-bouton-texte: #0E0F12;
    --champ-fond: #B3301A;
    --champ-texte: var(--papier);
    --champ-survol: #0E0F12;
    --pied-fond: var(--papier);
    --pied-texte: #0E0F12;
    --pied-gris: #615E58;
    color-scheme: dark;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--pied-fond);
}

body {
  margin: 0;
  background: var(--s1);
  color: var(--encre);
  font-family: var(--texte);
  font-size: var(--t-corps);
  line-height: 1.55;
  overflow-x: clip;
}

img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: from-font; }
a, button { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
a:hover { text-decoration-thickness: 2px; }

p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }

sup { font-size: 0.7em; line-height: 0; }
cite { font-style: italic; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

::selection { background: var(--rouge); color: var(--papier); }

.sr {
  position: absolute;
  width: 1px;
  height: 1px; /* taste-skill-ignore : texte réservé aux lecteurs d'écran */
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.sprites { position: absolute; width: 0; height: 0; overflow: hidden; }

.evitement {
  position: absolute;
  left: var(--marge);
  top: -100px;
  z-index: 10;
  padding: 12px 18px;
  background: var(--encre);
  color: var(--fond);
  font: 700 var(--t-petit)/1 var(--mono);
}
.evitement:focus { top: 12px; }

.code { color: var(--rouge-texte); }
.discret { opacity: 0.8; }

/* Champs encore à remplir : bien visibles pour ne pas les oublier */
.a-completer { outline: 2px dashed var(--rouge-texte); outline-offset: 2px; }

/* ---------- Boutons ---------- */
.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--encre);
  color: var(--fond);
  font: 700 var(--t-petit)/1.2 var(--mono);
  text-decoration: none;
  transition: transform 0.25s var(--ease-sortie), background-color 0.25s;
}
.bouton:hover { transform: translateY(-2px); }
.bouton:active { transform: translateY(0) scale(0.97); }

.bascule {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 16px;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: 400 var(--t-petit)/1 var(--mono);
  cursor: pointer;
  transition: transform 0.25s var(--ease-sortie);
}
.bascule:hover { transform: translateY(-1px); }
.bascule:active { transform: scale(0.96); }
.bascule svg { fill: currentColor; flex: none; }
.bascule[data-etat="orbite"] .bascule-astre,
.bascule:not([data-etat="orbite"]) .bascule-ombre { display: none; }
.bascule-texte-seul { min-height: 0; padding: 4px 12px; }

/* ---------- Héros : le nom en monument ---------- */
.heros {
  --focus: var(--hero-ligne2);
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh; /* taste-skill-ignore : repli pour les vieux navigateurs, 100svh suit */
  min-height: 100svh;
  padding: 16px var(--marge) clamp(24px, 4.5vh, 44px);
  background: var(--hero-fond);
  color: var(--hero-texte);
}

.barre {
  display: flex;
  align-items: center;
  gap: 12px 24px;
  font: 400 0.9375rem/1.2 var(--mono);
}
.monogramme {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  text-decoration: none;
  font-weight: 700;
}
.barre-liens {
  display: flex;
  gap: 4px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.barre-liens a {
  position: relative;
  display: inline-block;
  padding: 12px 0;
  text-decoration: none;
}
.barre-liens a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-sortie);
}
.barre-liens a:hover::after,
.barre-liens a:focus-visible::after { transform: scaleX(1); }

.heros-nom {
  align-self: start;
  padding-top: clamp(24px, 8vh, 120px);
  padding-bottom: 32px;
}
.nom {
  margin: 0 0 0 -0.045em;
  font-family: var(--mono);
  font-size: var(--t-monument);
  font-weight: 700;
  line-height: 0.82;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}
.nom .ligne {
  display: block;
  overflow: hidden;
  padding-bottom: 0.05em;
  margin-bottom: -0.05em;
}
.nom .ligne > span { display: block; }
.nom .ligne:first-child { color: var(--hero-ligne1); }
.nom .ligne:last-child { color: var(--hero-ligne2); }

.heros-pied {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 36ch);
  align-items: end;
  gap: 24px 48px;
}
.compte { margin: 0; font: 400 var(--t-petit)/1.4 var(--mono); }
.compte-titre { display: block; }
.compte-valeur {
  display: block;
  margin-top: 4px;
  font-size: var(--t-titre);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.heros-texte p { margin: 0; }
.heros-texte > p:first-child { font-size: var(--t-corps); line-height: 1.5; }
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-top: 20px !important;
}
.heros .bouton { background: var(--hero-bouton); color: var(--hero-bouton-texte); }
.lien-cv { font: 700 var(--t-petit)/1.2 var(--mono); padding: 12px 0; }

/* ---------- Missions ---------- */
.missions {
  padding: var(--respire) var(--marge);
  background: var(--s1);
}
.missions-tete {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 48px;
  margin-bottom: clamp(56px, 8vw, 128px);
}
.titre-geant {
  display: flex;
  align-items: flex-start;
  gap: 0.2em;
  margin: 0 0 0 -0.04em;
  font: 700 var(--t-geant)/0.88 var(--mono);
  letter-spacing: -0.045em;
  text-transform: uppercase;
}
.titre-geant .code {
  margin-top: 0.12em;
  font-size: var(--t-titre);
  line-height: 1;
  letter-spacing: -0.02em;
}
.missions-chapo { max-width: 34ch; margin: 0; }

.missions-liste {
  position: relative;
  display: grid;
  gap: var(--respire);
}

/* La trajectoire en pointillés relie les écussons ; elle se trace au fil du défilement */
.trajectoire {
  position: absolute;
  left: calc(var(--ecu) / 2 - 1px);
  top: calc(var(--ecu) / 2);
  bottom: 0;
  width: 2px;
  pointer-events: none;
}
.trajectoire-prevue,
.trajectoire-trait {
  position: absolute;
  inset: 0;
  width: 2px;
  height: 100%;
  overflow: visible;
}
.trajectoire-trait { clip-path: inset(0 0 calc(100% - var(--progres, 100%)) 0); }
.trajectoire-prevue line,
.trajectoire-trait line {
  stroke: var(--filet);
  stroke-width: 2;
  stroke-dasharray: 6 9;
}
.trajectoire-trait line { stroke: var(--encre); }
.trajectoire-sonde {
  position: absolute;
  top: 0;
  left: -6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--rouge);
  transform: translateY(var(--sonde, 0px));
  opacity: 0;
}
.trajectoire.active .trajectoire-sonde { opacity: 1; }

.mission {
  position: relative;
  display: grid;
  grid-template-columns: var(--ecu) minmax(0, 1fr);
  column-gap: clamp(20px, 3vw, 48px);
  align-items: start;
  scroll-margin-top: 24px;
}
.ecusson {
  --ecu-fond: var(--encre);
  --ecu-trait: var(--s1);
  position: relative;
  z-index: 1;
  width: var(--ecu);
  height: auto;
  transition: transform 0.6s var(--ease-sortie);
}
.mission:hover .ecusson { transform: rotate(-8deg) scale(1.04); }

.mission-tete :is(h1, h3) {
  margin: 0;
  font: 700 var(--t-titre)/1.1 var(--mono);
  letter-spacing: -0.02em;
}
.mission-tete :is(h1, h3) .code { margin-right: 0.3em; }
.mission-resume { margin: 10px 0 0; max-width: 52ch; color: var(--gris); }

.mission-corps {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(28px, 3.5vw, 56px);
  margin-top: clamp(24px, 3vw, 40px);
}
.mission-texte > p { margin: 0 0 1em; max-width: 62ch; }

.fiche {
  margin: 28px 0 20px;
  border-top: 2px solid var(--encre);
  font: 400 var(--t-petit)/1.45 var(--mono);
}
.fiche > div {
  display: grid;
  grid-template-columns: 10ch minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--filet); /* taste-skill-ignore : la fiche de mission est un tableau de données (DA Houston) */
}
.fiche dt { color: var(--gris); }
.fiche dd { margin: 0; }
.statut { color: var(--rouge-texte); font-weight: 700; }
.statut::before {
  content: "";
  display: inline-block;
  width: 0.6em;
  height: 0.6em;
  margin-right: 0.5em;
  border-radius: 50%;
  background: currentColor;
}
.mission-lien { font: 700 var(--t-petit)/1.6 var(--mono); }

/* Le mur d'images : chaque rangée a une seule hauteur, chaque image garde ses proportions */
.mur { display: grid; gap: 10px; align-content: start; }
.rangee { display: flex; gap: 10px; }
.vignette {
  flex: var(--r) 1 0%;
  min-width: 0;
  margin: 0;
}
.cadre {
  position: relative;
  display: block;
  aspect-ratio: var(--r);
  overflow: hidden;
  background: var(--carte);
  cursor: zoom-in;
}
:root[data-theme="orbite"] .cadre { background: var(--fond); }
.cadre img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-sortie), opacity 0.3s;
}
.vignette figcaption {
  margin-top: 8px;
  font-size: var(--t-petit);
  line-height: 1.4;
}
.credit { margin: 6px 0 0; font-size: var(--t-petit); color: var(--gris); }

/* Image absente : la case reste propre, avec son code de mission */
.vignette.manque .cadre { cursor: default; }
.vignette.manque picture { visibility: hidden; }
.vignette.manque .cadre::after {
  content: "Image à venir";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 12px;
  border: 2px dashed var(--filet);
  color: var(--gris);
  font: 400 var(--t-petit)/1.3 var(--mono);
  text-align: center;
}

.mission-suivante {
  margin: 0 0 0 calc(var(--ecu) + clamp(20px, 3vw, 48px));
  font: 400 var(--t-petit)/1.5 var(--mono);
}
.mission-suivante .code { margin-right: 0.6em; font-weight: 700; }

/* ---------- Profil ---------- */
.profil {
  padding: var(--respire) var(--marge);
  background: var(--s2);
}
.profil-haut {
  display: grid;
  grid-template-columns: minmax(0, 34fr) minmax(0, 66fr);
  gap: 40px 0;
}
.faits {
  display: grid;
  gap: 20px;
  align-content: start;
  max-width: 24ch;
  margin: 0;
  font-size: var(--t-petit);
  line-height: 1.45;
}
.faits dt { color: var(--gris); font-family: var(--mono); }
.faits dd { margin: 2px 0 0; }
.profil-texte { max-width: 66ch; }
.profil-texte p { margin: 0 0 1em; }
.enonce {
  font-size: var(--t-titre);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.012em;
  max-width: 34ch;
  margin-bottom: 28px !important;
}
.profil-bas {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 56px 64px;
  margin: clamp(72px, 9vw, 128px) 0 0 34%;
}
.registre h3 {
  margin: 0 0 12px;
  font: 700 var(--t-petit)/1.3 var(--mono);
}
.registre h3 .code { margin-right: 0.5em; }
.liste-dates { margin: 0; padding: 0; list-style: none; font-size: var(--t-petit); }
.liste-dates li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid var(--filet); /* taste-skill-ignore : registre = tableau libellé / date */
}
.liste-dates .annee { flex: none; color: var(--gris); text-align: right; }

/* ---------- Pour les commerces ---------- */
.commerces {
  padding: var(--respire) var(--marge);
  background: var(--s1);
}
.commerces-tete,
.offres,
.commerces-action { margin-left: 22%; }
.commerces-tete { max-width: 640px; }
.commerces-tete h2 {
  margin: 0 0 16px;
  font: 700 var(--t-titre)/1.15 var(--mono);
  letter-spacing: -0.02em;
}
.commerces-tete h2 .code { margin-right: 0.3em; }
.commerces-tete p { margin: 0; max-width: 58ch; }
.offres {
  display: grid;
  gap: clamp(56px, 7vw, 104px);
  margin-top: 64px;
}
.offre {
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 300px);
  gap: 24px;
  align-items: start;
}
.offre-preuve {
  height: clamp(140px, 13vw, 200px);
  overflow: hidden;
  background: var(--carte);
}
.offre-preuve img { width: 100%; height: 100%; object-fit: cover; }
.offre-preuve .recadre-haut { object-position: 50% 30%; }
.offre-texte h3 { margin: 0 0 8px; font-size: var(--t-corps); font-weight: 500; line-height: 1.3; }
.offre-texte p { margin: 0 0 10px; }
.prix { font: 700 var(--t-petit)/1.5 var(--mono); }
.commerces-action { margin-top: 72px; }

/* ---------- Contact : l'adresse en très grand ---------- */
.contact {
  --focus: var(--champ-texte);
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh; /* taste-skill-ignore : repli, 100svh suit */
  min-height: 100svh;
  padding: clamp(40px, 6vh, 72px) var(--marge) 28px;
  background: var(--champ-fond);
  color: var(--champ-texte);
}
.contact-phrase {
  max-width: 22ch;
  margin: 0;
  font-size: var(--t-titre);
  font-weight: 500;
  line-height: 1.2;
}
.contact-adresse {
  align-self: end;
  margin: 0 0 10vh -0.03em;
  font: 700 min(8.5vw, 8.5rem)/1 var(--mono);
  letter-spacing: -0.035em;
}
.contact-adresse a {
  text-decoration: underline;
  text-decoration-thickness: 0.05em;
  text-underline-offset: 0.12em;
  transition: color 0.3s;
}
.contact-adresse a:hover { color: var(--champ-survol); }
.contact-pied {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 32px;
  font: 400 var(--t-petit)/1.5 var(--mono);
}
.contact-pied p { margin: 0; }

/* ---------- Pied de page : le nom revient en pleine largeur ---------- */
.pied {
  --focus: var(--pied-texte);
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  min-height: 88vh;
  min-height: 88svh;
  padding: 44px var(--marge) 20px;
  background: var(--pied-fond);
  color: var(--pied-texte);
}
.pied-colonnes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  font-size: 0.9375rem;
}
.pied-colonnes ul { margin: 0; padding: 0; list-style: none; color: var(--pied-gris); }
.pied-colonnes li { padding: 3px 0; }
.pied-colonnes a { color: var(--pied-texte); }
.pied-titre { margin: 0 0 8px; font: 700 var(--t-petit)/1.4 var(--mono); }
.pied .bascule { margin-top: 6px; color: var(--pied-texte); }
.pied-nom {
  grid-row: 3;
  margin: 0 0 0 -0.05em;
  font: 700 calc((100vw - 2 * var(--marge)) / 5.62)/0.8 var(--mono);
  letter-spacing: -0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}
.pied-legal {
  grid-row: 4;
  margin: 18px 0 0;
  font: 400 var(--t-petit)/1.4 var(--mono);
  color: var(--pied-gris);
}

/* ---------- Visionneuse d'images ---------- */
.visionneuse {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--papier);
  overscroll-behavior: contain;
}
.visionneuse::backdrop { background: rgb(14 15 18 / 0.94); }
.visionneuse figure {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  place-items: center;
  gap: 12px;
  height: 100%;
  margin: 0;
  padding: 72px 16px 20px;
}
.visionneuse img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.visionneuse figcaption { font: 400 var(--t-petit)/1.4 var(--mono); text-align: center; }
.visionneuse-fermer {
  position: fixed;
  top: 16px;
  right: 16px;
  min-height: 44px;
  padding: 10px 20px;
  border: 1.5px solid var(--papier);
  border-radius: 999px;
  background: var(--nuit);
  color: var(--papier);
  font: 700 var(--t-petit)/1 var(--mono);
  cursor: pointer;
}
.visionneuse-fermer:focus-visible { outline-color: var(--papier); }

/* ---------- Tablette ---------- */
@media (max-width: 1023px) {
  .mission-corps { grid-template-columns: minmax(0, 1fr); }
  .profil-haut { grid-template-columns: minmax(0, 1fr); }
  .profil-texte { order: -1; }
  .faits { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: none; gap: 20px 24px; }
  .profil-bas { margin-left: 0; }
  .commerces-tete, .offres, .commerces-action { margin-left: 0; }
  .pied-colonnes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Téléphone ---------- */
@media (max-width: 767px) {
  .lien-large { display: none; }
  .barre { gap: 8px 14px; font-size: var(--t-petit); }
  .monogramme span { display: none; }
  .heros-nom { padding-top: clamp(32px, 14vh, 120px); }
  .heros-pied { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .heros-texte { order: -1; }

  .mission { grid-template-columns: 64px minmax(0, 1fr); column-gap: 16px; }
  .mission-contenu { display: contents; }
  .mission-tete { grid-column: 2; align-self: center; }
  .mission-corps { grid-column: 1 / -1; }
  .ecusson { width: 64px; }
  .trajectoire { display: none; }
  .mission + .mission::before,
  .mission-suivante::before {
    content: "";
    position: absolute;
    left: 31px;
    top: calc(var(--respire) * -1 + 16px);
    height: calc(var(--respire) - 32px);
    border-left: 2px dashed var(--encre);
  }
  .mission-suivante { position: relative; margin-left: 0; padding-left: 80px; }
  .mission-suivante::before { top: calc(var(--respire) * -1 + 16px); }

  .rangee { flex-wrap: wrap; }
  .vignette { flex: 1 1 calc(50% - 5px); }
  .vignette-pleine { flex-basis: 100%; }

  .faits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profil-bas { grid-template-columns: minmax(0, 1fr); gap: 40px; }

  .offre { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .offre-preuve { height: 180px; }

  .contact-adresse { font-size: 15.5vw; line-height: 1.02; margin-bottom: 8vh; }
  .adresse-domaine { display: block; }
  .contact-pied { flex-direction: column; }

  .pied-colonnes { gap: 32px 20px; }
}

@media (max-width: 380px) {
  .barre .bascule-texte { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .barre .bascule { padding: 8px 12px; }
}

/* ---------- Mouvement (niveau 4 sur 5), coupé si le visiteur le demande ---------- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  .heros, .missions, .profil, .commerces, .contact, .pied, body {
    transition: background-color 0.45s ease, color 0.45s ease;
  }

  .nom .ligne > span { animation: monte 1.05s var(--ease-sortie) both; }
  .nom .ligne:last-child > span { animation-delay: 0.11s; }
  .heros-pied { animation: apparait 0.9s 0.55s var(--ease-sortie) both; }
  .barre { animation: apparait 0.9s 0.35s var(--ease-sortie) both; }


  .revele-pret [data-revele]:not(.vu) > * { opacity: 0; transform: translateY(28px); }
  [data-revele] > * { transition: opacity 0.8s var(--ease-sortie), transform 0.8s var(--ease-sortie); }
  [data-revele].vu > :nth-child(2) { transition-delay: 0.08s; }
  [data-revele].vu > :nth-child(3) { transition-delay: 0.16s; }
  [data-revele].vu > :nth-child(4) { transition-delay: 0.24s; }
  [data-revele].vu > :nth-child(5) { transition-delay: 0.32s; }

  @media (hover: hover) {
    .cadre:hover img { transform: scale(1.035); }
    .rangee:hover .vignette:not(:hover) img { opacity: 0.72; }
  }
}

@media (prefers-reduced-motion: reduce) {
  .trajectoire-sonde { display: none; }
  .trajectoire-trait { clip-path: none; }
  .mission:hover .ecusson { transform: none; }
}

@keyframes monte { from { transform: translateY(104%); } }
@keyframes apparait { from { opacity: 0; transform: translateY(16px); } }
@keyframes tourne { to { transform: rotate(360deg); } }

/* ---------- Impression ---------- */
@media print {
  .barre, .trajectoire, .visionneuse, .evitement, .bascule { display: none !important; }
  [data-revele] > * { opacity: 1 !important; transform: none !important; }
  .heros, .contact, .pied { min-height: 0; }
}
