/* ==========================================================================
   Encadro, feuille de style unique
   Vocabulaire de classes : la pochette de session d un accueil collectif
   de mineurs. Classeur, pochette, cartouche de badge, coche, jauge,
   creneau, agrafe, bordereau, hachures.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Jetons
   -------------------------------------------------------------------------- */

:root {
  --kraft: #F4EBDD;
  --kraft-fonce: #EBDFCB;
  --surface: #FBF5EA;
  --prune: #241A22;
  --brun: #6A5750;
  --encre: #8F1A83;
  --encre-texte: #FFF7F1;
  --prairie: #2E6B45;
  --filet: #D6C3A5;

  --titre: "Anton", "Arial Narrow", Impact, sans-serif;
  --courant: "Lato", "Segoe UI", Tahoma, sans-serif;
  --crayon: "Shadows Into Light", "Bradley Hand", cursive;

  --coupe: polygon(14px 0, 100% 0, 100% 100%, 0 100%, 0 14px);
  --coupe-fine: polygon(11px 0, 100% 0, 100% 100%, 0 100%, 0 11px);
  --coupe-large: polygon(28px 0, 100% 0, 100% 100%, 0 100%, 0 28px);

  --courbe: cubic-bezier(0.22, 0.61, 0.36, 1);
  --duree: 320ms;

  --large: 1.618fr;
  --etroit: 1fr;

  --marge: clamp(1.1rem, 5vw, 4.2rem);
  --colonne-max: 1220px;
}

/* Bande de hachures obliques a 38 degres, version CSS pour les lisieres */
:root {
  --ruban-hachures:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cg transform='rotate(38 14 14)' fill='none' stroke='%236A5750' stroke-linecap='round'%3E%3Cpath d='M6 -3 C7 8 5 18 6 31' stroke-width='1.6'/%3E%3Cpath d='M15 -3 C14 8 16 18 15 31' stroke-width='1.1'/%3E%3Cpath d='M23 -3 C24 8 22 18 23 31' stroke-width='2'/%3E%3C/g%3E%3C/svg%3E");
  --ruban-encre:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cg transform='rotate(38 14 14)' fill='none' stroke='%238F1A83' stroke-linecap='round'%3E%3Cpath d='M6 -3 C7 8 5 18 6 31' stroke-width='1.6'/%3E%3Cpath d='M15 -3 C14 8 16 18 15 31' stroke-width='1.1'/%3E%3Cpath d='M23 -3 C24 8 22 18 23 31' stroke-width='2'/%3E%3C/g%3E%3C/svg%3E");
}

/* --------------------------------------------------------------------------
   2. Fondations
   -------------------------------------------------------------------------- */

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

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

body {
  margin: 0;
  background-color: var(--kraft);
  color: var(--prune);
  font-family: var(--courant);
  font-size: 1.0625rem;
  line-height: 1.7;
  font-weight: 400;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 { margin: 0 0 0.6em; }

h1, h2 {
  font-family: var(--titre);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.06;
}

h1 { font-size: clamp(2.3rem, 5.6vw, 3.4rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.2rem); }

h3 {
  font-family: var(--courant);
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.3;
}

h4 {
  font-family: var(--courant);
  font-weight: 700;
  font-size: 1.0625rem;
}

p { margin: 0 0 1.1em; max-width: 68ch; }

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

small, .menu-fin { font-size: 0.8125rem; }

:focus-visible {
  outline: 3px solid var(--prairie);
  outline-offset: 3px;
}

.evitement {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--prune);
  color: var(--kraft);
  padding: 0.7rem 1.2rem;
  z-index: 200;
}
.evitement:focus { left: 0.6rem; top: 0.6rem; }

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

/* --------------------------------------------------------------------------
   3. Surtitres au crayon, annotations
   -------------------------------------------------------------------------- */

.crayon {
  font-family: var(--crayon);
  font-size: 1.1rem;
  line-height: 1.4;
  color: var(--brun);
  display: inline-block;
  transform: rotate(-2deg);
  margin: 0 0 0.55rem;
}

.crayon::before {
  content: "";
  display: inline-block;
  width: 26px; height: 9px;
  margin-right: 0.5rem;
  vertical-align: middle;
  background: no-repeat center/26px 9px
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='9' viewBox='0 0 26 9'%3E%3Cg fill='none' stroke='%238F1A83' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='M1 5 C8 3 15 6 24 4'/%3E%3Cpath d='M19 1 L24.5 4.2 L19 7.5'/%3E%3C/g%3E%3C/svg%3E");
}

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

.annotation {
  font-family: var(--crayon);
  font-size: 1.1rem;
  color: var(--encre);
  transform: rotate(-2deg);
  display: inline-block;
}

.mention-encre { color: var(--encre); font-weight: 700; }
.mention-prairie { color: var(--prairie); font-weight: 700; }

/* --------------------------------------------------------------------------
   4. Grille asymetrique fondee sur le nombre d or
   -------------------------------------------------------------------------- */

.classeur-page {
  width: 100%;
  max-width: var(--colonne-max);
  margin-inline: auto;
  padding-inline: var(--marge);
}

.doree {
  display: grid;
  grid-template-columns: var(--large) var(--etroit);
  gap: clamp(1.6rem, 4vw, 3.6rem);
  align-items: start;
}

.doree--inverse { grid-template-columns: var(--etroit) var(--large); }

.doree--trois {
  grid-template-columns: var(--large) var(--etroit) var(--etroit);
}

.doree--tarifs {
  grid-template-columns: var(--etroit) var(--large) var(--etroit);
  align-items: start;
  gap: clamp(1.4rem, 2.4vw, 2rem);
}

@media (max-width: 900px) {
  .doree,
  .doree--inverse,
  .doree--trois,
  .doree--tarifs { grid-template-columns: 1fr; }
}

/* Rythme vertical inegal : chaque pochette respecte le partage 61,8 / 38,2 */
.pochette {
  position: relative;
  padding-block: clamp(3.4rem, 7vw, 5.6rem) clamp(2.1rem, 4.4vw, 3.4rem);
}

