/* ==========================================================================
   LILY CERRILLOS — PORTFOLIO
   Feuille de style unique. Les couleurs et tailles principales sont
   des variables (:root) : les modifier ici les change partout.
   ========================================================================== */

/* ---------- Polices ----------
   Titres brodés : TeX Gyre Chorus (chancelière, licence libre GUST),
            transformée en broderie au point de croix par stitch.js.
   Titres et texte : la typo système d'Apple (SF Pro), comme sur apple.com.
            Elle s'affiche sur Mac, iPhone et iPad. Ailleurs, la page utilise
            Inter (licence libre OFL), fournie avec le site. */
@font-face {
  font-family: "Chorus Broderie";
  src: url("../fonts/chorus.woff") format("woff");
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-semibold.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-bold.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  /* Palette */
  --bordeaux: #6c2c25;   /* oven glow */
  --beurre: #f2edbd;     /* butter stick */
  --sardine: #7ca2e0;    /* sardine tin */
  --tomate: #eb5e3a;     /* tomato soup */
  --olive: #8a8638;      /* le vert des objets du plan de travail */
  --bordeaux-fonce: #4e1d18;
  --encre: var(--bordeaux);
  --texte-doux: #7f4a3f;  /* le texte courant, un ton sous les titres */

  --texte: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif;
  --titre: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Helvetica Neue", Arial, sans-serif;
  --script: "Chorus Broderie", "Snell Roundhand", "Apple Chancery", cursive;

  --bande: clamp(268px, 25vw, 390px);   /* largeur de la bande fixe */
  --barre: 52px;                        /* hauteur de la barre mobile */
  --marge: clamp(20px, 3.6vw, 64px);    /* marges du contenu */
  --point: 4.2px;                        /* taille d'un point de broderie (titres) */

  --ease: cubic-bezier(.22, .8, .24, 1);
  --pointille: 1.5px dashed currentColor; /* le « point avant » des coutures */

  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  @view-transition { navigation: auto; }
}
body {
  margin: 0;
  background: var(--beurre);
  color: var(--encre);
  font-family: var(--texte);
  font-size: 15.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* Grain : une texture discrète, comme sur les tirages que j'aime */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: .32;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .17 0 0 0 0 .14 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
p { margin: 0 0 1em; }
/* Hiérarchie du texte : titres en bordeaux plein et en gras, texte courant un ton plus doux,
   mots importants en gras bordeaux, repères (numéros, étiquettes) en vert. */
.bloc__texte p, .souvenir__texte p, .planche__texte p, .bloc__chapo p, .a-propos__texte p, .trio p, .experiences p,
.flow__texte p, .manifeste__texte p, .bloc--carrousel__texte p, .rotation__texte p, .duo__legende, .bloc__legende { color: var(--texte-doux); }
strong { font-weight: 700; color: var(--bordeaux); }
.tuile p, .tuile strong { color: inherit; }
.trio__mot, .tuile__mot { font-weight: 700; }
.bloc__texte p:first-child, .bloc--carrousel__texte .bloc__texte p:first-child { color: var(--bordeaux); font-size: 1.04em; }
h1, h2, h3 { margin: 0; font-weight: 400; }
ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
::selection { background: var(--tomate); color: var(--beurre); }
:focus-visible { outline: 2px solid var(--tomate); outline-offset: 3px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.evitement {
  position: fixed; left: 12px; top: -60px; z-index: 100;
  background: var(--beurre); color: var(--bordeaux); padding: 8px 14px;
}
.evitement:focus { top: 12px; }
.noscript { margin: var(--marge); }

/* ---------- Broderie (titres au point de croix) ---------- */
.broderie { display: block; line-height: 0; }
.broderie__svg {
  display: block;
  width: calc(var(--cols) * var(--point));
  max-width: 100%;
  height: auto;
  overflow: visible;
}
.broderie--largeur .broderie__svg { width: 100%; }
.broderie__fil {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.7;
  stroke-linecap: round;
}
.broderie__fil--dessous { opacity: .72; }
/* titre en attente de broderie : la police seule */
[data-stitch]:not(.broderie) { font-family: var(--script); line-height: 1.1; }

/* ---------- « À compléter » ---------- */
.a-completer {
  display: inline-flex; align-items: baseline; gap: .6em; flex-wrap: wrap;
  padding: .2em .6em .25em;
  border: var(--pointille);
  border-radius: 3px;
  color: var(--tomate);
  font-size: .82rem;
  line-height: 1.4;
}
.a-completer__tag {
  font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700;
}
.a-completer--bloc { display: flex; padding: 1.1em 1.2em; }
html:not(.montre-a-completer) .a-completer,
html:not(.montre-a-completer) .liste-a-completer { display: none; }

/* ==========================================================================
   BANDE BORDEAUX
   ========================================================================== */
.bande {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  width: var(--bande);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(22px, 3.2vh, 40px) clamp(22px, 2.2vw, 36px);
  background: var(--bordeaux);
  color: var(--beurre);
  overflow-y: auto;
  scrollbar-width: none;
}
/* le plan de travail en miniature (pages projet seulement), discret */
.bande__plan { display: block; color: var(--beurre); opacity: .72; transition: opacity .35s var(--ease); }
.bande__plan:hover, .bande__plan:focus-visible { opacity: 1; }
.bande__plan-cadre { position: relative; display: block; aspect-ratio: 1454 / 1082; overflow: hidden; }
.bande__plan-fond { width: 100%; height: 100%; display: block; }
.bande__plan-objet { position: absolute; display: block; max-width: none; opacity: .55; transition: opacity .35s var(--ease); }
.bande__plan-objet.est-ici { opacity: 1; z-index: 2; }
.bande__plan:hover .bande__plan-objet { opacity: .9; }
.bande__plan-ici {
  position: absolute; z-index: 3; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
  border: 1.5px solid var(--tomate); animation: bande-ici 2.6s var(--ease) infinite;
}
@keyframes bande-ici { 0%, 100% { transform: scale(.9); opacity: 1; } 50% { transform: scale(1.3); opacity: .4; } }
.bande__plan-legende { display: block; margin-top: 10px; font-size: .74rem; transition: transform .3s var(--ease); }
.bande__plan-legende b { color: var(--tomate); font-weight: 400; margin-right: 4px; display: inline-block; transition: transform .3s var(--ease); }
.bande__plan:hover .bande__plan-legende b { transform: translateX(-4px); }
@media (max-height: 760px) { .bande__plan { display: none; } }
@media (prefers-reduced-motion: reduce) { .bande__plan-ici { animation: none; } }
.bande a { text-decoration: none; }
.bande__mot { display: block; color: var(--beurre); margin: 0 -4px; }
.bande__mot .broderie__fil { stroke-width: 2.9; }
.bande__mot:hover .broderie__fil--dessous { stroke: var(--tomate); opacity: 1; }
.bande__mot [data-stitch]:not(.broderie) { font-size: 4.4rem; }

.bande__nom {
  margin: 0 0 .35em;
  font-size: clamp(1.6rem, 2.3vw, 2.15rem);
  line-height: 1.02;
  letter-spacing: -.02em;
}
.bande__formation {
  margin: 0 0 1.6em;
  font-size: .78rem;
  letter-spacing: .02em;
  opacity: .78;
}
.bande__accroche {
  margin: 0;
  max-width: 22ch;
  font-size: clamp(1rem, 1.25vw, 1.16rem);
  line-height: 1.32;
  padding-top: 1.1em;
  border-top: var(--pointille);
  border-top-color: rgba(242, 237, 189, .55);
}
.bande__nav ul { display: grid; gap: 2px; margin-bottom: 18px; }
.bande__nav a {
  display: flex; align-items: baseline; gap: 12px;
  padding: 3px 0;
  font-size: .92rem;
  transition: color .25s var(--ease), transform .25s var(--ease);
}
.bande__nav a:hover { color: #fff; transform: translateX(3px); }
.bande__nav a[aria-current="true"] .bande__n::after { content: " ×"; color: var(--tomate); }
.bande__n { font-size: .66rem; letter-spacing: .06em; opacity: .6; min-width: 1.4em; }
.bande__recherche {
  margin: 0;
  font-size: .72rem;
  letter-spacing: .03em;
  line-height: 1.45;
  color: var(--beurre);
  opacity: .78;
}
.bande__recherche::before {
  content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px;
  border-radius: 50%; background: var(--tomate); vertical-align: 1px;
}

/* Barre compacte : mobile uniquement */
.barre { display: none; }

/* ==========================================================================
   CONTENU
   ========================================================================== */
.contenu { margin-left: var(--bande); min-height: 100vh; position: relative; }

/* ---------- Accueil : plan de travail ---------- */
.accueil {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 14px;
  padding: var(--marge);
  padding-bottom: 18px;
}
.plan {
  position: relative;
  width: min(100%, calc((100svh - var(--marge) - 64px) * 1454 / 1082));
  aspect-ratio: 1454 / 1082;
  box-shadow: 0 1px 0 rgba(108, 44, 37, .12), 0 24px 50px -30px rgba(78, 29, 24, .55);
}
.plan__image { width: 100%; height: 100%; user-select: none; -webkit-user-drag: none; }
.plan__voile {
  position: absolute; inset: 0; z-index: 1;
  background: rgba(78, 29, 24, .32);
  opacity: 0;
  pointer-events: none;
  transition: opacity .45s var(--ease);
}
@media (hover: hover) {
  .plan:has(.objet:not(.objet--attente):hover) .plan__voile,
  .plan:has(.objet:not(.objet--attente):focus-visible) .plan__voile { opacity: 1; }
  .plan:has(.objet--attente:hover) .plan__voile { opacity: .45; }
}
.plan:has(.objet--appel) .plan__voile { opacity: .6; transition-duration: .8s; }

/* Objet interactif */
.objet {
  position: absolute;
  z-index: 2;
  display: block;
  color: var(--bordeaux);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}
.objet__corps {
  position: absolute; inset: 0;
  transform-origin: 50% 50%;
  transition: transform .5s var(--ease), filter .5s var(--ease);
  will-change: transform;
}
.objet__decoupe {
  position: absolute; inset: 0;
  background-image: url("../img/plan-de-travail.jpg");
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity .2s linear;
}
.objet__decoupe--png { width: 100%; height: 100%; background: none; user-select: none; -webkit-user-drag: none; }
.objet:hover, .objet:focus-visible { z-index: 4; }
.objet:hover .objet__decoupe,
.objet:focus-visible .objet__decoupe { opacity: 1; }
.objet:hover .objet__corps,
.objet:focus-visible .objet__corps {
  transform: scale(var(--zoom, 1.06));
  filter: drop-shadow(0 14px 16px rgba(48, 16, 12, .45)) drop-shadow(0 2px 3px rgba(48, 16, 12, .35));
}
/* appel à l'arrivée : chaque objet relié se soulève brièvement, à tour de rôle */
.objet--appel { z-index: 4; }
.objet--appel .objet__corps { animation: objet-appel 1.25s var(--ease) both; }
.objet--appel .objet__decoupe { animation: objet-appel-decoupe 1.25s linear both; }
@keyframes objet-appel {
  0%, 100% { transform: scale(1); filter: none; }
  38%, 62% { transform: scale(var(--zoom, 1.06)); filter: drop-shadow(0 14px 16px rgba(48, 16, 12, .45)) drop-shadow(0 2px 3px rgba(48, 16, 12, .35)); }
}
@keyframes objet-appel-decoupe { 0% { opacity: 0; } 8%, 92% { opacity: 1; } 100% { opacity: 0; } }
.objet--attente { cursor: default; }
.objet--attente:hover .objet__corps,
.objet--attente:focus-visible .objet__corps { transform: scale(calc(1 + (var(--zoom) - 1) * .55)); }

/* Repère discret : un point de croix sur chaque objet-projet */
.objet__marque {
  position: absolute;
  width: 13px; height: 13px;
  margin: -6.5px 0 0 -6.5px;
  pointer-events: none;
  transition: opacity .3s var(--ease), transform .4s var(--ease);
  font-size: 0;
}
.objet__marque::before, .objet__marque::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 15px; height: 2.6px; border-radius: 2px;
  background: var(--tomate);
  transform: translate(-50%, -50%) rotate(45deg);
}
.objet__marque::after { transform: translate(-50%, -50%) rotate(-45deg); }
.objet--attente .objet__marque { opacity: .5; }
.objet--attente .objet__marque::before, .objet--attente .objet__marque::after { background: var(--beurre); }
.objet:hover .objet__marque, .objet:focus-visible .objet__marque { opacity: 0; transform: scale(.4); }

/* Étiquette au survol : une petite étiquette cousue */
.objet__etiquette {
  position: absolute;
  z-index: 5;
  display: inline-flex; align-items: baseline; gap: 8px;
  white-space: nowrap;
  padding: 6px 11px 7px;
  background: var(--beurre);
  color: var(--bordeaux);
  font-size: .8rem;
  line-height: 1.2;
  border-radius: 2px;
  box-shadow: 0 0 0 3px var(--beurre), inset 0 0 0 1px rgba(108, 44, 37, .0);
  outline: 1.2px dashed rgba(108, 44, 37, .55);
  outline-offset: -4px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s var(--ease), transform .4s var(--ease);
}
.objet__etiquette--haut { bottom: calc(100% + 14px); }
.objet__etiquette--bas { top: calc(100% + 14px); }
.objet__etiquette--centre { left: 50%; transform: translate(-50%, 6px); }
.objet__etiquette--gauche { left: 0; transform: translateY(6px); }
.objet__etiquette--droite { right: 0; transform: translateY(6px); }
.objet:hover .objet__etiquette, .objet:focus-visible .objet__etiquette { opacity: 1; }
.objet:hover .objet__etiquette--centre, .objet:focus-visible .objet__etiquette--centre { transform: translate(-50%, 0); }
.objet:hover .objet__etiquette--gauche, .objet:hover .objet__etiquette--droite,
.objet:focus-visible .objet__etiquette--gauche, .objet:focus-visible .objet__etiquette--droite { transform: none; }
.objet__num { font-size: .66rem; letter-spacing: .06em; color: var(--olive); font-weight: 700; }
.objet__fleche { color: var(--tomate); }
.objet--attente .objet__etiquette { color: var(--bordeaux); }
.objet__nom { font-weight: 700; }
.objet__attente { opacity: .65; }

.accueil__pied {
  width: min(100%, calc((100svh - var(--marge) - 64px) * 1454 / 1082));
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-size: .8rem; line-height: 1;
}
.plan__consigne { margin: 0; color: var(--olive); font-weight: 700; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; line-height: 1; }
.consigne--toucher { display: none; }
.accueil__suite { text-decoration: none; white-space: nowrap; }
.accueil__suite span { display: inline-block; margin-left: 4px; color: var(--tomate); }


/* Mode calage (index.html?calage) */
.plan--calage { cursor: crosshair; }
.plan--calage .objet { pointer-events: none; }
.calage__svg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 6; pointer-events: none; }
.calage__svg polygon { fill: rgba(235, 94, 58, .18); stroke: var(--tomate); stroke-width: .25; vector-effect: non-scaling-stroke; }
.calage__trace { fill: none; stroke: #1c4ed8; stroke-width: 2; vector-effect: non-scaling-stroke; }
.calage__panneau {
  position: fixed; right: 16px; bottom: 16px; z-index: 70; width: 320px;
  padding: 14px; background: #fff; color: #222; font-size: 12px; box-shadow: 0 8px 30px rgba(0,0,0,.2);
}
.calage__panneau textarea { width: 100%; font: 11px/1.4 monospace; }

/* ---------- Sections ---------- */
.section {
  padding: clamp(72px, 11vh, 140px) var(--marge);
  position: relative;
}
.section + .section::before {
  /* couture : une ligne de point avant entre les sections */
  content: ""; position: absolute; top: 0; left: var(--marge); right: var(--marge);
  border-top: var(--pointille); color: rgba(108, 44, 37, .35);
}
.section__titre { color: var(--bordeaux); margin-bottom: clamp(36px, 6vh, 64px); }
.section__titre[data-stitch]:not(.broderie) { font-size: clamp(3.4rem, 7vw, 6rem); }
.petit-titre {
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
  margin: 0 0 1.1em;
  color: var(--bordeaux);
}
.petit-titre::before { content: "× "; color: var(--tomate); letter-spacing: 0; }

/* À propos */
.a-propos__grille {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: clamp(16px, 2vw, 32px);
  row-gap: 40px;
}
/* ligne 1 : la phrase ; ligne 2 : la photo et le texte, alignés en haut et en bas */
.a-propos__lead {
  grid-column: 1 / span 7; grid-row: 1;
  margin: 0;
  font-size: clamp(1.75rem, 3.1vw, 2.9rem);
  line-height: 1.06;
  letter-spacing: -.025em;
}
.a-propos__lead em { font-style: normal; color: var(--tomate); }
.a-propos__texte { grid-column: 8 / span 5; grid-row: 2; max-width: 52ch; }
.a-propos__texte > :first-child { margin-top: 0; }
.a-propos__texte > :last-child { margin-bottom: 0; }
/* Portrait : bichromie bordeaux comme le déroulé, couleur au survol.
   Sur ordinateur, il prend la hauteur exacte du texte d'à côté. */
.a-propos__portrait { grid-column: 1 / span 6; grid-row: 2; margin: 0; position: relative; min-height: 340px; }
.a-propos__photo { position: absolute; inset: 0; display: block; overflow: hidden; background: var(--bordeaux); }
.a-propos__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; display: block; }
.a-propos__couleur { opacity: 0; transition: opacity .5s var(--ease); }
.a-propos__photo:hover .a-propos__couleur { opacity: 1; }
.a-propos__portrait figcaption { margin-top: 10px; font-size: .74rem; color: var(--texte-doux); }
.a-propos__portrait figcaption::before { content: "× "; color: var(--tomate); }
.a-propos__texte .petit-titre:not(:first-child) { margin-top: 2.6em; }
.liste-a-completer { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 1em; }

.trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 32px);
  margin-top: clamp(64px, 10vh, 120px);
  counter-reset: trio;
}
.trio li { border-top: 1px solid var(--bordeaux); padding-top: 16px; counter-increment: trio; }
.trio__mot {
  display: block;
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  letter-spacing: -.02em;
  margin-bottom: 10px;
}
.trio__mot::before {
  content: counter(trio, decimal-leading-zero);
  font-size: .62rem; letter-spacing: .08em; vertical-align: super; margin-right: 8px; color: var(--olive); font-weight: 700;
}
.trio p { margin: 0; max-width: 34ch; }

