:root {
  --black-olive: #2C2E25;
  --russet: #834124;
  --yellow: #CFA559;
  --blanket: #E8DDCC;
  --cream: #FAF6EF;
  /* Brun du pied de page : toute zone qui le rejoint puise ici, jamais en dur. */
  --brun-pied: #6B3C24;

  --font-title: "Cormorant Garamond", Georgia, serif;
  --font-body: "Raleway", -apple-system, "Segoe UI", sans-serif;

  /* ---- Échelle typographique : 9 rôles, ne jamais ajouter de taille intermédiaire ---- */
  --t-display: clamp(3rem, 6.6vw, 6.4rem);
  --t-h1: clamp(2.4rem, 5vw, 4rem);
  --t-h2: clamp(1.9rem, 3.6vw, 3rem);
  --t-h3: clamp(1.5rem, 2.4vw, 2.1rem);
  --t-h4: 1.25rem;
  --t-lead: 1.0625rem;
  --t-body: 1rem;
  --t-small: .875rem;
  --t-label: .72rem;
  --ls-label: .18em;
  --t-nav: .78rem;
  --ls-nav: .22em;

  /* ---- Trame verticale ---- */
  --space-section: clamp(4.5rem, 9vw, 7rem);
  --space-section-sm: clamp(3rem, 6vw, 4.5rem);
  --space-nav: clamp(5.5rem, 10vh, 7.5rem);
  --space-block: clamp(1.6rem, 3.5vw, 2.4rem);

  /* Mesure unique de la prose, en rem et non en ch : le ch varie avec la police. */
  --measure: 36rem;

  --wrap: 1200px;
  --media-w: var(--wrap);
  --media-gap: clamp(6px, .9vw, 12px);
  --ease: cubic-bezier(.22, 1, .36, 1);
  /* Mesurée au chargement par main.js ; valeur de repli. */
  --sbw: 0px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--black-olive);
  background: var(--cream);
  font-weight: 400;
  font-size: var(--t-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  /* Cale le footer en bas d'écran sur les pages plus courtes que la fenêtre. */
  min-height: 100svh;
  display: flex; flex-direction: column;
}
main { flex: 1 0 auto; }

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

::selection { background: var(--yellow); color: var(--black-olive); }

:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 2px; }

/* :focus et non :focus-visible : couvre toutes les façons d'atteindre le lien d'évitement. */
.skip {
  position: fixed; left: 1rem; top: -6rem; z-index: 300;
  background: var(--cream); color: var(--russet);
  font-size: .85rem; letter-spacing: .06em;
  padding: .8em 1.4em; border: 1px solid var(--russet); border-radius: 3px;
  transition: top .25s var(--ease);
}
.skip:focus { top: 1rem; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(1.25rem, 5vw, 3.5rem); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

/* ---------- Rôles typographiques ---------- */
.section__title, .project-info__title,
.manifeste__text, .studio__title,
.contact__title, .hero__title, .studio__sign, .prose h1, .prose h2,
.blog__title, .article__citation {
  font-family: var(--font-title); font-weight: 500;
  line-height: 1.05; letter-spacing: .005em;
}
.section__title { font-size: var(--t-h1); margin-bottom: var(--space-block); }
p em, .section__title em { font-style: italic; }

.meta__label,
.field > label, .field__lab, .studio__sign span, .quiz__eyebrow,
.blog__date, .article__date {
  font-family: var(--font-body); font-weight: 600;
  font-size: var(--t-label); letter-spacing: var(--ls-label);
  text-transform: uppercase; line-height: 1.4;
}
.nav__menu a, .visit, .work__name {
  font-family: var(--font-body); font-weight: 500;
  font-size: var(--t-nav); letter-spacing: var(--ls-nav);
  text-transform: uppercase;
}

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  font-size: .92rem;
  letter-spacing: .01em;
  font-weight: 500;
  padding: .95em 1.7em;
  border-radius: 3px;
  transition: background .35s var(--ease), color .35s;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn--dark { background: var(--russet); color: var(--cream); }
.btn--dark:hover { background: var(--black-olive); }

.cta {
  display: inline-flex; align-items: center; gap: .7em;
  font-family: var(--font-title); font-style: italic; font-weight: 500;
  font-size: var(--t-h3); letter-spacing: .01em; line-height: 1.2;
  color: var(--russet);
  border: 1px solid currentColor; border-radius: 3px;
  padding: .72em 1.6em;
  background: none; cursor: pointer;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s;
}
.cta__arrow { font-style: normal; transition: transform .4s var(--ease); }
.cta:hover { background: var(--russet); color: var(--cream); border-color: var(--russet); }
.cta:hover .cta__arrow { transform: translateX(5px); }
.cta--light { color: var(--cream); }
.cta--light:hover { background: var(--cream); color: var(--russet); border-color: var(--cream); }
/* Recette de .meta__label répétée ici : .cta passe après elle dans la cascade. */
.cta--plain {
  border: 0; border-radius: 0; padding: 0; position: relative;
  font-family: var(--font-body); font-style: normal; font-weight: 600;
  font-size: var(--t-label); letter-spacing: var(--ls-label);
  text-transform: uppercase; line-height: 1.4;
  color: var(--black-olive);
}
.cta--plain .cta__arrow { display: inline-flex; }
.cta--plain .cta__arrow svg { display: block; }
.cta--plain::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -.12em; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease);
}
.cta--plain:hover { background: none; color: var(--russet); }
.cta--plain:hover::after { transform: scaleX(1); }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.6rem clamp(1.25rem, 5vw, 3.5rem);
  /* Dégagement sous l'encoche iPhone (viewport-fit=cover). */
  padding-top: calc(1.6rem + env(safe-area-inset-top, 0px));
  background: transparent;
  transition: transform .55s var(--ease);
}
.nav.nav-hidden { transform: translateY(-110%); }
/* Aplat crème plein, pas de dégradé : sur les photos, un dégradé faisait tomber les liens sous 4,5:1. */
.nav--float:not(.nav--split) { background: var(--cream); }
.nav { transition: transform .55s var(--ease), background .35s var(--ease); }
.nav__brand { display: flex; align-items: center; line-height: 0; color: var(--blanket); transition: color .4s; }
.nav--hero .nav__brand { color: var(--cream); }
.nav--solid .nav__brand, .nav--float .nav__brand { color: var(--russet); }
.nav__logo { height: 46px; width: auto; display: block; fill: currentColor; }
/* `backwards` garde le logo masqué pendant le délai de départ. */
@keyframes logo-in {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 -5% 0 0); }
}
.accueil .nav__logo { animation: logo-in 1.3s var(--ease) .2s backwards; }
.accueil .nav__logo { height: 58px; }

