/* ==========================================================================
   Pedolia, feuille de style unique
   Systeme de nommage: vocabulaire du sondage pedologique
   horizon = section, strate = sous section, fiche = carte agrafee,
   cote = cotation de profondeur, agrafe = motif signature
   ========================================================================== */

:root {
  /* Regime clair: la page est le papier millimetre de la planche de coupe,
     les horizons se distinguent par des olives de plus en plus denses. */
  --terre: #F4F4E6;
  --terre-voisine: #EAEDD6;
  --surface: #FCFCF4;
  --terre-dense: #E4E8CB;
  --terre-profonde: #DEE3BE;
  --terre-fermeture: #D5DBAE;
  --encre: #14251F;
  --encre-douce: #4E5C48;
  --gley: #0B6165;
  --gley-fonce: #08494C;
  --sur-gley: #FCFCF4;
  --citron: #5E660A;
  /* Citron vif reserve aux surfaces sombres dessinees: carotte, marque, taches. */
  --citron-vif: #D9E64C;
  --filet: #AAB279;
  --ocre: #8A5F22;
  --rouille: #A34B22;
  --metal-haut: #8A9079;
  --metal-bas: #4E5443;
  --ombre-courte: 0 1px 2px rgba(30, 42, 22, 0.10);
  --ombre-posee: 0 2px 6px rgba(30, 42, 22, 0.09);

  --titre: "Gloock", "Times New Roman", serif;
  --lecture: "Literata", Georgia, serif;
  --mesure: "Copse", "Palatino Linotype", serif;

  --entete-h: 68px;
  --mesure-ligne: 68ch;
  --large: 1240px;
  --elastique: cubic-bezier(0.34, 1.56, 0.64, 1);

  --agrafe: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='16' viewBox='0 0 24 16'%3E%3Cg%3E%3Crect x='4' y='3' width='14' height='3' fill='%238A9079'/%3E%3Crect x='4' y='4' width='3' height='9' fill='%234E5443' transform='rotate(12 5.5 8.5)'/%3E%3Crect x='15' y='4' width='3' height='9' fill='%234E5443' transform='rotate(12 16.5 8.5)'/%3E%3C/g%3E%3C/svg%3E");
  --agrafe-file: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='16' viewBox='0 0 96 16'%3E%3Cg opacity='0.9'%3E%3Crect x='4' y='4' width='14' height='3' fill='%2394997F'/%3E%3Crect x='4' y='5' width='3' height='9' fill='%235A6049' transform='rotate(12 5.5 9.5)'/%3E%3Crect x='15' y='5' width='3' height='9' fill='%235A6049' transform='rotate(12 16.5 9.5)'/%3E%3C/g%3E%3C/svg%3E");
  /* Agrafe claire, posee sur les seuls aplats sombres du site: l aplat de gley. */
  --agrafe-claire: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='16' viewBox='0 0 24 16'%3E%3Cg%3E%3Crect x='4' y='3' width='14' height='3' fill='%23DFE3D4'/%3E%3Crect x='4' y='4' width='3' height='9' fill='%23A9AF98' transform='rotate(12 5.5 8.5)'/%3E%3Crect x='15' y='4' width='3' height='9' fill='%23A9AF98' transform='rotate(12 16.5 8.5)'/%3E%3C/g%3E%3C/svg%3E");
}

/* ----------------------------------------------------------- base */

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

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

body {
  margin: 0;
  background: var(--terre);
  color: var(--encre);
  font-family: var(--lecture);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.72;
  overflow-x: hidden;
}

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

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

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

::selection {
  background: #DDE49F;
  color: var(--encre);
}

html {
  scrollbar-width: thin;
  scrollbar-color: var(--filet) var(--terre-voisine);
}
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--terre-voisine); }
::-webkit-scrollbar-thumb {
  background: var(--filet);
  border: 3px solid var(--terre-voisine);
}
::-webkit-scrollbar-thumb:hover { background: var(--encre-douce); }

h1, h2 {
  font-family: var(--titre);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0;
  margin: 0 0 0.6em;
}

h1 { font-size: 3.4rem; }
h2 { font-size: 2.3rem; }

h3 {
  font-family: var(--mesure);
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.3;
  margin: 0 0 0.5em;
}

h4 {
  font-family: var(--mesure);
  font-weight: 700;
  font-size: 1.02rem;
  margin: 0 0 0.4em;
}

p { margin: 0 0 1.1em; max-width: var(--mesure-ligne); }
p:last-child { margin-bottom: 0; }

strong { color: var(--encre); font-weight: 600; }

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

.nombre {
  font-family: var(--mesure);
  font-feature-settings: "tnum" 1;
  color: var(--citron);
}

.surtitre {
  font-family: var(--mesure);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--encre-douce);
  display: flex;
  align-items: center;
  gap: 0.7em;
  margin: 0 0 1.1rem;
}

.surtitre::before {
  content: attr(data-horizon);
  font-size: 0.78rem;
  color: var(--citron);
  border: 1px solid var(--filet);
  padding: 0.1em 0.45em;
  letter-spacing: 0.06em;
}

.surtitre::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--filet);
}

.legende {
  font-family: var(--mesure);
  font-size: 0.82rem;
  color: var(--encre-douce);
  line-height: 1.5;
}

.saut-contenu {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--citron);
  color: var(--sur-gley);
  font-family: var(--mesure);
  padding: 12px 20px;
  z-index: 200;
}
.saut-contenu:focus { left: 8px; top: 8px; }

/* ----------------------------------------------------------- trames */

.millimetre {
  position: relative;
  isolation: isolate;
}

.millimetre::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(to right, rgba(20,37,31,0.055) 0 1px, transparent 1px 12px),
    repeating-linear-gradient(to bottom, rgba(20,37,31,0.055) 0 1px, transparent 1px 12px),
    repeating-linear-gradient(to right, rgba(20,37,31,0.085) 0 1px, transparent 1px 60px),
    repeating-linear-gradient(to bottom, rgba(20,37,31,0.085) 0 1px, transparent 1px 60px);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.85), rgba(0,0,0,0.22));
}

