/* ==========================================================================
   Tacitia, feuille de style unique
   Systeme de nommage ancre dans le vocabulaire du traitement des resiliations
   guichet, ouverture, fiche de dossier, bande, souche, bareme, palier, registre
   ========================================================================== */

:root {
  --fond: #F5F2F3;
  --fond-alt: #EBE6E8;
  --surface: #FDFCFC;
  --surface-haute: #F1ECEE;
  --texte: #1A1216;
  --texte-doux: #5B4C52;
  --accent: #DA1B2E;
  --accent-sombre: #B81727;
  --accent-texte: #FFF6F7;
  --signal: #8A6704;
  --bordure: #C9BFC3;
  --bordure-appuyee: #A8999F;

  --titre: "Quicksand", "Trebuchet MS", sans-serif;
  --corps: "Source Serif 4", Georgia, "Times New Roman", serif;
  --chiffre: "Inconsolata", "Courier New", monospace;

  --largeur: 1240px;
  --gouttiere: 28px;
  --hauteur-guichet: 68px;
  --lisere: 1px solid var(--bordure);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 96px; color-scheme: light; }

body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font-family: var(--corps);
  font-size: 1.0625rem;
  line-height: 1.68;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--texte); text-decoration-color: var(--bordure-appuyee); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent); }

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

h1, h2, h3, h4 {
  font-family: var(--titre);
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0 0 0.6em;
  font-weight: 600;
}

h1 { font-size: 3.4rem; }
h2 { font-size: 2.1rem; }
h3 { font-size: 1.25rem; font-weight: 500; }
h4 { font-size: 1.05rem; font-weight: 500; }

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

.chapeau { font-size: 1.15rem; color: var(--texte-doux); }

.surtitre {
  font-family: var(--chiffre);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--signal);
  display: block;
  margin-bottom: 14px;
}

.surtitre--rouge { color: var(--accent); }

.saut-contenu {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--accent-texte);
  padding: 12px 20px;
  font-family: var(--titre);
  font-weight: 600;
  z-index: 90;
}
.saut-contenu:focus { left: 12px; top: 12px; }

/* --------------------------------------------------------------------------
   Motif signature: semis de points de type papier millimetre
   -------------------------------------------------------------------------- */

.semis {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(var(--bordure) 1px, transparent 1px),
    radial-gradient(var(--bordure-appuyee) 1.5px, transparent 1.5px);
  background-size: 8px 8px, 40px 40px;
  background-position: 0 0, 0 0;
  opacity: 0.55;
}

.semis--dense { opacity: 0.85; }
.semis--discret { opacity: 0.35; }

.semis--estompe {
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 42%, transparent 88%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 42%, transparent 88%);
}

/* --------------------------------------------------------------------------
   Forme signature: lisere continu et coin ancre en equerre rouge
   -------------------------------------------------------------------------- */

.ancre {
  position: relative;
  border: var(--lisere);
  border-radius: 2px;
  background: var(--surface);
}

.ancre::before,
.ancre::after {
  content: "";
  position: absolute;
  background: var(--accent);
  pointer-events: none;
}

.ancre::before { top: -1px; left: -1px; width: 28px; height: 2px; }
.ancre::after { top: -1px; left: -1px; width: 2px; height: 28px; }

.equerre {
  position: absolute;
  width: 28px;
  height: 28px;
  pointer-events: none;
}
.equerre::before,
.equerre::after { content: ""; position: absolute; background: var(--accent); }
.equerre::before { width: 28px; height: 2px; }
.equerre::after { width: 2px; height: 28px; }

.equerre--hg { top: -1px; left: -1px; }
.equerre--hg::before { top: 0; left: 0; }
.equerre--hg::after { top: 0; left: 0; }

.equerre--hd { top: -1px; right: -1px; }
.equerre--hd::before { top: 0; right: 0; }
.equerre--hd::after { top: 0; right: 0; }

.equerre--bg { bottom: -1px; left: -1px; }
.equerre--bg::before { bottom: 0; left: 0; }
.equerre--bg::after { bottom: 0; left: 0; }

.equerre--bd { bottom: -1px; right: -1px; }
.equerre--bd::before { bottom: 0; right: 0; }
.equerre--bd::after { bottom: 0; right: 0; }

/* --------------------------------------------------------------------------
   Logotype
   -------------------------------------------------------------------------- */

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

.marque__sceau { flex: none; display: block; }

.marque__mot {
  font-family: var(--titre);
  font-weight: 600;
  font-size: 1.32rem;
  letter-spacing: -0.02em;
}

.marque__point { color: var(--accent); }

/* --------------------------------------------------------------------------
   En tete: le guichet
   -------------------------------------------------------------------------- */

.guichet {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--hauteur-guichet);
  background: rgba(245, 242, 243, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: var(--lisere);
  z-index: 60;
  transition: height 180ms ease;
}

.guichet.est-compact { height: 56px; }

.guichet__interieur {
  max-width: var(--largeur);
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--gouttiere);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

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

.guichet__lien {
  font-family: var(--chiffre);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--texte-doux);
  text-decoration: none;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.guichet__lien:hover,
.guichet__lien:focus-visible { color: var(--texte); border-bottom-color: var(--accent); }

.guichet__jauge {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 0;
  background: var(--accent);
  transition: width 90ms linear;
}

.guichet__bascule {
  display: none;
  width: 44px;
  height: 40px;
  background: transparent;
  border: var(--lisere);
  border-radius: 2px;
  cursor: pointer;
  padding: 10px 9px;
  flex-direction: column;
  justify-content: space-between;
}
.guichet__bascule span { display: block; height: 2px; background: var(--texte); }
.guichet__bascule span:nth-child(2) { width: 70%; background: var(--accent); }

.panneau-ancres {
  position: fixed;
  inset: 0;
  background: var(--fond);
  z-index: 70;
  padding: 88px var(--gouttiere) 40px;
  overflow-y: auto;
}
.panneau-ancres[hidden] { display: none; }

