/* ==========================================================================
   Herelia, preparation patrimoniale et transmission familiale
   Feuille unique. Vocabulaire de classes emprunte a l etude notariale:
   minute, pli, chemise, rabat, paraphe, seuil, rosace, noyau, satellite,
   liasse, parole, bareme, legs, clause, registre, greffe, sceau, veinage.
   Mode clair integral, aucun theme sombre.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Jetons de l etude
   -------------------------------------------------------------------------- */

:root {
  --papier: #FFFFFF;
  --ivoire: #F4F7EE;
  --surface: #FBFDF6;
  --encre: #182110;
  --encre-douce: #4C5A41;
  --vert: #2B6B17;
  --vert-sombre: #204F11;
  --vert-clair: #E4EFDC;
  --fuchsia: #C4157E;
  --fuchsia-sombre: #A5106A;
  --filet: #DBE2CE;
  --blanc-sur-accent: #FFFFFF;

  --titre: "Baloo 2", "Trebuchet MS", Verdana, sans-serif;
  --courant: "Noto Sans", "Segoe UI", Arial, sans-serif;
  --frappe: "Special Elite", "Courier New", Courier, monospace;

  --biseau: 22px;
  --pli-large: 1180px;
  --pli-etroit: 720px;
  --hauteur-entete: 74px;

  --ombre-chemise: 0 1px 0 rgba(24, 33, 16, .04), 0 14px 34px -22px rgba(24, 33, 16, .38);
  --ombre-relief: 0 22px 54px -30px rgba(24, 33, 16, .45);

  --transition: 160ms cubic-bezier(.2, .7, .3, 1);
}

/* Grain de pierre entre les veines, deux passes croisees a 74 et 108 degres. */
.grain-marbre {
  background-image:
    repeating-linear-gradient(74deg,
      rgba(43, 107, 23, .055) 0, rgba(43, 107, 23, .055) .5px,
      rgba(43, 107, 23, 0) .5px, rgba(43, 107, 23, 0) 9px),
    repeating-linear-gradient(108deg,
      rgba(43, 107, 23, .04) 0, rgba(43, 107, 23, .04) .5px,
      rgba(43, 107, 23, 0) .5px, rgba(43, 107, 23, 0) 13px);
}

/* --------------------------------------------------------------------------
   2. Socle
   -------------------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--hauteur-entete) + 18px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font-family: var(--courant);
  font-size: 1.06rem;
  line-height: 1.72;
  font-variant-numeric: lining-nums tabular-nums;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: var(--titre);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--encre);
  margin: 0 0 .6em;
  text-wrap: balance;
}

h1 { font-size: clamp(2rem, 1.2rem + 3vw, 3.1rem); font-weight: 700; }
h2 { font-size: clamp(1.55rem, 1.1rem + 1.8vw, 2.15rem); font-weight: 600; }
h3 { font-size: 1.4rem; font-weight: 600; }
h4 { font-size: 1.12rem; font-weight: 600; }

p { margin: 0 0 1.1em; max-width: 68ch; }
strong { font-weight: 600; }

a { color: var(--vert); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--vert-sombre); }

ul, ol { margin: 0 0 1.1em; padding-left: 1.25em; }
li { margin-bottom: .4em; }

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

.evitement {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--vert);
  color: var(--blanc-sur-accent);
  padding: .7rem 1.2rem;
  z-index: 999;
  font-weight: 600;
}
.evitement:focus { left: 12px; top: 12px; color: var(--blanc-sur-accent); }

.hors-ecran {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------------------
   3. Contenants et rythme vertical
   -------------------------------------------------------------------------- */

.pli {
  width: 100%;
  max-width: var(--pli-large);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2.5rem);
}
.pli--etroit { max-width: var(--pli-etroit); }
.pli--moyen { max-width: 920px; }

.minute {
  position: relative;
  padding-block: clamp(3.4rem, 7vw, 6.4rem);
}
.minute--serree { padding-block: clamp(2.6rem, 5vw, 4.2rem); }
.minute--ample { padding-block: clamp(4.4rem, 9vw, 8rem); }
.minute--ivoire { background: var(--ivoire); }
.minute--ivoire::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(74deg,
      rgba(43, 107, 23, .05) 0, rgba(43, 107, 23, .05) .5px,
      rgba(43, 107, 23, 0) .5px, rgba(43, 107, 23, 0) 9px),
    repeating-linear-gradient(108deg,
      rgba(43, 107, 23, .035) 0, rgba(43, 107, 23, .035) .5px,
      rgba(43, 107, 23, 0) .5px, rgba(43, 107, 23, 0) 13px);
  pointer-events: none;
}
.minute > .pli { position: relative; z-index: 2; }

/* Veines de marbre en SVG, posees en fond de section. */
.veinage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
.veinage svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.veinage path { fill: none; stroke: var(--vert); stroke-width: .5; opacity: .09; }
.veinage--basse { top: auto; height: 46%; }
.veinage--pivot svg { transform: rotate(-4deg) scale(1.14); transform-origin: center; }

/* --------------------------------------------------------------------------
   4. Forme signature: la chemise a rabat biseaute
   -------------------------------------------------------------------------- */

/* Le biseau est obtenu par clip-path. Un filet dessine en box-shadow serait
   rogne par ce meme clip: les contours sont donc traces en border, qui vit
   a l interieur de la boite, et les ombres portees en filter, qui s applique
   apres le decoupage. */
.chemise {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--filet);
  padding: clamp(1.4rem, 2.4vw, 2rem);
  clip-path: polygon(0 0, calc(100% - var(--biseau)) 0, 100% var(--biseau), 100% 100%, 0 100%);
}
.chemise--papier { background: var(--papier); }
.chemise--ivoire { background: var(--ivoire); }
.chemise--encre { border-color: var(--vert); }

/* Le rabat: filet double de 1 puis 3 pixels, veine de marbre au milieu. */
.rabat {
  position: absolute;
  top: calc(var(--biseau) / 2);
  right: calc(var(--biseau) / 2 - 15.6px);
  width: 31.2px;
  height: 5px;
  transform: translateY(-2.5px) rotate(45deg);
  background-image: linear-gradient(to bottom,
    var(--vert) 0, var(--vert) 1px,
    rgba(255, 255, 255, 0) 1px, rgba(255, 255, 255, 0) 2px,
    var(--vert) 2px, var(--vert) 5px);
  z-index: 3;
  pointer-events: none;
}
.rabat::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 2px; height: 3px;
  background-image: repeating-linear-gradient(90deg,
    rgba(255, 255, 255, .55) 0, rgba(255, 255, 255, .55) .5px,
    rgba(255, 255, 255, 0) .5px, rgba(255, 255, 255, 0) 3px);
}
.rabat--fuchsia {
  background-image: linear-gradient(to bottom,
    var(--fuchsia) 0, var(--fuchsia) 1px,
    rgba(255, 255, 255, 0) 1px, rgba(255, 255, 255, 0) 2px,
    var(--fuchsia) 2px, var(--fuchsia) 5px);
}

.chemise--relief { filter: drop-shadow(0 12px 20px rgba(24, 33, 16, .13)); }

