/* ═══════════════════════════════════════════════
   PROSPERTA — « le carnet de bord d'une campagne »
   Design blanc et noir · violet Prosperta · objets anciens
   ═══════════════════════════════════════════════ */

:root {
  --papier: #FFFFFF;       /* fond de page */
  --gris-clair: #F4F4F2;   /* sections claires en alternance */
  --page: #FFFFFF;         /* feuilles, fiches, plan */
  --papier-objet: #F6F1E6; /* le papier des objets anciens : agenda, contrat */
  --carte: #FFFFFF;        /* fond de la zone sur le plan */
  --filet: #E4E4E7;        /* traits fins */
  --filet-objet: #D8CFBE;  /* traits sur papier ancien */
  --texte: #0A0A0A;
  --texte-doux: #5F5F66;
  --gris: #CFCFD4;         /* entreprises écartées sur le plan */
  --encre: #5B3FE0;        /* écriture, points ciblés, annotations */
  --violet: #7C5CFF;       /* violet Prosperta : fanions, tampons, signet */
  --violet-fonce: #5B3FE0;
  --cuir: #1A1714;         /* couverture de l'agenda */
  --nuit: #0A0A0A;         /* sections noires */
  --nuit-texte: #F2F2F0;
  --nuit-doux: #9A9AA0;
  --nuit-encre: #B3A2FF;

  --titre: "Syne", "Helvetica Neue", Arial, sans-serif;
  --titre-ancien: "Newsreader", Georgia, serif;
  --police: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --plume: "Caveat", "Bradley Hand", cursive;

  --marge: clamp(16px, 5vw, 48px);
  --largeur: 1200px;
  --ombre-objet: 0 1px 1px rgba(60, 42, 12, 0.08), 0 6px 14px -6px rgba(60, 42, 12, 0.22), 0 28px 48px -28px rgba(60, 42, 12, 0.45);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; overflow-x: clip; }

body {
  font-family: var(--police);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--texte);
  background-color: var(--papier);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--violet); color: #fff; }

a { color: inherit; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 2px; }

.conteneur { max-width: var(--largeur); margin-inline: auto; padding-inline: var(--marge); }

/* ─────────────── Boutons ─────────────── */

.bouton {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 4px;
  background: var(--texte);
  color: #fff;
  font-weight: 600;
  font-size: 1.0625rem;
  text-decoration: none;
  border: 0;
  font-family: inherit;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.bouton:hover { background: #2A2A30; }
/* sur fond noir, le bouton passe en violet (sauf sur une feuille de papier posée dessus) */
.probleme .bouton, .garanties .bouton, .appel-texte .bouton, .cas-appel .bouton { background: var(--violet); }
.probleme .bouton:hover, .garanties .bouton:hover, .appel-texte .bouton:hover, .cas-appel .bouton:hover { background: var(--violet-fonce); }
.bouton--petit { min-height: 42px; padding: 0 18px; font-size: 0.9375rem; }

.lien-secondaire {
  font-weight: 600;
  color: var(--texte);
  text-decoration: underline;
  text-decoration-color: var(--encre);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 5px;
}
.lien-secondaire:hover { color: var(--encre); }

/* ─────────────── Emplacements à fournir ─────────────── */

.a-fournir {
  border: 1.5px dashed var(--encre);
  border-radius: 3px;
  padding: 18px 20px;
  color: var(--encre);
  background: rgba(124, 92, 255, 0.05);
  font-size: 0.9375rem;
}
.a-fournir strong { display: block; font-weight: 600; }

/* ─────────────── Le journal de bord : la date dans la marge ─────────────── */

.journal {
  font-family: var(--plume);
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--encre);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.journal::before { content: ""; width: 28px; height: 1.5px; background: var(--violet); }

/* la phrase manuscrite qui mène à la section suivante */
.suite-main {
  justify-self: center;
  margin-top: 28px;
  font-family: var(--plume);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--encre);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.suite-main::after {
  content: "";
  width: 18px;
  height: 46px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 46' fill='none'%3E%3Cpath d='M9 2c-3 12 3 22 0 40M3 34l6 9 6-9' stroke='%232B2A6B' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* ─────────────── Navigation ─────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(1.2) blur(6px);
  -webkit-backdrop-filter: saturate(1.2) blur(6px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.nav.est-defile { border-bottom-color: var(--filet); }

.nav-interieur { display: flex; align-items: center; gap: 32px; min-height: 68px; }

.marque {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}
.marque svg { width: 22px; height: 22px; }

.nav-liens { display: flex; gap: 26px; margin-left: auto; }
.nav-liens a { text-decoration: none; font-size: 0.9375rem; font-weight: 500; color: var(--texte-doux); }
.nav-liens a:hover { color: var(--texte); }
.nav-liens a { position: relative; transition: color 0.2s ease; }
.nav-liens a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--violet);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.3s ease;
}
.nav-liens a.actif { color: var(--texte); font-weight: 600; }
.nav-liens a.actif::after { transform: scaleX(1); }

@media (max-width: 899px) {
  .nav-liens { display: none; }
  .nav-interieur { justify-content: space-between; gap: 12px; min-height: 60px; }
}

/* ─────────────── Où en est-on : barre de progression ─────────────── */

.progression { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none; }
.progression span { display: block; height: 100%; background: var(--violet); transform-origin: 0 50%; transform: scaleX(0); }


/* ─────────────── 1. Accroche ─────────────── */

.accroche {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  grid-template-areas: "journal journal" "tete tete" "texte scene" "suite suite";
  column-gap: clamp(32px, 5vw, 72px);
  align-items: start;
  padding-top: clamp(40px, 7vw, 88px);
  padding-bottom: clamp(24px, 4vw, 48px);
}
.accroche > .journal { grid-area: journal; }
.accroche-tete { grid-area: tete; margin-bottom: clamp(16px, 3vw, 32px); }
.accroche-texte { grid-area: texte; padding-top: 64px; }
.scene-agenda { grid-area: scene; }
.accroche > .suite-main { grid-area: suite; }

.surtitre {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  font-size: 0.9375rem;
  color: var(--texte-doux);
  margin-bottom: 20px;
}
.surtitre strong { font-family: var(--titre-ancien); font-weight: 400; font-style: italic; font-size: 1.3rem; color: var(--texte); }
.surtitre span { padding-left: 14px; border-left: 1px solid var(--filet); }

.accroche h1 {
  font-family: var(--titre);
  font-size: clamp(2.3rem, 5.4vw, 4.6rem);
  line-height: 0.98;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.accroche h1 > span { display: block; }

/* la deuxième voix des titres : le serif ancien, en italique */
.voix2 {
  font-family: var(--titre-ancien);
  font-weight: 500;
  font-style: italic;
  font-size: 1.05em;
  letter-spacing: -0.01em;
  color: var(--encre);
}
h2 .voix2 { margin-top: 0.14em; }

/* dans l'accroche, c'est la promesse : plus grande, en violet Prosperta, soulignée au feutre */
.accroche h1 .voix2 {
  font-size: 1.16em;
  line-height: 1.05;
  margin-top: 0.04em;
  padding-right: 0.12em;
  color: var(--violet);
  /* une lampe passe sur la promesse toutes les 5 secondes */
  background: linear-gradient(100deg, var(--violet) 0%, var(--violet) 42%, #D9D0FF 50%, var(--violet) 58%, var(--violet) 100%);
  background-size: 260% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: eclat 5s ease-in-out 1.6s infinite;
}
@keyframes eclat {
  0%, 62% { background-position: 100% 0; }
  88%, 100% { background-position: 0 0; }
}
.trait-feutre { position: relative; display: inline-block; white-space: nowrap; }
/* Safari iOS ne peint pas le dégradé du parent (background-clip: text) dans un inline-block :
   le mot héritait d'un texte transparent et disparaissait. On lui donne sa propre peinture. */
.accroche h1 .voix2 .trait-feutre {
  background: inherit;
  background-size: 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: eclat 5s ease-in-out 1.6s infinite;
}
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .accroche h1 .voix2 .trait-feutre { -webkit-text-fill-color: var(--violet); }
}
.trait-feutre::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -3%;
  bottom: -0.2em;
  height: 0.15em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 24' preserveAspectRatio='none'%3E%3Cpath d='M4 15c40-7 105-11 172-9 46 1 84 5 120 2' fill='none' stroke='%237C5CFF' stroke-width='5' stroke-linecap='round'/%3E%3Cpath d='M30 20c60-5 140-6 230-3' fill='none' stroke='%237C5CFF' stroke-width='2.5' stroke-linecap='round' opacity='.55'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
  animation: tracer 0.9s cubic-bezier(0.6, 0, 0.3, 1) 0.5s both;
}
@keyframes tracer { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

/* le trait de plume sous « agenda » */
.souligne { position: relative; white-space: nowrap; }
.souligne::after {
  content: "";
  position: absolute;
  left: -1%;
  right: 8%;
  bottom: -0.08em;
  height: 0.2em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 20' preserveAspectRatio='none'%3E%3Cpath d='M3 12c48-6 120-8 190-6 38 1 70 4 104 1' fill='none' stroke='%23A6352B' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}

.promesse { margin-top: 26px; font-size: clamp(1.125rem, 1.7vw, 1.375rem); font-weight: 600; }

.accroche-sous { max-width: 33rem; font-size: clamp(1.0625rem, 1.4vw, 1.1875rem); color: var(--texte-doux); }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 30px; }

.note-main {
  margin-top: 22px;
  max-width: 24rem;
  font-family: var(--plume);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--encre);
}

/* ─────────────── Animation 1 : l'agenda ─────────────── */

.scene-agenda { position: relative; padding-top: 56px; }

.agenda {
  position: relative;
  padding: 11px 13px 12px;
  border-radius: 16px 16px 14px 14px;
  background-color: var(--cuir);
  /* grain du cuir */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='c'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23c)'/%3E%3C/svg%3E"), linear-gradient(160deg, #2A2520, #14110E);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), inset 0 -2px 0 rgba(0, 0, 0, 0.5), 0 2px 3px rgba(10, 10, 10, 0.25), 0 30px 50px -24px rgba(10, 10, 10, 0.55);
  transform: rotate(-1deg);
}
/* la piqûre de la couverture */
.agenda::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  pointer-events: none;
}

