/* ==========================================================================
   Caviard, feuille de style unique
   Vocabulaire de nommage: chemise, onglet, filet, reglure, marge, visa,
   bandeau, liasse, repere, poste, temps, formule.
   ========================================================================== */

:root {
  color-scheme: light;

  --papier: #F0F2E8;
  --papier-alt: #E4E9DF;
  --surface: #F7FDEF;
  --encre: #0F1D13;
  --encre-douce: #445749;
  --controle: #157A2D;
  --controle-texte: #F2FAE6;
  --controle-clair: #1B9639;
  --vermillon: #B2340F;
  --bordure: #AAB9A0;
  --aplat: #070D09;

  /* Voiles et ombres du regime clair: aucune masse noire, des valeurs courtes. */
  --voile-encre: rgba(15, 29, 19, 0.06);
  --voile-balayage: rgba(15, 29, 19, 0.14);
  --voile-photo: rgba(7, 13, 9, 0.78);
  --voile-photo-doux: rgba(7, 13, 9, 0.5);
  --voile-photo-nul: rgba(7, 13, 9, 0);
  --ombre-chemise: 0 1px 0 rgba(15, 29, 19, 0.04), 0 2px 7px rgba(15, 29, 19, 0.06);

  --largeur: 1180px;
  --gouttiere: 32px;
  --rayon: 3px;
  --entete-h: 76px;
  --entete-h-serree: 64px;

  --titre: "Syne", "Trebuchet MS", sans-serif;
  --courant: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  --annotation: "Sorts Mill Goudy", Georgia, "Times New Roman", serif;
}

/* --- Motif signature: croix de reperage repetees ------------------------- */
:root {
  --reperes: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='128' height='128' viewBox='0 0 128 128'%3E%3Cg fill='none' stroke='%238FA283' stroke-width='1' opacity='0.55'%3E%3Cpath d='M8 16h5M19 16h5M16 8v5M16 19v5'/%3E%3Cpath d='M22 16a6 6 0 0 0-6-6M10 16a6 6 0 0 0 6 6'/%3E%3C/g%3E%3C/svg%3E");
  --repere-carte: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cg fill='none' stroke='%230F1D13' stroke-width='1' opacity='0.18'%3E%3Cpath d='M7 0v4M7 10v4M0 7h4M10 7h4'/%3E%3Cpath d='M12 7a5 5 0 0 0-5-5M2 7a5 5 0 0 0 5 5'/%3E%3C/g%3E%3C/svg%3E");
  --repere-controle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cg fill='none' stroke='%23157A2D' stroke-width='1' opacity='0.28'%3E%3Cpath d='M8 0v5M8 11v5M0 8h5M11 8h5'/%3E%3Cpath d='M14 8a6 6 0 0 0-6-6M2 8a6 6 0 0 0 6 6'/%3E%3C/g%3E%3C/svg%3E");
}

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

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

body {
  margin: 0;
  background-color: var(--papier);
  color: var(--encre);
  font-family: var(--courant);
  font-size: 1.0625rem;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  font-family: var(--titre);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 0.6em;
  text-align: left;
}

h1 { font-size: 3.375rem; font-weight: 800; }
h2 { font-size: 2.25rem; font-weight: 700; }
h3 { font-size: 1.3125rem; font-weight: 600; }
h4 { font-size: 1.0625rem; font-weight: 600; }

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

a { color: var(--encre); text-decoration-color: var(--bordure); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--controle); }

:focus-visible {
  outline: 3px solid var(--encre);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px rgba(21, 122, 45, 0.32);
}

::selection { background: rgba(21, 122, 45, 0.22); color: var(--encre); }

.evitement {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 999;
  background: var(--controle);
  color: var(--controle-texte);
  padding: 10px 18px;
  font-weight: 700;
  transition: top 160ms ease;
}
.evitement:focus { top: 12px; }

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

/* --- Rythme general ------------------------------------------------------ */

.liasse {
  width: 100%;
  max-width: var(--largeur);
  margin: 0 auto;
  padding: 0 24px;
}

.tranche { padding: 96px 0 88px; position: relative; }
.tranche--tramee { background-color: var(--papier-alt); background-image: var(--reperes); }
.tranche--pleine { background-color: var(--papier); }

.surtitre {
  font-family: var(--annotation);
  font-size: 1rem;
  font-variant: small-caps;
  letter-spacing: 0.16em;
  color: var(--encre-douce);
  margin: 0 0 14px;
  display: block;
}

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

.mention-pied {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--encre-douce);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: space-between;
  margin: 0;
  max-width: none;
}

.petit { font-size: 0.8125rem; font-weight: 600; }

/* --- Filets et balayage de couleur --------------------------------------- */