/* ----------------------------------------------------------- agrafes */

.agrafee { position: relative; }

.agrafee::before {
  content: "";
  position: absolute;
  top: -6px;
  left: -6px;
  width: 24px;
  height: 16px;
  background: var(--agrafe) no-repeat center / contain;
  filter: drop-shadow(0 1px 1px rgba(30,42,22,0.30));
  transform: rotate(0deg);
  z-index: 3;
}

.agrafee--double::after {
  content: "";
  position: absolute;
  bottom: -6px;
  right: -6px;
  width: 24px;
  height: 16px;
  background: var(--agrafe) no-repeat center / contain;
  filter: drop-shadow(0 1px 1px rgba(30,42,22,0.30));
  transform: rotate(180deg);
  z-index: 3;
}

.agrafee > .oxydation {
  position: absolute;
  top: -2px;
  left: -2px;
  width: 26px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(163,75,34,0.22), rgba(163,75,34,0) 70%);
  z-index: 2;
  pointer-events: none;
}

.file-agrafes {
  height: 16px;
  background-image: var(--agrafe-file);
  background-repeat: repeat-x;
  background-position: left center;
  opacity: 0.85;
}

/* ----------------------------------------------------------- en tete */

.entete-coupe {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--entete-h);
  background: rgba(244, 244, 230, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--filet);
  z-index: 120;
}

.entete-coupe__rang {
  max-width: var(--large);
  height: var(--entete-h);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.marque {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--encre);
  font-family: var(--titre);
  font-size: 1.28rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}
.marque:hover { color: var(--encre); }
.marque svg { flex: none; }

.nav-horizons {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-horizons a {
  font-family: var(--mesure);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--encre-douce);
  text-decoration: none;
  padding: 8px 11px;
  border-bottom: 2px solid transparent;
}
.nav-horizons a:hover {
  color: var(--encre);
  border-bottom-color: var(--citron);
}

.jauge {
  position: absolute;
  left: 0;
  bottom: -3px;
  height: 2px;
  width: 100%;
  display: flex;
  align-items: center;
  opacity: 0;
  transition: opacity 220ms ease;
}
.entete-coupe.enfoncee .jauge { opacity: 1; }

.jauge__barre {
  height: 2px;
  width: 0;
  background: var(--citron);
  transition: width 120ms linear;
}

.jauge__valeur {
  position: absolute;
  right: 24px;
  top: 4px;
  font-family: var(--mesure);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--citron);
}

.bouton-panneau {
  display: none;
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--filet);
  color: var(--encre);
  font-family: var(--mesure);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 9px 14px;
  cursor: pointer;
}
.bouton-panneau:hover { border-color: var(--citron); }

.panneau-strates {
  position: fixed;
  inset: 0;
  background: var(--terre);
  z-index: 130;
  transform: translateY(-102%);
  transition: transform 520ms var(--elastique);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.panneau-strates[data-ouvert="oui"] { transform: translateY(0); }

.panneau-strates__barre {
  height: var(--entete-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  border-bottom: 1px solid var(--filet);
  flex: none;
}

.panneau-strates a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  flex: none;
  padding: 0 24px;
  font-family: var(--mesure);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--encre);
  border-bottom: 1px solid var(--filet);
}
.panneau-strates a span {
  font-size: 0.72rem;
  color: var(--citron);
}
.panneau-strates a:nth-child(odd) { background: var(--terre-voisine); }
.panneau-strates a:nth-child(even) { background: var(--surface); }
.panneau-strates a:hover { color: var(--citron); }

.panneau-strates__pied { padding: 24px; }

/* Dans le panneau, l appel a l action prend la teinte d une strate claire:
   son agrafe redevient donc celle du papier, sinon elle disparaitrait. */
.panneau-strates .bouton--principal::before { background-image: var(--agrafe); }

/* ----------------------------------------------------------- horizons */

.coupe { padding-top: var(--entete-h); }

.horizon {
  position: relative;
  border-bottom: 1px solid var(--filet);
  padding: 92px 0;
}

.horizon--litiere { background: var(--terre); padding: 72px 0 0; }
.horizon--dense { background: var(--terre-voisine); }
.horizon--tabule { background: var(--terre); }
.horizon--sombre { background: var(--terre-dense); }
.horizon--clair { background: var(--surface); }
.horizon--profond { background: var(--terre-profonde); }

.horizon__separateur {
  position: absolute;
  left: 0;
  right: 0;
  top: -9px;
  height: 16px;
  background-image: var(--agrafe-file);
  background-repeat: repeat-x;
  opacity: 0.6;
  pointer-events: none;
}

.horizon__interieur {
  max-width: var(--large);
  margin: 0 auto;
  padding: 0 24px 0 96px;
  position: relative;
}

.cote {
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 48px;
  font-family: var(--mesure);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--encre-douce);
  border-right: 1px solid var(--filet);
  padding-right: 10px;
  text-align: right;
}

.cote span {
  position: absolute;
  right: 10px;
  white-space: nowrap;
}
.cote span::after {
  content: "";
  position: absolute;
  right: -11px;
  top: 50%;
  width: 8px;
  height: 1px;
  background: var(--citron);
}
.cote span:first-child { top: 4px; }
.cote span:last-child { bottom: 4px; }

/* ----------------------------------------------------------- hero */

.litiere {
  max-width: var(--large);
  margin: 0 auto;
  padding: 0 24px 0 96px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 56px;
  align-items: start;
  position: relative;
}

.litiere h1 { margin-bottom: 0.35em; }
.litiere h1 em {
  font-style: normal;
  color: var(--citron);
}

.litiere__appuis {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 30px 0 26px;
}