/* --------------------------------------------------------------------------
   5. Surtitres, phrases de seuil, etiquettes
   -------------------------------------------------------------------------- */

.paraphe {
  font-family: var(--frappe);
  font-size: .82rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--vert);
  display: flex;
  align-items: center;
  gap: .7rem;
  margin: 0 0 .9rem;
  max-width: none;
}
.paraphe::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--vert);
  flex: none;
}
.paraphe--centre { justify-content: center; }
.paraphe--fuchsia { color: var(--fuchsia); }
.paraphe--fuchsia::before { background: var(--fuchsia); }
.paraphe--sur-accent { color: var(--blanc-sur-accent); }
.paraphe--sur-accent::before { background: var(--blanc-sur-accent); }

.seuil {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.52;
  color: var(--encre);
  max-width: 62ch;
}
.seuil--centre { margin-inline: auto; text-align: center; }

.etiquette {
  font-family: var(--frappe);
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--vert);
  background: var(--vert-clair);
  padding: .18rem .55rem;
  display: inline-block;
  border-left: 2px solid var(--vert);
}
.etiquette--alerte {
  color: var(--fuchsia);
  background: #FBE8F2;
  border-left-color: var(--fuchsia);
}

.rang {
  font-family: var(--frappe);
  font-size: 1.05rem;
  color: var(--vert);
  letter-spacing: .06em;
}

.doux { color: var(--encre-douce); }
.centre { text-align: center; }
.centre p { margin-inline: auto; }

.marge-code {
  font-family: var(--frappe);
  font-size: .8rem;
  color: var(--encre-douce);
  letter-spacing: .04em;
  display: block;
  margin-top: .8rem;
  padding-left: .7rem;
  border-left: 2px solid var(--filet);
  max-width: none;
}

/* --------------------------------------------------------------------------
   6. Sceaux (boutons)
   -------------------------------------------------------------------------- */

.sceau {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  height: 52px;
  padding: 0 1.5rem;
  font-family: var(--courant);
  font-size: .99rem;
  font-weight: 600;
  letter-spacing: .02em;
  text-decoration: none;
  cursor: pointer;
  border: 0;
  border-radius: 4px 0 4px 4px;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  transition: background var(--transition), clip-path var(--transition), color var(--transition);
}
.sceau--plein {
  background: var(--vert);
  color: var(--blanc-sur-accent);
}
.sceau--plein:hover,
.sceau--plein:focus-visible {
  background: var(--vert-sombre);
  color: var(--blanc-sur-accent);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
}
.sceau--filet {
  background: var(--papier);
  color: var(--vert);
  box-shadow: inset 0 0 0 1px var(--filet), inset 0 0 0 3px var(--papier), inset 0 0 0 4px var(--filet);
}
.sceau--filet:hover,
.sceau--filet:focus-visible {
  background: var(--ivoire);
  color: var(--vert-sombre);
  box-shadow: inset 0 0 0 1px var(--vert), inset 0 0 0 3px var(--ivoire), inset 0 0 0 4px var(--filet);
}
.sceau--fuchsia { background: var(--fuchsia); color: var(--blanc-sur-accent); }
.sceau--fuchsia:hover, .sceau--fuchsia:focus-visible { background: var(--fuchsia-sombre); color: var(--blanc-sur-accent); }
.sceau--large { width: 100%; }

.rangee-sceaux {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  align-items: center;
}
.rangee-sceaux--centre { justify-content: center; }

/* --------------------------------------------------------------------------
   7. En tete fixe
   -------------------------------------------------------------------------- */

.entete {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  height: var(--hauteur-entete);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(6px);
  box-shadow: 0 1px 0 var(--filet), 0 3px 0 -1px rgba(43, 107, 23, .18);
  transition: height var(--transition);
}
.entete__pli {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  max-width: var(--pli-large);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2.5rem);
}
.entete--tassee { height: 62px; }
.entete__jauge {
  position: absolute;
  left: 0; bottom: -2px;
  height: 2px;
  width: 0;
  background: var(--fuchsia);
  transition: width 90ms linear;
}

body { padding-top: var(--hauteur-entete); }

.logotype {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--titre);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--encre);
  text-decoration: none;
  letter-spacing: -0.01em;
  flex: none;
}
.logotype:hover { color: var(--vert); }
.logotype svg { width: 40px; height: 40px; flex: none; }

.navire {
  margin-inline: auto;
  display: flex;
  gap: clamp(.7rem, 1.6vw, 1.6rem);
}
.navire a {
  font-size: .95rem;
  color: var(--encre-douce);
  text-decoration: none;
  padding: .35rem 0;
  border-bottom: 2px solid transparent;
}
.navire a:hover, .navire a:focus-visible { color: var(--vert); border-bottom-color: var(--vert); }

.entete .sceau { height: 44px; padding-inline: 1.1rem; font-size: .93rem; }

.bouton-panneau {
  display: none;
  width: 46px; height: 44px;
  background: var(--papier);
  border: 1px solid var(--filet);
  border-radius: 3px;
  cursor: pointer;
  padding: 0;
  flex: none;
}
.bouton-panneau span {
  display: block;
  width: 22px; height: 2px;
  margin: 4px auto;
  background: var(--vert);
}

.panneau {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: var(--ivoire);
  padding: 1.4rem clamp(1.1rem, 5vw, 2.4rem) 2.4rem;
  display: none;
  flex-direction: column;
  overflow-y: auto;
}
.panneau[data-ouvert="oui"] { display: flex; }
.panneau__haut { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.8rem; }
.panneau__fermer {
  width: 46px; height: 44px;
  background: var(--papier);
  border: 1px solid var(--filet);
  border-radius: 3px;
  font-size: 1.4rem; line-height: 1;
  color: var(--vert);
  cursor: pointer;
}
.panneau nav { display: flex; flex-direction: column; gap: .2rem; }
.panneau nav a {
  font-size: 1.3rem;
  font-family: var(--titre);
  font-weight: 600;
  color: var(--encre);
  text-decoration: none;
  padding: .7rem 0;
  border-bottom: 1px solid var(--filet);
}
.panneau nav a:hover { color: var(--vert); }
.panneau .sceau { margin-top: 1.6rem; }

/* --------------------------------------------------------------------------
   8. Archetype impose: rosace centrale et satellites
   -------------------------------------------------------------------------- */

.ouverture { position: relative; padding-block: clamp(2.4rem, 5vw, 4.4rem) 0; }
.ouverture__entree { max-width: 860px; margin-inline: auto; text-align: center; }
.ouverture__entree .paraphe { justify-content: center; }
.ouverture__entree h1 { margin-bottom: .5rem; }
.ouverture__entree .seuil { margin-inline: auto; }

.rosace {
  position: relative;
  width: min(720px, 92vw);
  aspect-ratio: 1 / 1;
  margin: clamp(2rem, 5vw, 3.4rem) auto clamp(1.6rem, 3vw, 2.6rem);
  --rayon: 39%;
}
.rosace__filets {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
}
.rosace__filets line, .rosace__filets circle { stroke: var(--vert); fill: none; }
.rosace__filets line { stroke-width: 1; }
.rosace__filets circle { stroke-width: 1; opacity: .34; stroke-dasharray: 3 5; }
.rosace__veine { stroke: var(--vert); stroke-width: .5; fill: none; opacity: .09; }

