/* ==========================================================================
   INSTITUT BALZAC — Design system "Le cabinet éditorial"
   Encre bleu nuit · papier chaud · filets laiton · dossier d'étude
   ========================================================================== */

/* --------------------------------------------------------------------------
   Polices auto-hébergées (fontes variables, sous-ensemble latin).
   Aucune requête vers Google Fonts : conformité RGPD.
   -------------------------------------------------------------------------- */

@font-face {
  font-family: "Spectral";
  src: url("../assets/fonts/spectral-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Spectral";
  src: url("../assets/fonts/spectral-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Spectral";
  src: url("../assets/fonts/spectral-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Archivo";
  src: url("../assets/fonts/archivo-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   Palette — dérivée des gravures, pas d'un nuancier.
   Les gravures sépia vivent à teinte 30°, saturation 20-38 % (mesuré sur les
   fichiers). L'ancien papier crème #FAF7F0 occupait la même bande chaude :
   image et fond avaient la même température, donc rien ne se détachait.
   L'ardoise quitte cette bande (teinte ~210°) et fait ressortir les gravures ;
   le laiton et le champagne sont échantillonnés DANS le frontispice.
   Chaque paire texte/fond est vérifiée >= 4.5:1 (AA).
   -------------------------------------------------------------------------- */

:root {
  /* Ardoise */
  --ink-950: #101822;
  --ink-900: #16202B;
  --ink-800: #1E2A38;
  --ink-700: #41505F;
  --ink-100: #D3D8DD;

  /* Papier — ivoire froid, volontairement pas crème */
  --paper: #E9E7E1;
  --paper-deep: #DFDDD6;
  --white: #F5F4F0;

  /* Laiton & champagne — échantillonnés dans assets/gravures/frontispice.webp */
  --laiton: #907860;
  --laiton-text: #6B5334;
  --champagne: #D8C0A8;

  /* Survol des CTA : laiton profond (l'outremer ne tient pas sur l'ardoise) */
  --outremer: #6B5334;
  --outremer-dark: #55411F;

  --sauge: #3D6356;
  --sauge-bg: #E2E6E1;
  --line: rgba(22, 32, 43, 0.16);
  --line-ink: rgba(233, 231, 225, 0.16);

  /* Typographie */
  --font-display: "Spectral", Georgia, serif;
  --font-body: "Archivo", "Segoe UI", Arial, sans-serif;

  /* Rythme — échelle volontairement irrégulière : le pas entre 5 et 7
     crée la respiration qui manquait quand toutes les sections avaient
     le même padding. */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6.5rem;
  --space-7: 9.5rem;
  --container: 1180px;
  --container-narrow: 720px;
  --radius: 2px;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink-900);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  /* Les numéros officiels (SIRET, RNCP, certificat) et le tableau qui-fait-quoi
     s'alignent en colonne. */
  font-variant-numeric: tabular-nums;
}

/* Spectral est plus etroit et plus contraste qu'EB Garamond : il supporte un
   interlignage plus serre et demande un tracking negatif des les grandes
   tailles, sinon les capitales se detachent les unes des autres. */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  margin: 0 0 var(--space-2);
  color: var(--ink-900);
  letter-spacing: -0.021em;
  text-wrap: balance;
}

h3, h4 {
  line-height: 1.2;
  letter-spacing: -0.012em;
}

p {
  margin: 0 0 var(--space-2);
}

a {
  color: var(--outremer);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

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

::selection {
  background: var(--ink-800);
  color: var(--paper);
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink-900);
  color: var(--white);
  padding: 0.6rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 0;
}

/* --------------------------------------------------------------------------
   Typographie éditoriale
   -------------------------------------------------------------------------- */

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--laiton-text);
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 0 0 var(--space-2);
}

.eyebrow::before {
  content: "";
  width: 2.2rem;
  height: 1px;
  background: var(--laiton);
  flex: none;
}

.eyebrow--center {
  justify-content: center;
}

.eyebrow--center::after {
  content: "";
  width: 2.2rem;
  height: 1px;
  background: var(--laiton);
  flex: none;
}

.on-ink .eyebrow {
  color: var(--champagne);
}

.section-title {
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
  max-width: 22ch;
}

.section-title--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.lead {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--ink-700);
  max-width: 58ch;
}