.panneau-ancres__liste { list-style: none; margin: 0 0 28px; padding: 0; }
.panneau-ancres__liste li { border-bottom: var(--lisere); }
.panneau-ancres__liste a {
  display: block;
  padding: 16px 0;
  font-family: var(--titre);
  font-weight: 600;
  font-size: 1.35rem;
  text-decoration: none;
}
.panneau-ancres__fermer {
  position: absolute;
  top: 16px;
  right: var(--gouttiere);
  background: transparent;
  border: var(--lisere);
  border-radius: 2px;
  color: var(--texte);
  font-family: var(--chiffre);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 10px 14px;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   Boutons, avec cachet carre en tete d intitule
   -------------------------------------------------------------------------- */

.bouton {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 26px;
  border-radius: 2px;
  font-family: var(--titre);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 140ms ease, border-color 140ms ease, transform 90ms ease;
}

.bouton::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: none;
  background: currentColor;
}

.bouton--principal { background: var(--accent); color: var(--accent-texte); }
.bouton--principal:hover { background: var(--accent-sombre); border-color: rgba(255, 255, 255, 0.6); }
.bouton--principal:active { transform: translateY(1px); }

.bouton--secondaire { background: transparent; color: var(--texte); border-color: var(--bordure); }
.bouton--secondaire::before { background: var(--accent); }
.bouton--secondaire:hover { background: var(--surface); border-color: var(--texte); }
.bouton--secondaire:active { transform: translateY(1px); }

.bouton--compact { height: 40px; padding: 0 18px; font-size: 0.9rem; }

/* --------------------------------------------------------------------------
   Compteurs Inconsolata
   -------------------------------------------------------------------------- */

.compteur {
  font-family: var(--chiffre);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  line-height: 1;
  display: inline-block;
}

.compteur--geant { font-size: 3.2rem; }
.compteur--bandeau { font-size: 2.4rem; }
.compteur--prix { font-size: 3.2rem; }

.compteur--signal { color: var(--signal); }
.compteur--alerte { color: var(--accent); }

/* --------------------------------------------------------------------------
   Ouverture: hero plein cadre, lisere continu, coins ancres
   -------------------------------------------------------------------------- */

.ouverture {
  position: relative;
  min-height: 100vh;
  padding: calc(var(--hauteur-guichet) + 24px) 24px 24px;
  background: var(--fond);
  overflow: hidden;
}

.ouverture__cadre {
  position: relative;
  min-height: calc(100vh - var(--hauteur-guichet) - 48px);
  border: var(--lisere);
  border-radius: 2px;
  padding: 56px 44px 44px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.ouverture__grille {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--largeur);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 40px;
  align-items: center;
}

.ouverture__promesse { grid-column: span 7; }
.ouverture__fiche { grid-column: span 5; }

.ouverture h1 { margin-bottom: 22px; }
.ouverture h1 em { font-style: normal; color: var(--signal); }

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

.reassurance {
  display: flex;
  align-items: baseline;
  gap: 12px;
  border-top: var(--lisere);
  padding-top: 18px;
  max-width: 56ch;
}
.reassurance__chiffre {
  font-family: var(--chiffre);
  font-weight: 600;
  font-size: 1.6rem;
  color: var(--signal);
  font-variant-numeric: tabular-nums;
}
.reassurance__texte { font-size: 0.9rem; color: var(--texte-doux); margin: 0; }

/* Fiche de dossier du hero */

.fiche-dossier {
  position: relative;
  border: var(--lisere);
  border-radius: 2px;
  background: var(--surface);
  overflow: hidden;
}

.fiche-dossier__reference {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: var(--lisere);
  font-family: var(--chiffre);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--texte-doux);
}

.cliche-fiche { position: relative; height: 172px; overflow: hidden; border-bottom: var(--lisere); }
.cliche-fiche img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.06) brightness(1.05); }
.cliche-fiche__voile {
  position: absolute;
  inset: auto 0 0 0;
  height: 40%;
  background: linear-gradient(to top, var(--surface), transparent);
}

.fiche-dossier__delai {
  padding: 22px 16px 18px;
  border-bottom: 2px solid var(--accent);
  text-align: center;
}
.fiche-dossier__delai .compteur { display: block; }
.fiche-dossier__mention {
  font-family: var(--chiffre);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--texte-doux);
  margin: 10px 0 0;
}

.fiche-dossier__lignes { list-style: none; margin: 0; padding: 0; }
.fiche-dossier__ligne {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px 16px;
  border-bottom: var(--lisere);
  font-family: var(--chiffre);
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
}
.fiche-dossier__ligne:last-child { border-bottom: 0; }
.fiche-dossier__date { color: var(--texte-doux); }
.fiche-dossier__objet { font-family: var(--corps); font-size: 0.9rem; }
.fiche-dossier__montant { color: var(--signal); }

.statut {
  font-family: var(--chiffre);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 8px;
  border: 1px solid var(--bordure);
  border-radius: 2px;
  color: var(--texte-doux);
  white-space: nowrap;
}
.statut--repondue { color: var(--signal); border-color: rgba(138, 103, 4, 0.5); }
.statut--urgente { color: var(--accent); border-color: rgba(218, 27, 46, 0.6); }

/* --------------------------------------------------------------------------
   Rythme des sections
   -------------------------------------------------------------------------- */

.plage {
  position: relative;
  padding: 104px 0;
  overflow: hidden;
}
.plage--alt { background: var(--fond-alt); }
.plage--serree { padding: 72px 0; }

.contenu {
  position: relative;
  z-index: 2;
  max-width: var(--largeur);
  margin: 0 auto;
  padding: 0 var(--gouttiere);
}

.entete-plage { max-width: 74ch; margin-bottom: 48px; }
.entete-plage--large { max-width: 100%; }

.entete-plage--partagee {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 48px;
  align-items: end;
  max-width: 100%;
}

/* --------------------------------------------------------------------------
   Constat: trois colonnes de couts chiffres, plus un cliche de terrain
   -------------------------------------------------------------------------- */