.nav__menu { display: flex; align-items: center; gap: clamp(1.8rem, 3.2vw, 3.2rem); }
.nav__menu a {
  color: var(--black-olive); position: relative; transition: color .4s, opacity .3s;
}
/* Safari 26 teinte la barre d'état d'après le premier élément fixe d'au moins 80 % de largeur
   et ~12px de haut collé au bord haut : couleur OPAQUE obligatoire, z-index:-1 le rend invisible. */
.teinte-haut {
  position: fixed; top: 0; left: 0; width: 100%; height: 12px;
  background-color: var(--cream);
  z-index: -1; pointer-events: none;
}

/* Gardent le haut crème pendant le chargement et le rebond du tire-vers-le-bas. */
.hero, .project-hero { background-color: var(--cream); }
body::before {
  content: ""; position: fixed; top: -100vh; left: 0; width: 100%; height: 100vh;
  background: var(--cream); pointer-events: none;
}

/* Fond réel (pas transparent) : Safari 26 teinte sa barre d'état d'après la nav fixe. */
.nav--solid { background: var(--cream); }
.nav--solid .nav__menu a { color: var(--russet); }
.nav--hero .nav__menu a { color: var(--cream); }
.nav--hero .nav__menu a.nav__cta { color: var(--cream); }
.nav--split .nav__brand { color: var(--cream); }
/* État flottant en dernier pour primer dans la cascade. */
.nav--float .nav__menu a { color: var(--russet); }
.nav--float .nav__menu a.nav__cta { color: var(--russet); }
.nav__menu a:not(.nav__cta)::after {
  content: ""; position: absolute; left: 0; bottom: -5px; height: 1px; width: 0;
  background: currentColor; transition: width .4s var(--ease);
}
.nav__menu a:not(.nav__cta):hover::after { width: 100%; }
.nav__menu a.active { font-weight: 600; }
.nav__cta {
  color: var(--russet);
  border-bottom: 1px solid currentColor; padding-bottom: 2px;
}
.nav__cta:hover { color: var(--black-olive); }

.nav__burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; z-index: 110; }
.nav__burger span { width: 26px; height: 2px; background: var(--blanket); transition: .35s var(--ease); }
.nav--solid .nav__burger span, .nav.menu-open .nav__burger span { background: var(--black-olive); }

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; display: grid; grid-template-columns: 1fr 1fr; min-height: 100svh; overflow: hidden; }
.hero__half { position: relative; display: block; overflow: hidden; }
.hero__slides { position: absolute; inset: 0; display: block; }
.hero__slide {
  position: absolute; inset: 0; display: block;
  opacity: 0;
  transition: opacity 1.4s var(--ease);
}
.hero__slide.is-active { opacity: 1; }
.hero__slide img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
}
/* Voile unique sur la section, pas par diapo : pendant un fondu, deux voiles s'additionneraient. */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(44,46,37,.42), rgba(44,46,37,.18) 34%, rgba(44,46,37,.3));
}
.hero__half .visit {
  z-index: 2; align-items: flex-end;
  padding-bottom: clamp(1.6rem, 4vw, 2.6rem); background: none;
}
.hero__half:hover .visit { opacity: 1; }
.hero__overlay {
  position: absolute; inset: 0; z-index: 3;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; pointer-events: none; padding: 0 1.5rem;
  background: radial-gradient(ellipse 58% 34% at 50% 50%,
              rgba(44,46,37,.52) 0%, rgba(44,46,37,.34) 45%, rgba(44,46,37,0) 78%);
}
/* Titre entièrement crème : le russet tombe à 2,46:1 sur photo, illisible. */
.hero__title { font-size: var(--t-display); line-height: .98; color: var(--cream); }
.hero__title em { display: block; font-style: italic; }

/* =========================================================
   SHOWCASE
   ========================================================= */
.showcase { background: var(--cream); padding: 0; }
.showcase__grid {
  max-width: var(--media-w); margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 3.5rem);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--media-gap);
  align-items: start;
}
.showcase__item { position: relative; display: block; overflow: hidden; }
.showcase__item img { width: 100%; height: auto; display: block; transition: transform 1.2s var(--ease); }
.showcase__item::after { content: ""; position: absolute; inset: 0; background: rgba(44,46,37,0); transition: background .45s; }
.showcase__item:hover img { transform: scale(1.05); }
.showcase__item:hover::after { background: rgba(44,46,37,.34); }
.visit {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 1rem;
  color: var(--cream);
  opacity: 0; transition: opacity .45s var(--ease);
}
.showcase__item:hover .visit, .work__item:hover .visit, .blog__item:hover .visit { opacity: 1; }
.visit--nom { display: none; }
@media (hover: none) {
  .visit { opacity: 1; align-items: center; background: rgba(44,46,37,.3); }
  .visit:not(.visit--nom) { display: none; }
  /* Classe nom-vu posée par main.js. Fondu pur : un déplacement déborderait sous la tuile. */
  .visit--nom { display: flex; opacity: 0; transition: opacity 1.1s var(--ease); }
  .nom-vu .visit--nom { opacity: 1; }
  /* Deux classes et non une : la règle d'affichage du nom, plus bas, gagnait la cascade à poids égal. */
  .work__item .work__name { display: none; }
}

/* =========================================================
   PAGE PROJET
   ========================================================= */