.noyau {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 51%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: var(--papier);
  box-shadow: 0 0 0 1px var(--filet), 0 0 0 6px var(--papier), 0 0 0 7px var(--vert), var(--ombre-relief);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8%;
  gap: .8rem;
  z-index: 4;
}
.noyau__promesse {
  font-family: var(--titre);
  font-size: clamp(1rem, .6rem + 1.1vw, 1.3rem);
  font-weight: 600;
  line-height: 1.28;
  margin: 0;
  max-width: 20ch;
}
.noyau .sceau { height: 46px; font-size: .93rem; padding-inline: 1.15rem; }

.satellite {
  position: absolute;
  left: var(--x, 50%);
  top: var(--y, 50%);
  width: 27%;
  transform: translate(-50%, -50%);
  background: var(--surface);
  border: 1px solid var(--filet);
  padding: .7rem .8rem;
  z-index: 3;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
  filter: drop-shadow(0 10px 16px rgba(24, 33, 16, .16));
}
.satellite__cle {
  font-family: var(--frappe);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fuchsia);
  display: block;
  margin-bottom: .15rem;
}
.satellite p {
  margin: 0;
  font-size: .85rem;
  line-height: 1.36;
  color: var(--encre);
  font-weight: 600;
}
.satellite--premier { border-color: var(--fuchsia); }

.rosace__liste { display: none; }

/* Bandeau photographique du hero, en debordement. */
.cliche {
  position: relative;
  margin: 0;
  background: var(--papier);
  border: 1px solid var(--vert);
  padding: 10px;
  clip-path: polygon(0 0, calc(100% - var(--biseau)) 0, 100% var(--biseau), 100% 100%, 0 100%);
  filter: drop-shadow(0 18px 34px rgba(24, 33, 16, .2));
}
.cliche img {
  width: 100%;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
}
.cliche figcaption {
  font-family: var(--frappe);
  font-size: .78rem;
  letter-spacing: .08em;
  color: var(--encre-douce);
  padding: .7rem .2rem .1rem;
  text-transform: uppercase;
}
.cliche__voile {
  position: absolute;
  left: 10px; right: 10px; top: 10px;
  height: 14%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, .92), rgba(255, 255, 255, 0));
  pointer-events: none;
}
.cliche__veine { position: absolute; left: 10px; right: 10px; bottom: 10px; height: 34%; pointer-events: none; }
.cliche__veine path { fill: none; stroke: var(--vert); stroke-width: .5; opacity: .08; }

.bandeau-photo {
  position: relative;
  margin-top: clamp(1.6rem, 4vw, 2.8rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}
.bandeau-photo__grille {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(1.2rem, 3vw, 2.4rem);
  align-items: end;
}
.assurance {
  position: relative;
  background: var(--vert);
  color: var(--blanc-sur-accent);
  padding: 1.5rem 1.6rem;
  clip-path: polygon(0 0, calc(100% - var(--biseau)) 0, 100% var(--biseau), 100% 100%, 0 100%);
}
.assurance p { color: var(--blanc-sur-accent); margin: 0; }
.assurance__nombre {
  font-family: var(--titre);
  font-weight: 700;
  font-size: clamp(2.2rem, 1.4rem + 2.4vw, 3rem);
  line-height: 1;
  display: block;
  margin-bottom: .4rem;
}
.assurance__note { font-size: .93rem; opacity: .93; }

/* --------------------------------------------------------------------------
   9. Probleme: trois colonnes qui convergent vers un encadre central
   -------------------------------------------------------------------------- */

.convergence {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.4vw, 1.8rem);
  align-items: start;
  margin-top: 2.4rem;
}
.convergence .chemise h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.convergence .chemise p { font-size: .99rem; margin-bottom: 0; }
.convergence .chemise p + p { margin-top: .8rem; }

.entonnoir {
  position: relative;
  margin: 0 auto;
  margin-top: -14px;
  width: min(760px, 100%);
  display: flex;
  justify-content: center;
}
.entonnoir svg { width: 100%; height: 64px; }
.entonnoir path { fill: none; stroke: var(--vert); stroke-width: 1; opacity: .55; }

.verdict {
  position: relative;
  width: min(760px, 100%);
  margin: 0 auto;
  background: var(--papier);
  border: 1px solid var(--vert);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  clip-path: polygon(0 0, calc(100% - var(--biseau)) 0, 100% var(--biseau), 100% 100%, 0 100%);
  filter: drop-shadow(0 18px 34px rgba(24, 33, 16, .18));
  text-align: center;
}
.verdict p { margin-inline: auto; }
.verdict p:last-child { margin-bottom: 0; }
.verdict--detachee { margin-top: 2.6rem; }

/* --------------------------------------------------------------------------
   10. Solution: quatre etapes disposees en arc
   -------------------------------------------------------------------------- */

.arc {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(.9rem, 2vw, 1.6rem);
  margin-top: 2.8rem;
  align-items: start;
}
.arc > li { list-style: none; margin: 0; }
.arc { padding-left: 0; }
.etape { position: relative; }
.etape:nth-child(1) { transform: translateY(34px); }
.etape:nth-child(2) { transform: translateY(0); }
.etape:nth-child(3) { transform: translateY(0); }
.etape:nth-child(4) { transform: translateY(34px); }
.etape__rang {
  font-family: var(--frappe);
  font-size: 1.05rem;
  color: var(--blanc-sur-accent);
  background: var(--vert);
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: .9rem;
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 0 100%);
}
.etape h3 { font-size: 1.24rem; }
.etape p { font-size: .99rem; margin-bottom: 0; }

.duo-terrain {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(1.4rem, 3.4vw, 3rem);
  align-items: center;
  margin-top: clamp(2.6rem, 5vw, 4rem);
}

/* --------------------------------------------------------------------------
   11. Fonctionnalites: grille trois par deux
   -------------------------------------------------------------------------- */

.mise-a-plat {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.2vw, 1.7rem);
  margin-top: 2.6rem;
}
.mise-a-plat .chemise h3 { font-size: 1.18rem; margin-bottom: .45rem; }
.mise-a-plat .chemise p { font-size: .97rem; margin-bottom: 0; }
.outil__icone { width: 34px; height: 34px; margin-bottom: .8rem; display: block; }
.outil__icone [stroke] { stroke: var(--vert); }
.outil__icone [fill].plein { fill: var(--fuchsia); }

/* --------------------------------------------------------------------------
   12. Avantages: deux colonnes larges
   -------------------------------------------------------------------------- */

.gains {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.2rem, 3vw, 2.6rem);
  margin-top: 2.4rem;
}
.gain {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.1rem;
  align-items: start;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--filet);
}
.gain__chiffre {
  font-family: var(--titre);
  font-weight: 700;
  font-size: 2rem;
  line-height: 1;
  color: var(--vert);
  min-width: 4.5ch;
}
.gain h3 { font-size: 1.14rem; margin-bottom: .3rem; }
.gain p { font-size: .98rem; margin-bottom: 0; }

/* --------------------------------------------------------------------------
   13. Preuve sociale et bande fuchsia
   -------------------------------------------------------------------------- */

