/* ==========================================================================
   Estampilia, feuille de style unique
   Vocabulaire des classes : contre etiquette de bocal et cahier de conserverie
   cartouche, sceau, ruban, filet, tuile, frappe, plateau, tranche, registre
   ========================================================================== */

:root {
  --sable: #F7F1E4;
  --kraft: #EFE4CE;
  --carton: #FFFCF4;
  --encre: #241A08;
  --encre-douce: #6B5A44;
  --cire: #D0B412;
  --cire-cuite: #C0A50E;
  --terre: #A6462B;
  --filet: #D8C9AE;

  --fond-local: #F7F1E4;

  --serif: "Playfair Display", "Iowan Old Style", Georgia, serif;
  --grotesque: "DM Sans", "Segoe UI", Helvetica, Arial, sans-serif;
  --frappe: "Courier Prime", "Courier New", Courier, monospace;

  --plateau: 1180px;
  --coin: 3px;
  --ecart-filet: 6px;

  --pas-1: 8px;
  --pas-2: 16px;
  --pas-3: 24px;
  --pas-4: 36px;
  --pas-5: 56px;
  --pas-6: 84px;
  --pas-7: 120px;

  --courbe: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--sable);
  color: var(--encre);
  font-family: var(--grotesque);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.68;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--encre); text-decoration-color: var(--cire); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--terre); }

:focus-visible {
  outline: 2px solid var(--terre);
  outline-offset: 3px;
  border-radius: 2px;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  letter-spacing: -0.01em;
  line-height: 1.12;
  margin: 0 0 var(--pas-2);
  text-wrap: balance;
}

h1 { font-size: 3.4rem; font-weight: 700; }
h2 { font-size: 2.25rem; font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 600; }
h4 { font-size: 1.0625rem; font-weight: 600; }

p { margin: 0 0 var(--pas-2); max-width: 68ch; }

ul, ol { margin: 0 0 var(--pas-2); padding-left: 1.15rem; }
li { margin-bottom: 6px; }

strong { font-weight: 600; }

/* Utilitaires de composition */

.plateau {
  width: min(100% - 40px, var(--plateau));
  margin-inline: auto;
}

.plateau-etroit {
  width: min(100% - 40px, 820px);
  margin-inline: auto;
}

.tranche {
  padding-block: var(--pas-7);
  position: relative;
}

.tranche--kraft {
  background-color: var(--kraft);
  --fond-local: var(--kraft);
}

.tranche--serree { padding-block: var(--pas-6); }

.evitement {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--encre);
  color: var(--sable);
  padding: 12px 20px;
  z-index: 999;
  font-family: var(--frappe);
  font-size: 0.8125rem;
}
.evitement:focus { left: 12px; top: 12px; }

/* Surtitres, mentions frappees */

.mention {
  font-family: var(--frappe);
  font-size: 0.8125rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--encre-douce);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 var(--pas-2);
}

.mention::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--terre);
  flex: 0 0 auto;
}

.mention--cire::before { background: var(--cire); }

.frappe {
  font-family: var(--frappe);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: var(--encre-douce);
}

.frappe-encre { color: var(--encre); }

.chapeau {
  font-size: 1.1875rem;
  font-weight: 500;
  color: var(--encre-douce);
  max-width: 62ch;
}

.tete-tranche { margin-bottom: var(--pas-5); max-width: 46rem; }

/* Cartouche a double filet, forme signature */

.cartouche {
  position: relative;
  background: var(--carton);
  border: 1px solid var(--filet);
  border-radius: var(--coin);
  padding: var(--pas-3);
}

.cartouche::before {
  content: "";
  position: absolute;
  inset: var(--ecart-filet);
  border: 1px solid var(--filet);
  border-radius: var(--coin);
  pointer-events: none;
}

.cartouche::after {
  content: "";
  position: absolute;
  top: -5px;
  right: 16px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cire);
  box-shadow: 0 0 0 4px var(--fond-local);
}

.cartouche--rappel { border-color: var(--terre); }
.cartouche--rappel::before { border-color: var(--terre); border-width: 2px; }
.cartouche--rappel::after { background: var(--terre); }

.cartouche--nu { background: transparent; }

.cartouche-corps { position: relative; z-index: 1; padding: 10px; }

/* Sceau de cire, motif signature */

.sceau {
  display: inline-block;
  line-height: 0;
  opacity: 0;
  transform: rotate(-28deg) scale(0.82);
  transition: transform 520ms var(--courbe), opacity 520ms var(--courbe);
}

.sceau.est-scelle {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.sceau svg { display: block; }

.sceau .ruban {
  opacity: 0;
  transition: opacity 380ms linear 140ms;
}

.sceau.est-scelle .ruban { opacity: 1; }

.sceau--coin {
  position: absolute;
  top: -22px;
  right: -18px;
  z-index: 3;
}

.filigrane-sceau {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'%3E%3Cg fill='none' stroke='%23241A08' stroke-width='2' opacity='0.5'%3E%3Ccircle cx='120' cy='104' r='48'/%3E%3Ccircle cx='120' cy='104' r='38'/%3E%3Cpath d='M104 88h32M104 104h32M104 120h20M120 66v14'/%3E%3Cpath d='M100 150l10 46 12 -18 12 18 10 -46'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 240px 240px;
  background-position: center top;
}

.rubans-separateur {
  width: 120px;
  margin: var(--pas-5) auto;
  height: 12px;
  position: relative;
}
.rubans-separateur::before,
.rubans-separateur::after {
  content: "";
  position: absolute;
  height: 3px;
  background: var(--terre);
  border-radius: 2px;
}
.rubans-separateur::before { top: 0; left: 0; width: 96px; }
.rubans-separateur::after { top: 8px; left: 24px; width: 96px; opacity: 0.65; }

/* Boutons */

.bouton-cire,
.bouton-filet {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--grotesque);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  padding: 14px 26px;
  border-radius: var(--coin);
  text-decoration: none;
  cursor: pointer;
  position: relative;
  transition: background-color 200ms linear, border-color 200ms linear, box-shadow 200ms linear;
}