.small {
  font-size: 0.875rem;
}

.footnote {
  font-size: 0.875rem;
  color: var(--ink-700);
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
  max-width: 70ch;
}

.footnote::before {
  content: "✦";
  color: var(--laiton);
  font-size: 0.75rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.85rem 1.7rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  touch-action: manipulation;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn svg {
  width: 1.05em;
  height: 1.05em;
  flex: none;
  transition: transform 0.2s ease;
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn--primary {
  background: var(--ink-800);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--outremer);
}

.btn--ghost {
  background: transparent;
  color: var(--ink-800);
  border-color: var(--ink-800);
}

.btn--ghost:hover {
  background: var(--ink-800);
  color: var(--white);
}

.on-ink .btn--primary {
  background: var(--paper);
  color: var(--ink-900);
}

.on-ink .btn--primary:hover {
  background: var(--white);
}

.on-ink .btn--ghost {
  color: var(--paper);
  border-color: rgba(233, 231, 225, 0.45);
}

.on-ink .btn--ghost:hover {
  background: rgba(233, 231, 225, 0.12);
  color: var(--white);
}

.btn--lg {
  font-size: 1.08rem;
  padding: 1rem 2.1rem;
}

.btn--xl {
  font-size: 1.2rem;
  padding: 1.25rem 3rem;
  letter-spacing: 0.01em;
}

@media (max-width: 480px) {
  .btn--xl {
    width: 100%;
    padding: 1.15rem 1.5rem;
    font-size: 1.08rem;
  }
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(233, 231, 225, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s ease;
}

.header.is-scrolled {
  box-shadow: 0 6px 24px rgba(22, 32, 43, 0.10);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  margin-right: auto;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 46px;
  height: auto;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--ink-900);
  line-height: 1.1;
}

.brand__tag {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--laiton-text);
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.7rem;
}

.nav a {
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--ink-800);
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
  touch-action: manipulation;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav a:hover {
  text-decoration: none;
  color: var(--ink-900);
  border-bottom-color: var(--line);
}

.nav a[aria-current="page"] {
  border-bottom-color: var(--laiton);
  color: var(--ink-900);
}

.nav .btn {
  padding: 0.65rem 1.25rem;
  font-size: 0.95rem;
}

/* Le bouton de nav ne doit pas hériter des couleurs des liens de nav
   (.nav a est plus spécifique que .btn--primary). */
.nav a.btn--primary,
.nav a.btn--primary:hover,
.nav a.btn--primary[aria-current="page"] {
  color: var(--white);
  border: 1px solid transparent;
}

.nav a.btn--primary:hover {
  background: var(--outremer);
}

/* Le libellé disparaît sous 1180 px : la cible tactile doit rester atteignable,
   sinon il ne reste qu'une icône de 16 px (WCAG 2.5.5). */
.header__phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-width: 44px;
  min-height: 44px;
  font-weight: 600;
  color: var(--ink-800);
  font-size: 0.98rem;
}

.header__phone svg {
  width: 1em;
  height: 1em;
  color: var(--laiton-text);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.5rem 0.6rem;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink-900);
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
  display: block;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  padding: var(--space-6) 0 var(--space-5);
  position: relative;
  overflow: hidden;
}

.hero::after {
  /* filet éditorial vertical discret */
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: linear-gradient(var(--line), transparent);
  opacity: 0.6;
  pointer-events: none;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: var(--space-5);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(2.7rem, 5.4vw, 4.3rem);
  margin-bottom: var(--space-3);
}

.hero h1 em {
  font-style: italic;
  color: var(--ink-700);
}

