/* Égérie – « Les feuillets » : une pile de feuilles de manuscrit sur une table prune. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-italic.woff2") format("woff2");
  font-weight: 300 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --prune: #621360;
  --prune-fonce: #2c0a2b;
  --prune-nuit: #4a0d48;
  --or: #cfa807;
  --or-encre: #6b5500;
  --lilas: #f1e6f1;
  --lilas-vif: #dcc3db;
  --papier: #fffdff;
  --encre: #2c0a2b;
  --encre-douce: #5b3a59;
  --erreur: #8f1230;

  --titre: "Bricolage Grotesque", "Trebuchet MS", sans-serif;
  --texte: "Figtree", Verdana, sans-serif;

  --marge: clamp(1rem, 4vw, 3.5rem);
  --feuille-large: 68rem;
  --ombre: 0 1.6rem 3rem -0.8rem rgb(24 2 23 / 0.55), 0 0.3rem 0.7rem rgb(24 2 23 / 0.25);
  --sortie: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-padding-top: 1.5rem;
  overflow-x: clip;
  scrollbar-color: var(--or) var(--prune-nuit);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--prune);
  color: var(--encre);
  font-family: var(--texte);
  font-size: 1.125rem;
  line-height: 1.6;
  overflow-x: clip;
}

::selection { background: var(--or); color: var(--prune-fonce); }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--prune); text-decoration-thickness: 0.09em; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 0.18em; }

:focus-visible {
  outline: 0.2rem solid var(--or);
  outline-offset: 0.2rem;
  border-radius: 0.1rem;
}
.feuille :focus-visible { outline-color: var(--prune); }

h1, h2, h3 {
  font-family: var(--titre);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; }

.evitement {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 10;
  background: var(--or);
  color: var(--prune-fonce);
  padding: 0.75rem 1rem;
  font-weight: 700;
}
.evitement:focus { top: 1rem; }

/* « inspirer – créer » à la verticale dans la marge prune */
.marge-verticale {
  position: absolute;
  top: clamp(8rem, 22vh, 14rem);
  right: max(0.6rem, calc((100vw - var(--feuille-large)) / 2 - 5.5rem));
  writing-mode: vertical-rl;
  font-family: var(--titre);
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--lilas-vif);
  z-index: 2;
}
@media (max-width: 80rem) { .marge-verticale { display: none; } }

/* ---------- La pile : une feuille et ses deux calques ---------- */

.pile {
  position: relative;
  width: min(100% - 2 * var(--marge), var(--feuille-large));
  margin: clamp(5rem, 11vw, 9rem) auto 0;
}
.pile::before,
.pile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
}
/* --s : de quel côté dépassent les calques (1 = or à gauche, -1 = or à droite) */
.pile { --s: 1; }
main > .pile:nth-of-type(even),
.retour:nth-of-type(even),
.duo .pile:last-child { --s: -1; }

.pile::before {
  background: var(--or);
  transform: translate(calc(var(--s) * -1.7%), 1.1rem) rotate(calc(var(--s) * -2.3deg));
}
.pile::after {
  background: var(--lilas-vif);
  transform: translate(calc(var(--s) * 1.8%), -0.9rem) rotate(calc(var(--s) * 1.8deg));
}

body { counter-reset: feuillet; }

.feuille {
  position: relative;
  z-index: 1;
  background: var(--papier);
  padding: clamp(1.6rem, 5vw, 4.5rem);
  padding-bottom: calc(clamp(1.6rem, 5vw, 4.5rem) + 1.2rem);
  box-shadow: var(--ombre);
  counter-increment: feuillet;
}
/* Folio : le numéro du feuillet, en bas à droite comme sur un manuscrit */
.feuille::after {
  content: "feuillet " counter(feuillet) " / 9";
  position: absolute;
  right: clamp(1.6rem, 5vw, 4.5rem);
  bottom: 1rem;
  font-family: var(--titre);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--encre-douce);
}
.feuille-or::after { color: var(--prune-fonce); }
.feuille-lilas { background: var(--lilas); }
.feuille-or { background: var(--or); }