.pochette--dense { padding-block: clamp(2.6rem, 5vw, 4rem); }

.pochette--kraft {
  background: var(--kraft-fonce);
  border-block: 1px solid var(--filet);
}

.pochette--kraft::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 3px;
  background: var(--prune);
  opacity: 0.16;
}

.pochette__entete { max-width: 62ch; margin-bottom: clamp(1.8rem, 3.4vw, 2.8rem); }

.pochette__entete--large { max-width: 74ch; }

/* --------------------------------------------------------------------------
   5. Motif signature : hachures obliques dessinees a la main
   -------------------------------------------------------------------------- */

.hachures {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.22;
  pointer-events: none;
}

.hachures--encre { opacity: 0.3; }

.zone-hachuree {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  clip-path: var(--coupe-large);
  background: var(--kraft);
  border: 1px solid var(--filet);
}

.zone-hachuree__contenu {
  position: relative;
  z-index: 2;
  padding: clamp(1.4rem, 3vw, 2.2rem);
}

.agrafe-hachures {
  height: 24px;
  background: var(--ruban-hachures) repeat-x left center;
  background-size: 28px 28px;
  opacity: 0.5;
}

/* --------------------------------------------------------------------------
   6. Cartouche de badge, forme signature
   -------------------------------------------------------------------------- */

.cartouche {
  position: relative;
  background: var(--prune);
  clip-path: var(--coupe);
  padding: clamp(1.3rem, 2.4vw, 1.9rem) clamp(1.2rem, 2.2vw, 1.7rem) clamp(1.3rem, 2.4vw, 1.9rem) clamp(1.7rem, 3vw, 2.3rem);
}

.cartouche::before {
  content: "";
  position: absolute;
  inset: 1px;
  background: var(--surface);
  clip-path: var(--coupe-fine);
  z-index: 0;
}

.cartouche::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid var(--filet);
  clip-path: var(--coupe-fine);
  pointer-events: none;
  z-index: 1;
  background-image:
    radial-gradient(circle 2.5px at 10px 24px, var(--filet) 98%, transparent 100%),
    radial-gradient(circle 2.5px at 10px 44px, var(--filet) 98%, transparent 100%);
  background-repeat: no-repeat;
}

.cartouche > * { position: relative; z-index: 2; }

.cartouche--kraft::before { background: var(--kraft); }

.cartouche--sombre { background: var(--encre); }
.cartouche--sombre::before { background: var(--prune); }
.cartouche--sombre::after { border-color: rgba(214, 195, 165, 0.35); }
.cartouche--sombre,
.cartouche--sombre h2,
.cartouche--sombre h3 { color: var(--kraft); }
.cartouche--sombre p { color: var(--kraft-fonce); }

/* --------------------------------------------------------------------------
   7. Boutons etiquette
   -------------------------------------------------------------------------- */

.etiquette {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--courant);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  padding: 0.92rem 1.5rem;
  border: 0;
  background: transparent;
  color: var(--encre-texte);
  text-decoration: none;
  cursor: pointer;
  transition: transform 200ms var(--courbe);
}

.etiquette::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--encre);
  clip-path: var(--coupe);
  filter: drop-shadow(3px 3px 0 var(--prune));
  transition: filter 200ms var(--courbe);
}

.etiquette:hover { transform: translateY(2px); color: var(--encre-texte); }
.etiquette:hover::before { filter: drop-shadow(1px 1px 0 var(--prune)); }

.etiquette--creuse { color: var(--prune); }
.etiquette--creuse::before {
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--prune);
  filter: none;
}
.etiquette--creuse::after {
  content: "";
  position: absolute;
  inset: 3px;
  z-index: -1;
  clip-path: var(--coupe-fine);
  box-shadow: inset 0 0 0 1px var(--prune);
  background: var(--ruban-hachures) repeat left center;
  background-size: 28px 28px;
  opacity: 0;
  transition: opacity 200ms var(--courbe);
}
.etiquette--creuse:hover { color: var(--prune); }
.etiquette--creuse:hover::after { opacity: 0.18; }

.etiquette--petite { font-size: 0.9375rem; padding: 0.7rem 1.1rem; }

.etiquette--pleine-largeur { width: 100%; justify-content: center; }

.duo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1rem;
  align-items: center;
  margin-block: 1.6rem 1.2rem;
}

/* --------------------------------------------------------------------------
   8. Pictogrammes morphants
   -------------------------------------------------------------------------- */

.picto {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 36px;
  flex: none;
  color: var(--prune);
}

.picto--petit { width: 22px; height: 22px; }

.picto svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.picto .etat-a {
  opacity: 1;
  transition: opacity var(--duree) var(--courbe);
}

.picto .etat-b {
  opacity: 0;
  color: var(--encre);
  clip-path: inset(0 100% 0 0);
  transition: opacity var(--duree) var(--courbe), clip-path var(--duree) var(--courbe);
}

.fiche-outil:hover .picto .etat-a,
.fiche-outil:focus-within .picto .etat-a,
.picto--actif .etat-a { opacity: 0; }

.fiche-outil:hover .picto .etat-b,
.fiche-outil:focus-within .picto .etat-b,
.picto--actif .etat-b { opacity: 1; clip-path: inset(0 0 0 0); }

/* --------------------------------------------------------------------------
   9. En tete, classeur fixe
   -------------------------------------------------------------------------- */

.classeur {
  position: fixed;
  inset: 0 0 auto 0;
  height: 72px;
  z-index: 90;
  background: var(--kraft);
  border-bottom: 1px solid var(--prune);
  box-shadow: 0 4px 0 -1px var(--filet);
  transition: box-shadow 200ms var(--courbe), height 200ms var(--courbe);
}

.classeur.est-defile { box-shadow: 0 2px 0 -1px var(--filet); }

.classeur__barre {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  max-width: var(--colonne-max);
  margin-inline: auto;
  padding-inline: var(--marge);
}