.hero .lead {
  margin-bottom: var(--space-3);
}

.hero .lead strong {
  color: var(--ink-900);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

/* Hero vitrine centré */

/* Héros asymétrique.
   L'ancien héros était centré, pleine largeur, comme toutes les autres
   sections : c'est la signature « page générée ». Le contenu occupe désormais
   les 7 premières colonnes d'une grille de 12 et le titre déborde
   volontairement dans la marge droite aux grandes largeurs. Les classes
   --center du HTML sont neutralisées ici : aucun mot n'a bougé. */
.hero--center {
  text-align: left;
  padding: var(--space-7) 0 var(--space-6);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
}

.hero--center::after {
  display: none;
}

.hero--center > .container {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0 var(--space-3);
}

.hero--center > .container > * {
  grid-column: 1 / span 7;
}

.hero--center h1 {
  max-width: 15ch;
  margin-left: 0;
  margin-right: 0;
  text-wrap: balance;
}

.hero--center .lead {
  margin-left: 0;
  margin-right: 0;
  max-width: 46ch;
}

/* L'ornement symétrique du filet d'eyebrow n'a plus de sens hors centrage. */
.hero--center .eyebrow--center {
  justify-content: flex-start;
}

.hero--center .eyebrow--center::after {
  display: none;
}

.hero__actions--center {
  justify-content: flex-start;
  margin-bottom: 0;
}

.hero--center .hero__actions--center {
  margin-top: var(--space-4);
}

@media (max-width: 900px) {
  .hero--center {
    padding: var(--space-5) 0 var(--space-4);
  }

  .hero--center > .container > * {
    grid-column: 1 / -1;
  }

  .hero--center h1 {
    max-width: 18ch;
  }
}

/* --------------------------------------------------------------------------
   Le dossier — élément signature
   -------------------------------------------------------------------------- */

.dossier {
  background: var(--white);
  border: 1px solid var(--ink-800);
  outline: 1px solid var(--line);
  outline-offset: 5px;
  padding: var(--space-3) var(--space-3) var(--space-2);
  position: relative;
  box-shadow: 0 24px 60px -30px rgba(22, 32, 43, 0.30);
}

.dossier__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.4rem var(--space-2);
  border-bottom: 2px solid var(--ink-800);
  padding-bottom: 0.7rem;
  margin-bottom: 0.4rem;
}

.dossier__title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-900);
}

.dossier__ref {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--laiton-text);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Planches gravées — identité visuelle
   -------------------------------------------------------------------------- */

.plate {
  background: var(--white);
  border: 1px solid var(--ink-800);
  outline: 1px solid var(--line);
  outline-offset: 5px;
  padding: 10px;
}

.plate img {
  display: block;
  width: 100%;
  height: auto;
}

.plate__caption {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--laiton-text);
  text-align: center;
  margin: 0.75rem 0 0.05rem;
}

/* Bande d'image pleine largeur — le moment visuel du site */

.band {
  margin: 0;
  border-top: 1px solid var(--line);
}

/* Le filet du bas appartient à l'image, pas à la <figure> : la légende doit
   rester en dehors du cadre gravé. */
.band__img {
  display: block;
  width: 100%;
  height: auto;
  border-bottom: 1px solid var(--line);
}

.band__caption {
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--laiton-text);
  /* auto, et non 0 : la légende porte aussi .container, dont le centrage
     serait annulé par un margin nul déclaré plus bas dans la feuille. */
  margin: 0 auto;
  padding: 1.1rem var(--space-3) 0;
}

@media (max-width: 640px) {
  .band__img {
    height: 210px;
    object-fit: cover;
    object-position: 22% center;
  }
}

/* Trois piliers — l'essentiel, sans arguments empilés */

.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
}