.bouton-cire {
  background: var(--cire);
  color: var(--encre);
  border: 1px solid var(--cire);
  box-shadow: inset 0 0 0 1px rgba(36, 26, 8, 0.2);
}
.bouton-cire:hover {
  background: var(--cire-cuite);
  border-color: var(--cire-cuite);
  box-shadow: inset 0 0 0 1px var(--encre);
}

.bouton-cire .pastille-cire {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--encre);
  opacity: 0;
  transform: rotate(0deg) scale(0.5);
  transition: opacity 200ms linear, transform 200ms var(--courbe);
}
.bouton-cire:hover .pastille-cire { opacity: 1; transform: rotate(6deg) scale(1); }

.bouton-filet {
  background: transparent;
  color: var(--encre);
  border: 1px solid var(--filet);
  box-shadow: inset 0 0 0 5px var(--fond-local), inset 0 0 0 6px var(--filet);
}
.bouton-filet:hover {
  background: var(--carton);
  box-shadow: inset 0 0 0 5px var(--carton), inset 0 0 0 6px var(--cire);
}

.bouton-large { width: 100%; justify-content: center; }

/* En tete */

.bandeau-tete {
  position: fixed;
  inset: 0 0 auto 0;
  height: 72px;
  z-index: 60;
  background: rgba(247, 241, 228, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--filet);
  transition: height 220ms var(--courbe);
}

.bandeau-tete::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1px;
  background: var(--cire);
  transition: height 200ms linear, bottom 200ms linear;
}

.bandeau-tete.est-defile { height: 60px; }
.bandeau-tete.est-defile::after { height: 2px; bottom: -5px; }

.rangee-tete {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--pas-3);
}

.logotype {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--encre);
}

.logotype-mot {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  position: relative;
  padding-bottom: 4px;
}
.logotype-mot::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--encre);
}

.navigation-ancres {
  display: flex;
  align-items: center;
  gap: var(--pas-3);
}

.navigation-ancres a {
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--encre);
  position: relative;
  padding-bottom: 4px;
}

.navigation-ancres a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--cire);
  transition: width 220ms var(--courbe);
}
.navigation-ancres a:hover::after,
.navigation-ancres a:focus-visible::after { width: 100%; }

.bouton-filets {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 40px;
  padding: 0 9px;
  background: transparent;
  border: 1px solid var(--filet);
  border-radius: var(--coin);
  cursor: pointer;
}
.bouton-filets span {
  display: block;
  height: 2px;
  background: var(--encre);
}
.bouton-filets span:nth-child(1) { width: 100%; }
.bouton-filets span:nth-child(2) { width: 70%; }
.bouton-filets span:nth-child(3) { width: 86%; }

.panneau-mobile {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: var(--sable);
  --fond-local: var(--sable);
  padding: var(--pas-4) 20px;
  overflow-y: auto;
  display: none;
}
.panneau-mobile.est-ouvert { display: block; }

.panneau-mobile .filigrane-sceau {
  position: absolute;
  inset: 0;
  opacity: 0.08;
  pointer-events: none;
}

.rangee-panneau {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--pas-4);
  position: relative;
  z-index: 2;
}

.fermer-panneau {
  font-family: var(--frappe);
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid var(--filet);
  border-radius: var(--coin);
  padding: 10px 16px;
  cursor: pointer;
  color: var(--encre);
}

.liste-panneau {
  list-style: none;
  margin: 0 0 var(--pas-4);
  padding: 0;
  position: relative;
  z-index: 2;
}
.liste-panneau li { border-bottom: 1px solid var(--filet); }
.liste-panneau a {
  display: block;
  padding: 16px 4px;
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 600;
  text-decoration: none;
}

/* Hero, tableau de bord de tuiles */

.pupitre {
  padding-top: 148px;
  padding-bottom: var(--pas-6);
  position: relative;
}

.pupitre::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(216, 201, 174, 0.28) 0 1px, transparent 1px 92px),
    repeating-linear-gradient(0deg, rgba(216, 201, 174, 0.2) 0 1px, transparent 1px 92px);
  pointer-events: none;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 78%);
}

.grille-pupitre {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--pas-4);
  align-items: start;
  position: relative;
  z-index: 2;
}

.colonne-annonce { grid-column: span 5; min-width: 0; }
.colonne-mosaique { grid-column: span 7; min-width: 0; }

.colonne-annonce h1 { margin-bottom: var(--pas-3); }

.sous-promesse {
  font-size: 1.1875rem;
  font-weight: 500;
  color: var(--encre-douce);
  margin-bottom: var(--pas-3);
}

.paire-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: var(--pas-3);
}

.ligne-reassurance {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  padding-top: var(--pas-2);
  border-top: 1px solid var(--filet);
  max-width: none;
}

.ligne-reassurance span {
  font-family: var(--frappe);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: var(--encre-douce);
}
.ligne-reassurance b {
  font-family: var(--frappe);
  font-weight: 700;
  color: var(--encre);
}

.mosaique {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.tuile {
  position: relative;
  min-width: 0;
  background: var(--carton);
  border: 1px solid var(--filet);
  border-radius: var(--coin);
  padding: 14px 16px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 480ms var(--courbe), transform 480ms var(--courbe);
}
.tuile.est-posee { opacity: 1; transform: none; }

.tuile::before {
  content: "";
  position: absolute;
  inset: var(--ecart-filet);
  border: 1px solid var(--filet);
  border-radius: var(--coin);
  pointer-events: none;
}

.tuile-contenu { position: relative; z-index: 1; padding: 6px; }

.tuile-intitule {
  font-family: var(--frappe);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--encre-douce);
  margin-bottom: 10px;
  display: block;
}