.project-hero { background: var(--cream); }
.project-hero__cadre { position: relative; width: 100%; height: 100svh; overflow: hidden; }
.project-hero__cadre::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(44,46,37,.42), rgba(44,46,37,.18) 34%, rgba(44,46,37,.3));
}
.project-hero__titre {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  display: flex; align-items: center; justify-content: center; text-align: center;
  font-family: var(--font-title); font-weight: 400;
  font-size: var(--t-display); line-height: .98; color: var(--cream);
  padding: 0 clamp(1rem, 4vw, 3rem);
}
/* main.js pilote l'opacité au défilement : la transition du reveal courrait après chaque frame. */
.project-hero__titre--defile { transition-duration: 0s; }
.project-hero picture { display: block; height: 100%; }
.project-hero__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.project-gallery { background: var(--cream); padding: 0 0 var(--space-section-sm); }

.project-info { background: var(--cream); padding: var(--space-section-sm) 0; }
.project-info__title { font-size: var(--t-h1); margin-bottom: var(--space-block); }
.project-info__grid { display: block; }
.project-info__desc { color: var(--black-olive); font-size: var(--t-lead); max-width: var(--measure); margin-bottom: var(--space-section-sm); }
.project-info__desc p { margin: 0; }
.project-info__desc p + p { margin-top: .65em; }
.project-info__meta {
  list-style: none;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.4rem, 4vw, 3rem);
  padding-top: var(--space-block); border-top: 1px solid rgba(44,46,37,.14);
}
.project-info__meta li { display: grid; gap: .35rem; align-content: start; }
.meta__label { color: var(--russet); }
.meta__value { font-family: var(--font-title); font-style: italic; font-size: var(--t-h4); color: var(--black-olive); }


/* =========================================================
   SPLIT CONTACT (image · panneau)
   ========================================================= */
.split { display: grid; grid-template-columns: 1fr 1fr; min-height: 100svh; }
.split__media { position: relative; overflow: hidden; }
.split__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Voile en haut : le wordmark crème de la nav tombait à 1,49:1 sur les murs clairs. */
.split__media::after {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 34%;
  background: linear-gradient(to bottom, rgba(44,46,37,.64), rgba(44,46,37,0));
  pointer-events: none;
}
.split__panel {
  background: var(--blanket); color: var(--black-olive);
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--space-nav) clamp(2rem, 5vw, 5rem) var(--space-section-sm);
}
.split__panel .contact__title {
  font-size: var(--t-h1);
  margin-bottom: var(--space-block);
  text-align: left; color: var(--black-olive);
}
.split__panel .contact__title em { color: var(--russet); }
.split__intro {
  color: var(--black-olive); max-width: 44ch; line-height: 1.6;
  font-size: var(--t-lead); margin-bottom: var(--space-block);
}
.split__cta { margin-top: .4rem; }

/* =========================================================
   MANIFESTE
   ========================================================= */
.manifeste { position: relative; background: var(--cream); text-align: center; padding: var(--space-section) 0; overflow: hidden; }
.manifeste__text { font-size: var(--t-h2); line-height: 1.15; color: var(--black-olive); }
.manifeste__text em { color: var(--russet); }

/* =========================================================
   STUDIO
   ========================================================= */
.studio { background: var(--cream); padding: var(--space-nav) 0 0; }
/* Même grille que .approche__grid : deux bords verticaux sur toute la page. */
.studio__split {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.studio__media img { width: 100%; height: auto; display: block; }
.studio__text > * { max-width: var(--measure); }
.studio__title { font-size: var(--t-h2); color: var(--black-olive); margin-bottom: var(--space-block); }
.studio__title em { font-style: italic; color: var(--russet); }
.studio__text p { margin-bottom: 1.1rem; color: var(--black-olive); }
.studio__lead { font-size: var(--t-lead); line-height: 1.65; }
.studio__text strong { color: var(--black-olive); font-weight: 700; }
/* Deux classes : .studio__sign seul perdait la cascade contre .studio__text p. */
.studio__text .studio__sign {
  margin-top: var(--space-block); margin-bottom: 0;
  display: flex; flex-direction: column;
  font-style: italic; font-size: var(--t-h4); color: var(--black-olive);
}
.studio__sign span { font-style: normal; color: var(--russet); margin-top: .4rem; }

/* =========================================================
   APPROCHE
   ========================================================= */
.approche, .metier { position: relative; background: var(--cream); color: var(--black-olive); padding: var(--space-section-sm) 0 0; }
.metier { padding-bottom: var(--space-section-sm); }
.approche__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); column-gap: clamp(2rem, 5vw, 4.5rem); row-gap: var(--space-block); align-items: start; }
.approche .section__title, .metier .section__title {
  grid-column: 2; font-size: var(--t-h2); color: var(--black-olive); margin-bottom: 0;
}
.approche .section__title em, .metier .section__title em { font-style: italic; color: var(--russet); }
.approche__body { grid-column: 2; }
.approche__body > * { max-width: var(--measure); }

.approche__split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.metier .approche__split { align-items: stretch; }
.metier .approche__split .approche__body { display: flex; flex-direction: column; }
.metier .approche__split .metier__foot { margin-top: auto; }
/* Cadre 2:3 porté par la case : en ratio sur l'image seule, elle débordait de sa case étirée. */
.metier .approche__split .approche__visuel { aspect-ratio: 2 / 3; }
.metier .approche__split .approche__visuel picture { display: block; height: 100%; }
.metier .approche__split .approche__visuel img { height: 100%; }
.approche__split--miroir { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.approche__split--miroir .approche__visuel { order: 2; }
.approche__split .approche__body { grid-column: auto; }
.approche__split .section__title { grid-column: auto; font-size: var(--t-h2); color: var(--black-olive); margin-bottom: var(--space-block); }
.approche__visuel { max-width: 440px; }
.approche__visuel img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; }
.studio__media img { aspect-ratio: 2 / 3; object-fit: cover; }
.approche__body p { margin-bottom: 1.1rem; color: var(--black-olive); }
.approche__body p:last-child { margin-bottom: 0; }
.approche__lead { font-size: var(--t-lead); line-height: 1.65; }

/* Justification : la césure auto est indispensable, sinon le français creuse des rivières de blanc.
   Elle s'appuie sur le lang="fr" du document. */