/* Trois piliers décalés.
   Trois cartes identiques, centrées, avec une icône en rond au-dessus : c'est
   le motif que le brief interdit explicitement. Ils deviennent trois colonnes
   alignées à gauche, ouvertes par un filet de laiton et décalées
   verticalement — l'oeil descend en escalier au lieu de balayer une rangée. */
.pillar {
  text-align: left;
  padding-top: var(--space-3);
  border-top: 1px solid var(--laiton);
}

.pillar:nth-child(2) {
  margin-top: var(--space-5);
}

.pillar:nth-child(3) {
  margin-top: calc(var(--space-5) * 2);
}

.pillar__icon {
  width: 1.75rem;
  height: 1.75rem;
  margin: 0 0 var(--space-2);
  border: none;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--laiton-text);
  background: none;
}

.pillar__icon svg {
  width: 100%;
  height: 100%;
}

.pillar h3 {
  font-size: 1.45rem;
  margin-bottom: 0.4rem;
}

.pillar p {
  margin: 0;
  max-width: 32ch;
  color: var(--ink-700);
  font-size: 1rem;
}

@media (max-width: 820px) {
  .pillars {
    grid-template-columns: 1fr;
    gap: var(--space-4);
    max-width: 420px;
    margin: 0 auto;
  }

  /* Empilés, les décalages n'ont plus de sens et creuseraient des trous. */
  .pillar:nth-child(2),
  .pillar:nth-child(3) {
    margin-top: 0;
  }
}

.hero__plate {
  align-self: center;
  margin: 0;
}

/* Filigranes gravés sur fonds encre (l'image reste native, fondue au dégradé) */

.ink-watermark {
  position: relative;
}

.ink-watermark .container {
  position: relative;
  z-index: 1;
}

.ink-watermark::before {
  content: "";
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  opacity: 0.5;
  pointer-events: none;
}

.ink-watermark--laurier::before {
  background-image: linear-gradient(90deg, rgba(22, 32, 43, 0.25) 0%, rgba(22, 32, 43, 0.96) 55%), url("../assets/gravures/laurier.webp");
  background-size: cover, auto 120%;
  background-position: center, left center;
}

.ink-watermark--sceau::before {
  background-image: linear-gradient(270deg, rgba(22, 32, 43, 0.25) 0%, rgba(22, 32, 43, 0.96) 55%), url("../assets/gravures/sceau.webp");
  background-size: cover, auto 120%;
  background-position: center, right center;
}

@media (max-width: 820px) {
  .ink-watermark::before {
    opacity: 0.3;
  }
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section {
  padding: var(--space-6) 0;
}

.section--white {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section--ink {
  background: var(--ink-900);
  color: var(--ink-100);
}

.section--ink h2,
.section--ink h3 {
  color: var(--white);
}

.section__head {
  max-width: 720px;
  margin-bottom: var(--space-4);
}

.section__head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section__head .lead {
  margin-bottom: 0;
}

.section--ink .lead {
  color: var(--ink-100);
}

/* Barre de réassurance */

/* Bande de mention légale, pas décor : sur ardoise, elle sépare le frontispice
   du corps de page et donne le premier changement de fond de la page. */
.trustbar {
  border-top: none;
  background: var(--ink-800);
}

.trustbar__item + .trustbar__item {
  border-left: 1px solid var(--line-ink);
  padding-left: var(--space-3);
}

@media (max-width: 820px) {
  .trustbar__item + .trustbar__item {
    border-left: none;
    padding-left: 0;
  }
}

.trustbar__inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  padding: var(--space-3) 0;
}

/* Bandeau de preuve — sur ardoise. Ces règles doivent rester APRÈS le bloc
   `.trustbar` ci-dessus : déclarées avant, elles étaient écrasées par
   l'ancienne version claire et le texte foncé se retrouvait sur fond foncé. */

.trustbar__item {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  font-size: 0.92rem;
  line-height: 1.4;
  color: var(--ink-100);
}

.trustbar__item svg {
  width: 1.35rem;
  height: 1.35rem;
  flex: none;
  color: var(--champagne);
  margin-top: 0.1rem;
}

.trustbar__item strong {
  display: block;
  font-family: var(--font-display);
  color: var(--white);
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

/* Grilles de cartes */

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

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

.card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: var(--space-3);
}

.card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.card p {
  margin-bottom: 0;
  color: var(--ink-700);
  font-size: 0.98rem;
}

.card__icon {
  width: 2rem;
  height: 2rem;
  color: var(--laiton-text);
  margin-bottom: var(--space-2);
}

.card__icon svg {
  width: 100%;
  height: 100%;
}

/* Cas (parcours 1 / 2) */

.case {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--ink-800);
  padding: var(--space-3);
}