.marque {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--prune);
  font-family: var(--titre);
  font-size: 1.55rem;
  letter-spacing: 0.02em;
  line-height: 1;
}

.marque svg { width: 32px; height: 32px; flex: none; }
.marque:hover { color: var(--encre); }

.classeur__ancres {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.classeur__ancre {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.6rem;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--prune);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.classeur__ancre:hover { color: var(--encre); border-bottom-color: var(--encre); }
.classeur__ancre[aria-current="true"] { border-bottom-color: var(--encre); color: var(--encre); }

.classeur__bascule {
  display: none;
  margin-left: auto;
  width: 46px; height: 42px;
  background: transparent;
  border: 1px solid var(--prune);
  cursor: pointer;
  clip-path: var(--coupe-fine);
  align-items: center;
  justify-content: center;
}

.classeur__bascule svg { width: 24px; height: 20px; stroke: var(--prune); fill: none; stroke-width: 2; stroke-linecap: round; }

.classeur__action { margin-left: 0.5rem; }

@media (max-width: 980px) {
  .classeur__ancres,
  .classeur__action { display: none; }
  .classeur__bascule { display: inline-flex; }
}

/* Panneau plein ecran */
.panneau {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: var(--kraft);
  padding: 5.4rem var(--marge) 2rem;
  overflow-y: auto;
  display: none;
}

.panneau.est-ouvert { display: block; }

.panneau::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ruban-hachures) repeat left top;
  background-size: 28px 28px;
  opacity: 0.12;
  pointer-events: none;
}

.panneau__fermer {
  position: absolute;
  top: 15px; right: var(--marge);
  width: 46px; height: 42px;
  background: transparent;
  border: 1px solid var(--prune);
  clip-path: var(--coupe-fine);
  cursor: pointer;
  color: var(--prune);
  font-size: 1.2rem;
  font-weight: 700;
}

.panneau__liste {
  position: relative;
  list-style: none;
  margin: 0 0 1.6rem;
  padding: 0;
  border-top: 1px solid var(--filet);
}

.panneau__liste a {
  display: block;
  padding: 0.95rem 0.2rem;
  border-bottom: 1px solid var(--filet);
  font-family: var(--titre);
  font-size: 1.5rem;
  color: var(--prune);
  text-decoration: none;
}

.panneau__liste a:hover { color: var(--encre); }

/* --------------------------------------------------------------------------
   10. Hero, ouverture de session
   -------------------------------------------------------------------------- */

.ouverture {
  padding-top: calc(72px + clamp(2.2rem, 5vw, 4.2rem));
  padding-bottom: clamp(2.4rem, 5vw, 4rem);
  position: relative;
  overflow: hidden;
}

.ouverture::before {
  content: "";
  position: absolute;
  top: 72px; right: -6%;
  width: 38.2%; height: 62%;
  background: var(--ruban-hachures) repeat left top;
  background-size: 28px 28px;
  opacity: 0.16;
  pointer-events: none;
}

.ouverture__promesse p { font-size: 1.15rem; color: var(--brun); }
.ouverture__promesse p strong { color: var(--prune); }

.reassurance {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.9375rem;
  color: var(--brun);
  border-top: 1px solid var(--filet);
  padding-top: 0.9rem;
  max-width: 60ch;
}

.compteur {
  display: grid;
  gap: 0.9rem;
}

.compteur__ligne {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.8rem;
  border-bottom: 1px dashed var(--filet);
  padding-bottom: 0.5rem;
}

.compteur__jours {
  font-family: var(--titre);
  font-size: 1.8rem;
  line-height: 1;
  color: var(--encre);
}

.compteur__jours--vert { color: var(--prairie); }

.compteur__libelle { font-size: 0.875rem; color: var(--brun); text-align: right; }

.compteur__note {
  font-family: var(--crayon);
  font-size: 1.1rem;
  color: var(--brun);
  transform: rotate(-2deg);
  display: block;
  margin-top: 0.6rem;
}

/* --------------------------------------------------------------------------
   11. Photographies en cartouche
   -------------------------------------------------------------------------- */

.vue {
  position: relative;
  margin: 0;
}

.vue__cadre {
  position: relative;
  background: var(--prune);
  padding: 1px;
  clip-path: var(--coupe-large);
}

.vue__cadre img {
  width: 100%;
  height: auto;
  display: block;
  clip-path: var(--coupe-large);
  filter: saturate(0.86) contrast(0.94) brightness(1.04) sepia(0.12);
}

.vue__voile {
  position: absolute;
  inset: 1px;
  clip-path: var(--coupe-large);
  background: var(--encre);
  mix-blend-mode: multiply;
  opacity: 0.08;
  pointer-events: none;
}

.vue__ruban {
  height: 24px;
  background: var(--ruban-hachures) repeat-x left center;
  background-size: 28px 28px;
  opacity: 0.55;
  margin-top: 6px;
}

.vue figcaption {
  font-family: var(--crayon);
  font-size: 1.1rem;
  color: var(--brun);
  transform: rotate(-1.4deg);
  margin-top: 0.5rem;
  max-width: 46ch;
}

.vue--debord { margin-inline-end: clamp(-2.4rem, -3vw, 0rem); }

/* --------------------------------------------------------------------------
   12. Listes de coches, pieces du dossier
   -------------------------------------------------------------------------- */

.coches {
  list-style: none;
  margin: 0 0 1.2rem;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.coches li {
  position: relative;
  padding-left: 1.9rem;
  font-size: 1rem;
}

.coches li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.42em;
  width: 13px; height: 13px;
  border: 1.5px solid var(--prairie);
  background: no-repeat center/9px 9px
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='9' viewBox='0 0 9 9'%3E%3Cpath d='M1 4.6 L3.4 7.2 L8 1.4' fill='none' stroke='%232E6B45' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.coches--manquant li::before {
  border-color: var(--encre);
  background-image: none;
}

.puces-kraft {
  list-style: none;
  margin: 0 0 1.2rem;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.puces-kraft li { position: relative; padding-left: 1.4rem; }
.puces-kraft li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 8px; height: 8px;
  background: var(--brun);
}

/* --------------------------------------------------------------------------
   13. Jauges de taux
   -------------------------------------------------------------------------- */

.jauge {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 0.9rem;
}

.jauge__tete {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  font-size: 0.875rem;
  color: var(--brun);
  font-weight: 700;
}

.jauge__barre {
  position: relative;
  height: 16px;
  border: 1px solid var(--filet);
  background: var(--ruban-encre) repeat left center;
  background-size: 28px 28px;
  overflow: hidden;
}

.jauge__part {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--prairie);
  width: 0;
  transition: width 900ms var(--courbe);
}