.feuille h2 {
  font-size: clamp(2rem, 4.6vw, 3.5rem);
  max-width: 18ch;
  color: var(--prune);
}
.feuille h3 {
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.chapeau {
  font-size: clamp(1.15rem, 1.9vw, 1.4rem);
  line-height: 1.45;
  max-width: 34rem;
  margin-top: 1.25rem;
  color: var(--encre);
}

/* Intercalaire : l'onglet or qui dépasse de la feuille */
.intercalaire {
  position: absolute;
  top: clamp(1.6rem, 5vw, 4.5rem);
  left: 0;
  transform: translateX(-100%);
  min-width: 3.4rem;
  padding: 0.5rem 0.8rem 0.55rem;
  background: var(--or);
  color: var(--prune-fonce);
  font-family: var(--titre);
  font-weight: 800;
  font-size: 1.7rem;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  box-shadow: -0.5rem 0.6rem 1rem -0.4rem rgb(24 2 23 / 0.5);
}
@media (max-width: 78rem) {
  .intercalaire {
    top: 0;
    left: clamp(1.6rem, 5vw, 4.5rem);
    transform: translateY(-100%);
    box-shadow: 0 -0.4rem 0.9rem -0.4rem rgb(24 2 23 / 0.5);
  }
}

/* ---------- Ouverture ---------- */

.pile-ouverture { margin-top: clamp(1.5rem, 4vw, 3.5rem); }
.feuille-ouverture {
  min-height: min(46rem, calc(100vh - 7rem));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto 1fr;
  column-gap: clamp(1.5rem, 4vw, 4rem);
  padding-top: clamp(1.2rem, 2.6vw, 2.2rem);
}

.entete {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 2rem;
}
.logo { display: block; flex: none; margin-left: -0.6rem; }
.logo img { width: clamp(11rem, 20vw, 16.5rem); }

.menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.1rem 1.4rem;
  font-size: 1rem;
}
.menu a {
  display: inline-block;
  padding: 0.5rem 0;
  color: var(--encre);
  text-decoration: none;
  background: linear-gradient(var(--or), var(--or)) left 100% / 0 0.18em no-repeat;
  transition: background-size 0.35s var(--sortie);
}
.menu a:hover, .menu a:focus-visible { background-size: 100% 0.18em; }
.menu b {
  font-family: var(--titre);
  font-weight: 800;
  color: var(--prune);
  margin-right: 0.15em;
}

.ouverture {
  align-self: center;
  padding-block: clamp(2rem, 6vw, 4.5rem) clamp(1rem, 3vw, 2.5rem);
}
h1 {
  font-size: clamp(2.7rem, 7.4vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.96;
  max-width: 11.5ch;
  color: var(--prune-fonce);
}
h1 span { display: block; color: var(--prune); font-weight: 300; }
.ouverture .chapeau { margin-top: 1.8rem; }

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.8rem;
  margin-top: 2.2rem;
}
.bouton {
  display: inline-block;
  border: 0;
  cursor: pointer;
  background: var(--prune);
  color: #fff;
  font: 700 1.125rem/1.2 var(--texte);
  padding: 1.05rem 1.6rem;
  text-decoration: none;
  box-shadow: 0 0.7rem 1.2rem -0.6rem rgb(44 10 43 / 0.7);
  transition: transform 0.3s var(--sortie), box-shadow 0.3s var(--sortie), background-color 0.2s;
}
.bouton:hover {
  background: var(--prune-fonce);
  transform: translateY(-0.15rem) rotate(-0.6deg);
  box-shadow: 0 1.1rem 1.6rem -0.7rem rgb(44 10 43 / 0.75);
}
.bouton:active { transform: translateY(0); }
.lien-suite { font-weight: 600; }

.portrait {
  margin: 0;
  align-self: center;
  justify-self: end;
  width: clamp(11rem, 21vw, 17rem);
  margin-right: calc(-1 * clamp(2.5rem, 7vw, 7rem));
  padding: 0.7rem 0.7rem 0;
  background: #fff;
  box-shadow: var(--ombre);
  transform: rotate(4deg);
}
.portrait figcaption {
  font-family: var(--titre);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.55rem 0 0.65rem;
  color: var(--prune);
}