/* Quatre expériences */
.experiences__intro { max-width: 62ch; margin-bottom: clamp(40px, 6vh, 64px); }
.experiences__intro p { font-size: clamp(1.05rem, 1.35vw, 1.25rem); line-height: 1.45; }
.tuiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.tuile {
  position: relative;
  min-height: clamp(300px, 40vh, 420px);
  padding: 22px 22px 26px;
  display: flex; flex-direction: column;
  transition: transform .5s var(--ease);
}
.tuile__n { font-size: .68rem; letter-spacing: .08em; font-weight: 700; }
.tuile__mot {
  margin: auto 0 14px;
  font-size: clamp(1.5rem, 2.2vw, 2.1rem);
  letter-spacing: -.025em;
  line-height: 1;
}
.tuile p { margin: 0; font-size: .9rem; line-height: 1.45; }
.tuile--matiere { background: var(--tomate); color: var(--bordeaux-fonce); }
.tuile--espace { background: var(--sardine); color: var(--bordeaux-fonce); }
.tuile--couleur { background: var(--bordeaux); color: var(--beurre); }
.tuile--image { background: var(--olive); color: var(--beurre); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .tuile:hover { transform: translateY(-6px); }
}

.pratiques, .inspirations { margin-top: clamp(56px, 9vh, 96px); }
.pratiques__liste {
  display: flex; flex-wrap: wrap; align-items: baseline;
  font-size: clamp(1.35rem, 2.4vw, 2.2rem);
  letter-spacing: -.02em;
  line-height: 1.25;
  margin: 0;
}
.pratiques__liste span + span::before {
  content: "×"; color: var(--tomate); margin: 0 .45em; font-size: .7em; vertical-align: .08em;
}
.inspirations dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 32px); }
.inspirations dl div { border-top: 1px solid var(--bordeaux); padding-top: 14px; }
.inspirations dt { font-weight: 700; margin-bottom: 4px; }
.inspirations dd { max-width: 34ch; }
.inspirations__note { margin-top: 28px; font-size: .9rem; opacity: .85; }
/* Mes logiciels : même écriture que les pratiques, un cran plus petit */
.outils { margin-top: clamp(40px, 6vh, 64px); }
.outils__liste { font-size: clamp(1.1rem, 1.8vw, 1.6rem); color: var(--texte-doux); }
/* Logiciels : logos en bordeaux, lettres et fond transparents */
.logiciels { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: clamp(12px, 1.6vw, 22px); }
.logiciels img { display: block; width: auto; height: clamp(40px, 4vw, 56px); }
.logiciels__texte { font-size: clamp(1.1rem, 1.8vw, 1.6rem); color: var(--bordeaux); }