.tuile--registre { grid-column: span 6; }
.tuile--genealogie { grid-column: span 3; grid-row: span 2; }
.tuile--lot { grid-column: span 3; }
.tuile--etiquette { grid-column: span 3; }
.tuile--destinations { grid-column: span 3; }
.tuile--fiche { grid-column: span 3; }

/* Contenu dessine des tuiles */

.ligne-registre {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px dotted var(--filet);
  font-size: 0.875rem;
}
.ligne-registre:last-child { border-bottom: 0; }
.ligne-registre .qte,
.ligne-registre .lot {
  font-family: var(--frappe);
  font-size: 0.75rem;
  color: var(--encre-douce);
}
.ligne-registre .lot { color: var(--encre); }

.puce-signature {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cire);
  margin-right: 7px;
  vertical-align: middle;
}

.arbre-lots {
  width: 100%;
  height: auto;
}

.numero-lot {
  font-family: var(--frappe);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  color: var(--encre);
  display: block;
  margin-bottom: 6px;
  word-break: break-all;
}

.regle-lot {
  font-family: var(--frappe);
  font-size: 0.6875rem;
  color: var(--encre-douce);
  line-height: 1.5;
}

.mini-etiquette {
  border: 1px solid var(--encre);
  border-radius: 2px;
  padding: 9px 10px;
  background: var(--sable);
}
.mini-etiquette .titre-produit {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 0.9375rem;
  margin-bottom: 3px;
}
.mini-etiquette .ingredients {
  font-size: 0.6875rem;
  line-height: 1.45;
  color: var(--encre);
  margin: 0 0 5px;
}
.mini-etiquette .ingredients b { font-weight: 700; text-decoration: underline; }
.mini-etiquette .bas-etiquette {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--frappe);
  font-size: 0.625rem;
  border-top: 1px solid var(--encre);
  padding-top: 4px;
  color: var(--encre);
  margin: 0;
}

.barre-destination {
  display: grid;
  grid-template-columns: 1fr 46px;
  gap: 8px;
  align-items: center;
  font-size: 0.75rem;
  margin-bottom: 7px;
}
.barre-destination .jauge {
  height: 6px;
  background: var(--kraft);
  border-radius: 3px;
  overflow: hidden;
  grid-column: 1 / -1;
}
.barre-destination .jauge i {
  display: block;
  height: 100%;
  background: var(--terre);
}
.barre-destination .valeur {
  font-family: var(--frappe);
  font-size: 0.6875rem;
  text-align: right;
  color: var(--encre-douce);
}

.lignes-fiche { display: grid; gap: 6px; }
.lignes-fiche div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.75rem;
  border-bottom: 1px dotted var(--filet);
  padding-bottom: 4px;
}
.lignes-fiche span:last-child { font-family: var(--frappe); font-size: 0.6875rem; color: var(--encre-douce); }

/* Photographies en cartouche */

.planche-photo {
  position: relative;
  border: 1px solid var(--encre);
  border-radius: var(--coin);
  overflow: hidden;
  background: var(--kraft);
  margin: 0;
}

.planche-photo img {
  width: 100%;
  filter: saturate(0.88) contrast(0.98);
}

.planche-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--sable);
  opacity: 0.12;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.legende-photo {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 44px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 14px;
  background: rgba(247, 241, 228, 0.92);
  font-family: var(--frappe);
  font-size: 0.75rem;
  color: var(--encre);
  z-index: 2;
  border-top: 1px solid var(--encre);
  overflow: hidden;
}
.legende-photo span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 0 1 auto;
}

.planche-photo--tete { margin-top: var(--pas-4); overflow: visible; }
.planche-photo--tete img { border-radius: var(--coin); }

/* Probleme */

.pile-probleme {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--pas-3);
  align-items: start;
}

.pile-probleme .cartouche:nth-child(1) { grid-column: 1 / span 7; }
.pile-probleme .cartouche:nth-child(2) { grid-column: 4 / span 7; }
.pile-probleme .cartouche:nth-child(3) { grid-column: 2 / span 7; }

.pile-probleme .cartouche h3 { margin-bottom: 10px; }

.note-cout {
  display: inline-block;
  margin-top: 8px;
  font-family: var(--frappe);
  font-size: 0.8125rem;
  color: var(--terre);
  border-top: 1px solid var(--terre);
  padding-top: 6px;
}

.encart-lateral {
  grid-column: 9 / span 4;
  grid-row: 1 / span 2;
  align-self: stretch;
  background: var(--carton);
  border: 1px solid var(--terre);
  border-radius: var(--coin);
  padding: var(--pas-3);
  position: relative;
}
.encart-lateral::before {
  content: "";
  position: absolute;
  inset: var(--ecart-filet);
  border: 1px solid var(--terre);
  border-radius: var(--coin);
}
.encart-lateral > * { position: relative; z-index: 1; }
.encart-lateral ul { list-style: none; padding: 0; margin: 0 0 var(--pas-2); }
.encart-lateral li {
  padding: 9px 0;
  border-bottom: 1px dotted var(--filet);
  font-size: 0.9375rem;
}
.encart-lateral li:last-child { border-bottom: 0; }

/* Solution, quatre etapes */

.rang-etapes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--pas-3);
  list-style: none;
  padding: 0;
  margin: 0;
}

.etape { position: relative; padding-top: 52px; }

.etape .sceau { position: absolute; top: 0; left: 0; }

.etape .rang-numero {
  font-family: var(--frappe);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.16em;
  color: var(--terre);
  display: block;
  margin-bottom: 6px;
}

.etape h3 { margin-bottom: 8px; }
.etape p { font-size: 0.9375rem; color: var(--encre-douce); margin: 0; }

/* Fonctionnalites */

.grille-fonctions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--pas-3);
}

.grille-fonctions h3 { display: flex; align-items: baseline; gap: 10px; }