.colonnes-couts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: var(--lisere);
  border-left: var(--lisere);
}

.cout {
  position: relative;
  border-right: var(--lisere);
  border-bottom: var(--lisere);
  padding: 30px 26px 32px;
  background: var(--surface);
}
.cout::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background: var(--accent);
}
.cout__montant { display: block; margin-bottom: 6px; }
.cout__unite {
  font-family: var(--chiffre);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--texte-doux);
  display: block;
  margin-bottom: 14px;
}
.cout p { font-size: 0.98rem; margin: 0; color: var(--texte-doux); }

.debordement-constat {
  margin-top: 56px;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 40px;
  align-items: center;
}

.cliche {
  position: relative;
  border: var(--lisere);
  border-radius: 2px;
  overflow: hidden;
  background: var(--surface);
}
.cliche img { width: 100%; height: auto; filter: grayscale(1) contrast(1.05) brightness(1.06); }
.cliche__voile {
  position: absolute;
  inset: auto 0 0 0;
  height: 30%;
  background: linear-gradient(to top, rgba(245, 242, 243, 0.96), transparent);
  pointer-events: none;
}
.cliche__semis {
  position: absolute;
  inset: 50% 0 0 0;
  background-image:
    radial-gradient(var(--bordure-appuyee) 1px, transparent 1px);
  background-size: 8px 8px;
  opacity: 0.14;
  pointer-events: none;
}
.cliche__legende {
  position: absolute;
  left: 16px;
  bottom: 14px;
  right: 16px;
  font-family: var(--chiffre);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--texte);
  margin: 0;
}
.cliche__legende span { color: var(--signal); }

/* Tableau dense assume */

.tableau-echeances {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--chiffre);
  font-size: 0.86rem;
  font-variant-numeric: tabular-nums;
  background: var(--fond);
  border: var(--lisere);
}
.tableau-echeances caption {
  text-align: left;
  font-family: var(--chiffre);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--texte-doux);
  padding-bottom: 12px;
}
.tableau-echeances th,
.tableau-echeances td {
  padding: 11px 14px;
  border-bottom: var(--lisere);
  border-right: var(--lisere);
  text-align: left;
}
.tableau-echeances th {
  color: var(--texte-doux);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.7rem;
  background: var(--surface);
}
.tableau-echeances tbody tr:nth-child(even) { background: rgba(26, 18, 22, 0.045); }
.tableau-echeances td:last-child, .tableau-echeances th:last-child { border-right: 0; }
.tableau-echeances tbody tr:last-child td { border-bottom: 0; }
.somme { color: var(--signal); }
.retard { color: var(--accent); }

.enveloppe-tableau { overflow-x: auto; }

/* --------------------------------------------------------------------------
   Procedure: quatre bandes horizontales numerotees
   -------------------------------------------------------------------------- */

.bandes { border-top: var(--lisere); }

.bande {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) minmax(0, 340px);
  gap: 32px;
  align-items: start;
  padding: 34px 0;
  border-bottom: var(--lisere);
}

.bande__rang {
  font-family: var(--chiffre);
  font-weight: 600;
  font-size: 2.2rem;
  color: var(--accent);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.bande__corps h3 { margin-bottom: 8px; }
.bande__corps p { margin: 0; color: var(--texte-doux); }

.bande__preuve {
  border: var(--lisere);
  border-radius: 2px;
  background: var(--surface);
  padding: 16px;
  position: relative;
}
.bande__preuve::after {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 28px;
  height: 2px;
  background: var(--accent);
}
.bande__preuve dl { margin: 0; font-family: var(--chiffre); font-size: 0.8rem; font-variant-numeric: tabular-nums; }
.bande__preuve dt {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--texte-doux);
}
.bande__preuve dd { margin: 2px 0 12px; color: var(--texte); }
.bande__preuve dd:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   Poste de travail: six fonctionnalites en grille a filets partages
   -------------------------------------------------------------------------- */

.registre-fonctions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: var(--lisere);
  border-left: var(--lisere);
}

.fonction {
  position: relative;
  border-right: var(--lisere);
  border-bottom: var(--lisere);
  padding: 30px 26px 34px;
  background: transparent;
  transition: background-color 160ms ease;
}
.fonction:hover { background: var(--surface); }
.fonction::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background: var(--accent);
  opacity: 0.85;
}
.fonction__pictogramme { margin-bottom: 16px; display: block; }
.fonction h3 { margin-bottom: 10px; }
.fonction p { margin: 0; font-size: 0.98rem; color: var(--texte-doux); }
.fonction__etiquette {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--chiffre);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--signal);
}

/* --------------------------------------------------------------------------
   Gains: quatre cartes de resultat
   -------------------------------------------------------------------------- */

.gains {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.gain {
  position: relative;
  border: var(--lisere);
  border-radius: 2px;
  background: var(--surface);
  padding: 28px 22px 26px;
  overflow: hidden;
}
.gain::after {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 28px;
  height: 2px;
  background: var(--accent);
}
.gain__valeur { display: block; margin-bottom: 4px; }
.gain__unite {
  font-family: var(--chiffre);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--texte-doux);
  display: block;
  margin-bottom: 14px;
}
.gain h3 { font-size: 1.05rem; margin-bottom: 8px; }
.gain p { font-size: 0.92rem; margin: 0; color: var(--texte-doux); }

.debordement-gains {
  margin-top: 48px;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 40px;
  align-items: center;
}

/* --------------------------------------------------------------------------
   Preuve: bandeau de chiffres et souches de temoignage
   -------------------------------------------------------------------------- */

.bandeau-chiffres {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: var(--lisere);
  border-radius: 2px;
  background: var(--surface);
  margin-bottom: 44px;
  position: relative;
}
.bandeau-chiffres::after {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 28px;
  height: 2px;
  background: var(--accent);
}
.cellule-chiffre {
  padding: 26px 22px;
  border-right: var(--lisere);
  text-align: left;
}
.cellule-chiffre:last-child { border-right: 0; }
.cellule-chiffre__valeur { display: block; color: var(--signal); }
.cellule-chiffre__libelle {
  font-family: var(--chiffre);
  font-size: 0.7rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--texte-doux);
  margin: 10px 0 0;
}