.litiere__reassurance {
  border-top: 1px solid var(--filet);
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
}

.litiere__reassurance div {
  font-family: var(--mesure);
  font-size: 0.82rem;
  color: var(--encre-douce);
  line-height: 1.45;
}
.litiere__reassurance b {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--citron);
  font-feature-settings: "tnum" 1;
}

.carotte {
  border: 1px solid var(--filet);
  background: var(--surface);
  box-shadow: var(--ombre-posee);
  padding: 18px;
  position: relative;
}

.carotte__titre {
  font-family: var(--mesure);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--encre-douce);
  margin: 0 0 14px;
  display: flex;
  justify-content: space-between;
}

.carotte__pile { display: flex; flex-direction: column; }

.carotte__hz {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  font-family: var(--mesure);
  font-size: 0.78rem;
  color: var(--sur-gley);
  position: relative;
}
.carotte__hz b { font-weight: 700; }
.carotte__hz em {
  font-style: normal;
  margin-left: auto;
  font-size: 0.72rem;
  opacity: 0.8;
}

.carotte__hz--litiere { height: 34px; background: #5E4C2E; color: var(--sur-gley); }
.carotte__hz--ocre { height: 46px; background: var(--ocre); }
.carotte__hz--redox { height: 62px; background: #7E5730; color: var(--sur-gley); }
.carotte__hz--gley { height: 84px; background: #3F6570; color: var(--sur-gley); }

.carotte__taches {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.carotte__taches i {
  position: absolute;
  width: 7px;
  height: 12px;
  background: #C2622C;
  transform: rotate(20deg);
  opacity: 0.85;
}
.carotte__taches i:nth-child(1) { left: 32%; top: 20%; }
.carotte__taches i:nth-child(2) { left: 52%; top: 48%; }
.carotte__taches i:nth-child(3) { left: 71%; top: 26%; }
.carotte__taches i:nth-child(4) { left: 44%; top: 66%; }

.carotte__foret {
  position: absolute;
  left: 26px;
  top: 52px;
  bottom: 60px;
  width: 2px;
  background: var(--citron-vif);
  opacity: 0.95;
}

.carotte__verdict {
  margin-top: 16px;
  border-top: 1px dashed var(--filet);
  padding-top: 14px;
  font-family: var(--mesure);
  font-size: 0.82rem;
  color: var(--encre-douce);
}
.carotte__verdict b { color: var(--citron); }

/* ----------------------------------------------------------- boutons */

.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 14px 26px;
  font-family: var(--mesure);
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  position: relative;
  transition: background-color 200ms ease, transform 420ms var(--elastique), border-color 200ms ease;
}

.bouton--principal {
  background: var(--gley);
  color: var(--sur-gley);
}
.bouton--principal::before {
  content: "";
  position: absolute;
  top: -6px;
  left: -6px;
  width: 24px;
  height: 16px;
  background: var(--agrafe-claire) no-repeat center / contain;
  filter: drop-shadow(0 1px 1px rgba(6,32,33,0.45));
  transform: rotate(0deg);
  transition: transform 420ms var(--elastique);
}
.bouton--principal:hover {
  background: var(--gley-fonce);
  color: var(--sur-gley);
  transform: translateY(-2px);
}
.bouton--principal:hover::before { transform: rotate(6deg); }

.bouton--second {
  background: transparent;
  border-color: var(--filet);
  color: var(--encre);
}
.bouton--second:hover {
  border-color: var(--citron);
  background: var(--surface);
  color: var(--encre);
  transform: translateY(-2px);
}

.bouton--large { width: 100%; }

/* ----------------------------------------------------------- bandes photo */

.bande-photo {
  position: relative;
  border-top: 2px solid var(--citron);
  border-bottom: 1px solid var(--filet);
  overflow: hidden;
  background: var(--terre);
}

.bande-photo img {
  width: 100%;
  height: clamp(260px, 34vw, 430px);
  object-fit: cover;
  filter: saturate(0.62) contrast(1.02) brightness(1.03) sepia(0.14);
}

.bande-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(to right, rgba(20,37,31,0.09) 0 1px, transparent 1px 12px),
    repeating-linear-gradient(to bottom, rgba(20,37,31,0.09) 0 1px, transparent 1px 12px),
    linear-gradient(to right, rgba(244,244,230,0.62), rgba(244,244,230,0.10) 55%, rgba(244,244,230,0.48));
}

.bande-photo__agrafe {
  position: absolute;
  top: 8px;
  left: 12px;
  width: 26px;
  height: 18px;
  background: var(--agrafe) no-repeat center / contain;
  filter: drop-shadow(0 1px 1px rgba(30,42,22,0.34));
  z-index: 3;
}

.bande-photo__cote {
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 56px;
  z-index: 3;
  background: rgba(252,252,244,0.80);
  border-right: 1px solid var(--citron);
  font-family: var(--mesure);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--citron);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  padding: 16px 8px;
}

.bande-photo__legende {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 3;
  max-width: 46ch;
  background: rgba(252,252,244,0.93);
  border-top: 1px solid var(--filet);
  border-left: 1px solid var(--filet);
  padding: 14px 20px;
  font-family: var(--mesure);
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--encre-douce);
}
.bande-photo__legende b { color: var(--citron); font-weight: 700; }

/* ----------------------------------------------------------- probleme */

.douleurs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1px;
  background: var(--filet);
  border: 1px solid var(--filet);
  margin-top: 40px;
}

.douleur {
  background: var(--terre-voisine);
  padding: 26px 24px;
}
.douleur__cout {
  font-family: var(--mesure);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--citron);
  font-feature-settings: "tnum" 1;
  display: block;
  margin-bottom: 6px;
}
.douleur p { font-size: 0.97rem; color: var(--encre-douce); }