.filet {
  position: relative;
  height: 2px;
  background: var(--bordure);
  overflow: hidden;
  border: 0;
  margin: 0;
}
.filet::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 96px;
  background: var(--controle);
  opacity: 0;
  transition: opacity 200ms linear 520ms;
}
.filet::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 240px;
  transform: translateX(-260px);
  background: linear-gradient(90deg, transparent 0%, var(--controle) 50%, transparent 100%);
}
.filet.est-balaye::before { opacity: 1; }
.filet.est-balaye::after { animation: balayage 620ms cubic-bezier(0.22, 0.61, 0.36, 1) 1 forwards; }

.filet--alerte::before { background: var(--vermillon); }
.filet--alerte::after { background: linear-gradient(90deg, transparent 0%, var(--vermillon) 50%, transparent 100%); }
.filet--alerte.est-balaye::before { opacity: 0; }

.filet--fin { height: 1px; }
.filet--fin::before { width: 64px; }

@keyframes balayage {
  from { transform: translateX(-260px); }
  to   { transform: translateX(105vw); }
}

/* --- Chemise a onglet decale, forme signature ---------------------------- */

.chemise {
  position: relative;
  margin-top: 26px;
  background: var(--surface);
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  box-shadow: var(--ombre-chemise);
  padding: 34px 30px 16px;
  background-image: var(--repere-carte), var(--repere-carte), var(--repere-carte), var(--repere-carte);
  background-repeat: no-repeat;
  background-position: 10px 10px, right 10px top 10px, 10px bottom 10px, right 10px bottom 10px;
}

.chemise__onglet {
  position: absolute;
  top: -26px;
  left: 24px;
  height: 26px;
  min-width: 132px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--bordure);
  border-bottom: 0;
  border-radius: var(--rayon) 0 0 0;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  font-family: var(--annotation);
  font-size: 0.875rem;
  font-variant: small-caps;
  letter-spacing: 0.14em;
  color: var(--encre-douce);
  white-space: nowrap;
}
.chemise__onglet--large { left: 72px; }
.chemise__onglet--controle { background: var(--controle); color: var(--controle-texte); border-color: var(--controle); }

.chemise__filet {
  position: relative;
  height: 2px;
  background: var(--bordure);
  overflow: hidden;
  margin: 0 -30px 22px;
}
.chemise__filet::before {
  content: "";
  position: absolute; inset: 0 auto 0 0;
  width: 96px; background: var(--controle); opacity: 0;
  transition: opacity 200ms linear 520ms;
}
.chemise__filet::after {
  content: "";
  position: absolute; top: 0; bottom: 0; left: 0;
  width: 240px; transform: translateX(-260px);
  background: linear-gradient(90deg, transparent, var(--controle), transparent);
}
.chemise__filet.est-balaye::before { opacity: 1; }
.chemise__filet.est-balaye::after { animation: balayage 620ms cubic-bezier(0.22, 0.61, 0.36, 1) 1 forwards; }
.chemise:hover .chemise__filet::after { animation: balayage 320ms cubic-bezier(0.22, 0.61, 0.36, 1) 1 forwards; }

.chemise--alerte .chemise__filet::before { background: var(--vermillon); opacity: 0; }
.chemise--alerte .chemise__filet::after { background: linear-gradient(90deg, transparent, var(--vermillon), transparent); }
.chemise--alerte.est-balaye .chemise__filet::before { opacity: 0; }

.chemise__reglure {
  margin: 22px -30px 0;
  border-top: 1px solid var(--bordure);
  padding: 8px 30px 0;
}

.chemise > :last-child { margin-bottom: 0; }

/* --- Aplat de caviardage -------------------------------------------------- */

.bandeau {
  display: inline-block;
  background: var(--aplat);
  color: transparent;
  border-radius: 1px;
  padding: 0 6px;
  transform: rotate(-0.6deg);
  box-shadow: 0 0 0 1px var(--aplat);
  user-select: none;
}
.bandeau::selection { background: var(--aplat); }

.bandeau--large { display: block; height: 18px; width: 62%; margin: 10px 0 18px; }

/* --- Boutons -------------------------------------------------------------- */

.bouton {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--titre);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
  padding: 14px 28px;
  border-radius: var(--rayon);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
  transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease;
}
.bouton::after {
  content: "";
  position: absolute; top: 0; bottom: 0; left: 0;
  width: 90px;
  transform: translateX(-120px);
  background: linear-gradient(90deg, transparent, var(--voile-balayage), transparent);
  pointer-events: none;
}
.bouton:hover::after { animation: balayage-bouton 320ms ease-out 1 forwards; }

@keyframes balayage-bouton {
  from { transform: translateX(-120px); }
  to   { transform: translateX(420px); }
}

.bouton--visa {
  background: var(--controle);
  color: var(--controle-texte);
  border-color: var(--controle);
  --voile-balayage: rgba(242, 250, 230, 0.32);
}
.bouton--visa:hover { background: var(--controle-clair); }

.bouton--filet { background: transparent; color: var(--encre); border-color: var(--bordure); }
.bouton--filet:hover { border-color: var(--controle); background: var(--voile-encre); }

.bouton--delai {
  background: transparent;
  color: var(--encre);
  border-color: var(--bordure);
  border-left: 3px solid var(--vermillon);
  clip-path: none;
}

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