.souches {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.souche {
  position: relative;
  border: var(--lisere);
  border-radius: 2px;
  background: var(--fond);
  padding: 26px 24px 22px;
  margin: 0;
}
.souche::after {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 28px;
  height: 2px;
  background: var(--accent);
}
.souche blockquote { margin: 0 0 18px; }
.souche blockquote p { font-style: italic; font-size: 1rem; margin: 0 0 0.9em; }
.souche blockquote p:last-child { margin-bottom: 0; }
.souche figcaption {
  border-top: var(--lisere);
  padding-top: 14px;
  font-family: var(--chiffre);
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--texte-doux);
}
.souche figcaption strong { color: var(--texte); font-weight: 600; display: block; }
.souche__chiffre { color: var(--signal); }

/* --------------------------------------------------------------------------
   Bareme tarifaire
   -------------------------------------------------------------------------- */

.bareme {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}

.palier {
  position: relative;
  border: var(--lisere);
  border-radius: 2px;
  background: var(--surface);
  padding: 30px 26px 30px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.palier::after {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 28px;
  height: 2px;
  background: var(--accent);
  z-index: 3;
}

.palier__semis {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(var(--bordure) 1px, transparent 1px),
    radial-gradient(var(--bordure-appuyee) 1.5px, transparent 1.5px);
  background-size: 8px 8px, 40px 40px;
  opacity: 0.35;
  pointer-events: none;
}

.palier > *:not(.palier__semis) { position: relative; z-index: 2; }

.palier--retenu {
  margin: -16px 0;
  border-color: var(--accent);
  background: var(--surface-haute);
}

.palier__marque {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--accent);
  color: var(--accent-texte);
  font-family: var(--chiffre);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 10px;
  z-index: 4;
}

.palier__nom { font-size: 1.5rem; margin-bottom: 6px; }
.palier__cible { font-size: 0.9rem; color: var(--texte-doux); min-height: 4.6em; }
.palier__prix-bloc { border-top: var(--lisere); border-bottom: var(--lisere); padding: 18px 0; margin-bottom: 20px; }
.palier__unite {
  display: block;
  font-family: var(--chiffre);
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--texte-doux);
  margin-top: 8px;
}
.palier__liste { list-style: none; margin: 0 0 24px; padding: 0; flex: 1; }
.palier__liste li {
  position: relative;
  padding-left: 20px;
  font-size: 0.93rem;
  margin-bottom: 11px;
  color: var(--texte-doux);
}
.palier__liste li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  background: var(--accent);
}
.palier--retenu .palier__liste li::before { background: var(--signal); }
.palier .bouton { width: 100%; justify-content: center; }

.note-bareme {
  margin-top: 28px;
  border: var(--lisere);
  border-radius: 2px;
  background: var(--fond);
  padding: 20px 24px;
  position: relative;
}
.note-bareme::after {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 28px;
  height: 2px;
  background: var(--accent);
}
.note-bareme p { margin: 0; font-size: 0.94rem; color: var(--texte-doux); max-width: 92ch; }
.note-bareme strong { color: var(--signal); font-family: var(--chiffre); font-weight: 600; }

/* --------------------------------------------------------------------------
   Questions
   -------------------------------------------------------------------------- */

.questions { max-width: 68ch; border-top: var(--lisere); }

.question { border-bottom: var(--lisere); }

.question__intitule {
  width: 100%;
  background: transparent;
  border: 0;
  color: var(--texte);
  font-family: var(--titre);
  font-weight: 600;
  font-size: 1.1rem;
  text-align: left;
  padding: 20px 40px 20px 0;
  cursor: pointer;
  position: relative;
  line-height: 1.3;
}
.question__intitule::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 12px;
  height: 2px;
  background: var(--accent);
  transform: translateY(-50%);
}
.question__intitule::before {
  content: "";
  position: absolute;
  right: 11px;
  top: 50%;
  width: 2px;
  height: 12px;
  background: var(--accent);
  transform: translateY(-50%);
  transition: opacity 140ms ease;
}
.question__intitule[aria-expanded="true"]::before { opacity: 0; }

.question__reponse { padding: 0 0 22px; }
.question__reponse p { font-size: 0.99rem; color: var(--texte-doux); margin: 0 0 0.9em; }
.question__reponse p:last-child { margin-bottom: 0; }
.question__reponse[hidden] { display: none; }

/* --------------------------------------------------------------------------
   Depot: formulaire de contact en deux colonnes
   -------------------------------------------------------------------------- */

.depot {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 52px;
  align-items: start;
}

.depot__accroche p { color: var(--texte-doux); }
.depot__rappel {
  border: var(--lisere);
  border-radius: 2px;
  background: var(--surface);
  padding: 18px 20px;
  position: relative;
  margin-top: 28px;
}
.depot__rappel::after {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 28px;
  height: 2px;
  background: var(--accent);
}
.depot__rappel p { font-size: 0.9rem; margin: 0; color: var(--texte-doux); }
.depot__rappel a { color: var(--signal); }

.formulaire {
  border: var(--lisere);
  border-radius: 2px;
  background: var(--surface);
  padding: 32px 30px;
  position: relative;
}
.formulaire::after {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 28px;
  height: 2px;
  background: var(--accent);
}

.duo-champs { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.champ { margin-bottom: 18px; }
.champ label {
  display: block;
  font-family: var(--chiffre);
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--texte-doux);
  margin-bottom: 7px;
}
.champ input[type="text"],
.champ input[type="email"],
.champ select,
.champ textarea {
  width: 100%;
  background: var(--fond);
  border: var(--lisere);
  border-radius: 2px;
  color: var(--texte);
  font-family: var(--corps);
  font-size: 1rem;
  padding: 11px 13px;
}
.champ select { font-family: var(--chiffre); font-size: 0.92rem; }
.champ textarea { resize: vertical; min-height: 128px; }
.champ input:focus,
.champ select:focus,
.champ textarea:focus { border-color: var(--signal); outline: 2px solid var(--signal); outline-offset: 1px; }