.repere-fonction {
  font-family: var(--frappe);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  color: var(--terre);
  flex: 0 0 auto;
}

.grille-fonctions p { font-size: 0.9375rem; color: var(--encre-douce); margin-bottom: 0; }

/* Avantages */

.bande-avantages {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--pas-3);
}

.bloc-chiffre {
  padding: var(--pas-3) 0;
  border-top: 2px solid var(--encre);
}

.chiffre-frappe {
  font-family: var(--frappe);
  font-weight: 700;
  font-size: 2.75rem;
  line-height: 1;
  display: block;
  margin-bottom: 10px;
  color: var(--encre);
}

.bloc-chiffre h3 { font-size: 1.0625rem; margin-bottom: 6px; }
.bloc-chiffre p { font-size: 0.9375rem; color: var(--encre-douce); margin: 0; }

.rappel-avantage {
  margin-top: var(--pas-5);
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--pas-4);
  align-items: center;
}

/* Preuve sociale */

.tranche--preuve { position: relative; overflow: hidden; }

.tranche--preuve .filigrane-sceau {
  position: absolute;
  inset: 0;
  opacity: 0.08;
  pointer-events: none;
}

.tranche--preuve > .plateau { position: relative; z-index: 1; }

.rang-temoins {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--pas-3);
  align-items: start;
}

.temoin { margin: 0; }

.temoin blockquote {
  margin: 0 0 var(--pas-2);
  font-size: 1rem;
  line-height: 1.62;
}
.temoin blockquote p { margin-bottom: 12px; }
.temoin blockquote p:last-child { margin-bottom: 0; }

.temoin figcaption {
  border-top: 1px solid var(--filet);
  padding-top: 12px;
  font-size: 0.875rem;
}
.temoin .nom-temoin { font-weight: 600; display: block; }
.temoin .fonction-temoin {
  font-family: var(--frappe);
  font-size: 0.75rem;
  color: var(--encre-douce);
  display: block;
  line-height: 1.5;
}

.bandeau-chiffres {
  margin-top: var(--pas-5);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--filet);
  border: 1px solid var(--filet);
  border-radius: var(--coin);
  overflow: hidden;
}

.case-chiffre {
  background: var(--carton);
  padding: var(--pas-3) var(--pas-2);
  text-align: center;
}
.case-chiffre b {
  font-family: var(--frappe);
  font-weight: 700;
  font-size: 1.75rem;
  display: block;
  line-height: 1.1;
  margin-bottom: 6px;
}
.case-chiffre span { font-size: 0.875rem; color: var(--encre-douce); }

/* Tarifs */

.rang-tarifs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--pas-3);
  align-items: start;
  padding-block: 20px;
}

.tarif { position: relative; }

.tarif--phare {
  margin-block: -20px;
  border-color: var(--encre);
  background: var(--carton);
}
.tarif--phare::before { border-color: var(--cire); }
.tarif--phare:hover .sceau { transform: rotate(6deg) scale(1); }

.bandeau-phare {
  position: absolute;
  top: -13px;
  left: 20px;
  background: var(--terre);
  color: #FFFCF4;
  font-family: var(--frappe);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 2px;
  z-index: 3;
}

.nom-formule { margin-bottom: 6px; }

.cible-formule {
  font-size: 0.875rem;
  color: var(--encre-douce);
  min-height: 5.6em;
  margin-bottom: var(--pas-2);
}

.prix-formule {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding-block: var(--pas-2);
  border-top: 1px solid var(--filet);
  border-bottom: 1px solid var(--filet);
  margin-bottom: var(--pas-2);
}
.prix-formule b {
  font-family: var(--frappe);
  font-weight: 700;
  font-size: 2.75rem;
  line-height: 1;
}
.prix-formule span {
  font-family: var(--frappe);
  font-size: 0.75rem;
  color: var(--encre-douce);
  line-height: 1.35;
}

.liste-inclus {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--pas-3);
}
.liste-inclus li {
  position: relative;
  padding-left: 20px;
  font-size: 0.9375rem;
  margin-bottom: 10px;
  line-height: 1.55;
}
.liste-inclus li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cire);
}

.note-tarifs {
  margin: var(--pas-4) auto 0;
  font-family: var(--frappe);
  font-size: 0.8125rem;
  color: var(--encre-douce);
  text-align: center;
  max-width: 72ch;
}

/* FAQ */

.colonne-faq { display: grid; gap: 14px; }

.question {
  background: var(--carton);
  border: 1px solid var(--filet);
  border-radius: var(--coin);
  padding: 0;
  position: relative;
}
.question::before {
  content: "";
  position: absolute;
  inset: var(--ecart-filet);
  border: 1px solid var(--filet);
  border-radius: var(--coin);
  pointer-events: none;
}

.question > summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 54px 18px 22px;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  position: relative;
  z-index: 1;
}
.question > summary::marker { content: ""; }
.question > summary::-webkit-details-marker { display: none; }

.question > summary::after {
  content: "";
  position: absolute;
  right: 24px;
  top: 26px;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--terre);
  border-bottom: 2px solid var(--terre);
  transform: rotate(45deg);
  transition: transform 220ms var(--courbe);
}
.question[open] > summary::after { transform: rotate(-135deg); }

.reponse {
  padding: 0 22px 20px;
  position: relative;
  z-index: 1;
}
.reponse p { font-size: 0.9375rem; color: var(--encre-douce); margin-bottom: 12px; }
.reponse p:last-child { margin-bottom: 0; }

/* Contact */

.grille-contact {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: var(--pas-4);
  align-items: start;
}

.registre-champs { display: grid; gap: var(--pas-2); }

.duo-champs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--pas-2);
}

.champ { display: grid; gap: 6px; margin: 0; max-width: none; }

.champ label {
  font-family: var(--frappe);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--encre-douce);
}

