/* ==========================================================
   Emeline Breant — Portfolio · direction « Atelier lumière »
   ========================================================== */

:root {
  --bg: #ffffff;
  --ink: #111111;
  --muted: #7a7a7a;
  --line: rgba(17, 17, 17, 0.14);
  --cyan: #8efbfb;
  --cyan-deep: #2fd6d6;
  --pill: #e2e2e2;
  --pad: clamp(16px, 2.4vw, 36px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* grain du papier, comme sur ton site Framer */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1; /* le grain reste derrière tout le contenu */
  pointer-events: none;
  opacity: 0.55;
  /* grain doux : petites taches claires sur fond gris, comme sur le site Framer */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='260' height='260'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.42' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='matrix' values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  1.6 0 0 0 -0.55'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--ink); color: var(--bg); }

/* ---------- Curseur personnalisé ---------- */
@media (pointer: fine) {
  html.has-cursor, html.has-cursor * { cursor: none !important; }
}
.cursor { display: none; }
html.has-cursor .cursor { display: block; }

/* curseur : étoile argentée */
.cursor__dot {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  pointer-events: none;
  will-change: transform;
}
.cursor__star {
  display: block;
  width: 26px;
  height: auto;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
  transition: transform 0.5s var(--ease), opacity 0.25s;
}
/* au survol d'un lien : l'étoile grandit et tourne d'un quart, comme un scintillement */
.cursor.is-link .cursor__star { transform: translate(-50%, -50%) scale(1.35) rotate(45deg); }
.cursor.is-down .cursor__star { transform: translate(-50%, -50%) scale(0.8) rotate(45deg); transition-duration: 0.15s; }
.cursor.is-hidden .cursor__star { opacity: 0; }

/* ---------- En-tête ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  pointer-events: none;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--pad);
  font-size: 13px;
  font-weight: 400;
  mix-blend-mode: difference;
  color: #fff;
}
.header a, .header button { position: relative; display: inline-block; pointer-events: auto; }
.header .lang { margin-left: auto; }
.back { font-size: 15px; }
.header__brand { letter-spacing: -0.01em; }
.header__nav { display: flex; gap: clamp(14px, 2.4vw, 32px); align-items: center; }
.header__nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease);
}
.header__nav a:hover::after,
.header__nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }

.lang { display: inline-flex; gap: 4px; }
.lang span { opacity: 0.4; transition: opacity 0.3s; }
.lang span.is-active { opacity: 1; }

/* ---------- Accueil : hero ---------- */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  user-select: none;
}
.hero__marquee {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  white-space: nowrap;
  pointer-events: none;
  z-index: 1;
}
.hero__track {
  display: inline-flex;
  animation: marquee 38s linear infinite;
}
.hero__track span {
  font-size: clamp(80px, 13vw, 230px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.9;
  color: var(--ink);
  padding-right: 0.25em;
}
@keyframes marquee { to { transform: translateX(-50%); } }

.hero__photo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(110px, 10vw, 180px);
  aspect-ratio: 347 / 371;
  margin: 0;
  transform: translate(-50%, -54%);
  overflow: hidden;
  background: #fff;
  z-index: 2;
}
.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.12);
  transition: transform 1.6s var(--ease);
}
.is-loaded .hero__photo img { transform: scale(1); }

.hero__dot {
  position: absolute;
  left: 27%;
  bottom: 22%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ink);
  z-index: 3;
  animation: float 4s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-14px); } }