.paroles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.2vw, 1.7rem);
  margin-top: 2.6rem;
}
.parole { display: flex; flex-direction: column; }
.parole blockquote {
  margin: 0 0 1.1rem;
  font-size: 1.02rem;
  line-height: 1.66;
}
.parole blockquote p:last-child { margin-bottom: 0; }
.parole__marque {
  font-family: var(--titre);
  font-size: 2.6rem;
  line-height: .7;
  color: var(--vert);
  display: block;
  margin-bottom: .4rem;
}
.parole figcaption {
  margin-top: auto;
  padding-top: .9rem;
  border-top: 1px solid var(--filet);
  font-size: .9rem;
  color: var(--encre-douce);
}
.parole figcaption b { display: block; color: var(--encre); font-size: .98rem; font-weight: 600; }

.liasse {
  background: var(--fuchsia);
  color: var(--blanc-sur-accent);
  position: relative;
  overflow: hidden;
}
.liasse::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(74deg,
      rgba(255, 255, 255, .16) 0, rgba(255, 255, 255, .16) .5px,
      rgba(255, 255, 255, 0) .5px, rgba(255, 255, 255, 0) 11px),
    repeating-linear-gradient(108deg,
      rgba(255, 255, 255, .1) 0, rgba(255, 255, 255, .1) .5px,
      rgba(255, 255, 255, 0) .5px, rgba(255, 255, 255, 0) 15px);
  pointer-events: none;
}
.liasse .pli { position: relative; z-index: 2; }
.liasse__grille {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 2rem);
  padding-block: clamp(2rem, 4vw, 3rem);
  text-align: center;
}
.liasse__nombre {
  font-family: var(--titre);
  font-weight: 700;
  font-size: clamp(1.9rem, 1.2rem + 2vw, 2.6rem);
  line-height: 1.05;
  display: block;
}
.liasse__legende {
  font-size: .93rem;
  line-height: 1.5;
  margin: .35rem auto 0;
  max-width: 26ch;
  color: var(--blanc-sur-accent);
}

/* --------------------------------------------------------------------------
   14. Bareme tarifaire
   -------------------------------------------------------------------------- */

.bareme {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.2vw, 1.8rem);
  align-items: start;
  margin-top: 2.8rem;
}
.legs { display: flex; flex-direction: column; height: 100%; }
.legs--phare {
  transform: translateY(-24px);
  border-color: var(--fuchsia);
  filter: drop-shadow(0 22px 40px rgba(24, 33, 16, .2));
}
.legs__nom { font-size: 1.3rem; margin-bottom: .3rem; }
.legs__cible { font-size: .93rem; color: var(--encre-douce); min-height: 4.4em; }
.legs__prix {
  font-family: var(--titre);
  font-weight: 700;
  font-size: 2.7rem;
  line-height: 1;
  color: var(--vert);
  display: flex;
  align-items: baseline;
  gap: .35rem;
  margin: .8rem 0 .2rem;
}
.legs__unite { font-family: var(--courant); font-size: .88rem; font-weight: 400; color: var(--encre-douce); }
.legs ul { list-style: none; padding: 0; margin: 1.2rem 0 1.6rem; }
.legs li {
  position: relative;
  padding-left: 1.5rem;
  font-size: .95rem;
  line-height: 1.55;
  margin-bottom: .65rem;
}
.legs li::before {
  content: "";
  position: absolute;
  left: 0; top: .55em;
  width: 9px; height: 9px;
  background: var(--vert);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  transform: rotate(45deg);
}
.legs--phare li::before { background: var(--fuchsia); }
.legs .sceau { margin-top: auto; }
.legs__mention { font-size: .84rem; color: var(--encre-douce); margin: .8rem 0 0; }

.note-bareme {
  margin-top: 2.6rem;
  font-size: .95rem;
  color: var(--encre-douce);
  text-align: center;
  max-width: 74ch;
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   15. FAQ
   -------------------------------------------------------------------------- */

.clauses { margin-top: 2.4rem; }
.clause {
  border-bottom: 1px solid var(--filet);
  background: transparent;
}
.clause:first-child { border-top: 1px solid var(--filet); }
.clause h3 { margin: 0; }
.clause__bouton {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  background: none;
  border: 0;
  padding: 1.15rem .2rem;
  text-align: left;
  font-family: var(--titre);
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--encre);
  cursor: pointer;
  line-height: 1.34;
}
.clause__bouton:hover { color: var(--vert); }
.clause__signe {
  flex: none;
  width: 26px; height: 26px;
  position: relative;
  margin-top: .15rem;
  background: var(--vert-clair);
  border-radius: 2px;
}
.clause__signe::before, .clause__signe::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  background: var(--vert);
  transform: translate(-50%, -50%);
}
.clause__signe::before { width: 12px; height: 2px; }
.clause__signe::after { width: 2px; height: 12px; transition: transform var(--transition), opacity var(--transition); }
.clause__bouton[aria-expanded="true"] .clause__signe::after { transform: translate(-50%, -50%) scaleY(0); opacity: 0; }
.clause__corps { display: none; padding: 0 .2rem 1.4rem; }
.clause__corps[data-ouvert="oui"] { display: block; }
.clause__corps p { font-size: 1rem; margin-bottom: .9rem; }
.clause__corps p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   16. Registre de contact
   -------------------------------------------------------------------------- */

.contact__grille {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(1.6rem, 4vw, 3.4rem);
  align-items: start;
  margin-top: 2.4rem;
}
.contact__mots ul { list-style: none; padding: 0; }
.contact__mots li {
  padding-left: 1.4rem;
  position: relative;
  font-size: .99rem;
  margin-bottom: .7rem;
}
.contact__mots li::before {
  content: "";
  position: absolute;
  left: 0; top: .62em;
  width: 8px; height: 8px;
  background: var(--fuchsia);
  border-radius: 50%;
}

.registre { display: grid; gap: 1rem; }
.champ { display: grid; gap: .35rem; }
.champ label, .champ > span {
  font-family: var(--frappe);
  font-size: .8rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--vert);
}
.champ input[type="text"],
.champ input[type="email"],
.champ select,
.champ textarea {
  width: 100%;
  font-family: var(--courant);
  font-size: 1rem;
  color: var(--encre);
  background: var(--papier);
  border: 1px solid var(--filet);
  border-bottom-width: 2px;
  border-radius: 3px;
  padding: .72rem .8rem;
}
.champ textarea { resize: vertical; min-height: 132px; }
.champ input:focus, .champ select:focus, .champ textarea:focus { border-color: var(--vert); }
.champ--duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.champ__aide { font-size: .86rem; color: var(--encre-douce); margin: 0; }

.accord {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .7rem;
  align-items: start;
  font-size: .92rem;
  color: var(--encre-douce);
  line-height: 1.55;
}
.accord input { width: 20px; height: 20px; margin-top: .2rem; accent-color: var(--vert); }

.voie-directe {
  margin-top: 1.2rem;
  font-size: .92rem;
  color: var(--encre-douce);
}

/* --------------------------------------------------------------------------
   17. Pied de page
   -------------------------------------------------------------------------- */

