/* ==========================================================================
   Vigilaria, feuille de style unique
   Systeme de nommage: vocabulaire du registre et de la piece justificative
   (greffe, cadre, case, filet, frise, tampon, piece, bordereau, paraphe)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Jetons de conception
   -------------------------------------------------------------------------- */

:root {
  --papier: #FBFDFB;
  --papier-vert: #EFF5F1;
  --surface: #FFFFFF;
  --encre: #10241A;
  --encre-douce: #55675C;
  --olive: #4C6025;
  --olive-clair: #6A8236;
  --sur-olive: #FFFFFF;
  --emeraude: #0B6E4F;
  --emeraude-sombre: #084F39;
  --filet: #D5E1D8;
  --filet-fonce: #B7CBBD;

  --titre: "Raleway", "Trebuchet MS", "Segoe UI", sans-serif;
  --courant: "Merriweather", "Georgia", "Times New Roman", serif;
  --registre: "Gelasio", "Georgia", "Times New Roman", serif;

  --utile: 1180px;
  --gouttiere: 28px;
  --entete-h: 72px;

  --frise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M1.5 9.5 L7 4 L12.5 9.5' fill='none' stroke='%230B6E4F' stroke-width='1.5' stroke-linecap='square'/%3E%3C/svg%3E");
  --frise-olive: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M1.5 9.5 L7 4 L12.5 9.5' fill='none' stroke='%234C6025' stroke-width='1.5' stroke-linecap='square'/%3E%3C/svg%3E");
  --frise-blanche: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M1.5 9.5 L7 4 L12.5 9.5' fill='none' stroke='%23FFFFFF' stroke-width='1.5' stroke-linecap='square'/%3E%3C/svg%3E");
}

/* --------------------------------------------------------------------------
   2. Reglages generaux
   -------------------------------------------------------------------------- */

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

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

body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font-family: var(--courant);
  font-size: 1.05rem;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

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

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

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

h1, h2, h3, h4 {
  font-family: var(--titre);
  line-height: 1.2;
  color: var(--encre);
  margin: 0 0 0.6em;
  letter-spacing: 0.01em;
}

h1 { font-size: 3.2rem; font-weight: 700; }
h2 { font-size: 2.1rem; font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }

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

ul, ol { margin: 0 0 1.1em; padding-left: 1.2em; }
li { margin-bottom: 0.45em; }

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

.evitement {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--olive);
  color: var(--sur-olive);
  font-family: var(--titre);
  font-weight: 600;
  padding: 12px 20px;
  z-index: 200;
}
.evitement:focus {
  left: 12px;
  top: 12px;
}

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

.gabarit-svg { position: absolute; width: 0; height: 0; overflow: hidden; }

/* --------------------------------------------------------------------------
   3. Grille utile de douze colonnes
   -------------------------------------------------------------------------- */

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

.grille12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gouttiere);
}

/* --------------------------------------------------------------------------
   4. Forme signature: le cadre a double filet a cases d angle
   -------------------------------------------------------------------------- */

.cadre {
  position: relative;
  background-color: var(--surface);
  background-image: linear-gradient(to right, var(--olive), var(--olive));
  background-size: 24px 2px;
  background-position: right 10px bottom 10px;
  background-repeat: no-repeat;
  border: 1px solid var(--filet);
}

.cadre::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid var(--filet);
  pointer-events: none;
}

.cadre::after {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 8px;
  height: 8px;
  background: var(--emeraude);
}

.cadre-olive { border-color: var(--olive); }
.cadre-olive::before { border-color: var(--filet-fonce); }
.cadre-olive::after { background: var(--olive); }

/* --------------------------------------------------------------------------
   5. Motif signature: la frise de chevrons
   -------------------------------------------------------------------------- */

.surtitre {
  display: block;
  font-family: var(--registre);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--emeraude);
  margin: 0 0 14px;
}

.surtitre::after {
  content: "";
  display: block;
  width: 64px;
  height: 14px;
  margin-top: 8px;
  background-image: var(--frise);
  background-repeat: repeat-x;
}

.bande-frise {
  height: 14px;
  background-image: var(--frise);
  background-repeat: repeat-x;
  opacity: 0.55;
}

.fond-frise {
  background-color: var(--papier-vert);
  background-image: var(--frise);
  background-repeat: repeat;
  background-blend-mode: normal;
}

.voile-frise {
  position: relative;
}
.voile-frise::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 25%;
  background-image: var(--frise-blanche);
  background-repeat: repeat;
  opacity: 0.28;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   6. En tete fixe
   -------------------------------------------------------------------------- */

.greffe {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--entete-h);
  background: var(--surface);
  border-bottom: 1px solid var(--filet);
  z-index: 100;
  transition: box-shadow 180ms ease, border-color 180ms ease;
}

.greffe.greffe-defilee {
  border-bottom: 1px solid var(--filet);
  box-shadow: 0 2px 0 0 var(--olive), 0 6px 14px rgba(16, 36, 26, 0.06);
}