/* --- En tete -------------------------------------------------------------- */

.entete {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  height: var(--entete-h);
  background: rgba(240, 242, 232, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: height 220ms ease;
}
.entete.est-serree { height: var(--entete-h-serree); }

.entete__rang {
  height: calc(100% - 2px);
  display: flex;
  align-items: center;
  gap: 22px;
  width: 100%;
  max-width: var(--largeur);
  margin: 0 auto;
  padding: 0 24px;
}

.entete__filet {
  position: relative;
  height: 2px;
  background: var(--bordure);
  overflow: hidden;
}
.entete__filet::after {
  content: "";
  position: absolute; top: 0; bottom: 0; left: 0;
  width: 240px; transform: translateX(-260px);
  background: linear-gradient(90deg, transparent, var(--controle), transparent);
}
.entete__filet.est-balaye::after { animation: balayage 620ms cubic-bezier(0.22, 0.61, 0.36, 1) 1 forwards; }

.marque { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; flex: 0 0 auto; }
.marque svg { width: 30px; height: 30px; display: block; }
.marque__mot {
  font-family: var(--titre);
  font-weight: 700;
  font-size: 1.375rem;
  letter-spacing: -0.03em;
  color: var(--encre);
}
.entete.est-serree .marque__mot { display: none; }

.ancres { display: flex; gap: 20px; margin-left: auto; align-items: center; }
.ancres a {
  position: relative;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--encre-douce);
  padding: 6px 0;
}
.ancres a:hover { color: var(--encre); }
.ancres a.est-active { color: var(--encre); }
.ancres a.est-active::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 24px; height: 2px;
  background: var(--controle);
}

.entete .bouton { padding: 10px 20px; flex: 0 0 auto; }

.bascule {
  display: none;
  margin-left: auto;
  width: 46px; height: 40px;
  background: transparent;
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  padding: 9px 10px;
  cursor: pointer;
}
.bascule span { display: block; background: var(--encre); border-radius: 1px; }
.bascule span:nth-child(1) { height: 1px; width: 100%; }
.bascule span:nth-child(2) { height: 5px; width: 100%; margin: 5px 0; background: var(--aplat); }
.bascule span:nth-child(3) { height: 1px; width: 70%; }

.panneau {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: var(--papier);
  background-image: var(--reperes);
  padding: 92px 24px 40px;
  overflow-y: auto;
  display: none;
}
.panneau[data-ouvert="oui"] { display: block; }
.panneau__fermer {
  position: absolute;
  top: 22px; right: 24px;
  background: transparent;
  border: 1px solid var(--bordure);
  color: var(--encre);
  border-radius: var(--rayon);
  padding: 8px 14px;
  font-family: var(--courant);
  font-weight: 600;
  cursor: pointer;
}
.panneau ul { list-style: none; margin: 0; padding: 0; }
.panneau li { border-bottom: 1px solid var(--bordure); }
.panneau li a {
  display: block;
  padding: 16px 0;
  text-decoration: none;
  font-family: var(--titre);
  font-weight: 600;
  font-size: 1.25rem;
}
.panneau li a span {
  display: block;
  font-family: var(--annotation);
  font-size: 0.875rem;
  font-variant: small-caps;
  letter-spacing: 0.14em;
  color: var(--encre-douce);
  margin-bottom: 2px;
}
.panneau .bouton { margin-top: 26px; width: 100%; }

/* --- Hero, carte dossier a onglet superieur decale ------------------------ */

.depot {
  padding-top: calc(var(--entete-h) + 64px);
  padding-bottom: 72px;
  background-image: var(--reperes);
  background-position: center top;
  position: relative;
}
.depot::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 30% 20%, rgba(240, 242, 232, 0) 0%, rgba(240, 242, 232, 0.72) 55%, var(--papier) 100%);
  pointer-events: none;
}
.depot > .liasse { position: relative; z-index: 1; }

.depot__chemise {
  position: relative;
  margin-top: 44px;
  background: var(--surface);
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  box-shadow: var(--ombre-chemise);
  padding: 48px 44px 26px;
  background-image: var(--repere-carte), var(--repere-carte), var(--repere-carte), var(--repere-carte);
  background-repeat: no-repeat;
  background-position: 12px 12px, right 12px top 12px, 12px bottom 12px, right 12px bottom 12px;
}
.depot__onglet {
  position: absolute;
  top: -44px;
  left: 96px;
  height: 44px;
  width: 320px;
  max-width: calc(100% - 40px);
  display: flex;
  align-items: center;
  padding: 0 22px;
  background: var(--surface);
  border: 1px solid var(--bordure);
  border-bottom: 0;
  border-radius: var(--rayon) 0 0 0;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
  font-family: var(--annotation);
  font-size: 0.9375rem;
  font-variant: small-caps;
  letter-spacing: 0.14em;
  color: var(--encre-douce);
}

.depot__grille {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 48px;
  align-items: start;
}