.champ input[type="text"],
.champ input[type="email"],
.champ select,
.champ textarea {
  font-family: var(--grotesque);
  font-size: 1rem;
  color: var(--encre);
  background: var(--carton);
  border: 1px solid var(--filet);
  border-radius: var(--coin);
  padding: 12px 14px;
  width: 100%;
  box-shadow: inset 0 0 0 4px var(--carton), inset 0 0 0 5px var(--filet);
}

.champ textarea { resize: vertical; min-height: 132px; }

.champ input:focus,
.champ select:focus,
.champ textarea:focus {
  outline: 2px solid var(--terre);
  outline-offset: 2px;
  border-color: var(--encre);
}

.champ-accord {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.875rem;
  color: var(--encre-douce);
  max-width: none;
}
.champ-accord input { margin-top: 4px; accent-color: var(--terre); flex: 0 0 auto; }

.apres-formulaire {
  margin-top: var(--pas-2);
  font-family: var(--frappe);
  font-size: 0.8125rem;
  color: var(--encre-douce);
}

.colonne-reassurance .cartouche { margin-bottom: var(--pas-3); }
.colonne-reassurance ul { list-style: none; padding: 0; margin: 0; }
.colonne-reassurance li {
  padding: 10px 0;
  border-bottom: 1px dotted var(--filet);
  font-size: 0.9375rem;
}
.colonne-reassurance li:last-child { border-bottom: 0; }

/* Pied de page */

.pied {
  background: var(--encre);
  color: #EDE3CF;
  --fond-local: #241A08;
  padding-block: var(--pas-6) var(--pas-3);
  margin-top: var(--pas-6);
}