.encadre-arrete {
  background: var(--surface);
  border: 1px solid var(--filet);
  border-left: 3px solid var(--gley);
  padding: 22px 24px;
  margin: 40px 0 0;
  position: relative;
  max-width: 74ch;
}
.encadre-arrete cite {
  display: block;
  font-family: var(--mesure);
  font-size: 0.72rem;
  font-style: normal;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--citron);
  margin-bottom: 10px;
}
.encadre-arrete p {
  font-style: italic;
  font-size: 1rem;
  color: var(--encre);
}

/* ----------------------------------------------------------- solution */

.escalier { margin-top: 46px; border-top: 1px solid var(--filet); }

.etape {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) minmax(0, 0.8fr);
  gap: 30px;
  align-items: start;
  border-bottom: 1px solid var(--filet);
  padding: 34px 0;
  position: relative;
}
.etape:nth-child(1) { padding: 42px 0; background: linear-gradient(to right, rgba(138,95,34,0.14), transparent 60%); }
.etape:nth-child(2) { padding: 36px 0; background: linear-gradient(to right, rgba(163,75,34,0.13), transparent 60%); }
.etape:nth-child(3) { padding: 30px 0; background: linear-gradient(to right, rgba(11,97,101,0.12), transparent 60%); }
.etape:nth-child(4) { padding: 24px 0; background: linear-gradient(to right, rgba(94,102,10,0.13), transparent 60%); }

.etape__numero {
  font-family: var(--mesure);
  font-size: 2rem;
  font-weight: 700;
  color: var(--citron);
  line-height: 1;
  font-feature-settings: "tnum" 1;
}
.etape__numero small {
  display: block;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--encre-douce);
  margin-top: 6px;
}
.etape p { font-size: 1rem; }
.etape__note {
  font-family: var(--mesure);
  font-size: 0.82rem;
  color: var(--encre-douce);
  border-left: 1px solid var(--filet);
  padding-left: 18px;
  line-height: 1.6;
}
.etape__note b { color: var(--gley); font-weight: 700; }

/* ----------------------------------------------------------- fiches */

.rangee-fiches {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  margin-top: 46px;
}

.fiche {
  background: var(--surface);
  border: 1px solid var(--filet);
  box-shadow: var(--ombre-courte);
  padding: 26px 24px 24px;
  position: relative;
}
.fiche h3 { color: var(--encre); }
.fiche p { font-size: 0.97rem; color: var(--encre-douce); }
.fiche__etiquette {
  font-family: var(--mesure);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--citron);
  display: block;
  margin-bottom: 10px;
}

/* ----------------------------------------------------------- avantages */

.mesures {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--filet);
  border: 1px solid var(--filet);
  margin-top: 44px;
}

.mesure {
  background: var(--surface);
  padding: 30px 22px;
}
.mesure__valeur {
  font-family: var(--mesure);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
  color: var(--citron);
  font-feature-settings: "tnum" 1;
  display: block;
}
.mesure__unite {
  font-family: var(--mesure);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--encre-douce);
  display: block;
  margin: 8px 0 12px;
}
.mesure p { font-size: 0.92rem; color: var(--encre-douce); }

.gains {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin-top: 44px;
}
.gains article { border-top: 2px solid var(--gley); padding-top: 18px; }
.gains h3 { color: var(--encre); }
.gains p { font-size: 0.97rem; color: var(--encre-douce); }

/* ----------------------------------------------------------- preuve */

.placettes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  margin-top: 44px;
}

.placette {
  background: var(--terre-voisine);
  border: 1px solid var(--filet);
  box-shadow: var(--ombre-courte);
  padding: 28px 24px 22px;
  position: relative;
}
.placette blockquote {
  margin: 0 0 18px;
  font-size: 1rem;
  color: var(--encre);
}
.placette blockquote p { max-width: none; }
.placette figcaption {
  border-top: 1px solid var(--filet);
  padding-top: 14px;
  font-family: var(--mesure);
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--encre-douce);
}
.placette figcaption b {
  display: block;
  color: var(--encre);
  font-weight: 700;
  font-size: 0.9rem;
}
.placette figcaption span { color: var(--citron); }

.bandeau-chiffres {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: 48px;
  border-top: 1px solid var(--filet);
  padding-top: 28px;
}
.bandeau-chiffres div { font-family: var(--mesure); font-size: 0.82rem; color: var(--encre-douce); }
.bandeau-chiffres b {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--citron);
  font-feature-settings: "tnum" 1;
  line-height: 1.1;
  margin-bottom: 4px;
}

/* ----------------------------------------------------------- tarifs */

.formules {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 46px;
  align-items: start;
}

.formule {
  background: var(--terre);
  border: 1px solid var(--filet);
  padding: 30px 26px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.formule--retenue {
  border-color: var(--gley);
  background: var(--surface);
  box-shadow: 0 0 0 1px rgba(11,97,101,0.30), var(--ombre-posee);
}
.formule__fanion {
  position: absolute;
  top: -13px;
  right: 18px;
  background: var(--citron);
  color: var(--sur-gley);
  font-family: var(--mesure);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 12px;
}
.formule h3 { font-size: 1.5rem; color: var(--encre); margin-bottom: 4px; }
.formule__cible { font-size: 0.9rem; color: var(--encre-douce); min-height: 4.6em; }
.formule__prix {
  font-family: var(--mesure);
  font-size: 3rem;
  font-weight: 700;
  color: var(--citron);
  line-height: 1;
  font-feature-settings: "tnum" 1;
  margin: 18px 0 2px;
}
.formule__unite {
  font-family: var(--mesure);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--encre-douce);
  display: block;
  margin-bottom: 20px;
}
.formule ul {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  border-top: 1px solid var(--filet);
}
.formule li {
  border-bottom: 1px solid var(--filet);
  padding: 11px 0 11px 22px;
  font-size: 0.93rem;
  color: var(--encre-douce);
  position: relative;
}
.formule li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05em;
  width: 10px;
  height: 2px;
  background: var(--gley);
}
.formule .bouton { margin-top: auto; }