.depot h1 { margin-bottom: 22px; }
.depot__sous { font-size: 1.125rem; color: var(--encre-douce); }

.depot__reassurance {
  margin-top: 6px;
  border-top: 1px solid var(--bordure);
  padding-top: 12px;
}
.depot__reassurance strong { font-family: var(--annotation); font-size: 1.375rem; color: var(--controle); }

.cliche { position: relative; margin-top: 58px; }
.cliche__onglet {
  position: absolute;
  top: -26px; left: 24px;
  height: 26px; padding: 0 16px;
  display: inline-flex; align-items: center;
  background: var(--papier-alt);
  border: 1px solid var(--bordure);
  border-bottom: 0;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  font-family: var(--annotation);
  font-size: 0.8125rem;
  font-variant: small-caps;
  letter-spacing: 0.14em;
  color: var(--encre-douce);
}
.cliche__cadre {
  position: relative;
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  overflow: hidden;
  filter: saturate(0.66) contrast(1.02);
}
.cliche__cadre::after {
  content: "";
  position: absolute; inset: 0;
  background:
    var(--repere-carte) no-repeat 8px 8px,
    var(--repere-carte) no-repeat right 8px top 8px,
    var(--repere-carte) no-repeat 8px bottom 8px,
    var(--repere-carte) no-repeat right 8px bottom 8px,
    linear-gradient(to top, var(--voile-photo) 0%, var(--voile-photo-nul) 46%);
  pointer-events: none;
}
.cliche::after {
  content: "";
  position: absolute;
  left: 5px; right: -5px; top: 5px; bottom: -5px;
  border: 1px solid var(--controle);
  border-radius: var(--rayon);
  opacity: 0.75;
  pointer-events: none;
  z-index: -1;
}
.cliche__occultation {
  position: absolute;
  height: 18px;
  background: var(--aplat);
  transform: rotate(-1deg);
  z-index: 2;
}
.cliche__legende {
  position: absolute;
  left: 18px; right: 18px; bottom: 14px;
  z-index: 3;
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--controle-texte);
  max-width: none;
}

/* --- Probleme, trois constats en pleine largeur --------------------------- */

.constats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gouttiere);
  margin-top: 48px;
}
.constat h3 { margin-bottom: 10px; }
.constat p { font-size: 1rem; color: var(--encre-douce); }
.constat p strong { color: var(--encre); font-weight: 600; }

.marge {
  font-family: var(--annotation);
  font-size: 0.9375rem;
  color: var(--encre-douce);
  border-left: 2px solid var(--vermillon);
  padding-left: 12px;
  margin: 0 0 16px;
  max-width: none;
}

.releve {
  margin-top: 54px;
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 48px;
  align-items: center;
}

/* --- Solution, escalier de quatre temps ----------------------------------- */

.escalier { margin-top: 52px; }
.temps { max-width: 880px; }
.temps + .temps { margin-top: 34px; }
.temps:nth-child(1) { margin-left: 0; }
.temps:nth-child(2) { margin-left: 28px; }
.temps:nth-child(3) { margin-left: 56px; }
.temps:nth-child(4) { margin-left: 84px; }

.temps__rang { display: grid; grid-template-columns: 76px 1fr; gap: 22px; align-items: start; }
.temps__numero {
  font-family: var(--annotation);
  font-size: 2.75rem;
  line-height: 1;
  color: var(--controle);
  font-variant-numeric: tabular-nums;
}
.temps p { color: var(--encre-douce); }

/* --- Fonctionnalites, trois colonnes -------------------------------------- */

.postes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px var(--gouttiere);
  margin-top: 52px;
}
.poste p { font-size: 1rem; color: var(--encre-douce); }
.poste:nth-child(even) .chemise__onglet { left: 72px; }

/* --- Avantages, deux colonnes separees par un filet vertical -------------- */

.reprise {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 0 48px;
  align-items: start;
}
.reprise__filet { background: var(--bordure); align-self: stretch; }
.gain { margin-bottom: 34px; }
.gain:last-child { margin-bottom: 0; }
.gain__valeur {
  font-family: var(--annotation);
  font-size: 2.75rem;
  line-height: 1;
  color: var(--controle);
  display: block;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}
.gain h3 { margin-bottom: 8px; }
.gain p { color: var(--encre-douce); font-size: 1rem; margin-bottom: 0; }

/* --- Preuve sociale ------------------------------------------------------- */

.bandeau-chiffres {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  background-color: var(--surface);
  background-image: var(--repere-controle);
  background-repeat: repeat;
  margin-top: 46px;
  box-shadow: var(--ombre-chemise);
}
.chiffre {
  padding: 26px 24px;
  border-right: 1px solid var(--bordure);
  background: rgba(247, 253, 239, 0.86);
}
.chiffre:last-child { border-right: 0; }
.chiffre b {
  display: block;
  font-family: var(--annotation);
  font-size: 2.75rem;
  line-height: 1;
  color: var(--controle);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  margin-bottom: 8px;
}
.chiffre span { font-size: 0.8125rem; font-weight: 600; color: var(--encre-douce); }