/* Le labo : une planche libre, comme un mur d'atelier */
.labo { scroll-margin-top: calc(var(--barre) + 16px); }
.labo .pratiques { margin-top: clamp(56px, 9vh, 96px); }
.labo__entete { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; flex-wrap: wrap; margin-bottom: 22px; }
.labo__entete .petit-titre { margin: 0; }
.labo__chapo { margin: 0; max-width: 46ch; font-size: .92rem; color: var(--texte-doux); }
.labo__planche { columns: 3 220px; column-gap: clamp(14px, 1.8vw, 26px); }
/* trois colonnes qui défilent du bas vers le haut, en boucle */
.labo__planche--colonnes {
  columns: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 26px);
  height: clamp(520px, 82vh, 860px); overflow: hidden;
}
.labo__colonne { cursor: grab; user-select: none; }
.labo__colonne.est-tenue { cursor: grabbing; }
.labo__colonne img { -webkit-user-drag: none; }
.labo__colonne { min-width: 0; }
.labo__colonne:nth-child(2) { padding-top: clamp(60px, 10vh, 120px); }
.labo__piste { will-change: transform; }
.labo__serie-cartes > ol { display: grid; gap: clamp(14px, 1.8vw, 26px); padding-bottom: clamp(14px, 1.8vw, 26px); }
.labo__planche--colonnes .labo__case { margin: 0; }
@keyframes labo-defile { from { transform: translateY(0); } to { transform: translateY(calc(-1 * var(--serie, 0px))); } }
@media (prefers-reduced-motion: reduce) { .labo__planche--colonnes { height: auto; } }
.labo__nb { position: absolute; z-index: 2; right: 8px; bottom: 8px; padding: 3px 8px 4px; background: var(--beurre); color: var(--bordeaux); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; }
.labo__carrousel-scene { position: relative; height: min(62vh, 620px); touch-action: pan-y; user-select: none; }
.labo__carrousel-scene img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: left center; opacity: 0; transform: translateX(14px); transition: opacity .7s var(--ease), transform .9s var(--ease); -webkit-user-drag: none; }
.labo__carrousel-scene img.est-active { opacity: 1; transform: none; }
.labo__carrousel-commandes { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
.labo__carrousel-commandes .carrousel__compteur { margin: 0; }
.labo__case { break-inside: avoid; margin-bottom: clamp(14px, 1.8vw, 26px); }
.labo__bouton { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; color: inherit; font: inherit; cursor: zoom-in; }
.labo__photo { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 1; overflow: hidden; background: var(--bordeaux); }
.labo__case--haut .labo__photo { aspect-ratio: 3 / 4; }
.labo__case--large .labo__photo { aspect-ratio: 16 / 10; }
.labo__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .6s var(--ease), transform .8s var(--ease); }
.labo__couleur { opacity: 0; }
.labo__bouton:hover .labo__couleur, .labo__bouton:focus-visible .labo__couleur { opacity: 1; }
.labo__bouton:hover .labo__photo img, .labo__bouton:focus-visible .labo__photo img { transform: scale(1.03); }
.labo__lecture { position: absolute; z-index: 2; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--beurre); color: var(--bordeaux); font-size: .9rem; padding-left: 3px; box-shadow: 0 6px 14px rgba(48, 16, 12, .3); }
.labo__case--vide .labo__photo { border: var(--pointille); background: none; color: rgba(108, 44, 37, .5); }
.labo__legende { display: flex; align-items: baseline; gap: 8px; margin-top: 10px; }
.labo__n { font-size: .66rem; letter-spacing: .08em; font-weight: 700; color: var(--olive); margin: 0; text-transform: uppercase; }
.labo__titre { font-weight: 700; font-size: .95rem; line-height: 1.2; }
.labo__bouton:hover .labo__titre { color: var(--tomate); }
.labo__technique { display: block; margin-top: 2px; padding-left: 30px; font-size: .78rem; font-style: italic; color: var(--texte-doux); }

/* fiche du labo */
.labo__fiche { border: 0; padding: 0; margin: auto; width: min(94vw, 1180px); max-height: 90vh; background: var(--beurre); color: var(--bordeaux); overflow: visible; }
.labo__fiche::backdrop { background: rgba(48, 16, 12, .88); }
.labo__fiche-corps { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(0, 2.3fr); gap: clamp(20px, 3vw, 44px); padding: clamp(18px, 2.6vw, 36px); max-height: 90vh; overflow: auto; }
.labo__fiche-texte { position: sticky; top: 0; align-self: start; }
.labo__fiche-texte p { color: var(--texte-doux); font-size: .95rem; }
/* fiche à vidéos : texte au-dessus, les vidéos carrées en grand, côte à côte */
.labo__fiche-corps--videos { grid-template-columns: 1fr; }
.labo__fiche-corps--videos .labo__fiche-texte { position: static; }
.labo__fiche-corps--videos .labo__fiche-titre { margin-bottom: 4px; }
.labo__fiche:has(.labo__fiche-corps--videos) { width: min(96vw, 1400px); }
.labo__fiche-titre { font-size: clamp(1.4rem, 2.2vw, 1.9rem); line-height: 1.1; font-weight: 700; margin: 8px 0 16px; color: var(--bordeaux); }
.labo__lien { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--olive); text-decoration: none; border-bottom: 1px solid currentColor; }
.labo__lien:hover { color: var(--tomate); }
.labo__fiche-medias { display: grid; gap: 28px; min-width: 0; }
.labo__video { width: 100%; height: auto; display: block; background: #000; }
.labo__videos { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 10px; }
.labo__videos video { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; background: var(--bordeaux); }
@media (max-width: 860px) { .labo__videos { grid-template-columns: 1fr; } }
.labo__videos { gap: 14px; }
.labo__groupe-titre { margin: 0 0 10px; padding-top: 8px; border-top: 1px solid var(--bordeaux); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--olive); }
.labo__galerie { display: grid; gap: 10px; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
.labo__galerie--1 { grid-template-columns: 1fr; } .labo__galerie--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.labo__galerie img { width: 100%; height: auto; display: block; }
.labo__galerie--carre img { aspect-ratio: 1; object-fit: cover; }
.labo__fermer { position: absolute; top: -16px; right: -16px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--bordeaux); color: var(--beurre); font: inherit; font-size: 1.3rem; cursor: pointer; box-shadow: 0 6px 14px rgba(0, 0, 0, .3); }
.labo__fermer:hover { background: var(--tomate); }
@media (max-width: 860px) { .labo__fiche-texte { position: static; } .labo__galerie { grid-template-columns: repeat(2, minmax(0, 1fr)); } .labo__fermer { top: 8px; right: 8px; } }
@media (max-width: 860px) { .labo__fiche-corps { grid-template-columns: 1fr; } .labo__planche { columns: 2; } .labo__planche--colonnes { height: 78vh; gap: 10px; } .labo__planche--colonnes .labo__titre { font-size: .78rem; } .labo__planche--colonnes .labo__technique { display: none; } .labo__carrousel-scene { height: 58vh; } }

/* Ce qui me tient à cœur : la phrase de fin de l'à propos */
.engagement {
  margin: clamp(64px, 10vh, 112px) 0 0 auto; max-width: 46ch;
  padding-top: 20px; border-top: var(--pointille); color: var(--bordeaux);
}
.engagement p { margin: 0; font-size: clamp(1.2rem, 1.7vw, 1.55rem); line-height: 1.32; letter-spacing: -.01em; color: var(--bordeaux); }

/* Projets */
.projets__entete {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap;
  margin-bottom: clamp(28px, 5vh, 48px);
}
.projets__entete .section__titre { margin-bottom: 0; }
.projets__chapo { max-width: 34ch; margin: 0; }
.projets__liste { border-top: 1px solid var(--bordeaux); }
.projets__liste > li { border-bottom: 1px solid var(--bordeaux); }
.projets__vide { padding: 24px 0; }
.projet-ligne {
  display: grid;
  grid-template-columns: 3.2rem 1.6fr 1fr 120px;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  text-decoration: none;
  transition: background-color .35s var(--ease), padding .35s var(--ease);
}
.projet-ligne:hover { background: rgba(138, 134, 56, .16); padding-left: 12px; padding-right: 12px; }
.projet-ligne__n { font-size: .72rem; font-weight: 700; color: var(--olive); }
.projet-ligne__titre { font-size: clamp(1.3rem, 2vw, 1.8rem); letter-spacing: -.02em; line-height: 1.1; }
.projet-ligne__meta, .projet-ligne__objet { font-size: .82rem; }
.projet-ligne__vignette img, .projet-ligne__vignette-vide { width: 120px; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.projet-ligne__vignette-vide { border: var(--pointille); color: rgba(108, 44, 37, .4); }

/* Contact */
.contact { min-height: 92vh; display: flex; flex-direction: column; }
.contact__grille {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 72px);
  align-items: start;
}
.contact__texte { font-size: clamp(1.25rem, 2vw, 1.75rem); line-height: 1.25; letter-spacing: -.015em; max-width: 26ch; }
.contact__liste { border-top: 1px solid var(--bordeaux); }
.contact__ligne {
  display: grid; grid-template-columns: 8.5rem 1fr; gap: 12px;
  padding: 13px 0; border-bottom: 1px solid rgba(108, 44, 37, .35);
}
.contact__ligne dt { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; padding-top: .2em; color: var(--olive); }
.contact__ligne a { text-decoration: none; background: linear-gradient(var(--tomate), var(--tomate)) 0 100% / 0 1.5px no-repeat; transition: background-size .35s var(--ease); }
.contact__ligne a:hover { background-size: 100% 1.5px; }
.pied {
  margin-top: auto; padding-top: 72px;
  display: flex; justify-content: space-between; font-size: .75rem; opacity: .8;
}
.pied a { text-decoration: none; }

/* ==========================================================================
   PAGE PROJET
   ========================================================================== */
.projet__corps { padding: clamp(48px, 9vh, 104px) var(--marge) var(--marge); }

