/* Accueil vitrine — « l'almanach imprimé » (spec 2026-10-17). CSS simple, sans Tailwind :
   les sections ajoutées (couverture, récit, fiabilité, app) vivent ici. Deux encres
   (girolle, lactaire) légèrement hors repérage, le point de trame comme langage des
   données, Space Mono réservée aux mesures. Recopiée dans la page (css_en_ligne). */
:root {
  --acc-papier: #f4ecdc;
  --acc-cadre: #f9f3e6;
  --acc-encre: #241d12;
  --acc-encre-70: rgba(36, 29, 18, .74);
  --acc-girolle: #f2a93b;
  --acc-lactaire: #d9772e;
  --acc-cepe: #b9793f;
  --acc-lien: #8f5a2a;
  --acc-pad: clamp(20px, 4.2vw, 64px);
  --acc-ease: cubic-bezier(.19, 1, .22, 1);
}
.acc-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.acc-mesure { font-family: "Space Mono", ui-monospace, monospace; font-size: .8em; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.acc-main { font-family: "Caveat", "Segoe Print", cursive; font-weight: 600; color: var(--acc-cepe); }
.couv, .fiab, .appli { font-family: Georgia, "Iowan Old Style", serif; color: var(--acc-encre); }
.acc-wrap { max-width: 1200px; margin: 0 auto; padding: clamp(56px, 8vw, 112px) var(--acc-pad); }
.acc-titre { font-family: "Fraunces", Georgia, serif; font-style: italic; font-weight: 400; letter-spacing: -.02em; line-height: 1.04; font-size: clamp(34px, 4.4vw, 60px); margin: 0; text-wrap: balance; }
.acc-lien { color: inherit; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; transition: color .2s; }
.acc-lien:hover { color: var(--acc-lactaire); }
/* bouton : aplat d'encre et contre-épreuve lactaire décalée (le repérage du riso) */
.acc-btn { display: inline-block; padding: 15px 24px 14px; font: 13px/1 "Space Mono", monospace; text-transform: uppercase; letter-spacing: .04em; text-decoration: none; color: var(--acc-papier); background: var(--acc-encre); box-shadow: 3px 3px 0 var(--acc-lactaire); transition: transform .25s var(--acc-ease), box-shadow .25s var(--acc-ease); }
.acc-btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--acc-lactaire); }
.acc-btn:focus-visible, .acc-lien:focus-visible { outline: 2px solid var(--acc-lactaire); outline-offset: 3px; }
/* pastilles de section (bureau) : un carré de 8 px dessiné au centre d'une cible de 24 × 24
   (critère WCAG 2.5.8) ; la pastille de la section lue se remplit et grossit */
.acc-pastille { position: relative; display: block; width: 24px; height: 24px; }
.acc-pastille::before { content: ""; position: absolute; inset: 8px; border: 1px solid var(--acc-encre); transition: background-color .3s, transform .3s; }
.acc-pastille.actif::before { background: var(--acc-encre); transform: scale(1.25); }
.acc-pastille:focus-visible { outline: 2px solid var(--acc-lactaire); outline-offset: -2px; }
#landing-screen ::selection { background: var(--acc-girolle); color: var(--acc-encre); }
@media (prefers-reduced-motion: reduce) { .acc-btn, .acc-lien, .acc-pastille::before { transition: none; } }