.visas {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gouttiere);
  margin-top: 48px;
}
.visa blockquote { margin: 0 0 18px; }
.visa blockquote p { font-size: 1rem; }
.visa figcaption { border-top: 1px solid var(--bordure); padding-top: 12px; }
.visa figcaption b { display: block; font-family: var(--titre); font-weight: 600; font-size: 1rem; }
.visa figcaption span { display: block; font-size: 0.8125rem; font-weight: 600; color: var(--encre-douce); }
.visa__formule {
  font-family: var(--annotation);
  font-size: 0.9375rem;
  color: var(--controle);
  margin-top: 10px;
  display: block;
}

/* --- Tarifs --------------------------------------------------------------- */

.formules {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gouttiere);
  margin-top: 52px;
  align-items: stretch;
}
.formule { display: flex; flex-direction: column; }
.formule--phare { margin-top: 6px; border-color: var(--controle); }
.formule__prix {
  font-family: var(--titre);
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  display: block;
  margin-bottom: 4px;
}
.formule__unite { font-size: 0.8125rem; font-weight: 600; color: var(--encre-douce); display: block; margin-bottom: 16px; }
.formule__cible { font-size: 0.9375rem; color: var(--encre-douce); }
.formule ul { list-style: none; margin: 0 0 24px; padding: 0; }
.formule li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  font-size: 0.9375rem;
  color: var(--encre-douce);
}
.formule li::before {
  content: "";
  position: absolute;
  left: 0; top: 10px;
  width: 12px; height: 2px;
  background: var(--controle);
}
.formule .bouton { width: 100%; margin-top: auto; }
.mention-tarif { margin-top: 26px; font-size: 0.9375rem; color: var(--encre-douce); }

/* --- FAQ ------------------------------------------------------------------ */

.questions { max-width: 66ch; margin-top: 46px; }
.question { border-bottom: 1px solid var(--bordure); }
.question__bouton {
  width: 100%;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  text-align: left;
  background: transparent;
  border: 0;
  color: var(--encre);
  font-family: var(--titre);
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  padding: 20px 0;
  cursor: pointer;
}
.question__marque {
  flex: 0 0 auto;
  font-family: var(--annotation);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--controle);
}
.question__bouton[aria-expanded="true"] .question__marque { color: var(--vermillon); }
.question__reponse { display: none; padding: 0 0 22px; }
.question__reponse.est-ouverte { display: block; }
.question__reponse p { color: var(--encre-douce); font-size: 1rem; margin-bottom: 0.8em; }
.question__reponse p:last-child { margin-bottom: 0; }

/* --- Formulaire ----------------------------------------------------------- */

.depot-demande { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 26px; }
.champ { display: flex; flex-direction: column; gap: 7px; }
.champ--plein { grid-column: 1 / -1; }
.champ label { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.02em; }
.champ input[type="text"],
.champ input[type="email"],
.champ select,
.champ textarea {
  font-family: var(--courant);
  font-size: 1rem;
  color: var(--encre);
  background: var(--papier);
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  padding: 12px 14px;
  width: 100%;
}
.champ textarea { resize: vertical; min-height: 132px; }
.champ input:focus, .champ select:focus, .champ textarea:focus { border-color: var(--controle); }

.consentement { grid-column: 1 / -1; display: flex; gap: 12px; align-items: flex-start; font-size: 0.9375rem; color: var(--encre-douce); }
.consentement input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--controle); flex: 0 0 auto; }

.apres-formulaire { grid-column: 1 / -1; font-size: 0.9375rem; color: var(--encre-douce); margin: 0; }

.contact-grille { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: start; margin-top: 44px; }
.contact-notes li { font-size: 0.9375rem; color: var(--encre-douce); margin-bottom: 12px; }
.contact-notes { list-style: none; padding: 0; margin: 0; }

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

.pied {
  background: var(--papier-alt);
  background-image: var(--reperes);
  padding: 66px 0 0;
  border-top: 1px solid var(--bordure);
}
.pied__colonnes {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 40px var(--gouttiere);
}
.pied h2, .pied h3 { font-size: 0.875rem; font-family: var(--annotation); font-variant: small-caps; letter-spacing: 0.16em; color: var(--encre-douce); font-weight: 400; margin-bottom: 16px; }
.pied ul { list-style: none; margin: 0; padding: 0; }
.pied li { margin-bottom: 9px; }
.pied a { font-size: 0.9375rem; text-decoration: none; color: var(--encre-douce); }
.pied a:hover { color: var(--encre); text-decoration: underline; text-decoration-color: var(--controle); }
.pied p { font-size: 0.9375rem; color: var(--encre-douce); }
.reseaux { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 14px; }
.reseaux a { font-size: 0.8125rem; font-weight: 600; border: 1px solid var(--bordure); border-radius: var(--rayon); padding: 5px 11px; }
.pied__barre {
  margin-top: 52px;
  border-top: 1px solid var(--bordure);
  padding: 20px 0 28px;
  font-size: 0.8125rem;
  color: var(--encre-douce);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  justify-content: space-between;
}
.pied__barre p { margin: 0; font-size: 0.8125rem; max-width: none; }