.case__kicker {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--laiton-text);
  margin-bottom: 0.6rem;
}

.case h3 {
  font-size: 1.5rem;
  margin-bottom: var(--space-2);
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 1.3rem 3rem;
}

.steps li:last-child {
  padding-bottom: 0;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.05rem;
  width: 1.9rem;
  height: 1.9rem;
  border: 1px solid var(--laiton);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--laiton-text);
  background: var(--paper);
}

.steps li::after {
  content: "";
  position: absolute;
  left: 0.95rem;
  top: 2.15rem;
  bottom: 0.15rem;
  width: 1px;
  background: var(--line);
}

.steps li:last-child::after {
  display: none;
}

.steps strong {
  display: block;
  font-size: 1.05rem;
  color: var(--ink-900);
}

.steps span {
  color: var(--ink-700);
  font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   Repères sur fond encre
   -------------------------------------------------------------------------- */

.sanctions {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--line-ink);
  border: 1px solid var(--line-ink);
  margin: var(--space-4) 0 var(--space-3);
}

.sanctions--trio {
  grid-template-columns: repeat(3, 1fr);
}

.sanctions__item {
  background: var(--ink-900);
  padding: 1.4rem 1.2rem;
  text-align: center;
}

.sanctions__value {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--white);
  display: block;
  line-height: 1.15;
}

.sanctions__label {
  font-size: 0.85rem;
  color: var(--ink-100);
  display: block;
  margin-top: 0.3rem;
}

.section--ink .footnote {
  color: var(--ink-100);
  opacity: 0.85;
}

/* Bandeau de conviction — voix de la maison, en guillemets français */

.conviction {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}

.conviction blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  line-height: 1.4;
  color: var(--white);
}

.conviction blockquote .guillemet {
  color: var(--laiton);
  font-style: normal;
}

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

.faq {
  max-width: 780px;
  margin: 0 auto;
}

.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  margin-bottom: 0.7rem;
}

.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2);
  padding: 1.1rem 1.4rem;
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 600;
  color: var(--ink-900);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary {
  touch-action: manipulation;
  transition: background-color 0.2s ease;
}

.faq summary:hover {
  background: var(--paper);
}

.faq summary::after {
  content: "+";
  font-family: var(--font-body);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--laiton-text);
  transition: transform 0.25s ease;
  flex: none;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details > div {
  padding: 0 1.4rem 1.2rem;
  color: var(--ink-700);
}

.faq details > div p:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   CTA final / contact
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   Formulaire (page étude)
   -------------------------------------------------------------------------- */

.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: var(--space-5);
  align-items: start;
}

.form-dossier {
  background: var(--white);
  border: 1px solid var(--ink-800);
  outline: 1px solid var(--line);
  outline-offset: 5px;
  padding: var(--space-4);
}

/* Fiche JotForm intégrée. L'iframe est cross-origin : son thème interne se
   règle dans le Form Designer JotForm, pas depuis cette feuille. */

.jf-embed iframe {
  max-width: 100%;
}

/* Aside "ce qui se passe ensuite" */

.aside-next {
  position: sticky;
  top: 110px;
}

.aside-next .steps {
  margin: var(--space-3) 0;
}

