/* I HAVE A DREAM — Damien Millet
   On entre par le mur blanc de la galerie : le titre seul, en pleine page.
   En défilant, la phrase se répète, puis prend les couleurs des serpillières.
   Chaque section colorée est une serpillière : sa couleur, sa peinture au pochoir,
   ses deux rayures rouges tissées. */

@font-face {
  font-family: "Dream Stencil";
  src: url("../fonts/dream-stencil.woff2") format("woff2");
  font-display: block;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans-italic.woff2") format("woff2");
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Courier Prime";
  src: url("../fonts/courier-prime.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Courier Prime";
  src: url("../fonts/courier-prime-bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --mur: #ffffff;
  --encre: #121212;
  --encre-douce: #555553;
  --filet: #d8d8d5;
  --nuit: #0c0c0c;
  --rayure: #b5303d;
  --rayure-delavee: rgba(170, 40, 52, .68);   /* rayure tissée, passée sous la teinture */
  --fond: #4fb0df;
  --encre-t: #15212c;
  --trame: repeating-linear-gradient(0deg, rgba(0, 0, 0, .05) 0 1px, transparent 1px 4px);

  --f-pochoir: "Dream Stencil", "Arial Narrow", Impact, sans-serif;
  --f-texte: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --f-machine: "Courier Prime", "Courier New", Courier, monospace;

  --g-gauche: max(16px, env(safe-area-inset-left, 0px));
  --g-droite: max(16px, env(safe-area-inset-right, 0px));
  --large: 76rem;
  --mesure: 36rem;
  --section: clamp(5rem, 14vw, 10rem);

  color-scheme: light;
}

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

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

body {
  margin: 0;
  background: var(--mur);
  color: var(--encre);
  font-family: var(--f-texte);
  font-weight: 500;
  font-stretch: 84%;
  font-size: 1.1875rem;
  line-height: 1.5;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--rayure); outline-offset: 3px; }
[hidden] { display: none !important; }

.lien-evitement {
  position: absolute; left: var(--g-gauche); top: -100px; z-index: 30;
  background: var(--encre); color: var(--mur); padding: .6rem 1rem;
  font-family: var(--f-machine); font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
}
.lien-evitement:focus { top: calc(env(safe-area-inset-top, 0px) + 8px); }

.visuellement-cache {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------- Gabarit ---------- */

.wrap {
  width: 100%;
  max-width: calc(var(--large) + 32px);
  margin-inline: auto;
  padding-left: var(--g-gauche);
  padding-right: var(--g-droite);
}
.section { padding-block: var(--section); }
.texte { max-width: var(--mesure); min-width: 0; }
.texte > * + * { margin-top: 1.1em; }
.texte p { margin-bottom: 0; }

.surtitre {
  margin: 0 0 1.25rem;
  font-family: var(--f-machine);
  font-weight: 700;
  font-size: .8125rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.titre-section {
  margin: 0;
  font-weight: 600;
  font-stretch: 78%;
  font-size: clamp(2.375rem, 8vw, 4.75rem);
  line-height: .98;
  letter-spacing: -.015em;
  text-wrap: balance;
}
.chapo { font-size: clamp(1.375rem, 2.8vw, 1.75rem); line-height: 1.32; font-stretch: 80%; }
strong { font-weight: 700; }
.lc, .lr { display: inline-block; }
.legende {
  margin-top: .8rem;
  font-family: var(--f-machine);
  font-size: .78rem;
  line-height: 1.45;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--encre-douce);
}
.petit { font-size: 1.0625rem; color: var(--encre-douce); }

mark.a-completer {
  background: transparent;
  color: var(--rayure);
  outline: 2px dashed var(--rayure);
  outline-offset: 1px;
  padding: 0 .3em;
  font-family: var(--f-machine);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .02em;
}

/* ---------- Apparitions ---------- */

.anime .reveler {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s ease, transform 1s cubic-bezier(.2, .7, .2, 1);
}
.anime .reveler.vu { opacity: 1; transform: none; }

/* ---------- La toile : une serpillière ---------- */

.toile {
  position: relative;
  overflow: hidden;
  background-color: var(--fond);
  background-image: var(--trame);
  color: var(--encre-t);
}
.toile__rangs {
  font-family: var(--f-pochoir);
  line-height: .9;
  white-space: pre;
  user-select: none;
  -webkit-user-select: none;
}
.toile__rangs > span { display: block; transform: translateX(var(--decal)); }
.toile::after {
  /* les deux fines rayures rouges tissées : sous la peinture, un peu délavées par la teinture */
  content: "";
  position: absolute;
  z-index: 0;
  left: 0; right: 0;
  top: var(--rayure-y);
  height: .2em;
  transform: translateY(-50%);
  background: linear-gradient(var(--rayure-delavee) 0 22%, transparent 22% 78%, var(--rayure-delavee) 78%);
  mix-blend-mode: multiply;
}
.toile__rangs { position: relative; z-index: 1; }
.toile--bande { font-size: clamp(2.25rem, 8vw, 4.5rem); }
.toile--bande .toile__rangs > span:nth-child(n+4) { display: none; }

/* ---------- Bouton ---------- */

.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: .85rem 1.5rem;
  background: var(--encre);
  color: var(--mur);
  border: 2px solid var(--encre);
  font-family: var(--f-machine);
  font-weight: 700;
  font-size: .9375rem;
  line-height: 1.2;
  letter-spacing: .07em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  transition: background-color .2s ease, color .2s ease;
}
.bouton:hover { background: var(--mur); color: var(--encre); text-decoration: none; }
.bouton--grand { width: 100%; min-height: 4rem; font-size: 1.0625rem; }

/* ================================================================
   1. MANTRA : le titre en pleine page, puis la phrase se répète
   ================================================================ */

.mantra { position: relative; background: var(--mur); --p: 0; }
.mantra__scene {
  position: relative;
  height: 100svh;
  min-height: 30rem;
  overflow: hidden;
  container-type: inline-size;
}
.anime .mantra { height: 440svh; }
.anime .mantra__scene { position: sticky; top: 0; }

.mantra__mur, .mantra__matiere, .mantra__texte { position: absolute; inset: 0; }

/* le texte noir : titre + rangs */
.mantra__texte {
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  font-family: var(--f-pochoir);
  line-height: .9;
  color: var(--encre);
  /* un mot par ligne sur téléphone */
  font-size: min(calc((100cqi - 32px) / 2.9), 19svh);
  opacity: clamp(0, calc((.48 - var(--p)) * 14), 1);
  transform: scale(calc(1 - clamp(0, calc((var(--p) - .38) * 1.2), .12)));
}
.titre { margin: 0; font: inherit; line-height: inherit; }
.titre__visuel { display: block; }
.titre .ligne { display: block; }
.titre .paire { display: block; white-space: nowrap; padding-left: var(--g-gauche); }
.titre .mot { white-space: nowrap; }
.titre .l { display: inline-block; }
.titre .suite {
  white-space: pre;
  opacity: clamp(0, calc((var(--p) - var(--s)) * 30), 1);
}
.titre .suite:not(.s-m) { display: none; }

/* deux lignes : tablettes, écrans peu larges */
@media (min-width: 700px), (min-aspect-ratio: 4/5) {
  .mantra__texte { font-size: min(calc((100cqi - 32px) / 3.8), 30svh); }
  .titre .paire { display: inline; padding-left: 0; }
  .titre .ligne { padding-left: var(--g-gauche); white-space: nowrap; }
  .titre .suite { display: none; }
  .titre .suite.s-t { display: inline; }
}
/* une ligne : écrans larges */
@media (min-aspect-ratio: 6/5) {
  .mantra__texte { font-size: min(calc((100cqi - 32px) / 6.62), 36svh); }
  .titre .ligne { display: inline; padding-left: 0; }
  .titre__visuel { padding-left: var(--g-gauche); white-space: nowrap; }
  .titre .suite.s-t { display: none; }
  .titre .suite.s-d { display: inline; }
}

.rang {
  white-space: pre;
  padding-left: var(--g-gauche);
  opacity: clamp(0, calc((var(--p) - var(--s)) * 30), 1);
  transform: translateX(calc(var(--decal) + var(--p) * var(--dx)));
}
.mantra__rangs { display: flex; flex-direction: column; }

/* le titre se peint lettre à lettre, comme à travers un pochoir */
@keyframes pochoir {
  from { clip-path: inset(-5% 0 105% 0); }
  to { clip-path: inset(-5% 0 -5% 0); }
}
.anime .titre .l { animation: pochoir .55s cubic-bezier(.3, .7, .2, 1) both; animation-delay: calc(var(--i) * 75ms + 200ms); }

/* le mur de serpillières */
.mur {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  background: var(--mur);
}
.mur .toile--sup { display: none; }
@media (min-width: 700px) and (max-aspect-ratio: 6/5) {
  .mur { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(4, minmax(0, 1fr)); }
  .mur .toile--sup { display: block; }
}
@media (min-aspect-ratio: 6/5) {
  .mur { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(0, 1fr)); }
  .mur .toile--sup { display: block; }
}
.toile--mur {
  container-type: size;
  margin: -3px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .14);
  opacity: clamp(0, calc((var(--p) - var(--s)) * 22), 1);
  transform: translateY(calc((1 - clamp(0, calc((var(--p) - var(--s)) * 22), 1)) * 5vh)) rotate(var(--rot));
}
.toile--mur .toile__rangs { font-size: 19cqh; }