.champ--consentement { display: flex; gap: 12px; align-items: flex-start; margin: 24px 0; }
.champ--consentement input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.champ--consentement label {
  font-family: var(--corps);
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.9rem;
  color: var(--texte-doux);
  margin: 0;
}
.champ--consentement a { color: var(--signal); }

/* --------------------------------------------------------------------------
   Pied de page
   -------------------------------------------------------------------------- */

.pied {
  position: relative;
  background: var(--fond);
  padding: 24px;
  border-top: var(--lisere);
}

.pied__cadre {
  position: relative;
  border: var(--lisere);
  border-radius: 2px;
  padding: 52px 40px 30px;
  overflow: hidden;
}

.pied__colonnes {
  position: relative;
  z-index: 2;
  max-width: var(--largeur);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 36px;
}

.pied h2 {
  font-family: var(--chiffre);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: 16px;
}

.pied ul { list-style: none; margin: 0; padding: 0; }
.pied li { margin-bottom: 9px; }
.pied a { color: var(--texte-doux); text-decoration: none; font-size: 0.94rem; }
.pied a:hover { color: var(--texte); text-decoration: underline; text-decoration-color: var(--accent); }
.pied__positionnement { color: var(--texte-doux); font-size: 0.94rem; margin: 16px 0 18px; max-width: 34ch; }

.pied__profils { display: flex; flex-wrap: wrap; gap: 10px; }
.pied__profils a {
  font-family: var(--chiffre);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: var(--lisere);
  border-radius: 2px;
  padding: 6px 10px;
}

.pied__editeur { font-size: 0.86rem; color: var(--texte-doux); margin-top: 14px; line-height: 1.6; }

.pied__barre {
  position: relative;
  z-index: 2;
  max-width: var(--largeur);
  margin: 34px auto 0;
  border-top: var(--lisere);
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  font-family: var(--chiffre);
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  color: var(--texte-doux);
}
.pied__barre a { font-family: var(--chiffre); font-size: 0.74rem; color: var(--signal); }

/* --------------------------------------------------------------------------
   Pages internes: article legal
   -------------------------------------------------------------------------- */

.page-interieure { padding: calc(var(--hauteur-guichet) + 56px) 0 0; }

.fil {
  font-family: var(--chiffre);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--texte-doux);
  margin-bottom: 22px;
}
.fil a { color: var(--texte-doux); text-decoration: none; }
.fil a:hover { color: var(--signal); }

.corps-legal { max-width: 74ch; }
.corps-legal h2 {
  font-size: 1.5rem;
  margin-top: 46px;
  padding-top: 20px;
  border-top: var(--lisere);
}
.corps-legal h3 { margin-top: 28px; }
.corps-legal ul, .corps-legal ol { padding-left: 20px; max-width: 68ch; }
.corps-legal li { margin-bottom: 9px; }
.corps-legal dl { border: var(--lisere); border-radius: 2px; background: var(--surface); padding: 22px 24px; margin: 24px 0; }
.corps-legal dt {
  font-family: var(--chiffre);
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--texte-doux);
}
.corps-legal dd { margin: 3px 0 14px; }
.corps-legal dd:last-child { margin-bottom: 0; }

.encadre-attention {
  position: relative;
  border: var(--lisere);
  border-radius: 2px;
  background: var(--surface);
  padding: 22px 24px;
  margin: 28px 0;
}
.encadre-attention::after {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 28px;
  height: 2px;
  background: var(--accent);
}
.encadre-attention p:last-child { margin-bottom: 0; }

/* Page auteur */

.portrait-auteur {
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: 36px;
  align-items: start;
  margin-bottom: 44px;
}
.portrait-auteur .cliche img { filter: grayscale(1) contrast(1.03) brightness(1.04); }

.jalons { list-style: none; margin: 30px 0; padding: 0; border-top: var(--lisere); }
.jalons li {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 18px;
  padding: 16px 0;
  border-bottom: var(--lisere);
  margin: 0;
}
.jalons span {
  font-family: var(--chiffre);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--signal);
  text-transform: uppercase;
}

/* Plan du site */