.greffe-interieur {
  height: var(--entete-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

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

.marque-visa { flex: 0 0 auto; width: 40px; height: 40px; }

.marque-mot {
  font-family: var(--titre);
  font-weight: 600;
  font-size: 1.32rem;
  letter-spacing: 0.04em;
  text-transform: none;
}

.navigation-greffe ul {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navigation-greffe a {
  font-family: var(--titre);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--encre);
  text-decoration: none;
  padding: 6px 2px;
  position: relative;
}
.navigation-greffe a:hover { color: var(--emeraude); }

.navigation-greffe a.ancre-active::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 50%;
  width: 9px;
  height: 6px;
  transform: translateY(-50%);
  background-image: var(--frise-olive);
  background-repeat: no-repeat;
}

.bouton-tiroir {
  display: none;
  width: 46px;
  height: 46px;
  background: var(--surface);
  border: 1px solid var(--filet);
  cursor: pointer;
  padding: 0;
  position: relative;
}
.bouton-tiroir span,
.bouton-tiroir span::before,
.bouton-tiroir span::after {
  content: "";
  position: absolute;
  left: 12px;
  width: 20px;
  height: 2px;
  background: var(--encre);
}
.bouton-tiroir span { top: 22px; }
.bouton-tiroir span::before { left: 0; top: -7px; }
.bouton-tiroir span::after { left: 0; top: 7px; }

.tiroir {
  position: fixed;
  inset: var(--entete-h) 0 0 0;
  background: var(--surface);
  padding: 26px 20px 40px;
  overflow-y: auto;
  z-index: 99;
}
.tiroir[hidden] { display: none; }
.tiroir ul { list-style: none; margin: 0 0 20px; padding: 0; }
.tiroir li { margin: 0 0 10px; }
.tiroir a {
  display: block;
  padding: 15px 16px;
  border: 1px solid var(--filet);
  background: var(--papier);
  color: var(--encre);
  font-family: var(--titre);
  font-weight: 600;
  text-decoration: none;
}
.tiroir a:hover { border-color: var(--olive); color: var(--emeraude); }

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

.visa,
.visa-second {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 30px;
  font-family: var(--titre);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: 2px;
  cursor: pointer;
  position: relative;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.visa {
  background: var(--olive);
  color: var(--sur-olive);
  border: 1px solid var(--olive);
}
.visa::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 6px; height: 6px;
  background: var(--emeraude);
  transition: transform 180ms ease;
}
.visa:hover { background: var(--emeraude); border-color: var(--emeraude); color: var(--sur-olive); }
.visa:hover::before { transform: translateX(4px); background: var(--sur-olive); }

.visa-second {
  background: transparent;
  color: var(--emeraude);
  border: 1px solid var(--filet);
  box-shadow: inset 0 0 0 1px var(--surface), inset 0 0 0 2px var(--filet);
}
.visa-second:hover {
  background: var(--papier-vert);
  color: var(--emeraude-sombre);
  box-shadow: inset 0 0 0 1px var(--surface), inset 0 0 0 2px var(--olive);
}

.visa-large { width: 100%; }

/* --------------------------------------------------------------------------
   8. Ligne de tracage liee au defilement
   -------------------------------------------------------------------------- */

.filet-lecture {
  position: fixed;
  left: max(10px, calc((100vw - var(--utile)) / 2 - 26px));
  top: calc(var(--entete-h) + 20px);
  bottom: 20px;
  width: 12px;
  z-index: 30;
  pointer-events: none;
}
.filet-lecture svg { width: 12px; height: 100%; }
.filet-lecture .rail { stroke: var(--filet); stroke-width: 1; }
.filet-lecture .trace {
  stroke: var(--olive);
  stroke-width: 2;
  transition: stroke-dashoffset 120ms linear;
}
.filet-lecture .jalon { fill: var(--filet-fonce); transition: fill 220ms ease; }
.filet-lecture .jalon.jalon-atteint { fill: var(--olive); }

@media (max-width: 1320px) {
  .filet-lecture { display: none; }
}

/* Soulignement trace des titres de section */
.titre-trace {
  position: relative;
  padding-bottom: 14px;
}
.titre-trace::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 2px;
  width: 100%;
  max-width: 220px;
  background: var(--olive);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 420ms ease;
}
.titre-trace.est-vue::after { transform: scaleX(1); }

/* Apparition au defilement */
.au-fil { opacity: 0; transform: translateY(16px); transition: opacity 520ms ease, transform 520ms ease; }
.au-fil.est-vue { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   9. Rythme des sections
   -------------------------------------------------------------------------- */

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

.registre {
  padding: 96px 0;
  position: relative;
}
.registre-pale { background: var(--papier-vert); }
.registre-pale::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--frise);
  background-repeat: repeat;
  opacity: 0.06;
  pointer-events: none;
}
.registre > .colonnage { position: relative; z-index: 1; }

.chapeau-registre { max-width: 66ch; margin-bottom: 46px; }
.chapeau-registre p { font-size: 1.18rem; color: var(--encre-douce); }

/* --------------------------------------------------------------------------
   10. Hero en formulaire officiel a cases
   -------------------------------------------------------------------------- */

.imprime {
  padding: 54px 0 0;
  background:
    linear-gradient(to bottom, var(--papier-vert) 0%, var(--papier-vert) 62%, var(--papier) 62%, var(--papier) 100%);
  position: relative;
  overflow: hidden;
}
.imprime::before {
  content: "";
  position: absolute;
  inset: 0 0 38% 0;
  background-image: var(--frise);
  background-repeat: repeat;
  opacity: 0.07;
  pointer-events: none;
}

.imprime-grille {
  position: relative;
  z-index: 1;
  align-items: start;
}

.dossier-hero {
  grid-column: 1 / span 10;
  padding: 0;
}

.case {
  border-bottom: 1px solid var(--filet);
  padding: 26px 34px;
}
.case:last-child { border-bottom: 0; }

.case-libelle {
  display: block;
  font-family: var(--registre);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--encre-douce);
  margin-bottom: 8px;
}

.case-reference {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 30px;
  align-items: baseline;
  padding: 14px 34px;
  background: var(--papier-vert);
}
.case-reference span {
  font-family: var(--registre);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--emeraude);
}
.case-reference b { color: var(--encre); font-weight: 600; }

.case-titre h1 { margin-bottom: 18px; }
.case-titre .promesse {
  font-size: 1.18rem;
  color: var(--encre-douce);
  max-width: 60ch;
  margin-bottom: 0;
}