.jauge__part--alerte { background: var(--encre); }

.est-visible .jauge__part { width: var(--part, 50%); }

/* --------------------------------------------------------------------------
   14. Etapes de la solution
   -------------------------------------------------------------------------- */

.temps {
  counter-reset: temps;
  display: grid;
  gap: clamp(1rem, 2vw, 1.4rem);
  list-style: none;
  margin: 0;
  padding: 0;
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 780px) { .temps { grid-template-columns: 1fr; } }

.temps > li {
  counter-increment: temps;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--filet);
  border-left: 4px solid var(--prune);
  padding: 1.3rem 1.4rem 1.1rem 3.4rem;
  clip-path: var(--coupe);
}

.temps > li::before {
  content: counter(temps);
  position: absolute;
  left: 1.1rem; top: 1.1rem;
  font-family: var(--titre);
  font-size: 1.7rem;
  line-height: 1;
  color: var(--encre);
}

.temps h3 { margin-bottom: 0.35rem; }
.temps p { margin: 0; font-size: 1rem; color: var(--brun); }

/* --------------------------------------------------------------------------
   15. Fonctionnalites
   -------------------------------------------------------------------------- */

.rangee-outils {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}

.rangee-outils--dore { grid-template-columns: var(--large) var(--etroit) var(--etroit); }

@media (max-width: 980px) {
  .rangee-outils,
  .rangee-outils--dore { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .rangee-outils,
  .rangee-outils--dore { grid-template-columns: 1fr; }
}

.fiche-outil {
  transition: transform 200ms var(--courbe);
}

.fiche-outil:hover { transform: translateY(-3px); }

.fiche-outil h3 { margin-top: 0.7rem; }
.fiche-outil p { margin: 0 0 0.7rem; font-size: 1rem; color: var(--brun); }
.fiche-outil p:last-child { margin-bottom: 0; }

.etiquette-champ {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--prairie);
  border: 1px solid var(--prairie);
  padding: 0.1rem 0.5rem;
  margin-bottom: 0.5rem;
}

.etiquette-champ--encre { color: var(--encre); border-color: var(--encre); }

/* --------------------------------------------------------------------------
   16. Avantages, gains sur la saison
   -------------------------------------------------------------------------- */

.gains {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1rem, 2.4vw, 1.8rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (max-width: 780px) { .gains { grid-template-columns: 1fr; } }

.gain {
  border-top: 3px solid var(--prune);
  padding-top: 0.9rem;
}

.gain__chiffre {
  font-family: var(--titre);
  font-size: 2.8rem;
  line-height: 1;
  color: var(--prune);
  display: block;
  margin-bottom: 0.3rem;
}

.gain__chiffre em { font-style: normal; color: var(--encre); }
.gain h3 { font-size: 1.1rem; margin-bottom: 0.25rem; }
.gain p { margin: 0; color: var(--brun); font-size: 0.9875rem; }

/* --------------------------------------------------------------------------
   17. Preuve, temoignages et bandeau de chiffres
   -------------------------------------------------------------------------- */

.temoins {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}

@media (max-width: 980px) { .temoins { grid-template-columns: 1fr; } }

.temoin blockquote {
  margin: 0 0 1rem;
  font-size: 1.0625rem;
}

.temoin blockquote p:last-child { margin-bottom: 0; }

.temoin figcaption {
  border-top: 1px solid var(--filet);
  padding-top: 0.7rem;
  font-size: 0.875rem;
  color: var(--brun);
}

.temoin figcaption strong { display: block; color: var(--prune); font-size: 0.9375rem; }

.bandeau-chiffres {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--filet);
  border: 1px solid var(--filet);
  margin-top: clamp(1.8rem, 3.4vw, 2.8rem);
}

@media (max-width: 780px) { .bandeau-chiffres { grid-template-columns: repeat(2, 1fr); } }

.chiffre {
  position: relative;
  background: var(--kraft);
  padding: 1.3rem 1.1rem;
  overflow: hidden;
}

.chiffre__valeur {
  position: relative;
  z-index: 2;
  font-family: var(--titre);
  font-size: 2.8rem;
  line-height: 1;
  color: var(--prune);
  display: block;
}

.chiffre__libelle {
  position: relative;
  z-index: 2;
  display: block;
  font-size: 0.8125rem;
  color: var(--brun);
  margin-top: 0.35rem;
}

.chiffre--encre .chiffre__valeur { color: var(--encre); }

.chiffre--encre::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ruban-encre) repeat left top;
  background-size: 28px 28px;
  opacity: 0.3;
  z-index: 1;
}

/* --------------------------------------------------------------------------
   18. Tarifs
   -------------------------------------------------------------------------- */

.formule { display: flex; flex-direction: column; height: 100%; }

.formule--phare { margin-top: -24px; }

@media (max-width: 900px) { .formule--phare { margin-top: 0; } }

.formule__nom { font-family: var(--titre); font-size: 1.7rem; margin-bottom: 0.2rem; letter-spacing: 0.01em; }
.formule__cible { font-size: 0.9rem; color: var(--brun); margin-bottom: 0.9rem; }

.formule__prix {
  font-family: var(--titre);
  font-size: 3rem;
  line-height: 1;
  color: var(--prune);
  display: block;
}

.formule--phare .formule__prix { color: var(--encre); }