.plan-liste { list-style: none; padding: 0; margin: 0; border-top: var(--lisere); }
.plan-liste > li { border-bottom: var(--lisere); padding: 20px 0; margin: 0; }
.plan-liste h3 { margin-bottom: 6px; }
.plan-liste p { margin: 0; color: var(--texte-doux); font-size: 0.96rem; }
.plan-ancres { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.plan-ancres a {
  font-family: var(--chiffre);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: var(--lisere);
  border-radius: 2px;
  padding: 6px 10px;
  text-decoration: none;
  color: var(--texte-doux);
}
.plan-ancres a:hover { color: var(--texte); border-color: var(--accent); }

/* Pages breves: merci et 404 */

.plage-breve {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  padding: calc(var(--hauteur-guichet) + 40px) 24px 40px;
  overflow: hidden;
}
.plage-breve__cadre {
  position: relative;
  width: 100%;
  border: var(--lisere);
  border-radius: 2px;
  padding: 64px 40px;
  overflow: hidden;
}
.plage-breve__contenu { position: relative; z-index: 2; max-width: 62ch; margin: 0 auto; }
.plage-breve__contenu .bouton { margin-right: 12px; margin-top: 10px; }

/* --------------------------------------------------------------------------
   Apparitions au defilement
   -------------------------------------------------------------------------- */

.au-defilement {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 200ms ease, transform 200ms ease;
}
.au-defilement.est-visible { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   Adaptations
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
  h1 { font-size: 2.8rem; }
  .ouverture__promesse, .ouverture__fiche { grid-column: span 12; }
  .ouverture__cadre { padding: 40px 26px; }
  .ouverture { min-height: 0; }
  .gains { grid-template-columns: repeat(2, 1fr); }
  .bandeau-chiffres { grid-template-columns: repeat(2, 1fr); }
  .cellule-chiffre:nth-child(2) { border-right: 0; }
  .cellule-chiffre:nth-child(1), .cellule-chiffre:nth-child(2) { border-bottom: var(--lisere); }
  .souches { grid-template-columns: 1fr; }
  .bareme { grid-template-columns: 1fr; }
  .palier--retenu { margin: 0; }
  .depot { grid-template-columns: 1fr; gap: 34px; }
  .debordement-constat, .debordement-gains, .entete-plage--partagee { grid-template-columns: 1fr; }
  .pied__colonnes { grid-template-columns: repeat(2, 1fr); }
  .portrait-auteur { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .guichet__ancres, .guichet .bouton { display: none; }
  .guichet__bascule { display: flex; }
  .registre-fonctions { grid-template-columns: repeat(2, 1fr); }
  .colonnes-couts { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.7rem; }
  .plage { padding: 68px 0; }
  .contenu { padding: 0 20px; }
  .registre-fonctions { grid-template-columns: 1fr; }
  .gains { grid-template-columns: 1fr; }
  .bandeau-chiffres { grid-template-columns: 1fr; }
  .cellule-chiffre { border-right: 0; border-bottom: var(--lisere); }
  .cellule-chiffre:last-child { border-bottom: 0; }
  .bande { grid-template-columns: 1fr; gap: 16px; }
  .duo-champs { grid-template-columns: 1fr; }
  .pied__colonnes { grid-template-columns: 1fr; }
  .pied__cadre { padding: 36px 22px 24px; }
  .formulaire { padding: 24px 20px; }
  .jalons li { grid-template-columns: 1fr; gap: 4px; }
  .compteur--geant, .compteur--prix { font-size: 2.6rem; }
  .fiche-dossier__ligne { grid-template-columns: 76px 1fr; }
  .fiche-dossier__ligne .statut { grid-column: 2; justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .au-defilement { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ==========================================================================
   L Echeancier du club, section magazine
   Prolongement de la feuille de style, pas un module rapporte: memes variables
   de couleur, meme forme signature (lisere continu de 1 pixel et coin ancre
   rouge de 28 pixels en haut a gauche), meme semis de points type papier
   millimetre et meme signature d animation (compteurs Inconsolata qui defilent).
   Aucune regle des sections precedentes n est modifiee.
   Nommage ancre dans le vocabulaire du dossier de resiliation:
   sommaire (grille), piece (carte d article), tete-magazine, tete-article,
   reperes, exergue, corps-article, chute-article, encart-auteur, lire-aussi,
   derniers-dossiers (section de la page d accueil).
   ========================================================================== */

/* --- 1. Colonne de lecture et titre de colonne du pied de page ------------ */

/* Les articles se lisent dans une colonne plus etroite que les sections
   commerciales, pour tenir la longueur de ligne fixee par la typographie. */
.contenu--lecture { max-width: 920px; }

/* Le pied de page des pages du magazine ne peut pas porter de h2: la hierarchie
   des titres appartient au corps redactionnel. Ce titre de colonne reprend donc
   exactement la mise en forme de .pied h2 sous une balise neutre. */
.pied__titre {
  font-family: var(--chiffre);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--signal);
  margin: 0 0 16px;
}

/* --- 2. Entete de la page d index du magazine ---------------------------- */

.tete-magazine { max-width: 74ch; margin-bottom: 52px; }
.tete-magazine h1 { margin-bottom: 0.28em; }
.tete-magazine .chapeau { margin-bottom: 0; }

.bandeau-numero {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border: var(--lisere);
  border-radius: 2px;
  background: var(--surface);
  margin-top: 30px;
  position: relative;
}
.bandeau-numero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background: var(--accent);
}
.bandeau-numero > div {
  flex: 1 1 180px;
  padding: 18px 20px;
  border-right: var(--lisere);
}
.bandeau-numero > div:last-child { border-right: 0; }
.bandeau-numero__valeur {
  display: block;
  font-family: var(--chiffre);
  font-weight: 600;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--signal);
  font-variant-numeric: tabular-nums;
}
.bandeau-numero__libelle {
  font-family: var(--chiffre);
  font-size: 0.7rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--texte-doux);
  margin: 10px 0 0;
  max-width: none;
}

/* --- 3. Sommaire: la grille de cartes d article -------------------------- */

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

/* --- 4. Piece: la carte d article ---------------------------------------- */

.piece {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
  background: var(--surface);
  border: var(--lisere);
  border-radius: 2px;
  overflow: hidden;
  transition: border-color 160ms ease, background-color 160ms ease;
}
.piece::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background: var(--accent);
  z-index: 3;
  pointer-events: none;
}
.piece:hover,
.piece:focus-within { border-color: var(--bordure-appuyee); background: var(--surface-haute); }

.piece__cliche {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--fond-alt);
  border-bottom: var(--lisere);
}
.piece__cliche img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  filter: grayscale(1) contrast(1.06) brightness(1.04);
  transition: transform 320ms ease, filter 320ms ease;
}
.piece:hover .piece__cliche img { transform: scale(1.02); filter: grayscale(1) contrast(1.02) brightness(1.09); }
.piece__voile {
  position: absolute;
  inset: auto 0 0 0;
  height: 34%;
  background: linear-gradient(to top, var(--surface), transparent);
  pointer-events: none;
}
.piece__semis {
  position: absolute;
  inset: 50% 0 0 0;
  background-image: radial-gradient(var(--bordure-appuyee) 1px, transparent 1px);
  background-size: 8px 8px;
  opacity: 0.14;
  pointer-events: none;
}