.bande-trois {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--filet);
}
.bande-trois > div {
  padding: 24px 34px;
  border-right: 1px solid var(--filet);
}
.bande-trois > div:last-child { border-right: 0; }

.chiffre-case {
  font-family: var(--registre);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1.05;
  color: var(--olive);
  display: block;
}
.chiffre-note {
  font-size: 0.9rem;
  color: var(--encre-douce);
  margin: 6px 0 0;
}

.case-pied {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.case-pied > div {
  padding: 24px 34px;
  border-right: 1px solid var(--filet);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.case-pied > div:last-child { border-right: 0; }
.case-pied .mention {
  font-size: 0.85rem;
  color: var(--encre-douce);
  margin: 0;
}

.piece-hero {
  grid-column: 6 / span 7;
  margin: -70px 0 0 0;
  align-self: end;
  position: relative;
  z-index: 2;
}

.imprime-appui {
  grid-column: 1 / span 5;
  align-self: end;
  padding-bottom: 34px;
}
.imprime-appui p {
  font-size: 0.95rem;
  color: var(--encre-douce);
  margin: 0;
}

/* --------------------------------------------------------------------------
   11. Pieces photographiques
   -------------------------------------------------------------------------- */

.piece {
  margin: 0;
  padding: 10px;
  position: relative;
  background-color: var(--surface);
  background-image: linear-gradient(to right, var(--olive), var(--olive));
  background-size: 24px 2px;
  background-position: right 10px bottom 10px;
  background-repeat: no-repeat;
  border: 1px solid var(--filet);
}
.piece::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid var(--filet);
  pointer-events: none;
  z-index: 3;
}
.piece::after {
  content: "";
  position: absolute;
  top: -1px; left: -1px;
  width: 8px; height: 8px;
  background: var(--emeraude);
  z-index: 4;
}

.piece-cliche { position: relative; }
.piece-cliche img { width: 100%; height: auto; filter: saturate(0.8) contrast(1.02); }
.piece-cliche::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 25%;
  background-image: var(--frise-blanche);
  background-repeat: repeat;
  opacity: 0.3;
  pointer-events: none;
}

.piece-legende {
  position: absolute;
  left: 20px;
  bottom: 20px;
  z-index: 5;
  background: var(--surface);
  border: 1px solid var(--emeraude);
  color: var(--encre);
  font-family: var(--registre);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  padding: 7px 13px;
  max-width: 78%;
}

/* --------------------------------------------------------------------------
   12. Section probleme, quatre cases numerotees
   -------------------------------------------------------------------------- */

.constat-grille {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gouttiere);
}

.constat {
  padding: 34px 32px 32px;
  position: relative;
}
.constat h3 { margin-bottom: 10px; padding-right: 46px; }
.constat p { margin-bottom: 0; color: var(--encre-douce); font-size: 1rem; }

.constat-numero {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--filet);
  font-family: var(--registre);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--emeraude);
  background: var(--papier-vert);
}

.constat-appui {
  margin-top: 42px;
  padding: 26px 30px;
  border-left: 3px solid var(--olive);
  background: var(--surface);
  border-top: 1px solid var(--filet);
  border-right: 1px solid var(--filet);
  border-bottom: 1px solid var(--filet);
}
.constat-appui p { margin: 0; font-size: 1.02rem; }

/* --------------------------------------------------------------------------
   13. Section solution, bandes horizontales
   -------------------------------------------------------------------------- */

.temps {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  align-items: stretch;
  border-top: 1px solid var(--filet);
}
.temps:last-of-type { border-bottom: 1px solid var(--filet); }

.temps-numero {
  display: grid;
  place-items: center;
  font-family: var(--registre);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--olive);
  border-right: 1px solid var(--filet);
  background-image: var(--frise);
  background-repeat: repeat;
  background-color: var(--surface);
}
.temps-numero span {
  display: grid;
  place-items: center;
  width: 58px; height: 58px;
  background: var(--surface);
  border: 1px solid var(--filet);
}

.temps-corps { padding: 30px 34px; }
.temps-corps h3 { margin-bottom: 8px; }
.temps-corps p { margin-bottom: 0; color: var(--encre-douce); }
.temps:hover .temps-corps { background: var(--surface); }

.temps-etiquette {
  display: inline-block;
  font-family: var(--registre);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--emeraude);
  border: 1px solid var(--filet);
  padding: 3px 9px;
  margin-bottom: 12px;
}

/* --------------------------------------------------------------------------
   14. Fonctionnalites, grille trois par deux
   -------------------------------------------------------------------------- */

.tenue-grille {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gouttiere);
}

.tenue {
  padding: 32px 28px 30px;
}
.tenue h3 { margin-bottom: 10px; }
.tenue p { font-size: 0.99rem; color: var(--encre-douce); margin-bottom: 0; }

.tenue-marque {
  width: 34px; height: 34px;
  margin-bottom: 16px;
  border: 1px solid var(--olive);
  display: grid;
  place-items: center;
}
.tenue-marque svg { width: 16px; height: 16px; }

/* --------------------------------------------------------------------------
   15. Avantages, deux colonnes asymetriques
   -------------------------------------------------------------------------- */

.gain-grille { align-items: start; }
.gain-texte { grid-column: 1 / span 7; }
.gain-chiffres { grid-column: 8 / span 5; display: grid; gap: 18px; }

.gain-texte h3 {
  margin-top: 26px;
  padding-left: 20px;
  border-left: 3px solid var(--emeraude);
}
.gain-texte p { color: var(--encre-douce); }

.gain-case { padding: 22px 24px; }
.gain-case .chiffre-case { font-size: 2.3rem; }
.gain-case p { margin: 4px 0 0; font-size: 0.94rem; color: var(--encre-douce); }