/* ---------- couverture ---------- */
.couv { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 88px); align-items: center; max-width: 1280px; margin: 0 auto; padding: clamp(28px, 5vw, 64px) var(--acc-pad) clamp(40px, 6vw, 80px); }
.couv-titre { font-family: "Fraunces", Georgia, serif; font-style: italic; font-weight: 400; font-size: clamp(42px, 5vw, 86px); line-height: .96; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
.couv-chapo { max-width: 30em; margin: 26px 0 0; font-size: 17px; line-height: 1.7; }
.couv-actions { display: flex; flex-wrap: wrap; gap: 16px 26px; align-items: center; margin-top: 30px; }
.couv-preuve { max-width: 30em; margin: 34px 0 0; padding-top: 14px; border-top: 1px solid var(--acc-encre); font-size: 15px; color: var(--acc-encre-70); }
/* fig. 1 : une planche (cadre papier, filet d'encre, ombre dure décalée) */
.couv-planche { position: relative; justify-self: center; width: min(100%, 470px); margin: 0; background: var(--acc-cadre); border: 1px solid var(--acc-encre); padding: 30px 30px 12px; box-shadow: 8px 8px 0 var(--acc-encre); }
.couv-planche-boite { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #2a2a1a; }
.couv-photo, .couv-relief, .couv-cepes { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.couv-relief { opacity: 0; transition: opacity .4s; }
.couv-relief.pret, .couv-cepes.pret { opacity: 1; }
.couv-cepes { opacity: 0; transform: scale(1.1); transition: opacity .3s; pointer-events: none; }
.couv-traits { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.couv-trait { fill: none; stroke: var(--acc-papier); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: couv-trace .9s var(--acc-ease) forwards; }
.couv-trait--chapeau { animation-delay: .5s; }
.couv-trait--pied { animation-delay: 1.3s; }
.couv-annot { position: absolute; z-index: 1; padding: 3px 6px; background: rgba(249, 243, 230, .9); font-size: clamp(17px, 1.6vw, 21px); line-height: 1; white-space: nowrap; color: var(--acc-lien); opacity: 0; animation: couv-ecrit .6s ease forwards; pointer-events: none; }
.couv-annot--chapeau { left: 4%; top: 40%; animation-delay: 1s; }
.couv-annot--pied { left: 63%; top: 66%; animation-delay: 1.8s; }
.couv-leg { display: flex; justify-content: space-between; gap: 14px; align-items: baseline; border-top: 1px solid var(--acc-encre); margin-top: 12px; padding-top: 7px; font-size: 13px; }
.couv-credit { margin-top: 5px; font-size: 10px; text-align: right; color: var(--acc-encre-70); }
.couv-credit a { border-bottom: 1px solid; }
.couv-leg i { font-family: "Fraunces", Georgia, serif; font-size: 16px; }
/* tampon « indice du jour » (cèpe de saison) : encre lactaire, posé de travers sur le cadre */
.couv-tampon { position: absolute; right: -18px; top: -16px; padding: 6px 12px 5px; background: var(--acc-lactaire); color: var(--acc-encre); border: 1px solid var(--acc-encre); transform: rotate(4deg); font-family: "Caveat", "Segoe Print", cursive; font-weight: 600; font-size: 18px; line-height: 1.1; white-space: nowrap; }
.couv-tampon .acc-mesure { font-size: 14px; font-weight: 700; }
@keyframes couv-trace { to { stroke-dashoffset: 0; } }
@keyframes couv-ecrit { to { opacity: 1; } }
/* mouvement réduit (.couv-fixe, posée par accueil.js, et la requête média ci-dessous) : l'image finale */
.couv-fixe .couv-trait, .couv-fixe .couv-annot { animation: none; }
.couv-fixe .couv-trait { stroke-dashoffset: 0; }
.couv-fixe .couv-annot { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .couv-trait, .couv-annot { animation: none; }
  .couv-trait { stroke-dashoffset: 0; }
  .couv-annot { opacity: 1; }
}
@media (max-width: 960px) {
  /* Le titre et le bouton tiennent dans le premier écran (390 × 844) ; la planche suit. */
  /* La planche suit directement les boutons (la preuve passe dessous) : on la voit entière
     dès le premier coup de pouce. .couv-texte s'efface pour que ses enfants se rangent dans la grille. */
  .couv { grid-template-columns: 1fr; gap: 0; padding-top: 12px; }
  .couv-texte { display: contents; }
  .couv-titre { font-size: 42px; }
  .couv-chapo { margin-top: 12px; font-size: 15px; line-height: 1.5; }
  .couv-actions { margin-top: 20px; }
  .couv-preuve { order: 1; margin-top: 30px; }
  .couv-planche { width: 78%; min-width: 260px; margin-top: 30px; padding: 22px 14px 10px; box-shadow: 5px 5px 0 var(--acc-encre); }
  .couv-annot { font-size: 15px; }
  .couv-tampon { right: -10px; top: -14px; font-size: 16px; }
}

/* ---------- fiabilité ---------- */
.fiab-tete { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.fiab-tete p { margin: 0; max-width: 32em; font-size: 16px; line-height: 1.75; }
.fiab-corps { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 4vw, 64px); align-items: start; }
.fiab-texte p { margin: 0 0 16px; max-width: 30em; font-size: 16px; line-height: 1.75; }
.fiab-chiffre { display: block; font: 700 clamp(60px, 7vw, 116px)/.9 "Clash Display", "Archivo Black", sans-serif; letter-spacing: -.03em; margin: 4px 0 12px; }
.fiab-frise { margin: 0; background: var(--acc-cadre); border: 1px solid var(--acc-encre); padding: 14px 16px 10px; }
.fiab-echelle { position: relative; height: 60px; margin-left: 150px; margin-right: 64px; font-size: 11px; color: var(--acc-encre-70); }
.fiab-echelle span { position: absolute; bottom: 4px; transform: translateX(-50%); white-space: nowrap; }
.fiab-echelle .fiab-palier:nth-child(2) { bottom: 40px; }
.fiab-echelle .fiab-palier { bottom: 22px; color: var(--acc-encre); font-family: "Fraunces", Georgia, serif; font-style: italic; font-size: 14px; }
.fiab-table { width: 100%; border-collapse: collapse; }
.fiab-table th, .fiab-table td { border-top: 1px solid rgba(36, 29, 18, .14); padding: 0; }
.fiab-nom { width: 150px; padding: 6px 12px 5px 0 !important; text-align: left; font-weight: 400; line-height: 1.1; }
.fiab-nom a { color: inherit; text-decoration: none; }
.fiab-nom .fr { display: block; font-family: "Caveat", cursive; font-weight: 600; font-size: 19px; color: var(--acc-lien); }
.fiab-nom .la { display: block; font-family: "Fraunces", Georgia, serif; font-style: italic; font-size: 12px; }
.fiab-piste { position: relative; height: 40px; }
/* paliers en trame : plus le palier est haut, plus le point girolle grossit */
.fiab-piste .bandes { position: absolute; inset: 0; display: grid; grid-template-columns: var(--s0) calc(var(--s1) - var(--s0)) calc(var(--s2) - var(--s1)) calc(var(--s3) - var(--s2)) 1fr; pointer-events: none; }
.fiab-piste .bandes i { display: block; background-size: 6px 6px; border-left: 1px solid rgba(36,29,18,.3); }
.fiab-piste .bandes .b0 { border-left: 0; background-image: repeating-linear-gradient(135deg, rgba(36,29,18,.14) 0 1px, transparent 1px 6px); }
.fiab-piste .bandes .b1 { background-image: radial-gradient(circle, var(--acc-girolle) .8px, transparent 1.3px); }
.fiab-piste .bandes .b2 { background-image: radial-gradient(circle, var(--acc-girolle) 1.25px, transparent 1.75px); }
.fiab-piste .bandes .b3 { background-image: radial-gradient(circle, var(--acc-girolle) 1.75px, transparent 2.25px); }
.fiab-piste .bandes .b4 { background-image: radial-gradient(circle, var(--acc-girolle) 2.3px, transparent 2.8px); }
.fiab-val { width: 64px; text-align: right; font-size: 13px; line-height: 1.2; }
.fiab-piste .pt { position: absolute; z-index: 2; top: 50%; left: var(--x); width: 13px; height: 13px; margin: -6.5px 0 0 -6.5px; border-radius: 50%; background: var(--acc-encre); box-shadow: 0 0 0 2px var(--acc-cadre); transition: left 1.4s var(--acc-ease); }
.alm-ready .fiab-frise:not(.on) .fiab-piste .pt { left: 0; }
.fiab-piste .pt.creux { background: var(--acc-cadre); border: 1.5px solid var(--acc-encre); }
.fiab-piste .pt .bulle { position: absolute; bottom: 19px; left: 50%; transform: translateX(-50%); background: var(--acc-encre); color: var(--acc-papier); padding: 5px 9px; white-space: nowrap; font-size: 11px; opacity: 0; pointer-events: none; transition: opacity .15s; }
.fiab-piste .pt[data-cote="g"] .bulle { left: 0; transform: none; }
@media (hover: none), (max-width: 960px) { .fiab-piste .pt .bulle { display: none; } }
.fiab-piste .pt:hover .bulle, .fiab-piste .pt:focus-visible .bulle { opacity: 1; }
.fiab-piste .pt:focus-visible { outline: 2px solid var(--acc-lactaire); outline-offset: 2px; }
.fiab-piste .pt::after { content: ""; position: absolute; inset: -12px; }
.fiab-leg { display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: space-between; border-top: 1px solid var(--acc-encre); margin-top: 8px; padding-top: 7px; font-size: 13px; }
.fiab-note { margin: 8px 0 0; font-size: 11px; color: var(--acc-encre-70); }
.fiab-leg i { font-family: "Fraunces", Georgia, serif; font-size: 15px; }
@media (max-width: 960px) {
  .fiab-tete, .fiab-corps { grid-template-columns: 1fr; }
  .fiab-echelle { margin-left: 0; margin-right: 56px; }
  .fiab-table tr { display: grid; grid-template-columns: 1fr 56px; }
  .fiab-nom { grid-column: 1 / -1; width: auto; padding-bottom: 0 !important; }
  .fiab-piste, .fiab-val { border-top: 0 !important; height: 30px; }
  .fiab-val { width: 56px; font-size: 11px; display: flex; align-items: center; justify-content: flex-end; }
}
@media (prefers-reduced-motion: reduce) { .fiab-piste .pt { transition: none; } .alm-ready .fiab-frise:not(.on) .fiab-piste .pt { left: var(--x); } }

/* ---------- planche de l'app ---------- */
.appli-grille { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 4vw, 72px); align-items: center; }
.appli-liste { list-style: none; padding: 0; margin: 26px 0 32px; border-top: 1px solid var(--acc-encre); max-width: 30em; }
.appli-liste li { padding: 12px 0; border-bottom: 1px solid rgba(36, 29, 18, .25); font-size: 16px; line-height: 1.6; }
.appli-liste b { font-family: "Fraunces", Georgia, serif; font-style: italic; font-weight: 400; font-size: 19px; }
.appli-planche { position: relative; justify-self: center; width: min(100%, 620px); margin: 0; background: var(--acc-cadre); border: 1px solid var(--acc-encre); padding: 34px 34px 12px; box-shadow: 8px 8px 0 var(--acc-encre); }
.app-scene { position: relative; height: 600px; perspective: 1600px; display: flex; justify-content: center; }
.app-tel { position: relative; height: 100%; aspect-ratio: 1170 / 2532; border-radius: 40px; background: #120f0a; padding: 9px; box-shadow: 0 30px 60px -24px rgba(36, 29, 18, .55); transform: rotateY(calc(-9deg + var(--incl-y, 0deg))) rotateX(calc(4deg + var(--incl-x, 0deg) + var(--incl-defile, 0deg))) scale(var(--incl-echelle, 1)); transition: transform .6s var(--acc-ease); }
.app-ecran { width: 100%; height: 100%; border-radius: 32px; overflow: hidden; background: #2a2a2a; }
.app-ecran img { display: block; width: 100%; height: auto; }
.app-annot { position: absolute; font-size: 21px; line-height: 1.05; white-space: nowrap; }
.app-annot svg { position: absolute; overflow: visible; }
.app-annot path { fill: none; stroke: var(--acc-cepe); stroke-width: 1.3; }
.app-billet { position: absolute; z-index: 4; right: -22px; top: 118px; width: 250px; background: var(--acc-papier); border: 1px solid var(--acc-encre); padding: 11px 14px 12px; transform: rotate(2.5deg); font-size: 14px; line-height: 1.45; box-shadow: 3px 3px 0 var(--acc-lactaire); }
.app-billet .acc-mesure { display: block; color: var(--acc-lactaire); margin-bottom: 3px; }
.app-billet b { display: block; font-family: "Fraunces", Georgia, serif; font-style: italic; font-weight: 400; font-size: 17px; }
.appli-leg { display: flex; justify-content: space-between; gap: 14px; align-items: baseline; border-top: 1px solid var(--acc-encre); margin-top: 10px; padding-top: 7px; font-size: 13px; }
.appli-leg i { font-family: "Fraunces", Georgia, serif; font-size: 15px; }
@media (max-width: 960px) {
  .appli-grille { grid-template-columns: 1fr; }
  .app-scene { height: 500px; } .app-billet { right: -6px; width: 210px; } .app-annot { display: none; }
  .appli-planche { padding: 20px 16px 10px; box-shadow: 5px 5px 0 var(--acc-encre); }
}
@media (prefers-reduced-motion: reduce) { .app-tel { transition: none; } }

/* ---------- finition au défilement (chantier du 22/11/2026, accueil/finition.js) ----------
   Titres encrés mot à mot (d'après 21st.dev « Text Reveal ») : un mot reste à l'encre pâle
   tant que la progression --t (0 → 1) ne l'a pas atteint. L'encre pâle (.3) n'est qu'un état
   de passage : à l'arrêt, le titre en vue est à l'encre pleine. */
#landing-screen .encre-pret .encre-mot { opacity: clamp(.3, calc(var(--t, 0) * (var(--n) + 3) - var(--i)), 1); transition: opacity .2s linear; }

/* Calendrier : la case du mois en cours s'encre ligne après ligne (d'après 21st.dev
   « Timeline »). Sans JS ou en mouvement réduit, la classe .cal-trace n'est jamais posée. */
#landing-screen .cal-trace .acc-cal-c.cur { box-shadow: inset 0 0 0 1.5px rgba(36, 29, 18, 0); transition: box-shadow .35s var(--acc-ease); }
#landing-screen .cal-trace .acc-cal-c.cur.encree { box-shadow: inset 0 0 0 1.5px var(--acc-encre); }

/* Planches en pile sur téléphone (d'après 21st.dev « Stacked cards », en CSS seul) : chaque
   planche de saison reste collée sous la barre, un peu plus bas que la précédente, et la
   suivante vient se poser dessus comme une feuille sur la pile. overflow: clip (et non hidden)
   pour que position: sticky fonctionne. */
@media (max-width: 639px) {
  #landing-screen #especes .alm-pile { overflow: clip; border: 0; }
  #landing-screen #especes .alm-pile ul { display: flex; flex-direction: column; gap: 22px; margin: 0; padding-bottom: 8px; }
  #landing-screen #especes .alm-pile .alm-planche { position: sticky; top: calc(72px + var(--rang, 0) * 10px); border: 1px solid var(--acc-encre); box-shadow: 5px 5px 0 var(--acc-encre); }
  #landing-screen #especes .alm-pile .alm-planche:nth-child(odd) { transform: rotate(-.6deg); }
  #landing-screen #especes .alm-pile .alm-planche:nth-child(even) { transform: rotate(.5deg); }
  #landing-screen #especes .alm-pile .alm-planche > a { flex-direction: row; align-items: flex-end; gap: 16px; padding: 18px 16px 14px; }
  #landing-screen #especes .alm-pile .alm-planche > a > div:first-child { flex: none; width: 104px; height: 120px; }
  #landing-screen #especes .alm-pile .alm-planche img { max-height: 120px; }
  #landing-screen #especes .alm-pile .alm-planche > a > div:nth-child(2) { flex: 1; min-width: 0; }
  #landing-screen #especes .alm-pile .alm-planche > a > div:nth-child(3) { position: absolute; top: 12px; right: 14px; gap: 12px; }
}

/* FAQ : le <details> natif s'ouvre en glissant (d'après 21st.dev « Accordion »), là où le
   navigateur sait animer jusqu'à height: auto ; ailleurs il s'ouvre d'un coup, comme avant. */
@supports (interpolate-size: allow-keywords) {
  #landing-screen .alm-faq { interpolate-size: allow-keywords; }
  #landing-screen .alm-faq::details-content { block-size: 0; overflow: clip; transition: block-size .45s var(--acc-ease), content-visibility .45s allow-discrete; }
  #landing-screen .alm-faq[open]::details-content { block-size: auto; }
}
@media (prefers-reduced-motion: reduce) {
  #landing-screen .encre-pret .encre-mot { opacity: 1; transition: none; }
  #landing-screen .alm-faq::details-content { transition: none; }
}

/* ---------- calendrier (statique : une bande de douze mois par espèce, comme dans l'app) ---------- */
.acc-cal-tete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; }
.acc-cal-table { margin-top: 28px; background: var(--acc-cadre); border: 1px solid var(--acc-encre); padding: 34px 22px 12px; }
.acc-cal-ligne { display: grid; grid-template-columns: 210px repeat(12, minmax(0, 1fr)); column-gap: 3px; align-items: center; padding: 2px 0; }
.acc-cal-etoile { color: var(--acc-lien); } /* #8f5a2a : 4,6:1 sur le kraft (le cèpe #b9793f n'en fait que 2,6) */
.acc-cal-ligne + .acc-cal-ligne { border-top: 1px solid rgba(36, 29, 18, .12); }
.acc-cal-entete { padding: 0 0 6px; border-bottom: 1px solid var(--acc-encre); }
.acc-cal-entete + .acc-cal-ligne { border-top: 0; }
.acc-cal-m { position: relative; padding: 4px 0 3px; border-radius: 2px; text-align: center; font: 11px/1 "Space Mono", ui-monospace, monospace; color: var(--acc-encre-70); }
.acc-cal-m.cur { background: var(--acc-encre); color: var(--acc-papier); font-weight: 700; }
.acc-cal-ici { position: absolute; bottom: calc(100% + 3px); left: 50%; transform: translateX(-50%) rotate(-3deg); font-size: 17px; line-height: 1; white-space: nowrap; color: var(--acc-lien); }
.acc-cal-nom { min-width: 0; }
.acc-cal-nom a { display: flex; align-items: center; gap: 12px; min-height: 40px; color: inherit; text-decoration: none; }
.acc-cal-vign { flex: none; width: 38px; height: 38px; display: flex; align-items: flex-end; justify-content: center; }
.acc-cal-vign img { width: 100%; height: 100%; object-fit: contain; object-position: bottom; }
.acc-cal-label { font-family: "Caveat", "Segoe Print", cursive; font-weight: 600; font-size: 20px; line-height: 1.05; color: var(--acc-lien); transition: color .2s; }
.acc-cal-nom a:hover .acc-cal-label { color: var(--acc-lactaire); }
.acc-cal-nom a:focus-visible { outline: 2px solid var(--acc-lactaire); outline-offset: 2px; }
.acc-cal-c { height: 22px; border-radius: 2px; background: rgba(36, 29, 18, .06); display: flex; align-items: center; justify-content: center; font-size: 10px; line-height: 1; color: var(--acc-encre); }
.acc-cal-c.on { background: rgba(242, 169, 59, .35); }
.acc-cal-c.peak { background: var(--acc-girolle); }
.acc-cal-c.cur { box-shadow: inset 0 0 0 1.5px var(--acc-encre); }
@media (prefers-reduced-motion: reduce) { .acc-cal-label { transition: none; } }
@media (max-width: 640px) {
  /* le nom passe au-dessus de sa bande ; les douze cases tiennent dans la largeur */
  .acc-cal-table { padding: 30px 12px 8px; }
  .acc-cal-ligne { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 2px; padding: 4px 0 8px; }
  .acc-cal-entete .acc-cal-nom { display: none; }
  .acc-cal-ligne .acc-cal-nom { grid-column: 1 / -1; }
  .acc-cal-nom a { min-height: 32px; gap: 10px; margin-bottom: 2px; }
  .acc-cal-vign { width: 28px; height: 28px; }
  .acc-cal-label { font-size: 19px; }
  .acc-cal-c { height: 16px; }
  .acc-cal-m { font-size: 10px; }
  .acc-cal-ici { font-size: 15px; }
}

#landing-screen #access-form { box-shadow: 0 6px 18px -6px rgba(36, 29, 18, .35); }

/* Défilement page par page : scroll snap CSS seul (aucun JS, aucun écouteur de molette).
   Chaque section s'arrête sous la barre collée (60 px) ; scroll-snap-stop: normal laisse un
   coup de molette fort en franchir plusieurs. Une section plus haute que l'écran reste lisible :
   le navigateur laisse défiler librement à l'intérieur d'une zone d'accroche trop grande. */
#landing-screen { scroll-snap-type: none; scroll-padding-top: 60px; }
#landing-screen #hero, #landing-screen #semaine, #landing-screen #pousse,
#landing-screen #fiabilite, #landing-screen #especes, #landing-screen #calendrier,
#landing-screen #app, #landing-screen #faq, #landing-screen #contact, #landing-screen .pied {
  scroll-snap-align: start; scroll-snap-stop: normal; scroll-margin-top: 0; /* annule le 60 px de app.css : la marge est déjà dans scroll-padding-top */
}
/* Bureau : une page = un écran. Chaque point d'accroche fait exactement la hauteur du snapport
   (l'écran moins la barre collée de 60 px, cf. .topbar) ; le contenu est centré verticalement,
   avec la même marge haute et basse, la même largeur (1200 px) et le même retrait que la
   couverture. Le contenu qui grandit (une question de la FAQ ouverte) agrandit sa page : le
   navigateur laisse alors défiler librement à l'intérieur. Rien ne change en mobile. */
@media (min-width: 961px) and (hover: hover) {
  #landing-screen { scroll-snap-type: y mandatory; --page: calc(100svh - 60px); --page-pad: clamp(24px, 5.5svh, 56px); }
  #landing-screen #hero, #landing-screen #fiabilite, #landing-screen #especes, #landing-screen #calendrier, #landing-screen #semaine, #landing-screen #app, #landing-screen #faq, #landing-screen #contact {
    min-height: var(--page); display: flex; flex-direction: column; justify-content: center;
  }
  #landing-screen #fiabilite > div, #landing-screen #especes > div, #landing-screen #calendrier > div, #landing-screen #semaine > div, #landing-screen #app > div, #landing-screen #faq > div, #landing-screen #contact > div {
    width: 100%; max-width: 1200px; margin: 0 auto; padding: var(--page-pad) var(--acc-pad);
  }
  /* couverture : même largeur et même retrait que les autres pages */
  #landing-screen #hero { display: grid; align-content: center; max-width: 1200px; padding: var(--page-pad) var(--acc-pad); }

  /* fiabilité, page A : le titre et l'explication à gauche, la frise (lignes de 30 px) à droite,
     sur toute la hauteur : les deux blocs de la mise en page mobile se fondent en une grille */
  #landing-screen #fiabilite > .acc-wrap { padding: var(--page-pad) var(--acc-pad); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: auto auto 1fr; column-gap: clamp(32px, 4vw, 64px); align-items: start; }
  #landing-screen .fiab-tete, #landing-screen .fiab-corps { display: contents; }
  #landing-screen .fiab-tete h2 { grid-column: 1; grid-row: 1; font-size: clamp(32px, 3vw, 46px); }
  #landing-screen .fiab-tete p { grid-column: 1; grid-row: 2; margin: clamp(14px, 2.5svh, 24px) 0 clamp(14px, 2.5svh, 24px); }
  #landing-screen .fiab-texte { grid-column: 1; grid-row: 3; }
  #landing-screen .fiab-frise { grid-column: 2; grid-row: 1 / span 3; align-self: center; }
  .fiab-nom { width: 190px; padding: 0 12px 0 0 !important; }
  .fiab-nom .fr { font-size: 17px; line-height: .95; }
  .fiab-nom .la { font-size: 11px; line-height: 1.1; }
  .fiab-piste { height: 30px; }
  .fiab-echelle { margin-left: 190px; margin-right: 110px; }
  .fiab-val { width: 110px; white-space: nowrap; }
  .fiab-leg { margin-top: 6px; padding-top: 5px; }
  .fiab-note { margin-top: 4px; }

  /* planches : deux rangées de sept, vignettes un peu plus basses */
  #landing-screen #especes .alm-planche > a { gap: 10px; padding-top: 18px; padding-bottom: 12px; }
  #landing-screen #especes .alm-planche > a > div:first-child { height: 96px; }
  #landing-screen #especes .alm-planche img { max-height: 96px; }

  /* calendrier : quatorze lignes de 34 px */
  .acc-cal-table { margin-top: clamp(16px, 3svh, 28px); padding: 32px 22px 8px; }
  .acc-cal-ligne { padding: 1px 0; }
  .acc-cal-nom a { min-height: 34px; }
  .acc-cal-vign { width: 32px; height: 32px; }
  .acc-cal-c { height: 20px; }

  /* dernière page : la souscription et le pied de page tiennent ensemble dans un écran
     (le pied garde une hauteur fixe, sa marge éventuelle reste en bas) */
  #landing-screen { --pied-h: 232px; }
  #landing-screen #contact { min-height: calc(var(--page) - var(--pied-h)); }
  #landing-screen .pied { min-height: var(--pied-h); }

  /* planche de l'app : le téléphone suit la hauteur de l'écran */
  .app-scene { height: clamp(380px, calc(var(--page) - 2 * var(--page-pad) - 90px), 600px); }
}
/* portable (1280 × 720 et moins haut) : on resserre ce qui est grand */
@media (min-width: 961px) and (hover: hover) and (max-height: 800px) {
  #landing-screen .acc-titre { font-size: clamp(32px, 3.6vw, 48px); }
  #landing-screen .fiab-tete p, #landing-screen .fiab-texte p { font-size: 15px; line-height: 1.6; }
  .fiab-texte p { margin-bottom: 12px; }
  .fiab-chiffre { font-size: clamp(54px, 5.5vw, 84px); margin: 0 0 8px; }
  .fiab-frise { padding-top: 10px; }
  .fiab-echelle { height: 48px; }
  .fiab-echelle .fiab-palier { bottom: 18px; }
  .fiab-echelle .fiab-palier:nth-child(2) { bottom: 32px; }
  .fiab-piste { height: 26px; }
  .fiab-nom .fr { font-size: 15.5px; }
  .fiab-nom .la { font-size: 10px; }
  #landing-screen #especes .alm-planche > a { gap: 8px; padding-top: 14px; padding-bottom: 10px; }
  #landing-screen #especes .alm-planche > a > div:first-child { height: 72px; }
  #landing-screen #especes .alm-planche img { max-height: 72px; }
  .acc-cal-table { padding-top: 28px; }
  .acc-cal-nom a { min-height: 28px; }
  .acc-cal-vign { width: 26px; height: 26px; }
  .acc-cal-label { font-size: 18px; }
  .acc-cal-c { height: 18px; }
  /* souscription + pied dans 660 px : formulaire de contact resserré */
  #landing-screen #contact > div { padding-block: 24px; }
  #landing-screen #contact h2 { font-size: 34px; }
  #landing-screen #contact h2 + p { line-height: 1.55; margin-top: 12px; }
  #landing-screen #contact .mt-\[30px\] { margin-top: 18px; }
  #landing-screen #access-form { padding: 16px 20px; }
  #landing-screen #access-form > * + * { margin-top: 10px; }
  #landing-screen #access-form input, #landing-screen #access-form textarea { padding-block: 7px; }
  #landing-screen #access-form textarea { height: 62px; }
  #landing-screen #access-form button[type="submit"] { padding-block: 10px; }
}

/* Mobile / tactile : mesuré avec Chrome (390 px, tactile), « proximity » piège les gestes lents (150 px de
   molette ramenés sous la couverture). On garde les points d'accroche des sections, mais le type reste « none » (à passer en
   « y proximity » ici si on veut tester sur un vrai téléphone). */
@media (max-width: 960px), (hover: none) {
  #landing-screen { scroll-snap-type: none; }
  /* Les sections plus hautes que l'écran de téléphone ne s'accrochent pas : leur fin est un point
     d'accroche en « proximity » qui ramène en arrière un défilement lent (mesuré : bloqué sous la couverture). */
  #landing-screen #hero, #landing-screen #semaine, #landing-screen #especes, #landing-screen #pousse,
  #landing-screen #calendrier, #landing-screen #app, #landing-screen #faq, #landing-screen #contact,
  #landing-screen #fiabilite, #landing-screen .pied { scroll-snap-align: none; }
}
@media (prefers-reduced-motion: reduce) { #landing-screen { scroll-behavior: auto; } }

/* ---------- la pousse en 3D (#pousse, partials/accueil/film.html), après les planches ----------
   Base statique : sans JS, et dans la page app (index.html, qui n'anime pas le film) : l'image fixe
   puis les légendes en liste. Le film (.pousse-film, posée par accueil.html seulement) se met en
   page en CSS sous (scripting: enabled), sans attendre de classe JS : la page ne saute pas quand
   le module arrive. La scène se colle sous la barre (60 px) : l'affiche et la caméra sont calées
   sur sa hauteur (pousse3d-scene.js taille()). */
.pousse { position: relative; color: var(--acc-encre); background: radial-gradient(120% 70% at 50% 40%, #fbf5e9 0, var(--acc-papier) 45%, #e9dcc3 100%); font-family: Georgia, serif; border-top: 1px solid var(--acc-encre); }
.pousse-scene { position: relative; display: grid; }
.pousse-affiche { display: block; width: 100%; height: auto; max-height: 72svh; object-fit: cover; object-position: 50% 40%; }
.pousse-toile { display: none; }
.pousse-ouverture { padding: 20px var(--acc-pad) 36px; max-width: 760px; }
.pousse-titre { font: italic 400 clamp(36px, 9vw, 72px)/.98 "Fraunces", Georgia, serif; letter-spacing: -.02em; text-wrap: balance; margin: 0; }
.pousse-chapo { max-width: 30em; margin: 14px 0 0; font-size: 17px; line-height: 1.6; }
.pousse-defiler, .pousse-compteur { display: none; }
.pousse-legendes { list-style: none; margin: 0; padding: 0 var(--acc-pad) 40px; display: grid; gap: 18px; max-width: 760px; }
.pousse-leg { display: grid; gap: 4px; }
.pousse-leg .acc-mesure { color: var(--acc-lactaire); }
.pousse-leg-titre { font: 400 clamp(26px, 7vw, 44px)/1.05 "Fraunces", Georgia, serif; letter-spacing: -.02em; text-wrap: balance; }
.pousse-leg-titre em { color: var(--acc-lactaire); }
.pousse-leg .acc-btn { justify-self: start; margin-top: 10px; }
@media (scripting: enabled) {
  .pousse-film { height: 700svh; }
  .pousse-film .pousse-scene { position: sticky; top: 60px; height: calc(100svh - 60px); overflow: hidden; display: block; }
  .pousse-film .pousse-affiche { position: absolute; top: 0; left: 50%; width: auto; max-width: none; height: 100%; max-height: none; transform: translateX(-50%); }
  .pousse-film .pousse-scene::after { content: ""; position: absolute; inset: auto 0 0; height: 38%; pointer-events: none; z-index: 1; background: linear-gradient(transparent, rgba(244, 236, 220, .94) 62%); }
  .pousse-film .pousse-ouverture { position: absolute; inset: auto 0 0; z-index: 2; padding-bottom: max(28px, env(safe-area-inset-bottom, 0px)); }
  .pousse-film .pousse-chapo { font-size: 16px; }
  .pousse-film .pousse-defiler { display: flex; align-items: center; gap: 10px; margin-top: 18px; }
  .pousse-film .pousse-defiler i { width: 1.5px; height: 28px; background: rgba(36, 29, 18, .2); position: relative; overflow: hidden; }
  .pousse-film .pousse-compteur { display: grid; gap: 4px; position: absolute; z-index: 2; left: var(--acc-pad); top: 16px; opacity: 0; }
  .pousse-film .pousse-legendes { position: absolute; inset: auto 0 0; z-index: 2; padding: 0; display: block; max-width: none; }
  .pousse-film .pousse-leg { position: absolute; left: var(--acc-pad); right: var(--acc-pad); bottom: max(28px, env(safe-area-inset-bottom, 0px)); opacity: 0; visibility: hidden; max-width: 680px; }
  .pousse-film .pousse-leg-titre { font-size: clamp(28px, 8vw, 64px); }
}
/* bureau : le film est une zone d'accroche plus haute que l'écran (le navigateur y défile librement) */
@media (scripting: enabled) and (min-width: 961px) and (hover: hover) {
  #landing-screen #pousse.pousse-film { scroll-snap-align: start; }
  .pousse-film .pousse-ouverture, .pousse-film .pousse-leg, .pousse-film .pousse-compteur { left: max(var(--acc-pad), calc(50% - 600px)); }
  .pousse-film .pousse-ouverture { max-width: 1000px; padding-bottom: 36px; }
  .pousse-film .pousse-titre { font-size: clamp(44px, 8svh, 68px); text-shadow: 0 0 .4em rgba(244, 236, 220, .9); }
  .pousse-film .pousse-chapo { max-width: 38em; }
  .pousse-film .pousse-defiler { margin-top: 12px; }
}

/* la pousse : toile 3D, compteur et jauge (classes posées par pousse3d.js) */
.pousse-js .pousse-toile { display: block; position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .3s; }
.pousse-js .pousse-affiche { transition: visibility 0s .3s; }
.pousse-js.pousse-3d .pousse-toile { opacity: 1; }
.pousse-js.pousse-3d .pousse-affiche { visibility: hidden; }
@media (prefers-reduced-motion: reduce) { .pousse-js .pousse-toile, .pousse-js .pousse-affiche { transition: none; } }
.pousse-defiler i::after { content: ""; position: absolute; inset: 0; background: var(--acc-encre); animation: pousse-goutte 1.8s cubic-bezier(.6, 0, .3, 1) infinite; }
@keyframes pousse-goutte { from { transform: translateY(-100%); } to { transform: translateY(100%); } }
.pousse-compteur [data-jour] { font: 300 clamp(48px, 13vw, 80px)/.9 "Fraunces", Georgia, serif; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.pousse-mesures b { color: var(--acc-encre); }
.pousse-jauge { display: block; width: 150px; height: 3px; background: rgba(36, 29, 18, .15); overflow: hidden; margin-top: 4px; }
.pousse-jauge i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #af275f, #f86322, #fdc357); }
@media (prefers-reduced-motion: reduce) { .pousse-defiler i::after { animation: none; } }

/* ===== Tons des sections (spec 2026-10-30 §2) : un fond par section, et une bande de fondu
   en haut qui part du ton de la section précédente — en CSS seul, donc juste sans JS. ===== */
#landing-screen [data-ton] { --ton: var(--acc-papier); position: relative; background: var(--ton); border-top-color: transparent; }
#landing-screen [data-ton="kraft"] { --ton: #eadcc0; }
#landing-screen [data-ton="girolle"] { --ton: #f8e2b0; }
#landing-screen [data-ton="encre"] { --ton: #241d12; }
#landing-screen [data-ton-avant]::before { content: ""; position: absolute; inset: 0 0 auto; height: clamp(48px, 9svh, 110px); pointer-events: none; background: linear-gradient(var(--avant), transparent); }
#landing-screen [data-ton-avant="papier"]::before { --avant: var(--acc-papier); }
#landing-screen [data-ton-avant="kraft"]::before { --avant: #eadcc0; }
#landing-screen [data-ton-avant="girolle"]::before { --avant: #f8e2b0; }
#landing-screen [data-ton-avant="encre"]::before { --avant: #241d12; }
#landing-screen [data-ton] > div { position: relative; } /* le contenu passe au-dessus de la bande (sans toucher aux enfants collants) */