.agenda-pages {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 5px;
  background: var(--papier-objet);
  overflow: hidden;
  position: relative;
  /* l'épaisseur des pages, visible sur les tranches */
  box-shadow:
    0 1px 0 #EFE9DC, 0 2px 0 #D6CCB9, 0 3px 0 #EFE9DC, 0 4px 0 #CFC4AF, 0 5px 0 #E6DECD,
    -1px 0 0 #EFE9DC, -2px 0 0 #D6CCB9, -3px 1px 0 #EFE9DC, -4px 1px 0 #CFC4AF,
    1px 0 0 #EFE9DC, 2px 0 0 #D6CCB9, 3px 1px 0 #EFE9DC, 4px 1px 0 #CFC4AF;
}
/* la courbure des pages vers la reliure, la lumière sur les bords */
.agenda-page--gauche { background: linear-gradient(90deg, rgba(255, 255, 255, 0.35), transparent 12%, transparent 78%, rgba(90, 66, 30, 0.12)); }
.agenda-page--droite { background: linear-gradient(270deg, rgba(255, 255, 255, 0.35), transparent 12%, transparent 78%, rgba(90, 66, 30, 0.12)); }
/* creux de la reliure */
.agenda-pages::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 56px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(80, 58, 20, 0.13) 46%, rgba(80, 58, 20, 0.2) 50%, rgba(80, 58, 20, 0.13) 54%, transparent);
  pointer-events: none;
}

.agenda-page { padding: 16px 22px 18px; display: flex; flex-direction: column; }

.agenda-tete {
  font-family: var(--titre-ancien);
  font-style: italic;
  font-size: 1.125rem;
  color: #6A6358;
  height: 22px;
  margin-bottom: 6px;
}
.agenda-page--droite .agenda-tete { text-align: right; }