/* Barres de completude, remplissage unique */
.jauge {
  margin-top: 14px;
  height: 12px;
  background: var(--papier-vert);
  border: 1px solid var(--filet);
  position: relative;
  overflow: hidden;
}
.jauge span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: var(--olive);
  transition: width 900ms ease;
}
.jauge::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--frise-blanche);
  background-repeat: repeat-x;
  opacity: 0.45;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   16. Preuve sociale
   -------------------------------------------------------------------------- */

.paraphe-grille {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gouttiere);
}

.paraphe { padding: 30px 28px 26px; margin: 0; }
.paraphe blockquote { margin: 0 0 18px; }
.paraphe blockquote p {
  font-family: var(--registre);
  font-size: 1.06rem;
  line-height: 1.65;
  color: var(--encre);
  margin: 0;
}
.paraphe figcaption {
  border-top: 1px solid var(--filet);
  padding-top: 14px;
  font-size: 0.88rem;
  color: var(--encre-douce);
}
.paraphe figcaption b {
  display: block;
  font-family: var(--titre);
  font-size: 0.98rem;
  color: var(--encre);
}

.bandeau-chiffres {
  margin-top: 46px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--filet);
  background: var(--surface);
}
.bandeau-chiffres > div {
  padding: 26px 24px;
  border-right: 1px solid var(--filet);
}
.bandeau-chiffres > div:last-child { border-right: 0; }
.bandeau-chiffres p { margin: 4px 0 0; font-size: 0.9rem; color: var(--encre-douce); }

.caution {
  margin-top: 42px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: var(--gouttiere);
  align-items: center;
}
.caution-texte p { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   17. Tarifs
   -------------------------------------------------------------------------- */

.bordereaux {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gouttiere);
  align-items: stretch;
}

.bordereau {
  display: flex;
  flex-direction: column;
  padding: 0;
}
.bordereau-haut {
  padding: 28px 28px 22px;
  border-bottom: 1px solid var(--filet);
}
.bordereau-mise { transform: translateY(-16px); }

.bordereau-nom {
  font-family: var(--titre);
  font-size: 1.28rem;
  font-weight: 700;
  margin: 0 0 6px;
}
.bordereau-cible {
  font-size: 0.9rem;
  color: var(--encre-douce);
  margin: 0 0 18px;
  min-height: 4.2em;
}
.bordereau-prix {
  font-family: var(--registre);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--olive);
  line-height: 1;
}
.bordereau-unite {
  display: block;
  font-family: var(--registre);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--encre-douce);
  margin-top: 8px;
}

.bordereau-liste {
  list-style: none;
  margin: 0;
  padding: 24px 28px;
  flex: 1 1 auto;
}
.bordereau-liste li {
  position: relative;
  padding-left: 24px;
  font-size: 0.94rem;
  color: var(--encre-douce);
  margin-bottom: 11px;
}
.bordereau-liste li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 9px; height: 6px;
  background-image: var(--frise-olive);
  background-repeat: no-repeat;
}

.bordereau-pied { padding: 0 28px 28px; }

.tampon-mise {
  display: inline-block;
  font-family: var(--registre);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: var(--olive);
  color: var(--sur-olive);
  padding: 4px 11px;
  margin-bottom: 12px;
}

.note-tarifs {
  margin-top: 34px;
  font-size: 0.92rem;
  color: var(--encre-douce);
  max-width: 78ch;
}

/* --------------------------------------------------------------------------
   18. FAQ
   -------------------------------------------------------------------------- */

.colonne-huit {
  grid-column: 3 / span 8;
}

.questionnaire { border-top: 1px solid var(--filet); }

.question {
  border-bottom: 1px solid var(--filet);
  background: var(--surface);
}
.question summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 54px 22px 26px;
  position: relative;
  font-family: var(--titre);
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--encre);
}
.question summary::-webkit-details-marker { display: none; }
.question summary::after {
  content: "";
  position: absolute;
  right: 24px;
  top: 30px;
  width: 11px; height: 8px;
  background-image: var(--frise-olive);
  background-repeat: no-repeat;
  background-size: 11px 8px;
  transform: rotate(180deg);
  transition: transform 200ms ease;
}
.question[open] summary::after { transform: rotate(0deg); }
.question summary:hover { color: var(--emeraude); }
.question-corps { padding: 0 26px 24px; }
.question-corps p { margin-bottom: 0.8em; color: var(--encre-douce); font-size: 1rem; }
.question-corps p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   19. Formulaire
   -------------------------------------------------------------------------- */

.bureau-contact { align-items: start; }
.bureau-intro { grid-column: 1 / span 5; }
.bureau-intro p { color: var(--encre-douce); }
.bureau-formulaire { grid-column: 6 / span 7; padding: 34px 34px 30px; }

.champ { margin-bottom: 18px; }
.champ label {
  display: block;
  font-family: var(--registre);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--encre-douce);
  margin-bottom: 7px;
}

.champ input[type="text"],
.champ input[type="email"],
.champ select,
.champ textarea {
  width: 100%;
  font-family: var(--courant);
  font-size: 1rem;
  color: var(--encre);
  background: var(--papier);
  border: 1px solid var(--filet);
  box-shadow: inset 0 0 0 1px var(--surface), inset 0 0 0 2px var(--filet);
  padding: 12px 14px;
  border-radius: 2px;
}
.champ textarea { resize: vertical; min-height: 130px; }
.champ input:focus,
.champ select:focus,
.champ textarea:focus {
  outline: 3px solid var(--emeraude);
  outline-offset: 2px;
  background: var(--surface);
}

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