/* --- Pages internes ------------------------------------------------------- */

.filiere {
  padding-top: calc(var(--entete-h) + 46px);
  padding-bottom: 12px;
  background-image: var(--reperes);
}
.fil-ariane { font-size: 0.8125rem; font-weight: 600; color: var(--encre-douce); margin: 0 0 18px; }
.fil-ariane a { color: var(--encre-douce); text-decoration: none; }
.fil-ariane a:hover { color: var(--controle); }

.texte-long { max-width: 72ch; }
.texte-long h2 { margin-top: 52px; font-size: 1.75rem; }
.texte-long h3 { margin-top: 32px; }
.texte-long ul, .texte-long ol { padding-left: 22px; margin: 0 0 1.2em; }
.texte-long li { margin-bottom: 9px; }
.texte-long dl { margin: 0 0 1.2em; }
.texte-long dt { font-weight: 700; margin-top: 14px; }
.texte-long dd { margin: 0 0 0 0; color: var(--encre-douce); }
.texte-long table { border-collapse: collapse; width: 100%; margin: 0 0 1.4em; font-size: 0.9375rem; }
.texte-long th, .texte-long td { border: 1px solid var(--bordure); padding: 10px 12px; text-align: left; vertical-align: top; }
.texte-long th { font-family: var(--titre); font-weight: 600; }

.portrait-auteur {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 34px;
  align-items: start;
}
.portrait-auteur img { border: 1px solid var(--bordure); border-radius: var(--rayon); filter: saturate(0.7); }

.centre-page { padding-top: calc(var(--entete-h) + 92px); padding-bottom: 96px; }

.sommaire-plan { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gouttiere); margin-top: 44px; }
.sommaire-plan h3 { margin-bottom: 6px; }
.sommaire-plan h3 a { text-decoration: none; }
.sommaire-plan p { font-size: 0.9375rem; color: var(--encre-douce); margin-bottom: 0; }

/* --- Apparition au defilement --------------------------------------------- */

.au-depot { opacity: 0; transform: translateY(14px); transition: opacity 520ms ease, transform 520ms ease; }
.au-depot.est-pose { opacity: 1; transform: none; }

/* --- Adaptation sous 900 pixels ------------------------------------------- */

@media (max-width: 1080px) {
  .constats, .postes, .visas, .formules { grid-template-columns: repeat(2, 1fr); }
  .bandeau-chiffres { grid-template-columns: repeat(2, 1fr); }
  .chiffre:nth-child(2) { border-right: 0; }
  .chiffre:nth-child(1), .chiffre:nth-child(2) { border-bottom: 1px solid var(--bordure); }
}

@media (max-width: 900px) {
  h1 { font-size: 2.125rem; }
  h2 { font-size: 1.625rem; }
  .chiffre b, .gain__valeur, .temps__numero { font-size: 2rem; }

  .ancres { display: none; }
  .entete .bouton { display: none; }
  .bascule { display: block; }
  .entete.est-serree .marque__mot { display: inline; }

  .depot__grille, .releve, .contact-grille, .depot-demande, .portrait-auteur, .sommaire-plan { grid-template-columns: 1fr; }
  .depot__chemise { padding: 34px 22px 20px; }
  .depot__onglet { left: 20px; width: auto; max-width: calc(100% - 32px); }
  .cliche { margin-top: 40px; }

  .constats, .postes, .visas, .formules { grid-template-columns: 1fr; }
  .temps:nth-child(2), .temps:nth-child(3), .temps:nth-child(4) { margin-left: 0; }
  .chemise__onglet, .poste:nth-child(even) .chemise__onglet, .chemise__onglet--large { left: 20px; }
  .formule--phare { margin-top: 26px; }

  .reprise { grid-template-columns: 1fr; }
  .reprise__filet { height: 1px; margin: 12px 0 34px; }

  .pied__colonnes { grid-template-columns: repeat(2, 1fr); }
  .tranche { padding: 68px 0 62px; }
}