.greffe {
  background: var(--ivoire);
  position: relative;
  padding-top: clamp(3rem, 6vw, 4.6rem);
  border-top: 1px solid var(--filet);
  overflow: hidden;
}
.greffe::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(74deg,
      rgba(43, 107, 23, .06) 0, rgba(43, 107, 23, .06) .5px,
      rgba(43, 107, 23, 0) .5px, rgba(43, 107, 23, 0) 10px),
    repeating-linear-gradient(108deg,
      rgba(43, 107, 23, .04) 0, rgba(43, 107, 23, .04) .5px,
      rgba(43, 107, 23, 0) .5px, rgba(43, 107, 23, 0) 14px);
  pointer-events: none;
}
.greffe .pli { position: relative; z-index: 2; }
.greffe__colonnes {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: clamp(1.4rem, 3vw, 2.6rem);
  padding-bottom: 2.6rem;
}
.greffe h2 { font-size: 1rem; font-family: var(--frappe); font-weight: 400; letter-spacing: .12em; text-transform: uppercase; color: var(--vert); margin-bottom: 1rem; }
.greffe ul { list-style: none; padding: 0; margin: 0; }
.greffe li { margin-bottom: .55rem; }
.greffe a { color: var(--encre-douce); text-decoration: none; font-size: .95rem; }
.greffe a:hover { color: var(--vert); text-decoration: underline; }
.greffe p { font-size: .93rem; color: var(--encre-douce); }
.greffe__social { display: flex; flex-wrap: wrap; gap: .5rem .9rem; margin-top: .8rem; }
.greffe__social a { font-size: .9rem; }

.reseau {
  border-top: 1px solid var(--filet);
  padding-block: 1.6rem;
}
.reseau h2 { margin-bottom: .8rem; }
.reseau ul { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; }
.reseau li { margin: 0; }

.greffe__barre {
  border-top: 1px solid var(--filet);
  padding-block: 1.3rem 1.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.4rem;
  justify-content: space-between;
  font-size: .88rem;
  color: var(--encre-douce);
}
.greffe__barre p { margin: 0; font-size: .88rem; }

/* --------------------------------------------------------------------------
   18. Pages internes
   -------------------------------------------------------------------------- */

.entree-page {
  background: var(--ivoire);
  position: relative;
  padding-block: clamp(2.6rem, 5vw, 4rem);
  border-bottom: 1px solid var(--filet);
  overflow: hidden;
}
.entree-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(74deg,
      rgba(43, 107, 23, .05) 0, rgba(43, 107, 23, .05) .5px,
      rgba(43, 107, 23, 0) .5px, rgba(43, 107, 23, 0) 9px),
    repeating-linear-gradient(108deg,
      rgba(43, 107, 23, .035) 0, rgba(43, 107, 23, .035) .5px,
      rgba(43, 107, 23, 0) .5px, rgba(43, 107, 23, 0) 13px);
  pointer-events: none;
}
.entree-page .pli { position: relative; z-index: 2; }
.entree-page h1 { margin-bottom: .4rem; }

.fil {
  font-size: .86rem;
  color: var(--encre-douce);
  margin-bottom: 1rem;
}
.fil a { color: var(--encre-douce); }
.fil a:hover { color: var(--vert); }

.corps-legal { padding-block: clamp(2.6rem, 5vw, 4.2rem); }
.corps-legal h2 {
  font-size: 1.5rem;
  margin-top: 2.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--filet);
}
.corps-legal h2:first-of-type { margin-top: 0; border-top: 0; padding-top: 0; }
.corps-legal h3 { font-size: 1.18rem; margin-top: 1.6rem; }
.corps-legal ul { padding-left: 1.2rem; }
.corps-legal li { font-size: 1rem; }
.corps-legal dl { margin: 0 0 1.2rem; }
.corps-legal dt { font-weight: 600; margin-top: .8rem; }
.corps-legal dd { margin: 0 0 .2rem; color: var(--encre-douce); }

.tableau-enveloppe { overflow-x: auto; margin-bottom: 1.4rem; }
table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: .95rem; }
caption { text-align: left; font-family: var(--frappe); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--vert); padding-bottom: .6rem; }
th, td { text-align: left; padding: .7rem .8rem; border-bottom: 1px solid var(--filet); vertical-align: top; }
thead th { font-family: var(--frappe); font-size: .8rem; letter-spacing: .09em; text-transform: uppercase; color: var(--vert); background: var(--ivoire); font-weight: 400; }

/* Page auteur */
.portrait-auteur {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(1.4rem, 3vw, 2.6rem);
  align-items: start;
  margin-bottom: 2.4rem;
}
.portrait-auteur img {
  width: 100%;
  background: var(--papier);
  border: 1px solid var(--vert);
  padding: 8px;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
  filter: drop-shadow(0 12px 22px rgba(24, 33, 16, .16));
}
.profils { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; padding: 0; margin: 1.2rem 0 0; }
.profils a {
  display: inline-block;
  font-size: .9rem;
  padding: .4rem .8rem;
  background: var(--surface);
  color: var(--vert);
  text-decoration: none;
  box-shadow: inset 0 0 0 1px var(--filet);
  border-radius: 3px;
}
.profils a:hover { background: var(--vert-clair); }

.jalons { list-style: none; padding: 0; margin: 1.6rem 0; }
.jalons li {
  display: grid;
  grid-template-columns: 8.5ch minmax(0, 1fr);
  gap: 1rem;
  padding: .9rem 0;
  border-bottom: 1px solid var(--filet);
}
.jalons b { font-family: var(--frappe); font-size: .86rem; color: var(--vert); letter-spacing: .06em; }