.champ-accord {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border: 1px solid var(--filet);
  padding: 16px;
  background: var(--papier-vert);
  margin-bottom: 22px;
}
.champ-accord input { margin-top: 5px; width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--olive); }
.champ-accord label {
  font-family: var(--courant);
  font-size: 0.9rem;
  text-transform: none;
  letter-spacing: normal;
  color: var(--encre-douce);
  margin: 0;
}

.mention-voie {
  margin-top: 18px;
  font-size: 0.88rem;
  color: var(--encre-douce);
}

/* --------------------------------------------------------------------------
   20. Pied de page
   -------------------------------------------------------------------------- */

.pied {
  background: var(--emeraude-sombre);
  color: #DCE9E2;
  margin-top: 0;
}
.pied-frise {
  height: 10px;
  background-image: var(--frise-olive);
  background-repeat: repeat-x;
  background-color: var(--papier-vert);
}
.pied-grille {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 36px;
  padding: 62px 0 42px;
}
.pied h2, .pied h3 { color: #FFFFFF; }
.pied h3 {
  font-family: var(--registre);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 600;
  margin-bottom: 16px;
}
.pied p { color: #C3D8CD; font-size: 0.93rem; }
.pied ul { list-style: none; margin: 0; padding: 0; }
.pied li { margin-bottom: 9px; }
.pied a { color: #DCE9E2; text-decoration: none; font-size: 0.93rem; }
.pied a:hover { color: #FFFFFF; text-decoration: underline; }

.pied-marque { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.pied-marque .marque-mot { color: #FFFFFF; }

.pied-social { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 16px; }
.pied-social a {
  font-family: var(--registre);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 1px solid rgba(220, 233, 226, 0.35);
  padding: 5px 10px;
}

.pied-barre {
  border-top: 1px solid rgba(220, 233, 226, 0.24);
  padding: 20px 0 30px;
  font-size: 0.86rem;
  color: #C3D8CD;
}
.pied-barre p { margin: 0 0 4px; max-width: none; color: #C3D8CD; }
.pied-barre a { text-decoration: underline; }

/* --------------------------------------------------------------------------
   21. Pages interieures
   -------------------------------------------------------------------------- */

.acte {
  padding: 70px 0 90px;
}
.acte-entete {
  border-bottom: 1px solid var(--filet);
  padding-bottom: 26px;
  margin-bottom: 40px;
}
.acte-entete p { font-size: 1.15rem; color: var(--encre-douce); margin-bottom: 0; }

.fil {
  font-family: var(--registre);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--encre-douce);
  margin-bottom: 18px;
}
.fil a { color: var(--emeraude); text-decoration: none; }
.fil a:hover { text-decoration: underline; }

.acte-corps { max-width: 76ch; }
.acte-corps h2 {
  font-size: 1.55rem;
  margin-top: 46px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--filet);
}
.acte-corps h3 { font-size: 1.15rem; margin-top: 30px; }
.acte-corps ul { padding-left: 1.1em; }
.acte-corps li { color: var(--encre-douce); }

.acte-deux {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}
.portrait { padding: 10px; }
.portrait img { width: 100%; }
.portrait figcaption {
  font-family: var(--registre);
  font-size: 0.82rem;
  color: var(--encre-douce);
  padding: 12px 6px 4px;
}

.liens-profils { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.liens-profils li { margin: 0; }
.liens-profils a {
  display: inline-block;
  font-family: var(--registre);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 1px solid var(--filet);
  padding: 7px 12px;
  text-decoration: none;
  color: var(--emeraude);
}
.liens-profils a:hover { border-color: var(--olive); color: var(--olive); }

.sommaire-plan { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gouttiere); }
.sommaire-carte { padding: 26px 26px 22px; }
.sommaire-carte h3 { margin-bottom: 8px; }
.sommaire-carte p { font-size: 0.95rem; color: var(--encre-douce); margin-bottom: 10px; }
.sommaire-carte a { font-family: var(--titre); font-weight: 600; font-size: 0.94rem; }

.confirmation {
  padding: 46px 40px;
  max-width: 760px;
  margin: 0 auto;
  text-align: left;
}
.confirmation .visa { margin-top: 14px; }

.tampon-recu {
  display: inline-block;
  font-family: var(--registre);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--olive);
  border: 2px solid var(--olive);
  padding: 8px 16px;
  transform: rotate(-2deg);
  margin-bottom: 24px;
}

/* --------------------------------------------------------------------------
   22. Adaptations
   -------------------------------------------------------------------------- */

@media (max-width: 1100px) {
  .dossier-hero { grid-column: 1 / span 12; }
  .piece-hero { grid-column: 1 / span 12; margin-top: 28px; }
  .imprime-appui { grid-column: 1 / span 12; padding-bottom: 20px; }
  .gain-texte, .gain-chiffres { grid-column: 1 / span 12; }
  .bureau-intro, .bureau-formulaire { grid-column: 1 / span 12; }
  .colonne-huit { grid-column: 1 / span 12; }
  .tenue-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pied-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .caution { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 900px) {
  .navigation-greffe { display: none; }
  .greffe .visa { display: none; }
  .bouton-tiroir { display: block; }
  .bordereaux { grid-template-columns: minmax(0, 1fr); }
  .bordereau-mise { transform: none; }
  .paraphe-grille { grid-template-columns: minmax(0, 1fr); }
  .bandeau-chiffres { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bandeau-chiffres > div:nth-child(2) { border-right: 0; }
  .acte-deux { grid-template-columns: minmax(0, 1fr); }
  .sommaire-plan { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 720px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.62rem; }
  .registre { padding: 62px 0; }
  .constat-grille { grid-template-columns: minmax(0, 1fr); }
  .tenue-grille { grid-template-columns: minmax(0, 1fr); }
  .bande-trois { grid-template-columns: minmax(0, 1fr); }
  .bande-trois > div { border-right: 0; border-bottom: 1px solid var(--filet); }
  .bande-trois > div:last-child { border-bottom: 0; }
  .case-pied { grid-template-columns: minmax(0, 1fr); }
  .case-pied > div { border-right: 0; border-bottom: 1px solid var(--filet); }
  .case-pied > div:last-child { border-bottom: 0; }
  .case, .case-reference { padding-left: 20px; padding-right: 20px; }
  .bande-trois > div, .case-pied > div { padding-left: 20px; padding-right: 20px; }
  .temps { grid-template-columns: 68px minmax(0, 1fr); }
  .temps-numero span { width: 44px; height: 44px; font-size: 1.5rem; }
  .temps-corps { padding: 24px 20px; }
  .champ-duo { grid-template-columns: minmax(0, 1fr); }
  .bureau-formulaire { padding: 24px 20px; }
  .pied-grille { grid-template-columns: minmax(0, 1fr); }
  .bandeau-chiffres { grid-template-columns: minmax(0, 1fr); }
  .bandeau-chiffres > div { border-right: 0; border-bottom: 1px solid var(--filet); }
  .bandeau-chiffres > div:last-child { border-bottom: 0; }
  .confirmation { padding: 30px 22px; }
}

/* --------------------------------------------------------------------------
   23. Mouvement reduit
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .au-fil { opacity: 1; transform: none; }
  .titre-trace::after { transform: scaleX(1); }
  .filet-lecture .trace { stroke-dashoffset: 0 !important; }
}

/* --------------------------------------------------------------------------
   24. Impression
   -------------------------------------------------------------------------- */

@media print {
  .greffe, .tiroir, .filet-lecture, .visa, .visa-second { display: none !important; }
  body { background: #FFFFFF; color: #000000; }
  main { padding-top: 0; }
}

/* ==========================================================================
   25. Le Registre de vigilance, section magazine
   Ajout posterieur a la construction du site: aucune regle des sections 1 a 24
   n est modifiee. Le magazine reprend les memes jetons de couleur, la meme
   forme signature (cadre a double filet a cases d angle), le meme motif
   (frise de chevrons) et la meme signature d animation (trace de ligne liee
   au defilement, deja pilotee par assets/js/main.js).
   Vocabulaire de nommage, dans la langue de registre deja employee sur le site:
   feuillet pour l article, notice pour la carte, parution pour la ligne de
   sommaire, piece pour l illustration.
   ========================================================================== */

/* --------------------------------------------------------------------------
   25.1 Colonne de lecture et rythme du magazine
   -------------------------------------------------------------------------- */

.feuillet-colonne {
  width: min(100% - 40px, 72ch);
  margin-inline: auto;
}

.magazine { padding: 54px 0 92px; }
.feuillet { padding: 44px 0 0; }

/* Titre de bloc sans balise de titre: employe partout ou la hierarchie h2 et h3
   est reservee au corps redactionnel verse par l assembleur. */
.titre-bloc {
  font-family: var(--titre);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--encre);
  margin: 0 0 14px;
  max-width: none;
}

/* Libelle de colonne du pied de page, reprise exacte du rendu de .pied h3. */
.pied .pied-titre {
  font-family: var(--registre);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 600;
  color: #FFFFFF;
  margin: 0 0 16px;
  max-width: none;
}

/* --------------------------------------------------------------------------
   25.2 En tete de la page d index du magazine
   -------------------------------------------------------------------------- */

.magazine-entete {
  border-bottom: 1px solid var(--filet);
  padding-bottom: 34px;
  margin-bottom: 48px;
}
.magazine-entete h1 { margin-bottom: 18px; max-width: 22ch; }
.magazine-chapo {
  font-size: 1.18rem;
  color: var(--encre-douce);
  margin-bottom: 0;
  max-width: 68ch;
}
.magazine-releve {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin: 24px 0 0;
  max-width: none;
  font-family: var(--registre);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--emeraude);
}
.magazine-releve b { color: var(--encre); font-weight: 600; }

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

.sommaire-magazine {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gouttiere);
  align-items: stretch;
}

/* --------------------------------------------------------------------------
   25.4 Carte d article, forme signature et etat de survol
   -------------------------------------------------------------------------- */

.notice {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 10px;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}
.notice::after { transition: background-color 180ms ease, transform 180ms ease; }
.notice:hover { border-color: var(--olive); box-shadow: 0 8px 18px rgba(16, 36, 26, 0.07); }
.notice:hover::after { background: var(--olive); transform: translateX(4px); }

.notice-cliche {
  display: block;
  position: relative;
  background: var(--papier-vert);
}
.notice-cliche img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  filter: saturate(0.8) contrast(1.02);
  transition: filter 180ms ease;
}
.notice-cliche::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 25%;
  background-image: var(--frise-blanche);
  background-repeat: repeat;
  opacity: 0.3;
  pointer-events: none;
}
.notice:hover .notice-cliche img { filter: saturate(0.96) contrast(1.02); }

.notice-corps {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 20px 18px 16px;
}

.notice-angle {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--registre);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--emeraude);
  border: 1px solid var(--filet);
  background: var(--surface);
  padding: 3px 9px;
  margin-bottom: 14px;
}