/* --------------------------------------------------------------------------
   Barre CTA mobile (pages de lecture uniquement, jamais sur le formulaire)
   -------------------------------------------------------------------------- */

.mobile-cta {
  display: none;
}

@media (max-width: 820px) {
  .mobile-cta {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 45;
    padding: 0.7rem var(--space-3) calc(0.7rem + env(safe-area-inset-bottom));
    background: rgba(233, 231, 225, 0.94);
    backdrop-filter: blur(8px);
    border-top: 1px solid var(--line);
  }

  .mobile-cta .btn {
    width: 100%;
  }

  /* La réserve est prise DANS le pied de page, pas après lui : un
     padding sur <body> laissait apparaître un liseré de papier clair
     entre le pied de page encre et la barre fixe. */
  body.has-mobile-cta .footer {
    padding-bottom: calc(var(--space-3) + 88px);
  }
}

/* --------------------------------------------------------------------------
   Bandeau pré-footer + footer
   -------------------------------------------------------------------------- */

.footer {
  background: var(--ink-950);
  color: var(--ink-100);
  padding: var(--space-5) 0 var(--space-3);
  font-size: 0.95rem;
}

.footer a {
  color: var(--ink-100);
}

.footer a:hover {
  color: var(--white);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--line-ink);
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: var(--space-2);
}

.footer__brand img {
  width: 44px;
}

.footer__brand span {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.12em;
  color: var(--white);
}

.footer .footer__h {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 0 0 var(--space-2);
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer li {
  margin-bottom: 0.55rem;
}

/* Cible tactile : un lien sur une seule ligne fait 19 à 22 px de haut,
   sous le seuil de 24 px du WCAG 2.5.8. */
.footer li a,
.footer__legal a {
  display: inline-block;
  padding: 0.2rem 0;
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-2);
  padding-top: var(--space-3);
  font-size: 0.85rem;
  color: rgba(217, 222, 233, 0.7);
}

/* --------------------------------------------------------------------------
   Révélations au scroll
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal--d1 { transition-delay: 0.08s; }
.reveal--d2 { transition-delay: 0.16s; }
.reveal--d3 { transition-delay: 0.24s; }

.no-anim .reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn:hover svg {
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1180px) {
  /* Réduit à sa seule icône, le lien doit rester lisible comme un bouton. */
  .header__phone span {
    display: none;
  }

  .header__phone svg {
    width: 1.3rem;
    height: 1.3rem;
  }
}

@media (max-width: 1180px) and (min-width: 821px) {
  .nav {
    gap: 1.15rem;
  }
}

@media (max-width: 1024px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .hero::after {
    display: none;
  }

  .dossier {
    max-width: 560px;
  }

  .sanctions {
    grid-template-columns: repeat(2, 1fr);
  }

  .sanctions__item:last-child {
    grid-column: 1 / -1;
  }

  .form-layout {
    grid-template-columns: 1fr;
  }

  .aside-next {
    position: static;
  }
}

@media (max-width: 820px) {
  .nav {
    position: fixed;
    inset: 76px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: var(--space-2) var(--space-3) var(--space-3);
    display: none;
    box-shadow: 0 30px 40px -20px rgba(22, 32, 43, 0.2);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
  }

  .nav a[aria-current="page"] {
    border-bottom-color: var(--laiton);
  }

  .nav .btn {
    margin-top: var(--space-2);
    justify-content: center;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .section {
    padding: var(--space-5) 0;
  }

  .hero {
    padding: var(--space-5) 0;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .trustbar__inner {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2);
  }

  /* 3 éléments dans une grille à 2 colonnes : le dernier occupe la ligne
     entière, sinon une demi-case reste vide à sa droite. */
  .trustbar__item:last-child {
    grid-column: 1 / -1;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }
}

@media (max-width: 480px) {
  .brand__tag {
    display: none;
  }

  .sanctions {
    grid-template-columns: 1fr;
  }

  .hero__actions .btn {
    width: 100%;
  }
}