.formule__unite { display: block; font-size: 0.875rem; color: var(--brun); margin-bottom: 1rem; }

.formule .coches { flex: 1 1 auto; }
.formule .coches li { font-size: 0.9375rem; }

.formule__note {
  font-family: var(--crayon);
  font-size: 1.1rem;
  color: var(--encre);
  transform: rotate(-2deg);
  display: block;
  margin-bottom: 0.2rem;
}

.tarifs__pied {
  margin-top: clamp(1.6rem, 3vw, 2.4rem);
  border-top: 1px solid var(--filet);
  padding-top: 1.2rem;
}

/* --------------------------------------------------------------------------
   19. FAQ
   -------------------------------------------------------------------------- */

.questions {
  border-top: 1px solid var(--prune);
}

.question { border-bottom: 1px solid var(--filet); }

.question__bouton {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 1.05rem 0.2rem;
  cursor: pointer;
  font-family: var(--courant);
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.4;
  color: var(--prune);
}

.question__bouton:hover { color: var(--encre); }

.question__marque {
  flex: none;
  width: 16px; height: 16px;
  margin-top: 0.28em;
  border: 1.5px solid var(--encre);
  position: relative;
  transition: background var(--duree) var(--courbe), border-color var(--duree) var(--courbe);
}

.question__marque::after {
  content: "";
  position: absolute;
  inset: 2px;
  background: no-repeat center/10px 10px
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath d='M1 5.2 L3.8 8 L9 1.6' fill='none' stroke='%23FFF7F1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  opacity: 0;
  clip-path: inset(0 100% 0 0);
  transition: opacity var(--duree) var(--courbe), clip-path var(--duree) var(--courbe);
}

.question__bouton[aria-expanded="true"] .question__marque { background: var(--encre); }
.question__bouton[aria-expanded="true"] .question__marque::after { opacity: 1; clip-path: inset(0); }

.question__reponse {
  padding: 0 0 1.15rem 1.9rem;
}

.question__reponse[hidden] { display: none; }
.question__reponse p { margin-bottom: 0.7rem; color: var(--brun); }
.question__reponse p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   20. Bordereau de contact
   -------------------------------------------------------------------------- */

.bordereau {
  display: grid;
  gap: 1rem 1.4rem;
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 680px) { .bordereau { grid-template-columns: 1fr; } }

.champ { display: flex; flex-direction: column; gap: 0.32rem; }
.champ--long { grid-column: 1 / -1; }

.champ label { font-weight: 700; font-size: 0.9375rem; }

.champ input,
.champ select,
.champ textarea {
  font-family: var(--courant);
  font-size: 1rem;
  color: var(--prune);
  background: var(--surface);
  border: 1px solid var(--brun);
  padding: 0.65rem 0.7rem;
  width: 100%;
}

.champ textarea { resize: vertical; min-height: 8rem; }

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

.champ__aide { font-size: 0.8125rem; color: var(--brun); }

.consentement {
  grid-column: 1 / -1;
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.9375rem;
  border-top: 1px solid var(--filet);
  padding-top: 0.9rem;
}

.consentement input { margin-top: 0.32rem; width: 18px; height: 18px; flex: none; accent-color: var(--encre); }

.bordereau__envoi { grid-column: 1 / -1; }

.rappel-delai h3 { margin-bottom: 0.4rem; }
.rappel-delai p { font-size: 0.9875rem; color: var(--brun); }

/* --------------------------------------------------------------------------
   21. Pied de page
   -------------------------------------------------------------------------- */

.pied {
  background: var(--prune);
  color: var(--kraft-fonce);
  padding-block: clamp(2.6rem, 5vw, 4rem) 1.4rem;
  position: relative;
}

.pied::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 24px;
  background: var(--ruban-hachures) repeat-x left center;
  background-size: 28px 28px;
  opacity: 0.28;
}

.pied a { color: var(--kraft); text-decoration: none; }
.pied a:hover { color: #F2A6E6; text-decoration: underline; }

.pied__colonnes {
  display: grid;
  grid-template-columns: 1.618fr 1fr 1fr 1.2fr;
  gap: clamp(1.4rem, 3vw, 2.6rem);
}

@media (max-width: 980px) { .pied__colonnes { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .pied__colonnes { grid-template-columns: 1fr; } }

.pied h2 {
  font-family: var(--courant);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #C9A9C4;
  margin-bottom: 0.8rem;
}

.pied ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.42rem; font-size: 0.9375rem; }

.pied__marque {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--titre);
  font-size: 1.5rem;
  color: var(--kraft);
  text-decoration: none;
  margin-bottom: 0.7rem;
}

.pied__marque svg { width: 30px; height: 30px; }

.pied__phrase { color: var(--kraft-fonce); font-size: 0.9375rem; max-width: 40ch; }

.reseaux { display: flex; flex-wrap: wrap; gap: 0.5rem 0.9rem; font-size: 0.875rem; margin-top: 0.8rem; }

.pied__editeur { font-size: 0.8125rem; color: #C9A9C4; margin-top: 0.9rem; }

.pied__barre {
  margin-top: clamp(1.8rem, 3vw, 2.6rem);
  border-top: 1px solid rgba(214, 195, 165, 0.3);
  padding-top: 1rem;
  font-size: 0.8125rem;
  color: #C9A9C4;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  justify-content: space-between;
}

/* --------------------------------------------------------------------------
   22. Pages internes, contenu redactionnel
   -------------------------------------------------------------------------- */

.page-interne {
  padding-top: calc(72px + clamp(2rem, 4vw, 3.4rem));
  padding-bottom: clamp(2.4rem, 5vw, 4rem);
}

.fil {
  font-size: 0.8125rem;
  color: var(--brun);
  margin-bottom: 1.2rem;
}

.fil ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; padding: 0; }
.fil li::after { content: "/"; margin-left: 0.4rem; color: var(--filet); }
.fil li:last-child::after { content: ""; }