.notice-titre {
  display: block;
  font-family: var(--titre);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.34;
  color: var(--encre);
  margin: 0 0 10px;
  max-width: none;
}
.notice-titre a { color: var(--encre); text-decoration: none; }
.notice-titre a:hover { color: var(--emeraude); text-decoration: underline; }

.notice-extrait {
  display: block;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--encre-douce);
  margin: 0 0 18px;
  max-width: none;
}

.notice-pied {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 16px;
  border-top: 1px solid var(--filet);
  padding-top: 12px;
  max-width: none;
  font-family: var(--registre);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--encre-douce);
}

/* Carte entierement cliquable, employee par le bloc A lire aussi. */
.notice-lien {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  text-decoration: none;
  color: inherit;
}
.notice-lien:hover { color: inherit; }
.notice-lien:hover .notice-titre { color: var(--emeraude); }

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

.feuillet-entete {
  border-bottom: 1px solid var(--filet);
  padding-bottom: 30px;
  margin-bottom: 36px;
}
.feuillet-entete h1 { font-size: 2.6rem; margin-bottom: 22px; }

.feuillet-jalons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin: 0 0 20px;
  max-width: none;
  font-family: var(--registre);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--encre-douce);
}
.feuillet-angle {
  color: var(--emeraude);
  border: 1px solid var(--filet);
  background: var(--surface);
  padding: 3px 10px;
}
.feuillet-jalons time { color: var(--encre); }