.note-tarifs {
  margin-top: 30px;
  font-family: var(--mesure);
  font-size: 0.85rem;
  color: var(--encre-douce);
  max-width: 78ch;
  border-left: 1px solid var(--filet);
  padding-left: 18px;
}

/* ----------------------------------------------------------- faq */

.pile-faq { margin-top: 40px; border-top: 1px solid var(--filet); max-width: 92ch; }

.question {
  border-bottom: 1px solid var(--filet);
  background: transparent;
  transition: background-color 260ms ease;
}
.question[open] { background: var(--surface); }

.question summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 44px 20px 0;
  position: relative;
  font-family: var(--mesure);
  font-size: 1.06rem;
  font-weight: 700;
  color: var(--encre);
}
.question summary::-webkit-details-marker { display: none; }
.question summary::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 13px;
  height: 2px;
  background: var(--citron);
  transform: translateY(-50%);
}
.question summary::before {
  content: "";
  position: absolute;
  right: 19px;
  top: 50%;
  width: 2px;
  height: 13px;
  background: var(--citron);
  transform: translateY(-50%);
  transition: transform 300ms var(--elastique);
}
.question[open] summary::before { transform: translateY(-50%) scaleY(0); }
.question summary:hover { color: var(--citron); }

.question__corps { padding: 0 24px 22px 0; }
.question__corps p { font-size: 0.99rem; color: var(--encre-douce); max-width: 76ch; }
.question__corps p + p { margin-top: 0; }

/* ----------------------------------------------------------- contact */

.releve-contact {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 52px;
  margin-top: 44px;
  align-items: start;
}

.releve-contact__mot p { font-size: 1rem; color: var(--encre-douce); }
.releve-contact__mot ul {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
}
.releve-contact__mot li {
  font-family: var(--mesure);
  font-size: 0.86rem;
  color: var(--encre-douce);
  border-top: 1px solid var(--filet);
  padding: 12px 0 12px 20px;
  position: relative;
}
.releve-contact__mot li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.35em;
  width: 9px;
  height: 9px;
  background: var(--gley);
}

.formulaire {
  background: var(--surface);
  border: 1px solid var(--filet);
  padding: 30px 28px 28px;
  position: relative;
}

.champ { margin-bottom: 18px; }
.champ label {
  display: block;
  font-family: var(--mesure);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--encre-douce);
  margin-bottom: 7px;
}
.champ input[type="text"],
.champ input[type="email"],
.champ select,
.champ textarea {
  width: 100%;
  background: var(--terre);
  border: 1px solid var(--filet);
  color: var(--encre);
  font-family: var(--lecture);
  font-size: 1rem;
  padding: 12px 14px;
  border-radius: 0;
}
.champ select { font-family: var(--mesure); }
.champ textarea { resize: vertical; min-height: 130px; }
.champ input:focus, .champ select:focus, .champ textarea:focus {
  border-color: var(--gley);
  outline: 2px solid var(--citron);
  outline-offset: 2px;
}

.duo-champs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.champ-accord {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--encre-douce);
  border-top: 1px solid var(--filet);
  padding-top: 18px;
  margin-bottom: 20px;
  line-height: 1.55;
}
.champ-accord input {
  margin-top: 5px;
  width: 17px;
  height: 17px;
  accent-color: var(--gley);
  flex: none;
}

.apres-formulaire {
  margin-top: 18px;
  font-family: var(--mesure);
  font-size: 0.82rem;
  color: var(--encre-douce);
  line-height: 1.6;
}

/* ----------------------------------------------------------- pied */

.pied-coupe {
  background: var(--terre-profonde);
  border-top: 1px solid var(--filet);
  padding: 62px 0 0;
}

.pied-coupe__grille {
  max-width: var(--large);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 40px;
}

.pied-coupe h4 {
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--citron);
  margin-bottom: 14px;
}
.pied-coupe p { font-size: 0.92rem; color: var(--encre-douce); }
.pied-coupe ul { list-style: none; margin: 0; padding: 0; }
.pied-coupe li { margin-bottom: 9px; }
.pied-coupe a { color: var(--encre-douce); text-decoration: none; font-size: 0.92rem; }
.pied-coupe a:hover { color: var(--citron); text-decoration: underline; }

.reseaux {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.reseaux a {
  font-family: var(--mesure);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--filet);
  padding: 6px 11px;
  color: var(--encre-douce);
}
.reseaux a:hover { border-color: var(--citron); text-decoration: none; }

.pied-coupe__barre {
  margin-top: 54px;
  border-top: 1px solid var(--filet);
  background: var(--terre-fermeture);
}
.pied-coupe__barre div {
  max-width: var(--large);
  margin: 0 auto;
  padding: 20px 24px;
  font-family: var(--mesure);
  font-size: 0.78rem;
  color: var(--encre-douce);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
}

/* ----------------------------------------------------------- pages internes */

.horizon--texte { background: var(--terre-voisine); padding: 72px 0; }

.fil {
  font-family: var(--mesure);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  color: var(--encre-douce);
  margin-bottom: 22px;
}
.fil a { color: var(--encre-douce); }
.fil a:hover { color: var(--citron); }

.article-legal { max-width: 82ch; }
.article-legal h2 {
  font-size: 1.7rem;
  margin-top: 2em;
  padding-top: 0.6em;
  border-top: 1px solid var(--filet);
}
.article-legal h3 { color: var(--encre); margin-top: 1.6em; }
.article-legal ul, .article-legal ol { padding-left: 20px; color: var(--encre-douce); }
.article-legal li { margin-bottom: 9px; }
.article-legal dl { margin: 0 0 1.2em; }
.article-legal dt {
  font-family: var(--mesure);
  font-weight: 700;
  color: var(--citron);
  font-size: 0.86rem;
  letter-spacing: 0.06em;
  margin-top: 12px;
}
.article-legal dd { margin: 3px 0 0; color: var(--encre-douce); }
.article-legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.4em 0;
  font-size: 0.92rem;
}
.article-legal th, .article-legal td {
  border: 1px solid var(--filet);
  padding: 11px 13px;
  text-align: left;
  vertical-align: top;
}
.article-legal th {
  font-family: var(--mesure);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--citron);
  background: var(--surface);
}
.article-legal td { color: var(--encre-douce); }