.piece__corps {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 22px 22px 20px;
}
.piece__angle {
  font-family: var(--chiffre);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 12px;
}
.piece__titre {
  font-family: var(--titre);
  font-size: 1.24rem;
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  max-width: none;
}
.piece__titre a { color: var(--texte); text-decoration: none; }
.piece__titre a:hover,
.piece__titre a:focus-visible { color: var(--signal); }
.piece__extrait {
  font-size: 0.94rem;
  line-height: 1.62;
  color: var(--texte-doux);
  margin: 0 0 20px;
  max-width: none;
}
.piece__pied {
  margin: auto 0 0;
  max-width: none;
  border-top: var(--lisere);
  padding-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  font-family: var(--chiffre);
  font-size: 0.7rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--texte-doux);
  font-variant-numeric: tabular-nums;
}
.piece__pied time { color: var(--texte); }

.piece--compacte .piece__corps { padding: 18px 18px 16px; }
.piece--compacte .piece__titre { font-size: 1.08rem; }
.piece--compacte .piece__extrait { font-size: 0.88rem; margin-bottom: 0; }

/* --- 5. Entete d article: fil d Ariane, reperes, exergue, image a la une -- */

.fil--ariane { margin-bottom: 26px; }
.fil--ariane ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
}
.fil--ariane li { display: flex; align-items: center; gap: 10px; }
.fil--ariane li + li::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--accent);
  flex: none;
}
.fil--ariane li:last-child { color: var(--texte); }

.tete-article { margin-bottom: 34px; }
.tete-article h1 { font-size: 2.9rem; margin-bottom: 24px; }

.exergue {
  position: relative;
  font-size: 1.15rem;
  line-height: 1.62;
  color: var(--texte);
  margin: 0 0 26px;
  padding: 4px 0 4px 24px;
  border-left: 2px solid var(--accent);
  max-width: 64ch;
}

.reperes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  border-top: var(--lisere);
  border-bottom: var(--lisere);
  padding: 14px 0;
  font-family: var(--chiffre);
  font-size: 0.74rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--texte-doux);
  font-variant-numeric: tabular-nums;
}
.reperes time { color: var(--texte); }
.reperes__angle { color: var(--accent); }
.compteur--lecture {
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.11em;
  color: var(--signal);
}

.cliche--une { margin: 0 0 40px; }
.cliche--une img { width: 100%; height: auto; }

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

.corps-article {
  max-width: 68ch;
  font-size: 1.0625rem;
  line-height: 1.68;
}
.corps-article > *:first-child { margin-top: 0; }

.corps-article h2 {
  position: relative;
  font-family: var(--titre);
  font-size: 1.85rem;
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.02em;
  margin: 2.2em 0 0.6em;
  padding-top: 20px;
  border-top: var(--lisere);
  max-width: none;
}
.corps-article h2::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 28px;
  height: 2px;
  background: var(--accent);
}

.corps-article h3 {
  position: relative;
  font-family: var(--titre);
  font-size: 1.22rem;
  font-weight: 500;
  line-height: 1.24;
  margin: 1.9em 0 0.5em;
  padding-left: 20px;
}
.corps-article h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 8px;
  height: 8px;
  background: var(--accent);
}

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

.corps-article a {
  color: var(--signal);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(138, 103, 4, 0.5);
}
.corps-article a:hover,
.corps-article a:focus-visible { color: var(--texte); text-decoration-color: var(--accent); }

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

.corps-article ul,
.corps-article ol {
  list-style: none;
  margin: 0 0 1.5em;
  padding: 0;
  max-width: 66ch;
}
.corps-article li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 0.6em;
  color: var(--texte);
}
.corps-article ul > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  background: var(--accent);
}
.corps-article ol { counter-reset: piece-corps; }
.corps-article ol > li { counter-increment: piece-corps; padding-left: 34px; }
.corps-article ol > li::before {
  content: counter(piece-corps, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.16em;
  font-family: var(--chiffre);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.corps-article li ul,
.corps-article li ol { margin: 0.5em 0 0.2em; }

/* Tableau recapitulatif: colonnes de dates et de montants alignees en
   Inconsolata, jamais de semis dessous pour garder les chiffres nets. */
.corps-article table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  border: var(--lisere);
  border-radius: 2px;
  background: var(--fond);
  margin: 0 0 1.8em;
  font-size: 0.92rem;
}
.corps-article th,
.corps-article td {
  padding: 11px 14px;
  border-bottom: var(--lisere);
  border-right: var(--lisere);
  text-align: left;
  vertical-align: top;
}
.corps-article tr > *:last-child { border-right: 0; }
.corps-article tbody tr:last-child > * { border-bottom: 0; }
.corps-article thead th {
  font-family: var(--chiffre);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--texte-doux);
  background: var(--surface);
  white-space: nowrap;
}
.corps-article tbody th {
  font-family: var(--chiffre);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--texte);
  background: rgba(26, 18, 22, 0.05);
}
.corps-article tbody tr:nth-child(even) td { background: rgba(26, 18, 22, 0.035); }

/* Encadre: surface cerclee du lisere continu et du coin ancre rouge. */
.corps-article aside {
  position: relative;
  background: var(--surface);
  border: var(--lisere);
  border-radius: 2px;
  padding: 24px 26px 20px;
  margin: 34px 0;
  font-size: 1rem;
}
.corps-article aside::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 28px;
  height: 2px;
  background: var(--accent);
}
.corps-article aside::after {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 2px;
  height: 28px;
  background: var(--accent);
}
.corps-article aside p:last-child,
.corps-article aside ul:last-child,
.corps-article aside ol:last-child { margin-bottom: 0; }

/* Citation: seule italique admise en dehors des temoignages. */
.corps-article blockquote {
  position: relative;
  margin: 32px 0;
  padding: 6px 0 6px 26px;
  border-left: 2px solid var(--signal);
  font-size: 1.1rem;
  line-height: 1.6;
  font-style: italic;
  color: var(--texte);
  max-width: 62ch;
}
.corps-article blockquote p:last-child { margin-bottom: 0; }