/* Plan du site */
.plan-liste { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.plan-liste > li { padding-bottom: 1rem; border-bottom: 1px solid var(--filet); }
.plan-liste a { font-family: var(--titre); font-weight: 600; font-size: 1.15rem; text-decoration: none; }
.plan-liste p { margin: .25rem 0 0; font-size: .97rem; color: var(--encre-douce); }
.plan-ancres { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .6rem 1.4rem; }

/* Pages courtes */
.page-courte {
  min-height: 56vh;
  display: flex;
  align-items: center;
  padding-block: clamp(3rem, 8vw, 6rem);
  position: relative;
}
.page-courte .chemise { max-width: 720px; margin-inline: auto; text-align: center; padding: clamp(1.8rem, 4vw, 3rem); }
.page-courte .rangee-sceaux { justify-content: center; }

/* --------------------------------------------------------------------------
   19. Signature d animation: titre revele lettre par lettre
   -------------------------------------------------------------------------- */

.frappe .mot { display: inline-block; white-space: nowrap; }
.frappe .lettre {
  display: inline-block;
  opacity: 0;
  transform: translateY(8px);
}
.frappe.frappe--lancee .lettre {
  animation: frappe-lettre 300ms cubic-bezier(.22, .8, .3, 1) forwards;
  animation-delay: calc(var(--i, 0) * 22ms);
}
@keyframes frappe-lettre {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.trace { stroke-dasharray: var(--long, 400); stroke-dashoffset: var(--long, 400); }
.rosace--tracee .trace { animation: tracer 700ms ease-out forwards; }
@keyframes tracer { to { stroke-dashoffset: 0; } }

.rosace .satellite { opacity: 0; transform: translate(-50%, -44%); }
.rosace--tracee .satellite {
  animation: poser-satellite 420ms ease-out forwards;
  animation-delay: calc(700ms + var(--pas, 0) * 110ms);
}
@keyframes poser-satellite {
  to { opacity: 1; transform: translate(-50%, -50%); }
}

.surgit { opacity: 0; transform: translateY(18px); transition: opacity 520ms ease-out, transform 520ms ease-out; }
.surgit--vu { opacity: 1; transform: none; }
.surgit--retard { transition-delay: 110ms; }
.surgit--retard2 { transition-delay: 220ms; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
  .frappe .lettre { opacity: 1; transform: none; }
  .trace { stroke-dashoffset: 0; }
  .rosace .satellite { opacity: 1; transform: translate(-50%, -50%); }
  .surgit { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   20. Adaptations d ecran
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .convergence { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mise-a-plat { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .greffe__colonnes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .navire { display: none; }
  .entete .sceau { display: none; }
  .bouton-panneau { display: block; margin-left: auto; }
  .arc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .etape:nth-child(n) { transform: none; }
  .bandeau-photo__grille { grid-template-columns: minmax(0, 1fr); }
  .duo-terrain { grid-template-columns: minmax(0, 1fr); }
  .contact__grille { grid-template-columns: minmax(0, 1fr); }
  .liasse__grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bareme { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin-inline: auto; }
  .legs--phare { transform: none; }
  .portrait-auteur { grid-template-columns: minmax(0, 1fr); }
  .portrait-auteur img { max-width: 240px; }
}

@media (max-width: 900px) {
  /* La rosace devient un bandeau, les satellites deviennent une liste numerotee. */
  .rosace { width: 100%; aspect-ratio: auto; margin-bottom: 1.6rem; }
  .rosace__filets { display: none; }
  .noyau {
    position: static;
    transform: none;
    width: 100%;
    aspect-ratio: auto;
    border-radius: 6px 0 6px 6px;
    padding: 1.6rem 1.4rem;
    box-shadow: 0 0 0 1px var(--filet), 0 0 0 4px var(--papier), 0 0 0 5px var(--vert), var(--ombre-chemise);
  }
  .noyau__promesse { font-size: 1.15rem; max-width: 30ch; }
  .satellite { display: none; }
  .rosace__liste {
    display: grid;
    gap: .7rem;
    margin: 1.4rem 0 0;
    padding: 0;
    counter-reset: zone;
  }
  .rosace__liste li {
    list-style: none;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: .8rem;
    align-items: baseline;
    background: var(--surface);
    padding: .8rem .9rem;
    box-shadow: inset 0 0 0 1px var(--filet);
    clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
  }
  .rosace__liste li::before {
    counter-increment: zone;
    content: counter(zone, decimal-leading-zero);
    font-family: var(--frappe);
    font-size: .82rem;
    color: var(--fuchsia);
    letter-spacing: .08em;
  }
  .rosace__liste b { font-size: .98rem; }
  .rosace__liste span { display: block; font-size: .92rem; color: var(--encre-douce); }
}

@media (max-width: 720px) {
  body { font-size: 1.02rem; }
  .convergence { grid-template-columns: minmax(0, 1fr); }
  .entonnoir { display: none; }
  .verdict { margin-top: 1.4rem; }
  .mise-a-plat { grid-template-columns: minmax(0, 1fr); }
  .gains { grid-template-columns: minmax(0, 1fr); }
  .paroles { grid-template-columns: minmax(0, 1fr); }
  .arc { grid-template-columns: minmax(0, 1fr); }
  .champ--duo { grid-template-columns: minmax(0, 1fr); }
  .greffe__colonnes { grid-template-columns: minmax(0, 1fr); }
  .jalons li { grid-template-columns: minmax(0, 1fr); gap: .2rem; }
  .rangee-sceaux .sceau { width: 100%; }
  .liasse__grille { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 420px) {
  h1 { font-size: 1.85rem; }
  .legs__prix { font-size: 2.3rem; }
}

@media print {
  .entete, .panneau, .bouton-panneau, .evitement { display: none !important; }
  body { padding-top: 0; }
  .minute { padding-block: 1.2rem; }
}
/* --------------------------------------------------------------------------
   21. Magazine: Le Cahier de transmission
   Section ajoutee sans toucher aux regles precedentes. Le magazine reprend
   les jetons de l etude: papier blanc, ivoire veine de marbre, encre verte,
   fuchsia en aplat unique, Baloo 2 pour les titres, Noto Sans pour le texte,
   Special Elite pour les surtitres et les etiquettes. La forme signature
   reste l onglet biseaute de 22 pixels avec son filet double et sa bande
   de marbre, et la signature d animation reste la frappe lettre par lettre.
   -------------------------------------------------------------------------- */

/* 21.1 Grille de cartes d article ----------------------------------------- */

.cahier {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.1rem, 2.4vw, 1.9rem);
  margin-top: clamp(1.8rem, 4vw, 2.8rem);
  padding: 0;
  list-style: none;
}
.cahier--duo { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* 21.2 Carte d article ---------------------------------------------------- */

/* Le biseau du coin superieur droit est porte par la carte elle meme:
   l image posee en tete de carte est donc rognee par le meme onglet,
   comme une photographie glissee sous le rabat d une chemise cartonnee. */
.feuillet {
  position: relative;
  display: flex;
  flex-direction: column;
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--filet);
  clip-path: polygon(0 0, calc(100% - var(--biseau)) 0, 100% var(--biseau), 100% 100%, 0 100%);
  filter: drop-shadow(0 12px 20px rgba(24, 33, 16, .13));
  transition: transform var(--transition), border-color var(--transition), filter var(--transition);
}
.feuillet:hover,
.feuillet:focus-within {
  transform: translateY(-3px);
  border-color: var(--vert);
  filter: drop-shadow(0 18px 28px rgba(24, 33, 16, .2));
}
.feuillet--phare { border-color: var(--fuchsia); }
.feuillet--phare:hover,
.feuillet--phare:focus-within { border-color: var(--fuchsia); }

.feuillet__vue {
  margin: 0;
  background: var(--ivoire);
  border-bottom: 1px solid var(--filet);
  overflow: hidden;
}
.feuillet__vue img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  filter: saturate(.94);
  transition: transform 420ms cubic-bezier(.2, .7, .3, 1);
}
.feuillet:hover .feuillet__vue img { transform: scale(1.024); }

.feuillet__texte {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: clamp(1rem, 1.8vw, 1.35rem);
}
.feuillet__angle {
  margin: 0 0 .7rem;
  max-width: none;
}
.feuillet__titre {
  font-family: var(--titre);
  font-size: 1.18rem;
  font-weight: 600;
  line-height: 1.24;
  letter-spacing: -0.01em;
  margin: 0 0 .6rem;
  max-width: none;
  text-wrap: balance;
}
.feuillet__titre a {
  color: var(--encre);
  text-decoration: none;
}
.feuillet__titre a:hover,
.feuillet__titre a:focus-visible { color: var(--vert); text-decoration: underline; }
/* La zone cliquable couvre la carte entiere, le titre reste la seule ancre. */
.feuillet__titre a::after {
  content: "";
  position: absolute;
  inset: 0;
}
.feuillet__extrait {
  font-size: .96rem;
  line-height: 1.62;
  color: var(--encre-douce);
  margin: 0 0 1.1rem;
  max-width: none;
}
.feuillet__pied {
  margin: auto 0 0;
  padding-top: .8rem;
  border-top: 1px solid var(--filet);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .3rem .9rem;
  font-family: var(--frappe);
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--encre-douce);
  max-width: none;
}
.feuillet__pied time { color: var(--vert); }
.feuillet--phare .feuillet__pied time { color: var(--fuchsia); }

/* 21.3 Section Derniers articles de la page d accueil ---------------------- */

.derniers__haut {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
}
.derniers__haut .seuil { margin-bottom: 0; }
.derniers__mots { max-width: 62ch; }
.derniers__suite { margin-top: clamp(1.6rem, 3vw, 2.4rem); }

/* 21.4 Entete d article, fil d Ariane, angle, dates et temps de lecture ---- */

.entree-article .fil { margin-bottom: 1.1rem; }
.entree-article h1 { margin-bottom: .8rem; max-width: 22ch; }
@media (min-width: 721px) { .entree-article h1 { max-width: 26ch; } }

.marque-article {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem 1.1rem;
  margin: 0 0 1rem;
  max-width: none;
  font-family: var(--frappe);
  font-size: .8rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--encre-douce);
}
.marque-article time { color: var(--vert); }
.marque-article__point {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
}
.marque-article__point::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: none;
  background: var(--vert);
  transform: rotate(45deg);
}

/* 21.5 Exergue de chapeau -------------------------------------------------- */

/* Le filet double de la forme signature, 1 pixel puis 3 pixels en vert
   profond, est trace en degrade: il tient toute la hauteur du bloc sans
   rogner ses extremites comme le ferait une ombre interieure etalee. */
.chapo {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.52;
  color: var(--encre);
  max-width: 62ch;
  margin: 0;
  padding-left: 1.2rem;
  background-image: linear-gradient(to right,
    var(--vert) 0, var(--vert) 1px,
    rgba(255, 255, 255, 0) 1px, rgba(255, 255, 255, 0) 3px,
    var(--vert) 3px, var(--vert) 6px,
    rgba(255, 255, 255, 0) 6px);
  background-repeat: no-repeat;
}

/* Image a la une, cadre blanc de 10 pixels et onglet biseaute. */
.cliche--article { margin-inline: auto; }
.cliche--article img { aspect-ratio: 3 / 2; object-fit: cover; }

/* L image a la une et le corps forment un seul mouvement de lecture:
   les deux bandes de section qui les portent ne cumulent pas leurs marges. */
.article-magazine .minute--serree { padding-bottom: 0; }
.article-magazine .minute--serree + .minute { padding-top: clamp(2.2rem, 4vw, 3.2rem); }

/* 21.6 Corps d article: balises nues, mesure de lecture de 68 caracteres --- */

/* Le corps redactionnel ne porte aucune classe: tout est mis en forme depuis
   le conteneur. Une balise oubliee par un redacteur reste donc habillee. */
.corps-article {
  max-width: 68ch;
  font-size: 1.06rem;
  line-height: 1.72;
  color: var(--encre);
}
.corps-article > :first-child { margin-top: 0; }

.corps-article h2 {
  position: relative;
  font-size: clamp(1.4rem, 1.1rem + 1vw, 1.72rem);
  font-weight: 600;
  line-height: 1.16;
  margin: 2.6rem 0 .9rem;
  padding-top: 1.5rem;
  max-width: 30ch;
}
.corps-article h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 2px;
  background: var(--vert);
}
.corps-article h3 {
  font-size: 1.24rem;
  font-weight: 600;
  line-height: 1.24;
  margin: 1.9rem 0 .6rem;
  padding-left: 1.15rem;
  position: relative;
  max-width: 34ch;
}
.corps-article h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 9px;
  height: 9px;
  background: var(--fuchsia);
  transform: rotate(45deg);
}