.pied a { color: #EDE3CF; text-decoration-color: rgba(208, 180, 18, 0.7); }
.pied a:hover { color: #F7F1E4; text-decoration-color: var(--cire); }

.colonnes-pied {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1.4fr;
  gap: var(--pas-4);
}

.colonnes-pied h4 {
  font-family: var(--frappe);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 400;
  color: var(--cire);
  margin-bottom: var(--pas-2);
}

.colonnes-pied ul { list-style: none; padding: 0; margin: 0; }
.colonnes-pied li { margin-bottom: 9px; font-size: 0.9375rem; }

.phrase-pied {
  font-size: 0.9375rem;
  color: #C9BBA1;
  max-width: 34ch;
  margin-bottom: var(--pas-2);
}

.logotype-pied { color: #F7F1E4; margin-bottom: var(--pas-2); }
.logotype-pied .logotype-mot::after { background: var(--cire); }

.reseaux-pied {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-family: var(--frappe);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.coordonnees-pied {
  font-family: var(--frappe);
  font-size: 0.75rem;
  line-height: 1.7;
  color: #C9BBA1;
  margin-top: var(--pas-2);
}

.barre-pied {
  margin-top: var(--pas-5);
  padding-top: var(--pas-3);
  border-top: 1px solid rgba(216, 201, 174, 0.28);
  display: flex;
  flex-wrap: wrap;
  gap: 10px var(--pas-3);
  justify-content: space-between;
  font-family: var(--frappe);
  font-size: 0.75rem;
  color: #C9BBA1;
  max-width: none;
}

/* Pages internes */

.tete-page {
  padding-top: 148px;
  padding-bottom: var(--pas-5);
  border-bottom: 1px solid var(--filet);
}

.fil-ariane {
  font-family: var(--frappe);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--encre-douce);
  margin-bottom: var(--pas-2);
}
.fil-ariane a { text-decoration: none; }
.fil-ariane a:hover { text-decoration: underline; }

.corps-redactionnel { padding-block: var(--pas-5) var(--pas-6); }
.corps-redactionnel h2 { margin-top: var(--pas-5); }
.corps-redactionnel h2:first-child { margin-top: 0; }
.corps-redactionnel h3 { margin-top: var(--pas-3); }
.corps-redactionnel li { max-width: 68ch; }

.tableau-legal {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--pas-3);
  font-size: 0.9375rem;
}
.tableau-legal caption {
  text-align: left;
  padding-bottom: 8px;
}
.tableau-legal th,
.tableau-legal td {
  border: 1px solid var(--filet);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
.tableau-legal th {
  background: var(--kraft);
  font-family: var(--frappe);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 400;
}

.portrait-auteur {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: var(--pas-4);
  align-items: start;
  margin-bottom: var(--pas-5);
}

.portrait-auteur .planche-photo img { filter: saturate(0.9); }

.liste-profils {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.liste-profils a {
  display: inline-block;
  font-family: var(--frappe);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--filet);
  border-radius: var(--coin);
  padding: 9px 14px;
}
.liste-profils a:hover { border-color: var(--cire); background: var(--carton); }

.plan-groupe { margin-bottom: var(--pas-4); }
.plan-groupe ul { list-style: none; padding: 0; }
.plan-groupe li {
  border-bottom: 1px dotted var(--filet);
  padding: 12px 0;
  max-width: 72ch;
}
.plan-groupe a { font-weight: 600; }
.plan-groupe .frappe { display: block; }

.page-etroite {
  min-height: 62vh;
  display: flex;
  align-items: center;
  padding-top: 148px;
  padding-bottom: var(--pas-6);
}

.bloc-central { text-align: center; margin-inline: auto; }
.bloc-central p { margin-inline: auto; }
.bloc-central .paire-actions { justify-content: center; }
.bloc-central .mention { justify-content: center; }

/* Apparitions au defilement */

.a-poser {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 480ms var(--courbe), transform 480ms var(--courbe);
}
.a-poser.est-posee { opacity: 1; transform: none; }

/* Adaptations ecran */

@media (max-width: 1080px) {
  .grille-pupitre { grid-template-columns: 1fr; }
  .colonne-annonce,
  .colonne-mosaique { grid-column: auto; }
  .mosaique { grid-template-columns: repeat(4, 1fr); }
  .tuile--registre { grid-column: span 4; }
  .tuile--genealogie { grid-column: span 2; grid-row: span 1; }
  .tuile--lot,
  .tuile--etiquette,
  .tuile--destinations,
  .tuile--fiche { grid-column: span 2; }
  .rang-etapes { grid-template-columns: repeat(2, 1fr); }
  .grille-fonctions { grid-template-columns: repeat(2, 1fr); }
  .bande-avantages { grid-template-columns: repeat(2, 1fr); }
  .colonnes-pied { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .navigation-ancres,
  .rangee-tete > .bouton-cire { display: none; }
  .bouton-filets { display: flex; }
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.75rem; }
  .pile-probleme { grid-template-columns: 1fr; }
  .pile-probleme .cartouche:nth-child(1),
  .pile-probleme .cartouche:nth-child(2),
  .pile-probleme .cartouche:nth-child(3),
  .encart-lateral { grid-column: auto; grid-row: auto; }
  .rang-temoins { grid-template-columns: 1fr; }
  .rang-tarifs { grid-template-columns: 1fr; }
  .tarif--phare { margin-block: 0; }
  .cible-formule { min-height: 0; }
  .grille-contact { grid-template-columns: 1fr; }
  .rappel-avantage { grid-template-columns: 1fr; }
  .bandeau-chiffres { grid-template-columns: repeat(2, 1fr); }
  .portrait-auteur { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .pupitre { padding-top: 118px; }
  .tete-page,
  .page-etroite { padding-top: 118px; }
  .mosaique { grid-template-columns: 1fr; }
  .tuile--registre,
  .tuile--genealogie,
  .tuile--lot,
  .tuile--etiquette,
  .tuile--destinations,
  .tuile--fiche { grid-column: span 1; }
  .rang-etapes { grid-template-columns: 1fr; }
  .grille-fonctions { grid-template-columns: 1fr; }
  .bande-avantages { grid-template-columns: 1fr; }
  .duo-champs { grid-template-columns: 1fr; }
  .colonnes-pied { grid-template-columns: 1fr; }
  .tranche { padding-block: var(--pas-6); }
  .paire-actions .bouton-cire,
  .paire-actions .bouton-filet { width: 100%; justify-content: center; }
  .legende-photo { font-size: 0.6875rem; gap: 8px; }
  .sceau--coin { right: 0; top: -18px; }
  .bandeau-phare { left: 12px; }
}

@media print {
  .bandeau-tete, .panneau-mobile, .paire-actions { display: none; }
  body { background: #FFFFFF; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sceau,
  .tuile,
  .a-poser {
    transform: none;
    transition: opacity 160ms linear;
  }
  .sceau.est-scelle,
  .tuile.est-posee,
  .a-poser.est-posee { transform: none; }
  .bouton-cire .pastille-cire { transition: opacity 160ms linear; transform: none; }
  .bouton-cire:hover .pastille-cire { transform: none; }
  .tarif--phare:hover .sceau { transform: none; }
}

/* ==========================================================================
   Le Cahier de Fabrication, section magazine
   Ajoutee a la fin de la feuille : aucune regle precedente n est modifiee.
   Memes variables, meme cartouche a double filet, meme sceau de cire,
   memes rubans en separateur et meme signature d animation que le reste du site.
   Vocabulaire : feuillet (carte d article), planche (image), corps-article,
   exergue, reperes, chute, encart auteur, bloc A lire aussi.
   ========================================================================== */

/* Entete de la page d index du magazine */

.tete-cahier {
  padding-top: 148px;
  padding-bottom: var(--pas-5);
  position: relative;
}

.tete-cahier::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(216, 201, 174, 0.24) 0 1px, transparent 1px 92px),
    repeating-linear-gradient(0deg, rgba(216, 201, 174, 0.18) 0 1px, transparent 1px 92px);
  pointer-events: none;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85), transparent 86%);
}

.tete-cahier > .plateau { position: relative; z-index: 2; }

.rangee-cahier {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: var(--pas-4);
  align-items: end;
}

.bandeau-cahier {
  border-top: 1px solid var(--filet);
  padding-top: var(--pas-2);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  font-family: var(--frappe);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: var(--encre-douce);
  margin: 0;
  max-width: none;
}
.bandeau-cahier b { font-family: var(--frappe); font-weight: 700; color: var(--encre); }

/* Grille du sommaire et cartes d article */

.grille-feuillets {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--pas-3);
  align-items: stretch;
}

.feuillet {
  position: relative;
  grid-column: span 3;
  min-width: 0;
  background: var(--carton);
  border: 1px solid var(--filet);
  border-radius: var(--coin);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 220ms linear, transform 220ms var(--courbe);
}

.feuillet::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid var(--filet);
  border-radius: var(--coin);
  pointer-events: none;
  z-index: 3;
  transition: border-color 220ms linear;
}

.feuillet::after {
  content: "";
  position: absolute;
  top: -5px;
  right: 18px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cire);
  box-shadow: 0 0 0 4px var(--fond-local);
  z-index: 4;
  transition: background-color 220ms linear;
}

.feuillet:hover { border-color: var(--encre); }
.feuillet:hover::before { border-color: var(--cire); }
.feuillet:hover::after { background: var(--terre); }
.feuillet:focus-within { border-color: var(--encre); }

.feuillet--tiers { grid-column: span 4; }

.feuillet-planche {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--encre);
  border-radius: 2px;
  background: var(--kraft);
  line-height: 0;
}
.feuillet-planche img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  filter: saturate(0.88) contrast(0.98);
}
.feuillet-planche::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--sable);
  opacity: 0.12;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.feuillet-corps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 1 auto;
  position: relative;
  z-index: 2;
}

.feuillet-angle {
  font-family: var(--frappe);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--encre-douce);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  max-width: none;
}
.feuillet-angle::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--terre);
  flex: 0 0 auto;
}