@media (max-width: 52rem) {
  .feuille-ouverture { grid-template-columns: 1fr; min-height: 0; }
  .portrait {
    justify-self: start;
    margin: 0.5rem 0 -4rem 1rem;
    width: 11rem;
    transform: rotate(-3deg);
  }
  .pile-ouverture { margin-bottom: 5rem; }
}

/* ---------- A : le parcours dans l'ordre ---------- */

.parcours {
  list-style: none;
  counter-reset: etape;
  margin: clamp(2.2rem, 5vw, 3.5rem) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: clamp(1.8rem, 4vw, 3rem) clamp(2rem, 5vw, 4.5rem);
}
.parcours li {
  counter-increment: etape;
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  grid-template-rows: auto 1fr;
  column-gap: 1rem;
  align-items: start;
}
.parcours li::before {
  content: counter(etape);
  grid-row: 1 / span 2;
  font-family: var(--titre);
  font-weight: 800;
  font-size: 3.6rem;
  line-height: 0.85;
  color: var(--prune);
}
.parcours h3 { grid-column: 2; }
.parcours p { grid-column: 2; margin-top: 0.5rem; max-width: 34rem; }

/* ---------- C·E et G : deux feuilles qui se chevauchent ---------- */

.duo {
  width: min(100% - 2 * var(--marge), var(--feuille-large));
  margin: clamp(5rem, 11vw, 9rem) auto 0;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: start;
}
.duo .pile { width: auto; margin: 0; }
.duo .pile:first-child { transform: rotate(-0.7deg); z-index: 1; }
.duo .pile:last-child { margin: 5rem 0 0 -2.2rem; transform: rotate(0.9deg); z-index: 2; }
.duo .feuille { padding: clamp(1.6rem, 3.6vw, 3.2rem); }
.duo .feuille h2 { font-size: clamp(1.8rem, 3.1vw, 2.5rem); }
.duo .intercalaire { top: clamp(1.6rem, 3.6vw, 3.2rem); }
.duo .pile:last-child .intercalaire {
  left: auto;
  right: 0;
  transform: translateX(100%);
  box-shadow: 0.5rem 0.6rem 1rem -0.4rem rgb(24 2 23 / 0.5);
}
@media (max-width: 78rem) {
  .duo .intercalaire, .duo .pile:last-child .intercalaire {
    top: 0;
    left: clamp(1.6rem, 3.6vw, 3.2rem);
    right: auto;
    transform: translateY(-100%);
    box-shadow: 0 -0.4rem 0.9rem -0.4rem rgb(24 2 23 / 0.5);
  }
}
@media (max-width: 56rem) {
  .duo { grid-template-columns: 1fr; }
  .duo .pile:last-child { margin: 5.5rem 0 0; }
}

.besoins {
  list-style: none;
  margin: 1.8rem 0 0;
  padding: 0;
}
.besoins li {
  padding: 0.95rem 0;
  border-top: 1px solid rgb(98 19 96 / 0.28);
}
.besoins li:last-child { padding-bottom: 0; }
.besoins strong { color: var(--prune); font-weight: 700; }

/* ---------- Bio ---------- */

.feuille-texte h2 { max-width: 20ch; }
.colonnes {
  margin-top: clamp(1.8rem, 4vw, 2.8rem);
  columns: 2 22rem;
  column-gap: clamp(2rem, 5vw, 4.5rem);
}
.colonnes p { break-inside: avoid; margin-bottom: 1.1rem; max-width: 36rem; }

details { margin-top: 1.5rem; border-top: 1px solid rgb(98 19 96 / 0.28); }
summary {
  cursor: pointer;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1.1rem 0 0.3rem;
  font-family: var(--titre);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--prune);
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "";
  width: 0.6rem;
  height: 0.6rem;
  border-right: 0.16rem solid currentColor;
  border-bottom: 0.16rem solid currentColor;
  transform: translateY(-0.15rem) rotate(45deg);
  transition: transform 0.3s var(--sortie);
}
details[open] summary::after { transform: translateY(0.15rem) rotate(-135deg); }
summary:hover { color: var(--prune-fonce); }
details .colonnes { margin-top: 1rem; }