.portrait-auteur {
  float: right;
  margin: 0 0 24px 32px;
  border: 1px solid var(--filet);
  padding: 8px;
  background: var(--surface);
  position: relative;
  max-width: 250px;
}
.portrait-auteur img { width: 100%; height: auto; filter: saturate(0.6) contrast(1.03); }
.portrait-auteur figcaption {
  font-family: var(--mesure);
  font-size: 0.74rem;
  color: var(--encre-douce);
  margin-top: 9px;
  line-height: 1.45;
}

.blocs-plan {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 36px;
}
.blocs-plan article {
  background: var(--surface);
  border: 1px solid var(--filet);
  padding: 24px 22px;
  position: relative;
}
.blocs-plan h3 { font-size: 1.1rem; }
.blocs-plan p { font-size: 0.93rem; color: var(--encre-douce); }
.blocs-plan ul { list-style: none; margin: 14px 0 0; padding: 0; }
.blocs-plan li { border-top: 1px solid var(--filet); padding: 9px 0; font-size: 0.9rem; }

.centre-message {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.centre-message p { margin-left: auto; margin-right: auto; }
.centre-message .surtitre { justify-content: center; }
.centre-message .litiere__appuis { justify-content: center; }

.encart-suite {
  margin-top: 40px;
  border: 1px solid var(--filet);
  background: var(--surface);
  padding: 26px 24px;
  position: relative;
  text-align: left;
}
.encart-suite h3 { color: var(--encre); }
.encart-suite p { color: var(--encre-douce); font-size: 0.95rem; }

/* ----------------------------------------------------------- animation */

.leve {
  opacity: 0;
  transform: translateY(26px);
}
.leve.pose {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 380ms ease, transform 620ms var(--elastique);
}
.leve.pose::before { animation: morsure 520ms var(--elastique) 120ms both; }

@keyframes morsure {
  0% { transform: rotate(-4deg) translateY(-6px); opacity: 0; }
  60% { transform: rotate(16deg) translateY(1px); opacity: 1; }
  100% { transform: rotate(0deg) translateY(0); opacity: 1; }
}

/* ----------------------------------------------------------- adaptation */

@media (max-width: 1080px) {
  .litiere { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .rangee-fiches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .placettes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mesures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bandeau-chiffres { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .formules { grid-template-columns: minmax(0, 1fr); }
  .releve-contact { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .pied-coupe__grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .etape { grid-template-columns: 70px minmax(0, 1fr); }
  .etape__note { grid-column: 2; border-left: 0; border-top: 1px solid var(--filet); padding: 14px 0 0; }
}

@media (max-width: 900px) {
  .nav-horizons { display: none; }
  .entete-coupe .bouton { display: none; }
  .bouton-panneau { display: inline-flex; }
}

@media (max-width: 760px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.7rem; }
  .horizon { padding: 62px 0; }
  .horizon--litiere { padding: 48px 0 0; }
  .horizon__interieur, .litiere { padding-left: 20px; padding-right: 20px; }
  .cote { display: none; }
  .rangee-fiches, .placettes { grid-template-columns: minmax(0, 1fr); }
  .duo-champs { grid-template-columns: minmax(0, 1fr); }
  .pied-coupe__grille { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .portrait-auteur { float: none; margin: 0 0 26px; max-width: 100%; }
  .bande-photo__legende { position: static; max-width: none; border-left: 0; }
  .bande-photo__cote { display: none; }
  .litiere__appuis .bouton { width: 100%; }
  .pied-coupe__barre div { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .leve { opacity: 0; transform: none; }
  .leve.pose { opacity: 1; transition: opacity 200ms linear; }
  .leve.pose::before { animation: none; }
  .panneau-strates { transition: none; }
  .bouton, .bouton--principal::before { transition: background-color 150ms linear; }
  .bouton:hover { transform: none; }
}

@media print {
  .entete-coupe, .panneau-strates, .bouton-panneau, .formulaire { display: none; }
  body { background: #fff; color: #000; }
}

/* ==========================================================================
   Magazine, Le Carnet de sondage
   Section ajoutee a la fin du fichier, aucune regle existante modifiee.
   Vocabulaire poursuivi: feuillet = fiche d article agrafee,
   renvoi = carte du bloc A lire aussi, corps-article = strate de lecture longue.
   Le corps redactionnel arrive en HTML nu, sans attribut class: toutes ses
   balises sont donc stylees comme descendantes de .corps-article.
   ========================================================================== */

.horizon--carnet { background: var(--terre-voisine); }

/* ----------------------------------------------------------- sommaire du magazine */

.sommaire {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 46px;
}

.feuillet {
  background: var(--surface);
  border: 1px solid var(--filet);
  box-shadow: var(--ombre-courte);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 420ms var(--elastique), border-color 200ms ease;
}
.feuillet:hover {
  transform: translateY(-3px);
  border-color: var(--citron);
}
.feuillet.agrafee::before { transition: transform 420ms var(--elastique); }
.feuillet.agrafee:hover::before { transform: rotate(16deg); }

.feuillet__vue {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--filet);
  background: var(--terre);
}

.feuillet__vue img {
  width: 100%;
  height: 192px;
  object-fit: cover;
  filter: saturate(0.62) contrast(1.02) brightness(1.03) sepia(0.14);
}

.feuillet__vue::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--citron);
  z-index: 2;
}

.feuillet__vue::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(to right, rgba(20,37,31,0.08) 0 1px, transparent 1px 12px),
    repeating-linear-gradient(to bottom, rgba(20,37,31,0.08) 0 1px, transparent 1px 12px),
    linear-gradient(to bottom, rgba(252,252,244,0.02), rgba(252,252,244,0.32));
}

.feuillet__corps {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px 22px 20px;
}

.feuillet__angle {
  font-family: var(--mesure);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--citron);
  display: block;
  margin-bottom: 10px;
}

.feuillet__titre {
  font-family: var(--titre);
  font-weight: 400;
  font-size: 1.24rem;
  line-height: 1.14;
  margin: 0 0 12px;
  max-width: none;
}
.feuillet__titre a {
  color: var(--encre);
  text-decoration: none;
}
.feuillet__titre a:hover { color: var(--citron); }

.feuillet__extrait {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--encre-douce);
  max-width: none;
}