.feuillet-titre {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}
.feuillet-titre a {
  text-decoration: none;
  color: var(--encre);
  background-image: linear-gradient(var(--cire), var(--cire));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 2px;
  transition: background-size 260ms var(--courbe);
}
.feuillet-titre a:hover,
.feuillet-titre a:focus-visible { background-size: 100% 2px; }

.feuillet-extrait {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--encre-douce);
  margin: 0;
  flex: 1 1 auto;
}

.feuillet-pied {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 14px;
  margin: 0;
  padding-top: 10px;
  border-top: 1px dotted var(--filet);
  font-family: var(--frappe);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--encre-douce);
  max-width: none;
}

/* Le premier feuillet du sommaire, pose en pleine largeur */

.feuillet--tete {
  grid-column: span 12;
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--pas-4);
  align-items: center;
  padding: 18px;
}
.feuillet--tete::before { inset: 9px; }
.feuillet--tete .feuillet-corps { gap: 14px; padding-right: 10px; }
.feuillet--tete .feuillet-titre { font-size: 1.9rem; font-weight: 700; }
.feuillet--tete .feuillet-extrait { font-size: 1.0625rem; }

/* Entete d un article */

.tete-article {
  padding-top: 148px;
  padding-bottom: var(--pas-4);
}

.colonne-article {
  width: min(100% - 40px, 680px);
  margin-inline: auto;
}

.surtitre-article {
  font-family: var(--frappe);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--terre);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 var(--pas-2);
}
.surtitre-article::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--terre);
  flex: 0 0 auto;
}

.tete-article h1 { margin-bottom: var(--pas-3); }

.exergue {
  position: relative;
  font-size: 1.1875rem;
  font-weight: 500;
  line-height: 1.6;
  color: var(--encre-douce);
  padding: 4px 0 4px 26px;
  margin-bottom: var(--pas-3);
  max-width: 62ch;
}
.exergue::before,
.exergue::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
}
.exergue::before { left: 0; background: var(--encre); }
.exergue::after { left: 5px; background: var(--cire); }

.reperes-article {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  padding-top: var(--pas-2);
  border-top: 1px solid var(--filet);
  font-family: var(--frappe);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--encre-douce);
  margin: 0;
  max-width: none;
}
.reperes-article span { display: inline-flex; align-items: center; gap: 8px; }
.reperes-article .repere-cire { color: var(--encre); }
.reperes-article .repere-cire::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cire);
  flex: 0 0 auto;
}

.planche-photo--une { margin-top: var(--pas-4); overflow: visible; }
.planche-photo--une img { border-radius: var(--coin); }

/* Corps redactionnel : balises nues, aucune classe */

.corps-article {
  max-width: 68ch;
  padding-block: var(--pas-5) var(--pas-4);
  font-size: 1.0625rem;
  line-height: 1.68;
}

.corps-article h2 {
  position: relative;
  font-size: 2.25rem;
  font-weight: 700;
  margin: var(--pas-6) 0 var(--pas-2);
  padding-top: var(--pas-3);
}
.corps-article > h2:first-child { margin-top: 0; }
.corps-article h2::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--filet);
}
.corps-article h2::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 0;
  width: 72px;
  height: 1px;
  background: var(--cire);
}

.corps-article h3 {
  position: relative;
  font-size: 1.3rem;
  font-weight: 600;
  margin: var(--pas-4) 0 var(--pas-1);
  padding-left: 18px;
}
.corps-article h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 7px;
  height: 7px;
  background: var(--terre);
}

.corps-article p { margin: 0 0 var(--pas-2); max-width: none; }

.corps-article strong { font-weight: 600; color: var(--encre); }
.corps-article em { font-style: italic; }

.corps-article a {
  color: var(--encre);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--cire);
  text-underline-offset: 3px;
  transition: background-color 180ms linear, text-decoration-color 180ms linear;
}
.corps-article a:hover {
  text-decoration-color: var(--terre);
  background-color: rgba(208, 180, 18, 0.16);
}

.corps-article ul,
.corps-article ol {
  list-style: none;
  padding-left: 0;
  margin: 0 0 var(--pas-3);
}

.corps-article ul li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  max-width: none;
}
.corps-article ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cire);
}

.corps-article ol { counter-reset: feuillet-liste; }
.corps-article ol li {
  position: relative;
  padding-left: 36px;
  margin-bottom: 10px;
  counter-increment: feuillet-liste;
  max-width: none;
}
.corps-article ol li::before {
  content: counter(feuillet-liste, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.12em;
  font-family: var(--frappe);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--terre);
}

.corps-article table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--pas-4) 0;
  font-size: 0.9375rem;
  background: var(--carton);
  border: 1px solid var(--filet);
  border-radius: var(--coin);
}
.corps-article th,
.corps-article td {
  border: 1px solid var(--filet);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  line-height: 1.5;
}
.corps-article thead th {
  background: var(--kraft);
  font-family: var(--frappe);
  font-size: 0.75rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--encre);
}
.corps-article tbody th { font-weight: 600; }
.corps-article tbody tr:nth-child(even) td { background: rgba(239, 228, 206, 0.42); }

.corps-article blockquote {
  position: relative;
  margin: var(--pas-4) 0;
  padding: 6px 0 6px 26px;
  font-family: var(--grotesque);
  font-size: 1.1875rem;
  font-weight: 500;
  line-height: 1.55;
  color: var(--encre);
}
.corps-article blockquote::before,
.corps-article blockquote::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
}
.corps-article blockquote::before { left: 0; background: var(--terre); }
.corps-article blockquote::after { left: 5px; background: var(--terre); opacity: 0.45; }
.corps-article blockquote p:last-child { margin-bottom: 0; }