/* ---------- Retours : à même la table ---------- */

.retours {
  width: min(100% - 2 * var(--marge), var(--feuille-large));
  margin: clamp(6rem, 13vw, 11rem) auto 0;
}
.retours h2 {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  color: var(--or);
}
/* Chaque témoignage est un feuillet volant, décalé d'un côté puis de l'autre */
.retour.pile {
  width: min(100%, 50rem);
  margin: clamp(3rem, 7vw, 4.5rem) 0 0;
}
.retour.pile:nth-of-type(even) { margin-left: auto; }
.retour .feuille { padding: clamp(1.5rem, 3.6vw, 3rem); padding-bottom: calc(clamp(1.5rem, 3.6vw, 3rem) + 1.4rem); }
.retour .feuille::after { right: clamp(1.5rem, 3.6vw, 3rem); }
.retour:nth-of-type(even) .feuille { background: var(--lilas); }
.retour blockquote { margin: 0; }
.retour blockquote p {
  font-size: clamp(1.1rem, 1.5vw, 1.2rem);
  line-height: 1.6;
  max-width: 40rem;
}
.retour blockquote p + p { margin-top: 1rem; }
.retour figcaption {
  margin-top: 1.4rem;
  font-family: var(--titre);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.3;
  max-width: 32rem;
  color: var(--prune);
}
.retour figcaption a { color: inherit; }

.actions-fin { margin-top: clamp(2.2rem, 5vw, 3.2rem); }
.actions-table { margin-top: clamp(3rem, 7vw, 4.5rem); }
.bouton-or { background: var(--or); color: var(--prune-fonce); }
.bouton-or:hover { background: #fff; color: var(--prune-fonce); }

/* ---------- Contact : la feuille or ---------- */

.pile-contact { margin-top: clamp(6rem, 13vw, 11rem); }
.pile-contact::before { background: rgb(255 253 255 / 0.9); }
.feuille-or h2 { color: var(--prune-fonce); font-size: clamp(2.6rem, 7vw, 5.5rem); max-width: none; }
.feuille-or .chapeau { color: var(--prune-fonce); }
.feuille-or ::selection { background: var(--prune); color: #fff; }

.formulaire {
  margin-top: clamp(1.8rem, 4vw, 2.8rem);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem clamp(1.2rem, 3vw, 2.5rem);
  max-width: 54rem;
}
.champ-large { grid-column: 1 / -1; }
@media (max-width: 44rem) { .formulaire { grid-template-columns: 1fr; } }

.champ label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--prune-fonce);
}
.champ input, .champ textarea {
  width: 100%;
  font: inherit;
  color: var(--encre);
  caret-color: var(--prune);
  background: var(--papier);
  border: 0.125rem solid var(--prune-fonce);
  border-radius: 0;
  padding: 0.8rem 0.9rem;
  transition: box-shadow 0.25s var(--sortie);
}
.champ textarea { resize: vertical; min-height: 9rem; display: block; }
.champ input:hover, .champ textarea:hover { box-shadow: 0 0.5rem 0.9rem -0.5rem rgb(44 10 43 / 0.6); }
.champ [aria-invalid="true"] { border-color: var(--erreur); }
.erreur {
  display: block;
  margin-top: 0.4rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--prune-fonce);
}
.erreur::before { content: "À corriger : "; }
.message {
  margin-top: 1.6rem;
  max-width: 54rem;
  padding: 1rem 1.2rem;
  font-weight: 700;
  background: var(--papier);
  color: var(--prune-fonce);
  box-shadow: 0 0.7rem 1.2rem -0.7rem rgb(44 10 43 / 0.6);
}
.message-erreur { outline: 0.125rem solid var(--erreur); }
.aide {
  display: block;
  margin: -0.15rem 0 0.5rem;
  line-height: 1.35;
  color: var(--prune-fonce);
}