.texte-long { max-width: 68ch; }
.texte-long h2 { margin-top: 2.2rem; }
.texte-long h3 { margin-top: 1.6rem; }
.texte-long ul, .texte-long ol { padding-left: 1.2rem; }
.texte-long li { margin-bottom: 0.42rem; }

.chapeau {
  font-size: 1.15rem;
  color: var(--brun);
  max-width: 62ch;
}

.portrait {
  clip-path: var(--coupe-large);
  border: 1px solid var(--prune);
}

.sommaire-legal {
  background: var(--surface);
  border: 1px solid var(--filet);
  padding: 1.1rem 1.3rem;
  margin-bottom: 2rem;
}

.sommaire-legal ol { margin: 0; padding-left: 1.2rem; }

.plan-liste { display: grid; gap: 1rem; list-style: none; margin: 0; padding: 0; }
.plan-liste > li { border-left: 3px solid var(--filet); padding-left: 1rem; }
.plan-liste h3 { margin-bottom: 0.2rem; }
.plan-liste p { margin: 0; color: var(--brun); font-size: 0.9875rem; }

.centre-page { text-align: center; max-width: 58ch; margin-inline: auto; }
.centre-page p { margin-inline: auto; }
.centre-page .duo-actions { justify-content: center; }

/* --------------------------------------------------------------------------
   23. Apparition au defilement
   -------------------------------------------------------------------------- */

.au-defilement {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 620ms var(--courbe), transform 620ms var(--courbe);
}

.au-defilement.est-visible { opacity: 1; transform: none; }

.au-defilement:nth-child(2) { transition-delay: 90ms; }
.au-defilement:nth-child(3) { transition-delay: 180ms; }
.au-defilement:nth-child(4) { transition-delay: 260ms; }

/* --------------------------------------------------------------------------
   24. Mouvement reduit
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
  }
  .au-defilement { opacity: 1; transform: none; }
  .picto .etat-b { clip-path: inset(0); }
}

/* --------------------------------------------------------------------------
   25. Impression
   -------------------------------------------------------------------------- */

@media print {
  .classeur, .panneau, .etiquette, .agrafe-hachures { display: none !important; }
  body { background: #FFFFFF; color: #000000; }
  .pochette { padding-block: 1rem; }
}

/* ==========================================================================
   MAGAZINE, Le Classeur de session
   Section ajoutee a la fin de la feuille, aucune regle precedente modifiee.
   Meme palette, meme cartouche de badge a coin coupe, memes hachures
   obliques a 38 degres et meme morphing de pictogramme que le reste du site.
   Le corps redactionnel ne porte aucune classe : ses balises nues sont mises
   en forme comme descendantes de .corps-article.
   ========================================================================== */

/* --------------------------------------------------------------------------
   26. Rubriques du pied de page en balise neutre
   Les pages du magazine reservent h2 et h3 au corps redactionnel. Les
   intitules de colonnes du pied y sont des paragraphes, rendus exactement
   comme les h2 du pied du reste du site.
   -------------------------------------------------------------------------- */

.pied__rubrique {
  font-family: var(--courant);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #C9A9C4;
  margin: 0 0 0.8rem;
  max-width: none;
}

/* --------------------------------------------------------------------------
   27. Tete du magazine
   -------------------------------------------------------------------------- */

.tete-magazine { max-width: 74ch; }
.tete-magazine h1 { margin-bottom: 0.5rem; }
.tete-magazine .chapeau { margin-bottom: 0; }

.reperes-magazine {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  align-items: baseline;
  margin-top: 1.3rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--filet);
  font-size: 0.8125rem;
  color: var(--brun);
}

.reperes-magazine__note {
  font-family: var(--crayon);
  font-size: 1.05rem;
  color: var(--encre);
  transform: rotate(-2deg);
  display: inline-block;
}

/* --------------------------------------------------------------------------
   28. Sommaire du magazine, grille doree et cartes d article
   -------------------------------------------------------------------------- */

.sommaire-articles {
  display: grid;
  grid-template-columns: var(--large) var(--etroit) var(--etroit);
  gap: clamp(1.2rem, 2.4vw, 1.9rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (max-width: 980px) { .sommaire-articles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .sommaire-articles { grid-template-columns: 1fr; } }

.fiche-article {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--prune);
  clip-path: var(--coupe);
  padding: 1px;
  transition: transform 200ms var(--courbe);
}

.fiche-article:hover { transform: translateY(-3px); }

.fiche-article__interieur {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  background: var(--surface);
  clip-path: var(--coupe-fine);
}

/* Les deux trous de perforation de la marge gauche, comme sur les cartouches */
.fiche-article__interieur::before {
  content: "";
  position: absolute;
  left: 9px;
  bottom: 1.4rem;
  width: 5px;
  height: 25px;
  background-image:
    radial-gradient(circle 2.5px at 2.5px 2.5px, var(--filet) 98%, transparent 100%),
    radial-gradient(circle 2.5px at 2.5px 22.5px, var(--filet) 98%, transparent 100%);
  background-repeat: no-repeat;
  z-index: 3;
}

.fiche-article__vue {
  position: relative;
  display: block;
  overflow: hidden;
}

.fiche-article__vue img {
  width: 100%;
  height: auto;
  display: block;
  filter: saturate(0.86) contrast(0.94) brightness(1.04) sepia(0.12);
  transition: filter var(--duree) var(--courbe);
}

.fiche-article__vue::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--encre);
  mix-blend-mode: multiply;
  opacity: 0.08;
  pointer-events: none;
}

.fiche-article:hover .fiche-article__vue img,
.fiche-article:focus-within .fiche-article__vue img {
  filter: saturate(0.98) contrast(0.98) brightness(1.02) sepia(0.05);
}

.fiche-article__ruban {
  height: 24px;
  background: var(--ruban-hachures) repeat-x left center;
  background-size: 28px 28px;
  opacity: 0.5;
}

.fiche-article__texte {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 1.05rem 1.2rem 1.15rem 1.9rem;
}

.fiche-article__tete {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.fiche-article__angle {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--encre);
  border: 1px solid var(--encre);
  padding: 0.1rem 0.5rem;
}