/* 1. Ouverture : la grande photo occupe tout l'écran à droite de la bande */
.ouverture {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 420px;
  overflow: hidden;
  background: var(--bordeaux-fonce);
}
.ouverture__photo {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 55%;
}
.ouverture__photo--vide {
  display: grid; place-items: center;
  background: repeating-linear-gradient(-45deg, var(--beurre) 0 14px, #e9e3ae 14px 15px);
}
@media (prefers-reduced-motion: no-preference) {
  .ouverture__photo:not(.ouverture__photo--vide) { animation: ouverture 1.6s var(--ease) both; }
}
@keyframes ouverture { from { transform: scale(1.04); opacity: .4; } to { transform: none; opacity: 1; } }

/* Le cartel : une étiquette bordeaux cousue au bas de la photo */
.ouverture__cartel {
  position: absolute;
  left: var(--marge); bottom: 0;
  max-width: min(640px, calc(100% - 2 * var(--marge)));
  padding: 20px 26px 24px;
  background: var(--bordeaux);
  color: var(--beurre);
}
.ouverture__cartel::after {
  content: ""; position: absolute; inset: 7px 7px 0;
  border: 1.2px dashed rgba(242, 237, 189, .45); border-bottom: 0;
  pointer-events: none;
}
.ouverture__meta {
  display: flex; gap: 18px; margin: 0 0 14px;
  font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700;
}
.ouverture__meta span:first-child { color: #c9c66f; }
.ouverture__titre { color: var(--beurre); }
.ouverture__titre[data-stitch]:not(.broderie) { font-size: clamp(2.6rem, 5vw, 4.4rem); }
.ouverture__suite {
  position: absolute; right: var(--marge); bottom: 22px;
  display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: 50%; background: var(--beurre); color: var(--bordeaux);
  text-decoration: none; font-size: 1.1rem;
  transition: transform .3s var(--ease);
}
.ouverture__suite:hover { transform: translateY(3px); }

/* Carrousel placé dans une section, à côté de son texte */
.bloc--carrousel { display: grid; grid-template-columns: minmax(260px, 0.85fr) minmax(0, 2fr); gap: clamp(24px, 3.4vw, 56px); align-items: center; }
.bloc--carrousel__texte .bloc__titre { margin-bottom: 18px; }
.bloc--carrousel__images { min-width: 0; margin-right: calc(var(--marge) * -1); }
.bloc--carrousel .carrousel { margin: 0; }
.bloc--carrousel .carrousel__piste { padding-left: 0; scroll-padding-inline: 0; padding-right: var(--marge); }
.bloc--carrousel .carrousel__diapo { width: 86%; }
.bloc--carrousel .carrousel__diapo img { width: 100%; height: auto; max-width: none; aspect-ratio: 16 / 9; }
.bloc--carrousel .carrousel__commandes { padding-left: 0; }

/* 3. Carrousel : les photos défilent horizontalement */
.carrousel { margin: clamp(48px, 8vh, 88px) calc(var(--marge) * -1) 0; }
.carrousel__piste {
  display: flex;
  gap: clamp(12px, 1.4vw, 20px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--marge);
  padding: 0 var(--marge) 4px;
  scrollbar-width: none;
  cursor: grab;
  overscroll-behavior-x: contain;
}
.carrousel__piste::-webkit-scrollbar { display: none; }
.carrousel__piste.est-saisi { cursor: grabbing; scroll-snap-type: none; }
.carrousel__piste.sans-aimant { scroll-snap-type: none; scroll-behavior: auto; }
.carrousel__piste.est-saisi img { pointer-events: none; }
.carrousel__piste:focus-visible { outline-offset: -2px; }
.carrousel__diapo {
  flex: 0 0 auto;
  margin: 0;
  scroll-snap-align: start;
}
.carrousel__diapo img {
  height: clamp(260px, 62vh, 660px);
  width: auto;
  max-width: calc(100vw - var(--bande) - 2 * var(--marge));
  object-fit: cover;
  user-select: none;
}
.carrousel__diapo figcaption { margin-top: 8px; font-size: .75rem; }
.carrousel__vide {
  display: grid; place-items: center;
  height: clamp(260px, 62vh, 660px); aspect-ratio: 4 / 3;
  border: var(--pointille); color: rgba(108, 44, 37, .5);
}
.carrousel__commandes {
  display: flex; align-items: center; gap: 14px;
  padding: 16px var(--marge) 0;
}
.carrousel__bouton {
  width: 44px; height: 44px;
  border: 1px solid var(--bordeaux); border-radius: 50%;
  background: transparent; color: var(--bordeaux);
  font: inherit; font-size: 1rem; cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), opacity .25s;
}
.carrousel__bouton:hover:not(:disabled) { background: var(--bordeaux); color: var(--beurre); }
.carrousel__bouton:disabled { opacity: .3; cursor: default; }
.carrousel__compteur { margin: 0; font-size: .78rem; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.carrousel__compteur span { font-weight: 700; color: var(--tomate); }

.projet__infos { margin-top: clamp(64px, 10vh, 112px); }
.projet__infos .bloc__titre { margin-bottom: 14px; border-top: 0; padding-top: 0; }

.bandeau-modele {
  margin: 0 0 40px; padding: 10px 14px;
  border: var(--pointille); color: var(--tomate); font-size: .82rem;
}
.projet__entete { max-width: 980px; margin-bottom: clamp(40px, 7vh, 72px); }
.projet__meta {
  display: flex; gap: 18px; margin-bottom: 26px;
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700;
}
.projet__meta span:first-child { color: var(--olive); }
.projet__titre { color: var(--bordeaux); margin-bottom: 26px; }
.projet__titre[data-stitch]:not(.broderie) { font-size: clamp(3rem, 6vw, 5.2rem); }
.projet__sous-titre { display: block; font-family: var(--titre); font-weight: 600; color: var(--bordeaux); font-size: clamp(1.5rem, 2.4vw, 2.1rem); letter-spacing: -.02em; line-height: 1.2; margin: 0 0 22px; max-width: 30ch; }
.projet__sous-titre::before { content: ""; display: block; width: 36px; height: 3px; background: var(--tomate); margin-bottom: 14px; }
.projet__sous-titre.a-completer { display: inline-flex; font-size: .82rem; }
.projet__intro { max-width: 60ch; font-size: 1.14rem; line-height: 1.55; }

.media { margin: 0; }
.media img { width: 100%; }
.media figcaption { margin-top: 8px; font-size: .75rem; opacity: .85; }
.media--vide .media__cadre {
  display: grid; place-items: center;
  aspect-ratio: 4 / 3;
  border: var(--pointille);
  color: rgba(108, 44, 37, .5);
  background: repeating-linear-gradient(-45deg, transparent 0 14px, rgba(108, 44, 37, .045) 14px 15px);
}
.projet__couverture.media--vide .media__cadre { aspect-ratio: 16 / 9; }
.projet__couverture { margin-bottom: clamp(32px, 5vh, 56px); }

.projet__infos dl {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); column-gap: 24px;
  border-top: 1px solid var(--bordeaux);
}
.projet__infos dl > div { padding: 14px 0 16px; min-width: 0; }
.projet__infos dd { margin: 0; text-align: left !important; line-height: 1.4; hyphens: manual; -webkit-hyphens: manual; }
.projet__infos dt { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; margin-bottom: 6px; color: var(--olive); }
.projet__infos dd { font-size: .92rem; }
.projet__infos .a-completer { font-size: .72rem; padding: .1em .5em; }
.projet__infos .a-completer__tag { display: none; }
.projet__infos .a-completer::before { content: "à compléter"; }

.bloc { margin-top: clamp(64px, 10vh, 112px); }
.bloc__titre {
  display: flex; align-items: baseline; gap: 14px;
  font-size: clamp(1.4rem, 2.2vw, 2rem); letter-spacing: -.02em; line-height: 1.1;
  margin-bottom: 26px; padding-top: 14px; border-top: 1px solid var(--bordeaux);
  font-weight: 700;
}
.bloc__n { font-size: .66rem; letter-spacing: .08em; color: var(--olive); font-weight: 700; }
.bloc--texte { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(16px, 3vw, 48px); }
.bloc--texte .bloc__titre { border-top: 0; padding-top: 0; margin: 0; align-self: start; position: sticky; top: 24px; }
.bloc--texte { border-top: 1px solid var(--bordeaux); padding-top: 18px; }
.bloc__texte { max-width: 62ch; }
.galerie { display: grid; gap: clamp(12px, 1.6vw, 24px); }
.galerie--pleine { grid-template-columns: 1fr; }
.galerie--pleine .media--vide .media__cadre { aspect-ratio: 16 / 9; }
.galerie--duo { grid-template-columns: 1fr 1fr; }
.galerie--trio { grid-template-columns: repeat(3, 1fr); }
.bloc--citation blockquote {
  margin: 0; max-width: 28ch; font-size: clamp(1.6rem, 3vw, 2.6rem); line-height: 1.1; letter-spacing: -.02em;
}

.suite {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 24px;
  margin-top: clamp(80px, 12vh, 140px); padding-top: 22px; border-top: 1px solid var(--bordeaux);
}
.suite a { text-decoration: none; }
.suite__lien { display: grid; gap: 4px; }
.suite__lien--suiv { text-align: right; }
.suite__sens { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; }
.suite__titre { font-size: clamp(1.1rem, 1.6vw, 1.4rem); letter-spacing: -.015em; }
.suite__retour { font-size: .85rem; }
.suite > .suite__retour:only-child { grid-column: 1 / -1; }
.lien-fleche { text-decoration: none; }

/* ==========================================================================
   ÉCRANS MOYENS
   ========================================================================== */
@media (max-width: 1180px) {
  .tuiles { grid-template-columns: 1fr 1fr; }
  .projet-ligne { grid-template-columns: 2.6rem 1fr 96px; }
  .projet-ligne__objet { display: none; }
  .projet-ligne__vignette img, .projet-ligne__vignette-vide { width: 96px; }
  .projet__infos dl { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   TABLETTE PORTRAIT ET MOBILE : la bande devient un en-tête,
   une barre compacte reste accessible en haut de l'écran.
   ========================================================================== */
@media (max-width: 860px) {
  :root { --point: 3.4px; --marge: 20px; }

  .barre {
    position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30;
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
    height: var(--barre);
    padding: 0 var(--marge);
    background: var(--bordeaux);
    color: var(--beurre);
    font-size: .85rem;
    transform: translateY(-100%);
    margin-bottom: calc(var(--barre) * -1);
    transition: transform .35s var(--ease);
  }
  .barre.est-visible, .page-projet .barre { transform: none; }
  .page-projet .barre { margin-bottom: 0; }
  .barre a { text-decoration: none; }
  .barre__nom { font-weight: 700; letter-spacing: -.01em; }
  .barre__liens { display: flex; gap: 14px; }
  .barre__liens a, .barre__retour { opacity: .9; }
  html { scroll-padding-top: calc(var(--barre) + 8px); }

  .bande {
    position: relative; inset: auto;
    width: auto; min-height: 0;
    gap: 22px;
    padding: 28px var(--marge) 26px;
    overflow: visible;
  }
  .page-projet .bande { display: none; }
  .ouverture { height: calc(100svh - var(--barre)); min-height: 380px; max-height: 760px; }
  .ouverture__cartel { padding: 14px 18px 18px; }
  .ouverture__suite { display: none; }
  .carrousel__diapo img { height: clamp(220px, 46vh, 420px); max-width: calc(100vw - 2 * var(--marge)); }
  .carrousel__vide { height: clamp(220px, 46vh, 420px); }
  .bande__haut { max-width: 420px; }
  .bande__milieu { display: grid; gap: 0; }
  .bande__accroche { max-width: 30ch; }
  .bande__nav ul { display: none; }
  .bande__plan { display: none; }
  .contenu { margin-left: 0; min-height: 0; }

  .accueil { min-height: 0; padding: 22px var(--marge) 28px; }
  .plan, .accueil__pied { width: 100%; }
  .accueil__pied { flex-direction: column; gap: 6px; }

  .a-propos__lead, .a-propos__portrait, .a-propos__texte { grid-column: 1 / -1; grid-row: auto; }
  .a-propos__portrait { min-height: 0; }
  .a-propos__photo { position: relative; aspect-ratio: 1; }
  .trio { grid-template-columns: 1fr; }
  .engagement { margin-left: 0; }
  .tuile { min-height: 240px; }
  .contact__grille { grid-template-columns: 1fr; }
  .projet-ligne { grid-template-columns: 2.2rem 1fr 72px; padding: 14px 0; }
  .projet-ligne__meta { display: none; }
  .projet-ligne__vignette img, .projet-ligne__vignette-vide { width: 72px; }
  .bloc--texte { grid-template-columns: 1fr; }
  .bloc--texte .bloc__titre { position: static; }
  .galerie--trio { grid-template-columns: 1fr 1fr; }
  .suite { grid-template-columns: 1fr 1fr; }
  .suite > .suite__retour:not(:only-child) { grid-column: 1 / -1; grid-row: 2; text-align: center; }
}

@media (max-width: 520px) {
  .tuiles { grid-template-columns: 1fr; }
  .galerie--duo, .galerie--trio { grid-template-columns: 1fr; }
  .projet__infos dl { grid-template-columns: 1fr 1fr; }
  .barre__liens { gap: 10px; font-size: .8rem; }
  .contact__ligne { grid-template-columns: 6.5rem 1fr; }
}

/* ==========================================================================
   ÉCRANS TACTILES : pas de survol → repères numérotés visibles,
   un toucher ouvre directement le projet.
   ========================================================================== */
@media (hover: none) {
  .consigne--survol { display: none; }
  .consigne--toucher { display: inline; }
  .objet:not(.objet--attente) .objet__marque {
    width: auto; height: auto; min-width: 22px;
    left: 50% !important; top: 50% !important; margin: 0; transform: translate(-50%, -50%);
    padding: 3px 6px;
    font-size: 11px; font-weight: 700; line-height: 1; text-align: center;
    color: var(--beurre); background: var(--tomate); border-radius: 11px;
  }
  .objet:not(.objet--attente) .objet__marque::before,
  .objet:not(.objet--attente) .objet__marque::after { display: none; }
  .objet:active .objet__corps { transform: scale(var(--zoom, 1.06)); }
  .objet:active .objet__decoupe { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
}

/* ==========================================================================
   INTERACTIONS
   ========================================================================== */

/* Titres qui se brodent : les points apparaissent par passes, de gauche à
   droite, le fil du dessous puis celui du dessus */
.broderie-animee .broderie__fil {
  opacity: 0;
  transition: opacity .4s ease calc(var(--k) * 35ms + 80ms);
}
.broderie-animee .broderie__fil--dessous { transition-delay: calc(var(--k) * 35ms); }
.broderie-animee .est-brode .broderie__fil { opacity: 1; }
.broderie-animee .est-brode .broderie__fil--dessous { opacity: .72; }

/* Fil de lecture le long de la bande */
.bande__fil {
  position: absolute; top: 0; bottom: 0; right: 9px; width: 2px;
  background: repeating-linear-gradient(to bottom, rgba(242, 237, 189, .28) 0 7px, transparent 7px 12px);
  pointer-events: none;
}
.bande__fil::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0;
  height: calc(var(--lecture, 0) * 100%);
  background: repeating-linear-gradient(to bottom, var(--tomate) 0 7px, transparent 7px 12px);
}

/* Aperçu du projet au survol d'un objet : l'étiquette devient une petite fiche */
.objet__etiquette--fiche {
  flex-direction: column; align-items: stretch; gap: 0;
  width: 220px; padding: 6px 6px 9px; white-space: normal;
}
.objet__apercu {
  display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  margin-bottom: 9px;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .55s var(--ease) .05s;
}
.objet:hover .objet__apercu, .objet:focus-visible .objet__apercu { clip-path: inset(0); }
.objet__fiche-ligne { display: flex; align-items: baseline; gap: 8px; padding: 0 5px; }
.objet__fiche-ligne .objet__fleche { margin-left: auto; }

/* ---------- Table rangée ---------- */
.accueil__actions { display: flex; align-items: center; gap: 22px; line-height: 1; }
.accueil__actions > * { line-height: 1; }
.bouton-rangement {
  font: inherit; font-size: .8rem; color: inherit; background: none; border: 0; padding: 0;
  cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
}
.bouton-rangement__icone {
  display: inline-grid; grid-template-columns: repeat(3, 4px); gap: 2px;
}
.bouton-rangement__icone i { width: 4px; height: 4px; background: currentColor; transition: transform .4s var(--ease); }
.bouton-rangement[aria-pressed="true"] .bouton-rangement__icone i:nth-child(odd) { transform: rotate(45deg) scale(.8); }
.bouton-rangement span:last-child { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .35s var(--ease); }
.bouton-rangement:hover span:last-child { background-size: 100% 1px; }

.rangement {
  position: absolute; inset: 0; z-index: 7;
  display: grid; grid-template-columns: repeat(5, 1fr); grid-auto-rows: 1fr;
  gap: 0;
  padding: 2.5% 3%;
  background-color: var(--beurre);
  background-image:
    linear-gradient(rgba(108, 44, 37, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108, 44, 37, .08) 1px, transparent 1px);
  background-size: calc(100% / 20) calc(100% / 15);
  opacity: 0; visibility: hidden;
  transition: opacity .45s var(--ease), visibility 0s .45s;
}
.plan--range .rangement { opacity: 1; visibility: visible; transition: opacity .45s var(--ease); }
.plan--range .objet { visibility: hidden; }
.case {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; padding: 8px; text-decoration: none; color: var(--bordeaux);
  min-height: 0;
}
.case__img {
  display: block; max-width: 78%; max-height: calc(100% - 40px); width: auto; height: auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 8px rgba(48, 16, 12, .22));
  transition: transform .45s var(--ease), filter .45s var(--ease);
  will-change: transform;
}
.case__legende { font-size: .74rem; line-height: 1.25; text-align: center; }
.case__legende b { font-weight: 700; color: var(--olive); margin-right: 6px; font-size: .66rem; letter-spacing: .06em; }
.case--attente { color: rgba(108, 44, 37, .5); }
.case--attente .case__img { opacity: .55; filter: grayscale(.4); }
a.case:hover .case__img, a.case:focus-visible .case__img {
  transform: translateY(-4px) scale(1.04);
  filter: drop-shadow(0 14px 14px rgba(48, 16, 12, .32));
}
a.case:hover .case__legende span { color: var(--tomate); }

/* post-it des projets (table rangée) : même papier que les fiches au survol */
.rangement__postits {
  grid-column: 1 / -1; grid-row: 1 / -1; align-self: center;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: clamp(18px, 3vw, 44px);
}
.postit {
  position: relative; display: flex; flex-direction: column; width: clamp(160px, 21%, 260px);
  padding: 7px 7px 11px; background: var(--beurre); color: var(--bordeaux); text-decoration: none;
  box-shadow: 0 0 0 3px var(--beurre), 0 14px 22px -10px rgba(48, 16, 12, .35);
  outline: 1.2px dashed rgba(108, 44, 37, .55); outline-offset: -4px;
  transform: rotate(var(--r, 0deg)) translateY(12px); opacity: 0;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), opacity .5s var(--ease);
}
.postit:nth-child(4n+1) { --r: -1.6deg; } .postit:nth-child(4n+2) { --r: 1.1deg; }
.postit:nth-child(4n+3) { --r: -.6deg; } .postit:nth-child(4n+4) { --r: 1.8deg; }
.postit::before { /* morceau de ruban adhésif */
  content: ""; position: absolute; top: -9px; left: 50%; width: 46px; height: 16px; transform: translateX(-50%) rotate(-2deg);
  background: rgba(235, 94, 58, .55);
}
.plan--range .postit { opacity: 1; transform: rotate(var(--r, 0deg)); }
.plan--range .postit:nth-child(2) { transition-delay: .06s; } .plan--range .postit:nth-child(3) { transition-delay: .12s; }
.plan--range .postit:nth-child(4) { transition-delay: .18s; } .plan--range .postit:nth-child(5) { transition-delay: .24s; }
.postit:hover, .postit:focus-visible { transform: rotate(0deg) translateY(-6px); box-shadow: 0 0 0 3px var(--beurre), 0 24px 30px -12px rgba(48, 16, 12, .45); transition-delay: 0s; }
.postit__img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 9px; }
.postit__ligne { display: flex; align-items: baseline; gap: 8px; padding: 0 5px; font-size: .82rem; line-height: 1.2; }
.postit__num { font-size: .66rem; letter-spacing: .06em; color: var(--olive); font-weight: 700; }
.postit__fleche { margin-left: auto; transition: transform .3s var(--ease); }
.postit:hover .postit__fleche { transform: translateX(3px); color: var(--tomate); }
.postit__sous { padding: 3px 5px 0 29px; font-size: .7rem; font-style: italic; opacity: .75; }