.corps-article p { margin: 0 0 1.15em; max-width: none; }
/* Phrase de seuil: la premiere phrase de chaque partie resume la partie
   entiere pour une lectrice pressee, comme dans le reste du site. */
.corps-article h2 + p {
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.55;
  color: var(--encre);
}
.corps-article strong { font-weight: 600; color: var(--encre); }
.corps-article em { font-style: italic; }
.corps-article a {
  color: var(--vert);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.corps-article a:hover,
.corps-article a:focus-visible {
  color: var(--vert-sombre);
  text-decoration-thickness: 2px;
  background: var(--vert-clair);
}

.corps-article ul,
.corps-article ol {
  margin: 0 0 1.3em;
  padding: 0;
  list-style: none;
}
.corps-article li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: .6em;
  line-height: 1.66;
}
.corps-article li > ul,
.corps-article li > ol { margin: .6em 0 .2em; }
.corps-article ul > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 9px;
  height: 9px;
  background: var(--vert);
  transform: rotate(45deg);
}
.corps-article ol { counter-reset: pas-article; }
.corps-article ol > li { padding-left: 2.4rem; }
.corps-article ol > li::before {
  counter-increment: pas-article;
  content: counter(pas-article, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: .06em;
  font-family: var(--frappe);
  font-size: .84rem;
  letter-spacing: .08em;
  color: var(--fuchsia);
}

/* Tableau recapitulatif: filet double vert en tete, defilement horizontal
   sur ecran etroit sans conteneur supplementaire, le corps etant du HTML nu. */
.corps-article table {
  display: block;
  width: max-content;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  border-collapse: collapse;
  margin: 0 0 1.6em;
  font-size: .97rem;
  background: var(--papier);
  border-top: 3px solid var(--vert);
  box-shadow: inset 0 1px 0 var(--papier), 0 0 0 1px var(--filet);
}
.corps-article thead th {
  font-family: var(--frappe);
  font-size: .78rem;
  font-weight: 400;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--vert);
  background: var(--ivoire);
  text-align: left;
  padding: .7rem .85rem;
  border-bottom: 1px solid var(--filet);
}
.corps-article tbody th {
  text-align: left;
  font-weight: 600;
  color: var(--encre);
}
.corps-article td,
.corps-article tbody th {
  padding: .7rem .85rem;
  border-bottom: 1px solid var(--filet);
  vertical-align: top;
  line-height: 1.55;
}
.corps-article tbody tr:nth-child(even) { background: var(--surface); }
.corps-article tbody tr:last-child td,
.corps-article tbody tr:last-child th { border-bottom: 0; }

/* Encadre: la chemise a onglet biseaute, en ivoire, avec sa bande de marbre. */
.corps-article aside {
  position: relative;
  background: var(--ivoire);
  border: 1px solid var(--filet);
  border-left: 3px solid var(--vert);
  padding: clamp(1.1rem, 2vw, 1.5rem);
  margin: 0 0 1.6em;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
  background-image:
    repeating-linear-gradient(74deg,
      rgba(43, 107, 23, .05) 0, rgba(43, 107, 23, .05) .5px,
      rgba(43, 107, 23, 0) .5px, rgba(43, 107, 23, 0) 9px),
    repeating-linear-gradient(108deg,
      rgba(43, 107, 23, .035) 0, rgba(43, 107, 23, .035) .5px,
      rgba(43, 107, 23, 0) .5px, rgba(43, 107, 23, 0) 13px);
}
.corps-article aside > :last-child { margin-bottom: 0; }
.corps-article aside p { font-size: 1rem; }