/* la vraie photo des serpillières */
.mantra__matiere { opacity: clamp(0, calc((var(--p) - .64) * 7), 1); }
.mantra__matiere picture, .mantra__matiere img { display: block; width: 100%; height: 100%; max-width: none; }
.mantra__matiere img {
  object-fit: cover;
  transform: scale(calc(1.14 - .14 * clamp(0, calc((var(--p) - .64) * 4), 1)));
}

/* le seuil : artiste et œuvre, en haut de l'écran */
.mantra__seuil {
  position: absolute;
  top: calc(env(safe-area-inset-top, 0px) + 1.1rem);
  left: var(--g-gauche);
  right: var(--g-droite);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  opacity: clamp(0, calc(1 - var(--p) * 22), 1);
}
.mantra__seuil p { margin: 0; }
.mantra__oeuvre { font-weight: 600; font-stretch: 78%; font-size: 1.1875rem; text-align: right; order: 2; }
.mantra__oeuvre span { font-weight: 500; }
.mantra__artiste {
  font-family: var(--f-machine);
  font-weight: 700;
  font-size: .875rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* l'invitation à défiler */
.mantra__indice {
  position: absolute;
  left: 0; right: 0;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 1rem);
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
  font-family: var(--f-machine);
  font-weight: 700;
  font-size: .75rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: clamp(0, calc(1 - var(--p) * 22), 1);
}
.mantra__indice::after {
  content: "";
  width: 2px;
  height: 2.75rem;
  background: linear-gradient(var(--encre) 0 50%, transparent 50%) 0 0 / 100% 200%;
}
.anime .mantra__indice::after { animation: corde-tiree 1.8s ease-in-out infinite; }
@keyframes corde-tiree {
  from { background-position: 0 100%; }
  to { background-position: 0 -100%; }
}