.studio__text p, .approche__body p, .project-info__desc {
  text-align: justify;
  hyphens: auto; -webkit-hyphens: auto;
  hyphenate-limit-chars: 12 4 4;
  -webkit-hyphenate-limit-before: 4; -webkit-hyphenate-limit-after: 4;
}
html[lang="en"] .studio__text p, html[lang="en"] .approche__body p, html[lang="en"] .project-info__desc {
  hyphens: manual; -webkit-hyphens: manual;
}
.prose p { text-align: left; hyphens: manual; }
/* Jamais de text-align-last:justify ni de text-wrap:balance sur la prose justifiée :
   mesuré, la paire triplait les gouttières sur toutes les lignes. */

.approche__body .metier__goal,
.studio__text .studio__sign {
  text-align: left; hyphens: manual;
}

/* balance réservé aux lignes d'affichage, jamais sur un paragraphe justifié. */
.hero__title, .manifeste__text, .section__title, .studio__title,
.project-info__title, .contact__title, .quiz__q, .notfound__line {
  text-wrap: balance;
}

.metier__list { list-style: none; display: grid; gap: .75rem; }
.metier__list li {
  font-size: var(--t-lead); line-height: 1.5;
  padding-left: 1.35em; position: relative;
}
.metier__list li::before {
  content: ""; position: absolute; left: .15em; top: .62em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--russet);
}
.metier__list--sans li { padding-left: 0; }
.metier__list--sans li::before { display: none; }
.metier__goal {
  margin-top: var(--space-block);
  font-family: var(--font-body); font-weight: 500;
  font-size: var(--t-lead); line-height: 1.5; color: var(--black-olive);
}
.metier__goal em { font-style: italic; color: var(--russet); }
.metier__foot { margin-top: var(--space-block); }

/* =========================================================
   GALERIE DE PROJET
   ========================================================= */
/* Hauteur de rangée unique calculée sur la largeur de colonne réelle (d'où le conteneur de
   requête) : verticales sur une colonne, horizontales sur deux, rangées alignées.
   Le facteur 1.42 répartit le recadrage sous 5 % sur chaque orientation. */
.project-gallery { container-type: inline-size; }
.gallery {
  --gal-pad: clamp(1.25rem, 5vw, 3.5rem);
  --gal-col: calc((min(var(--media-w), 100cqw) - 2 * var(--gal-pad) - 2 * var(--media-gap)) / 3);
  max-width: var(--media-w); margin: 0 auto;
  padding: 0 var(--gal-pad);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--media-gap);
  grid-auto-rows: calc(var(--gal-col) * 1.42);
  /* dense : la case libérée par une horizontale reportée est reprise, pas de trou. */
  grid-auto-flow: dense;
}
.gallery__item { overflow: hidden; cursor: pointer; position: relative; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s var(--ease); }
.gallery__item--wide { grid-column: span 2; }
.gallery__item::after {
  content: ""; position: absolute; inset: 0; background: rgba(131,65,36,0); transition: background .4s;
}
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item:hover::after { background: rgba(131,65,36,.12); }

.work { background: var(--cream); padding: calc(var(--space-nav) + var(--space-section-sm)) 0 var(--space-section); }
.work__grid {
  max-width: var(--media-w); margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 3.5rem);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--media-gap);
  align-items: start;
}
.work__item { position: relative; display: block; }
/* Le zoom vit sur le conteneur de l'image, pas sur le lien : le nom sous la photo ne doit pas être rogné. */
.work__media { position: relative; display: block; overflow: hidden; }
/* Cadre 2:3 imposé : une vignette hors ratio est recadrée au centre au lieu de désaligner la rangée. */
.work__media img { width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; display: block; transition: transform 1.2s var(--ease); }
.work__media::after { content: ""; position: absolute; inset: 0; background: rgba(44,46,37,0); transition: background .45s; }
.work__item:hover .work__media img { transform: scale(1.05); }
.work__item:hover .work__media::after { background: rgba(44,46,37,.18); }
.work__name {
  display: block; padding-top: .9rem;
  color: var(--black-olive); transition: color .35s;
}
.work__item:hover .work__name { color: var(--russet); }

/* =========================================================
   BLOG · liste des articles + page article
   ========================================================= */
.blog { background: var(--cream); padding: var(--space-nav) 0 var(--space-section); }
.blog__grid {
  max-width: var(--media-w); margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 3.5rem);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--media-gap);
  align-items: start;
}
.blog__item { position: relative; display: block; }
.blog__media { position: relative; display: block; overflow: hidden; }
.blog__media img { width: 100%; height: auto; display: block; transition: transform 1.2s var(--ease); }
.blog__media::after { content: ""; position: absolute; inset: 0; background: rgba(44,46,37,0); transition: background .45s; }
.blog__item:hover .blog__media img { transform: scale(1.05); }
.blog__item:hover .blog__media::after { background: rgba(44,46,37,.18); }
.blog__date { display: block; padding-top: .9rem; color: var(--russet); }
.blog__title { font-size: var(--t-h4); color: var(--black-olive); margin-top: .35rem; transition: color .35s; }
.blog__item:hover .blog__title { color: var(--russet); }

/* Gris hors palette, voulu : le placeholder doit se lire comme un emplacement, pas une couleur du site. */
.ph { display: block; width: 100%; background: #D9D5CD; }
.blog__media .ph { aspect-ratio: 1 / 1; }

.article__date { color: var(--russet); margin-bottom: 1rem; }
.article__figure { margin: var(--space-block) 0; }
.article__figure .ph { aspect-ratio: 3 / 2; }
.article__figure img { width: 100%; height: auto; display: block; }
.article__figure figcaption { font-size: var(--t-small); color: var(--russet); margin-top: .5rem; }
.article__figure--duo {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--media-gap);
}
.article__figure--duo .ph { aspect-ratio: 1 / 1; }
.article__figure--duo figcaption { grid-column: 1 / -1; }
.prose .article__liste { list-style: none; padding-left: 0; display: grid; gap: .75rem; margin-bottom: 1.4rem; }
.article__liste li { padding-left: 1.35em; position: relative; margin-bottom: 0; }
.article__liste li::before {
  content: ""; position: absolute; left: .15em; top: .62em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--russet);
}
.article__citation {
  margin: var(--space-block) 0; padding-left: clamp(1.5rem, 4vw, 2.5rem);
  font-style: italic; font-size: var(--t-h3); line-height: 1.3;
  color: var(--russet); text-wrap: balance;
}