/* --------------------------------------------------------------------------
   25.6 Exergue de chapeau et piece photographique de l article
   -------------------------------------------------------------------------- */

.feuillet-chapo {
  margin: 0;
  padding: 22px 26px 20px;
  max-width: none;
  background: var(--papier-vert);
  border: 1px solid var(--filet);
  border-left: 3px solid var(--olive);
  font-family: var(--registre);
  font-size: 1.14rem;
  line-height: 1.7;
  color: var(--encre);
}

.feuillet-piece { margin: 0 0 42px; }

/* --------------------------------------------------------------------------
   25.7 Corps d article, balises nues mises en forme
   Le corps redactionnel ne porte aucun attribut class, style ou id: chaque
   balise est donc stylee comme descendante du conteneur de corps, avec la
   forme signature du projet. Un corps d article ne peut pas paraitre non style.
   -------------------------------------------------------------------------- */

.feuillet-corps { margin-bottom: 46px; }

.feuillet-corps h2 {
  position: relative;
  font-size: 1.72rem;
  font-weight: 700;
  margin: 52px 0 16px;
  padding-bottom: 14px;
}
.feuillet-corps h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  max-width: 220px;
  height: 2px;
  background: var(--olive);
}
.feuillet-corps > h2:first-child { margin-top: 0; }

.feuillet-corps h3 {
  font-size: 1.16rem;
  font-weight: 600;
  margin: 34px 0 10px;
  padding-left: 18px;
  border-left: 3px solid var(--emeraude);
}

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

.feuillet-corps ul,
.feuillet-corps ol {
  margin: 0 0 1.5em;
  padding-left: 0;
  list-style: none;
  max-width: 68ch;
}
.feuillet-corps li { margin-bottom: 0.6em; }
.feuillet-corps li:last-child { margin-bottom: 0; }

.feuillet-corps ul > li {
  position: relative;
  padding-left: 26px;
}
.feuillet-corps ul > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.66em;
  width: 9px;
  height: 6px;
  background-image: var(--frise-olive);
  background-repeat: no-repeat;
}

.feuillet-corps ol { counter-reset: feuillet-rang; }
.feuillet-corps ol > li {
  position: relative;
  padding-left: 46px;
  min-height: 30px;
  counter-increment: feuillet-rang;
}
.feuillet-corps ol > li::before {
  content: counter(feuillet-rang);
  position: absolute;
  left: 0;
  top: 0.06em;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--filet);
  background: var(--surface);
  font-family: var(--registre);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--emeraude);
}

.feuillet-corps ul ul,
.feuillet-corps ul ol,
.feuillet-corps ol ul,
.feuillet-corps ol ol { margin: 0.6em 0 0; }

/* Tableau recapitulatif complet, en tete compris */
.feuillet-corps table {
  width: 100%;
  margin: 30px 0 34px;
  border-collapse: collapse;
  border: 1px solid var(--filet);
  background: var(--surface);
  font-family: var(--courant);
  font-size: 0.94rem;
  line-height: 1.6;
}
.feuillet-corps th,
.feuillet-corps td {
  border: 1px solid var(--filet);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}
.feuillet-corps thead th {
  background: var(--papier-vert);
  font-family: var(--registre);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--encre);
}
.feuillet-corps tbody th {
  background: var(--papier);
  font-family: var(--titre);
  font-weight: 600;
  color: var(--encre);
}
.feuillet-corps tbody tr:nth-child(even) td { background: var(--papier); }
.feuillet-corps tbody td { color: var(--encre-douce); }

/* Citation */
.feuillet-corps blockquote {
  position: relative;
  margin: 32px 0;
  padding: 24px 28px 22px;
  background: var(--surface);
  border: 1px solid var(--filet);
  border-left: 3px solid var(--olive);
}
.feuillet-corps blockquote::after {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  width: 8px;
  height: 8px;
  background: var(--emeraude);
}
.feuillet-corps blockquote p {
  font-family: var(--registre);
  font-size: 1.06rem;
  line-height: 1.7;
  color: var(--encre);
  margin-bottom: 0.7em;
}
.feuillet-corps blockquote p:last-child { margin-bottom: 0; }

/* Encadre: le cadre a double filet a cases d angle, en fond vert tres pale */
.feuillet-corps aside {
  position: relative;
  margin: 34px 0;
  padding: 26px 30px 24px;
  background-color: var(--papier-vert);
  background-image: linear-gradient(to right, var(--olive), var(--olive));
  background-size: 24px 2px;
  background-position: right 10px bottom 10px;
  background-repeat: no-repeat;
  border: 1px solid var(--filet);
}
.feuillet-corps aside::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid var(--filet);
  pointer-events: none;
}
.feuillet-corps aside::after {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 8px;
  height: 8px;
  background: var(--emeraude);
}
.feuillet-corps aside p:last-child,
.feuillet-corps aside ul:last-child,
.feuillet-corps aside ol:last-child { margin-bottom: 0; }