.fiche-article__titre {
  font-family: var(--titre);
  font-weight: 400;
  letter-spacing: 0.01em;
  font-size: 1.4rem;
  line-height: 1.14;
  margin: 0 0 0.5rem;
}

.fiche-article__titre a { color: var(--prune); text-decoration: none; }
.fiche-article__titre a:hover { color: var(--encre); text-decoration: underline; text-underline-offset: 3px; }

/* Le lien du titre couvre la carte entiere, image comprise */
.fiche-article__titre a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
}

.fiche-article__extrait {
  font-size: 0.9875rem;
  line-height: 1.6;
  color: var(--brun);
  margin: 0 0 1rem;
  max-width: none;
}

.fiche-article__pied {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--filet);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.3rem 0.9rem;
  font-size: 0.8125rem;
  color: var(--brun);
}

.fiche-article__lecture {
  font-family: var(--crayon);
  font-size: 1.05rem;
  color: var(--encre);
  transform: rotate(-2deg);
  display: inline-block;
}

/* Signature d animation : la case vide devient case cochee au survol */
.fiche-article:hover .picto .etat-a,
.fiche-article:focus-within .picto .etat-a { opacity: 0; }

.fiche-article:hover .picto .etat-b,
.fiche-article:focus-within .picto .etat-b { opacity: 1; clip-path: inset(0 0 0 0); }

/* Mise en avant du magazine sur la page d accueil */
.appel-magazine {
  margin-top: clamp(1.6rem, 3vw, 2.4rem);
  padding-top: 1.1rem;
  border-top: 1px solid var(--filet);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem 1.4rem;
}

.appel-magazine p { margin: 0; font-size: 0.9875rem; color: var(--brun); }

/* --------------------------------------------------------------------------
   29. En tete d un article, exergue de chapeau et image a la une
   -------------------------------------------------------------------------- */

.entete-article { max-width: 68ch; }
.entete-article h1 { margin-bottom: 0.6rem; }

.reperes-article {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 1.2rem;
  border-top: 1px solid var(--prune);
  border-bottom: 1px solid var(--filet);
  padding: 0.7rem 0;
  margin-bottom: 1.5rem;
  font-size: 0.8125rem;
  color: var(--brun);
}

.reperes-article__angle {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--encre);
  border: 1px solid var(--encre);
  padding: 0.1rem 0.5rem;
}

.reperes-article__lecture {
  font-family: var(--crayon);
  font-size: 1.05rem;
  color: var(--encre);
  transform: rotate(-2deg);
  display: inline-block;
}

.exergue {
  position: relative;
  max-width: 68ch;
  margin: 0 0 1.9rem;
  padding: 1.1rem 1.3rem 1.1rem 1.7rem;
  background: var(--kraft-fonce);
  clip-path: var(--coupe);
  font-size: 1.15rem;
  line-height: 1.62;
  color: var(--prune);
}

.exergue::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 0;
  width: 4px;
  background: var(--encre);
}

.vue--une { margin: 0 0 1.9rem; max-width: 920px; }

/* --------------------------------------------------------------------------
   30. Corps redactionnel, balises nues sans aucune classe
   -------------------------------------------------------------------------- */

.corps-article {
  max-width: 68ch;
  font-size: 1.0625rem;
  line-height: 1.7;
}

.corps-article > :first-child { margin-top: 0; }

.corps-article h2 {
  position: relative;
  font-family: var(--titre);
  font-weight: 400;
  letter-spacing: 0.01em;
  font-size: clamp(1.6rem, 3.2vw, 2.05rem);
  line-height: 1.08;
  color: var(--prune);
  margin: 2.5rem 0 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--filet);
}

.corps-article h2::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 56px;
  height: 3px;
  background: var(--encre);
}

.corps-article h3 {
  position: relative;
  font-family: var(--courant);
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.3;
  color: var(--prune);
  margin: 1.9rem 0 0.55rem;
  padding-left: 1.4rem;
}

.corps-article h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 8px;
  height: 8px;
  background: var(--brun);
}

.corps-article p {
  margin: 0 0 1.15em;
  max-width: 68ch;
}

.corps-article a {
  color: var(--encre);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.corps-article a:hover { color: var(--prune); }

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

.corps-article ul,
.corps-article ol {
  list-style: none;
  margin: 0 0 1.4rem;
  padding: 0;
  display: grid;
  gap: 0.5rem;
  max-width: 68ch;
}

.corps-article li { position: relative; padding-left: 1.6rem; }

.corps-article ul > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  background: var(--brun);
}

.corps-article ol { counter-reset: point-article; }

.corps-article ol > li {
  counter-increment: point-article;
  padding-left: 2.1rem;
}

.corps-article ol > li::before {
  content: counter(point-article);
  position: absolute;
  left: 0;
  top: -0.05em;
  font-family: var(--titre);
  font-size: 1.25rem;
  line-height: 1.4;
  color: var(--encre);
}

.corps-article li > ul,
.corps-article li > ol { margin: 0.5rem 0 0; }

/* Tableau recapitulatif, quadrillage de feuille de presence */
.corps-article table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--prune);
  margin: 0 0 1.6rem;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.corps-article thead { background: var(--prune); }

.corps-article th {
  text-align: left;
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--kraft);
  padding: 0.6rem 0.75rem;
  border-right: 1px solid rgba(214, 195, 165, 0.35);
}

.corps-article th:last-child { border-right: 0; }

.corps-article tbody th {
  background: var(--kraft-fonce);
  color: var(--prune);
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.9375rem;
  border-right: 1px solid var(--filet);
  border-top: 1px solid var(--filet);
}

.corps-article td {
  padding: 0.6rem 0.75rem;
  border-top: 1px solid var(--filet);
  border-right: 1px solid var(--filet);
  vertical-align: top;
  color: var(--prune);
}

.corps-article td:last-child { border-right: 0; }
.corps-article tbody tr:nth-child(even) td { background: var(--kraft); }