/* Citation: filet double de 1 puis 3 pixels, guillemet en Baloo 2. */
.corps-article blockquote {
  position: relative;
  margin: 0 0 1.6em;
  padding: 2.1rem 0 .3rem 1.6rem;
  background-image: linear-gradient(to right,
    var(--vert) 0, var(--vert) 1px,
    rgba(255, 255, 255, 0) 1px, rgba(255, 255, 255, 0) 3px,
    var(--vert) 3px, var(--vert) 6px,
    rgba(255, 255, 255, 0) 6px);
  background-repeat: no-repeat;
  font-size: 1.08rem;
  line-height: 1.66;
  color: var(--encre);
}
.corps-article blockquote::before {
  content: "\00AB";
  position: absolute;
  left: 1.6rem;
  top: .1rem;
  font-family: var(--titre);
  font-weight: 700;
  font-size: 2.2rem;
  line-height: 1;
  color: var(--vert);
}
.corps-article blockquote > :last-child { margin-bottom: 0; }

.corps-article figure {
  margin: 0 0 1.6em;
  background: var(--papier);
  border: 1px solid var(--vert);
  padding: 10px;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
}
.corps-article figcaption {
  font-family: var(--frappe);
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--encre-douce);
  padding: .7rem .2rem .1rem;
}

/* 21.7 Appel a l action de fin d article ---------------------------------- */

.appel-article {
  position: relative;
  max-width: 68ch;
  margin: clamp(2.2rem, 4vw, 3rem) 0 0;
  background: var(--papier);
  border: 1px solid var(--vert);
  padding: clamp(1.4rem, 2.6vw, 2rem);
  clip-path: polygon(0 0, calc(100% - var(--biseau)) 0, 100% var(--biseau), 100% 100%, 0 100%);
  filter: drop-shadow(0 16px 30px rgba(24, 33, 16, .16));
}
.appel-article p:last-of-type { margin-bottom: 1.3rem; }

/* 21.8 Encart auteur ------------------------------------------------------- */

.encart-auteur {
  position: relative;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: clamp(1rem, 2.4vw, 1.6rem);
  align-items: start;
  max-width: 68ch;
  margin: clamp(2.2rem, 4vw, 3rem) 0 0;
  padding: clamp(1.2rem, 2.4vw, 1.7rem);
  background: var(--ivoire);
  border: 1px solid var(--filet);
  clip-path: polygon(0 0, calc(100% - var(--biseau)) 0, 100% var(--biseau), 100% 100%, 0 100%);
}
.encart-auteur img {
  width: 96px;
  height: 96px;
  background: var(--papier);
  border: 1px solid var(--vert);
  padding: 5px;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
}
.encart-auteur__nom {
  font-family: var(--titre);
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--encre);
  margin: 0 0 .35rem;
  max-width: none;
}
.encart-auteur p { font-size: .97rem; margin-bottom: .7rem; }
.encart-auteur p:last-child { margin-bottom: 0; }

/* 21.9 Bloc A lire aussi --------------------------------------------------- */

.lire-aussi { position: relative; }
.lire-aussi .paraphe { margin-bottom: .5rem; }
.lire-aussi__intro { max-width: 62ch; color: var(--encre-douce); }

.renvoi {
  position: relative;
  display: flex;
  flex-direction: column;
  margin: 0;
  background: var(--papier);
  border: 1px solid var(--filet);
  clip-path: polygon(0 0, calc(100% - var(--biseau)) 0, 100% var(--biseau), 100% 100%, 0 100%);
  filter: drop-shadow(0 10px 18px rgba(24, 33, 16, .12));
  transition: transform var(--transition), border-color var(--transition);
}
.renvoi:hover,
.renvoi:focus-within { transform: translateY(-3px); border-color: var(--vert); }
.renvoi__vue { margin: 0; background: var(--ivoire); border-bottom: 1px solid var(--filet); overflow: hidden; }
.renvoi__vue img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; filter: saturate(.94); }
.renvoi__texte { padding: clamp(.9rem, 1.6vw, 1.2rem); display: flex; flex-direction: column; flex: 1 1 auto; }
.renvoi__titre {
  font-family: var(--titre);
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.26;
  letter-spacing: -0.01em;
  margin: 0 0 .5rem;
  max-width: none;
}
.renvoi__titre a { color: var(--encre); text-decoration: none; }
.renvoi__titre a:hover, .renvoi__titre a:focus-visible { color: var(--vert); text-decoration: underline; }
.renvoi__titre a::after { content: ""; position: absolute; inset: 0; }
.renvoi__accroche {
  font-size: .93rem;
  line-height: 1.58;
  color: var(--encre-douce);
  margin: 0;
  max-width: none;
}

/* 21.10 Intitules de colonne du pied de page dans le magazine --------------
   Les pages du magazine reservent les balises de titre au fil du texte:
   le contrat du gabarit n admet qu un h1 et aucun h2 hors du corps.
   Les intitules du pied de page reprennent donc exactement l habillage de
   .greffe h2 sur un paragraphe, l apparence reste identique au reste du site. */

.greffe .greffe__titre {
  font-size: 1rem;
  font-family: var(--frappe);
  font-weight: 400;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--vert);
  margin: 0 0 1rem;
  max-width: none;
  line-height: 1.3;
}
.greffe .reseau .greffe__titre { margin-bottom: .8rem; }

/* 21.11 Adaptations d ecran du magazine ------------------------------------ */

@media (max-width: 1080px) {
  .cahier { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .cahier, .cahier--duo { grid-template-columns: minmax(0, 1fr); }
  .chapo { font-size: 1.14rem; }
  .corps-article { font-size: 1.02rem; }
  .corps-article h2 + p { font-size: 1.12rem; }
  .encart-auteur { grid-template-columns: minmax(0, 1fr); }
  .derniers__haut { align-items: flex-start; }
}

@media print {
  .lire-aussi, .appel-article { display: none !important; }
  .corps-article { max-width: none; }
  .feuillet, .renvoi { filter: none; }
}

/* Maillage du reseau, bandeau de pied de page. Mise en page seulement:
   les couleurs, la police et le survol restent ceux du site.
   grid-column et flex-basis font tenir le bandeau sur toute la largeur,
   que le pied de page soit une grille ou une boite flexible.
   Les raccourcis margin et padding sont evites: ils ecraseraient le retrait
   interieur d une colonne dont le bandeau herite la classe. */
[data-reseau-bloc]{grid-column:1/-1;flex-basis:100%;width:100%;margin-top:26px;padding-top:18px}
[data-reseau-titre]{font-size:.8rem;line-height:1.3;letter-spacing:.09em;text-transform:uppercase;
  font-weight:600;margin:0 0 12px}
ul[data-reseau]{list-style:none;display:flex;flex-wrap:wrap;gap:10px 26px;margin:0;padding:0}
ul[data-reseau] li{margin:0;padding:0}