/* la phrase de l'artiste, à la fin */
.mantra__citation {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(32rem, calc(100% - 40px));
  padding: clamp(1.75rem, 5vw, 2.75rem);
  background: var(--mur);
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .18);
  opacity: clamp(0, calc((var(--p) - .8) * 8), 1);
  transform: translate(-50%, calc(-50% + (1 - clamp(0, calc((var(--p) - .8) * 8), 1)) * 4vh));
}
.mantra__citation blockquote { margin: 0; }
.mantra__citation p {
  margin: 0;
  font-size: clamp(1.625rem, 5.2vw, 2.375rem);
  font-weight: 600;
  font-stretch: 78%;
  line-height: 1.1;
  text-wrap: balance;
}
.mantra__citation figcaption,
.carton figcaption {
  margin-top: 1.25rem;
  font-family: var(--f-machine);
  font-size: .8125rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* sans animation : le titre, puis le mur et la phrase, l'un après l'autre */
html:not(.anime) .mantra__scene { height: auto; overflow: visible; display: flex; flex-direction: column; }
html:not(.anime) .mantra__texte { order: 1; }
html:not(.anime) .mantra__mur { order: 2; }
html:not(.anime) .mantra__citation { order: 3; }
html:not(.anime) .mantra__texte { position: relative; height: 100svh; min-height: 30rem; }
html:not(.anime) .mantra__mur { position: relative; height: 90svh; --p: 1; }
html:not(.anime) .mantra__matiere,
html:not(.anime) .mantra__indice { display: none; }
html:not(.anime) .mantra__citation { --p: 1; position: relative; left: auto; top: auto; transform: none; margin: -45svh auto 10svh; }

/* ================================================================
   2. L'ŒUVRE
   ================================================================ */

.oeuvre { --p: 1; }
.sculpture {
  width: min(86vw, 38rem);
  margin: clamp(3rem, 9vw, 6rem) auto;
}
.sculpture__cadre {
  overflow: hidden;
  clip-path: inset(calc((1 - var(--p)) * 20%) calc((1 - var(--p)) * 32%));
}
.sculpture img { transform: scale(calc(1.3 - .3 * var(--p))); transform-origin: 50% 60%; }
.oeuvre__texte { margin-bottom: clamp(3.5rem, 9vw, 6rem); }

.references { display: grid; gap: 1.25rem; }
@media (min-width: 700px) { .references { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .references { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.reference {
  background-color: var(--fond);
  background-image: var(--trame);
  color: var(--encre);
  min-width: 0;
}
.reference .toile--bande { font-size: 2.75rem; height: 1.8em; }
.reference__corps { padding: 1.1rem 1.25rem 1.6rem; }
.reference h3 {
  margin: 0 0 .7rem;
  font-family: var(--f-machine);
  font-weight: 700;
  font-size: .9375rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.reference p { margin: 0; font-size: 1.0625rem; line-height: 1.45; }

/* ================================================================
   3 et 6. CARTONS : les mots s'allument un à un
   ================================================================ */

.carton { position: relative; margin: 0; background-color: var(--fond); background-image: var(--trame); color: var(--encre-t); --p: 1; }
.anime .carton { height: 220svh; --p: 0; }
.carton__scene {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.anime .carton__scene { position: sticky; top: 0; height: 100svh; }
.carton__toile { position: absolute; inset: 0; font-size: 12.5svh; }
/* toute la serpillière de fond s'efface d'un bloc : la rayure reste sous les lettres
   et s'estompe autant qu'elles */
.carton__toile { opacity: .17; box-shadow: none; }
.carton__toile::after { background: linear-gradient(var(--rayure) 0 22%, transparent 22% 78%, var(--rayure) 78%); }
.carton__texte {
  position: relative;
  padding: 0 var(--g-droite) 0 var(--g-gauche);
  text-align: center;
}
.carton blockquote { margin: 0 auto; max-width: 15em; font-size: clamp(2rem, 7.6vw, 4.6rem); }
.carton blockquote p {
  margin: 0;
  font-weight: 600;
  font-stretch: 78%;
  line-height: 1.06;
  letter-spacing: -.012em;
  text-wrap: balance;
}
.carton .m { opacity: clamp(.14, calc(.14 + (var(--p) - var(--s)) * 11), 1); }
.carton figcaption { opacity: clamp(0, calc((var(--p) - .78) * 10), 1); }

/* ================================================================
   4. LA PERFORMANCE : le film en fond
   ================================================================ */

.performance { position: relative; background: var(--nuit); }
.performance__fond { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.performance__fond video { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 48% 50%; }
.performance__fond::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .35), transparent 40%);
  pointer-events: none;
}
.film__bouton {
  position: absolute;
  z-index: 2;
  right: var(--g-droite);
  bottom: calc(env(safe-area-inset-bottom, 0px) + 1rem);
  display: inline-flex;
  align-items: center;
  gap: .55em;
  min-height: 2.75rem;
  padding: .55rem .9rem;
  border: 0;
  background: rgba(12, 12, 12, .72);
  color: #f5f5f3;
  font-family: var(--f-machine);
  font-weight: 700;
  font-size: .8125rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
}
.film__bouton:hover { background: var(--nuit); }
.film__icone { width: .8em; height: .9em; }
.film__bouton[data-etat="lecture"] .film__icone { border-left: .26em solid currentColor; border-right: .26em solid currentColor; }
.film__bouton[data-etat="pause"] .film__icone {
  width: 0; height: 0;
  border-top: .45em solid transparent; border-bottom: .45em solid transparent;
  border-left: .75em solid currentColor;
}
.performance__textes { position: relative; z-index: 1; margin-top: -100svh; padding-bottom: 40svh; pointer-events: none; }
.performance__bloc {
  min-height: 90svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-left: var(--g-gauche);
  padding-right: var(--g-droite);
  max-width: calc(var(--large) + 32px);
  margin-inline: auto;
}
.performance__bloc > * { pointer-events: auto; }
.performance__bloc p {
  margin: 0;
  max-width: 24rem;
  padding: 1.3rem 1.5rem;
  background: var(--mur);
  font-size: clamp(1.3125rem, 2.6vw, 1.5rem);
  line-height: 1.35;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}
.performance__bloc:nth-child(even) { align-items: flex-end; }
.performance__bloc--titre { min-height: 100svh; justify-content: flex-end; padding-bottom: 14svh; }
.performance__bloc--titre .surtitre,
.performance__bloc--titre .titre-section {
  background: var(--mur);
  padding: .3rem .6rem;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.performance__bloc--titre .titre-section { padding: .1em .25em .14em; }
.performance__bloc p.performance__lien {
  margin-top: .75rem;
  padding: .7rem 1rem;
  font-family: var(--f-machine);
  font-size: .8125rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* ================================================================
   5. LA CORDE : elle se déroule à l'horizontale
   ================================================================ */

.corde { position: relative; background: var(--mur); --p: 0; --course: 0; }
.corde__scene { overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; }
.anime .corde__scene { position: sticky; top: 0; height: 100svh; overflow: hidden; display: flex; align-items: center; }
.corde__piste {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  width: max-content;
  padding: 12svh var(--g-droite) 12svh var(--g-gauche);
}
.anime .corde__piste { transform: translateX(calc(var(--p) * var(--course) * -1px)); will-change: transform; }
.corde__piste::before {
  /* le fil qui relie les serpillières */
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  height: 10px;
  margin-top: -5px;
  background: linear-gradient(var(--rayure-delavee) 0 2px, transparent 2px 8px, var(--rayure-delavee) 8px);
}
.corde__piste > * { position: relative; flex: none; scroll-snap-align: center; }
.corde__intro, .corde__fin {
  width: min(24rem, 78vw);
  background: var(--mur);
  padding: 1.25rem 0;
}
.corde__intro p:last-child { margin-bottom: 0; }
.corde__fin p {
  margin: 0;
  font-size: clamp(1.625rem, 4.6vw, 2.5rem);
  font-weight: 600;
  font-stretch: 78%;
  line-height: 1.08;
}
.corde__item--photo { background: var(--mur); }
.corde__item--photo img { height: min(52svh, 30rem); width: auto; max-width: none; }
.corde__toile {
  height: min(40svh, 24rem);
  aspect-ratio: 50 / 57;
  font-size: min(6svh, 3.6rem);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .15);
}
/* mêmes rayures que le fil : une ligne droite d'une serpillière à l'autre */
.corde__toile::after {
  height: 10px;
  background: linear-gradient(var(--rayure-delavee) 0 2px, transparent 2px 8px, var(--rayure-delavee) 8px);
}

/* ================================================================
   7. CE QUE VOUS RECEVEZ : une serpillière se déroule
   ================================================================ */

.transmission { --p: 1; }
.transmission__grille { display: grid; gap: clamp(3rem, 8vw, 6rem); align-items: center; }
@media (min-width: 900px) { .transmission__grille { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.relais { padding-top: 1.25rem; border-top: 1px solid var(--encre); font-size: 1.25rem; line-height: 1.4; }

.parchemin { justify-self: center; width: min(100%, 26rem); }
.parchemin__cadre { position: relative; aspect-ratio: 50 / 57; container-type: size; }
.parchemin__toile {
  position: absolute;
  inset: 0;
  font-size: 12.5cqh;
  clip-path: inset(0 0 calc((1 - var(--p)) * 86%) 0);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .14);
}
.parchemin__rouleau {
  position: absolute;
  left: -2.5%;
  right: -2.5%;
  height: 12%;
  top: calc(14% + var(--p) * 86% - 6%);
  border-radius: 999px;
  background:
    linear-gradient(90deg, transparent 31%, var(--rayure) 31% 32.5%, transparent 32.5% 34%, var(--rayure) 34% 35.5%, transparent 35.5%),
    linear-gradient(rgba(0, 0, 0, .3), rgba(255, 255, 255, .22) 30%, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, .35)),
    var(--trame),
    var(--fond);
  box-shadow: 0 6px 14px rgba(0, 0, 0, .25);
  opacity: clamp(0, calc((1 - var(--p)) * 10), 1);
}
.parchemin .legende { text-align: center; }

.transmission__photo { margin-top: clamp(4.5rem, 10vw, 7rem); }
.transmission__photo img { width: 100%; max-height: 92svh; object-fit: cover; }

.cartel {
  margin: clamp(3.5rem, 8vw, 5.5rem) 0 0;
  max-width: 46rem;
  font-family: var(--f-machine);
  font-size: .9375rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  border-top: 2px solid var(--encre);
}
.cartel > div { display: grid; gap: .15rem 1.5rem; padding: .8rem 0; border-bottom: 1px solid var(--filet); }
@media (min-width: 560px) { .cartel > div { grid-template-columns: 11.5rem minmax(0, 1fr); } }
.cartel dt { color: var(--encre-douce); }
.cartel dd { margin: 0; font-weight: 700; }

/* ================================================================
   8. DIACONAT : une serpillière jaune peinte en bleu
   ================================================================ */

.diaconat {
  background-color: var(--fond);
  background-image: var(--trame);
  color: #17170f;
  padding-bottom: var(--section);
}
.diaconat .toile--bande { height: 2.6em; }
.diaconat__grille { display: grid; gap: clamp(3rem, 7vw, 5rem); padding-top: clamp(3.5rem, 9vw, 6rem); }
@media (min-width: 900px) { .diaconat__grille { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: start; } }
.diaconat .titre-section { color: var(--encre-t); }
.diaconat .legende { color: #3b3a22; }
.chiffres {
  display: grid;
  margin: clamp(3.5rem, 8vw, 5.5rem) 0 0;
  border-top: 2px solid var(--encre-t);
}
@media (min-width: 760px) { .chiffres { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.chiffres > div {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: .5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, .18);
}
@media (min-width: 760px) {
  .chiffres > div { border-bottom: 0; padding-right: 1.5rem; }
  .chiffres > div + div { border-left: 1px solid rgba(0, 0, 0, .18); padding-left: 1.5rem; }
}
.chiffres dd {
  margin: 0;
  color: var(--encre-t);
  font-weight: 600;
  font-stretch: 80%;
  font-size: clamp(3.25rem, 10vw, 5.5rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
}
.chiffres dt {
  font-family: var(--f-machine);
  font-size: .875rem;
  line-height: 1.45;
  letter-spacing: .04em;
  text-transform: uppercase;
  max-width: 22em;
}
.note { margin-top: 1.75rem; max-width: var(--mesure); font-size: 1.0625rem; }

/* ================================================================
   9. PRENDRE LE RELAIS
   ================================================================ */

.acquerir__boite { max-width: calc(40rem + 32px); }
.acquerir__boite .titre-section { margin-bottom: 1.25rem; }
.acquerir__boite .chapo { margin: 0 0 2rem; }
.fiche {
  margin: 0 0 2rem;
  font-family: var(--f-machine);
  font-size: 1rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  border: 2px solid var(--encre);
  padding: .5rem clamp(.875rem, 3vw, 1.25rem);
}
.fiche > div {
  display: grid;
  grid-template-columns: minmax(min-content, 1fr) auto;
  align-items: baseline;
  gap: .25rem 1rem;
  padding: .85rem 0;
}
.fiche > div + div { border-top: 1px dashed var(--filet); }
.fiche dt { min-width: 0; }
.fiche dd { margin: 0; font-weight: 700; text-align: right; max-width: 14rem; }
.fiche .fiche__prix dd { font-size: 1.5rem; letter-spacing: .02em; }
.acquerir__aide { margin-top: 1.25rem; }
.avis {
  margin-top: 1rem;
  padding: .9rem 1rem;
  border: 2px dashed var(--rayure);
  color: var(--rayure);
  font-family: var(--f-machine);
  font-weight: 700;
  font-size: .9375rem;
}

/* ================================================================
   10. QUESTIONS
   ================================================================ */

#questions { padding-top: 0; }
.questions { margin-top: clamp(2rem, 5vw, 3rem); max-width: 48rem; border-top: 2px solid var(--encre); }
.questions details { border-bottom: 1px solid var(--filet); }
.questions summary {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  padding: 1.15rem 0;
  font-weight: 600;
  font-stretch: 80%;
  font-size: 1.3125rem;
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
}
.questions summary::-webkit-details-marker { display: none; }
.questions summary::after {
  content: "+";
  flex: none;
  font-family: var(--f-machine);
  font-weight: 700;
  font-size: 1.375rem;
  line-height: 1;
}
.questions details[open] summary::after { content: "−"; }
.questions details > div { padding: 0 0 1.4rem; max-width: var(--mesure); }
.questions details > div p { margin: 0; }

/* ================================================================
   PIED DE PAGE
   ================================================================ */

.pied__corde { display: flex; overflow: hidden; height: 3.6rem; }
.pied__corde span {
  flex: 0 0 auto;
  width: max(8.33%, 6.5rem);
  overflow: hidden;
  white-space: nowrap;
  background-color: var(--fond);
  background-image:
    linear-gradient(transparent calc(50% - 5px), var(--rayure-delavee) calc(50% - 5px) calc(50% - 3px), transparent calc(50% - 3px) calc(50% + 3px), var(--rayure-delavee) calc(50% + 3px) calc(50% + 5px), transparent calc(50% + 5px)),
    var(--trame);
  background-blend-mode: multiply;
  color: var(--encre-t);
  font-family: var(--f-pochoir);
  font-size: 2.2rem;
  line-height: 3.6rem;
  white-space: pre;
}
.pied__grille {
  display: grid;
  gap: 2.25rem;
  padding-block: 3rem calc(3rem + env(safe-area-inset-bottom, 0px));
}
@media (min-width: 800px) { .pied__grille { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); } }
.pied p { margin: 0; max-width: 28rem; font-size: 1.0625rem; }
.pied .pied__titre {
  max-width: none;
  margin: 0 0 .75rem;
  font-family: var(--f-pochoir);
  font-size: clamp(2.2rem, 10vw, 2.8rem);
  line-height: .9;
  white-space: nowrap;
}
.pied ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; align-content: start; }
.pied li { font-family: var(--f-machine); font-size: .875rem; letter-spacing: .05em; text-transform: uppercase; }

/* ================================================================
   PAGES ANNEXES
   ================================================================ */

.entete { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.25rem; }
.entete__titre { font-family: var(--f-pochoir); font-size: clamp(1.5rem, 6.4vw, 2.1rem); line-height: 1; text-decoration: none; white-space: nowrap; }
.entete__retour { font-family: var(--f-machine); font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; }
.rayures { height: 10px; background: linear-gradient(var(--rayure) 0 2px, transparent 2px 8px, var(--rayure) 8px 10px); }

.legal { padding-block: clamp(3rem, 8vw, 5rem) 0; }
.legal h1 { margin: 0 0 .75rem; font-weight: 600; font-stretch: 78%; font-size: clamp(2.25rem, 7vw, 3.75rem); line-height: 1; }
.legal .maj { margin: 0 0 2.5rem; font-family: var(--f-machine); font-size: .875rem; color: var(--encre-douce); text-transform: uppercase; letter-spacing: .05em; }
.legal h2 {
  margin: 2.75rem 0 .9rem;
  font-family: var(--f-machine);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.4;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.legal p, .legal li { max-width: var(--mesure); }
.legal p { margin: 0 0 .9em; }
.legal ul { padding-left: 1.2rem; margin: 0 0 1em; }
.legal li + li { margin-top: .35em; }
.legal .encadre { border: 1px solid var(--encre); padding: 1.25rem 1.25rem .5rem; max-width: calc(var(--mesure) + 2.5rem); margin: 1rem 0 1.5rem; font-size: 1.0625rem; }
.legal .modele { border-left: 2px solid var(--encre); padding-left: 1rem; font-family: var(--f-machine); font-size: .9375rem; }
.legal + .pied { margin-top: var(--section); }

/* merci et page introuvable : le mur de serpillières, et un cartel blanc */
.merci { position: relative; min-height: 100svh; display: grid; place-items: center; padding: 10svh var(--g-droite) 10svh var(--g-gauche); }
.merci .mur { position: absolute; inset: 0; --p: 1; }
.merci .toile--mur { opacity: 1; transform: rotate(var(--rot)); }
.merci__cartel {
  position: relative;
  width: min(34rem, 100%);
  padding: clamp(1.75rem, 6vw, 3rem);
  background: var(--mur);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .2);
}
.merci__cartel h1 {
  margin: 0 0 1.25rem;
  font-family: var(--f-texte);
  font-weight: 600;
  font-stretch: 78%;
  font-size: clamp(3rem, 12vw, 5.5rem);
  line-height: .95;
}
.merci__cartel .texte { margin-bottom: 2rem; }

/* ---------- Mouvement réduit ---------- */

@media (prefers-reduced-motion: reduce) {
  .bouton { transition: none; }
}