/* ---------- Le déroulé : planche contact ----------
   Photos de démarche petites, en bichromie bordeaux ; couleur au survol. */
.planche {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2.2vw, 36px);
  max-width: 1100px;
}
.planche__case { min-width: 0; }
/* photos gardées dans leur format d'origine (pas de recadrage carré) */
.planche--original { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 1180px; }
.planche--original .planche__photo { aspect-ratio: auto; background: none; }
.planche--original .planche__couleur { position: relative; height: auto; }
.planche--original .planche__bordeaux { z-index: 0; }
.planche--original .planche__couleur { z-index: 1; }
.planche__photo {
  position: relative; display: block; width: 100%; aspect-ratio: 1; max-width: 100%;
  border: 0; padding: 0; overflow: hidden; cursor: zoom-in; background: var(--bordeaux);
}
.planche__bordeaux, .planche__couleur {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
}
.planche__bordeaux--filtre { filter: grayscale(1) sepia(.6) hue-rotate(-30deg) saturate(1.6) brightness(.8); }
.planche__couleur { opacity: 0; transition: opacity .5s var(--ease); }
.planche__photo:hover .planche__couleur, .planche__photo:focus-visible .planche__couleur { opacity: 1; }
.planche__photo--vide { display: grid; place-items: center; border: var(--pointille); background: none; }
.planche__n {
  margin: 14px 0 6px; padding-top: 10px; border-top: 1px solid var(--bordeaux);
  font-size: .68rem; letter-spacing: .12em; font-weight: 700; color: var(--olive); font-variant-numeric: tabular-nums;
}
.planche__titre { font-size: 1.05rem; line-height: 1.2; margin-bottom: 8px; font-weight: 700; }
.planche__texte { font-size: .86rem; line-height: 1.5; }
.planche__texte p { margin: 0; }

/* ---------- Triptyque : souvenirs en alternance ---------- */
.triptyque__liste { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(56px, 9vh, 120px); }
.souvenir { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(220px, 1fr); gap: clamp(24px, 3.6vw, 64px); align-items: center; }
.souvenir:nth-child(even) { grid-template-columns: minmax(220px, 1fr) minmax(0, 1.75fr); }
.souvenir:nth-child(even) .souvenir__media { order: 2; }
.souvenir__media { min-width: 0; display: flex; flex-direction: column; align-items: flex-end; }
.souvenir__carte {
  display: block; width: 100%; padding: 0; border: 0; background: #fff; cursor: zoom-in;
  box-shadow: 0 22px 44px -18px rgba(48, 16, 12, .38), 0 2px 6px rgba(48, 16, 12, .12);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.souvenir__carte img { display: block; width: 100%; height: auto; filter: grayscale(1); transition: filter 2.2s var(--ease) .15s; }
.souvenir__carte.est-colore img { filter: grayscale(0); }
/* souvenir animé : couches superposées à l'image finale */
.souvenir__carte--anime { position: relative; overflow: hidden; }
.souvenir__carte--anime img { filter: none; transition: none; }
.anim { position: absolute; inset: 0; pointer-events: none; transition: opacity .6s var(--ease); }
.anim img, .anim__toile { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.anim__couleur {
  /* la couleur se retire par un balayage doux, en biais, de gauche à droite */
  -webkit-mask-image: linear-gradient(100deg, transparent 42%, #000 58%); mask-image: linear-gradient(100deg, transparent 42%, #000 58%);
  -webkit-mask-size: 300% 100%; mask-size: 300% 100%;
  -webkit-mask-position: 100% 0; mask-position: 100% 0;
  transition: -webkit-mask-position .8s cubic-bezier(.45, 0, .25, 1), mask-position .8s cubic-bezier(.45, 0, .25, 1) !important;
}
.anim--nb .anim__couleur { -webkit-mask-position: 0% 0; mask-position: 0% 0; }
.anim__collage { position: absolute; }
.anim__etape { opacity: 0; }
.anim__etape.est-pose { opacity: 1; }
.anim--fini { opacity: 0; }
.souvenir__rejouer {
  margin-top: 10px; padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--olive);
  border-bottom: 1px solid currentColor;
}
.souvenir__rejouer:hover { color: var(--tomate); }
.souvenir__rejouer { opacity: 0; visibility: hidden; transition: opacity 1.2s var(--ease), visibility 0s 1.2s, color .25s; }
.souvenir__rejouer.est-visible { opacity: 1; visibility: visible; transition: opacity 1.2s var(--ease), color .25s; }
.souvenir__rejouer.est-visible:hover { opacity: 1; }
.souvenir__carte:hover { transform: translateY(-4px); box-shadow: 0 30px 50px -20px rgba(48, 16, 12, .45), 0 2px 6px rgba(48, 16, 12, .12); }
.souvenir__carte:focus-visible { outline: 2px solid var(--tomate); outline-offset: 4px; }
.souvenir__n { margin: 0 0 10px; padding-top: 10px; border-top: 1px solid var(--bordeaux); font-size: .68rem; letter-spacing: .12em; font-weight: 700; color: var(--olive); font-variant-numeric: tabular-nums; text-transform: uppercase; }
.souvenir__titre { margin: 0 0 14px; font-weight: 700; font-size: clamp(1.4rem, 2.2vw, 1.9rem); line-height: 1.1; }
.souvenir__lieu { margin: 0 0 18px; font-style: italic; font-size: .9rem; }
.souvenir__technique { margin: 0 0 14px; font-size: .9rem; display: flex; gap: 10px; align-items: baseline; }
.souvenir__technique span { font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--tomate); }
.souvenir__texte { font-size: .92rem; line-height: 1.55; max-width: 42ch; }
.souvenir__texte p { margin: 0 0 .7em; }

/* ---------- Récit : texte et petites illustrations en alternance ---------- */
.recit__attaque {
  margin: 0 0 clamp(28px, 5vh, 48px); max-width: 32ch; padding-left: 16px; border-left: 2px solid var(--tomate);
  font-size: clamp(1.2rem, 1.7vw, 1.5rem); line-height: 1.3; font-style: italic; color: var(--bordeaux);
}
.recit__grille { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.6vw, 40px); align-items: start; }
.recit__ligne { min-width: 0; }
.recit__image { margin: 0 0 16px; }
.recit__image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.recit__texte { font-size: .95rem; line-height: 1.55; }
.recit__titre { margin: 0 0 10px; font-size: 1.15rem; font-weight: 700; color: var(--bordeaux); }