.corps-article aside {
  position: relative;
  background: var(--carton);
  border: 1px solid var(--filet);
  border-radius: var(--coin);
  padding: var(--pas-3);
  margin: var(--pas-4) 0;
}
.corps-article aside::before {
  content: "";
  position: absolute;
  inset: var(--ecart-filet);
  border: 1px solid var(--filet);
  border-radius: var(--coin);
  pointer-events: none;
}
.corps-article aside::after {
  content: "";
  position: absolute;
  top: -5px;
  right: 18px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cire);
  box-shadow: 0 0 0 4px var(--fond-local);
}
.corps-article aside > * { position: relative; z-index: 1; }
.corps-article aside > *:last-child { margin-bottom: 0; }
.corps-article aside h3 { margin-top: 0; }
.corps-article aside p { font-size: 0.9375rem; }

.corps-article figure {
  margin: var(--pas-4) 0;
  border: 1px solid var(--filet);
  border-radius: var(--coin);
  padding: 10px;
  background: var(--carton);
}
.corps-article figcaption {
  font-family: var(--frappe);
  font-size: 0.75rem;
  line-height: 1.55;
  color: var(--encre-douce);
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--filet);
}

/* Chute d article et appel a l action */

.chute-article {
  position: relative;
  margin-top: var(--pas-5);
  background: var(--kraft);
  --fond-local: var(--kraft);
  border: 1px solid var(--filet);
  border-radius: var(--coin);
  padding: var(--pas-4) var(--pas-3);
}
.chute-article::before {
  content: "";
  position: absolute;
  inset: var(--ecart-filet);
  border: 1px solid var(--cire);
  border-radius: var(--coin);
  pointer-events: none;
}
.chute-article > * { position: relative; z-index: 1; }

.chute-titre {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.01em;
  margin: 0 0 var(--pas-2);
  max-width: none;
}

.chute-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: var(--pas-3);
}

/* Encart auteur */

.encart-auteur {
  position: relative;
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: var(--pas-3);
  align-items: start;
  background: var(--carton);
  border: 1px solid var(--filet);
  border-radius: var(--coin);
  padding: var(--pas-3);
  margin-top: var(--pas-5);
}
.encart-auteur::before {
  content: "";
  position: absolute;
  inset: var(--ecart-filet);
  border: 1px solid var(--filet);
  border-radius: var(--coin);
  pointer-events: none;
}
.encart-auteur::after {
  content: "";
  position: absolute;
  top: -5px;
  right: 18px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cire);
  box-shadow: 0 0 0 4px var(--fond-local);
}
.encart-auteur > * { position: relative; z-index: 1; }

.portrait-signature {
  border: 1px solid var(--encre);
  border-radius: 2px;
  overflow: hidden;
  line-height: 0;
  background: var(--kraft);
}
.portrait-signature img { width: 100%; filter: saturate(0.9); }

.signature-mention {
  display: block;
  font-family: var(--frappe);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--encre-douce);
  margin-bottom: 6px;
}
.signature-nom {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}
.encart-auteur p { font-size: 0.9375rem; margin-bottom: 10px; }
.encart-auteur p:last-child { margin-bottom: 0; }

/* Bloc A lire aussi */

.bloc-lire-aussi {
  background: var(--kraft);
  --fond-local: var(--kraft);
  padding-block: var(--pas-6);
  margin-top: var(--pas-6);
  position: relative;
  overflow: hidden;
}
.bloc-lire-aussi .filigrane-sceau {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  pointer-events: none;
}
.bloc-lire-aussi > .plateau { position: relative; z-index: 1; }

.tete-lire-aussi { margin-bottom: var(--pas-4); max-width: 46rem; }
.titre-lire-aussi {
  font-family: var(--serif);
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 var(--pas-2);
  max-width: none;
}

/* Section du magazine sur la page d accueil */

.tete-cahier-accueil {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--pas-3);
  margin-bottom: var(--pas-5);
}
.tete-cahier-accueil .tete-tranche { margin-bottom: 0; }

.pied-cahier-accueil {
  margin-top: var(--pas-4);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
}
.pied-cahier-accueil .frappe { margin: 0; max-width: 52ch; }

/* Liste des parutions sur la page auteur */

.liste-parutions { list-style: none; padding: 0; margin: 0; }
.liste-parutions li {
  display: grid;
  grid-template-columns: 12rem 1fr;
  gap: 6px var(--pas-3);
  align-items: baseline;
  border-bottom: 1px dotted var(--filet);
  padding: 14px 0;
  max-width: 76ch;
}
.liste-parutions li:last-child { border-bottom: 0; }
.liste-parutions .parution-repere {
  font-family: var(--frappe);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--encre-douce);
}
.liste-parutions a { font-weight: 600; }
.liste-parutions .frappe { display: block; margin-top: 5px; line-height: 1.6; }

/* Adaptations ecran du magazine */

@media (max-width: 1080px) {
  .rangee-cahier { grid-template-columns: 1fr; align-items: start; }
  .feuillet { grid-column: span 6; }
  .feuillet--tiers { grid-column: span 6; }
  .feuillet--tete { grid-column: span 12; grid-template-columns: 1fr; }
  .feuillet--tete .feuillet-titre { font-size: 1.6rem; }
}

@media (max-width: 900px) {
  .corps-article h2 { font-size: 1.75rem; }
  .titre-lire-aussi { font-size: 1.75rem; }
  .liste-parutions li { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .tete-cahier,
  .tete-article { padding-top: 118px; }
  .feuillet,
  .feuillet--tiers,
  .feuillet--tete { grid-column: span 12; }
  .encart-auteur { grid-template-columns: 1fr; }
  .portrait-signature { width: 96px; }
  .chute-actions .bouton-cire,
  .chute-actions .bouton-filet { width: 100%; justify-content: center; }
  .corps-article table { font-size: 0.875rem; }
  .corps-article th,
  .corps-article td { padding: 8px 9px; }
}

@media (prefers-reduced-motion: reduce) {
  .feuillet { transition: border-color 160ms linear; transform: none; }
  .feuillet-titre a { transition: none; }
}