@media (max-width: 640px) {
  .corps-article table { display: block; overflow-x: auto; }
}

/* Encadre : le cartouche de badge, forme signature du projet */
.corps-article aside {
  position: relative;
  background: var(--prune);
  clip-path: var(--coupe);
  padding: 1.35rem 1.4rem 1.25rem 2rem;
  margin: 2rem 0;
}

.corps-article aside::before {
  content: "";
  position: absolute;
  inset: 1px;
  background: var(--kraft);
  clip-path: var(--coupe-fine);
  z-index: 0;
}

.corps-article aside::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid var(--filet);
  clip-path: var(--coupe-fine);
  pointer-events: none;
  z-index: 1;
  background-image:
    radial-gradient(circle 2.5px at 10px 24px, var(--filet) 98%, transparent 100%),
    radial-gradient(circle 2.5px at 10px 44px, var(--filet) 98%, transparent 100%);
  background-repeat: no-repeat;
}

.corps-article aside > * { position: relative; z-index: 2; }
.corps-article aside > :last-child { margin-bottom: 0; }
.corps-article aside p { font-size: 1rem; }

/* Citation : marge de classeur, filet encre et hachures en lisiere */
.corps-article blockquote {
  position: relative;
  margin: 2rem 0;
  padding: 0.4rem 1.2rem 0.4rem 1.5rem;
  border-left: 4px solid var(--encre);
  font-size: 1.0625rem;
  color: var(--prune);
}

.corps-article blockquote::after {
  content: "";
  position: absolute;
  left: -4px;
  bottom: -10px;
  width: 96px;
  height: 10px;
  background: var(--ruban-hachures) repeat-x left center;
  background-size: 28px 28px;
  opacity: 0.5;
}

.corps-article blockquote p:last-child { margin-bottom: 0; }

.corps-article figure { margin: 1.9rem 0; }

.corps-article figure img {
  clip-path: var(--coupe-large);
  border: 1px solid var(--prune);
}

.corps-article figcaption {
  font-family: var(--crayon);
  font-size: 1.05rem;
  color: var(--brun);
  transform: rotate(-1.4deg);
  margin-top: 0.5rem;
  max-width: 46ch;
}

/* --------------------------------------------------------------------------
   31. Appel a l action de fin d article et encart auteur
   -------------------------------------------------------------------------- */

.appel-article {
  margin-top: 2.6rem;
  max-width: 68ch;
}

.appel-article p { margin-bottom: 1rem; }
.appel-article p:last-of-type { margin-bottom: 1.2rem; }

.encart-auteur {
  position: relative;
  margin-top: 2.6rem;
  max-width: 68ch;
  background: var(--prune);
  clip-path: var(--coupe);
  padding: 1px;
}

.encart-auteur__interieur {
  position: relative;
  background: var(--kraft);
  clip-path: var(--coupe-fine);
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 1.2rem;
  padding: 1.3rem 1.4rem 1.3rem 1.9rem;
}

@media (max-width: 560px) { .encart-auteur__interieur { grid-template-columns: 1fr; } }

.encart-auteur img {
  clip-path: var(--coupe-fine);
  border: 1px solid var(--prune);
  filter: saturate(0.86) contrast(0.94) brightness(1.04) sepia(0.12);
}

.encart-auteur__nom {
  font-family: var(--titre);
  font-weight: 400;
  letter-spacing: 0.01em;
  font-size: 1.35rem;
  line-height: 1.1;
  color: var(--prune);
  margin: 0 0 0.15rem;
  max-width: none;
}

.encart-auteur__role {
  font-family: var(--crayon);
  font-size: 1.05rem;
  color: var(--brun);
  transform: rotate(-2deg);
  display: inline-block;
  margin: 0 0 0.5rem;
  max-width: none;
}

.encart-auteur__bio {
  font-size: 0.9875rem;
  color: var(--brun);
  margin: 0 0 0.6rem;
}

.encart-auteur__bio:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   32. Bloc A lire aussi
   -------------------------------------------------------------------------- */

.lire-aussi {
  margin-top: 2.8rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--prune);
}

.lire-aussi__titre {
  font-family: var(--titre);
  font-weight: 400;
  letter-spacing: 0.01em;
  font-size: 1.6rem;
  line-height: 1.1;
  color: var(--prune);
  margin: 0 0 1.2rem;
  max-width: none;
}

.lire-aussi__grille {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}

@media (max-width: 860px) { .lire-aussi__grille { grid-template-columns: 1fr; } }

.carte-liee {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--prune);
  background: var(--surface);
  border: 1px solid var(--filet);
  clip-path: var(--coupe);
  transition: transform 200ms var(--courbe);
}

.carte-liee:hover { transform: translateY(-3px); color: var(--prune); }

.carte-liee__vue {
  position: relative;
  display: block;
  overflow: hidden;
}

.carte-liee__vue img {
  width: 100%;
  height: auto;
  display: block;
  filter: saturate(0.86) contrast(0.94) brightness(1.04) sepia(0.12);
}

.carte-liee__vue::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 12px;
  background: var(--ruban-hachures) repeat-x left center;
  background-size: 28px 28px;
  opacity: 0.45;
}

.carte-liee__corps { display: block; padding: 0.9rem 1rem 1.1rem; }

.carte-liee__titre {
  display: block;
  font-family: var(--titre);
  font-weight: 400;
  letter-spacing: 0.01em;
  font-size: 1.15rem;
  line-height: 1.18;
  margin-bottom: 0.4rem;
}

.carte-liee:hover .carte-liee__titre { color: var(--encre); }

.carte-liee__accroche {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--brun);
}

/* --------------------------------------------------------------------------
   33. Impression des pages du magazine
   -------------------------------------------------------------------------- */

@media print {
  .lire-aussi,
  .appel-article,
  .fiche-article__ruban { display: none !important; }
  .corps-article { max-width: none; }
  .corps-article aside { clip-path: none; background: #FFFFFF; border: 1px solid #000000; }
}
