/* =========================================================
   Maria Vieira — direction « L'herbier »
   Un carnet de botaniste plutôt qu'un site : papier fibré,
   planches dessinées au trait, étiquettes tapées à la machine,
   notes manuscrites, scotch et kraft.
   ========================================================= */

:root {
  --paper: #f2ece0;
  --paper-light: #fbf8f1;
  --kraft: #e2cfac;
  --kraft-dark: #c9ab7c;
  --ink: #26301f;          /* encre vert forêt */
  --ink-soft: #55604a;
  --moss: #4f6136;
  --forest: #2c3825;
  --clay: #b0532f;         /* terre cuite */
  --pollen: #e3b448;
  --wood: #e8cfa4;
  --wood-dark: #5d3d22;
  --shadow: 0 1px 1px rgb(38 48 31 / .08), 0 10px 24px -10px rgb(38 48 31 / .35);
  --fell: "IM Fell English", Georgia, "Times New Roman", serif;
  --body: "Karla", system-ui, sans-serif;
  --type: "Courier Prime", "Courier New", monospace;
  --hand: "Caveat", "Segoe Print", cursive;
  --gut: clamp(16px, 4vw, 48px);
  --tab-h: 96px;  /* hauteur du marque-page (en-tête fixe) */
  color-scheme: light;
}

/* ---------- Base : le papier ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--tab-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: var(--paper);
  /* fibres du papier */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.55 .08' numOctaves='3' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 .32 0 0 0 0 .28 0 0 0 0 .2 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--pollen); color: var(--ink); }
:focus-visible { outline: 2px dashed var(--clay); outline-offset: 4px; }
h1, h2, h3 { font-family: var(--fell); font-weight: 400; line-height: 1.05; margin: 0; letter-spacing: -.005em; }
h1 em, h2 em { color: var(--clay); }
p { margin: 0 0 1em; }
.type { font: 400 .8rem/1.4 var(--type); letter-spacing: .02em; color: var(--ink-soft); }
.hand { font-family: var(--hand); font-weight: 500; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--ink); color: var(--paper); padding: .6rem 1rem; }
.skip:focus { left: 8px; }