.feuillet__pied {
  margin-top: auto;
  margin-bottom: 0;
  padding-top: 14px;
  border-top: 1px solid var(--filet);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 16px;
  font-family: var(--mesure);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--encre-douce);
  max-width: none;
}
.feuillet__duree { color: var(--citron); }

/* ----------------------------------------------------------- entete d article */

.litiere--article { grid-template-columns: minmax(0, 1fr); }

.reperes-article {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  margin: 26px 0 28px;
  padding: 12px 0;
  border-top: 1px solid var(--filet);
  border-bottom: 1px solid var(--filet);
  font-family: var(--mesure);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--encre-douce);
  max-width: none;
}
.reperes-article time { font-feature-settings: "tnum" 1; }

.repere--angle {
  color: var(--sur-gley);
  background: var(--citron);
  font-weight: 700;
  padding: 3px 9px;
}
.repere--duree { color: var(--citron); }

.chapo-article {
  font-size: 1.2rem;
  font-weight: 300;
  line-height: 1.62;
  color: var(--encre);
  max-width: 64ch;
  border-left: 3px solid var(--citron);
  padding: 2px 0 2px 22px;
  margin: 0;
}

.bande-photo--article { margin-top: 46px; }
.bande-photo--article img { height: clamp(240px, 32vw, 420px); }

/* ----------------------------------------------------------- corps d article */

.corps-article {
  max-width: 88ch;
  color: var(--encre);
}

.corps-article > p,
.corps-article > ul,
.corps-article > ol,
.corps-article > h2,
.corps-article > h3,
.corps-article > blockquote {
  max-width: var(--mesure-ligne);
}
.corps-article > table,
.corps-article > aside,
.corps-article > figure { max-width: none; }

.corps-article h2 {
  font-family: var(--titre);
  font-weight: 400;
  font-size: 1.95rem;
  line-height: 1.1;
  color: var(--encre);
  position: relative;
  margin: 2.3em 0 0.6em;
  padding-top: 22px;
  border-top: 1px solid var(--filet);
}
.corps-article > h2:first-child { margin-top: 0; }

.corps-article h2::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -9px;
  height: 16px;
  background-image: var(--agrafe-file);
  background-repeat: repeat-x;
  opacity: 0.55;
  pointer-events: none;
}

.corps-article h3 {
  font-family: var(--mesure);
  font-weight: 700;
  font-size: 1.22rem;
  line-height: 1.35;
  color: var(--encre);
  margin: 2em 0 0.5em;
}
.corps-article h3::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 2px;
  background: var(--citron);
  vertical-align: 0.28em;
  margin-right: 11px;
}

.corps-article p {
  font-size: 1.05rem;
  line-height: 1.72;
  margin: 0 0 1.2em;
}

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

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

.corps-article ul,
.corps-article ol {
  list-style: none;
  margin: 0 0 1.5em;
  padding: 0;
}

.corps-article li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 0.62em;
  line-height: 1.68;
}
.corps-article li:last-child { margin-bottom: 0; }

.corps-article ul > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 13px;
  height: 2px;
  background: var(--citron);
}

.corps-article ol { counter-reset: sondage; }
.corps-article ol > li::before {
  counter-increment: sondage;
  content: counter(sondage, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.08em;
  font-family: var(--mesure);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--citron);
  font-feature-settings: "tnum" 1;
}

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

.corps-article table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--filet);
  background: var(--surface);
  margin: 2em 0;
  font-size: 0.95rem;
}

.corps-article th,
.corps-article td {
  border: 1px solid var(--filet);
  padding: 11px 14px;
  text-align: left;
  vertical-align: top;
  line-height: 1.55;
}

.corps-article th {
  font-family: var(--mesure);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--citron);
  background: var(--terre-voisine);
}

.corps-article td { color: var(--encre-douce); }
.corps-article tbody tr:nth-child(even) td { background: rgba(20,37,31,0.05); }

.corps-article blockquote {
  position: relative;
  margin: 2.1em 0;
  padding: 24px 26px;
  background: var(--surface);
  border: 1px solid var(--filet);
  font-style: italic;
}
.corps-article blockquote::before {
  content: "";
  position: absolute;
  top: -6px;
  left: -6px;
  width: 24px;
  height: 16px;
  background: var(--agrafe) no-repeat center / contain;
  filter: drop-shadow(0 1px 1px rgba(30,42,22,0.30));
  z-index: 3;
}
.corps-article blockquote p {
  font-style: italic;
  color: var(--encre);
  max-width: none;
}

.corps-article aside {
  position: relative;
  margin: 2.2em 0;
  padding: 24px 28px;
  background: var(--terre-voisine);
  border: 1px solid var(--filet);
  border-left: 3px solid var(--gley);
}
.corps-article aside::before,
.corps-article aside::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 16px;
  background: var(--agrafe) no-repeat center / contain;
  filter: drop-shadow(0 1px 1px rgba(30,42,22,0.30));
  z-index: 3;
}
.corps-article aside::before { top: -6px; left: -6px; }
.corps-article aside::after { bottom: -6px; right: -6px; transform: rotate(180deg); }
.corps-article aside p {
  font-size: 0.99rem;
  color: var(--encre-douce);
  max-width: none;
}
.corps-article aside strong { color: var(--citron); }