/* Onglet fixe vers le formulaire, petits écrans seulement */
.onglet-contact {
  position: fixed;
  right: 0;
  bottom: 1.1rem;
  z-index: 5;
  padding: 0.85rem 1.1rem;
  background: var(--or);
  color: var(--prune-fonce);
  font: 800 1rem/1.2 var(--titre);
  text-decoration: none;
  box-shadow: -0.4rem 0.6rem 1.2rem -0.3rem rgb(24 2 23 / 0.6);
}
.onglet-contact[hidden] { display: none; }
@media (min-width: 52.01rem) { .onglet-contact { display: none; } }

.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Pied ---------- */

.pied {
  width: min(100% - 2 * var(--marge), var(--feuille-large));
  margin: clamp(5rem, 10vw, 8rem) auto 0;
  padding-bottom: 3rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2.5rem;
  color: var(--lilas);
  font-size: 1rem;
}
.pied img { width: 14rem; margin-left: -1rem; }
.reseaux { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.2rem 1.6rem; }
.pied a { color: #fff; display: inline-block; padding: 0.5rem 0; }
.pied p { flex-basis: 100%; color: var(--lilas-vif); }

/* ---------- Mouvement : la pile se met en place, puis se feuillette ---------- */

@media (prefers-reduced-motion: no-preference) {
  .pile-ouverture::before { animation: poser-or 1.1s var(--sortie) both; }
  .pile-ouverture::after { animation: poser-calque 1.3s var(--sortie) both; }
  .portrait { animation: glisser 1.2s var(--sortie) 0.15s both; }

  @keyframes poser-or { from { transform: translate(0, 0) rotate(0deg); } }
  @keyframes poser-calque { from { transform: translate(0, 0) rotate(0deg); } }
  @keyframes glisser { from { transform: translateX(-3rem) rotate(0deg); } }

  @supports (animation-timeline: view()) {
    .pile:not(.pile-ouverture)::before {
      animation: feuilleter-or linear both;
      animation-timeline: view();
      animation-range: entry 0% exit 100%;
    }
    .pile:not(.pile-ouverture)::after {
      animation: feuilleter-calque linear both;
      animation-timeline: view();
      animation-range: entry 0% exit 100%;
    }
    /* Les calques restent toujours du même côté : la pile se resserre sans jamais disparaître. */
    @keyframes feuilleter-or {
      from { transform: translate(calc(var(--s) * -3%), 2rem) rotate(calc(var(--s) * -4deg)); }
      to { transform: translate(calc(var(--s) * -1.1%), 0.8rem) rotate(calc(var(--s) * -1.4deg)); }
    }
    @keyframes feuilleter-calque {
      from { transform: translate(calc(var(--s) * 3.2%), -1.7rem) rotate(calc(var(--s) * 3.4deg)); }
      to { transform: translate(calc(var(--s) * 1.2%), -0.7rem) rotate(calc(var(--s) * 1.2deg)); }
    }
  }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ---------- Autres demandes : C·E et G, après le contact ---------- */

.autres {
  width: min(100% - 2 * var(--marge), var(--feuille-large));
  margin: clamp(6rem, 13vw, 11rem) auto 0;
}
.autres > h2 {
  font-size: clamp(2rem, 4.6vw, 3.5rem);
  color: var(--or);
}
.autres .duo { width: 100%; margin-top: clamp(3.5rem, 7vw, 5rem); }
.duo .feuille { padding-bottom: calc(clamp(1.6rem, 3.6vw, 3.2rem) + 1.6rem); }
.duo .feuille::after { right: clamp(1.6rem, 3.6vw, 3.2rem); }

/* Le folio est décoratif : texte alternatif vide pour les lecteurs d'écran */
@supports (content: "x" / "") {
  .feuille::after { content: "feuillet " counter(feuillet) " / 9" / ""; }
}

/* Défilement doux seulement une fois la page chargée (pas à l'arrivée sur #contact) */
@media (prefers-reduced-motion: no-preference) {
  html.pret { scroll-behavior: smooth; }
}

/* ---------- Formulaire : un champ en erreur se voit sans ambiguïté ---------- */

.champ [aria-invalid="true"] {
  border-color: var(--erreur);
  border-width: 0.25rem;
  padding: 0.675rem 0.775rem;
}
.erreur {
  margin-top: 0.5rem;
  padding: 0.5rem 0.7rem;
  background: var(--papier);
  color: var(--erreur);
  box-shadow: 0 0.5rem 0.9rem -0.6rem rgb(44 10 43 / 0.6);
}

/* ---------- Petits écrans : menu sur une ligne, portrait en haut, barre de contact ---------- */

@media (max-width: 52rem) {
  body { padding-bottom: 3.4rem; }

  .feuille-ouverture { grid-template-columns: minmax(0, 1fr); }
  .entete { display: block; min-width: 0; }
  .ouverture { min-width: 0; }
  .menu {
    flex-wrap: nowrap;
    gap: 0 1.3rem;
    margin: 0.9rem 0 0;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
  }
  .menu::-webkit-scrollbar { display: none; }
  .menu a { padding: 0.7rem 0; }

  .portrait {
    position: absolute;
    top: 0.6rem;
    right: 0.9rem;
    width: 4rem;
    margin: 0;
    padding: 0.28rem;
    transform: rotate(4deg);
    animation: none;
  }
  .portrait figcaption { display: none; }
  .pile-ouverture { margin-bottom: 0; }

  .lien-suite { display: inline-block; padding: 0.6rem 0; }
  .reseaux a, .pied a { padding: 0.7rem 0; }

  .onglet-contact {
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
    text-align: center;
    box-shadow: 0 -0.5rem 1.2rem -0.4rem rgb(24 2 23 / 0.6);
  }
}

/* ---------- Folio : le total vient de la page (compteur « total » posé sur body) ---------- */

.feuille::after { content: "feuillet " counter(feuillet) " / " counter(total); }
@supports (content: "x" / "") {
  .feuille::after { content: "feuillet " counter(feuillet) " / " counter(total) / ""; }
}

/* ---------- Week-end « La Bambane » : le texte et les deux affiches ---------- */

.feuille-atelier {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.etiquette {
  display: inline-block;
  margin-bottom: 1.1rem;
  padding: 0.4rem 0.8rem 0.45rem;
  background: var(--or);
  color: var(--prune-fonce);
  font: 700 1rem/1.2 var(--titre);
}
.feuille-atelier h2 { font-size: clamp(2.6rem, 6vw, 4.5rem); }
.definition { margin-top: 1rem; max-width: 34rem; color: var(--encre-douce); }
.fiche { margin: 1.8rem 0 0; }
.fiche div {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 0 1rem;
  padding: 0.8rem 0;
  border-top: 1px solid rgb(98 19 96 / 0.28);
}
.fiche dt { font-family: var(--titre); font-weight: 700; color: var(--prune); }
.fiche dd { margin: 0; }
.atelier-images { display: grid; gap: 1.6rem; padding-top: 0.5rem; }
.atelier-images img { width: 100%; background: #fff; box-shadow: var(--ombre); }
.atelier-images img:first-child { transform: rotate(-1.6deg); }
.atelier-images img:last-child { transform: rotate(1.3deg); margin-left: 8%; width: 92%; }
@media (max-width: 60rem) {
  .feuille-atelier { grid-template-columns: minmax(0, 1fr); }
  .atelier-images { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
  .atelier-images img:last-child { margin: 1.2rem 0 0; width: 100%; }
}
@media (max-width: 30rem) {
  .fiche div { grid-template-columns: 1fr; }
  .atelier-images { grid-template-columns: minmax(0, 1fr); }
  .atelier-images img:last-child { margin: 0; }
}

/* ---------- Bio : le titre et la photo aux livres ---------- */

.bio-tete {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
}
.cliche {
  margin: 0;
  width: clamp(10rem, 19vw, 15rem);
  padding: 0.6rem;
  background: #fff;
  box-shadow: var(--ombre);
  transform: rotate(-3deg);
}
@media (max-width: 52rem) {
  .bio-tete { grid-template-columns: minmax(0, 1fr); }
  .cliche { width: 12rem; margin-left: 0.5rem; }
}