/* =========================================================
   CLÔTURE DE PAGE
   ========================================================= */
.haut {
  position: fixed; right: 1.4rem; bottom: calc(1.4rem + env(safe-area-inset-bottom, 0px)); z-index: 150;
  width: 2.6rem; height: 2.6rem;
  display: flex; align-items: center; justify-content: center;
  font: inherit; font-size: 1.05rem; line-height: 1; cursor: pointer;
  color: var(--black-olive); background: rgba(250, 246, 239, .92);
  border: 1px solid rgba(44, 46, 37, .18);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), color .3s, visibility 0s linear .3s;
}
.haut.visible { opacity: 1; visibility: visible; transform: none; transition: opacity .3s var(--ease), transform .3s var(--ease), color .3s; }
.haut:hover { color: var(--russet); border-color: var(--russet); }

.closing { background: var(--cream); padding: var(--space-section-sm) 0; }

/* L'encoche et la barre du bas (iPhone) sont peintes avec la couleur de fond de html/body,
   jamais les pixels rendus : d'où le brun du pied de page partout, chaque section peint son propre fond. */
html, body { background-color: var(--brun-pied); }

html { scrollbar-width: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar { width: 0; height: 0; display: none; }
.closing--voisins { padding-top: 0; }
.closing__link {
  display: flex; justify-content: center; align-items: baseline;
  flex-wrap: wrap; gap: 1rem clamp(2.5rem, 7vw, 5.5rem);
}
.closing__link--paire { justify-content: space-between; align-items: center; }
.closing__fleche { display: inline-flex; transition: transform .4s var(--ease); }
.closing__fleche svg { display: block; }
.closing__voisin--apres:hover .closing__fleche { transform: translateX(5px); }
.closing__voisin--avant:hover .closing__fleche { transform: translateX(-5px); }

/* =========================================================
   CONTACT
   ========================================================= */
.contact__title {
  font-size: var(--t-display); line-height: .98;
  color: var(--black-olive); margin-bottom: var(--space-block);
}
.contact__title em { font-style: italic; color: var(--russet); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(1.4rem, 3vw, 2.6rem); }
.field { margin-bottom: 1.9rem; min-width: 0; }
.field > label, .field__lab {
  display: block; margin-bottom: .3rem; color: var(--russet);
}
.field input, .field textarea, .field select {
  width: 100%; font-family: var(--font-body); font-size: var(--t-lead); color: var(--black-olive);
  background: transparent; border: none; border-bottom: 1px solid rgba(44,46,37,.55);
  border-radius: 0; padding: .65em 0;
  transition: border-color .3s; resize: vertical;
}
/* .68 → 4,77:1 sur crème, au-dessus du seuil de 4,5. */
.field input::placeholder { color: rgba(44,46,37,.68); }
.field__help { display: block; font-size: var(--t-small); color: var(--russet); margin-top: .35rem; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--russet); }

.check { display: inline-flex; align-items: center; gap: .6rem; cursor: pointer; font-size: 1rem; color: var(--black-olive); }
.check input {
  appearance: none; -webkit-appearance: none;
  width: 17px; height: 17px; border: 1px solid rgba(44,46,37,.45); border-radius: 2px;
  cursor: pointer; position: relative; flex-shrink: 0; margin: 0;
  transition: background .25s, border-color .25s;
}
.check input:checked { background: var(--russet); border-color: var(--russet); }
.check input:checked::before {
  content: ""; position: absolute; inset: 3px;
  background: var(--cream);
  clip-path: polygon(14% 44%, 0 66%, 45% 100%, 100% 18%, 84% 4%, 42% 66%);
}
.check--consent { align-items: flex-start; font-size: .86rem; color: var(--black-olive); margin: 1.2rem 0 1.8rem; max-width: 62ch; line-height: 1.55; }
.check--consent input { margin-top: 3px; }

.field--file .file {
  display: inline-flex; align-items: baseline; cursor: pointer;
  font-family: var(--font-title); font-style: italic; font-size: var(--t-h4); font-weight: 500;
  text-transform: none; letter-spacing: .01em; color: var(--russet);
  border-bottom: 1px solid currentColor; padding: .55em 0 3px; margin-bottom: 0;
  transition: color .3s;
}
.field--file .file:hover { color: var(--black-olive); }

/* =========================================================
   QUESTIONNAIRE (onboarding plein écran)
   ========================================================= */