.feuillet-corps figure {
  margin: 32px 0;
  padding: 10px;
  border: 1px solid var(--filet);
  background: var(--surface);
}
.feuillet-corps figcaption {
  font-family: var(--registre);
  font-size: 0.84rem;
  color: var(--encre-douce);
  padding: 12px 6px 4px;
}

.feuillet-corps strong { font-weight: 700; color: var(--encre); }
.feuillet-corps em { font-style: italic; }
.feuillet-corps a {
  color: var(--emeraude);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.feuillet-corps a:hover { color: var(--olive); background: var(--papier-vert); }

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

.feuillet-appel {
  padding: 30px 32px 28px;
  margin-bottom: 34px;
}
.feuillet-appel p { color: var(--encre-douce); max-width: 62ch; }
.feuillet-appel p:last-of-type { margin-bottom: 20px; }
.feuillet-appel .visa { width: auto; }

/* --------------------------------------------------------------------------
   25.9 Encart auteur
   -------------------------------------------------------------------------- */

.encart-auteur {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding: 26px 28px 24px;
}
.encart-auteur img {
  width: 96px;
  height: 96px;
  border: 1px solid var(--filet);
}
.encart-auteur p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--encre-douce);
  margin-bottom: 0.7em;
  max-width: 62ch;
}
.encart-auteur p:last-child { margin-bottom: 0; }
.encart-auteur .encart-auteur-role {
  font-family: var(--registre);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--emeraude);
  margin-bottom: 4px;
}
.encart-auteur .encart-auteur-nom {
  font-family: var(--titre);
  font-size: 1.06rem;
  font-weight: 700;
  color: var(--encre);
  margin-bottom: 10px;
}

/* --------------------------------------------------------------------------
   25.10 Bloc A lire aussi
   -------------------------------------------------------------------------- */

.lire-aussi { padding: 68px 0 76px; }
.lire-aussi-titre {
  font-family: var(--titre);
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--encre);
  margin: 0 0 10px;
  max-width: none;
}
.lire-aussi-appui {
  color: var(--encre-douce);
  margin-bottom: 34px;
  max-width: 68ch;
}
.lire-aussi-grille {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gouttiere);
  align-items: stretch;
}

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

.derniers-entete {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px 34px;
  margin-bottom: 42px;
}
.derniers-entete .chapeau-registre { margin-bottom: 0; }
.derniers-lien {
  font-family: var(--registre);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--emeraude);
  text-decoration: none;
  border-bottom: 2px solid var(--olive);
  padding-bottom: 4px;
  white-space: nowrap;
}
.derniers-lien:hover { color: var(--olive); }
.derniers-pied { margin-top: 38px; }
.derniers-pied .visa-second { width: auto; }

/* --------------------------------------------------------------------------
   25.12 Liste des parutions, employee sur la page auteur et le plan du site
   -------------------------------------------------------------------------- */

.parutions {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--filet);
}
.parutions li { margin: 0; border-bottom: 1px solid var(--filet); }
.parution {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 4px 24px;
  align-items: baseline;
  padding: 16px 8px 16px 4px;
  text-decoration: none;
  color: var(--encre);
  transition: background-color 160ms ease, color 160ms ease;
}
.parution:hover { background: var(--surface); color: var(--emeraude); }
.parution-date {
  font-family: var(--registre);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--encre-douce);
}
.parution-titre {
  font-family: var(--titre);
  font-weight: 600;
  font-size: 1.02rem;
  line-height: 1.42;
}
.parution-angle {
  display: block;
  font-family: var(--registre);
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--emeraude);
  margin-top: 5px;
}

/* --------------------------------------------------------------------------
   25.13 Adaptations du magazine
   -------------------------------------------------------------------------- */

@media (max-width: 1100px) {
  .sommaire-magazine { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lire-aussi-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .lire-aussi-grille { grid-template-columns: minmax(0, 1fr); }
  .feuillet-entete h1 { font-size: 2.2rem; }
}

@media (max-width: 720px) {
  .sommaire-magazine { grid-template-columns: minmax(0, 1fr); }
  .magazine { padding: 36px 0 66px; }
  .lire-aussi { padding: 48px 0 56px; }
  .feuillet-entete h1 { font-size: 1.95rem; }
  .feuillet-chapo { padding: 18px 20px 16px; font-size: 1.06rem; }
  .feuillet-corps h2 { font-size: 1.4rem; margin-top: 40px; }
  .feuillet-corps table { display: block; overflow-x: auto; }
  .feuillet-corps aside { padding: 22px 20px 20px; }
  .feuillet-corps blockquote { padding: 20px 20px 18px; }
  .feuillet-appel { padding: 24px 20px 22px; }
  .encart-auteur { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .parution { grid-template-columns: minmax(0, 1fr); }
}

@media print {
  .lire-aussi, .feuillet-appel, .derniers-pied { display: none !important; }
  .feuillet-colonne { width: auto; }
  .notice, .feuillet-corps aside { box-shadow: none; }
}

/* --------------------------------------------------------------------------
   Correction: en tete sur une seule ligne
   Le magazine a porte la navigation a huit entrees. Sans white-space nowrap,
   les libelles en deux mots se cassaient a l interieur du lien, et le bouton
   se laissait comprimer par flex-shrink. On fige les deux, au dela du seuil
   ou la navigation de bureau est affichee.
   -------------------------------------------------------------------------- */
@media (min-width: 901px) {
  .navigation-greffe a, .greffe .visa { white-space: nowrap; }
  .navigation-greffe, .greffe .visa { flex: 0 0 auto; }
}