.corps-article figure { margin: 2.2em 0; }
.corps-article figure img { border: 1px solid var(--filet); }
.corps-article figcaption {
  font-family: var(--mesure);
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--encre-douce);
  border-top: 1px solid var(--filet);
  margin-top: 10px;
  padding-top: 10px;
}

/* ----------------------------------------------------------- appel a l action d article */

.appel-article {
  margin-top: 48px;
  max-width: 88ch;
  padding: 28px 30px;
  background: var(--surface);
  border: 1px solid var(--filet);
}
.appel-article__surtitre {
  font-family: var(--mesure);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--citron);
  margin: 0 0 10px;
}
.appel-article p { color: var(--encre-douce); font-size: 1rem; }
.appel-article__bouton { margin: 22px 0 0; }

/* ----------------------------------------------------------- encart auteur */

.encart-auteur {
  margin-top: 36px;
  max-width: 88ch;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding: 26px 28px;
  background: var(--terre-voisine);
  border: 1px solid var(--filet);
}
.encart-auteur img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border: 1px solid var(--filet);
  filter: saturate(0.6) contrast(1.03);
}
.encart-auteur__role {
  font-family: var(--mesure);
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--citron);
  margin: 0 0 6px;
}
.encart-auteur__nom {
  font-family: var(--titre);
  font-size: 1.3rem;
  line-height: 1.1;
  margin: 0 0 10px;
}
.encart-auteur p { font-size: 0.98rem; color: var(--encre-douce); }
.encart-auteur__lien { margin: 12px 0 0; }
.encart-auteur__lien a { color: var(--gley); }

/* ----------------------------------------------------------- bloc A lire aussi */

.lire-aussi {
  position: relative;
  padding-top: 26px;
  border-top: 1px solid var(--filet);
}
.lire-aussi::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -9px;
  height: 16px;
  background-image: var(--agrafe-file);
  background-repeat: repeat-x;
  opacity: 0.6;
  pointer-events: none;
}

.lire-aussi__intitule {
  font-family: var(--mesure);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--encre-douce);
  margin: 0;
}

.lire-aussi__grille {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  margin-top: 26px;
}

.renvoi {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--filet);
  box-shadow: var(--ombre-courte);
  display: flex;
  flex-direction: column;
  transition: transform 420ms var(--elastique), border-color 200ms ease;
}
.renvoi:hover { transform: translateY(-3px); border-color: var(--citron); }
.renvoi.agrafee::before { transition: transform 420ms var(--elastique); }
.renvoi.agrafee:hover::before { transform: rotate(16deg); }

.renvoi__vue {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--filet);
}
.renvoi__vue img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  filter: saturate(0.62) contrast(1.02) brightness(1.03) sepia(0.14);
}
.renvoi__vue::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(to right, rgba(20,37,31,0.08) 0 1px, transparent 1px 12px),
    repeating-linear-gradient(to bottom, rgba(20,37,31,0.08) 0 1px, transparent 1px 12px),
    linear-gradient(to bottom, rgba(252,252,244,0.02), rgba(252,252,244,0.32));
}

.renvoi__corps { padding: 18px 20px 20px; }

.renvoi__titre {
  font-family: var(--titre);
  font-size: 1.08rem;
  line-height: 1.18;
  margin: 0 0 9px;
  max-width: none;
}
.renvoi__titre a { color: var(--encre); text-decoration: none; }
.renvoi__titre a:hover { color: var(--citron); }

.renvoi__accroche {
  font-family: var(--mesure);
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--encre-douce);
  max-width: none;
  margin: 0;
}

/* ----------------------------------------------------------- rappels du magazine */

.carnet-suite {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 26px;
  margin-top: 38px;
  padding-top: 22px;
  border-top: 1px solid var(--filet);
  max-width: none;
}
.carnet-suite p,
.carnet-suite > span {
  font-family: var(--mesure);
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--encre-douce);
  margin: 0;
  max-width: 52ch;
}

.liste-carnet,
ul.liste-carnet {
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
  border-top: 1px solid var(--filet);
}
.liste-carnet li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 24px;
  align-items: baseline;
  padding: 15px 0;
  border-bottom: 1px solid var(--filet);
  margin: 0;
}
.liste-carnet a {
  font-family: var(--titre);
  font-size: 1.06rem;
  line-height: 1.25;
  color: var(--encre);
  text-decoration: none;
}
.liste-carnet a:hover { color: var(--citron); }
.liste-carnet time {
  font-family: var(--mesure);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--encre-douce);
  font-feature-settings: "tnum" 1;
  white-space: nowrap;
}
.liste-carnet__angle {
  grid-column: 1 / -1;
  font-family: var(--mesure);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--citron);
}

/* ----------------------------------------------------------- adaptation du magazine */

@media (max-width: 1080px) {
  .sommaire { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lire-aussi__grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .corps-article { max-width: none; }
}

@media (max-width: 760px) {
  .sommaire { grid-template-columns: minmax(0, 1fr); }
  .lire-aussi__grille { grid-template-columns: minmax(0, 1fr); }
  .encart-auteur { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .corps-article h2 { font-size: 1.6rem; }
  .corps-article h3 { font-size: 1.1rem; }
  .corps-article table { display: block; overflow-x: auto; }
  .chapo-article { font-size: 1.08rem; padding-left: 16px; }
  .appel-article, .encart-auteur { padding: 22px 20px; }
  .appel-article__bouton .bouton { width: 100%; }
  .liste-carnet li { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .feuillet, .renvoi { transition: border-color 150ms linear; }
  .feuillet:hover, .renvoi:hover { transform: none; }
}