@media (max-width: 560px) {
  .pied__colonnes { grid-template-columns: 1fr; }
  .bandeau-chiffres { grid-template-columns: 1fr; }
  .chiffre { border-right: 0; border-bottom: 1px solid var(--bordure); }
  .chiffre:last-child { border-bottom: 0; }
  .duo-boutons .bouton { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .filet::after, .chemise__filet::after, .entete__filet::after, .bouton::after { display: none; }
  .filet::before, .chemise__filet::before { opacity: 1; transition: none; }
  .filet--alerte::before, .chemise--alerte .chemise__filet::before { opacity: 0; }
  .au-depot { opacity: 1; transform: none; transition: none; }
  .entete { transition: none; }
}

@media print {
  .entete, .panneau, .bascule, .duo-boutons { display: none; }
  body { background: #FFFFFF; color: #0F1D13; }
}

/* ==========================================================================
   Magazine, Le Registre des actes
   Section ajoutee en fin de feuille. Aucune regle existante n est modifiee.
   Le magazine reprend le vocabulaire du site: chemise a onglet decale, filet
   balaye, croix de reperage, reglure de pied de carte. Le corps des articles
   ne porte aucune classe: il est mis en forme sur ses balises nues.
   ========================================================================== */

/* --- Grille de fiches d article ------------------------------------------- */

.registre {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 46px var(--gouttiere);
  margin-top: 52px;
}

.fiche {
  display: flex;
  flex-direction: column;
  margin-top: 30px;
}
.fiche:nth-child(even) .chemise__onglet { left: 72px; }

.fiche__cadre {
  position: relative;
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  overflow: hidden;
  filter: saturate(0.66) contrast(1.02);
  margin-bottom: 20px;
}
.fiche__cadre img { width: 100%; }
.fiche__cadre::before {
  content: "";
  position: absolute;
  z-index: 2;
  left: 11%;
  top: 63%;
  width: 32%;
  height: 14px;
  background: var(--aplat);
  transform: rotate(-1deg);
}
.fiche__cadre::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    var(--repere-carte) no-repeat 8px 8px,
    var(--repere-carte) no-repeat right 8px top 8px,
    var(--repere-carte) no-repeat 8px bottom 8px,
    var(--repere-carte) no-repeat right 8px bottom 8px,
    linear-gradient(to top, var(--voile-photo-doux) 0%, var(--voile-photo-nul) 44%);
  pointer-events: none;
}

.fiche__titre {
  font-family: var(--titre);
  font-weight: 600;
  font-size: 1.1875rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  max-width: none;
}
.fiche__titre a { text-decoration: none; color: var(--encre); }
.fiche:hover .fiche__titre a { text-decoration: underline; text-decoration-color: var(--controle); }
.fiche:hover .chemise__onglet { color: var(--encre); }

.fiche__extrait {
  flex: 1 1 auto;
  font-size: 1rem;
  color: var(--encre-douce);
  margin-bottom: 18px;
  max-width: none;
}

.fiche--breve .fiche__cadre { margin-bottom: 16px; }
.fiche--breve .fiche__extrait { margin-bottom: 0; font-size: 0.9375rem; }

/* --- Entete d article ------------------------------------------------------ */

.article-reperes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  margin: 0 0 24px;
  max-width: none;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--encre-douce);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.article-reperes span { display: inline-flex; align-items: center; gap: 10px; }
.article-reperes span + span::before {
  content: "";
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  background: var(--repere-carte) no-repeat center;
}

.exergue {
  font-size: 1.1875rem;
  line-height: 1.65;
  color: var(--encre);
  border-left: 2px solid var(--controle);
  padding-left: 22px;
  margin: 0 0 4px;
  max-width: 62ch;
}

.visuel-une { position: relative; margin: 40px 0 0; }
.visuel-une__cadre {
  position: relative;
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  overflow: hidden;
  filter: saturate(0.66) contrast(1.02);
}
.visuel-une__cadre::before {
  content: "";
  position: absolute;
  z-index: 2;
  left: 13%;
  top: 66%;
  width: 30%;
  height: 18px;
  background: var(--aplat);
  transform: rotate(-1deg);
}
.visuel-une__cadre::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    var(--repere-carte) no-repeat 10px 10px,
    var(--repere-carte) no-repeat right 10px top 10px,
    var(--repere-carte) no-repeat 10px bottom 10px,
    var(--repere-carte) no-repeat right 10px bottom 10px;
  pointer-events: none;
}
.visuel-une::after {
  content: "";
  position: absolute;
  left: 5px; right: -5px; top: 5px; bottom: -5px;
  border: 1px solid var(--controle);
  border-radius: var(--rayon);
  opacity: 0.75;
  pointer-events: none;
  z-index: -1;
}

/* --- Corps d article, balises nues ----------------------------------------- */

.article-corps { max-width: 66ch; margin-top: 46px; }
.article-corps > :first-child { margin-top: 0; }
.article-corps > :last-child { margin-bottom: 0; }

.article-corps h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 54px 0 18px;
}
.article-corps h2::before {
  content: "";
  display: block;
  width: 96px;
  height: 2px;
  background: var(--controle);
  margin-bottom: 20px;
}

.article-corps h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 36px 0 12px;
  padding-left: 24px;
  background: var(--repere-carte) no-repeat left top 5px;
}

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

.article-corps ul,
.article-corps ol {
  list-style: none;
  margin: 0 0 1.5em;
  padding-left: 0;
}
.article-corps li { position: relative; padding-left: 28px; margin-bottom: 11px; }
.article-corps li:last-child { margin-bottom: 0; }
.article-corps ul > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 12px;
  height: 2px;
  background: var(--controle);
}
.article-corps ol { counter-reset: piece; }
.article-corps ol > li { counter-increment: piece; }
.article-corps ol > li::before {
  content: counter(piece);
  position: absolute;
  left: 0;
  top: -1px;
  font-family: var(--annotation);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--controle);
  font-variant-numeric: tabular-nums;
}
.article-corps li > ul,
.article-corps li > ol { margin: 10px 0 0; }