/* ---------- Le dessin au trait ---------- */
.draw { fill: none; stroke: var(--ink); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.6s cubic-bezier(.4, 0, .2, 1), fill .8s 1.6s; }
.is-drawn .draw, .is-drawn.draw { stroke-dashoffset: 0; }
.stem { stroke-width: 1.6; }
.stem--wood { stroke-width: 2.4; stroke: var(--wood-dark); }
.vein, .pappus, .pappus-stem { stroke-width: .7; stroke: var(--ink-soft); }
.leaf { transition-delay: .5s, 2s; }
.is-drawn .leaf--fill { fill: color-mix(in srgb, var(--moss) 22%, transparent); }
.is-drawn .petal { fill: color-mix(in srgb, var(--clay) 30%, transparent); }
.petal { stroke: var(--clay); }
.is-drawn .bud { fill: color-mix(in srgb, #7d5ea8 30%, transparent); }
.bud { stroke: #5e4a80; stroke-width: .9; }
.is-drawn .seedpod, .is-drawn .acorn { fill: color-mix(in srgb, var(--pollen) 40%, transparent); }
.is-drawn .cap { fill: color-mix(in srgb, var(--wood-dark) 35%, transparent); }
.dot { fill: var(--ink); }
.ground { stroke: var(--ink-soft); stroke-dasharray: 1; }

/* ---------- Scotch, étiquettes, notes ---------- */
.tape {
  position: absolute; z-index: 2; width: 92px; height: 26px;
  background: color-mix(in srgb, #efe3c4 75%, transparent);
  box-shadow: 0 1px 2px rgb(0 0 0 / .08);
  clip-path: polygon(2% 10%, 98% 0, 100% 88%, 3% 100%, 0 50%);
}
.tape--tl { top: -10px; left: 18px; rotate: -24deg; }
.tape--br { bottom: -8px; right: 14px; rotate: -18deg; }
.tape--top { top: -12px; left: 50%; translate: -50% 0; rotate: 3deg; }
.label {
  display: grid; gap: .1rem; padding: .7rem .9rem; background: var(--paper-light);
  border: 1px solid var(--ink); font: 400 .78rem/1.4 var(--type); color: var(--ink);
  box-shadow: 3px 3px 0 color-mix(in srgb, var(--ink) 15%, transparent);
}
.label b { font-weight: 700; letter-spacing: .04em; }
.label i { font-family: var(--fell); font-size: .95rem; }
.label__row--small { color: var(--ink-soft); font-size: .7rem; }
.note { position: absolute; font: 600 1.45rem/1.05 var(--hand); color: var(--clay); rotate: -6deg; pointer-events: none; }

/* ---------- Boutons dessinés à la main ---------- */
.seal {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.5rem; background: var(--moss); color: var(--paper-light);
  font: 600 1rem var(--body); text-decoration: none; cursor: pointer;
  border: 2px solid var(--moss); border-radius: 255px 18px 225px 18px / 18px 225px 18px 255px;
  transition: transform .25s, background-color .25s, border-radius .4s;
}
.seal:hover { transform: rotate(-1.5deg) translateY(-2px); border-radius: 18px 225px 18px 255px / 255px 18px 225px 18px; background: var(--forest); }
.seal--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.seal--ghost:hover { background: var(--ink); color: var(--paper-light); }
.hand-link { font: 600 1.35rem var(--hand); color: var(--clay); text-decoration: none; }
.hand-link:hover { text-decoration: underline wavy; text-underline-offset: 4px; }

/* ---------- Le marque-page (navigation) ---------- */
.tab {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--tab-h);
  display: flex; align-items: center; gap: 1.5rem; padding: 0 var(--gut);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(6px);
  border-bottom: 1.5px dashed transparent; transition: border-color .3s;
}
.is-scrolled .tab { border-bottom-color: color-mix(in srgb, var(--ink) 35%, transparent); }
.tab__brand { display: grid; gap: .15rem; text-decoration: none; line-height: 1; white-space: nowrap; }
.tab__name { font: 400 clamp(2.2rem, 3.3vw, 3rem) var(--fell); letter-spacing: -.01em; }
.tab__sub { font: 400 .74rem var(--type); color: var(--ink-soft); letter-spacing: .06em; padding-left: .15em; }
.tab__coupure { display: none; }
/* Moins de place : le sous-titre passe sur deux lignes, sous la largeur du nom. */
@media (max-width: 1279px) {
  .tab__sub { line-height: 1.25; }
  .tab__sep { display: none; }
  .tab__coupure { display: inline; }
}
.tab__nav { display: flex; gap: 1.3rem; margin-left: auto; }
.tab__nav a { text-decoration: none; font: 400 1.02rem var(--fell); position: relative; padding: .2rem 0; }
.tab__nav a i { color: var(--clay); margin-right: .15em; }
.tab__nav a::after {
  content: ""; position: absolute; left: -4px; right: -4px; bottom: 2px; height: .55em; z-index: -1;
  background: color-mix(in srgb, var(--pollen) 55%, transparent); border-radius: 3px;
  transform: scaleX(0) rotate(-1deg); transform-origin: left; transition: transform .35s;
}
.tab__nav a:hover::after, .tab__nav a.is-active::after { transform: scaleX(1) rotate(-1deg); }
.tab__call { font: 700 .82rem var(--type); text-decoration: none; padding: .5rem .8rem; border: 1.5px solid var(--ink); border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px; }
.tab__call:hover { background: var(--ink); color: var(--paper); }
.tab__menu { display: none; font: 600 1.3rem var(--hand); background: none; border: 0; color: var(--clay); cursor: pointer; padding: .3rem; }

@media (max-width: 1020px) {
  .tab__name { font-size: 2.6rem; }
  .tab__call { margin-left: auto; }
  .tab__menu { display: block; }
  .tab__nav {
    position: fixed; top: var(--tab-h); right: 12px; z-index: 60; margin: 0; flex-direction: column; gap: .2rem;
    padding: 1.4rem 1.6rem 1.6rem; background: var(--paper-light); box-shadow: var(--shadow);
    border: 1px solid color-mix(in srgb, var(--ink) 25%, transparent);
    transform-origin: top right; rotate: 1.5deg; scale: .9; opacity: 0; pointer-events: none; transition: opacity .25s, scale .25s;
    background-image: linear-gradient(transparent 0 33px, color-mix(in srgb, #6d8fb3 35%, transparent) 33px 34px);
    background-size: 100% 34px; background-position: 0 calc(1.4rem + 2px);
  }
  .menu-open .tab__nav { opacity: 1; scale: 1; pointer-events: auto; }
  .tab__nav a { font-size: 1.35rem; line-height: 34px; padding: 0; }
}
@media (max-width: 600px) {
  :root { --tab-h: 80px; }
  .tab__name { font-size: 2.5rem; }
  .tab__sub { display: none; }
  .tab__call { display: none; }
  .tab__menu { margin-left: auto; }
}

/* ---------- Les planches (sections) ---------- */
.plate { position: relative; padding: clamp(4.5rem, 10vw, 8rem) var(--gut); }
.plate__head { max-width: 860px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.plate__head--row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 2rem; flex-wrap: wrap; }
.plate__num { display: inline-block; font: 700 .8rem var(--type); letter-spacing: .12em; text-transform: uppercase; color: var(--clay); border-bottom: 1px solid currentColor; margin-bottom: 1.1rem; }
.plate__head h2 { font-size: clamp(2.3rem, 5.4vw, 4.4rem); }
.plate__intro { max-width: 40em; margin: 1.2rem 0 0; color: var(--ink-soft); font-size: 1.1rem; }

/* Bords déchirés pour les pages kraft et mousse */
.plate--kraft, .plate--moss { margin-block: 22px; }
.plate--kraft { background-color: var(--kraft); background-image: inherit; }
.plate--moss { background: var(--forest); color: var(--paper); }
.plate--kraft::before, .plate--kraft::after, .plate--moss::before, .plate--moss::after {
  content: ""; position: absolute; left: 0; right: 0; height: 22px; background-repeat: repeat-x; background-size: 220px 22px;
}
.plate--kraft::before { top: -21px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 22'%3E%3Cpath d='M0 22L0 12L10 15L19 10L28 13L43 13L57 9L66 13L74 12L88 15L96 13L108 9L117 11L125 6L133 14L141 12L152 12L160 14L171 13L186 14L197 11L208 9L220 12L220 22Z' fill='%23e2cfac'/%3E%3C/svg%3E"); }
.plate--kraft::after { bottom: -21px; transform: scaleY(-1); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 22'%3E%3Cpath d='M0 22L0 12L8 7L17 11L27 10L39 15L50 15L58 15L68 12L82 14L95 14L110 14L122 6L130 11L145 11L159 12L169 14L179 9L190 6L200 11L210 8L220 12L220 22Z' fill='%23e2cfac'/%3E%3C/svg%3E"); }
.plate--moss::before { top: -21px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 22'%3E%3Cpath d='M0 22L0 12L10 15L19 10L28 13L43 13L57 9L66 13L74 12L88 15L96 13L108 9L117 11L125 6L133 14L141 12L152 12L160 14L171 13L186 14L197 11L208 9L220 12L220 22Z' fill='%232c3825'/%3E%3C/svg%3E"); }
.plate--moss::after { bottom: -21px; transform: scaleY(-1); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 22'%3E%3Cpath d='M0 22L0 12L8 7L17 11L27 10L39 15L50 15L58 15L68 12L82 14L95 14L110 14L122 6L130 11L145 11L159 12L169 14L179 9L190 6L200 11L210 8L220 12L220 22Z' fill='%232c3825'/%3E%3C/svg%3E"); }
.plate--moss .plate__num { color: var(--pollen); }
.plate--moss h2 em { color: var(--pollen); }
.plate--moss .draw { stroke: var(--paper); }
.plate--moss .vein { stroke: color-mix(in srgb, var(--paper) 60%, transparent); }

/* ---------- Planche d'ouverture ---------- */
.plate--hero { padding-top: calc(var(--tab-h) + clamp(2.5rem, 6vw, 5rem)); }
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; max-width: 1240px; }
.hero h1 { font-size: clamp(3rem, 7.6vw, 6.6rem); line-height: .98; margin: .6rem 0 1.6rem; }
.hero h1 em { display: inline-block; padding-left: .8em; }
.hero__lead { max-width: 33em; font-size: 1.15rem; color: var(--ink-soft); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem; margin-top: 2rem; }
.specimen {
  position: relative; margin: 0; padding: 1.6rem 1.6rem 1.2rem; background: var(--paper-light);
  box-shadow: var(--shadow); rotate: 1.5deg;
}
.specimen .botanic { width: 100%; height: auto; display: block; }
.specimen .label { position: absolute; right: -14px; bottom: 18px; max-width: 250px; rotate: -2deg; }
.note--fern { left: -92px; top: 62%; }

/* Le portrait : un tirage photo glissé sur la planche, coin supérieur gauche */
.collage { position: relative; padding: 4.5rem 0 0 3.5rem; }
.snapshot {
  position: absolute; left: -1.5rem; top: 0; z-index: 3; width: 46%; margin: 0;
  padding: 10px 10px 0; background: var(--paper-light); rotate: -6deg;
  box-shadow: 0 1px 1px rgb(38 48 31 / .1), 0 16px 30px -12px rgb(38 48 31 / .5);
  transform: translate(-14px, 18px) rotate(-6deg); opacity: 0;
  transition: transform 1.1s cubic-bezier(.2, .7, .2, 1) .3s, opacity .9s .3s;
}
.snapshot.is-drawn { transform: none; opacity: 1; }
.snapshot img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; filter: sepia(.16) saturate(.9) contrast(1.03) brightness(1.02); }
.snapshot figcaption { padding: .45rem .2rem .55rem; font-size: 1.35rem; line-height: 1; color: var(--ink-soft); text-align: center; }
.tape--snap { top: -13px; left: 50%; translate: -50% 0; rotate: 4deg; }
.snapshot__sprig { position: absolute; right: -30px; bottom: 26px; width: 64px; height: auto; rotate: 32deg; overflow: visible; }

/* Respiration : le pissenlit */
.breath { display: grid; grid-template-columns: minmax(220px, 340px) 1fr; gap: clamp(1.5rem, 5vw, 5rem); align-items: center; max-width: 1000px; margin: clamp(4rem, 9vw, 7rem) auto 0; }
.dandelion { width: 100%; height: auto; overflow: visible; }
.breath__text h2 { font-size: clamp(2rem, 4vw, 3rem); margin: .4rem 0 .8rem; }
.breath__text > p:not(.type):not(.breath__cue) { color: var(--ink-soft); max-width: 30em; }
.breath__controls { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.2rem; }
.breath__sound {
  display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .7rem; cursor: pointer;
  background: none; border: 1px dashed color-mix(in srgb, var(--ink) 35%, transparent); border-radius: 999px;
  font: 400 .78rem var(--type); color: var(--ink-soft); transition: color .2s, border-color .2s;
}
.breath__sound:hover { color: var(--ink); border-color: var(--ink); }
.breath__sound svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.breath__sound-hp { fill: currentColor; fill-opacity: .15; }
.breath__sound[aria-pressed="true"] .breath__sound-off, .breath__sound[aria-pressed="false"] .breath__sound-on { display: none; }
.breath__cue { min-height: 2.4rem; margin: 1rem 0 0; font: 600 2rem var(--hand); color: var(--clay); }
.seed { transition: transform 1.4s cubic-bezier(.3, .6, .3, 1), opacity 1.4s; transform-box: fill-box; }
.breath.is-out .seed { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); opacity: 0; transition: transform 4.2s cubic-bezier(.25, .5, .3, 1) var(--d), opacity 3.6s ease-in var(--d); }
/* Le pissenlit se gonfle à l'inspiration, se tient immobile pendant la rétention. */
.seeds { transition: transform 1.2s ease-in-out; }
.breath.is-in .seeds { transform: scale(1.05); transition: transform 5s ease-in-out; }
.breath.is-hold .seeds { transform: scale(1.05); }

/* ---------- Planche II : l'herbier des approches ---------- */
.herbarium { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.4rem, 3vw, 2.4rem); align-items: start; }
.card {
  position: relative; padding: 1.4rem 1.4rem 1.2rem; background: var(--paper-light); box-shadow: var(--shadow);
  rotate: var(--r, -1deg); transition: rotate .4s, transform .4s, box-shadow .4s;
}
.card:nth-child(2) { --r: 1.2deg; margin-top: 2.2rem; }
.card:nth-child(3) { --r: -.6deg; margin-top: .8rem; }
.card:nth-child(4) { --r: 1.6deg; margin-top: 2.8rem; }
.card:hover { rotate: 0deg; transform: translateY(-6px); box-shadow: 0 2px 2px rgb(38 48 31 / .08), 0 22px 40px -16px rgb(38 48 31 / .45); }
.card .botanic--small { width: 72%; height: auto; display: block; margin: 0 auto .6rem; }
.card h3 { font-size: 1.9rem; }
.card__latin { font: italic 400 1.05rem var(--fell); color: var(--clay); margin: .1rem 0 .9rem; }
.card > p:not(.card__latin):not(.card__foot) { font-size: .98rem; }
.card ul { list-style: none; padding: 0; margin: 0 0 1rem; }
.card li { padding: .3rem 0 .3rem 1.3rem; border-top: 1px dotted color-mix(in srgb, var(--ink) 35%, transparent); position: relative; font-size: .93rem; }
.card li::before { content: "❦"; position: absolute; left: 0; color: var(--moss); font-size: .85rem; top: .35rem; }
.card__foot { margin: 0; padding-top: .7rem; border-top: 1px solid var(--ink); font-size: .72rem !important; }
.card.is-flagged { animation: signale 1.6s ease; }
@keyframes signale { 0%, 100% { box-shadow: var(--shadow); } 30% { box-shadow: 0 0 0 4px var(--pollen), var(--shadow); transform: translateY(-8px); } }

/* ---------- Planche III : étiquettes et ordonnance ---------- */
.finder { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.tags { display: flex; flex-wrap: wrap; gap: .9rem 1rem; padding-top: .5rem; }
.tag {
  position: relative; padding: .55rem 1rem .55rem 1.7rem; cursor: pointer;
  background: var(--paper-light); color: var(--ink); border: 1px solid color-mix(in srgb, var(--ink) 30%, transparent);
  font: 400 1.1rem var(--fell); rotate: var(--r); box-shadow: 0 2px 4px rgb(38 48 31 / .12);
  clip-path: polygon(14px 0, 100% 0, 100% 100%, 14px 100%, 0 50%);
  transition: rotate .25s, background-color .25s, color .25s, transform .25s;
}
.tag::before { content: ""; position: absolute; left: 12px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--kraft); box-shadow: inset 0 1px 2px rgb(0 0 0 / .35); }
.tag:hover { rotate: 0deg; transform: translateY(-2px); }
.tag[aria-pressed="true"] { background: var(--moss); color: var(--paper-light); rotate: 0deg; }
.prescription {
  position: sticky; top: calc(var(--tab-h) + 28px); min-height: 18rem; padding: 2rem 1.8rem 1.6rem 3.2rem; background: var(--paper-light); box-shadow: var(--shadow); rotate: 1deg;
  background-image:
    linear-gradient(90deg, transparent 2.2rem, color-mix(in srgb, var(--clay) 55%, transparent) 2.2rem 2.3rem, transparent 2.3rem),
    repeating-linear-gradient(transparent 0 31px, color-mix(in srgb, #6d8fb3 35%, transparent) 31px 32px);
  background-position: 0 0, 0 1.4rem;
}
.prescription__empty { font-size: 1.7rem; color: var(--ink-soft); margin: 2rem 0 0; line-height: 1.15; }
.prescription__main { font-size: 1.9rem; line-height: 1.1; margin: .6rem 0 .6rem; }
.prescription__main button { display: inline; font: 700 3rem/1 var(--hand); color: var(--clay); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline wavy color-mix(in srgb, var(--clay) 60%, transparent); text-underline-offset: 6px; }
.prescription__why { font-size: 1rem; color: var(--ink-soft); }
.prescription__also { font: 500 1.35rem var(--hand); margin: 0; }
.prescription__also button { font: inherit; color: var(--moss); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; }

/* ---------- Planche IV : le rameau du parcours ---------- */
.growth { display: grid; grid-template-columns: minmax(260px, .85fr) 1.15fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.growth__intro { position: sticky; top: calc(var(--tab-h) + 42px); }
.quote-hand { margin: 0 0 2rem; font: italic 400 clamp(1.5rem, 2.6vw, 2.1rem)/1.25 var(--fell); }

/* Le rameau : la tige, dessinée par le script, pousse au défilement */
.branch { position: relative; --tige: 104px; }
.branch__svg { position: absolute; left: 0; top: 0; width: var(--tige); overflow: visible; pointer-events: none; }
.rameau__tige { fill: none; stroke: var(--moss); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .25s linear; }
.rameau__pousse { transform: scale(0) rotate(-25deg); transition: transform .9s cubic-bezier(.3, 1.5, .5, 1); }
.rameau__pousse.is-open { transform: none; }
.rameau__pousse--fleur { transition-duration: 1.4s; }
.rameau__pousse--fleur.is-open { transform: rotate(18deg); }
.branch .dot { fill: var(--moss); }

.steps { list-style: none; margin: 0; padding: 0 0 0 var(--tige); }
.steps li {
  display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; padding: 1.1rem .8rem; border-radius: 4px;
  opacity: .38; transform: translateX(10px); transition: opacity .6s, transform .6s, background-color .4s;
}
.steps li.is-reached { opacity: 1; transform: none; }
.steps li.is-lit { background: color-mix(in srgb, var(--pollen) 26%, transparent); }
.steps li .type { color: var(--clay); font-weight: 700; padding-top: .2rem; }
.steps li p { margin: 0; }
.steps li b { font-family: var(--fell); font-weight: 400; font-size: 1.2rem; }
.growth__more { color: var(--ink-soft); }

/* ---------- Planche V : de la graine au fruit ---------- */
.season { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; position: relative; }
.season::before { content: ""; position: absolute; left: 4%; right: 4%; top: 40px; border-top: 1.5px dashed color-mix(in srgb, var(--paper) 40%, transparent); }
.season li { position: relative; }
.season svg { width: 80px; height: 80px; display: block; background: var(--forest); position: relative; }
.season h3 { font-size: 1.8rem; margin: .8rem 0 .4rem; }
.season p { color: color-mix(in srgb, var(--paper) 78%, transparent); margin: 0; }

/* ---------- Planche VI : les mots épinglés ---------- */
.stamp {
  display: grid; justify-items: center; text-decoration: none; width: 172px; aspect-ratio: 1; align-content: center;
  border: 3px double var(--clay); border-radius: 50%; color: var(--clay); rotate: -12deg; transition: rotate .4s;
  outline: 1.5px dashed color-mix(in srgb, var(--clay) 60%, transparent); outline-offset: 5px;
}
.stamp:hover { rotate: 0deg; }
.stamp__score { font: 400 3rem/1 var(--fell); }
.stamp__stars { font-size: 1.45rem; line-height: 1.1; letter-spacing: 1px; color: var(--pollen); text-shadow: 0 0 0 var(--clay), 0 1px 0 color-mix(in srgb, var(--clay) 60%, transparent); }
.stamp__src { font: 700 .65rem var(--type); text-transform: uppercase; letter-spacing: .08em; }
/* 4 avis : une rangée de 4, deux de 2 ou une colonne, jamais un avis seul sur sa ligne. */
.board { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.6rem, 3vw, 2.6rem); align-items: start; }
@media (max-width: 1180px) { .board { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .board { grid-template-columns: 1fr; } }
.note-pin {
  position: relative; margin: 0; padding: 2rem 1.5rem 1.3rem; background: var(--paper-light); box-shadow: var(--shadow); rotate: var(--r);
  transition: rotate .4s, transform .4s;
}
.note-pin:nth-child(even) { margin-top: 1.8rem; }
.note-pin:hover { rotate: 0deg; transform: scale(1.02); }
.note-pin--kraft { background: var(--kraft); }
.note-pin--green { background: #dfe5cf; }
.pin { position: absolute; top: 10px; left: 50%; width: 15px; height: 15px; margin-left: -7.5px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #e98c6a, var(--clay) 60%, #6e2c15); box-shadow: 1px 3px 3px rgb(0 0 0 / .3); }
/* Texte coupé à 6 lignes ; ouvert en entier au clic (js/avis.js). */
.note-pin blockquote {
  margin: 0 0 1rem; font: 500 1.6rem/1.15 var(--hand);
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; line-clamp: 6; overflow: hidden;
}
.note-pin.is-open blockquote { display: block; -webkit-line-clamp: unset; line-clamp: none; overflow: visible; }
.note-pin.is-long, .note-pin.is-open { cursor: pointer; }
.note-pin__suite {
  display: block; margin: -.5rem 0 .9rem; padding: 0; background: none; border: 0;
  font: 600 1.2rem var(--hand); color: var(--clay); cursor: pointer;
}
.note-pin__suite:hover, .note-pin__suite:focus-visible { text-decoration: underline wavy; text-underline-offset: 3px; }
.note-pin__suite[hidden] { display: none; }
.note-pin .stars { display: block; margin: .1rem 0 .6rem; font-size: 1.75rem; line-height: 1; letter-spacing: 2px; color: var(--pollen); -webkit-text-stroke: .6px color-mix(in srgb, var(--clay) 80%, transparent); }
.stars__off { color: color-mix(in srgb, var(--ink) 15%, transparent); -webkit-text-stroke: 0; }
.note-pin figcaption a { color: inherit; }
.board.is-live .note-pin { animation: epingle .7s cubic-bezier(.2, .7, .2, 1) both; }
.board.is-live .note-pin:nth-child(2) { animation-delay: .08s; }
.board.is-live .note-pin:nth-child(3) { animation-delay: .16s; }
.board.is-live .note-pin:nth-child(4) { animation-delay: .24s; }
.board.is-live .note-pin:nth-child(5) { animation-delay: .32s; }
@keyframes epingle { from { opacity: 0; transform: translateY(-14px) rotate(-3deg); } }
.reviews-notice { max-width: 46em; margin: 2.6rem auto 0; text-align: center; font: italic 400 1rem var(--fell); color: var(--ink-soft); }
.reviews-notice a { color: var(--clay); }
.note-pin figcaption { font-size: .7rem; }

/* ---------- Planche VII : étiquettes de prix ---------- */
.price-tags { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.4rem, 3vw, 2.4rem); align-items: start; padding-top: 1.5rem; }
.tag-price {
  position: relative; padding: 2.6rem 1.4rem 1.4rem; background: var(--paper-light); text-align: center; rotate: var(--r);
  clip-path: polygon(22% 0, 78% 0, 100% 12%, 100% 100%, 0 100%, 0 12%);
  filter: drop-shadow(0 6px 8px rgb(38 48 31 / .2)); transition: rotate .4s, transform .4s;
}
.tag-price:hover { rotate: 0deg; transform: translateY(-4px); }
.tag-price__hole { position: absolute; top: 14px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--kraft); box-shadow: inset 0 1px 2px rgb(0 0 0 / .4); }
.tag-price h3 { font-size: 1.5rem; }
.tag-price__amount { font: 400 3.2rem/1 var(--fell); color: var(--clay); margin: .6rem 0 .2rem; }
.tag-price .type { margin: 0 0 .8rem; }
.tag-price__detail { font-size: .9rem; color: var(--ink-soft); margin: 0; }
.tag-price--featured { background: var(--moss); color: var(--paper-light); }
.tag-price--featured .tag-price__amount { color: var(--pollen); }
.tag-price--featured .type, .tag-price--featured .tag-price__detail { color: color-mix(in srgb, var(--paper) 80%, transparent); }
.note-line { max-width: 46em; margin: 2.4rem auto 0; text-align: center; font: italic 400 1.05rem var(--fell); color: var(--ink-soft); }

.faq { max-width: 860px; margin: clamp(4rem, 8vw, 6rem) auto 0; padding: 2rem clamp(1.2rem, 4vw, 3rem); background: var(--paper-light); box-shadow: var(--shadow); rotate: -.4deg; }
.faq__title { font-size: 2rem; margin-bottom: 1rem; }
.faq details { border-top: 1px dotted color-mix(in srgb, var(--ink) 45%, transparent); }
.faq summary { list-style: none; cursor: pointer; padding: .9rem 2.4rem .9rem 0; position: relative; font: 400 1.25rem var(--fell); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .2rem; top: 50%; translate: 0 -50%; font: 600 1.8rem var(--hand); color: var(--clay); transition: rotate .3s; }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { margin: 0 0 1.1rem; color: var(--ink-soft); }

/* ---------- Planche VIII : la carte postale ---------- */
.postcard {
  display: grid; grid-template-columns: 1fr 1fr; max-width: 1080px; margin: 0 auto; background: var(--paper-light);
  box-shadow: var(--shadow); rotate: -.6deg; padding: clamp(1.6rem, 4vw, 3rem);
}
.postcard__message { padding-right: clamp(1.2rem, 4vw, 3rem); border-right: 1.5px solid color-mix(in srgb, var(--ink) 50%, transparent); }
.postcard__message .hand { font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.2; color: var(--ink); }
.hand--sign { color: var(--clay) !important; font-size: 2.6rem !important; margin-bottom: 1.6rem; }
.postcard__actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.postcard__address { position: relative; padding-left: clamp(1.2rem, 4vw, 3rem); }
.postage {
  position: absolute; top: -6px; right: 0; width: 96px; padding: 7px 7px 5px; background: var(--paper);
  rotate: 4deg; text-align: center; font: 700 .62rem var(--type); text-transform: uppercase; color: var(--clay);
  border: 3px dotted var(--paper-light); outline: 1px solid color-mix(in srgb, var(--ink) 25%, transparent);
  box-shadow: 0 1px 3px rgb(0 0 0 / .2);
}
.postage svg { width: 100%; height: auto; display: block; background: #e6ead9; margin-bottom: 4px; }
.lines { margin: 0; }
.lines div:nth-child(-n+2) { margin-right: 120px; }
.lines div { padding: .5rem 0 .35rem; border-bottom: 1px solid color-mix(in srgb, var(--ink) 45%, transparent); }
.lines dt { font: 700 .66rem var(--type); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); }
.lines dd { margin: 0; font: 600 1.45rem/1.2 var(--hand); }
.lines a { text-decoration: none; }
.postcard__map { margin-top: 1.4rem; height: 200px; border: 6px solid var(--paper-light); box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 30%, transparent); rotate: 1deg; }
.postcard__map iframe { width: 100%; height: 100%; border: 0; display: block; filter: sepia(.45) saturate(.75); }

/* ---------- Colophon ---------- */
.colophon { position: relative; margin-top: 4rem; background: var(--forest); color: color-mix(in srgb, var(--paper) 85%, transparent); padding: 0 var(--gut) 1.6rem; }
.colophon__grass { position: absolute; left: 0; right: 0; bottom: 100%; width: 100%; height: 70px; }
.colophon__grass .blade { stroke: var(--forest); stroke-width: 1.5; }
.colophon__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; padding-top: 2rem; font-size: .9rem; }
.colophon__row p { margin: 0; }
.colophon__row nav { display: flex; gap: 1.4rem; }
.colophon__row a { text-decoration: none; }
.colophon__row a:hover { color: var(--pollen); }
.colophon__row a[data-admin][hidden] { display: none; }
.footer__version { font: 400 .75rem var(--type); opacity: .7; }

/* ---------- Page simple (mentions légales) ---------- */
.page { max-width: 780px; margin: 0 auto; padding: calc(var(--tab-h) + 42px) var(--gut) 4rem; }
.page h1 { font-size: clamp(2.6rem, 7vw, 4.4rem); margin: 1rem 0 2rem; }
.page h2 { font-size: 1.5rem; margin: 2rem 0 .5rem; padding-top: .8rem; border-top: 1px dotted var(--ink); }
.page a { color: var(--clay); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .herbarium, .price-tags { grid-template-columns: repeat(2, 1fr); }
  .card:nth-child(n) { margin-top: 0; }
  .card:nth-child(even) { margin-top: 1.6rem; }
}
@media (max-width: 860px) {
  .hero, .breath, .finder, .growth, .postcard { grid-template-columns: 1fr; }
  .collage { max-width: 460px; margin: 0 auto; padding: 3.5rem 0 0 2.5rem; }
  .specimen { max-width: 420px; margin: 0 0 0 auto; }
  .snapshot { left: .4rem; width: 44%; }
  .note--fern { display: none; }
  .breath { justify-items: center; text-align: center; }
  .breath__controls { justify-content: center; }
  .dandelion { max-width: 260px; }
  .prescription, .growth__intro { position: static; }
  .season { grid-template-columns: 1fr 1fr; }
  .season::before { display: none; }
  .postcard__message { padding-right: 0; border-right: 0; border-bottom: 1.5px solid color-mix(in srgb, var(--ink) 50%, transparent); padding-bottom: 1.6rem; margin-bottom: 1.6rem; }
  .postcard__address { padding-left: 0; }
}
@media (max-width: 560px) {
  .herbarium, .price-tags, .season { grid-template-columns: 1fr; }
  .card:nth-child(even) { margin-top: 0; }
  .specimen .label { position: relative; right: auto; bottom: auto; margin-top: .8rem; max-width: none; }
  .steps li { grid-template-columns: 1fr; gap: .1rem; padding: .9rem .5rem; }
  .branch { --tige: 62px; }
  .stamp { width: 120px; }
}

/* ---------- Le compagnon : un papillon à l'encre (js/compagnon.js) ---------- */
.bf, .bf-bubble, .bf-trail { position: fixed; z-index: 45; }
/* Position et inclinaison sont calculées image par image par le script. */
.bf { top: 0; right: 6px; width: 110px; height: 110px; opacity: 0; transition: opacity .6s; will-change: transform; }
.bf.is-ready { opacity: 1; }
.bf.is-leaving { opacity: 0; transition: opacity 1.4s ease-in .2s; }
.bf__button { position: relative; display: block; width: 100%; height: 100%; padding: 0; background: none; border: 0; cursor: pointer; }
.bf__button:focus-visible { outline: 2px dashed var(--clay); outline-offset: 2px; border-radius: 50%; }
.bf__float { position: absolute; inset: 0; display: block; filter: drop-shadow(0 6px 5px rgb(38 48 31 / .16)); }
.bf__svg { display: block; width: 100%; height: 100%; overflow: visible; }
.bf__upper { fill: color-mix(in srgb, var(--pollen) 58%, var(--paper-light)); stroke: var(--ink); stroke-width: 1.3; stroke-linejoin: round; }
.bf__lower { fill: color-mix(in srgb, var(--pollen) 35%, var(--paper-light)); stroke: var(--ink); stroke-width: 1.3; stroke-linejoin: round; }
.bf__vein, .bf__antenna { fill: none; stroke: var(--ink); stroke-width: .8; stroke-linecap: round; }
.bf__vein { stroke: color-mix(in srgb, var(--ink) 55%, transparent); }
.bf__antenna { stroke-width: 1.1; }
.bf__edge { fill: none; stroke: var(--clay); stroke-width: 3; stroke-linecap: round; }
.bf__spot { fill: var(--clay); }
.bf__spot--small { fill: var(--moss); }
.bf__tip, .bf__body { fill: var(--ink); }

/* Les ailes : pivot sur le corps. L'aile basse suit l'aile haute avec un
   léger retard, et l'inclinaison (skew) donne la perspective du battement. */
.bf__wing { transform-origin: 50px 46px; transition: transform .35s; }
.bf__wing--l.bf__wing--up { animation: respire-g 3.6s ease-in-out infinite; }
.bf__wing--r.bf__wing--up { animation: respire-d 3.6s ease-in-out infinite; }
.bf__wing--l.bf__wing--low { animation: respire-g 3.6s ease-in-out .12s infinite; }
.bf__wing--r.bf__wing--low { animation: respire-d 3.6s ease-in-out .12s infinite; }
.bf.is-flying .bf__wing--l.bf__wing--up { animation: bat-g .24s ease-in-out infinite alternate; }
.bf.is-flying .bf__wing--r.bf__wing--up { animation: bat-d .24s ease-in-out infinite alternate; }
.bf.is-flying .bf__wing--l.bf__wing--low { animation: bat-g .24s ease-in-out .04s infinite alternate; }
.bf.is-flying .bf__wing--r.bf__wing--low { animation: bat-d .24s ease-in-out .04s infinite alternate; }
.bf.is-leaving .bf__wing--l { animation: bat-g .18s ease-in-out infinite alternate !important; }
.bf.is-leaving .bf__wing--r { animation: bat-d .18s ease-in-out infinite alternate !important; }
.bf.is-resting .bf__wing { animation: none; }
.bf.is-resting .bf__wing--l { transform: scaleX(.12) skewY(14deg); }
.bf.is-resting .bf__wing--r { transform: scaleX(.12) skewY(-14deg); }
@keyframes bat-g { from { transform: scaleX(1) skewY(0); } to { transform: scaleX(.22) skewY(12deg); } }
@keyframes bat-d { from { transform: scaleX(1) skewY(0); } to { transform: scaleX(.22) skewY(-12deg); } }
@keyframes respire-g { 0%, 100% { transform: scaleX(1); } 45% { transform: scaleX(.6) skewY(6deg); } 55% { transform: scaleX(.58) skewY(6deg); } }
@keyframes respire-d { 0%, 100% { transform: scaleX(1); } 45% { transform: scaleX(.6) skewY(-6deg); } 55% { transform: scaleX(.58) skewY(-6deg); } }

/* Le corps remonte à chaque battement ; les antennes ondulent. */
.bf.is-flying .bf__float, .bf.is-leaving .bf__float { animation: souleve .24s ease-in-out infinite alternate; }
@keyframes souleve { to { translate: 0 -4px; } }
.bf__antennae { transform-origin: 50px 30px; animation: antennes 2.6s ease-in-out infinite; }
@keyframes antennes { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-5deg) scaleY(.97); } 70% { transform: rotate(4deg); } }

/* Le trajet de vol en pointillés : il sert d'indicateur de lecture */
.bf-trail { top: calc(var(--tab-h) + 24px); right: 60px; width: 2px; height: calc(100vh - var(--tab-h) - 174px); transition: opacity .8s; z-index: 44; pointer-events: none; }
.bf-trail.is-leaving { opacity: 0; }
.bf-trail__line {
  display: block; width: 100%; height: 100%; transform: scaleY(0); transform-origin: top;
  background: repeating-linear-gradient(to bottom, color-mix(in srgb, var(--ink) 45%, transparent) 0 5px, transparent 5px 11px);
}

/* La bulle manuscrite */
.bf-bubble {
  top: 26px; right: 124px; width: max-content; max-width: 240px; padding: .75rem 2rem .7rem 1rem;
  background: var(--paper-light); border: 1.5px solid var(--ink); color: var(--ink);
  border-radius: 255px 18px 225px 18px / 18px 225px 18px 255px; box-shadow: var(--shadow);
  opacity: 0; scale: .85; transform-origin: right center; pointer-events: none;
  transition: opacity .3s, scale .35s cubic-bezier(.3, 1.4, .5, 1);
}
.bf-bubble.is-open { opacity: 1; scale: 1; pointer-events: auto; }
.bf-bubble::after { content: ""; position: absolute; right: -9px; top: 22px; width: 14px; height: 14px; background: var(--paper-light); border-right: 1.5px solid var(--ink); border-top: 1.5px solid var(--ink); rotate: 45deg; }
.bf-bubble__text { margin: 0; font: 600 1.3rem/1.15 var(--hand); }
/* La croix : discrète, mais assez grande pour le doigt */
.bf-bubble__hide {
  position: absolute; top: 3px; right: 5px; width: 26px; height: 26px; display: grid; place-items: center;
  padding: 0; background: none; border: 0; border-radius: 50%; cursor: pointer;
  font: 400 1.25rem/1 var(--body); color: color-mix(in srgb, var(--ink) 45%, transparent);
  transition: color .2s, background-color .2s;
}
.bf-bubble__hide:hover, .bf-bubble__hide:focus-visible { color: var(--clay); background: color-mix(in srgb, var(--clay) 10%, transparent); }

/* Immobile pour qui a demandé à réduire les animations */
.bf.is-still { top: auto; bottom: 14px; right: 12px; opacity: 1; }
.bf-bubble.is-still { top: auto; bottom: 138px; right: 16px; }
.bf-bubble.is-still::after { right: 30px; top: auto; bottom: -9px; rotate: 135deg; }

@media (max-width: 860px) {
  .bf { top: auto; bottom: 4px; left: 0; right: auto; width: 80px; height: 80px; }
  .bf-trail { top: auto; bottom: 43px; left: 8px; right: 88px; width: auto; height: 2px; }
  .bf-trail.is-leaving { opacity: 0; }
.bf-trail__line { transform: scaleX(0); transform-origin: left; background: repeating-linear-gradient(to right, color-mix(in srgb, var(--ink) 45%, transparent) 0 5px, transparent 5px 11px); }
  .bf-bubble { top: auto; bottom: 92px; left: 12px; right: 12px; max-width: none; width: auto; transform: none !important; transform-origin: bottom center; }
  .bf-bubble::after { display: none; }
  .colophon { padding-bottom: 4rem; }
}
@media print { .bf, .bf-bubble, .bf-trail { display: none !important; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .draw { stroke-dashoffset: 0; }
}