.corps-article figure {
  margin: 32px 0;
  border: var(--lisere);
  border-radius: 2px;
  background: var(--surface);
  padding: 8px;
}
.corps-article figure img { width: 100%; height: auto; filter: grayscale(1) contrast(1.05) brightness(1.06); }
.corps-article figcaption {
  font-family: var(--chiffre);
  font-size: 0.74rem;
  line-height: 1.6;
  letter-spacing: 0.06em;
  color: var(--texte-doux);
  margin: 12px 4px 4px;
  padding-left: 14px;
  border-left: 2px solid var(--accent);
}

/* --- 7. Chute d article et appel a l action ------------------------------ */

.chute-article {
  position: relative;
  border: var(--lisere);
  border-radius: 2px;
  background: var(--fond-alt);
  padding: 28px 28px 26px;
  margin: 48px 0 0;
  max-width: 68ch;
  overflow: hidden;
}
.chute-article::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background: var(--accent);
  z-index: 3;
}
.chute-article::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 28px;
  background: var(--accent);
  z-index: 3;
}
.chute-article__semis {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(var(--bordure) 1px, transparent 1px),
    radial-gradient(var(--bordure-appuyee) 1.5px, transparent 1.5px);
  background-size: 8px 8px, 40px 40px;
  opacity: 0.35;
  pointer-events: none;
}
.chute-article > *:not(.chute-article__semis) { position: relative; z-index: 2; }
.chute-article__titre {
  font-family: var(--titre);
  font-size: 1.32rem;
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
}
.chute-article p { font-size: 1rem; color: var(--texte-doux); }
.chute-article__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
}

/* --- 8. Encart auteur ---------------------------------------------------- */

.encart-auteur {
  position: relative;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
  border: var(--lisere);
  border-radius: 2px;
  background: var(--surface);
  padding: 26px 28px 24px;
  margin: 40px 0 0;
  max-width: 68ch;
}
.encart-auteur::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 28px;
  height: 2px;
  background: var(--accent);
}
.encart-auteur::after {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 2px;
  height: 28px;
  background: var(--accent);
}
.encart-auteur__portrait {
  border: var(--lisere);
  border-radius: 2px;
  background: var(--fond);
  padding: 6px;
}
.encart-auteur__portrait img { width: 100%; height: auto; filter: grayscale(1) contrast(1.02) brightness(1.03); }
.encart-auteur__mention {
  display: block;
  font-family: var(--chiffre);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.encart-auteur__nom {
  font-family: var(--titre);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}
.encart-auteur p { font-size: 0.94rem; color: var(--texte-doux); margin: 0 0 0.7em; }
.encart-auteur p:last-child { margin-bottom: 0; }
.encart-auteur a { color: var(--signal); }

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

.lire-aussi__tete { max-width: 62ch; margin-bottom: 34px; }
.lire-aussi__titre {
  font-family: var(--titre);
  font-size: 1.8rem;
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}
.lire-aussi__intro { color: var(--texte-doux); margin: 0; font-size: 1rem; }

/* --- 10. Derniers dossiers, section de la page d accueil ------------------ */

.derniers-dossiers { margin-top: 8px; }
.derniers-dossiers .sommaire { margin-bottom: 32px; }
.suite-magazine {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 26px;
  border-top: var(--lisere);
  padding-top: 24px;
}
.suite-magazine p {
  font-family: var(--chiffre);
  font-size: 0.74rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--texte-doux);
  margin: 0;
  padding-left: 14px;
  border-left: 2px solid var(--accent);
  max-width: 48ch;
}

/* --- 11. Liste des articles publies sur la page auteur -------------------- */

.parution { list-style: none; margin: 30px 0 0; padding: 0; border-top: var(--lisere); }
.parution li {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 130px;
  gap: 8px 20px;
  align-items: baseline;
  padding: 15px 0;
  border-bottom: var(--lisere);
  margin: 0;
}
.parution time,
.parution__angle {
  font-family: var(--chiffre);
  font-size: 0.74rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--texte-doux);
  font-variant-numeric: tabular-nums;
}
.parution__angle { color: var(--accent); text-align: right; }
.parution a {
  font-family: var(--titre);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.parution a:hover { color: var(--signal); }

/* --- 12. Adaptations du magazine ----------------------------------------- */

/* La navigation principale porte un lien de plus depuis l ouverture du
   magazine: elle se resserre plus tot pour tenir sur une seule ligne. */
@media (max-width: 1180px) {
  .guichet__ancres { gap: 15px; }
  .guichet__lien { letter-spacing: 0.08em; }
}

@media (max-width: 1080px) {
  .sommaire { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tete-article h1 { font-size: 2.4rem; }
}

@media (max-width: 900px) {
  .sommaire,
  .sommaire--trois { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .corps-article { max-width: none; }
  .chute-article, .encart-auteur { max-width: none; }
  .parution li { grid-template-columns: 130px minmax(0, 1fr); }
  .parution__angle { grid-column: 2; text-align: left; }
}

@media (max-width: 640px) {
  .sommaire,
  .sommaire--trois { grid-template-columns: minmax(0, 1fr); }
  .tete-article h1 { font-size: 2rem; }
  .corps-article h2 { font-size: 1.55rem; }
  .exergue { font-size: 1.05rem; padding-left: 18px; }
  .encart-auteur { grid-template-columns: minmax(0, 1fr); }
  .encart-auteur__portrait { width: 112px; }
  .bandeau-numero > div { flex: 1 1 100%; border-right: 0; border-bottom: var(--lisere); }
  .bandeau-numero > div:last-child { border-bottom: 0; }
  .parution li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .parution__angle { grid-column: 1; }
}

/* --- 13. Section magazine de la page d accueil ---------------------------- */

/* Elle se glisse entre la FAQ et le formulaire, sur le fond principal:
   un filet bas la separe de la section de contact qui la suit. */
.plage--magazine { border-bottom: var(--lisere); }

/* La liste des parutions vit dans le corps legal de la page auteur:
   elle neutralise le retrait des listes de ce conteneur. */
.corps-legal .parution { padding-left: 0; max-width: none; }