.article-corps table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0 1.7em;
  font-size: 0.9375rem;
  border-top: 2px solid var(--controle);
  font-variant-numeric: tabular-nums;
}
.article-corps th,
.article-corps td {
  border: 1px solid var(--bordure);
  padding: 11px 13px;
  text-align: left;
  vertical-align: top;
}
.article-corps thead th {
  font-family: var(--titre);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
  background: var(--papier-alt);
  color: var(--encre);
}
.article-corps tbody th { color: var(--encre); font-weight: 700; }
.article-corps tbody td { color: var(--encre-douce); }
.article-corps tbody tr:nth-child(even) { background: rgba(228, 233, 223, 0.6); }

.article-corps aside {
  position: relative;
  margin: 38px 0 1.7em;
  background: var(--surface);
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  box-shadow: var(--ombre-chemise);
  padding: 30px 26px 18px;
  background-image: var(--repere-carte), var(--repere-carte);
  background-repeat: no-repeat;
  background-position: 10px 10px, right 10px bottom 10px;
}
.article-corps aside::before {
  content: "Encadré";
  position: absolute;
  top: -26px;
  left: 24px;
  height: 26px;
  min-width: 132px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--bordure);
  border-bottom: 0;
  border-radius: var(--rayon) 0 0 0;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  font-family: var(--annotation);
  font-size: 0.875rem;
  font-variant: small-caps;
  letter-spacing: 0.14em;
  color: var(--encre-douce);
  white-space: nowrap;
}
.article-corps aside::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: var(--controle);
}
.article-corps aside p { color: var(--encre-douce); font-size: 1rem; }
.article-corps aside > :last-child { margin-bottom: 0; }

.article-corps blockquote {
  position: relative;
  margin: 34px 0 1.7em;
  padding: 2px 0 2px 30px;
  border-left: 2px solid var(--bordure);
  color: var(--encre);
}
.article-corps blockquote::before {
  content: "\00AB";
  position: absolute;
  left: 10px;
  top: -6px;
  font-family: var(--annotation);
  font-size: 1.75rem;
  line-height: 1;
  color: var(--controle);
}
.article-corps blockquote p { font-size: 1.0625rem; }
.article-corps blockquote > :last-child { margin-bottom: 0; }

.article-corps figure { margin: 34px 0 1.7em; }
.article-corps figure img { border: 1px solid var(--bordure); border-radius: var(--rayon); }
.article-corps figcaption {
  margin-top: 10px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--encre-douce);
}

.article-corps strong { color: var(--encre); font-weight: 700; }
.article-corps em { font-style: italic; color: var(--encre); }
.article-corps a {
  color: var(--encre);
  text-decoration: underline;
  text-decoration-color: var(--controle);
  text-underline-offset: 3px;
}
.article-corps a:hover { color: var(--controle); }

/* --- Encart auteur, appel a l action, bloc A lire aussi -------------------- */

.encart-auteur {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 26px;
  align-items: start;
}
.encart-auteur img {
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  filter: saturate(0.7);
}
.encart-auteur__nom {
  font-family: var(--titre);
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}
.encart-auteur p { color: var(--encre-douce); font-size: 1rem; }

.appel-article p { color: var(--encre-douce); }
.appel-article .duo-boutons { margin-bottom: 12px; }

.bloc-titre {
  font-family: var(--titre);
  font-weight: 700;
  font-size: 1.625rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--encre);
  margin: 0 0 10px;
  max-width: none;
}

.lire-aussi .registre { margin-top: 34px; }

/* Dans les pages du magazine, les intitules de colonnes du pied de page sont
   des paragraphes: la hierarchie de titres appartient au corps redactionnel. */
.pied__titre {
  font-family: var(--annotation);
  font-size: 0.875rem;
  font-variant: small-caps;
  letter-spacing: 0.16em;
  font-weight: 400;
  color: var(--encre-douce);
  margin: 0 0 16px;
  max-width: none;
}

/* --- Adaptation du magazine ------------------------------------------------ */

@media (max-width: 1080px) {
  .registre { grid-template-columns: repeat(2, 1fr); }
  .fiche:nth-child(even) .chemise__onglet { left: 24px; }
}

@media (max-width: 900px) {
  .registre { grid-template-columns: 1fr; gap: 40px 0; }
  .fiche .chemise__onglet { left: 20px; }
  .article-corps h2 { font-size: 1.5rem; }
  .article-corps h3 { font-size: 1.125rem; }
  .article-corps table { display: block; overflow-x: auto; }
  .exergue { font-size: 1.0625rem; padding-left: 16px; }
  .encart-auteur { grid-template-columns: 1fr; gap: 18px; }
  .bloc-titre { font-size: 1.375rem; }
}