.jour {
  position: relative;
  min-height: 112px;
  border-top: 1px solid var(--filet-objet);
  padding: 4px 0 8px;
}
.jour-nom { font-family: var(--titre-ancien); font-style: italic; font-size: 1rem; color: #6A6358; }

/* une ligne de l'agenda : heure + texte, à la plume */
.ligne {
  display: grid;
  grid-template-columns: 2.7em 1fr;
  column-gap: 4px;
  font-family: var(--plume);
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  font-weight: 500;
  line-height: 1.6;
  color: #1A1714;
  border-bottom: 1px solid rgba(216, 207, 190, 0.6);
}
.ligne-heure { color: #6A6358; }
.ligne-texte { white-space: nowrap; overflow: hidden; }

.rdv, .rdv .ligne-heure { color: var(--encre); }
.rdv { position: relative; z-index: 1; }
.rdv .ligne-heure,
.rdv .ligne-texte { clip-path: inset(-20% 100% -20% 0); }

.notes { position: relative; flex: 1; min-height: 112px; border-top: 1px solid var(--filet-objet); padding-top: 4px; }

.tampon {
  position: absolute;
  right: 6%;
  bottom: 14px;
  padding: 8px 14px 7px;
  border: 3px double var(--violet);
  border-radius: 3px;
  color: var(--violet);
  font-weight: 700;
  font-size: 0.8125rem;
  line-height: 1.15;
  text-transform: uppercase;   /* un tampon de bureau est en capitales */
  letter-spacing: 0.06em;
  text-align: center;
  max-width: 13em;
  opacity: 0;
  transform: rotate(-7deg) scale(1.5);
  /* encre irrégulière du tampon */
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='80'%3E%3Cfilter id='t'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.4' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.2 2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23t)'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='80'%3E%3Cfilter id='t'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.4' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.2 2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23t)'/%3E%3C/svg%3E");
}

/* le signet qui dépasse de l'agenda */
.signet {
  position: absolute;
  bottom: -30px;
  right: 22%;
  width: 14px;
  height: 46px;
  background: var(--violet);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%);
  z-index: -1;
}

/* les réponses reçues : de petits courriers */
.pile { position: absolute; top: 0; right: 4%; width: min(250px, 62%); height: 0; z-index: 3; }
.billet {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  padding: 12px 16px 13px;
  background: linear-gradient(180deg, #FFFFFC, #F8F5EC);
  border: 1px solid #E6E0D2;
  border-radius: 1px;
  box-shadow: 0 1px 1px rgba(10, 10, 10, 0.06), 0 14px 26px -14px rgba(10, 10, 10, 0.45);
  font-size: 0.8125rem;
  line-height: 1.35;
  opacity: 0;
  transform: translate(calc(var(--dx, 0px) + 60px), calc(var(--dy, 0px) - 18px)) rotate(var(--r, 2deg)) scale(0.94);
}
/* coin replié en haut à droite */
.billet::before {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  width: 16px;
  height: 16px;
  background: linear-gradient(225deg, #fff 50%, #E2DBCB 50%, #F2EEE4 100%);
  box-shadow: -1px 1px 2px rgba(10, 10, 10, 0.12);
}
.billet-de { display: flex; align-items: center; gap: 6px; color: var(--texte-doux); }
.billet-de::before {
  content: "";
  width: 14px;
  height: 10px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 10' fill='none' stroke='%235F5F66' stroke-width='1.2'%3E%3Crect x='.6' y='.6' width='12.8' height='8.8' rx='1'/%3E%3Cpath d='M1 1l6 4.5L13 1'/%3E%3C/svg%3E") no-repeat center / contain;
}

.billet-texte { display: block; margin-top: 2px; font-size: 1rem; font-weight: 600; color: var(--texte); }

.annotation { position: absolute; font-family: var(--plume); font-size: 1.5rem; font-weight: 600; line-height: 1.1; color: var(--encre); }
.annotation--pile {
  top: 6px;
  right: calc(4% + min(250px, 62%) + 14px);
  display: flex;
  align-items: flex-start;
  gap: 6px;
  opacity: 0;
}
.annotation--pile svg { width: 42px; height: 26px; margin-top: 4px; }

.mention { margin-top: 40px; font-size: 0.8125rem; color: var(--texte-doux); text-align: right; }

/* états de l'animation (posés par site.js) */
.anim-prete .billet { transition: opacity 0.3s ease, transform 0.55s cubic-bezier(0.2, 1.35, 0.35, 1); }
.billet.arrive { opacity: 1; transform: translate(var(--dx, 0px), var(--dy, 0px)) rotate(var(--r, 2deg)); }
/* une fois lue, la réponse glisse dans l'agenda et disparaît : elle devient une ligne écrite */
.anim-prete .billet.range { transition: opacity 0.45s ease, transform 0.6s cubic-bezier(0.5, 0, 0.75, 0); }
.billet.range { opacity: 0; transform: translate(var(--dx, 0px), calc(var(--dy, 0px) + 70px)) rotate(var(--r, 2deg)) scale(0.85); }

.anim-prete .rdv .ligne-heure,
.anim-prete .rdv .ligne-texte { transition: clip-path 0.7s linear; }
.rdv.ecrit .ligne-heure { clip-path: inset(-20% -6% -20% 0); transition-duration: 0.25s; }
.rdv.ecrit .ligne-texte { clip-path: inset(-20% -6% -20% 0); transition-delay: 0.25s; }

.anim-prete .annotation--pile { transition: opacity 0.4s ease; }
.annotation--pile.visible { opacity: 1; }

.anim-prete .tampon { transition: opacity 0.12s ease, transform 0.32s cubic-bezier(0.3, 1.4, 0.5, 1); }
.tampon.pose { opacity: 0.92; transform: rotate(-7deg) scale(1); }

@media (max-width: 899px) {
  .accroche { grid-template-columns: 1fr; grid-template-areas: "journal" "tete" "texte" "scene" "suite"; }
  .accroche-texte { padding-top: 0; }
  .scene-agenda { max-width: 620px; margin-top: 24px; }
}

@media (max-width: 599px) {
  .agenda-pages { grid-template-columns: 1fr; }
  .agenda-pages::before { display: none; }
  .agenda-page { padding: 14px 16px 16px; }
  .agenda-page--droite { padding-top: 0; }
  .agenda-page--droite .agenda-tete { display: none; }
  .jour { min-height: 0; }
  .ligne { font-size: 1.05rem; }
  .notes { min-height: 96px; }
  .agenda { transform: rotate(-0.6deg); }
  .annotation--pile { display: none; }
  /* sur téléphone, les réponses arrivent d'en haut, pas de la droite (pas de débordement) */
  .billet { transform: translate(var(--dx, 0px), calc(var(--dy, 0px) - 24px)) rotate(var(--r, 2deg)); }
  .pile { right: 6%; width: min(240px, 70%); }
  .surtitre { flex-direction: column; gap: 2px; }
  .surtitre span { padding-left: 0; border-left: 0; }
}

/* ─────────────── 2. Le problème (section noire) ─────────────── */

.probleme { position: relative; background: var(--nuit); color: var(--nuit-texte); padding: clamp(72px, 9vw, 112px) 0 clamp(56px, 7vw, 88px); }
.probleme .journal { color: var(--nuit-encre); }
.probleme-corps {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}
.probleme h2 {
  font-family: var(--titre);
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.probleme h2 span { display: block; }
.probleme .voix2 { color: var(--nuit-encre); }
.probleme-texte p { margin-top: 18px; max-width: 34rem; color: var(--nuit-doux); font-size: 1.125rem; }
.probleme-texte p strong { color: var(--nuit-texte); font-weight: 600; }
.probleme-texte .aparte { font-family: var(--titre-ancien); font-style: italic; font-size: 1.375rem; line-height: 1.35; color: var(--nuit-texte); border-left: 2px solid var(--violet); padding-left: 18px; }
.probleme .conclusion {
  grid-column: 1 / -1;
  margin-top: clamp(32px, 5vw, 56px);
  padding-top: 28px;
  border-top: 1px solid #2A2A2E;
  max-width: none;
  font-family: var(--titre-ancien);
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  line-height: 1.15;
  color: var(--nuit-texte);
}
.probleme .suite-main { color: var(--nuit-encre); grid-column: 1 / -1; }
.probleme .suite-main::after { filter: invert(1) brightness(1.6); }

/* l'objet : un contrat résilié, sur papier ancien */
.contrat {
  position: relative;
  background: var(--papier-objet);
  color: #1A1714;
  border-radius: 3px;
  padding: 24px 24px 28px;
  transform: rotate(2deg);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.9);
}
.contrat-titre { font-family: var(--titre-ancien); font-size: 1.6rem; line-height: 1.1; }
.contrat-ligne { margin-top: 10px; height: 1px; background: var(--filet-objet); }
.contrat-ligne--courte { width: 60%; }
.contrat-meta { margin-top: 14px; font-size: 0.8125rem; color: #6A6358; }
.contrat .tampon-resilie {
  position: absolute;
  top: 34%;
  right: 8%;
  padding: 6px 14px;
  border: 3px double var(--violet);
  color: var(--violet);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;   /* un tampon de bureau est en capitales */
  transform: rotate(-12deg);
}
.contrat .question-main {
  margin-top: 22px;
  font-family: var(--plume);
  font-size: 1.7rem;
  font-weight: 600;
  line-height: 1.1;
  color: var(--encre);
}

@media (max-width: 899px) {
  .probleme-corps { grid-template-columns: 1fr; }
  .contrat { max-width: 420px; }
}

/* ─────────────── 3. Méthode : le plan de campagne ─────────────── */

.methode { position: relative; padding: clamp(64px, 8vw, 96px) 0 clamp(64px, 9vw, 120px); background: var(--gris-clair); }

.rubrique {
  font-family: var(--titre-ancien);
  font-style: italic;
  font-size: 1.375rem;
  color: var(--texte-doux);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--texte);
  margin-bottom: 26px;
}

.methode-tete h2 {
  font-family: var(--titre);
  font-size: clamp(2.1rem, 4.4vw, 3.6rem);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.methode-tete > p:last-child { margin-top: 18px; max-width: 34rem; color: var(--texte-doux); font-size: 1.125rem; }

.methode-corps {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  grid-template-areas: "plan questions";
  gap: clamp(32px, 5vw, 72px);
  margin-top: clamp(32px, 5vw, 56px);
}
.plan { grid-area: plan; }
.questions { grid-area: questions; list-style: none; }

.feuille-plan {
  position: relative;
  background: var(--page);
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(10, 10, 10, 0.06), 0 24px 48px -28px rgba(10, 10, 10, 0.3);
  padding: clamp(10px, 1.6vw, 18px);
}
.feuille-plan svg { display: block; width: 100%; height: auto; }

.question h3 {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-family: var(--titre-ancien);
  font-size: clamp(1.75rem, 2.8vw, 2.4rem);
  line-height: 1.08;
  font-weight: 400;
}
.question-num { flex: none; min-width: 1.4em; font-family: var(--titre-ancien); font-style: italic; color: var(--encre); }
.question > p { margin-top: 14px; max-width: 34rem; color: var(--texte-doux); font-size: 1.125rem; }
/* « en pratique » : un exemple concret par question, sur une fiche */
.en-pratique { margin-top: 22px; max-width: 34rem; background: #FFFFFF; border: 1px solid var(--filet); border-left: 3px solid var(--violet); border-radius: 3px; padding: 14px 18px 16px; box-shadow: 0 14px 28px -22px rgba(10, 10, 10, 0.35); }
.en-pratique b { display: block; font-family: var(--titre-ancien); font-style: italic; font-weight: 500; font-size: 1rem; color: var(--encre); margin-bottom: 4px; }
.en-pratique span { color: var(--texte); }
/* les 5 étapes, sous le plan : on voit où on en est */
.plan-etapes { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 14px; }
.plan-etapes li { text-align: center; padding: 8px 4px; border-radius: 3px; font-family: var(--titre-ancien); font-style: italic; font-size: 1.05rem; color: var(--texte-doux); background: #FFFFFF; border: 1px solid var(--filet); transition: background-color 0.25s ease, color 0.25s ease; }
.plan-etapes li.faite { color: var(--violet); background: #EFEBFF; border-color: #D9D0FF; }
.plan-etapes li.active { background: var(--violet); border-color: var(--violet); color: #FFFFFF; }
@media (max-width: 899px) { .plan-etapes { display: none; } }
.question .niche-detail { font-family: var(--plume); font-size: 1.45rem; font-weight: 600; line-height: 1.2; color: var(--encre); }
.question { transition: opacity 0.3s ease; }
.js-plan .question { opacity: 0.35; }
.js-plan .question.active { opacity: 1; }

/* sur ordinateur, le plan reste à l'écran pendant qu'on lit les questions */
/* sur les écrans peu hauts, le plan rétrécit pour tenir entièrement sous le menu */
@media (min-width: 900px) {
  .feuille-plan { max-width: calc((100vh - 190px) * 0.76); margin-inline: auto; }
  .plan-etapes { max-width: calc((100vh - 190px) * 0.76); margin-inline: auto; }
}
@media (min-width: 900px) {
  .plan { position: sticky; top: 92px; align-self: start; }
  .question { min-height: 58vh; padding-top: 10vh; }
  .question:first-child { padding-top: 2vh; }
  .question:last-child { min-height: 64vh; }
}

.compteur { margin-top: 22px; }
.compteur-chiffre {
  display: block;
  font-family: var(--titre-ancien);
  font-size: clamp(3.4rem, 7vw, 5.4rem);
  line-height: 0.95;
  font-weight: 500;
  letter-spacing: -0.02em;
  font-variant-numeric: lining-nums tabular-nums;
}
.compteur-legende { display: block; margin-top: 8px; max-width: 20rem; font-size: 1.0625rem; line-height: 1.35; color: var(--texte); }

/* éléments du plan (SVG) */
.plan-cadre { fill: none; stroke: var(--texte); }
.plan-zone { fill: var(--carte); }
.plan-contour { fill: none; stroke: var(--texte); stroke-width: 1.8; stroke-linejoin: round; }
.plan-titre { font-family: var(--titre-ancien); font-size: 36px; fill: var(--texte); }
.plan-sous-titre { font-family: var(--titre-ancien); font-style: italic; font-size: 17px; fill: var(--texte-doux); }
.plan-ville { fill: var(--texte); }
.plan-ville-nom { font-family: var(--titre-ancien); font-size: 19px; fill: var(--texte-doux); paint-order: stroke; stroke: var(--carte); stroke-width: 5px; }
.plan-ville-nom--principale { font-size: 27px; fill: var(--texte); }
.plan-echelle { font-family: var(--titre-ancien); font-style: italic; font-size: 16px; fill: var(--texte); }
.plan-plume { font-family: var(--plume); font-size: 30px; font-weight: 600; fill: var(--encre); }
.plan-trait { fill: none; stroke: var(--encre); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* vos clients actuels (punaises noires) : annotés en noir, pas à l'encre des cibles */
.plan-plume.plan-noir { fill: var(--texte); }
.plan-trait.plan-noir { stroke: var(--texte); }
.plan-etiquette rect { fill: var(--texte); stroke: var(--texte); stroke-width: 1.2; }
.plan-etiquette text { font-family: var(--police); font-size: 14px; font-weight: 600; fill: #FFFFFF; }
.plan-etiquette .fil { fill: none; stroke: var(--texte-doux); stroke-width: 1; stroke-dasharray: 3 3; }

/* I : toutes les entreprises, en noir · II : seules les ressemblantes restent, en violet ·
   III : seules les prêtes à changer restent fortes, avec un halo */
.plan-point { fill: var(--texte); opacity: 0; r: 3.6px; }
.plan-point.allume { opacity: 0.8; }
.etat-2 .plan-point.allume:not(.est-cible),
.etat-3 .plan-point.allume:not(.est-cible) { fill: #D9D9DE; opacity: 0.7; r: 2.4px; }
.etat-2 .plan-point.est-cible { fill: var(--violet); opacity: 1; r: 4.6px; }
.etat-3 .plan-point.est-cible { fill: #CDC2FF; opacity: 1; r: 3.6px; }
.etat-3 .plan-point.est-prete { fill: var(--violet); r: 6px; }
/* IV et V : on suit une seule entreprise, Cabinet Martin */
.etat-4 .plan-point.allume:not(.est-cible),
.etat-5 .plan-point.allume:not(.est-cible) { fill: #E4E4E8; opacity: 0.7; r: 2.2px; }
.etat-4 .plan-point.est-cible,
.etat-5 .plan-point.est-cible { fill: #DCD4FF; opacity: 1; r: 3px; }
.etat-4 .plan-point.est-martin,
.etat-5 .plan-point.est-martin { fill: var(--violet); r: 7px; }
.plan-halo { fill: none; stroke: var(--violet); stroke-width: 1.5; opacity: 0.45; }
.plan-etape { font-family: var(--titre-ancien); font-style: italic; font-size: 24px; fill: var(--texte); }
.plan-etape tspan { fill: var(--violet); }

/* chaque couche apparaît à son étape */
.plan-rayon { fill: rgba(124, 92, 255, 0.05); stroke: var(--violet); stroke-width: 1.4; stroke-dasharray: 6 5; }
.couche { opacity: 0; transition: opacity 0.5s ease; }
.etat-1 .couche-1,
.etat-2 .couche-2,
.etat-2 .couche-clients,
.etat-3 .couche-clients,
.etat-3 .couche-3,
.etat-4 .couche-4,
.etat-5 .couche-5,
.etat-4 .couche-martin,
.etat-5 .couche-martin { opacity: 1; }

.fanion { transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(0); transition: transform 0.45s cubic-bezier(0.3, 1.4, 0.5, 1); }
.etat-3 .fanion,
.etat-4 .fanion-martin,
.etat-5 .fanion-martin { transform: scaleY(1); }
.etat-3 .fanion:nth-child(2) { transition-delay: 0.15s; }
.etat-3 .fanion:nth-child(3) { transition-delay: 0.3s; }

.anim-prete .plan-point { transition: opacity 0.3s ease, fill 0.5s ease, r 0.5s ease; }

@media (max-width: 899px) {
  .methode-corps { grid-template-columns: 1fr; grid-template-areas: "plan" "questions"; gap: 12px; }
  /* sur téléphone, le plan reste en haut pendant que les questions défilent dessous */
  .plan { position: sticky; top: 60px; z-index: 5; background: var(--gris-clair); padding: 6px 0 12px; }
  .feuille-plan { max-width: min(340px, 78vw); margin-inline: auto; }
  .question { min-height: 55vh; padding-top: 16px; }
}
@media (max-width: 899px) and (max-height: 760px) {
  .feuille-plan { max-width: 250px; }
}

/* le courrier et le rendez-vous dessinés sur le plan (IV et V) */
.plan-carte { fill: #FFFFFF; stroke: var(--texte); stroke-width: 1.2; }
.plan-carte-ombre { fill: rgba(10, 10, 10, 0.08); }
.plan-carte-titre { font-family: var(--police); font-size: 14px; font-weight: 700; fill: var(--texte); }
.plan-carte-texte { font-family: var(--police); font-size: 13.5px; fill: #3A3A40; }
.plan-carte-doux { font-family: var(--police); font-size: 12px; fill: var(--texte-doux); }
.plan-carte-main { font-family: var(--plume); font-size: 24px; font-weight: 600; fill: var(--encre); }
.plan-onglet { fill: #F1F1F3; stroke: var(--texte); stroke-width: 1; }
.plan-onglet--actif { fill: var(--violet); stroke: var(--violet); }
.plan-onglet-texte { font-family: var(--police); font-size: 12px; font-weight: 700; fill: var(--texte); }
.plan-onglet--actif + .plan-onglet-texte { fill: #FFFFFF; }
.plan-tampon { fill: none; stroke: var(--violet); stroke-width: 2.5; }
.plan-tampon-texte { font-family: var(--police); font-size: 12px; font-weight: 700; letter-spacing: 1px; fill: var(--violet); }
.plan-lien { fill: none; stroke: var(--violet); stroke-width: 1.6; stroke-dasharray: 5 4; }

/* ─────────────── 4. Garanties (section noire) ─────────────── */

.garanties { background: var(--nuit); color: var(--nuit-texte); padding: clamp(72px, 9vw, 112px) 0 clamp(72px, 9vw, 112px); }
.garanties .rubrique { color: var(--nuit-doux); border-bottom-color: #3A3A40; }
.garanties-tete h2 {
  font-family: var(--titre);
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.garanties-tete h2 span { display: block; }
.garanties-tete .voix2 { color: var(--nuit-encre); }

.assurances-titre { margin-top: clamp(56px, 8vw, 96px); font-family: var(--titre-ancien); font-style: italic; font-size: 1.5rem; color: var(--nuit-encre); }
.assurances { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px) clamp(16px, 2.4vw, 32px); margin-top: 20px; }
.assurance { border-top: 1px solid #3A3A40; padding-top: 22px; transition: border-color 0.25s ease; }
.assurance-objet > * { transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.2), box-shadow 0.35s ease; }
.assurance h3 { transition: color 0.25s ease; }
.assurance:hover { border-top-color: var(--violet); }
.assurance:hover .assurance-objet > * { transform: translateY(-8px) rotate(0deg) scale(1.04); box-shadow: 0 34px 50px -18px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(179, 162, 255, 0.35); }
.assurance:hover h3 { color: var(--nuit-encre); }
.assurance h3 { margin-top: 22px; font-family: var(--titre-ancien); font-weight: 500; font-size: clamp(1.35rem, 1.9vw, 1.6rem); line-height: 1.15; }
.assurance > p { margin-top: 10px; color: var(--nuit-doux); font-size: 1rem; line-height: 1.5; }

/* chaque assurance a son petit objet en papier, posé sur le fond noir */
.assurance-objet { height: 150px; display: grid; place-items: center; }
.enveloppe, .feuillet, .fiche-verifiee, .note-lue {
  position: relative;
  background: var(--papier-objet);
  color: #1A1714;
  border-radius: 2px;
  box-shadow: 0 24px 40px -18px rgba(0, 0, 0, 0.9);
}
.enveloppe { width: 190px; height: 118px; transform: rotate(-3deg); overflow: hidden; }
.enveloppe::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 62px; background: linear-gradient(to bottom right, transparent 49.5%, #E5DCC9 50%) left / 50% 100% no-repeat, linear-gradient(to bottom left, transparent 49.5%, #E5DCC9 50%) right / 50% 100% no-repeat; }
.enveloppe-adresse { position: absolute; left: 18px; bottom: 16px; font-family: var(--plume); font-size: 1.05rem; font-weight: 600; line-height: 1.1; color: var(--encre); }
.cachet { position: absolute; left: 50%; top: 46px; transform: translate(-50%, -50%); width: 34px; height: 34px; border-radius: 50%; background: var(--violet); color: #fff; display: grid; place-items: center; font-family: var(--titre); font-weight: 800; font-size: 0.875rem; box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.18), 0 2px 4px rgba(0, 0, 0, 0.3); }
.feuillet { width: 170px; height: 124px; padding: 22px 18px; transform: rotate(2deg); display: flex; flex-direction: column; gap: 12px; }
.feuillet-ligne { height: 2px; background: #D8CFBE; }
.feuillet-ligne--courte { width: 60%; }
.tampon-valide { position: absolute; right: 10px; bottom: 14px; padding: 4px 9px; border: 2.5px double var(--violet); color: var(--violet); font-weight: 700; font-size: 0.6875rem; letter-spacing: 0.06em; text-transform: uppercase; transform: rotate(-9deg); }
.fiche-verifiee { width: 190px; padding: 12px 14px; transform: rotate(-1.5deg); }
.fv-ligne { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid #D8CFBE; font-size: 0.8125rem; }
.fv-ligne:last-child { border-bottom: 0; }
.fv-ligne span { color: #6A6358; }
.fv-ligne b { font-family: var(--plume); font-size: 1.1rem; font-weight: 600; color: var(--encre); line-height: 1; }
.fv-ligne b::before { content: "✓ "; }
.note-lue { width: 190px; padding: 16px 16px 14px; transform: rotate(2.5deg); }
.note-lue-texte { display: block; font-family: var(--titre-ancien); font-style: italic; font-size: 1.05rem; }
.signature { display: block; margin-top: 12px; text-align: right; font-family: var(--plume); font-size: 1.35rem; font-weight: 600; color: var(--encre); }

/* zone réservée et porte-clé */
.etiquette-zone { width: 180px; padding: 16px 16px 14px 44px; transform: rotate(-2deg); background: var(--papier-objet); color: #1A1714; border-radius: 2px; box-shadow: 0 24px 40px -18px rgba(0, 0, 0, 0.9); position: relative; }
.ez-fanion { position: absolute; left: 16px; top: 14px; width: 2px; height: 34px; background: #1A1714; }
.ez-fanion::after { content: ""; position: absolute; left: 2px; top: 0; border-left: 18px solid var(--violet); border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.ez-texte { display: block; font-weight: 700; font-size: 0.8125rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--violet); }
.ez-sous { display: block; margin-top: 4px; font-family: var(--plume); font-size: 1.1rem; font-weight: 600; color: var(--encre); line-height: 1.1; }
.porte-cle { display: flex; align-items: center; gap: 10px; padding: 14px 18px; transform: rotate(3deg); background: var(--papier-objet); border-radius: 30px 6px 6px 30px; box-shadow: 0 24px 40px -18px rgba(0, 0, 0, 0.9); }
.pc-texte { font-family: var(--plume); font-size: 1.5rem; font-weight: 600; color: var(--encre); }

/* la garantie : le calendrier des 45 jours */
.garantie-corps { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; margin-top: clamp(40px, 6vw, 64px); }
.calendrier { background: var(--papier-objet); color: #1A1714; border-radius: 3px; padding: clamp(16px, 2.4vw, 26px); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9); transform: rotate(-0.6deg); }
.cal-entete { font-family: var(--titre-ancien); font-style: italic; font-size: 1.15rem; color: #6A6358; padding-bottom: 10px; border-bottom: 1px solid var(--filet-objet); }
.cal-grille { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 4px; margin-top: 12px; }
.calendrier[data-jours="30"] .cal-grille { grid-template-columns: repeat(10, minmax(0, 1fr)); }
.cal-jour { position: relative; aspect-ratio: 1 / 1.05; background: #FFFDF8; border: 1px solid #E3DACA; border-radius: 2px; padding: 3px 4px; font-size: 0.6875rem; color: #8A8172; }
.cal-jour--un { color: var(--encre); font-weight: 600; }
.cal-jour .rdv-tampon { position: absolute; inset: 22% 8% 14%; display: grid; place-items: center; border: 2px solid var(--violet); color: var(--violet); font-weight: 800; font-size: clamp(0.5rem, 0.8vw, 0.6875rem); letter-spacing: 0.04em; transform: rotate(-10deg) scale(1.6); opacity: 0; transition: opacity 0.12s ease, transform 0.3s cubic-bezier(0.3, 1.4, 0.5, 1); }
.cal-jour.tamponne .rdv-tampon { opacity: 1; transform: rotate(-10deg) scale(1); }
.cal-jour--45::after { content: ""; position: absolute; inset: -6px; border: 2px solid var(--encre); border-radius: 50%; clip-path: inset(0 100% 0 0); transition: clip-path 0.6s ease; }
.calendrier.fini .cal-jour--45::after { clip-path: inset(0 0 0 0); }
.cal-suite { display: flex; align-items: center; gap: 16px; margin-top: 10px; }
.cal-prolongation { flex: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; width: calc(44.4% - 2px); }
.cal-prolongation span { aspect-ratio: 1 / 1.05; border: 1.5px dashed #BDB29E; border-radius: 2px; padding: 3px 4px; font-size: 0.6875rem; color: #A89E8C; }
.cal-prolongation span:last-child { border: 0; display: grid; place-items: center; font-size: 1rem; }
.cal-main { font-family: var(--plume); font-size: 1.3rem; font-weight: 600; line-height: 1.1; color: var(--encre); }
.cal-main::before { content: "← "; }
.garantie-texte p { color: var(--nuit-doux); font-size: 1.125rem; }
.garantie-texte p strong { color: var(--nuit-texte); font-weight: 600; }
.garantie-texte .garantie-qualifie { margin-top: 18px; padding-left: 16px; border-left: 2px solid var(--violet); font-family: var(--titre-ancien); font-style: italic; font-size: 1.2rem; color: var(--nuit-texte); }

@media (max-width: 1023px) { .assurances { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; } .garantie-corps { grid-template-columns: 1fr; } }
@media (max-width: 599px) { .assurances { grid-template-columns: 1fr; } }

/* ─────────────── 4 bis. Le tri des réponses ─────────────── */

.tri { padding: clamp(64px, 8vw, 104px) 0; }
.tri-tete h2 {
  font-family: var(--titre);
  font-size: clamp(2.1rem, 4.4vw, 3.6rem);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.tri-tete h2 span { display: block; }
.tri-tete > p:last-child { margin-top: 18px; max-width: 34rem; color: var(--texte-doux); font-size: 1.125rem; }

.scene-tri {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr) minmax(0, 0.9fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
  margin-top: clamp(32px, 5vw, 56px);
}
/* le bac à courrier des réponses reçues */
.tri-bac { position: relative; background: #ECE6D8; border-radius: 4px; padding: 10px 12px 14px; box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.6), inset 0 -10px 18px -10px rgba(10, 10, 10, 0.25), 0 18px 30px -20px rgba(10, 10, 10, 0.45); }
.tri-bac::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 26px; border-radius: 0 0 4px 4px; background: linear-gradient(180deg, #DDD5C3, #CFC6B2); box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.5); pointer-events: none; z-index: 20; }
.tri-bac-titre { display: flex; justify-content: space-between; font-size: 0.8125rem; font-weight: 600; color: #6A6358; margin-bottom: 10px; }
.tri-bac-compte { font-family: var(--police); color: var(--texte); }
.tri-pile { position: relative; height: 136px; }
.reponse {
  position: absolute;
  inset: 0 0 auto 0;
  padding: 14px 16px;
  background: linear-gradient(180deg, #FFFFFC, #F8F5EC);
  border: 1px solid #E6E0D2;
  border-radius: 2px;
  box-shadow: 0 1px 1px rgba(10, 10, 10, 0.06), 0 14px 26px -14px rgba(10, 10, 10, 0.45);
  transform: translate(calc(var(--n, 0) * 3px), calc(var(--n, 0) * 4px)) rotate(var(--r, 0deg));
  font-size: 0.875rem;
  line-height: 1.35;
  height: 112px;
  overflow: hidden;
}
.reponse-de { font-weight: 700; }
.reponse-qui { color: var(--texte-doux); }
.reponse-texte { display: block; margin-top: 6px; font-family: var(--titre-ancien); font-style: italic; font-size: 1.05rem; color: var(--texte); }
.anim-prete .reponse { transition: transform 0.6s cubic-bezier(0.5, 0, 0.3, 1), opacity 0.35s ease 0.3s; }
.reponse.partie { opacity: 0; }
/* quand la pile est vide */
.tri-fin { position: absolute; inset: 0 0 18px; display: grid; place-items: center; font-family: var(--plume); font-size: 1.7rem; font-weight: 600; color: var(--encre); opacity: 0; transition: opacity 0.5s ease; }
.tri-fin.visible { opacity: 1; }

.tri-casiers { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.casier {
  position: relative;
  min-height: 150px;
  padding: 12px 10px;
  border-radius: 3px;
  background: var(--gris-clair);
  border: 1px solid var(--filet);
  box-shadow: inset 0 10px 18px -12px rgba(10, 10, 10, 0.25);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.casier-nom { font-size: 0.8125rem; font-weight: 600; line-height: 1.2; }
.casier-compte { font-family: var(--titre-ancien); font-weight: 500; font-size: 2.4rem; letter-spacing: -0.02em; line-height: 1; color: #B8B8BE; transition: color 0.3s ease; }
.casier.rempli .casier-compte { color: var(--texte); font-variant-numeric: lining-nums; }
.casier--interesse { background: #EFEBFF; border-color: #D9D0FF; }
.casier--interesse.rempli .casier-compte { color: var(--violet); }

.tri-agenda {
  background: var(--papier-objet);
  border-radius: 3px;
  padding: 14px 16px 18px;
  box-shadow: 0 1px 1px rgba(10, 10, 10, 0.06), 0 20px 34px -20px rgba(10, 10, 10, 0.4);
  min-height: 150px;
}
.tri-agenda-titre { font-family: var(--titre-ancien); font-style: italic; font-size: 1.1rem; color: #6A6358; border-bottom: 1px solid var(--filet-objet); padding-bottom: 6px; }
.tri-agenda .ligne-rdv { font-family: var(--plume); font-size: 1.25rem; font-weight: 600; line-height: 1.6; color: var(--encre); border-bottom: 1px solid rgba(216, 207, 190, 0.6); clip-path: inset(-20% 100% -20% 0); }
.anim-prete .tri-agenda .ligne-rdv { transition: clip-path 0.7s linear; }
.tri-agenda .ligne-rdv.ecrit { clip-path: inset(-20% -6% -20% 0); }

@media (max-width: 899px) {
  .scene-tri { grid-template-columns: 1fr; }
  .tri-pile { height: 130px; max-width: 360px; }
  .tri-casiers { gap: 6px; }
  .casier { min-height: 110px; padding: 8px 6px; }
  .casier-nom { font-size: 0.6875rem; }
  .casier-compte { font-size: 1.8rem; }
}

/* ─────────────── 5. Résultats ─────────────── */

.resultats { background: var(--gris-clair); padding: clamp(72px, 9vw, 112px) 0; }
.resultats-tete h2, .offre-tete h2 {
  font-family: var(--titre);
  font-size: clamp(2.1rem, 4.4vw, 3.6rem);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.resultats-tete h2 span, .offre-tete h2 span { display: block; }
.resultats-tete > p:last-child { margin-top: 16px; color: var(--texte-doux); font-size: 1.125rem; }
.lien-cas { display: inline-block; margin-top: 22px; font-weight: 600; color: var(--texte); text-decoration: underline; text-decoration-color: var(--violet); text-decoration-thickness: 1.5px; text-underline-offset: 5px; }
.lien-cas[aria-disabled="true"] { cursor: default; }
.dossiers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); margin-top: clamp(40px, 6vw, 64px); align-items: start; }
/* un dossier cartonné, avec son onglet */
.dossier-resultat { position: relative; background: #FFFFFF; border: 1px solid var(--filet); border-radius: 0 4px 4px 4px; padding: clamp(22px, 3vw, 34px); box-shadow: 0 24px 48px -32px rgba(10, 10, 10, 0.35); margin-top: 30px; }
.dossier-onglet { position: absolute; left: -1px; top: -31px; padding: 5px 16px 4px; background: #FFFFFF; border: 1px solid var(--filet); border-bottom: 0; border-radius: 6px 6px 0 0; font-weight: 700; font-size: 0.9375rem; }
.dossier-contexte { color: var(--texte-doux); font-size: 0.9375rem; }
.chiffres { display: flex; flex-wrap: wrap; gap: 20px 40px; margin-top: 22px; }
.chiffre b { display: block; font-family: var(--titre-ancien); font-weight: 500; font-size: clamp(2.6rem, 5vw, 4rem); letter-spacing: -0.02em; line-height: 0.95; }
.chiffre span { display: block; margin-top: 6px; font-size: 0.9375rem; color: var(--texte-doux); max-width: 16rem; }
.chiffre--fort b { color: var(--violet); font-style: italic; }
.chiffre .a-venir { color: #C9C9CF; }
.dossier-note { margin-top: 22px; font-family: var(--plume); font-size: 1.4rem; font-weight: 600; color: var(--encre); line-height: 1.1; }
.dossier-resultat--exemple { background: var(--papier-objet); border-color: var(--filet-objet); }
.dossier-resultat--exemple .dossier-onglet { background: var(--papier-objet); border-color: var(--filet-objet); }
.tampon-exemple { position: absolute; top: 18px; right: 18px; padding: 5px 11px; border: 2.5px double var(--violet); color: var(--violet); font-weight: 700; font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; transform: rotate(-6deg); }
.pieces { list-style: none; margin-top: 18px; display: grid; gap: 6px; }
.pieces li { padding: 8px 12px; border: 1px dashed #C9BFAC; border-radius: 2px; font-size: 0.9375rem; color: #6A6358; }
.dossier-resultat--exemple .a-fournir { margin-top: 18px; }

/* extrait de liste (noms masqués) */
.extrait-liste { width: 100%; margin-top: 24px; border-collapse: collapse; font-size: 0.875rem; color: #1A1714; }
.extrait-liste caption { text-align: left; font-family: var(--titre-ancien); font-style: italic; font-size: 1.05rem; color: #6A6358; padding-bottom: 8px; }
.extrait-liste th { text-align: left; font-weight: 600; font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; color: #6A6358; padding: 6px 10px 6px 0; border-bottom: 1px solid #C9BFAC; }
.extrait-liste td { padding: 8px 10px 8px 0; border-bottom: 1px solid var(--filet-objet); vertical-align: top; }
.extrait-liste td:first-child { font-weight: 600; white-space: nowrap; }
.extrait-liste th:last-child, .extrait-liste td:last-child { padding-right: 0; white-space: nowrap; text-align: right; }
@media (max-width: 560px) { .extrait-liste { font-size: 0.8125rem; } .extrait-liste td:first-child { white-space: normal; } .dossier-resultat .extrait-liste th, .dossier-resultat .extrait-liste td { padding-right: 8px; } }

/* ─────────────── 6. Offre ─────────────── */

.offre { padding: clamp(72px, 9vw, 112px) 0; }
.offre-corps { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; margin-top: clamp(40px, 6vw, 64px); }
/* l'objet : un ordre de mission sur papier ancien */
.ordre-mission { background: var(--papier-objet); color: #1A1714; border-radius: 3px; padding: clamp(22px, 3vw, 36px); box-shadow: 0 1px 2px rgba(10, 10, 10, 0.06), 0 30px 50px -30px rgba(10, 10, 10, 0.45); }
.om-entete { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-bottom: 12px; border-bottom: 2px solid #1A1714; }
.om-entete span { font-family: var(--titre-ancien); font-style: italic; font-size: 1.1rem; color: #6A6358; }
.om-entete b { font-family: var(--titre); font-weight: 800; font-size: clamp(1.4rem, 2.4vw, 2rem); letter-spacing: -0.03em; }
.om-lignes { list-style: none; }
.om-lignes li { display: grid; grid-template-columns: 26px 11rem 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--filet-objet); align-items: start; }
.om-lignes li::before { content: ""; width: 18px; height: 18px; margin-top: 2px; border: 1.5px solid #1A1714; border-radius: 2px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M3.5 9.5l3.5 3.5 7.5-8.5' fill='none' stroke='%237C5CFF' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }
.om-lignes b { font-weight: 700; }
.om-lignes span { color: #4A443B; }
.offre-cote { display: grid; gap: 20px; justify-items: start; padding-top: 8px; }
.offre-rythme { font-size: 1.1875rem; }
.offre-rythme b { font-weight: 700; }
.calcul { font-family: var(--plume); font-size: 1.6rem; font-weight: 600; line-height: 1.15; color: var(--encre); max-width: 20rem; }

@media (max-width: 899px) {
  .dossiers, .offre-corps { grid-template-columns: 1fr; }
  .om-lignes li { grid-template-columns: 26px 1fr; }
  .om-entete { flex-direction: column; align-items: flex-start; gap: 2px; }
  .om-lignes li span { grid-column: 2; }
}

/* ─────────────── 8. Qui pilote votre campagne ─────────────── */

.tom { padding: clamp(72px, 9vw, 112px) 0; }
.tom-corps { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
/* la photo, tirée sur papier et posée de travers */
.tom-photo { background: #FFFFFF; padding: 12px 12px 14px; border: 1px solid var(--filet); box-shadow: 0 30px 50px -28px rgba(10, 10, 10, 0.45); transform: rotate(-2deg); max-width: 420px; }
.tom-photo img { display: block; width: 100%; height: auto; }
.tom-photo figcaption { margin-top: 10px; font-family: var(--plume); font-size: 1.35rem; font-weight: 600; color: var(--encre); }
.tom-texte h2 {
  font-family: var(--titre);
  font-size: clamp(2.1rem, 4.4vw, 3.6rem);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.tom-texte h2 span { display: block; }
.tom-texte > p:not(.rubrique):not(.signature-tom) { margin-top: 20px; max-width: 36rem; color: var(--texte-doux); font-size: 1.125rem; }
.tom-contacts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 24px; font-weight: 500; }
.tom-contacts a { color: var(--texte); text-decoration: underline; text-decoration-color: var(--violet); text-underline-offset: 4px; }
.a-fournir-inline { color: var(--encre); border: 1px dashed var(--encre); padding: 1px 8px; border-radius: 3px; text-decoration: none !important; }
.signature-tom { margin-top: 22px; font-family: var(--plume); font-size: 2.6rem; font-weight: 600; color: var(--encre); line-height: 1; transform: rotate(-4deg); display: inline-block; }

@media (max-width: 899px) {
  .tom-corps { grid-template-columns: 1fr; }
  .tom-photo { max-width: 300px; }
}

/* ─────────────── 9. Questions ─────────────── */

.questions-section { background: var(--gris-clair); padding: clamp(72px, 9vw, 112px) 0; }
.questions-corps { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.questions-tete h2 {
  font-family: var(--titre);
  font-size: clamp(2.1rem, 4.4vw, 3.6rem);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.questions-tete h2 span { display: block; }
@media (min-width: 900px) { .questions-tete { position: sticky; top: 104px; } }
/* des fiches cartonnées, comme un fichier de bureau */
.fiches-faq { display: grid; gap: 10px; }
.faq { background: #FFFFFF; border: 1px solid var(--filet); border-radius: 3px; transition: box-shadow 0.2s ease, border-color 0.2s ease; }
.faq[open] { border-color: #D9D0FF; box-shadow: 0 18px 30px -24px rgba(10, 10, 10, 0.35); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; font-family: var(--titre-ancien); font-size: clamp(1.15rem, 1.6vw, 1.35rem); line-height: 1.25; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 14px; height: 14px; background: linear-gradient(var(--violet), var(--violet)) center / 14px 2px no-repeat, linear-gradient(var(--violet), var(--violet)) center / 2px 14px no-repeat; transition: transform 0.25s ease; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq summary:focus-visible { outline: 2px solid var(--violet); outline-offset: -2px; }
.faq p { padding: 0 20px 20px; color: var(--texte-doux); max-width: 40rem; }

/* ─────────────── 10. Dernier appel (section noire) ─────────────── */

.appel { background: var(--nuit); color: var(--nuit-texte); padding: clamp(72px, 9vw, 120px) 0; }
.appel-corps { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.appel-texte h2 {
  font-family: var(--titre);
  font-size: clamp(2.3rem, 5vw, 4.2rem);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.appel-texte h2 span { display: block; }
.appel-texte .voix2 { color: var(--nuit-encre); }
.appel-texte > p { margin-top: 22px; max-width: 32rem; color: var(--nuit-doux); font-size: 1.125rem; }
.appel-texte > p strong { color: var(--nuit-texte); font-weight: 600; }
.appel-texte .bouton { margin-top: 26px; }
/* la zone, avec son fanion : encore libre ? */
.appel-zone { margin-top: 36px; width: min(260px, 70%); }
.appel-zone svg { display: block; width: 100%; height: auto; overflow: visible; }

/* le formulaire : un bordereau sur papier */
.bordereau { background: var(--papier-objet); color: #1A1714; border-radius: 3px; padding: clamp(22px, 3vw, 32px); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9); display: grid; gap: 14px; }
.bordereau-titre { font-family: var(--titre-ancien); font-style: italic; font-size: 1.6rem; line-height: 1.1; }
.bordereau-sous { margin-top: -6px; color: #4A443B; }
.piege { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); opacity: 0; }
.champ { display: grid; gap: 4px; font-size: 0.8125rem; font-weight: 600; color: #6A6358; }
.champ em { font-weight: 400; font-style: normal; }
.champ input { font: inherit; font-size: 1.0625rem; font-weight: 500; color: #1A1714; background: transparent; border: 0; border-bottom: 1.5px solid #BDB29E; padding: 6px 2px 7px; border-radius: 0; }
.champ input:focus { outline: none; border-bottom-color: var(--violet); }
.champ input:user-invalid { border-bottom-color: #B4542D; }
.bordereau-envoi { margin-top: 6px; justify-self: start; }
.bordereau-envoi:disabled { opacity: 0.6; cursor: default; }
.bordereau-etat { font-family: var(--plume); font-size: 1.3rem; font-weight: 600; color: var(--encre); min-height: 1.4em; }

@media (max-width: 899px) {
  .questions-corps, .appel-corps { grid-template-columns: 1fr; }
  .bordereau { transform: none; }
}

/* ─────────────── Pages de cas ─────────────── */

.retour { font-weight: 600; color: var(--texte) !important; }
.cas-tete { padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(48px, 7vw, 80px); }
.cas-tete h1, .legal h1, .cas-appel h2 {
  font-family: var(--titre);
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.cas-tete h1 span, .legal h1 span, .cas-appel h2 span { display: block; }
.cas-tete h1 .voix2, .legal h1 .voix2 { margin-top: 0.14em; }
.cas-contexte { margin-top: 18px; color: var(--texte-doux); font-size: 1.0625rem; }
.cas-chiffres { display: flex; flex-wrap: wrap; gap: 24px 56px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--filet); }
.cas-bloc { padding: clamp(48px, 6vw, 80px) 0; }
.cas-bloc.conteneur { padding-left: var(--marge); padding-right: var(--marge); }
.cas-bloc--gris { background: var(--gris-clair); }
.cas-h2 { font-family: var(--titre-ancien); font-weight: 500; font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1.1; margin-bottom: 22px; }
.cas-etapes { list-style: none; display: grid; gap: 14px; }
.cas-etape { display: grid; grid-template-columns: 3rem 1fr; gap: 16px; background: #FFFFFF; border: 1px solid var(--filet); border-radius: 3px; padding: 20px 22px; }
.cas-etape-num { font-family: var(--titre-ancien); font-style: italic; font-size: 1.6rem; color: var(--encre); line-height: 1; }
.cas-etape h3 { font-family: var(--titre-ancien); font-weight: 500; font-size: 1.3rem; line-height: 1.2; }
.cas-etape p { margin-top: 8px; color: var(--texte-doux); }
.cas-etape .a-fournir { margin-top: 10px; padding: 10px 14px; }
.cas-pieces { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.cas-piece { background: var(--papier-objet); border-radius: 3px; padding: 18px; box-shadow: 0 20px 34px -24px rgba(10, 10, 10, 0.4); display: grid; gap: 14px; align-content: start; }
.cas-piece figcaption { font-family: var(--titre-ancien); font-style: italic; font-size: 1.15rem; color: #6A6358; }
.liste-floue p { display: grid; grid-template-columns: 1.6fr 1fr 0.6fr; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--filet-objet); font-size: 0.8125rem; color: #4A443B; }
.liste-floue p span:first-child { filter: blur(2.5px); }
.cas-appel { background: var(--nuit); color: var(--nuit-texte); padding: clamp(64px, 8vw, 104px) 0; }
.cas-appel-corps { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px; }
.cas-appel .voix2 { color: var(--nuit-encre); margin-top: 0.14em; }
@media (max-width: 899px) { .cas-pieces { grid-template-columns: 1fr; } }

.cas-texte { max-width: 44rem; font-size: 1.125rem; color: #3A3A40; }
.cas-precision { margin-top: 18px; max-width: 44rem; font-size: 0.9375rem; color: var(--texte-doux); font-style: italic; }
.dossier-precision { margin-top: 14px; font-size: 0.875rem; color: var(--texte-doux); font-style: italic; }
.lien-cas--inline { margin-top: 0; }
.cas-lecons { display: grid; gap: 14px; max-width: 46rem; padding-left: 22px; font-size: 1.0625rem; color: #3A3A40; }
.cas-lecons b { color: var(--texte); }
.extrait-message { margin-top: 18px; background: var(--papier-objet); border-radius: 3px; padding: 18px 20px; max-width: 38rem; box-shadow: 0 14px 26px -20px rgba(10, 10, 10, 0.4); }
.extrait-message figcaption { font-family: var(--titre-ancien); font-style: italic; color: #6A6358; margin-bottom: 10px; }
.em-objet { padding-bottom: 10px; border-bottom: 1px solid var(--filet-objet); font-weight: 600; color: #1A1714; }
.em-objet span { font-weight: 400; color: #6A6358; margin-right: 8px; }
.em-corps { padding-top: 10px; font-size: 0.9375rem; color: #1A1714; }
.em-corps p { margin-top: 8px; color: #1A1714 !important; }
.em-corps ul { margin: 8px 0 0 18px; }
.em-corps li { margin-top: 3px; }
.em-corps .em-desinscription { margin-top: 14px; font-size: 0.8125rem; color: #6A6358 !important; }

/* pages de cas, version enrichie */
.cas-tete { padding-bottom: clamp(32px, 5vw, 56px); }
.cas-bande { background: var(--nuit); color: var(--nuit-texte); padding: clamp(40px, 6vw, 72px) 0; }
.cas-bande-corps { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.cas-bande .cas-chiffres { margin-top: 0; padding-top: 0; border-top: 0; }
/* sans visuel à côté, les chiffres prennent toute la largeur */
.cas-bande-corps > div:only-child { grid-column: 1 / -1; }
.cas-bande .chiffre span { color: var(--nuit-doux); }
.cas-bande .chiffre--fort b { color: var(--nuit-encre); }
.cas-bande .chiffre .a-venir { color: #4A4A50; }
.cas-bande .cas-precision { color: var(--nuit-doux); }
/* 100 cases : la part des prospects inscrits */
.cent-grille { display: grid; grid-template-columns: repeat(20, 1fr); gap: 5px; }
.cent-grille i { aspect-ratio: 1; border-radius: 2px; background: #26262B; }
.cent-grille i.plein { background: var(--violet); }
.cent-grille i.demi { background: linear-gradient(90deg, var(--violet) 50%, #26262B 50%); }
.cent figcaption { margin-top: 12px; font-family: var(--plume); font-size: 1.35rem; font-weight: 600; color: var(--nuit-encre); }

.cas-h2 .voix2, .cas-frise-titre .voix2 { display: block; font-size: 1em; color: var(--encre); }
.cas-frise { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (min-width: 900px) { .cas-frise-titre { position: sticky; top: 104px; } }
/* les étapes : une frise reliée par un trait */
.cas-etapes { position: relative; gap: 0; }
.cas-etapes::before { content: ""; position: absolute; left: 1.1rem; top: 12px; bottom: 12px; width: 2px; background: #DADAE0; }
.cas-etape { position: relative; grid-template-columns: 2.4rem 1fr; gap: 20px; background: transparent; border: 0; padding: 0 0 34px; }
.cas-etape-num { position: relative; z-index: 1; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--gris-clair); border: 2px solid var(--violet); font-size: 1.05rem; }
.cas-etape:last-child .cas-etape-num { background: var(--violet); color: #fff; }
.cas-etape h3 { font-size: 1.5rem; padding-top: 4px; }
.extrait-message { transform: rotate(-0.8deg); margin-top: 22px; }

.cas-retient .cas-h2 { margin-bottom: 28px; }
.cas-lecons { list-style: none; counter-reset: lecon; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; max-width: none; padding-left: 0; }
.cas-lecons li { counter-increment: lecon; background: var(--gris-clair); border-radius: 3px; padding: 22px 22px 24px; border-top: 3px solid var(--violet); }
.cas-lecons li::before { font-style: italic; content: counter(lecon); display: block; font-family: var(--titre-ancien); font-weight: 500; font-size: 2.4rem; letter-spacing: -0.02em; line-height: 1; color: var(--violet); margin-bottom: 12px; }
.cas-lecons b { display: block; font-family: var(--titre-ancien); font-weight: 500; font-size: 1.25rem; line-height: 1.2; margin-bottom: 8px; }
.cas-lecons span { color: var(--texte-doux); font-size: 1rem; }

@media (max-width: 899px) {
  .cas-bande-corps, .cas-frise, .cas-lecons { grid-template-columns: 1fr; }
}

/* ─────────────── Pages légales ─────────────── */

.legal { padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(64px, 8vw, 104px); max-width: 860px; }
.legal-maj { margin-top: 16px; color: var(--texte-doux); font-size: 0.9375rem; }
.legal h2 { margin-top: 40px; font-family: var(--titre-ancien); font-weight: 500; font-size: 1.5rem; line-height: 1.2; padding-bottom: 8px; border-bottom: 1px solid var(--filet); }
.legal p, .legal ul { margin-top: 14px; color: #3A3A40; max-width: 44rem; }
.legal ul { padding-left: 20px; }
.legal li { margin-top: 4px; }
.legal a { color: var(--texte); text-decoration: underline; text-decoration-color: var(--violet); text-underline-offset: 4px; }

/* les pages courtes gardent le pied de page en bas de l'écran */
body { min-height: 100vh; display: flex; flex-direction: column; }
body > main { flex: 1; }

/* ─────────────── Page 404 ─────────────── */

.page-404 { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(32px, 6vw, 88px); align-items: center; padding-top: clamp(56px, 9vw, 120px); padding-bottom: clamp(64px, 9vw, 120px); }
.page-404 h1 { font-family: var(--titre); font-size: clamp(2.2rem, 5vw, 4.2rem); line-height: 1; font-weight: 800; letter-spacing: -0.04em; }
.page-404 h1 span { display: block; }
.p404-texte > p:not(.rubrique) { margin-top: 20px; color: var(--texte-doux); font-size: 1.125rem; }
.p404-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 28px !important; }
.p404-page { background: var(--papier-objet); border-radius: 3px; padding: 24px 26px 30px; transform: rotate(2deg); box-shadow: 0 30px 50px -28px rgba(10, 10, 10, 0.45); max-width: 340px; }
.p404-jour { font-family: var(--titre-ancien); font-style: italic; font-size: 1.4rem; color: #6A6358; padding-bottom: 10px; border-bottom: 1px solid var(--filet-objet); }
.p404-lignes span { display: block; height: 34px; border-bottom: 1px solid rgba(216, 207, 190, 0.7); }
.p404-main { margin-top: 18px; font-family: var(--plume); font-size: 1.8rem; font-weight: 600; color: var(--encre); transform: rotate(-3deg); }
@media (max-width: 899px) { .page-404 { grid-template-columns: 1fr; } }

/* ─────────────── Pied de page ─────────────── */

.pied { background: var(--nuit); color: var(--nuit-doux); border-top: 1px solid #2A2A2E; padding: 28px 0 36px; font-size: 0.875rem; }
.pied-corps { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.pied-marque { display: inline-flex; align-items: center; gap: 8px; color: var(--nuit-texte); font-weight: 600; font-size: 1rem; }
.pied-infos, .pied-legal { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 20px; }
.pied a { color: var(--nuit-texte); text-decoration: underline; text-decoration-color: #3A3A40; text-underline-offset: 4px; }
.pied a:hover { text-decoration-color: var(--violet); }
.pied .a-fournir-inline { color: var(--nuit-encre); border-color: var(--nuit-encre); }

/* ─────────────── Moins d'animations ─────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* exemple de campagne : répartitions, extrait, fiche de rendez-vous */
.repartition figcaption { font-family: var(--titre-ancien); font-style: italic; font-size: 1.2rem; margin-bottom: 14px; }
.repartition ul { list-style: none; display: grid; gap: 9px; }
.repartition li { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) 2.6rem; gap: 12px; align-items: center; font-size: 0.875rem; }
.repartition li i { display: block; height: 8px; border-radius: 2px; background: linear-gradient(90deg, var(--violet) var(--part), #26262B var(--part)); }
.repartition li b { font-family: var(--titre-ancien); font-weight: 500; font-size: 1.15rem; text-align: right; }
.cas-bande .repartition span { color: var(--nuit-doux); }
.repartition--clair { background: #FFFFFF; border: 1px solid var(--filet); border-radius: 3px; padding: 22px; }
.repartition--clair li i { background: linear-gradient(90deg, var(--violet) var(--part), var(--gris-clair) var(--part)); }
.repartition--clair span { color: #3A3A40; }
.repartition-note { margin-top: 12px; font-size: 0.875rem; color: var(--texte-doux); }
.cas-tableaux { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.cas-pieces--exemple { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cas-piece--large { grid-column: 1 / -1; }
.extrait-defile { overflow-x: auto; }
.extrait-defile .extrait-liste { margin-top: 0; min-width: 34rem; }
.cas-legende { font-size: 0.875rem; color: #6A6358; font-style: italic; }
.fiche-titre { font-weight: 600; color: #1A1714; padding-bottom: 10px; border-bottom: 1px solid var(--filet-objet); }
.fiche { display: grid; gap: 4px; font-size: 0.9375rem; color: #1A1714; }
.fiche dt { font-weight: 600; margin-top: 8px; }
.fiche dt:first-child { margin-top: 0; }
@media (max-width: 899px) { .cas-tableaux, .cas-pieces--exemple { grid-template-columns: 1fr; } }

/* Deux formules (Démarrage / Carnet Plein, 19/11) */
.offres-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); align-items: stretch; margin-top: clamp(40px, 6vw, 64px); }
.offres-duo .ordre-mission { display: flex; flex-direction: column; }
.offres-duo .om-lignes li { grid-template-columns: 26px 1fr; gap: 4px 12px; }
.offres-duo .om-lignes li span { grid-column: 2; }
.om-pour { margin: 14px 0 4px; font-size: 1.0625rem; color: #4A443B; }
.om-garantie { margin-top: auto; padding-top: 18px; display: grid; gap: 2px; }
.om-garantie b { font-family: var(--titre); font-weight: 800; font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--violet); }
.om-garantie span { font-weight: 700; font-size: 1.125rem; line-height: 1.3; }
.om-rythme { margin-top: 10px; font-size: 0.9375rem; color: #6A6358; }
.om-plein { border-top: 4px solid var(--violet); }
.offre-pied { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; margin-top: clamp(28px, 4vw, 44px); }
@media (max-width: 899px) {
  .offres-duo { grid-template-columns: 1fr; }
  .offre-pied { flex-direction: column; align-items: flex-start; }
}