.hero__pills { position: absolute; inset: 0; z-index: 0; }   /* les pilules tombent derrière le nom et la photo */
.pill {
  position: absolute;
  top: 0; left: 0;
  padding: 0.6em 1.15em 0.68em;
  border-radius: 999px;
  background: var(--pill);
  font-size: clamp(16px, 1.6vw, 28px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: nowrap;
  will-change: transform;
  transition: background 0.3s;
}
.pill:hover { background: #d8d8d8; }
/* sans physique (mouvement réduit ou script indisponible) */
.hero__pills.is-static {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-content: flex-end;
  gap: 8px;
  padding: 0 var(--pad) 6vh;
}
.hero__pills.is-static .pill { position: static; }

.hero__hint {
  position: absolute;
  left: var(--pad);
  bottom: var(--pad);
  z-index: 5;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Accueil : entrées « projet » et « lab » ---------- */
.sections {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(60px, 22vw, 420px);
  padding: clamp(80px, 16vh, 180px) var(--pad);
}
.sections__link { display: block; }
.sections__link img {
  width: clamp(150px, 15vw, 270px);
  height: auto;
  transition: transform 0.9s var(--ease);
}
.sections__link:nth-child(2) img { width: clamp(150px, 15.5vw, 280px); }
.sections__link:hover img { transform: scale(1.05) rotate(-3deg); }
.sections__link:nth-child(2):hover img { transform: scale(1.05) rotate(3deg); }
@media (max-width: 760px) {
  .sections { flex-direction: column; gap: 64px; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 12vh, 140px) var(--pad); }

.intro {
  max-width: 440px;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.45;
  margin: 0;
}
.intro em {
  font-style: normal;
  background: linear-gradient(var(--line), var(--line)) no-repeat 0 88% / 100% 0.32em;
}

.label {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.01em;
  margin: 0 0 18px;
}

.page-title {
  padding: clamp(120px, 22vh, 220px) var(--pad) 0;
}
.page-title h1 {
  margin: 0;
  font-size: clamp(90px, 20vw, 360px);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 0.82;
  color: var(--ink);
}
.page-title h1 sup {
  font-size: 0.14em;
  letter-spacing: 0;
  color: var(--ink);
  vertical-align: top;
  position: relative;
  top: 0.6em;
  margin-left: 0.2em;
}
.page-title p {
  max-width: 520px;
  margin: 28px 0 0;
  font-size: 18px;
  line-height: 1.4;
}

/* ---------- Page Projets : images éparpillées ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.board {
  position: relative;
  width: 100%;
  height: max(100vh, 55.3vw);
}
.board__item {
  position: absolute;
  left: calc(var(--x) * 1%);
  top: calc(var(--y) * 1%);
  width: calc(var(--w) * 1vw);
  min-width: 110px;
  display: block;
}
.board__media { display: block; overflow: hidden; }
.board__media img { width: 100%; height: 100%; object-fit: cover; }
.board__item.is-logo .board__media img { object-fit: contain; height: auto; }
/* le nom est posé sous l'image sans prendre de place, et ne capte pas la souris */
.board__cap { position: absolute; left: 0; top: 100%; margin-top: 8px; font-size: 13px; white-space: nowrap; pointer-events: none; }
/* le nom du projet n'apparaît qu'au survol */
@media (hover: hover) {
  .board__cap { opacity: 0; transition: opacity 0.2s; }
  .board__item.is-hover .board__cap,
  .board__item:focus-visible .board__cap { opacity: 1; }
}
@media (max-width: 760px) {
  .board {
    height: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px 20px;
    padding: 110px var(--pad) 80px;
  }
  .board__item { position: static; width: auto; min-width: 0; }
  .board__cap { position: static; display: block; }
  .board__item.is-logo { grid-column: 1 / -1; width: 60%; margin: 0 auto; }
}

/* ---------- Liste de projets ---------- */
.plist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.plist li { border-bottom: 1px solid var(--line); }
.plist a {
  display: grid;
  grid-template-columns: 40px 1fr 1fr 110px;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  transition: padding 0.6s var(--ease), color 0.4s;
}
.plist__num { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.plist__title {
  font-size: 15px;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.plist__cat { font-size: 13px; color: var(--muted); }
.plist__year { font-size: 13px; text-align: right; color: var(--muted); }
.plist__thumb { display: none; }
@media (hover: hover) {
  .plist a:hover { padding-left: 10px; }
  .plist:hover a:not(:hover) { color: #b5b5b5; }
  .plist:hover a:not(:hover) span { color: inherit; }
}

/* aperçu flottant qui suit la souris */
.preview {
  position: fixed;
  top: 0; left: 0;
  z-index: 40;
  width: clamp(160px, 14vw, 240px);
  aspect-ratio: 4 / 5;
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.35s;
  background: #e2e2e2;
}
.preview.is-visible { opacity: 1; }
.preview img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.35s;
}
.preview img.is-active { opacity: 1; }
.preview__empty {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-weight: 500; font-size: 18px;
}

.more-links { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 28px; }
.btn {
  display: inline-block;
  font-size: 13px;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  transition: color 0.3s, border-color 0.3s;
}
.btn:hover { color: var(--muted); border-color: var(--muted); }

/* ---------- Page projet « journal » (Depuis petite) ---------- */
.journal-intro {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 0 var(--pad);
  text-align: center;
}
.journal-intro p {
  margin: 0;
  max-width: 1100px;
  font-size: clamp(13px, 1vw, 16px);
  line-height: 1.45;
  color: var(--accent, #7a7a7a);
}
.journal {
  position: relative;
  height: calc(var(--h) * 1vw);
  margin-bottom: 8vw;
}
.journal__img {
  position: absolute;
  left: calc(var(--x) * 1vw);
  top: calc(var(--y) * 1vw);
  width: calc(var(--w) * 1vw);
  margin: 0;
  overflow: hidden;
}
.journal__img img { width: 100%; height: 100%; object-fit: cover; }
.journal__date {
  position: absolute;
  left: calc(var(--x) * 1vw);
  top: calc(var(--y) * 1vw);
  margin: 0;
  font-family: "Zilla Slab", Georgia, serif;
  font-size: clamp(14px, 1.3vw, 22px);
  white-space: nowrap;
}
@media (max-width: 760px) {
  .journal { height: auto; display: flex; flex-direction: column; gap: 10px; padding: 0 var(--pad); }
  .journal__img, .journal__date { position: static; width: auto; }
  .journal__img { margin-top: 36px; }
  .journal__img:nth-of-type(odd) { width: 80%; }
  .journal__img:nth-of-type(even) { width: 70%; align-self: flex-end; }
  .journal__img:nth-of-type(even) + .journal__date { align-self: flex-end; width: 70%; }
}

/* ---------- Page « identité » (Art de la toile) ---------- */
.idt { color: var(--accent); padding: 0 var(--pad); }
.idt__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4vw;
  max-width: 1300px;
  margin: 0 auto clamp(70px, 10vw, 160px);
}
.idt__anim { width: 100%; max-width: 560px; justify-self: center; }
.idt__swatch {
  justify-self: center;
  width: min(100%, 360px);
  aspect-ratio: 360 / 500;
  border-radius: 22px;
  background: var(--accent);
  color: #fff;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
}
.idt__swatch b { font-weight: 500; font-size: 17px; margin-bottom: 24px; }
.idt__swatch span:last-child { margin-top: 24px; }
.idt__font { margin-bottom: clamp(40px, 6vw, 90px); }
.idt__fname { margin: 0; white-space: nowrap; font-size: clamp(48px, 6.5vw, 110px); line-height: 1; justify-self: center; }
.idt__alpha { margin: 0; font-size: clamp(16px, 1.9vw, 32px); line-height: 1.15; }
/* toiles en pile de cartes */
.deck { padding: 4vw var(--pad) 12vw; display: flex; flex-direction: column; align-items: center; }
.deck__stack { position: relative; width: min(46vw, 340px); height: min(44vh, 340px); touch-action: none; }
.deck__card {
  position: absolute;
  inset: 0;
  margin: auto;
  width: fit-content;
  height: fit-content;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  user-select: none;
}
/* chaque toile sans cadre, en relief : tranche du châssis + ombre portée sur le mur */
.deck__card { padding: 0; background: none; box-shadow: none; }
.deck__card img {
  display: block;
  max-width: min(46vw, 340px);
  max-height: min(44vh, 340px);
  width: auto;
  height: auto;
  outline: none;
  box-shadow:
    1px 1px 0 rgba(0, 0, 0, 0.18),
    2px 2px 0 rgba(0, 0, 0, 0.16),
    3px 3px 0 rgba(0, 0, 0, 0.14),
    4px 4px 0 rgba(0, 0, 0, 0.12),            /* épaisseur de la toile */
    10px 14px 18px rgba(0, 0, 0, 0.22),       /* ombre proche */
    22px 32px 46px rgba(0, 0, 0, 0.18);       /* ombre douce sur le mur */
}
.deck__card.is-top { cursor: grab; }
.deck__card.is-top:active { cursor: grabbing; }
@media (max-width: 760px) {
  .deck__stack { width: 72vw; height: 50vh; }
  .deck__card img { max-width: 72vw; max-height: 50vh; }
}
.deck__count { margin: 28px 0 0; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }

@media (max-width: 760px) {
  .idt__row { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Thème sombre (Échos nature) ---------- */
html.theme-dark { --bg: #0b0b0b; --ink: #ecece9; --muted: #8c8c8c; --line: rgba(255, 255, 255, 0.14); background: var(--bg); }
html.theme-dark body::before { opacity: 0.22; }
html.theme-dark .zoom { background: rgba(11, 11, 11, 0.97); }
html.theme-dark ::selection { background: #00ff00; color: #000; }

/* ---------- Page Échos nature : éditorial sobre ---------- */
.echos-intro { --accent: #9a9a9a; }
.echos { padding: 0 var(--pad) 8vw; }
.ed { width: min(84vw, 1040px); margin: 0 auto clamp(90px, 13vw, 180px); }
.ed__head {
  display: flex;
  gap: 18px;
  padding-top: 12px;
  margin-bottom: clamp(36px, 5vw, 64px);
  border-top: 1px solid var(--line);
  font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.ed__head span:first-child { color: var(--ed-accent, #00ff00); }
.ed__head em { display: none; }
.tw { position: relative; width: min(78vw, 900px); margin: 0 auto; --reveal: 0%; }
.tw__clip { display: block; clip-path: inset(-10% calc(100% - var(--reveal)) -10% 0); }
.tw__clip img { width: 100%; height: auto; display: block; }
/* curseur de machine à écrire qui suit la dernière lettre */
.tw__caret {
  position: absolute;
  left: calc(var(--reveal) + 0.6%);
  bottom: 0;
  width: 5%;
  height: 7%;
  background: #00ff00;
  animation: caret 0.5s steps(1) infinite;
}
.tw.is-done .tw__caret { animation-duration: 1.1s; }
@keyframes caret { 50% { opacity: 0; } }

.swatches { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 3vw, 48px); }
.swatch { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: end; }
.swatch__chip { aspect-ratio: 1; border: 1px solid var(--line); }
.swatch dl {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 16px;
  font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.swatch dt { color: var(--muted); }
.swatch dt:first-child { color: var(--ink); grid-column: 1 / -1; margin-bottom: 8px; font-size: 13px; }
.swatch dd { margin: 0; }
.swatch dd:nth-of-type(1) { display: none; }

.pictos { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(8px, 1.4vw, 18px); }
.picto { aspect-ratio: 1; border: 1px solid var(--line); display: grid; place-items: center; padding: 14%; }
.picto img { width: 100%; height: auto; }

.echos figure { margin: 0; }
.echos img { display: block; }
.echos figure img { width: 100%; height: auto; }
/* série de photographies : grille éditoriale décalée, avec légende */
.photo-series {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(10px, 1.6vw, 22px);
  row-gap: clamp(48px, 7vw, 110px);
  align-items: end;
}
.ps img { width: 100%; height: auto; display: block; }
.ps figcaption {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.ps figcaption span { color: #00ff00; }
.ps--1 { grid-column: 1 / 8; }
.ps--2 { grid-column: 9 / 13; }
.ps--3 { grid-column: 2 / 6; align-self: start; }
.ps--4 { grid-column: 7 / 12; }
.ps--5 { grid-column: 1 / 4; }
.ps--6 { grid-column: 5 / 9; transform: translateY(18%); }
.ps--7 { grid-column: 10 / 13; }
.photo-series { padding-bottom: clamp(40px, 6vw, 90px); }
.echos__supports { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(10px, 1.6vw, 20px); align-items: start; }
.echos__supports figure:first-child { grid-column: 1 / -1; }
@media (max-width: 760px) {
  .swatches { grid-template-columns: 1fr; }
  .pictos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .photo-series { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .photo-series .ps { grid-column: auto; margin-top: 0; align-self: start; transform: none; }
  .photo-series .ps--1 { grid-column: 1 / -1; }
  .echos__supports { grid-template-columns: 1fr; }
}

/* ---------- Page éditoriale (Café Azure) ---------- */
.ed-logo { background: #fff; display: grid; place-items: center; padding: clamp(40px, 7vw, 100px) clamp(24px, 8vw, 120px); }
.ed-logo img { width: 100%; max-width: 760px; height: auto; display: block; }
.ed-images { display: grid; gap: clamp(10px, 1.6vw, 20px); }
.ed-images--pair { grid-template-columns: 1fr 1fr; }
.editorial .ps, .editorial figure img { width: 100%; height: auto; }
.ed-images--row { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.ed-images--trio { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ed-images--trio figure { aspect-ratio: 5 / 4; overflow: hidden; }
.ed-images--trio figure img { height: 100%; object-fit: cover; }
@media (max-width: 760px) {
  .ed-images--pair { grid-template-columns: 1fr; }
  .ed-images--row { grid-template-columns: 1fr 1fr; }
  .ed-images--trio { grid-template-columns: 1fr; }
}

/* planche de recherches (Mai·lla) : collage sur papier blanc, photos qui se chevauchent,
   quelques morceaux de scotch, notes en écriture fine — tient sur un seul écran */
.draft {
  position: relative;
  width: min(100%, calc(84vh * 1.85));
  margin-inline: auto;
  aspect-ratio: 1.85;
}
.draft__item {
  position: absolute;
  margin: 0;
  transform: rotate(var(--r));
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 6px 16px rgba(0, 0, 0, 0.06);
  background: #fff;
  transition: transform 0.4s var(--ease);
}
.draft__item img { width: 100%; height: auto; display: block; }
/* morceau de scotch kraft clair, seulement sur certaines images */
.draft__item.has-tape::before {
  content: "";
  position: absolute;
  top: -9px;
  left: 30%;
  width: 34%;
  max-width: 120px;
  height: 18px;
  transform: rotate(-2deg);
  background: rgba(232, 222, 190, 0.85);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.06);
  clip-path: polygon(2% 10%, 98% 0, 100% 90%, 3% 100%, 0 55%);
}
.draft__item:hover { transform: scale(1.03); z-index: 5 !important; }
.draft__note {
  position: absolute;
  margin: 0;
  transform: rotate(var(--r));
  font-family: "Mrs Saint Delafield", "Caveat", cursive;
  font-size: clamp(20px, 2.1vw, 32px);
  font-weight: 400;
  line-height: 1;
  color: #1d1d1b;
  white-space: nowrap;
  pointer-events: none;
  z-index: 6;
}
@media (max-width: 760px) {
}

/* ---------- Café Azure : DA de la charte graphique ---------- */
html.theme-azure { --bg: #ffffff; --ink: #1d1d1b; --muted: #8a8a8a; --line: rgba(57, 130, 185, 0.25); background: #fff; }
html.theme-azure body { font-family: "Source Sans 3", "Source Sans Pro", var(--font); }
html.theme-azure body::before { display: none; }              /* pas de grain : papier blanc comme le PDF */
html.theme-azure .zoom { background: rgba(255, 255, 255, 0.97); }
html.theme-azure .header { mix-blend-mode: normal; color: #3982B9; }
html.theme-azure .journal-intro p { color: #3982B9; font-size: clamp(14px, 1.1vw, 17px); line-height: 1.55; }
/* titres de partie : capitales grasses à gauche, folio « 05 I CAFE AZURE » à droite */
html.theme-azure .ed__head {
  align-items: baseline;
  border-top: 0;
  padding-top: 0;
  font-family: "Source Sans 3", sans-serif;
  font-size: clamp(16px, 1.4vw, 22px);
  font-weight: 800;
  letter-spacing: 0;
  color: var(--ink);
}
html.theme-azure .ed__head span:first-child { display: none; }
html.theme-azure .ed__head em { display: block; margin-left: auto; font-style: normal; font-weight: 400; font-size: 11px; letter-spacing: 0.04em; color: var(--muted); }
/* logotype : comme la couverture, logo à gauche et dessins jaunes à droite */
html.theme-azure .ed-logo { background: none; padding: 0; }
.ed-logo--deco { display: grid !important; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 4vw; }
.ed-logo--deco .ed-logo__deco { width: 100%; max-height: 70vh; object-fit: contain; }
/* palette : grands blocs arrondis, texte dans la couleur, comme la page 12 */
html.theme-azure .swatches { grid-template-columns: 1fr 1fr; gap: clamp(12px, 1.6vw, 22px); }
html.theme-azure .swatch {
  display: block;
  position: relative;
  aspect-ratio: 3 / 4;
  max-height: 72vh;
  border-radius: 18px;
  background: var(--chip);
  padding: clamp(18px, 2vw, 28px);
  color: #fff;
}
html.theme-azure .swatch + .swatch { color: #fff; }
html.theme-azure .swatch__chip { display: none; }
html.theme-azure .swatch dl { font-family: "Source Sans 3", sans-serif; font-weight: 700; font-size: clamp(12px, 1vw, 15px); gap: 2px 14px; }
html.theme-azure .swatch dt, html.theme-azure .swatch dd { color: inherit; }
html.theme-azure .swatch dt:first-child { color: inherit; font-size: clamp(14px, 1.2vw, 18px); margin-bottom: 18px; }
@media (max-width: 760px) {
  .ed-logo--deco { grid-template-columns: 1fr; }
  html.theme-azure .swatches { grid-template-columns: 1fr 1fr; }
  html.theme-azure .swatch { aspect-ratio: 3 / 5; }
}

/* ---------- Photo agrandie ---------- */
[data-zoom] { cursor: zoom-in; }
.zoom {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: rgba(240, 240, 240, 0.97);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}
.zoom.is-open { opacity: 1; visibility: visible; }
.zoom__media img, .zoom__media video { max-width: 88vw; max-height: 86vh; width: auto; height: auto; }
.zoom__close { position: absolute; top: var(--pad); left: var(--pad); font-size: 15px; }

/* ---------- Images des autres projets (en attendant leur mise en page) ---------- */
.flow { padding: 0 0 8vw; }
.flow__item {
  width: calc(var(--w) * 1vw);
  margin: 0 0 7vw calc(var(--x) * 1vw);
}
.flow__item img, .flow__item video { width: 100%; height: auto; }
@media (max-width: 760px) {
  .flow { padding: 0 var(--pad) 60px; }
  .flow__item { width: 80%; margin: 0 0 36px; }
  .flow__item:nth-child(even) { margin-left: auto; width: 70%; }
}

/* ---------- Page projet ---------- */
.project-head { padding: clamp(120px, 22vh, 220px) var(--pad) 0; }
.project-head h1 {
  margin: 0;
  font-size: clamp(64px, 13vw, 240px);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 0.86;
  color: var(--ink);
}
.project-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 2fr);
  gap: 24px;
  margin-top: clamp(40px, 7vh, 80px);
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.project-meta dt { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.project-meta dd { margin: 0; font-weight: 500; }
.project-meta .project-intro { font-size: clamp(18px, 1.6vw, 24px); line-height: 1.3; letter-spacing: -0.02em; font-weight: 400; }

.gallery {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(8px, 1vw, 16px);
  padding: clamp(40px, 8vh, 100px) var(--pad);
}
.gallery figure { margin: 0; overflow: hidden; background: #e6e6e6; }
.gallery .g-full { grid-column: span 6; }
.gallery .g-half { grid-column: span 3; }
.gallery .g-third { grid-column: span 2; }
.gallery .g-narrow { grid-column: 2 / span 4; }
.gallery img, .gallery video { width: 100%; height: 100%; object-fit: cover; }
.gallery .g-pad { display: grid; place-items: center; padding: clamp(24px, 5vw, 80px); }
.gallery .g-pad img { width: auto; height: auto; max-height: 520px; object-fit: contain; }
.gallery__empty {
  grid-column: span 6;
  aspect-ratio: 16 / 7;
  display: grid;
  place-items: center;
  background: #e2e2e2;
  font-size: clamp(28px, 4vw, 64px);
  font-weight: 500;
  letter-spacing: -0.04em;
}

.next {
  display: block;
  padding: clamp(60px, 12vh, 140px) var(--pad);
  border-top: 1px solid var(--line);
}
.next__title {
  display: block;
  font-size: clamp(56px, 11vw, 200px);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 0.9;
  transition: color 0.5s var(--ease), transform 0.7s var(--ease);
}
.next:hover .next__title { color: var(--muted); transform: translateX(2vw); }

/* ---------- Lab ---------- */
.lab-grid {
  columns: 3 280px;
  column-gap: clamp(16px, 3vw, 48px);
  padding: clamp(60px, 10vh, 120px) var(--pad);
}
.lab-item {
  break-inside: avoid;
  margin: 0 0 clamp(36px, 6vw, 80px);
  display: block;
  width: 100%;
  text-align: left;
}
.lab-item__media {
  overflow: hidden;
  background: #e6e6e6;
  transform: rotate(var(--r, 0deg));
  transition: transform 0.7s var(--ease);
}
.lab-item:nth-child(3n+2) { padding: 0 6%; }
.lab-item:hover .lab-item__media { transform: rotate(0deg) scale(1.02); }
.lab-item img, .lab-item video { width: 100%; }
.lab-item__cap { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; font-size: 14px; }
.lab-item__cap b { font-weight: 500; }
.lab-item__cap span { color: var(--muted); text-align: right; }

.lightbox {
  border: 0;
  padding: 0;
  margin: 0;
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  background: rgba(240, 240, 240, 0.96);
  color: var(--ink);
}
.lightbox::backdrop { background: transparent; }
.lightbox[open] { display: grid; place-items: center; animation: fade 0.4s var(--ease); }
.lightbox__media { max-width: 86vw; max-height: 82vh; }
.lightbox__media img, .lightbox__media video { max-width: 86vw; max-height: 82vh; width: auto; height: auto; }
.lightbox__close {
  position: absolute; top: var(--pad); right: var(--pad);
  font-weight: 500;
  padding: 0.5em 1em;
  border-radius: 999px;
  background: var(--pill);
}
.lightbox__cap { position: absolute; left: var(--pad); bottom: var(--pad); font-size: 14px; }
@keyframes fade { from { opacity: 0; } }

/* ---------- Lab : enveloppe en papier miroir argenté ---------- */
.env-lab {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 42vh var(--pad) 12vh;
}
.env {
  --w: min(42vw, 460px);
  position: relative;
  width: var(--w);
  aspect-ratio: 100 / 70;
  perspective: 1400px;
  cursor: pointer;
  transform: scale(0.6);                       /* petite au départ */
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.env.is-near { transform: scale(1); }          /* au clic elle se rapproche, puis s'ouvre */
.env:not(.is-near):hover { transform: scale(0.63); }
.env__back, .env__flap, .env__pocket { position: absolute; left: 0; width: 100%; }
.env__back { inset: 0; background: linear-gradient(90deg, #8f9396, #c9cccf 45%, #8a8e91); border-radius: 3px; }
.env__pocket { top: 0; height: 100%; z-index: 100; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.3)) drop-shadow(0 18px 24px rgba(0, 0, 0, 0.22)); }
/* rabat triangulaire : fermé par-dessus, puis il bascule vers le haut */
/* rabat en papier miroir (SVG) : fermé par-dessus, il bascule vers le haut et montre sa face intérieure */
.env__flap {
  top: 0;
  height: calc(100% * 50 / 70);
  z-index: 110;
  transform-origin: 50% 0;
  transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1);
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.18));
}
.env__flap svg { display: block; width: 100%; height: 100%; overflow: visible; }
.env.is-open .env__flap { transform: rotateX(180deg); }
.env.flap-behind .env__flap { z-index: 1; }
/* tirages photo */
.env__prints { position: absolute; inset: 0; }
/* tirages : chaque fichier garde son format et sa taille d'origine (largeur fixée en JS) */
.print {
  position: absolute;
  left: 7%;
  bottom: 3%;
  width: 86%;
  margin: 0;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s;
  user-select: none;
}
.print img, .print video { display: block; width: 100%; height: auto; pointer-events: none; }
.env.flap-behind .print.is-front:hover { translate: 0 -4%; }
.env:not(.is-open):hover .env__flap { transform: rotateX(18deg); }
.env:focus-visible { outline: 1px solid var(--muted); outline-offset: 8px; }
/* petite légende de compétence, à droite du tirage */
.env__skill {
  position: absolute;
  left: calc(100% + clamp(20px, 3vw, 48px));
  bottom: 100%;
  width: clamp(140px, 16vw, 220px);
  margin: 0 0 12%;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s, transform 0.5s var(--ease);
  pointer-events: none;
}
.env__skill.is-on { opacity: 1; transform: none; }
@media (max-width: 760px) {
  .env__skill { left: 0; right: 0; width: auto; bottom: auto; top: calc(100% + 18px); margin: 0; text-align: center; }
}
.print.is-leaving { opacity: 0; transition: transform 0.55s cubic-bezier(0.55, 0, 0.75, 0.2), opacity 0.45s 0.1s; }
.env-lab { padding-top: 34vh; }
@media (max-width: 760px) {
  .env { --w: 80vw; }
  .env-lab { padding-top: 36vh; }
}

/* ---------- Pied de page ---------- */
.footer { padding: 0 var(--pad) var(--pad); }
.footer__bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.footer__contacts { text-align: right; }
.footer__contacts .label { margin: 0 0 8px; }
.footer__icons { display: flex; gap: 14px; justify-content: flex-end; }
.footer__icons a { display: inline-block; width: 18px; height: 18px; transition: color 0.3s; }
.footer__icons a:hover { color: var(--muted); }
.footer__icons svg { width: 100%; height: 100%; display: block; }

/* ---------- Apparitions au scroll ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

.split-line { display: block; overflow: hidden; }
.split-line > span { display: block; transform: translateY(105%); transition: transform 1.1s var(--ease); }
.is-loaded .split-line > span { transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .header { font-size: 13px; }
  .header__nav { gap: 14px; }
  .header__nav .hide-sm { display: none; }
  .hero__photo { transform: translate(-50%, -62%); }
  .hero__track span { font-size: 30vw; }
  .pill { font-size: 15px; }
  .hero__hint { display: none; }
  .plist a { grid-template-columns: 30px 1fr auto; row-gap: 2px; }
  .plist__cat { grid-column: 2; grid-row: 2; }
  .plist__year { grid-column: 3; grid-row: 1; }
  .project-meta { grid-template-columns: 1fr 1fr; }
  .project-meta > div:last-child { grid-column: 1 / -1; }
  .gallery .g-half, .gallery .g-third, .gallery .g-narrow { grid-column: span 6; }
}



/* ---------- Mai·lla : typo de la marque (Articulat CF → Figtree, équivalent libre pour le web) ---------- */
html.theme-mailla h1, html.theme-mailla h2, html.theme-mailla h3,
html.theme-mailla .ed__head { font-family: "Figtree", var(--font); font-weight: 800; letter-spacing: -0.01em; }
html.theme-mailla figcaption, html.theme-mailla .ed__head em { font-family: "Figtree", var(--font); font-weight: 500; }

html.theme-mailla .ed-images--pair img { width: 100%; aspect-ratio: 1.28; object-fit: cover; }

/* ---------- Photographie : galerie client, 3 colonnes serrées ---------- */
.gal {
  display: flex;
  flex-direction: column;
  gap: clamp(6px, 0.55vw, 10px);
  width: min(72vw, 1180px);
  margin: 0 auto clamp(80px, 12vh, 160px);
}
.gal__row { display: flex; gap: clamp(6px, 0.55vw, 10px); }
.gal__img { min-width: 0; }
.gal__img { margin: 0; overflow: hidden; }
.gal__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s var(--ease); }
.gal__img:hover img { transform: scale(1.02); }
@media (max-width: 760px) { .gal { width: calc(100% - 2 * var(--pad)); } }

.backstage__media { position: relative; }
.backstage__sound {
  position: absolute; right: 10px; bottom: 10px;
  padding: 6px 10px; border: 0; border-radius: 99px;
  background: rgba(17, 17, 17, 0.55); color: #fff;
  font: 500 11px/1 var(--font); letter-spacing: 0.02em;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
}
.backstage__sound span { opacity: 0.6; }
.backstage__sound[aria-pressed="true"] span { opacity: 1; }

/* ---------- Photographie : mockup téléphone du compte Instagram ---------- */
.phone {
  position: relative;
  display: block;
  width: clamp(250px, 23vw, 330px);
  aspect-ratio: 9 / 19.5;
  padding: 11px;
  border-radius: 46px;
  background: linear-gradient(145deg, #3a3a3c, #1c1c1e 40%, #2c2c2e);
  box-shadow:
    inset 0 0 0 1.5px #5a5a5e,                 /* liseré métal */
    inset 0 0 0 4px #111,
    0 30px 60px rgba(0, 0, 0, 0.25),
    0 8px 18px rgba(0, 0, 0, 0.18);
  transition: transform 0.6s var(--ease);
}
.phone:hover { transform: translateY(-6px) rotate(-1deg); }
/* boutons latéraux */
.phone::before, .phone::after { content: ""; position: absolute; width: 3px; border-radius: 2px; background: #2c2c2e; }
.phone::before { left: -3px; top: 22%; height: 9%; box-shadow: 0 13% 0 #2c2c2e; }
.phone::after { right: -3px; top: 28%; height: 14%; }
.phone__screen {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 36px;
  background: #0c1014;
}
.phone__screen img { display: block; width: 100%; height: auto; }
.phone__status {
  display: flex; justify-content: space-between; align-items: center;
  height: 44px; padding: 4px 26px 0 30px;
  color: #fff; font: 600 13px/1 -apple-system, "SF Pro Text", var(--font);
}
.phone__icons { display: flex; gap: 4px; align-items: center; }
.phone__icons em { display: block; background: #fff; border-radius: 2px; }
.phone__icons em:nth-child(1) { width: 15px; height: 9px; clip-path: polygon(0 100%, 25% 100%, 25% 70%, 37% 70%, 37% 100%, 62% 100%, 62% 40%, 74% 40%, 74% 100%, 100% 100%, 100% 0, 88% 0, 88% 100%, 0 100%); }
.phone__icons em:nth-child(2) { width: 13px; height: 9px; border-radius: 9px 9px 0 0; clip-path: polygon(50% 100%, 0 25%, 100% 25%); }
.phone__icons em:nth-child(3) { width: 22px; height: 10px; border-radius: 3px; background: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,.6), inset -4px 0 0 2px #0c1014, inset 0 0 0 9px #fff; }
.phone__island {
  position: absolute; z-index: 2; top: 20px; left: 50%; transform: translateX(-50%);
  width: 32%; height: 24px; border-radius: 20px; background: #000;
}

/* ---------- Photographie : réseaux — stories | téléphone | backstage, même hauteur ---------- */
.social {
  --h: clamp(440px, 62vh, 620px);                 /* hauteur commune des trois colonnes */
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(28px, 4vw, 72px);
  width: min(86vw, 1240px);
  margin: clamp(80px, 12vh, 160px) auto clamp(90px, 14vh, 180px);
}
.social__col { display: flex; flex-direction: column; align-items: center; }
.social__label, .backstage__title { margin: 0 0 14px; font-size: 12px; color: var(--muted); letter-spacing: 0.02em; }
.backstage__title { font-family: "Figtree", var(--font); font-weight: 800; font-size: 15px; color: var(--ink); letter-spacing: -0.01em; }
/* 4 stories en 2 × 2 : le bloc garde le format 9:16 d'un écran */
.social__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; height: var(--h); aspect-ratio: 9 / 16; }
.story { position: relative; margin: 0; border-radius: 10px; overflow: hidden; background: #111; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12); transition: transform 0.5s var(--ease); }
.story:hover { transform: translateY(-3px); }
.story img, .story video { width: 100%; height: 100%; object-fit: cover; display: block; }
.story__bar { position: absolute; top: 6px; left: 6px; right: 6px; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, 0.4); z-index: 2; overflow: hidden; }
.story__bar i { display: block; height: 100%; width: 100%; background: #fff; transform-origin: left; animation: storybar 6s linear infinite; }
.story:nth-child(2) .story__bar i { animation-delay: -1.5s; }
.story:nth-child(3) .story__bar i { animation-delay: -3s; }
.story:nth-child(4) .story__bar i { animation-delay: -4.5s; }
@keyframes storybar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .story__bar i { animation: none; } }
/* téléphone au centre, un peu plus haut que les côtés */
.social__phone .phone { width: auto; height: calc(var(--h) + 60px); }
.social__handle { margin-top: 16px; font-size: 12px; color: var(--ink); text-decoration: none; border-bottom: 1px solid currentColor; }
.social__phone { margin-bottom: -34px; }           /* le nom du compte passe sous la ligne de base */
/* backstage */
.backstage__media { position: relative; height: var(--h); aspect-ratio: 9 / 16; border-radius: 10px; overflow: hidden; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12); }
.backstage__media video { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 900px) {
  .social { flex-direction: column; align-items: center; --h: 70vh; }
  .social__phone { order: -1; margin-bottom: 0; }
  .social__grid, .backstage__media { height: auto; width: min(80vw, 360px); }
  .social__phone .phone { height: auto; width: min(72vw, 320px); }
}

/* ---------- Café Azure : parties sans titre ---------- */
.ed--nohead { padding-top: clamp(50px, 8vh, 110px); }
.ed-logo--small img { width: min(46vw, 420px) !important; max-width: 420px; margin-inline: auto; display: block; }
.ed-logo--small { display: flex; justify-content: center; }
.swatches--plain .swatch dl, .swatches--plain .swatch__chip { display: none !important; }
.social--ed { margin: 0 auto; }
.social--ed .social__phone { margin-bottom: 0; }
.social--ed .phone__screen { background: #0c1014; }
.story--solo { width: 100%; height: 100%; border-radius: 0; box-shadow: none; }
.swatches--plain { max-width: 640px; margin-inline: auto; } .swatches--plain .swatch { aspect-ratio: 1 / 1 !important; min-height: 0 !important; }
html.theme-azure .swatch + .swatch { color: #3982B9; }
html.theme-azure .swatches { max-width: 620px; margin-inline: auto; }

/* Café Azure : le logo seul sur tout un écran, les couleurs arrivent en glissant */
html.theme-azure .ed--nohead:has(.ed-logo--small) { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 0; }
.ed-logo--small img { width: min(52vw, 520px) !important; max-width: 520px; }

/* Café Azure : pictogrammes et photographies en pleine page, bord à bord */
html.theme-azure .ed--nohead:has(.ed-images--full) { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 0; margin: clamp(40px, 6vh, 80px) 0; }
.ed-images--full { display: block !important; width: 100vw; }

.ed-images--full figure { margin: 0; }
.ed-images--full img { width: 100%; height: auto; display: block; margin: 0; }

/* Café Azure — réseaux : une seule ligne symétrique, sans ombre ni barre : 2 stories | téléphone | 2 stories */
.social-min { display: flex; justify-content: center; align-items: center; gap: clamp(14px, 1.8vw, 28px); --h: clamp(320px, 52vh, 500px); }
.social-min .story { height: calc(var(--h) * 0.82); aspect-ratio: 9 / 17.7; border-radius: 8px; box-shadow: none; }
.social-min .story:hover { transform: none; }
.social-min .phone { width: auto; height: var(--h); box-shadow: inset 0 0 0 1.5px #5a5a5e, inset 0 0 0 4px #111; }
.social-min .phone:hover { transform: none; }
@media (max-width: 760px) { .social-min { flex-wrap: wrap; } .social-min .phone { order: -1; flex-basis: 100%; height: auto; width: 70vw; } .social-min .story { height: auto; width: calc(50% - 8px); } }
/* Échos nature : bouton retour et texte de présentation en vert fluo */
html.theme-dark .header .back { color: #00ff00; }
html.theme-dark .header { mix-blend-mode: normal; }
html.theme-dark .journal-intro p { color: #00ff00; }
/* stories Café Azure : l'image remplit tout le cadre */
.social-min .story { padding: 0; display: block; }
.social-min .story img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* Lab : bouton son de la vidéo */
.print__sound {
  position: absolute; right: 8px; bottom: 8px; z-index: 2;
  padding: 5px 9px; border: 0; border-radius: 99px;
  background: rgba(17, 17, 17, 0.55); color: #fff;
  font: 500 10px/1 var(--font); cursor: pointer; pointer-events: auto;
}
.print__sound span { opacity: .6; } .print__sound[aria-pressed="true"] span { opacity: 1; }
.print:not(.is-front) .print__sound { display: none; }

/* Art de la toile : bouton retour dans le bleu du projet */
html.theme-toile .header { mix-blend-mode: normal; }
html.theme-toile .header .back { color: #072AC8; }

/* ---------- Échos nature : sans titres ni légendes ---------- */
.ex { margin: 0 auto; padding: clamp(60px, 10vh, 130px) 0; width: min(88vw, 1200px); }
.ex--screen { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 0; }
.ex-colors { display: flex; gap: clamp(16px, 2.4vw, 36px); justify-content: center; }
.ex-colors img { width: min(30vw, 380px); height: auto; display: block; }
.ex-colors img + img { outline: 1px solid rgba(255, 255, 255, 0.14); }
.pictos--bare .picto { border: 0; padding: 8%; }
.ex-scatter { position: relative; aspect-ratio: 16 / 13; }
.ex-scatter figure { position: absolute; margin: 0; transform: rotate(var(--r)); transition: transform 0.5s var(--ease); }
.ex-scatter figure:hover { transform: rotate(0deg) scale(1.03); z-index: 5; }
.ex-scatter img { width: 100%; height: auto; display: block; }
.ex--full { width: 100vw; margin-left: calc(50% - 50vw); padding: 0; }
.ex--full + .ex--full { margin-top: clamp(14px, 1.6vw, 24px); }   /* un espace entre chaque pleine page */
.ex--full figure { margin: 0; }
.ex--full img { width: 100%; height: auto; display: block; }
@media (max-width: 760px) {
  .ex-colors { flex-direction: column; align-items: center; } .ex-colors img { width: 76vw; }
  .ex-scatter { aspect-ratio: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .ex-scatter figure { position: static; width: auto !important; }
}

/* Café Azure — réseaux : les stories défilent horizontalement derrière le téléphone */
.social-run { position: relative; height: clamp(400px, 64vh, 600px); display: grid; place-items: center; overflow: hidden;
  width: 100vw; }
.social-run__track { position: absolute; left: 0; top: 50%; display: flex; gap: clamp(14px, 1.6vw, 24px);
  transform: translateY(-50%); animation: storyrun 40s linear infinite; will-change: transform; }
.social-run .story { flex: none; height: clamp(250px, 40vh, 380px); aspect-ratio: 296 / 583; border-radius: 10px; box-shadow: none; overflow: hidden; }
.social-run .story img { width: 100%; height: 100%; object-fit: contain; background: #111; display: block; }
.social-run .phone { position: relative; z-index: 2; width: auto; height: clamp(360px, 58vh, 540px); aspect-ratio: 9 / 19.5; box-sizing: border-box; }
@keyframes storyrun { to { transform: translate(-50%, -50%); } }
@media (prefers-reduced-motion: reduce) { .social-run__track { animation: none; } }

/* téléphone argenté (Café Azure et Photographie) */
.phone, .phone--silver {
  background: linear-gradient(135deg, #f2f3f4, #b9bcbf 30%, #e9eaeb 52%, #9da1a4 78%, #d8dadc) !important;
  box-shadow:
    inset 0 0 0 1px #8f9396,
    inset 0 0 0 3px #e6e8e9,
    inset 0 0 0 5px #111,
    0 22px 44px rgba(0, 0, 0, 0.18),
    0 6px 14px rgba(0, 0, 0, 0.12) !important;
}
.phone::before, .phone::after { background: #a7abae !important; }

/* Café Azure — résultat : les photos de la carte l'une sous l'autre, grandes */
.ed-images--stack { display: flex !important; flex-direction: column; gap: clamp(10px, 1.2vw, 18px); width: min(68vw, 980px); margin: 0 auto; }
.ed-images--stack img { width: 100%; height: auto; display: block; }

/* Mai·lla — planche de recherches : trombones argentés à la place du scotch */
.draft__item.has-clip::after {
  content: ""; position: absolute; top: -22px; left: 18%;
  width: 16px; height: 44px; transform: rotate(-6deg);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 64'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' x2='1'%3E%3Cstop offset='0' stop-color='%23767a7d'/%3E%3Cstop offset='.45' stop-color='%23f4f5f6'/%3E%3Cstop offset='1' stop-color='%238b8f92'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M17 22 V52 a5 5 0 0 1 -10 0 V10 a8 8 0 0 1 16 0 V50 a11 11 0 0 1 -22 0 V18' fill='none' stroke='%23555' stroke-width='3.6' stroke-linecap='round'/%3E%3Cpath d='M17 22 V52 a5 5 0 0 1 -10 0 V10 a8 8 0 0 1 16 0 V50 a11 11 0 0 1 -22 0 V18' fill='none' stroke='url(%23g)' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
  filter: drop-shadow(1px 2px 1.5px rgba(0, 0, 0, 0.25));
}
.draft__item.has-clip:nth-child(even)::after { left: auto; right: 16%; transform: rotate(5deg); }
/* texte d'introduction de l'identité visuelle, même style que le texte du début */
.ed-text { min-height: 60vh; display: grid; place-items: center; }
/* identité visuelle : images en grand */
.ed-images--big { display: flex !important; flex-direction: column; gap: clamp(14px, 1.6vw, 24px); width: min(90vw, 1320px); margin: 0 auto; }
.ed-images--big img { width: 100%; height: auto; display: block; }

/* Photographie — réseaux : bien plus petits et plus espacés (minimaliste) */
.social:not(.social--ed) { --h: clamp(220px, 34vh, 320px); gap: clamp(56px, 9vw, 170px); margin-top: clamp(110px, 16vh, 200px); }
.social:not(.social--ed) .social__grid { gap: 6px; }
.social:not(.social--ed) .story { border-radius: 6px; box-shadow: none; }
.social:not(.social--ed) .story__bar { display: none; }
.social:not(.social--ed) .social__phone .phone { height: calc(var(--h) + 40px); padding: 7px; border-radius: 30px; }
.social:not(.social--ed) .phone__screen { border-radius: 24px; }
.social:not(.social--ed) .phone__island { top: 13px; height: 15px; }
.social:not(.social--ed) .phone__status { height: 30px; font-size: 9px; padding: 3px 16px 0 20px; }
.social:not(.social--ed) .backstage__media { border-radius: 6px; box-shadow: none; }
.social:not(.social--ed) .social__phone { margin-bottom: -30px; }
.social__label, .backstage__title { font-family: var(--font) !important; font-weight: 400 !important; font-size: 11px !important; color: var(--muted) !important; }

/* Lab : l'affiche agrandie avec son texte */
.labzoom { position: fixed; inset: 0; z-index: 900; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none; transition: opacity 0.4s var(--ease); cursor: pointer; }
.labzoom.is-on { opacity: 1; pointer-events: auto; }
.labzoom__inner { display: flex; align-items: flex-end; gap: clamp(18px, 2.4vw, 40px); max-width: 90vw;
  transform: scale(0.94); transition: transform 0.5s var(--ease); }
.labzoom.is-on .labzoom__inner { transform: scale(1); }
.labzoom__media { position: relative; }
.labzoom__media img, .labzoom__media video { display: block; max-width: min(66vw, 1000px); max-height: 80vh; width: auto; height: auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18); }
.labzoom__txt { margin: 0; max-width: 220px; font-size: 13px; line-height: 1.45; color: var(--ink); }
.labzoom__close { position: fixed; top: 28px; right: var(--pad); border: 0; background: none; font: inherit; font-size: 13px; color: var(--muted); cursor: pointer; }
@media (max-width: 760px) { .labzoom__inner { flex-direction: column; align-items: center; } .labzoom__media img, .labzoom__media video { max-width: 88vw; max-height: 66vh; } .labzoom__txt { text-align: center; } }

/* Mai·lla : les 3 logos centrés, sans fond blanc */
.ed-images--center { display: flex !important; justify-content: center; }
.ed-images--center figure { margin: 0; }
.ed-images--center img { width: min(70vw, 900px) !important; height: auto; display: block; margin: clamp(30px, 6vh, 80px) auto; }
html.theme-mailla .ed--nohead:has(.ed-images--full) { padding: 0; margin-bottom: 0; }

/* Photographie : une page par couleur, photos éparpillées */
.gpages { width: min(84vw, 1300px); margin: 0 auto; }
.gpage { position: relative; height: 100vh; height: 100svh; min-height: 560px; }
.gpage + .gpage { margin-top: clamp(20px, 4vh, 60px); }
.gpage__img { position: absolute; margin: 0; overflow: hidden; transition: transform 0.5s var(--ease); }
.gpage__img:hover { transform: scale(1.04); z-index: 3; }
.gpage__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 760px) { .gpage { height: 130svh; } }

/* Photographie — réseaux en colonne : le compte seul, puis les stories alignées, puis le backstage — petit et aéré */
.social-v { display: flex; flex-direction: column; align-items: center; gap: clamp(110px, 18vh, 200px); margin: clamp(120px, 18vh, 220px) auto clamp(120px, 18vh, 220px); }
.social-v__block { display: flex; flex-direction: column; align-items: center; }
.social-v .phone { height: clamp(300px, 46vh, 420px); width: auto; padding: 7px; border-radius: 34px; }
.social-v .phone__screen { border-radius: 27px; }
.social-v .phone__island { top: 13px; height: 16px; }
.social-v .phone__status { height: 32px; font-size: 10px; padding: 3px 18px 0 22px; }
.social-v__row { display: flex; gap: clamp(14px, 1.6vw, 24px); }
.social-v .story { width: clamp(90px, 9vw, 130px); aspect-ratio: 9 / 16; border-radius: 6px; box-shadow: none; }
.social-v .story:hover { transform: translateY(-3px); }
.social-v .backstage__media { height: clamp(220px, 32vh, 300px); aspect-ratio: 9 / 16; border-radius: 6px; box-shadow: none; }
@media (max-width: 760px) { .social-v__row { flex-wrap: wrap; justify-content: center; } .social-v .story { width: 40vw; } }

/* Échos nature : chaque partie sur son propre écran, bien séparée des autres */
.echos .ex--screen { margin-block: clamp(40px, 8vh, 100px); }
.echos .ex--screen .pictos { width: min(80vw, 1000px); }
.echos .ex:has(.ex-scatter) { padding-top: clamp(140px, 22vh, 260px); }
/* Photographie — compte, stories, backstage : chacun seul sur son écran */
.social-v { gap: 0; margin: 0 auto; }
.social-v__block { min-height: 100vh; min-height: 100svh; justify-content: center; width: 100%; }
.idt__anim { max-width: 340px !important; }   /* logo Art de la toile plus petit */
.deck { min-height: 100vh; min-height: 100svh; justify-content: center; padding: 0 var(--pad); margin-top: clamp(260px, 45vh, 520px); }   /* les toiles sur leur propre écran */

/* Art de la toile — comme Café Azure : logo seul en petit, puis la couleur seule, puis les typos, puis les toiles */
.idt__screen { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; }
.idt__screen .idt__anim { width: min(52vw, 340px); }
.idt__screen .idt__swatch { width: min(60vw, 320px); }
.idt__fonts { align-content: center; gap: clamp(40px, 7vh, 90px); }
.idt__fonts .idt__row { width: min(88vw, 1100px); margin: 0; }
/* typos bien centrées : nom au-dessus, alphabet en dessous */
.idt__fonts .idt__row { display: flex; flex-direction: column; align-items: center; text-align: center; gap: clamp(14px, 2vh, 24px); width: auto; }
.idt__fonts .idt__fname, .idt__fonts .idt__alpha { justify-self: auto; text-align: center; }
.idt__fonts { gap: clamp(70px, 12vh, 140px); }
.echos .tw { width: min(56vw, 440px); }   /* logo Échos nature plus petit */
/* Mai·lla : les deux photos finales en pleine page, séparées par un espace */
html.theme-mailla .ed--nohead:has(img[src*="final-"]) { padding: 0; margin-bottom: clamp(14px, 1.6vw, 24px); }
/* Mai·lla : les logos seuls sur leur écran */
html.theme-mailla .ed--nohead:has(img[src*="id-logo"]) { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 0; margin: 0 auto; }
/* Mai·lla : couleurs en pleine page (tout l'écran), typo seule et centrée sur son écran */
html.theme-mailla .ed--nohead:has(img[src*="id-couleurs"]) { padding: 0; margin: clamp(60px, 10vh, 120px) 0; }
html.theme-mailla .ed--nohead:has(img[src*="id-couleurs"]) img { height: 100vh; height: 100svh; object-fit: cover; }
html.theme-mailla .ed--nohead:has(img[src*="id-typo"]) { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 0; margin: 0 auto; }
/* Mai·lla : texte de l'identité seul sur son écran, centré */
html.theme-mailla .ed--nohead:has(.ed-text) { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 0; margin: 0 auto; }
html.theme-mailla .ed-text { min-height: 0; width: 100%; }

/* Mai·lla : les deux photos finales en petit, disposées librement sur un écran */
.loose { position: relative; width: min(92vw, 1300px); height: 100vh; height: 100svh; margin: 0 auto; }
.loose figure { position: absolute; margin: 0; transition: transform 0.5s var(--ease); }
.loose figure:hover { transform: scale(1.03); }
.loose img { width: 100%; height: auto; display: block; }
html.theme-mailla .ed--nohead:has(.loose) { width: 100%; padding: 0; margin: 0 auto; }
@media (max-width: 760px) { .loose figure { width: 44% !important; } }
html.theme-azure .ed-logo--small img { width: min(46vw, 340px) !important; max-width: 340px; }
html.theme-azure .ed--nohead:has(.ed-logo--small) { margin: 0 auto; }
html.theme-azure .ed--nohead:has(.loose) { width: 100%; padding: 0; margin: 0 auto; }
/* téléphone sans ombre portée (seulement le liseré métal) */
.phone, .phone--silver { box-shadow: inset 0 0 0 1px #8f9396, inset 0 0 0 3px #e6e8e9, inset 0 0 0 5px #111 !important; }
/* Café Azure : le téléphone et ses stories seuls sur un écran */
html.theme-azure .ed--nohead:has(.social-run) { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 0; margin: 0 auto; }
/* Café Azure : photos de la carte en pleine page, séparées par un espace */
html.theme-azure .ed--nohead:has(img[src*="menu-"]) { min-height: 0; margin: 0 0 clamp(14px, 1.6vw, 24px); }
/* Café Azure : téléphone plus petit, seul sur son écran */
.social-run { height: clamp(300px, 46vh, 420px); }
.social-run .phone { height: clamp(260px, 40vh, 360px); padding: 7px; border-radius: 32px; }
.social-run .phone__screen { border-radius: 26px; }
.social-run .phone__island { top: 12px; height: 15px; }
.social-run .phone__status { height: 30px; font-size: 9px; padding: 3px 16px 0 20px; }
.social-run .story { height: clamp(180px, 28vh, 250px); border-radius: 6px; }
/* Café Azure : bandeau stories centré sur l'écran */

/* chaque photo de la carte seule, en pleine page */
html.theme-azure .ed--nohead:has(img[src*="menu-"]) img { height: 100vh; height: 100svh; object-fit: cover; }
html.theme-azure .ed--nohead:has(.social-run) { display: flex; flex-direction: column; justify-content: center; }
.social-run { justify-self: auto; flex: none; }
html.theme-azure .ed--nohead:has(.social-run) { align-items: flex-start; }
/* mobile : les photos « libres » en grille simple, sans dépasser de l'écran */
@media (max-width: 760px) {
  .loose { height: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 18vh 0; }
  .loose figure { position: static; width: auto !important; }
}

/* ---------- À propos ---------- */
.about { width: min(86vw, 620px); margin: 0 auto; padding: clamp(140px, 24vh, 240px) 0 clamp(100px, 16vh, 180px); }
.about__name { margin: 0 0 28px; font-size: 13px; font-weight: 500; letter-spacing: 0.01em; }
.about__bio { margin: 0 0 56px; font-size: 13px; line-height: 1.75; }
.about__list { margin: 0; display: grid; gap: 18px; font-size: 12px; line-height: 1.6; }
.about__list div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; }
.about__list dt { color: var(--muted); }
.about__list dd { margin: 0; }
.about__list a, .footer__about { color: inherit; text-decoration: none; border-bottom: 1px solid currentColor; }
@media (max-width: 560px) { .about__list div { grid-template-columns: 1fr; gap: 2px; } }
/* ligne de contexte sous le texte de chaque projet */
.proj-meta { display: block; margin-top: 26px; font-size: 11px; color: var(--muted); letter-spacing: 0.02em; }
html.theme-dark .proj-meta { color: #00ff00 !important; opacity: 0.6; }

/* Objet 3D : vidéo Blender avec son */
.ed-video { position: relative; margin: 0 auto; width: min(100%, 1100px); }
.ed-video video { display: block; width: 100%; height: auto; }
.ed-video .backstage__sound { position: absolute; right: 14px; bottom: 14px; }

/* ligne grise sous le texte d'intro retirée */
.proj-meta { display: none !important; }

/* Photographie : galerie rangée par couleur, photos rassemblées */
.gpages { width: min(88vw, 1320px); margin: 0 auto; }
.pgal { display: flex; flex-wrap: wrap; gap: 6px; }
.pgal__img { margin: 0; overflow: hidden; }
.pgal__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s var(--ease); }
.pgal__img:hover img { transform: scale(1.03); }
.pgal__end { flex: 10 1 0; }
@media (max-width: 760px) { .gpages { width: 100%; padding: 0 var(--pad); } .pgal { gap: 4px; } .pgal__img { flex-basis: 40% !important; } }

.pgal + .pgal { margin-top: clamp(120px, 22vh, 260px); }

/* Échos nature : compte Instagram, téléphone seul sur un écran */
.ex--insta { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; justify-content: center; margin-top: clamp(80px, 14vh, 180px); }
.ex--insta video { height: min(78svh, 760px); width: auto; display: block; mix-blend-mode: lighten; }
.ex-insta { position: relative; display: inline-block; }
.ex-insta .backstage__sound { position: absolute; left: 50%; bottom: -44px; transform: translateX(-50%); }

/* ==========================================================
   LAB — images en colonnes sous une plaque d'argent à gratter
   ========================================================== */
.scratch-lab { position: relative; width: min(88vw, 1240px); margin: clamp(110px, 16vh, 170px) auto clamp(80px, 12vh, 140px); }
.lgrid { columns: 3; column-gap: clamp(16px, 2vw, 28px); }
.lgrid__item { break-inside: avoid; margin: 0 0 clamp(26px, 3.4vw, 46px); cursor: zoom-in; }
.lgrid__item img { display: block; width: 100%; height: auto; }
.lgrid__item figcaption { margin-top: 10px; font-size: 12px; color: var(--muted); }
.plate { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; cursor: crosshair; touch-action: none;
  border-radius: 3px; box-shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 18px 40px -22px rgba(0,0,0,.35); transition: opacity .9s var(--ease); }
.plate.is-gone { opacity: 0; pointer-events: none; }
.plate__hint { position: absolute; z-index: 4; left: 50%; top: min(50%, 420px); transform: translate(-50%, 34px); margin: 0;
  font-size: 12px; letter-spacing: .04em; color: #55585c; pointer-events: none; transition: opacity .5s; white-space: nowrap; }
.plate__all { position: fixed; z-index: 5; right: var(--pad); bottom: 26px; border: 0; background: none; font: inherit; font-size: 12px;
  color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; transition: opacity .5s; }
.is-off { opacity: 0 !important; pointer-events: none; }
@media (max-width: 760px) { .lgrid { columns: 2; } .scratch-lab { width: calc(100% - 2 * var(--pad)); } }
.plate__star { position: absolute; z-index: 4; left: 50%; top: min(50%, 420px); width: 34px; transform: translate(-50%, -50%); pointer-events: none; transition: opacity .5s; }

/* page Projets : toutes les vignettes carrées, même taille */
.board__media img { width: 100%; height: 100%; object-fit: cover; }

/* Lab : tout sur un écran, rangé comme un tableau (5 × 3, filets fins) */
.scratch-lab { width: min(92vw, 1500px); margin: 96px auto 40px; }
.lgrid { columns: auto; display: grid; grid-template-columns: repeat(5, 1fr); grid-template-rows: repeat(3, 1fr);
  height: calc(100vh - 150px); height: calc(100svh - 150px); min-height: 480px;
  border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.lgrid__item, .lgrid__empty { margin: 0; min-height: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: clamp(8px, 1.2vw, 18px); }
.lgrid__item img { width: 100%; height: 100%; min-height: 0; flex: 1 1 auto; object-fit: contain; }
.lgrid__item figcaption { margin: 0; flex: 0 0 auto; font-size: 11px; text-align: center; line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
@media (max-width: 760px) {
  .scratch-lab { width: calc(100% - 2 * var(--pad)); margin-top: 84px; }
  .lgrid { grid-template-columns: repeat(3, 1fr); grid-template-rows: none; grid-auto-rows: 34vw; height: auto; min-height: 0; }
  .lgrid__empty:nth-last-child(-n+2) { display: none; }
  .lgrid__item figcaption { font-size: 9px; }
}
.lgrid { gap: 0; column-gap: 0; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.lgrid__item, .lgrid__empty { min-width: 0; }
@media (max-width: 760px) { .lgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Lab : la légende n'apparaît qu'au survol de l'image */
@media (hover: hover) {
  .lgrid__item figcaption { opacity: 0; transform: translateY(4px); transition: opacity .3s var(--ease), transform .3s var(--ease); }
  .lgrid__item:hover figcaption, .lgrid__item:focus-within figcaption { opacity: 1; transform: none; }
}

/* pastilles affinées : contour fin, fond transparent, texte plus petit */
.pill { background: rgba(255, 255, 255, 0.7); border: 1px solid #b9bbbe; color: var(--ink);
  font-size: clamp(13px, 1.05vw, 18px); letter-spacing: 0; padding: 0.62em 1.2em 0.7em; }
.pill:hover { background: rgba(255, 255, 255, 0.9); border-color: #7d8084; }
@media (max-width: 760px) { .pill { font-size: 13px; } }

/* ==========================================================
   TYPO — une seule police, textes plus petits, plus d'air,
   titres et repères en petites capitales espacées
   ========================================================== */
html.theme-azure body, .ed__head, .research__note, .note, [class*="note"] { font-family: var(--font) !important; }
html.theme-mailla h1, html.theme-mailla h2, html.theme-mailla h3, html.theme-mailla .ed__head { font-family: var(--font); font-weight: 500; }

/* textes d'intro : plus petits, plus aérés, colonne plus étroite */
.journal-intro p, html.theme-azure .journal-intro p { font-size: clamp(12px, 0.88vw, 14px); line-height: 1.85; max-width: 620px; letter-spacing: 0.005em; }
.about__bio { font-size: 12.5px; line-height: 1.9; }
.about__list { font-size: 11.5px; line-height: 1.8; }

/* signature : petites capitales espacées */
.back, .lang, .about__name, .board__cap, .footer__bar, .labzoom__close, .plate__hint, .plate__all,
.lgrid__item figcaption, .labzoom__txt, .backstage__sound, .print__sound, .about__list dt {
  text-transform: uppercase; letter-spacing: 0.16em; font-size: 10.5px; font-weight: 400;
}
.back, .lang { font-size: 11px; }
.labzoom__txt { line-height: 1.7; }
.footer__bar a, .footer__about { letter-spacing: inherit; }
.journal-intro p, html.theme-azure .journal-intro p { max-width: 780px; }
.footer__contacts .label { text-transform: uppercase; letter-spacing: 0.16em; font-size: 10.5px; }

/* Objet 3D : rendus au même format que la vidéo Blender */
.ed-images--video { display: block !important; width: min(100%, 1100px); margin: 0 auto; }
.ed-images--video figure { margin: 0; }
.ed-images--video img { display: block; width: 100% !important; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }

/* ==========================================================
   Photographie : téléphone réaliste (cadre titane argenté,
   bordure noire fine, boutons, île dynamique, reflet sur la vitre)
   ========================================================== */
.social-v .phone--real {
  --pw: clamp(210px, 21vh, 236px);
  height: auto !important; width: var(--pw) !important; aspect-ratio: 71.5 / 147.6;
  padding: calc(var(--pw) * 0.042) !important; border-radius: calc(var(--pw) * 0.17) !important;
  background:
    linear-gradient(90deg, #8d9194 0%, #e9ebec 2.2%, #c6c9cb 4%, #f6f7f7 50%, #c6c9cb 96%, #e9ebec 97.8%, #8d9194 100%) !important;
  box-shadow:
    inset 0 0 0 1px rgba(80, 84, 88, .55),
    inset 0 1px 1px rgba(255,255,255,.9),
    inset 0 0 0 calc(var(--pw) * 0.012) #d9dbdd,
    inset 0 0 0 calc(var(--pw) * 0.03) #0a0a0b,
    0 1px 2px rgba(0,0,0,.18),
    0 24px 48px -18px rgba(0,0,0,.32) !important;
}
.social-v .phone--real::before, .social-v .phone--real::after { display: none; }
.social-v .phone--real:hover { transform: translateY(-4px); }
.phone--real .phone__screen { border-radius: calc(var(--pw) * 0.13) !important; background: #0c1014; }
.phone--real .phone__screen img { position: absolute; top: calc(var(--pw) * 0.12); left: 0; }
.phone--real .phone__status { position: absolute; z-index: 1; left: 0; right: 0; top: 0; height: calc(var(--pw) * 0.12) !important;
  display: flex; align-items: center; justify-content: space-between; padding: 0 calc(var(--pw) * 0.085) !important;
  font-size: calc(var(--pw) * 0.042) !important; font-weight: 600; color: #fff; background: #0c1014; }
.phone--real .phone__island { top: calc(var(--pw) * 0.072) !important; height: calc(var(--pw) * 0.052) !important; width: 31% !important;
  border-radius: 99px; background: #000; box-shadow: inset calc(var(--pw) * 0.075) 0 0 -1px #000, inset -6px 0 0 -2px #0d0f14; }
.phone__glare { position: absolute; z-index: 3; inset: calc(var(--pw) * 0.042); border-radius: calc(var(--pw) * 0.13); pointer-events: none;
  background: linear-gradient(118deg, rgba(255,255,255,.14) 0%, rgba(255,255,255,.04) 28%, rgba(255,255,255,0) 42%); }
.phone__btn { position: absolute; width: calc(var(--pw) * 0.014); border-radius: 2px;
  background: linear-gradient(90deg, #9da1a4, #e6e8e9 60%, #b7babd); }
.phone__btn--action { left: calc(var(--pw) * -0.012); top: 17%; height: 4.2%; }
.phone__btn--up     { left: calc(var(--pw) * -0.012); top: 24.5%; height: 8.5%; }
.phone__btn--down   { left: calc(var(--pw) * -0.012); top: 35%; height: 8.5%; }
.phone__btn--power  { right: calc(var(--pw) * -0.012); top: 27%; height: 13%; }
@media (max-width: 760px) { .social-v .phone--real { --pw: 62vw; } }
/* ajustements : cadre titane fin + bordure noire d'écran, image qui remplit l'écran */
.social-v .phone--real {
  padding: calc(var(--pw) * 0.026) !important;
  box-shadow: inset 0 0 0 1px rgba(70,74,78,.6), inset 0 1px 1px rgba(255,255,255,.9),
    0 1px 2px rgba(0,0,0,.18), 0 26px 50px -20px rgba(0,0,0,.35) !important;
}
.phone--real .phone__screen { border: calc(var(--pw) * 0.026) solid #050505; border-radius: calc(var(--pw) * 0.145) !important; box-sizing: border-box; }
.phone--real .phone__screen img { top: calc(var(--pw) * 0.115); height: calc(100% - var(--pw) * 0.115); width: 100%; object-fit: cover; object-position: top; }
.phone--real .phone__status { height: calc(var(--pw) * 0.115) !important; padding: calc(var(--pw) * 0.02) calc(var(--pw) * 0.07) 0 calc(var(--pw) * 0.1) !important; }
.phone--real .phone__icons { gap: calc(var(--pw) * 0.012); transform: scale(.72); transform-origin: right center; }
.phone--real .phone__island { top: calc(var(--pw) * 0.058) !important; width: 29% !important; }
.phone__glare { inset: calc(var(--pw) * 0.052); border-radius: calc(var(--pw) * 0.12); }
.phone--real .phone__screen img { height: auto; object-fit: initial; }
.phone--real .phone__screen::after { content: ""; position: absolute; z-index: 2; left: 50%; bottom: calc(var(--pw) * 0.022); transform: translateX(-50%);
  width: 34%; height: calc(var(--pw) * 0.014); border-radius: 99px; background: rgba(255,255,255,.85); }

/* À propos : photo à gauche, texte à droite */
.about.about--photo { width: min(88vw, 1000px); display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.about__photo { margin: 0; }
.about__photo img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; }
@media (max-width: 760px) { .about.about--photo { grid-template-columns: 1fr; } .about__photo { width: 60%; } }

/* Lab : tout en noir et blanc, la couleur revient au survol */
.lgrid__item img { filter: grayscale(1) contrast(1.02); transition: filter .5s var(--ease); }
.lgrid__item:hover img, .lgrid__item:focus-within img { filter: none; }
@media (hover: none) { .lgrid__item img { filter: none; } }

/* Lab : une image à la fois, au centre, comme une exposition */
.lgrid__item img, .lgrid__item:hover img { filter: none !important; }
.lgrid.lgrid--one { display: block; position: relative; border: 0; height: calc(100svh - 170px); min-height: 440px; cursor: pointer; }
.lgrid--one .lgrid__item { position: absolute; inset: 0 0 40px; padding: 0; border: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  opacity: 0; visibility: hidden; transition: opacity .6s var(--ease), visibility 0s .6s; }
.lgrid--one .lgrid__item.is-on { opacity: 1; visibility: visible; transition: opacity .6s var(--ease); }
.lgrid--one .lgrid__item img { flex: 0 1 auto; width: auto; height: auto; max-width: min(78%, 900px); max-height: calc(100% - 40px); object-fit: contain; }
.lgrid--one .lgrid__item figcaption { opacity: 1 !important; transform: none !important; white-space: normal; }
.lnav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; border: 0; background: none; font: inherit; font-size: 18px; color: var(--muted); padding: 14px; cursor: pointer; transition: color .3s; }
.lnav:hover { color: var(--ink); }
.lnav--prev { left: 0; } .lnav--next { right: 0; }
.lcount { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; text-align: center; font-size: 10.5px; letter-spacing: .16em; color: var(--muted); }
.lcount span { color: var(--ink); }
.lgrid__empty { display: none; }
@media (max-width: 760px) { .lgrid.lgrid--one { height: calc(100svh - 150px); grid-template-columns: none; } .lgrid--one .lgrid__item img { max-width: 100%; } .lnav { display: none; } }

/* Lab : plus de plaque à gratter */
.plate, .plate__hint, .plate__all, .plate__star { display: none !important; }

/* Mai·lla : photos finales en grand, centrées */
.ed-images--big { display: flex !important; justify-content: center; width: 100%; }
.ed-images--big figure { margin: 0; width: min(100%, 960px); }
.ed-images--big img { display: block; width: 100% !important; height: auto; }
.ed:has(.ed-images--big) + .ed:has(.ed-images--big) { margin-top: clamp(80px, 14vh, 160px); }

/* 3D : plan technique en petit à côté du rendu, cliquable pour agrandir */
.ed-images--video.has-plan { position: relative; overflow: visible; }
.ed-plan { position: absolute; left: calc(100% + clamp(16px, 2vw, 32px)); bottom: 0; width: clamp(70px, 7vw, 110px); margin: 0; cursor: zoom-in; }
.ed-plan img { display: block; width: 100%; height: auto; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.08), 0 10px 24px -14px rgba(0,0,0,.35); transition: transform .4s var(--ease); }
.ed-plan:hover img { transform: translateY(-3px); }
.ed-plan figcaption { margin-top: 8px; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 1100px) { .ed-plan { position: static; margin: 14px 0 0 auto; width: 90px; } }
.ed-images--video .ed-plan img { width: 100% !important; aspect-ratio: auto !important; object-fit: contain !important; height: auto !important; }

/* Art de la toile : flèches et toile agrandissable */
.deck__count { display: flex; align-items: center; justify-content: center; gap: 10px; }
.deck__nav { border: 0; background: none; font: inherit; color: var(--muted); padding: 6px 10px; cursor: pointer; transition: color .3s; }
.deck__nav:hover { color: var(--ink); }
.deck__hint { margin: 6px 0 0; text-align: center; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.deck__card.is-top { cursor: zoom-in; }

a.hero__photo { display: block; cursor: pointer; }
a.hero__photo:hover img { transform: scale(1.04); }

/* ---------- projets & lab : tout tient sur un écran, plus aéré ---------- */
@media (min-width: 761px) {
  body[data-page="projects"], body[data-page="lab"] { min-height: 100svh; display: flex; flex-direction: column; }
  body[data-page="projects"] main, body[data-page="lab"] main { flex: 1; display: flex; flex-direction: column; min-height: 0; }
  body[data-page="projects"] .board { flex: 1; height: auto; min-height: 420px; width: auto; margin: 110px 6vw 50px; }
  body[data-page="projects"] .board__item { min-width: 0; }
  body[data-page="lab"] .lgrid.lgrid--one { flex: 1; height: auto; min-height: 380px; margin: 0 0 0; }
  body[data-page="lab"] .lgrid--one .lgrid__item img { max-width: min(62%, 760px); max-height: calc(100% - 60px); }
}
.pgift { margin-top: clamp(120px, 22vh, 260px); }
.pgift__txt { margin: 0 0 28px; max-width: 520px; font-size: 13px; line-height: 1.6; }
@media (min-width: 761px) {
  body[data-page="lab"] .env-lab { flex: 1; display: flex; flex-direction: column; min-height: 0; }
}
@media (min-width: 761px) {
  body[data-page="lab"] .lgrid.lgrid--one { flex: none; height: calc(100svh - 334px); min-height: 360px; margin-top: 90px; }
  body[data-page="lab"] .env-lab { justify-content: flex-start; padding-top: 0; }
}

/* téléphone : on peut attraper une pilule du doigt, le reste de l'écran défile normalement */
@media (pointer: coarse) { .pill { touch-action: none; cursor: grab; } }

/* photographie : rangées justifiées, toutes de la même largeur */
.pgal { display: flex; flex-direction: column; gap: 6px; }
.pgal__row { display: flex; gap: 6px; }
.pgal__row .pgal__img { min-width: 0; }
@media (max-width: 760px) { .pgal, .pgal__row { gap: 4px; } .pgal__img { flex-basis: 0 !important; } }

.ed-rows { width: min(1100px, calc(100% - 2 * var(--pad))); margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.ed-rows .pgal__row { gap: 10px; }
.ed-rows .pgal__img { background: #fff; }
@media (max-width: 760px) { .ed-rows, .ed-rows .pgal__row { gap: 4px; } }

/* Mai·lla — mise en situation : photos détourées (png transparents), sans fond, tiennent sur un écran */
.ed-situ { position: relative; margin: 0 auto; width: min(1170px, calc(100% - 2 * var(--pad)), calc((100svh - 160px) * 2)); aspect-ratio: 2 / 1; }
.ed-situ__row { display: contents; }
.ed-situ__img { position: absolute; margin: 0; transform: translateX(-50%); display: flex; align-items: flex-end; justify-content: center; }
.ed-situ__img img { height: 100% !important; width: auto !important; max-width: none !important; display: block; transition: transform 0.6s var(--ease); }
.ed-situ__img:hover img { transform: scale(1.03); }
.ed-situ__row--top .ed-situ__img { top: 6%; height: 38%; }
.ed-situ__row--top .ed-situ__img:nth-child(1) { left: 12%; }
.ed-situ__row--top .ed-situ__img:nth-child(2) { left: 31%; }
.ed-situ__row--top .ed-situ__img:nth-child(3) { left: 50%; }
.ed-situ__row--top .ed-situ__img:nth-child(4) { left: 69%; }
.ed-situ__row--top .ed-situ__img:nth-child(5) { left: 88%; }
.ed-situ__row--bottom .ed-situ__img { top: 54%; height: 42%; }
.ed-situ__row--bottom .ed-situ__img:nth-child(1) { left: 20%; }
.ed-situ__row--bottom .ed-situ__img:nth-child(2) { left: 50%; }
.ed-situ__row--bottom .ed-situ__img:nth-child(3) { left: 80%; }
@media (max-width: 760px) {
  .ed-situ { width: calc(100% - 2 * var(--pad)); aspect-ratio: 0.75; }
  .ed-situ__row--top .ed-situ__img { height: 20%; }
  .ed-situ__row--top .ed-situ__img:nth-child(-n+3) { top: 3%; }
  .ed-situ__row--top .ed-situ__img:nth-child(1) { left: 17%; } .ed-situ__row--top .ed-situ__img:nth-child(2) { left: 50%; } .ed-situ__row--top .ed-situ__img:nth-child(3) { left: 83%; }
  .ed-situ__row--top .ed-situ__img:nth-child(4) { left: 32%; top: 27%; } .ed-situ__row--top .ed-situ__img:nth-child(5) { left: 68%; top: 27%; }
  .ed-situ__row--bottom .ed-situ__img { top: 56%; height: 22%; }
  .ed-situ__row--bottom .ed-situ__img:nth-child(1) { left: 17%; } .ed-situ__row--bottom .ed-situ__img:nth-child(2) { left: 50%; top: 79%; height: 20%; } .ed-situ__row--bottom .ed-situ__img:nth-child(3) { left: 83%; }
}
.lgrid__item img[src*="teinture-vegetale"] { mix-blend-mode: multiply; }

/* ==========================================================
   TÉLÉPHONE — pas d'écrans vides : chaque bloc prend la place
   de son contenu, avec un rythme régulier entre les sections
   ========================================================== */
@media (max-width: 760px) {
  .journal-intro { min-height: auto; padding: 130px var(--pad) 72px; }
  .journal-intro p { font-size: 13px; line-height: 1.75; }
  .idt__screen, .ex--screen, .social-v__block { min-height: auto; padding: 56px 0; }
  .deck { min-height: auto; margin-top: 40px; padding-top: 40px; padding-bottom: 40px; }
  .ex--insta { min-height: auto; margin-top: 32px; padding-top: 40px; padding-bottom: 40px; }
  .ed { width: calc(100% - 2 * var(--pad)); margin-bottom: 64px; }
  .ed--nohead { padding-top: 0; }
  html.theme-azure .ed--nohead:has(.ed-logo--small),
  html.theme-azure .ed--nohead:has(.ed-images--full),
  html.theme-azure .ed--nohead:has(.social-run),
  html.theme-mailla .ed--nohead:has(.ed-text) { min-height: auto; margin: 0 auto 64px; padding: 24px 0; }
  html.theme-azure .ed--nohead:has(img[src*="menu-"]) img { height: auto; }
  .ed:has(.ed-images--big) + .ed:has(.ed-images--big) { margin-top: 0; }
  .pgal + .pgal, .pgift { margin-top: 72px; }
  .social-v { margin-top: 0; }
  .echos { padding-bottom: 0; }
}
@media (max-width: 760px) { .echos > .ex:not(.ex--screen):not(.ex--full):not(.ex--insta) { padding-top: 56px; padding-bottom: 40px; } .ex--screen { margin: 0; } }
@media (max-width: 760px) {
  /* photos posées librement : en grille propre sur téléphone */
  .loose { height: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; width: calc(100% - 2 * var(--pad)); }
  .loose figure { position: static; width: auto !important; transform: none !important; }
  /* Mai·lla mise en situation : 2 colonnes, photos plus grandes */
  .ed-situ { aspect-ratio: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 12px; }
  .ed-situ .ed-situ__img, .ed-situ__row--top .ed-situ__img, .ed-situ__row--bottom .ed-situ__img { position: static; transform: none; height: 46vw !important; left: auto !important; top: auto !important; }
  .ed-situ__row--bottom .ed-situ__img:nth-child(2) { grid-column: 1 / -1; height: 52vw !important; }
  .ex--insta { padding-bottom: 80px; }
}
@media (max-width: 760px) { .ed-situ__row--bottom .ed-situ__img:nth-child(2) { order: 1; } }
/* Mai·lla recherches : sur téléphone, même collage que sur ordinateur (à l'échelle) */
@media (max-width: 760px) {
  html.theme-mailla .ed--nohead:has(.draft) { width: 100%; }
  .draft { display: block; width: calc(100vw - 12px); aspect-ratio: 1.85; padding: 0; margin-inline: auto; }
  .draft__item { position: absolute; }
  .draft__item.has-clip::after { top: -10px; width: 7px; height: 20px; }
  .draft__note { position: absolute; }
}
@media (max-width: 760px) { html.theme-mailla .ed--nohead:has(.draft) { width: calc(100% - 12px); } .draft { width: 100%; } }

/* galeries photo : la hauteur vient de l'image elle-même (fiable sur iPhone / Safari) */
.pgal__img { aspect-ratio: auto !important; }
.pgal__img img { width: 100% !important; height: auto !important; object-fit: cover; }
/* fond blanc pur : pas de grain sur les pages claires */
html:not(.theme-dark) body::before { display: none; }
html:not(.theme-dark), html:not(.theme-dark) body { background: #fff; }

/* ---------- fin de projet : flèche vers le projet suivant ---------- */
.pnext { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center;
  margin: clamp(80px, 14vh, 160px) auto 0; padding: clamp(48px, 9vh, 90px) var(--pad) clamp(56px, 10vh, 110px);
  border-top: 1px solid var(--line); color: inherit; text-decoration: none; }
.pnext__label { font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.pnext__title { font-size: clamp(15px, 1.5vw, 20px); letter-spacing: 0.14em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 14px; }
.pnext__title i { font-style: normal; display: inline-block; transition: transform 0.5s var(--ease); }
.pnext:hover .pnext__title i { transform: translateX(10px); }
.pnext:hover .pnext__title { color: var(--muted); }
@media (max-width: 760px) { .pnext { margin-top: 56px; padding: 44px var(--pad) 52px; } }
.pnext { border-top: 0; }

/* flèche « projet suivant » : même taille que le bouton retour */
.pnext__title { font-size: 11px !important; letter-spacing: 0.16em !important; gap: 10px; }
.pnext__title i { font-size: 11px; }

/* Photographie : backstage en plus grand */
.social-v .backstage__media { height: clamp(440px, 74vh, 760px) !important; }
@media (max-width: 760px) { .social-v .backstage__media { height: auto !important; width: 82vw; } }

/* Art de la toile : processus puis toiles alignées sur une ligne, chacune s'agrandit au clic */
.tline { width: min(1240px, calc(100% - 2 * var(--pad))); margin: clamp(120px, 20vh, 220px) auto 0; }
.tline__label { margin: 0 0 22px; font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent, var(--muted)); text-align: center; }
.tline__row { display: flex; gap: clamp(14px, 2vw, 28px); align-items: flex-start; }
.tline__item { margin: 0; min-width: 0; overflow: hidden; cursor: zoom-in; }
.tline__item img, .tline__item video { width: 100% !important; height: auto !important; display: block; object-fit: cover; transition: transform 0.6s var(--ease); }
.tline__item:hover img, .tline__item:hover video { transform: scale(1.03); }
.tline__item--toile { box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08), 0 14px 30px rgba(0, 0, 0, 0.08); }
.tline--toiles .tline__row { align-items: flex-end; }
.tline__hint { margin: 22px 0 0; text-align: center; font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 760px) {
  .tline { margin-top: 72px; }
  .tline__row { flex-wrap: wrap; gap: 10px; }
  .tline__item { flex: 0 0 calc(50% - 5px) !important; }
}
/* Art de la toile : processus sur un écran, toiles sur un autre */
@media (min-width: 761px) {
  .tline { min-height: 100svh; margin-top: 0; display: flex; flex-direction: column; justify-content: center; }
  .tline__row { max-height: calc(100svh - 200px); }
  .tline--process .tline__row { width: min(100%, calc((100svh - 200px) * 2.45)); margin: 0 auto; }
}
/* backstage encore un peu plus grand */
.social-v .backstage__media { height: clamp(500px, 84vh, 860px) !important; }
.tline__item:has(video) { position: relative; }
.tline__item .backstage__sound { position: absolute; right: 10px; bottom: 10px; z-index: 2; }
/* photographie : les photos sont toujours visibles, sans attendre d'effet d'apparition */
.gpages, .gpages *, .pgal, .pgal__img, .pgal__img img { opacity: 1 !important; visibility: visible !important; }
.pgal__img img { display: block; min-height: 1px; }

/* Photographie : avant / après sur un écran, une ligne à tirer */
.ba { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 10px;
  width: min(1100px, calc(100% - 2 * var(--pad)), calc((100svh - 190px) * 1.25)); margin: clamp(80px, 14vh, 160px) auto 0; }
.ba__title { margin: 0 0 14px; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; }
.ba__row { display: flex; gap: 10px; width: 100%; }
.ba__item { position: relative; overflow: hidden; min-width: 0; user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.ba__item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.ba__before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba__line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; pointer-events: none; box-shadow: 0 0 6px rgba(0,0,0,.25); }
.ba__line i { position: absolute; top: 50%; left: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.ba__line i::before { content: "‹ ›"; position: absolute; inset: 0; display: grid; place-items: center; font-style: normal; font-size: 15px; color: #111; letter-spacing: 2px; }
.ba__tag { position: absolute; bottom: 10px; padding: 4px 9px; border-radius: 20px; background: rgba(0,0,0,.45); color: #fff; font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; pointer-events: none; }
.ba__tag--l { left: 10px; } .ba__tag--r { right: 10px; }
.ba__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; touch-action: pan-y; }
.ba__range::-webkit-slider-thumb { -webkit-appearance: none; width: 44px; height: 100vh; }
.ba__range::-moz-range-thumb { width: 44px; height: 100vh; border: 0; }
@media (max-width: 760px) { .ba { min-height: auto; width: calc(100% - 2 * var(--pad)); margin-top: 72px; } .ba__row { flex-direction: column; } .ba__item { flex: none !important; width: 100%; } }

/* backstage un peu plus petit */
.social-v .backstage__media { height: clamp(420px, 66vh, 680px) !important; }
.gpages .ba__range { opacity: 0 !important; }
.lgrid__item img[src*="a-table-"] { box-shadow: 0 1px 3px rgba(0,0,0,.08), 0 12px 30px rgba(0,0,0,.10); }
.lgrid__item img[src*="fusain"] { mix-blend-mode: multiply; }
.ba + .pgift { margin-top: clamp(80px, 14vh, 160px); }
/* 3D : sérum, modélisation Rhino / rendu avec la ligne à tirer */
.ba__item--3d { width: 100%; aspect-ratio: 1672 / 941; }
.ba__item--3d .ba__range { opacity: 0 !important; }