.quiz {
  position: fixed; inset: 0; z-index: 170;
  background: var(--cream);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  opacity: 0; visibility: hidden;
  transition: opacity .45s var(--ease), visibility 0s linear .45s;
}
.quiz.open { opacity: 1; visibility: visible; transition: opacity .45s var(--ease); }
.quiz__visuel { overflow: hidden; }
.quiz__visuel picture { display: block; height: 100%; }
.quiz__visuel img { width: 100%; height: 100%; object-fit: cover; display: block; }
.quiz__photo--gauche { object-position: left center; }
.quiz__photo--centre { object-position: center; }
.quiz__photo--droite { object-position: right center; }
.quiz__scene { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.quiz__top {
  display: flex; align-items: center; gap: clamp(1rem, 3vw, 2rem);
  padding: 1.2rem clamp(1.25rem, 5vw, 3.5rem);
  padding-top: calc(1.2rem + env(safe-area-inset-top, 0px));
}
.quiz__brand { display: block; line-height: 0; flex-shrink: 0; }
.quiz__brand:hover .quiz__mark { fill: var(--black-olive); }
.quiz__mark { width: 26px; height: 31px; fill: var(--russet); flex-shrink: 0; transition: fill .3s; }
.quiz__progress { flex: 1; height: 2px; background: rgba(44,46,37,.14); border-radius: 2px; overflow: hidden; }
.quiz__progress span { display: block; height: 100%; width: 0; background: var(--russet); transition: width .6s var(--ease); }
.quiz__close {
  background: none; border: none; cursor: pointer; color: var(--black-olive);
  font-size: 2.2rem; line-height: 1; padding: 0 .2em; transition: color .3s, transform .3s;
}
.quiz__close:hover { color: var(--russet); transform: rotate(90deg); }

/* Centrage confié à margin:auto sur l'enfant : align-items:center rognait le haut des étapes hautes en zone défilante. */
.quiz__form {
  flex: 1; display: flex; justify-content: center;
  padding: 1rem clamp(1.25rem, 5vw, 3.5rem); overflow-y: auto;
}
.quiz__form[hidden], .quiz__nav[hidden] { display: none; }

.quiz__intro {
  flex: 1; display: flex; justify-content: center;
  padding: 1rem clamp(1.25rem, 5vw, 3.5rem); overflow-y: auto;
}
.quiz__intro[hidden] { display: none; }
.quiz__intro-corps {
  width: min(660px, 100%); margin: auto 0;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: clamp(1.5rem, 4svh, 2.4rem);
}
.quiz__intro-titre { font-family: var(--font-title); font-weight: 400; font-size: var(--t-h2); line-height: 1.15; }
.quiz__intro-corps button.cta { background: none; border: 0; padding: 0; cursor: pointer; }
.quiz__intro-coordonnees { display: flex; flex-direction: column; align-items: center; gap: .55rem; }
.quiz__intro-nom { font-family: var(--font-title); font-style: italic; font-size: 1.2rem; color: var(--black-olive); line-height: 1.3; }
.quiz__intro-mail {
  font-family: var(--font-title); font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  color: var(--russet); text-decoration: none;
}
.quiz__intro-mail:hover { text-decoration: underline; text-underline-offset: 4px; }
.quiz__intro-zone {
  margin-top: .4rem;
  font-size: var(--t-label); letter-spacing: var(--ls-label); text-transform: uppercase;
  font-weight: 600; color: var(--black-olive);
}
.quiz__intro-reseaux { display: flex; gap: 1.15rem; color: var(--russet); }
.quiz__intro-reseaux a { color: inherit; display: inline-flex; }
.quiz__intro-reseaux svg { width: 22px; height: 22px; }
.quiz__intro-formulaire { display: flex; flex-direction: column; align-items: center; gap: .55rem; }
.quiz__intro-formulaire .quiz__intro-ou { margin-bottom: clamp(1.5rem, 4svh, 2.4rem); }
.quiz__intro-btn { background: none; border: 0; padding: 0; cursor: pointer; line-height: 1.3; display: inline-flex; align-items: center; gap: .6rem; }
.quiz__intro-btn:hover { text-decoration: underline; text-underline-offset: 4px; }
.quiz__intro-ou { font-family: var(--font-title); font-size: 1.05rem; color: var(--black-olive); opacity: .75; text-align: center; }
.quiz__step { display: none; width: min(660px, 100%); margin: auto 0; }
.quiz__step.active { display: block; animation: stepIn .55s var(--ease); }
@keyframes stepIn {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}
.quiz__eyebrow { color: var(--russet); margin-bottom: .9rem; }
.quiz__q {
  font-family: var(--font-title); font-weight: 500;
  font-size: var(--t-h2); line-height: 1.08;
  margin-bottom: var(--space-block);
}

/* Inputs natifs masqués visuellement : clavier et lecteurs d'écran fonctionnent sans ARIA. */
.choices { display: grid; gap: .9rem; }
.choices--multi { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.choice {
  display: block; text-align: left; cursor: pointer; position: relative;
  font-family: var(--font-title); font-size: var(--t-h4); font-weight: 500; line-height: 1.25;
  color: var(--black-olive); background: transparent;
  border: 1px solid rgba(44,46,37,.5); border-radius: 3px;
  padding: 1em 1.3em;
  transition: border-color .25s, background .25s, color .25s, transform .25s var(--ease);
}
.choice input {
  position: absolute; opacity: 0; width: 0; height: 0; margin: 0; pointer-events: none;
}
.choice small { display: block; font-family: var(--font-body); font-size: var(--t-small); opacity: .75; margin-top: .3em; }
.choice:hover { border-color: var(--russet); color: var(--russet); transform: translateY(-2px); }
.choice:has(input:focus-visible) { outline: 2px solid var(--russet); outline-offset: 3px; }
.choice:has(input:checked) { background: var(--russet); border-color: var(--russet); color: var(--cream); }
.choice:has(input:checked) small { opacity: .85; }
.quiz__err { color: var(--russet); font-size: var(--t-small); margin-top: 1rem; font-weight: 600; }
.quiz__status {
  width: min(660px, calc(100% - 2.5rem)); margin: 0 auto clamp(1.4rem, 3vh, 2rem);
  color: var(--russet); font-size: var(--t-small); font-weight: 600; text-align: center;
}
.quiz__status[hidden] { display: none; }

.quiz__nav {
  display: flex; justify-content: space-between; align-items: center;
  width: min(660px, calc(100% - 2.5rem)); margin: 0 auto;
  padding: 1rem 0 clamp(1.6rem, 4vh, 2.4rem);
}
.quiz__back {
  background: none; border: none; cursor: pointer;
  font-family: var(--font-title); font-style: italic; font-size: var(--t-h4);
  color: var(--black-olive); transition: color .3s;
}
.quiz__back:hover { color: var(--russet); }
.quiz__nav .btn { padding: 1em 2.8em; }

.quiz__done {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1.1rem; text-align: center; padding: 2rem;
}
.quiz__done[hidden] { display: none; }
.quiz__done-mark { width: 44px; height: 53px; fill: var(--russet); }
.quiz__done h3 { font-family: var(--font-title); font-weight: 500; font-size: var(--t-h1); }
.quiz__done p { color: var(--black-olive); max-width: 40ch; }
.quiz__done .btn { margin-top: 1rem; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  /* #6B3C24 : même couleur au pixel près que la zone sous le footer (iPhone), pas de liseré. */
  background: var(--brun-pied);
  /* Le coussin d'encoche vit dans le raccourci : posé ailleurs en longhand, il perdait la cascade. */
  color: var(--cream); padding: var(--space-block) 0 calc(var(--space-block) / 2 + env(safe-area-inset-bottom, 0px));
}
.footer__brand { display: block; line-height: 0; color: var(--cream); transition: color .3s; }
.footer__brand:hover { color: var(--blanket); }
/* La mise en page mobile déduit de --mono-h la largeur de sa première colonne. */
.footer { --mono-h: clamp(30px, 3.2vw, 40px); }
.footer__logo { height: var(--mono-h); width: auto; display: block; fill: currentColor; }

/* padding-top/bottom séparés, pas le raccourci : il remettrait à zéro le padding latéral hérité de .wrap. */
.footer__line {
  display: flex; align-items: center;
  gap: .8rem 2.2rem; flex-wrap: wrap;
  padding-bottom: calc(var(--space-block) / 2);
}
.footer__reach { margin-left: auto; }
.footer__nav, .footer__reach { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.9rem; }
.footer__line a, .footer__static { font-size: var(--t-small); transition: color .3s; }
.footer__line a:hover { color: var(--blanket); }
.footer__social { display: inline-flex; align-items: center; gap: .55em; }
.footer__suivre { display: inline-flex; align-items: center; gap: .9rem; }
.footer__suivre-mention { font-size: var(--t-label); letter-spacing: var(--ls-label); text-transform: uppercase; }
.footer__suivre .footer__social { transition: color .3s; }
.footer__ig, .footer__ic { flex-shrink: 0; display: block; }

.footer__legal {
  display: flex; justify-content: space-between; align-items: center;
  gap: .6rem 2rem; flex-wrap: wrap; padding-top: calc(var(--space-block) / 2);
}
.footer__legal .footer__static { font-size: var(--t-small); color: var(--blanket); }
.footer__legallinks { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem 1.6rem; }
.footer__copy, .footer__legallinks a { font-size: var(--t-small); color: var(--blanket); }
.footer__legallinks a:hover { color: var(--cream); }

/* =========================================================
   LIGHTBOX
   ========================================================= */
/* visibility:hidden indispensable : sans elle, les boutons restent tabulables visionneuse fermée. */
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(250,246,239,.96);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .35s var(--ease), visibility 0s linear .35s;
}
.lightbox.open { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .35s var(--ease); }
.lightbox img { max-width: 92vw; max-height: 90svh; }
.project-hero picture { cursor: zoom-in; }
.lightbox button { position: absolute; background: none; border: none; color: var(--black-olive); cursor: pointer; opacity: .8; transition: opacity .3s, transform .3s; }
.lightbox button:hover { opacity: 1; }
.lightbox__close { top: calc(1.4rem + env(safe-area-inset-top, 0px)); right: 1.8rem; font-size: 2.6rem; line-height: 1; }
.lightbox__prev, .lightbox__next { top: 50%; transform: translateY(-50%); font-size: 3.4rem; padding: 0 1.2rem; }
.lightbox__prev { left: .5rem; } .lightbox__next { right: .5rem; }
.lightbox__prev:hover { transform: translateY(-50%) translateX(-4px); }
.lightbox__next:hover { transform: translateY(-50%) translateX(4px); }
.lightbox__count {
  position: absolute; bottom: calc(.55rem + env(safe-area-inset-bottom, 0px)); left: 50%; transform: translateX(-50%);
  font-family: var(--font-title); font-style: italic; font-size: 1.05rem;
  color: var(--black-olive); opacity: .65; letter-spacing: .04em;
  font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1;
}

/* =========================================================
   REVEAL ANIMATION
   ========================================================= */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* La fente coupait les jambages : le texte prend du padding pour agrandir le masque,
   et c'est le masque qui porte les marges négatives rendant la place. */
.rideau { display: block; overflow: hidden; margin: -.15em 0 -.34em; }
/* Flex : en flux normal, les marges négatives des rideaux empilés fusionneraient. */
.hero__title { display: flex; flex-direction: column; }
.rideau__texte { display: block; padding: .15em 0 .34em; transform: translateY(130%); transition: transform 1.1s var(--ease); }
.reveal.in .rideau__texte { transform: none; }
.rideau + .rideau .rideau__texte { transition-delay: .18s; }
.project-hero__titre.reveal, .hero__title.reveal { opacity: 1; transform: none; transition: none; }

/* Clip sur l'img, pas sur le conteneur observé : IntersectionObserver ignore un élément entièrement rogné par clip-path. */
.reveal-img { position: relative; overflow: hidden; }
.reveal-img img {
  clip-path: inset(0 0 100% 0); transform: scale(1.14);
  transition: clip-path 1.2s var(--ease), transform 1.6s var(--ease);
}
.reveal-img.in img { clip-path: inset(0 0 0 0); transform: scale(1); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  .quiz { grid-template-columns: 1fr; }
  .quiz__visuel { display: none; }
  .quiz__scene { overflow-y: auto; }

  .studio__split, .approche__grid { grid-template-columns: 1fr; min-height: 0; }
  .approche__grid { gap: clamp(1.2rem, 4vw, 2rem); }
  /* En une colonne, le grid-column:2 des titres créait une deuxième colonne implicite. */
  .approche .section__title, .metier .section__title, .approche__body { grid-column: 1; }
  .approche__split { grid-template-columns: 1fr; row-gap: var(--space-block); }
  .approche__split .approche__visuel { order: 0; max-width: 420px; }
  .studio__media { max-width: 420px; }

  .showcase__grid, .work__grid, .blog__grid { grid-template-columns: repeat(2, 1fr); }
  /* Deux colonnes : la hauteur de rangée se recalcule sur un gap au lieu de deux. */
  .gallery {
    --gal-col: calc((min(var(--media-w), 100cqw) - 2 * var(--gal-pad) - var(--media-gap)) / 2);
    grid-template-columns: repeat(2, 1fr);
  }
  .split { grid-template-columns: 1fr; min-height: auto; }
  .split__media { min-height: 46svh; }
  .split__panel { padding-top: clamp(3rem, 8vh, 5rem); }

  .footer__line, .footer__legal {
    display: flex; flex-direction: column; align-items: center;
    text-align: center;
  }
  .footer__line { row-gap: .6rem; }
  .footer__legal { row-gap: .3rem; }
  .footer__brand { margin-bottom: .6rem; }
  .footer__nav, .footer__reach { justify-content: center; }
  .footer__reach { margin-left: 0; }


  /* Cibles tactiles : le remplissage vertical porte les liens à ~41 px. */
  .footer__nav a, .footer__reach a, .footer__legallinks a { padding: .55rem 0; }

  .nav__burger { display: flex; }
  /* visibility:hidden : sinon les liens du panneau fermé restent focusables au clavier. */
  .nav__menu {
    position: fixed; inset: 0 0 0 auto; width: min(78vw, 340px);
    background: var(--cream); flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 1.8rem; padding: 3rem; transform: translateX(100%); visibility: hidden;
    transition: transform .5s var(--ease), visibility 0s linear .5s;
    box-shadow: -20px 0 60px rgba(44,46,37,.2);
  }
  .nav.menu-open .nav__menu {
    transform: translateX(0); visibility: visible;
    transition: transform .5s var(--ease);
  }
  /* Chaque variante de contexte est répétée : plus spécifiques que .nav__menu a,
     elles gardaient leurs couleurs de bureau dans le panneau crème (liens invisibles). */
  .nav__menu a, .nav--float .nav__menu a,
  .nav--hero .nav__menu a, .nav--solid .nav__menu a { color: var(--black-olive); }
  .nav--float .nav__menu a.nav__cta, .nav--hero .nav__menu a.nav__cta,
  .nav--solid .nav__menu a.nav__cta { color: var(--russet); }
  .nav__logo { height: 36px; }
  .accueil .nav__logo { height: 44px; }
  .nav.menu-open .nav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.menu-open .nav__burger span:nth-child(2) { opacity: 0; }
  .nav.menu-open .nav__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* Empilement des volets du hero en portrait seulement : en paysage, les volets restent côte à côte. */
@media (max-width: 900px) and (orientation: portrait) {
  /* 100dvh suit la fenêtre réelle, barres comprises ou non ; svh en repli pour les navigateurs sans dvh. */
  .hero { grid-template-columns: 1fr; min-height: 100svh; min-height: 100dvh; }
  /* Frère après frère, et non :last-child : le dernier enfant du hero est son titre. */
  .hero__half + .hero__half { display: none; }
}

@media (max-width: 560px) {
  .metier__list li { padding: 1rem 0; }
  .gallery { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .gallery__item img { height: auto; }
  .gallery__item--wide { grid-column: auto; }
  .showcase__grid, .work__grid, .blog__grid { grid-template-columns: 1fr; }
  .showcase__item:nth-child(n + 5) { display: none; }
  .cta:not(.cta--plain) { font-size: var(--t-h4); }

  /* Fin de la justification sous 560 px : trop peu de mots par ligne pour répartir le blanc. */
  .studio__text p, .approche__body p, .project-info__desc, .prose p {
    text-align: left;
  }
  .project-info__meta { grid-template-columns: 1fr; gap: 1.2rem; }
  .hero__title { font-size: clamp(2.6rem, 13vw, 4rem); }
  .form-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   PAGES DE TEXTE (mentions légales, confidentialité, 404)
   ========================================================= */
.prose { background: var(--cream); padding: var(--space-nav) 0 var(--space-section); }
.prose .wrap { max-width: 820px; }
/* Un lien ne se coupe jamais : l'adresse mail se césurait en plein milieu. */
.prose a { hyphens: none; -webkit-hyphens: none; overflow-wrap: normal; word-break: keep-all; }
.prose h1 { font-size: var(--t-h1); margin-bottom: var(--space-block); }
.prose h2 { font-size: var(--t-h3); margin: var(--space-section-sm) 0 .7rem; }
.prose p, .prose li { color: var(--black-olive); margin-bottom: .9rem; max-width: 68ch; }
.prose ul { padding-left: 1.2rem; margin-bottom: 1.4rem; }
.prose a { color: var(--russet); border-bottom: 1px solid currentColor; }
.prose a:hover { color: var(--black-olive); }
.prose__updated { font-size: var(--t-small); color: var(--russet); margin-bottom: 2.5rem; }
/* Éléments que Soul Concept doit renseigner avant la mise en ligne. */
.todo {
  background: var(--blanket); color: var(--russet); font-weight: 600;
  padding: .1em .45em; border-radius: 2px;
}

/* Page 404 */
.notfound { min-height: 78svh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: var(--cream); padding: 8rem 1.5rem 5rem; gap: 1.2rem; }
.notfound__code { font-family: var(--font-title); font-size: var(--t-display); line-height: 1; color: var(--russet); }
.notfound__line { font-family: var(--font-title); font-size: var(--t-h2); line-height: 1.2; max-width: 22ch; }

.no-trans *, .no-trans *::before, .no-trans *::after { transition: none !important; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .reveal-img img { clip-path: none; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   IMPRESSION
   ========================================================= */
@media print {
  .nav, .quiz, .lightbox, .skip, .closing { display: none !important; }
  body { background: #fff; color: #000; }
  .reveal, .reveal-img img { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .footer { background: #fff; color: #000; border-top: 1px solid #000; padding-top: 1.5rem; }
  .footer__coltitle, .footer__col a, .footer__static, .footer__copy, .footer__tagline { color: #000; opacity: 1; }
  .split { grid-template-columns: 1fr; min-height: 0; }
  .split__panel { background: #fff; color: #000; }
  .split__intro, .contact__title, .contact__title em { color: #000; }
  .manifeste, .approche { background: #fff; }
  .gallery, .showcase__grid, .work__grid, .blog__grid { grid-template-columns: 1fr 1fr; }
  .gallery__item, .showcase__item, .work__item, .blog__item { break-inside: avoid; }
  .project-hero__img { height: auto; max-height: 60vh; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; word-break: break-all; }
}