/* ---------- Article : deux colonnes de texte et images, citation en exergue ---------- */
.article__colonnes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 64px); max-width: 1040px; align-items: stretch; }
/* les deux colonnes finissent à la même hauteur : la dernière image s'étire pour remplir le rectangle */
.article__colonne { display: flex; flex-direction: column; gap: 22px; }
.article__colonne > .article__image:last-child { flex: 1 1 auto; display: flex; min-height: 160px; }
.article__colonne > .article__image:last-child img { aspect-ratio: auto; height: 100%; min-height: 160px; }
.article__colonne + .article__colonne { padding-left: clamp(28px, 4vw, 64px); margin-left: calc(-1 * clamp(28px, 4vw, 64px) / 2); border-left: 1px solid rgba(108, 44, 37, .25); }
.article__image { margin: 0; }
.article__image img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.article__texte { font-size: .98rem; line-height: 1.6; text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.article__texte p { margin: 0 0 .8em; }
.article__texte p:last-child { margin-bottom: 0; }
.article__intertitre { margin: 0 0 8px; font-size: 1.15rem; font-weight: 700; color: var(--bordeaux); }
.article__citation {
  margin: 0 0 clamp(24px, 4vh, 40px); max-width: 1040px; padding: 0 0 18px; border-bottom: 1px solid var(--bordeaux);
  font-size: clamp(1.3rem, 2vw, 1.75rem); line-height: 1.2; color: var(--bordeaux);
}
.article__citation::before { content: "« "; color: var(--tomate); }
.article__citation::after { content: " »"; color: var(--tomate); }
@media (max-width: 860px) {
  .article__colonnes { grid-template-columns: 1fr; }
  .article__colonne + .article__colonne { padding-left: 0; margin-left: 0; border-left: 0; }
}

/* ---------- Potion : liste numérotée, dans le ton des autres blocs ---------- */
.potion__titre { margin: 0 0 26px; font-size: clamp(1.4rem, 2.2vw, 2rem); letter-spacing: -.02em; line-height: 1.1; font-weight: 700; max-width: 32ch; }
.potion__liste { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px); counter-reset: p; }
.potion__liste li { counter-increment: p; padding-top: 10px; border-top: 1px dashed rgba(108, 44, 37, .45); font-size: .95rem; line-height: 1.4; }
.potion__liste li::before { content: counter(p, decimal-leading-zero); display: block; margin-bottom: 8px; font-size: 1.5rem; font-weight: 700; line-height: 1; color: var(--tomate); }

/* La capsule Flow : texte au-dessus, rendus en grand */
.bloc--carrousel { grid-template-columns: 1fr; gap: 22px; align-items: start; }
.bloc--carrousel__texte .bloc__texte { max-width: 62ch; }
.bloc--carrousel .carrousel__diapo { width: auto; }
.bloc--carrousel .carrousel__diapo img { height: clamp(300px, 66vh, 720px); width: auto; aspect-ratio: auto; max-width: calc(100vw - var(--bande) - 3 * var(--marge)); object-fit: cover; }

/* ---------- Objet 3D ---------- */
.objet3d {
  position: relative; width: 100%; max-width: 100%; aspect-ratio: 4 / 3; max-height: 82vh;
  background: radial-gradient(ellipse 70% 80% at 50% 45%, #f7f3cf, var(--beurre) 70%);
  overflow: hidden;
}
.objet3d__canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; touch-action: none; outline: none; }
.objet3d__canvas:active { cursor: grabbing; }
/* vue intérieure : grand format panoramique, la page défile toujours au doigt */
.objet3d--interieur { aspect-ratio: 16 / 9; background: #1d2230; }
.objet3d--interieur .objet3d__canvas { touch-action: pan-y; }
.objet3d__jauge { position: absolute; left: 50%; bottom: 14px; width: min(180px, 40%); height: 1px; transform: translateX(-50%); background: rgba(242, 237, 189, .35); pointer-events: none; }
.objet3d__jauge::after { content: ""; position: absolute; top: -2px; left: calc(var(--pos, 0) * (100% - 24px)); width: 24px; height: 5px; background: var(--creme, #f2edbd); }
.objet3d__canvas:focus-visible { box-shadow: inset 0 0 0 2px var(--tomate); }
.objet3d__legende { display: flex; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; }
.objet3d__aide { opacity: .75; }
.aide--toucher { display: none; }
@media (hover: none) { .aide--souris { display: none; } .aide--toucher { display: inline; } }
.objet3d:not(.est-pret)::after {
  content: "Chargement de l’objet 3D…"; position: absolute; inset: 0; display: grid; place-items: center;
  font-size: .8rem; color: rgba(108, 44, 37, .6);
}
.objet3d__erreur { display: none; position: absolute; inset: 0; place-items: center; padding: 24px; text-align: center; font-size: .85rem; margin: 0; }
.objet3d--erreur .objet3d__erreur { display: grid; }
.objet3d--erreur::after { display: none; }
.bloc__legende { margin: 10px 0 0; font-size: .8rem; opacity: .85; }

/* ---------- Côte à côte : titres, médias et légendes sur des lignes communes ---------- */
.duo {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  grid-template-rows: auto auto auto; column-gap: clamp(20px, 3vw, 48px); row-gap: 12px;
}
.duo > * { min-width: 0; }
.duo__titre { grid-row: 1; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; }
.duo__media { grid-row: 2; display: flex; flex-direction: column; }
.duo__legende { grid-row: 3; }
.duo__legende .bloc__legende { margin: 0; }
/* la 3D prend exactement la hauteur de la fenêtre du site */
.duo__media.duo__col--objet3d .objet3d { flex: 1; aspect-ratio: auto; height: 100%; min-height: 280px; max-height: none; }
.duo__media .ecran { max-width: none; }

/* ---------- Manifeste ---------- */
.manifeste__grille { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(20px, 3vw, 56px); align-items: start; }
.manifeste__attaque { margin: 0; font-size: clamp(1.8rem, 3.2vw, 3rem); line-height: 1.05; letter-spacing: -.025em; }
.manifeste__texte { max-width: 60ch; columns: 2 28ch; column-gap: 32px; }
.manifeste__texte p { break-inside: avoid; }
.manifeste__question {
  display: flex; gap: 18px; align-items: baseline;
  margin: clamp(40px, 6vh, 72px) 0 0; padding-top: 22px; border-top: 1px solid var(--bordeaux);
  font-size: clamp(1.3rem, 2.2vw, 2rem); line-height: 1.2; letter-spacing: -.02em; max-width: 34ch;
}
.manifeste__q { font-size: 2.6em; line-height: .8; color: var(--tomate); font-style: italic; }

/* ---------- Le flow : texte, images, liste ---------- */
.flow__grille { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(20px, 3vw, 56px); align-items: start; }
.flow__texte { max-width: 54ch; }
.flow__images { display: grid; gap: 8px; }
.flow__images img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; }
.flow__liste { margin-top: clamp(40px, 6vh, 64px); }
.flow__liste ol { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 24px); counter-reset: f; }
.flow__liste li { counter-increment: f; border-top: 1px solid var(--bordeaux); padding-top: 12px; font-size: .92rem; line-height: 1.4; }
.flow__liste li::before { content: counter(f, decimal-leading-zero); display: block; font-size: .66rem; letter-spacing: .1em; font-weight: 700; color: var(--olive); margin-bottom: 8px; }

/* ---------- Références ---------- */
.references__liste { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.6vw, 44px); }
.reference { min-width: 0; }
.reference__images { display: grid; gap: 6px; margin-bottom: 14px; }
.reference__images--2 { grid-template-columns: 1fr 1fr; }
.reference__images--3 { grid-template-columns: 1fr; }
.reference__images img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.reference__images--3 img { aspect-ratio: 21 / 8; }
.reference__n { margin: 0 0 6px; font-size: .68rem; letter-spacing: .12em; font-weight: 700; color: var(--olive); text-transform: uppercase; }
.reference__titre { font-size: 1.2rem; line-height: 1.2; margin-bottom: 2px; }
.reference__auteur { font-size: .82rem; opacity: .8; margin: 0 0 12px; }
.reference__citation { font-style: italic; margin: 0 0 10px; }
.reference__texte { font-size: .88rem; line-height: 1.5; }

/* ---------- Concepts en onglets ---------- */
.concepts__onglets { display: flex; flex-wrap: wrap; gap: 0; border-bottom: 1px solid var(--bordeaux); margin-bottom: clamp(24px, 4vh, 40px); }
.concepts__onglet {
  font: inherit; color: inherit; background: none; border: 0; cursor: pointer;
  padding: 12px 22px 12px 0; margin-right: 22px; display: inline-flex; align-items: baseline; gap: 10px;
  font-size: clamp(1.05rem, 1.5vw, 1.35rem); opacity: .5; position: relative; transition: opacity .3s;
}
.concepts__onglet span { font-size: .62rem; letter-spacing: .1em; font-weight: 700; color: var(--olive); }
.concepts__onglet em { font-style: normal; font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--tomate); font-weight: 700; }
.concepts__onglet[aria-selected="true"] { opacity: 1; }
.concepts__onglet[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 22px; bottom: -1px; height: 3px; background: var(--tomate); }
.concepts__onglet:hover { opacity: 1; }
.concept[hidden] { display: none; }
.concept { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); grid-template-rows: auto auto; gap: clamp(16px, 2.4vw, 40px); }
.concept__axo { margin: 0; grid-row: 1 / span 2; }
.concept__axo img { width: 100%; max-height: 78vh; object-fit: contain; object-position: left top; }
.concept__texte { max-width: 48ch; }
.concept__mood { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; align-self: end; }
.concept__mood img { width: 100%; aspect-ratio: 1; object-fit: cover; }
@media (prefers-reduced-motion: no-preference) { .concept:not([hidden]) { animation: apparait .5s var(--ease); } }
@keyframes apparait { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Rotation : zoom puis tour de la maquette au défilement ---------- */
.rotation { height: 300vh; position: relative; }
.rotation__scene {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center;
  gap: clamp(20px, 3vw, 48px);
}
.rotation__texte { max-width: 40ch; will-change: opacity, transform; z-index: 2; }
.rotation__cadre {
  position: relative; justify-self: center;
  height: min(74vh, 720px); aspect-ratio: 1122 / 1402; max-width: 100%; overflow: hidden;
}
.rotation__vue {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transform-origin: 50% 24%; will-change: transform, opacity; user-select: none;
}
.rotation__indice {
  position: absolute; left: 0; bottom: 28px; margin: 0;
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  font-size: .74rem; letter-spacing: .06em; color: var(--bordeaux);
}
.rotation__indice i { width: 1px; height: 26px; background: rgba(108, 44, 37, .25); position: relative; overflow: hidden; }
.rotation__indice i::after { content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 10px; background: var(--bordeaux); animation: defile 1.8s cubic-bezier(.6, 0, .3, 1) infinite; }
/* sans animation : les trois vues côte à côte */
.rotation--statique { height: auto; }
.rotation--statique .rotation__scene { position: static; height: auto; grid-template-columns: 1fr; padding-block: 48px; }
.rotation--statique .rotation__cadre { height: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.rotation--statique .rotation__vue { position: static; height: auto; }
.rotation--statique .rotation__indice { display: none; }

/* ---------- Travelling : défilement horizontal des photos ---------- */
.travelling { margin-left: calc(var(--marge) * -1); margin-right: calc(var(--marge) * -1); position: relative; }
.travelling__scene {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  display: flex; align-items: center;
}
.travelling__piste {
  display: flex; align-items: stretch; gap: clamp(28px, 4vw, 72px);
  height: min(80vh, 760px); padding: 0 var(--marge);
  will-change: transform;
}
.travelling__photo { position: relative; margin: 0; flex: none; display: flex; flex-direction: column; }
.travelling__photo img { height: 100%; width: auto; object-fit: cover; display: block; user-select: none; }
.travelling__photo--grande { height: 100%; }
.travelling__photo--moyenne { height: 68%; }
.travelling__photo--petite { height: 50%; }
.travelling__photo--haut { align-self: flex-start; }
.travelling__photo--milieu { align-self: center; }
.travelling__photo--bas { align-self: flex-end; }
.travelling__photo figcaption {
  position: absolute; left: -2px; top: -22px;
  font-size: .68rem; letter-spacing: .12em; font-weight: 700; color: var(--olive); font-variant-numeric: tabular-nums;
}
.travelling__photo--bas figcaption { top: auto; bottom: -22px; }
.travelling__cartel {
  flex: none; align-self: center; width: min(380px, 70vw);
  padding: 28px 30px 26px; background: var(--bordeaux); color: var(--beurre);
  position: relative;
}
.travelling__cartel::after {
  content: ""; position: absolute; inset: 7px; border: 1.2px dashed rgba(242, 237, 189, .45); pointer-events: none;
}
.travelling__cartel .bloc__titre { color: var(--beurre); border-top: 0; padding-top: 0; margin-bottom: 16px; }
.travelling__cartel .bloc__n { color: #c9c66f; }
.travelling__cartel p { font-size: .95rem; line-height: 1.55; }
.travelling__indice { margin: 18px 0 0; font-size: .74rem !important; letter-spacing: .06em; opacity: .75; }

/* ---------- Mosaïque : grande photo, texte, petites photos ---------- */
.mosaique {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  grid-template-rows: auto 1fr; column-gap: clamp(20px, 3vw, 48px); row-gap: clamp(16px, 2vw, 28px);
}
.mosaique__grande { grid-column: 1; grid-row: 1 / span 2; margin: 0; }
.mosaique__grande img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; }
.mosaique__texte { grid-column: 2; grid-row: 1; max-width: 46ch; }
.mosaique__petites { grid-column: 2; grid-row: 2; align-self: end; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.mosaique__petite { margin: 0; }
.mosaique__petite img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

/* ---------- Galerie en bordeaux, couleur au survol ---------- */
.media--bordeaux { position: relative; aspect-ratio: 4 / 5; max-width: 100%; overflow: hidden; background: var(--bordeaux); outline: none; }
.media--bordeaux:focus-visible { box-shadow: 0 0 0 2px var(--tomate); }
.media--bordeaux:hover .planche__couleur, .media--bordeaux:focus .planche__couleur { opacity: 1; }
.bloc__chapo { max-width: 62ch; margin-bottom: 26px; }

/* ---------- Site dans une fenêtre ---------- */
.ecran {
  max-width: 1080px; border: 1px solid var(--bordeaux); background: var(--bordeaux);
  box-shadow: 0 30px 60px -36px rgba(48, 16, 12, .55);
}
.ecran__barre {
  display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 14px;
  color: var(--beurre); font-size: .72rem; letter-spacing: .04em;
}
.ecran__barre::before {
  content: ""; width: 42px; height: 8px; flex: none;
  background: radial-gradient(circle at 4px 4px, rgba(242,237,189,.55) 3px, transparent 3.5px) 0 0 / 15px 8px repeat-x;
}
.ecran__adresse { opacity: .8; }
.ecran__defile {
  height: min(78vh, 760px); overflow-y: auto; overscroll-behavior: contain; background: #fff;
  scrollbar-width: thin; scrollbar-color: var(--bordeaux) transparent;
}
.ecran__defile img { width: 100%; display: block; }
.ecran__defile:focus-visible { outline: 2px solid var(--tomate); outline-offset: -2px; }

/* Visionneuse */
.visionneuse {
  border: 0; padding: 0; margin: auto; background: transparent;
  max-width: min(92vw, 1100px); max-height: 92vh; overflow: visible;
}
.visionneuse::backdrop { background: rgba(48, 16, 12, .9); }
.visionneuse__cadre { margin: 0; }
.visionneuse__cadre img { max-height: calc(92vh - 50px); width: auto; max-width: 100%; margin: 0 auto; }
.visionneuse__cadre figcaption { margin-top: 12px; font-size: .8rem; color: var(--beurre); text-align: center; }
.visionneuse__bouton, .visionneuse__fermer {
  position: absolute; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(242, 237, 189, .6); background: transparent; color: var(--beurre);
  font: inherit; font-size: 1rem; cursor: pointer;
}
.visionneuse__bouton:hover, .visionneuse__fermer:hover { background: var(--beurre); color: var(--bordeaux); }
.visionneuse__prec { left: -64px; top: 50%; translate: 0 -50%; }
.visionneuse__suiv { right: -64px; top: 50%; translate: 0 -50%; }
.visionneuse__fermer { right: -56px; top: 0; font-size: 1.3rem; }

@media (max-width: 860px) {
  .bande__fil { display: none; }
  .planche { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
  .duo { grid-template-columns: 1fr; grid-template-rows: none; }
  .duo > * { grid-column: 1 !important; grid-row: auto !important; }
  .duo__titre.duo__col--site { margin-top: 28px; }
  .duo__titre.duo__col--objet3d { order: 1; } .duo__media.duo__col--objet3d { order: 2; } .duo__legende.duo__col--objet3d { order: 3; }
  .duo__titre.duo__col--site { order: 4; } .duo__media.duo__col--site { order: 5; } .duo__legende.duo__col--site { order: 6; }
  .duo__media.duo__col--objet3d .objet3d { aspect-ratio: 4 / 5; height: auto; }
  .manifeste__grille, .flow__grille, .concept { grid-template-columns: 1fr; }
  .concept__axo { grid-row: auto; }
  .manifeste__texte { columns: 1; }
  .flow__liste ol { grid-template-columns: 1fr 1fr; }
  .references__liste { grid-template-columns: 1fr; }
  .rotation { height: 260vh; }
  .rotation__scene { grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-content: start; padding-top: calc(var(--barre) + 16px); }
  .rotation__texte p { font-size: .85rem; }
  .rotation__cadre { height: 50vh; height: 50svh; }
  .rotation__texte { padding-bottom: 8px; }
  .travelling { margin-left: calc(var(--marge) * -1); margin-right: calc(var(--marge) * -1); }
  .travelling__scene { position: static; height: auto; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .travelling__piste { height: 62vh; gap: 16px; }
  .travelling__photo, .travelling__cartel { scroll-snap-align: center; }
  .travelling__indice { display: none; }
  .mosaique { grid-template-columns: 1fr; grid-template-rows: none; }
  .mosaique > * { grid-column: 1 !important; grid-row: auto !important; }
  .objet3d { aspect-ratio: 4 / 5; }
  .bloc--carrousel { grid-template-columns: 1fr; }
  .recit__grille { grid-template-columns: 1fr; }
  .bloc--carrousel .carrousel__diapo img { height: auto; width: calc(100vw - 2 * var(--marge)); max-width: none; aspect-ratio: 16 / 9; }
  .recit__ligne--inverse .recit__image { order: 0; }
  .potion__liste { grid-template-columns: 1fr 1fr; }
  .souvenir, .souvenir:nth-child(even) { grid-template-columns: 1fr; }
  .souvenir:nth-child(even) .souvenir__media { order: 0; }
  .planche.planche--original { grid-template-columns: 1fr; }
  .ecran__defile { height: 70vh; }
  .visionneuse__prec { left: 8px; } .visionneuse__suiv { right: 8px; }
  .visionneuse__fermer { right: 8px; top: 8px; }
  .plan--range { aspect-ratio: auto; }
  .plan--range .plan__image { visibility: hidden; height: 0; }
  /* table rangée sur téléphone : tout le bureau disparaît vraiment, seuls les post-it restent */
  .plan--range > :not(.rangement) { display: none !important; }
  /* la hauteur du plan vient de la photo elle-même (Safari gère mal le
     ratio forcé quand on range puis déplie la table) */
  .plan { aspect-ratio: auto; height: auto; }
  .plan__image { display: block; height: auto; }
  .rangement { position: relative; grid-template-columns: 1fr; grid-auto-rows: auto; display: none; padding: 28px 16px; }
  .postit { width: calc(50% - 12px); }
  .rangement__postits { gap: 24px 16px; }
  .plan--range .rangement { display: grid; }
}
/* aperçu du projet au survol : gardé sur les petites fenêtres avec souris,
   retiré seulement sur les écrans tactiles (le toucher ouvre directement le projet) */
@media (max-width: 860px) and (hover: none) { .objet__etiquette--fiche { display: none; } }
@media (max-width: 860px) and (hover: hover) { .objet__etiquette--fiche { width: 180px; } }
@media (prefers-reduced-motion: reduce) {
}

/* ---------- Galerie éditoriale : une grande photo, puis des paires ---------- */
.galerie--editoriale { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.galerie--editoriale > :first-child { grid-column: 1 / -1; }
.galerie--editoriale img { width: 100%; height: auto; display: block; }
@media (max-width: 860px) { .galerie--editoriale { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .travelling__piste { height: auto; align-items: center; }
  .travelling__photo, .travelling__photo--grande, .travelling__photo--moyenne, .travelling__photo--petite { height: auto; width: 86vw; align-self: center; }
  .travelling__photo img { width: 100%; height: auto; }
}


/* ---------- Maquette : une grande photo, des vignettes qui s'agrandissent ---------- */
.maquette__grande { margin: 0; overflow: hidden; cursor: zoom-in; }
.maquette__grande img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.maquette__petites { display: flex; gap: clamp(8px, 1vw, 14px); margin-top: clamp(8px, 1vw, 14px); height: clamp(120px, 12vw, 210px); }
.maquette__petite {
  margin: 0; flex: 1 1 0; min-width: 0; overflow: hidden; cursor: pointer;
  transition: flex-grow .7s var(--ease);
}
.maquette__petite:hover, .maquette__petite:focus-visible { flex-grow: 2.4; }
.maquette__petite img { width: 100%; height: 100%; object-fit: cover; display: block; }
.loupe img { transition: transform .45s var(--ease), opacity .22s ease; }
.maquette__grande.loupe--active img { transform: scale(2.2); }
.maquette__petite.loupe--active img { transform: scale(1.5); }
.maquette__fondu { opacity: 0; }
@media (max-width: 860px) {
  .maquette__petites { height: auto; display: grid; grid-template-columns: 1fr 1fr; }
  .maquette__petite img { aspect-ratio: 4 / 3; height: auto; }
}

/* ---------- Rendus : mosaïque (toutes les images en 16/9) ---------- */
.rendus__grille { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.rendus__case { margin: 0; position: relative; overflow: hidden; grid-column: span 2; }
.rendus__case::before { content: ""; display: block; padding-top: 56.25%; }
.rendus__case--large { grid-column: 1 / -1; }
.rendus__case--moitie { grid-column: span 3; }
.rendus__case img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.rendus__case:hover img { transform: scale(1.035); }
@media (max-width: 860px) {
  .rendus__grille { grid-template-columns: 1fr; }
  .rendus__case, .rendus__case--moitie { grid-column: auto; }
}

/* ---------- Typographies : SF Pro (Apple), Inter en secours ----------
   Titres en semi gras, approche resserrée comme sur apple.com. */
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
h1, h2, h3, h4, .bande__nom, .barre__nom, .projet-ligne__titre, .suite__titre, .trio__mot, .tuile__mot, .potion__titre {
  font-family: var(--titre); font-weight: 600; letter-spacing: -.02em;
}
.bande__nom { font-weight: 400; }

/* ---------- Tous les textes justifiés : des blocs bien carrés ---------- */
main p, main dd, .bande__accroche, .labo__fiche p {
  text-align: justify; text-align-last: left;
  hyphens: auto; -webkit-hyphens: auto;
  hyphenate-limit-chars: 6 3 2;   /* coupe plus volontiers les mots longs */
  text-wrap: pretty;              /* répartit mieux les mots d'une ligne à l'autre */
}
/* colonne trop étroite pour bien justifier (repérée par commun.js) : alignée à gauche */
.texte-etroit { text-align: left !important; }
/* les grandes phrases en gros caractères restent alignées à gauche :
   justifiées, elles creusent de grands trous entre les mots */
.a-propos__lead, .projet__sous-titre { text-align: left; hyphens: manual; -webkit-hyphens: manual; }

/* Mes logiciels : bloc aligné à droite */
.outils { text-align: right; }
.outils .logiciels { justify-content: flex-end; }

/* Péniche : mini loupe à la place de la souris sur les photos qui zooment,
   main cliquable sur les rendus (ils s'ouvrent en grand) */
.maquette .loupe { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26' viewBox='0 0 26 26'%3E%3Ccircle cx='10' cy='10' r='7.5' fill='%23f2edbd' fill-opacity='.35' stroke='%236c2c25' stroke-width='2.4'/%3E%3Cpath d='M15.6 15.6 23 23' stroke='%236c2c25' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") 10 10, zoom-in; }
.rendus__case { cursor: zoom-in; }


/* Photo d'à propos : en couleur après un clic */
.a-propos__photo.est-couleur .a-propos__couleur { opacity: 1; }
.lire-suite { display: none; }

/* Visionneuse de la péniche : toucher la photo pour zoomer */
.visionneuse--zoom .visionneuse__cadre img { cursor: zoom-in; }
.visionneuse--zoom .visionneuse__cadre.est-zoom {
  width: min(96vw, 1400px); height: 88vh; overflow: auto; overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch; touch-action: pan-x pan-y;
}
.visionneuse--zoom .visionneuse__cadre.est-zoom img { width: 250%; max-width: none; max-height: none; cursor: zoom-out; }

/* ==========================================================================
   VERSION TÉLÉPHONE (moins de 860 px de large) : rien ici ne touche l'ordinateur
   ========================================================================== */
@media (max-width: 860px) {
  /* 1. Barre du haut toujours visible, avec le menu déroulant */
  .barre, .barre.est-visible { transform: none; margin-bottom: 0; }
  .barre__menu {
    display: inline-flex; align-items: center; gap: 10px;
    font: inherit; font-size: .85rem; color: inherit; background: none; border: 0; padding: 8px 0; cursor: pointer;
  }
  .barre__burger { display: grid; gap: 5px; width: 18px; }
  .barre__burger i { display: block; height: 1.5px; background: currentColor; transition: transform .3s var(--ease); }
  .menu-ouvert .barre__burger i:first-child { transform: translateY(3.25px) rotate(45deg); }
  .menu-ouvert .barre__burger i:last-child { transform: translateY(-3.25px) rotate(-45deg); }
  .barre__deroulant {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--bordeaux); border-top: 1px dashed rgba(242, 237, 189, .35);
    padding: 6px var(--marge) 16px;
    clip-path: inset(0 0 100% 0); visibility: hidden;
    transition: clip-path .35s var(--ease), visibility 0s .35s;
  }
  .menu-ouvert .barre__deroulant { clip-path: inset(0); visibility: visible; transition: clip-path .35s var(--ease); }
  .barre__deroulant ul { list-style: none; margin: 0; padding: 0; }
  .barre__deroulant a { display: flex; align-items: baseline; gap: 14px; padding: 12px 0; font-size: 1.15rem; border-bottom: 1px solid rgba(242, 237, 189, .15); }
  .barre__deroulant li:last-child a { border-bottom: 0; }
  .barre__n { font-size: .68rem; opacity: .6; }

  /* 1. Bande bordeaux plus compacte, titre plus petit */
  .bande { gap: 10px; padding: 18px var(--marge) 20px; }
  .bande__haut { max-width: 190px; }
  .bande__nom { display: none; }
  .bande__formation { font-size: .72rem; margin: 0; }
  .bande__accroche { font-size: .92rem; line-height: 1.35; margin: 8px 0 0; padding-top: 10px; }

  /* 2. Plan de travail sur toute la largeur */
  .accueil { padding: 0 0 24px; }
  .plan { width: 100%; max-width: none; }
  /* 4. « Ranger la table » à gauche, « à propos » à droite et plus bas */
  .accueil__pied { padding: 12px var(--marge) 0; align-items: stretch; gap: 14px; }
  .accueil__actions { justify-content: space-between; align-items: flex-end; width: 100%; }
  .accueil__suite { margin-top: 26px; }

  /* 6. Textes plus légers à lire */
  .a-propos__lead { font-size: 1.6rem; }
  .a-propos__texte.est-replie > :nth-child(n+3):not(.lire-suite) { display: none; }
  .lire-suite {
    display: inline-flex; gap: 6px; margin-top: 4px; padding: 0;
    font: inherit; font-size: .85rem; color: var(--bordeaux); background: none; border: 0;
    border-bottom: 1px solid currentColor; cursor: pointer;
  }
  .lire-suite span { color: var(--tomate); }
  .trio { gap: 0; }
  .trio li { padding: 12px 0 14px; }
  .trio__mot { font-size: 1.15rem; }
  .trio p { font-size: .9rem; }
  .experiences__intro { margin-bottom: 24px; }
  .experiences__intro p { font-size: .98rem; line-height: 1.5; }
  .engagement p { font-size: 1.05rem; line-height: 1.45; }
  .contact__texte { font-size: 1.1rem; line-height: 1.4; }
  .pratiques__liste { font-size: 1.15rem; }
  /* les quatre cases de couleur : plus petites, on les fait glisser */
  .tuiles {
    display: flex; grid-template-columns: none; gap: 8px;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(-1 * var(--marge)); padding-inline: var(--marge);
  }
  .tuiles::-webkit-scrollbar { display: none; }
  .tuile { flex: 0 0 70vw; min-height: 0; padding: 16px 18px 18px; scroll-snap-align: start; scroll-margin-left: var(--marge); }
  .tuile__mot { font-size: 1.3rem; margin: 18px 0 8px; }
  .tuile p { font-size: .84rem; line-height: 1.45; }

  /* 8. Grandes photos des projets sur toute la largeur de l'écran */
  .maquette__grande, .maquette__petites, .rendus__grille, .article__image, .bloc--images .galerie, .concept__axo,
  .bloc--3d .objet3d, .triptyque .souvenir__carte, .carrousel {
    margin-inline: calc(-1 * var(--marge)); width: calc(100% + 2 * var(--marge)); max-width: none;
  }
  .rendus__grille { gap: 4px; }
  .maquette__petites { gap: 4px; padding-inline: 0; }
}

/* Plan de travail sur écran tactile : pas de numéros sur les objets */
@media (hover: none) { .objet__marque { display: none !important; } }

/* Maquette : zoom au doigt (appui puis glissé) ; pas de menu « enregistrer l'image » */
.maquette .loupe img { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.maquette__grande.loupe--doigt img { transform: scale(2.4); transition: transform .25s var(--ease); }
.maquette__petite.loupe--doigt img { transform: scale(2); }

@media (max-width: 860px) {
  /* Potion magique : cartes à faire glisser, comme un carrousel */
  .potion__liste {
    display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(-1 * var(--marge)); padding: 0 var(--marge) 4px;
  }
  .potion__liste::-webkit-scrollbar { display: none; }
  .potion__liste li {
    flex: 0 0 58vw; scroll-snap-align: start; scroll-margin-left: var(--marge);
    border: 1px dashed rgba(108, 44, 37, .45); padding: 16px 16px 20px; min-height: 150px;
  }
}

@media (max-width: 860px) {
  /* pages projet : retour à l'accueil bien visible à gauche de la barre */
  .barre__retour { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; opacity: 1; padding: 8px 0; }
  .barre__retour span { color: var(--tomate); font-size: 1.1rem; line-height: 1; }
}

/* Dessins en onglets : dessin plus petit, texte à côté */
.concepts--dessins .concept { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: start; }
.concepts--dessins .concept__axo { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.concepts--dessins .concept__axo img { max-height: 54vh; object-position: center; }
.concepts--dessins .concept__axo img:only-child, .concepts--dessins .concept__axo img:first-child { grid-column: 1 / -1; }
.concepts--dessins .concept__axo img:not(:first-child) { max-height: 26vh; }
.concepts--dessins .concept__texte { align-self: center; }

/* Contexte Aesop : planche de boutiques existantes */
.galerie--boutiques { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; max-width: 900px; }
.galerie--boutiques img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.galerie--boutiques figure, .galerie--boutiques .media { margin: 0; }
.galerie--boutiques figcaption { margin-top: 4px; font-size: .68rem; letter-spacing: .04em; color: var(--texte-doux); }
@media (max-width: 860px) { .galerie--boutiques { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; } }

@media (max-width: 860px) { .bloc--images .galerie--boutiques { margin-inline: 0; width: auto; } }

/* Plan : plus de croix sur les objets */
.objet__marque { display: none !important; }

@media (max-width: 860px) {
  /* À propos : la photo reste petite, le texte prime */
  .a-propos__portrait { max-width: 200px; }
  /* Empathie et « Ce qui me tient à cœur » calés à droite */
  .trio li:nth-child(2) { text-align: right; }
  .trio li:nth-child(2) p { text-align: right !important; text-align-last: right; margin-left: auto; }
  .engagement p { margin-left: auto; }
  .engagement, .engagement p, .engagement h2, .engagement h3 { text-align: right !important; text-align-last: right; }
}
/* fenêtre d'ordinateur rétrécie : photo petite à gauche, texte à côté */
@media (min-width: 561px) and (max-width: 860px) {
  .a-propos__portrait { grid-column: 1 / span 4; grid-row: 2; max-width: none; align-self: start; }
  .a-propos__texte { grid-column: 5 / -1; grid-row: 2; }
}

/* Les dessins : jamais de texte sur un dessin */
.concepts--dessins .concept__axo, .concepts--dessins .concept__texte { min-width: 0; }
.concepts--dessins .concept__axo img { width: 100%; height: auto; }
@media (max-width: 860px) {
  .concepts--dessins .concept { grid-template-columns: 1fr; }
  .concepts--dessins .concept__texte { align-self: start; }
}
