/* AquaTerraMouv — feuille de style principale.
   Source de vérité visuelle : DESIGN.md (tokens repris ici à l'identique, mêmes noms).
   Police : Atkinson Hyperlegible Next (Braille Institute, licence OFL, voir assets/fonts/OFL.txt),
   hébergée sur le serveur : aucun appel à un service tiers. */

/* ---------- Polices ---------- */
@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/atkinson-hyperlegible-next-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/atkinson-hyperlegible-next-latin-ext-400-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/atkinson-hyperlegible-next-latin-700-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/atkinson-hyperlegible-next-latin-ext-700-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/atkinson-hyperlegible-next-latin-800-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/atkinson-hyperlegible-next-latin-ext-800-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens (DESIGN.md) ---------- */
:root {
  /* Couleurs */
  --primary: #b14d1f;
  --primary-active: #943f18;
  --primary-disabled: #e9d3c7;
  --ink: #223547;
  --body: #263340;
  --body-strong: #1b2a38;
  --muted: #516170;
  --muted-soft: #7a8896;
  --link: #1a6fb5;
  --hairline: #d6e2ea;
  --hairline-soft: #e6eef3;
  --canvas: #ffffff;
  --surface-water: #f0f7fa;
  --surface-sand: #f8f3ea;
  --surface-card: #ffffff;
  --surface-dark: #223547;
  --surface-dark-elevated: #2f4a63;
  --surface-dark-soft: #1b2a38;
  --on-primary: #ffffff;
  --on-dark: #ffffff;
  --on-dark-soft: #c9d6e2;
  --success: #3d6b12;
  --warning: #8a5a00;
  --error: #b42318;
  --accent-green: #8cc63f;
  --accent-water: #3ec6c6;
  --accent-orange-logo: #c1592a;

  /* Typographie */
  --font: 'Atkinson Hyperlegible Next', 'Segoe UI', Arial, sans-serif;

  /* Formes */
  --rounded-xs: 4px;
  --rounded-sm: 6px;
  --rounded-md: 8px;
  --rounded-lg: 14px;
  --rounded-xl: 20px;
  --rounded-pill: 999px;

  /* Espacements */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 80px;

  /* Profondeur */
  --ombre-1: 0 2px 8px rgba(34, 53, 71, 0.08);
  --ombre-2: 0 10px 28px rgba(34, 53, 71, 0.14);

  /* Mise en page */
  --conteneur: 1160px;
  --conteneur-texte: 720px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.125rem;            /* 18 px : body-md */
  line-height: 1.6;
  color: var(--body);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video, svg { max-width: 100%; display: block; }

/* Un élément marqué « hidden » reste caché, même si une règle lui donne un display (ex. .question en grid) */
[hidden] { display: none !important; }
img, video { height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font);
  color: var(--ink);
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 2.625rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.3px; }
h2 { font-size: clamp(1.625rem, 1.3rem + 1.3vw, 2rem); font-weight: 700; line-height: 1.2; }
h3 { font-size: clamp(1.375rem, 1.25rem + 0.5vw, 1.625rem); font-weight: 700; line-height: 1.25; }
h4 { font-size: 1.25rem; font-weight: 700; line-height: 1.35; }

.titre-accueil { font-size: clamp(2rem, 1rem + 4vw, 3.25rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.5px; }

p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
li + li { margin-top: 0.35em; }
strong { color: var(--body-strong); }

a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a[href^="mailto:"] { overflow-wrap: anywhere; }   /* l'adresse e-mail peut se couper sur les très petits écrans */

:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; border-radius: var(--rounded-xs); }

.chiffres { font-variant-numeric: tabular-nums; }

/* Les ancres (#prix, #tailles...) ne passent pas sous l'en-tête fixe */
[id] { scroll-margin-top: 104px; }

/* Lien d'évitement (clavier, lecteurs d'écran) */
.lien-evitement {
  position: absolute;
  left: var(--space-md);
  top: -100px;
  z-index: 200;
  background: var(--ink);
  color: var(--on-dark);
  padding: 12px 18px;
  border-radius: var(--rounded-md);
  font-weight: 700;
}
.lien-evitement:focus { top: var(--space-md); outline-color: var(--accent-water); }

.visuellement-cache {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

/* ---------- Mise en page ---------- */
.conteneur { max-width: var(--conteneur); margin: 0 auto; padding: 0 var(--space-lg); }
.conteneur-texte { max-width: var(--conteneur-texte); margin: 0 auto; padding: 0 var(--space-lg); }

.section { padding: var(--space-3xl) 0; }
.section-eau { background: var(--surface-water); }
.section-sable { background: var(--surface-sand); }
.section-sombre { background: var(--surface-dark); color: var(--on-dark-soft); }
.section-sombre h2, .section-sombre h3, .section-sombre strong { color: var(--on-dark); }
.section-sombre p, .section-sombre .chapeau { color: var(--on-dark-soft); }
.section-sombre a:not(.bouton) { color: var(--on-dark); }
.section-sombre :focus-visible { outline-color: var(--on-dark); }

.surtitre {
  display: block;
  font-size: 0.875rem;            /* caption-uppercase : 14 px */
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--link);
  margin-bottom: var(--space-sm);
}
.section-sombre .surtitre { color: var(--accent-water); }

.chapeau { font-size: 1.25rem; line-height: 1.55; color: var(--body); max-width: 62ch; }
.texte-secondaire { color: var(--muted); }
.legende, figcaption { font-size: 0.9375rem; line-height: 1.45; color: var(--muted); margin-top: var(--space-sm); }

.grille-2, .grille-3, .grille-4 { display: grid; gap: var(--space-lg); }
.grille-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grille-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grille-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.aligne-centre { align-items: center; }

.centre { text-align: center; }
.centre .chapeau { margin-left: auto; margin-right: auto; }
.espace-t { margin-top: var(--space-2xl); }
.espace-t-md { margin-top: var(--space-lg); }

/* ---------- En-tête ---------- */
.entete {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
}
.entete-barre {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  max-width: 1280px;
  margin: 0 auto;
  padding: 8px var(--space-lg);
}
.logo-lien { display: flex; align-items: center; gap: 10px; flex-shrink: 0; text-decoration: none; }
.logo-lien img { height: 64px; width: auto; }
.logo-texte { display: grid; font-size: 1.375rem; font-weight: 800; line-height: 1.1; color: var(--ink); }
.logo-texte small { font-size: 0.9375rem; font-weight: 400; color: var(--muted); }

.nav-principale {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}
.nav-principale a:not(.bouton) {
  color: var(--ink);
  font-size: 1.0625rem;           /* nav-link : 17 px */
  font-weight: 600;
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 3px solid transparent;
}
.nav-principale a:not(.bouton):hover { border-bottom-color: var(--hairline); }
.nav-principale a[aria-current="page"] { border-bottom-color: var(--accent-orange-logo); }

.menu-bascule {
  display: none;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  min-height: 48px;
  padding: 8px 14px;
  font-family: var(--font);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--ink);
  background: var(--canvas);
  border: 2px solid var(--ink);
  border-radius: var(--rounded-md);
  cursor: pointer;
}
.menu-bascule .barres { display: grid; gap: 4px; }
.menu-bascule .barres span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
.menu-bascule[aria-expanded="true"] .barres span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-bascule[aria-expanded="true"] .barres span:nth-child(2) { opacity: 0; }
.menu-bascule[aria-expanded="true"] .barres span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Boutons ---------- */
.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 28px;
  font-family: var(--font);
  font-size: 1.125rem;            /* button : 18 px */
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--rounded-md);
  cursor: pointer;
  transition: background-color 0.15s ease-out, border-color 0.15s ease-out, color 0.15s ease-out;
}
.bouton .icone { width: 22px; height: 22px; }

.bouton-principal { background: var(--primary); color: var(--on-primary); }
.bouton-principal:hover, .bouton-principal:active { background: var(--primary-active); }

.bouton-secondaire { background: var(--canvas); color: var(--ink); border-color: var(--ink); }
.bouton-secondaire:hover { background: var(--surface-water); }

.bouton-clair { background: transparent; color: var(--on-dark); border-color: var(--on-dark); }
.bouton-clair:hover { background: var(--surface-dark-elevated); }

.bouton-lien { background: transparent; color: var(--link); padding-left: 0; padding-right: var(--space-sm); text-decoration: underline; text-underline-offset: 3px; }

.nav-principale .bouton { min-height: 48px; padding: 10px 20px; font-size: 1.0625rem; }

.groupe-boutons { display: flex; flex-wrap: wrap; gap: var(--space-md); margin-top: var(--space-lg); }

/* ---------- Icônes (sprite assets/images/icones.svg) ---------- */
.icone {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.pastille {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--rounded-pill);
  color: var(--ink);
  margin-bottom: var(--space-md);
}
.pastille-eau { background: #dff2f4; }
.pastille-vert { background: #edf6e0; }
.pastille-orange { background: #f8e6dc; }

/* ---------- Cartes ---------- */
.carte {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: 28px;
  box-shadow: var(--ombre-1);
}
.carte h3 { font-size: 1.25rem; margin-bottom: var(--space-sm); }     /* title-md */
.carte p:last-child { margin-bottom: 0; }
.carte-cliquable { transition: box-shadow 0.15s ease-out, transform 0.15s ease-out; }
.carte-cliquable:hover { box-shadow: var(--ombre-2); transform: translateY(-2px); }

/* ---------- Badges ---------- */
.badge {
  display: inline-block;
  background: var(--surface-water);
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: var(--rounded-pill);
  border: 1px solid var(--hairline);
}

/* ---------- Encadré « bon à savoir » ---------- */
.notice {
  background: var(--surface-sand);
  border-left: 4px solid var(--accent-green);
  border-radius: var(--rounded-md);
  padding: 20px 24px;
}
.notice > :last-child { margin-bottom: 0; }
.section-sable .notice { background: var(--canvas); }

/* ---------- Photos ---------- */
.photo { width: 100%; border-radius: var(--rounded-lg); object-fit: cover; background: var(--surface-water); }
figure { margin: 0; }

/* ---------- Caractéristiques (liste de définitions) ---------- */
.specs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); margin: 0; border: 1px solid var(--hairline); border-radius: var(--rounded-lg); overflow: hidden; background: var(--canvas); }
.specs dt, .specs dd { margin: 0; padding: 14px 20px; border-bottom: 1px solid var(--hairline); }
.specs dt { font-weight: 700; color: var(--ink); background: var(--surface-water); }
.specs dt:last-of-type, .specs dd:last-of-type { border-bottom: none; }

/* ---------- Formulaires ---------- */
.formulaire { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; max-width: 640px; }
.champ { display: grid; gap: 6px; min-width: 0; }
.champ input, .champ textarea, .champ select { width: 100%; max-width: 100%; }
.champ label, .champ legend { font-weight: 700; color: var(--ink); }
.champ .aide { font-size: 1rem; color: var(--muted); }
.champ input, .champ textarea, .champ select {
  font-family: var(--font);
  font-size: 1.125rem;
  min-height: 52px;
  padding: 12px 14px;
  color: var(--body);
  background: var(--canvas);
  border: 2px solid var(--hairline);
  border-radius: var(--rounded-md);
}
.champ input:focus-visible, .champ textarea:focus-visible, .champ select:focus-visible { border-color: var(--link); outline-offset: 0; }
.champ textarea { min-height: 140px; resize: vertical; }
.champ-erreur input, .champ-erreur textarea, .champ-erreur select { border-color: var(--error); }
.message-erreur { color: var(--error); font-weight: 700; }
.formulaire-note { font-size: 1rem; color: var(--muted); }
.formulaire-large { max-width: none; }
.formulaire[hidden], .formulaire-large[hidden] { display: none; }
/* Champ piège anti-robots : sorti de l'écran, jamais display:none (certains robots l'ignorent alors) */
.piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 50;
  max-width: calc(100vw - 32px);
  padding: 14px 22px;
  background: var(--ink);
  color: var(--canvas);
  border-radius: var(--rounded-md);
  box-shadow: var(--ombre-2);
  font-weight: 700;
}

/* ---------- Séparateur vague ---------- */
.vague { display: block; width: 100%; height: 48px; color: var(--accent-water); }

/* ---------- Pied de page ---------- */
.pied { background: var(--surface-dark); color: var(--on-dark-soft); padding: var(--space-2xl) 0 var(--space-lg); }
.pied a { color: var(--on-dark-soft); text-decoration: none; }
.pied a:hover { color: var(--on-dark); text-decoration: underline; }
.pied :focus-visible { outline-color: var(--on-dark); }
.pied-grille { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: var(--space-xl); margin-bottom: var(--space-xl); }
.pied-titre { color: var(--on-dark); font-size: 1rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin-bottom: var(--space-md); }
.pied ul { list-style: none; margin: 0; padding: 0; }
.pied li + li { margin-top: 10px; }
.pied-logo { height: 64px; width: auto; background: var(--canvas); padding: 6px 10px; border-radius: var(--rounded-md); margin-bottom: var(--space-md); }
.pied-bas { border-top: 1px solid var(--surface-dark-elevated); padding-top: var(--space-lg); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-md); font-size: 1rem; }

/* ---------- Blocs communs aux pages ---------- */
.groupe-centre { justify-content: center; }

.carte-preuve .photo, .carte-public .photo { aspect-ratio: 4 / 3; margin-bottom: var(--space-lg); }
.carte-public { display: flex; flex-direction: column; color: inherit; text-decoration: none; }
.carte-public p { flex-grow: 1; }
.carte-lien { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.carte-lien .icone, .bouton-lien .icone { width: 22px; height: 22px; }

.liste-coches { list-style: none; padding: 0; margin: 0 0 1em; }
.carte.liste-coches { padding: 28px; margin: 0; }
.liste-coches li { display: flex; gap: 12px; align-items: flex-start; }
.liste-coches li + li { margin-top: 14px; }
.liste-coches .icone { color: var(--success); margin-top: 1px; }

.references { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-md); }
.references li { display: flex; gap: 16px; align-items: center; margin: 0; padding: 20px 24px; background: var(--canvas); border: 1px solid var(--hairline); border-radius: var(--rounded-lg); }
.references .icone { color: var(--ink); width: 32px; height: 32px; }
.references div { display: grid; }
.references span { color: var(--muted); }

.video-cadre video { aspect-ratio: 9 / 10; background: var(--surface-dark); }

/* ---------- Accueil ---------- */
.accueil-haut { padding-top: var(--space-2xl); background: linear-gradient(180deg, var(--canvas) 0%, var(--canvas) 70%, var(--surface-water) 100%); }
.accueil-grille { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: var(--space-2xl); align-items: center; padding-bottom: var(--space-xl); }
.accueil-photo .photo { aspect-ratio: 1 / 1; box-shadow: var(--ombre-2); }
.accueil-confiance { margin-top: var(--space-lg); color: var(--muted); font-size: 1rem; }
.accueil-haut .vague { margin-bottom: -1px; background: var(--surface-water); }

/* ---------- Pages intérieures ---------- */
.page-haut { padding-top: var(--space-2xl); }
.prix-principal { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-size: 1.125rem; margin: var(--space-md) 0 0; }
.prix-principal .chiffres { font-size: 2rem; font-weight: 800; color: var(--ink); }
.prix-mention { flex-basis: 100%; font-size: 0.9375rem; color: var(--muted); }

.galerie { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-lg); }
.galerie .photo { aspect-ratio: 1 / 1; }

.taille-carte { text-align: center; }
.taille-carte img { width: 62%; margin: 0 auto var(--space-md); border-radius: var(--rounded-md); aspect-ratio: 4 / 7; object-fit: cover; }
.taille-carte h3 { margin-top: var(--space-sm); }
.taille-hauteur { font-size: 2rem; font-weight: 800; color: var(--ink); margin: 0; line-height: 1.1; }
.taille-carte .texte-secondaire { margin: 0; }

.tableau { width: 100%; border-collapse: collapse; background: var(--canvas); border: 1px solid var(--hairline); border-radius: var(--rounded-lg); overflow: hidden; }
.tableau th, .tableau td { text-align: left; padding: 14px 20px; border-bottom: 1px solid var(--hairline); vertical-align: top; }
.tableau th { font-weight: 700; color: var(--ink); background: var(--surface-water); width: 55%; }
.tableau tr:last-child th, .tableau tr:last-child td { border-bottom: none; }
.tableau + p { margin-top: var(--space-lg); }

.etapes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-lg); }
.etapes li { margin: 0; }
.etape-numero { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--rounded-pill); background: var(--ink); color: var(--on-dark); font-weight: 800; font-size: 1.25rem; margin-bottom: var(--space-md); }

/* ---------- Financer : assistant, résultats, lettre ---------- */
.assistant { display: grid; gap: var(--space-xl); margin-top: var(--space-lg); }
.question { border: none; margin: 0; padding: 0; display: grid; gap: 10px; min-width: 0; }
.question legend { font-size: 1.25rem; font-weight: 700; color: var(--ink); margin-bottom: 4px; padding: 0; }
.question .aide { margin: 0 0 4px; color: var(--muted); font-size: 1rem; }
.choix {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  padding: 12px 18px;
  background: var(--canvas);
  border: 2px solid var(--hairline);
  border-radius: var(--rounded-md);
  cursor: pointer;
  font-weight: 400;
}
.champ .choix { font-weight: 400; color: var(--body); }
.choix input { width: 24px; height: 24px; margin: 0; accent-color: var(--ink); flex-shrink: 0; }
.choix:hover { border-color: var(--muted-soft); }
.choix:has(input:checked) { border-color: var(--ink); background: var(--surface-water); font-weight: 700; }
.choix:has(input:focus-visible) { outline: 3px solid var(--link); outline-offset: 2px; }
.assistant .bouton, .formulaire .bouton { justify-self: start; }

.resultats { display: grid; gap: var(--space-md); margin-top: var(--space-lg); }
.resultat h3 { font-size: 1.25rem; }
.retrouver-caisse { margin-top: var(--space-md); border-left: 4px solid var(--accent-water); }
#titre-resultats:focus, #titre-apercu:focus { outline: none; }

.apercu { margin-top: var(--space-xl); }
.lettre {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  box-shadow: var(--ombre-2);
  padding: 40px 44px;
  margin: var(--space-lg) 0;
  font-size: 1.0625rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.lettre p { margin: 0 0 0.8em; }
.lettre ul { margin: 0 0 0.8em; }
.lettre-expediteur p, .lettre-destinataire p { margin: 0; }
.lettre-destinataire { margin: 28px 0 28px 50%; }
.lettre-date { text-align: right; }
.lettre-objet { font-weight: 700; margin-top: 1.2em !important; }
.lettre-signature { margin-top: 2em !important; margin-left: 50% !important; }

/* ---------- Contact ---------- */
.coordonnees { list-style: none; padding: 0; margin: var(--space-lg) 0 0; display: grid; gap: var(--space-md); }
.coordonnees li { display: flex; gap: 14px; align-items: flex-start; margin: 0; }
.coordonnees .icone { color: var(--ink); margin-top: 2px; }
.coordonnees div { display: grid; overflow-wrap: anywhere; }

/* ---------- Textes légaux ---------- */
.texte-legal h2 { font-size: 1.5rem; margin-top: var(--space-2xl); }
.texte-legal h3 { font-size: 1.25rem; margin-top: var(--space-xl); }
.texte-legal .encadre-officiel { background: var(--surface-water); border: 1px solid var(--hairline); border-radius: var(--rounded-md); padding: 20px 24px; font-size: 1rem; }
.texte-legal .encadre-officiel > :last-child { margin-bottom: 0; }
.formulaire-type .ligne-a-remplir { border-bottom: 1px solid var(--muted-soft); height: 1.6em; }
.sommaire ul { list-style: none; padding: 0; margin: var(--space-lg) 0 0; display: grid; gap: 8px; }
.sommaire li { margin: 0; }

/* Contenu en attente d'une information de Steph : visible exprès, à retirer avant la mise en ligne */
.a-completer { background: #fff3b0; color: #5c4400; font-weight: 700; padding: 0 6px; border-radius: var(--rounded-xs); }

/* ---------- Apparition au défilement ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease-out, transform 0.5s ease-out; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Mouvements réduits ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
/* Écrans moyens (portables) : onglets resserrés pour rester visibles au lieu du bouton Menu (23/11/2026, demande de Steph) */
@media (min-width: 1024px) and (max-width: 1180px) {
  .entete-barre { gap: 16px; padding-left: 16px; padding-right: 16px; }
  .logo-lien img { height: 52px; }
  .logo-texte { font-size: 1.1875rem; }
  .nav-principale { gap: 14px; }
  .nav-principale a:not(.bouton) { font-size: 1rem; }
  .nav-principale .bouton { padding: 10px 14px; font-size: 1rem; }
}
@media (max-width: 1180px) {
  .grille-4, .galerie, .etapes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1023.98px) {
  .menu-bascule { display: inline-flex; }
  .nav-principale {
    position: fixed;
    top: var(--hauteur-entete, 81px);
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--space-md) var(--space-lg) var(--space-xl);
    background: var(--canvas);
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.15s ease-out, visibility 0.15s;
  }
  .nav-principale.ouvert { visibility: visible; opacity: 1; }
  .nav-principale a:not(.bouton) { font-size: 1.25rem; padding: 16px 0; border-bottom: 1px solid var(--hairline); }
  .nav-principale a[aria-current="page"] { border-bottom-color: var(--hairline); box-shadow: inset 4px 0 0 var(--accent-orange-logo); padding-left: 14px; }
  .nav-principale .bouton { margin-top: var(--space-lg); min-height: 56px; }
}

@media (max-width: 860px) {
  .section { padding: 56px 0; }
  .accueil-grille { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
  .references { grid-template-columns: minmax(0, 1fr); }
  .grille-2, .grille-3, .grille-4 { grid-template-columns: minmax(0, 1fr); }
  .pied-grille { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

@media (max-width: 640px) {
  .conteneur, .conteneur-texte, .entete-barre { padding-left: var(--space-md); padding-right: var(--space-md); }
  .entete-barre { gap: var(--space-md); }
  .logo-lien { gap: 8px; }
  .logo-lien img { height: 46px; }
  .logo-texte { font-size: 1.125rem; }
  .logo-texte small { font-size: 0.8125rem; }
  .menu-bascule { padding: 8px 12px; }
}

@media (max-width: 400px) {
  .logo-texte small { display: none; }   /* trop étroit : la devise passerait sous 15 px */
  .entete-barre { gap: 10px; }
  .logo-lien img { height: 40px; }
  .logo-texte { font-size: 1rem; }
  .menu-bascule { gap: 8px; padding: 8px 10px; }
  .carte { padding: 22px; }
  .pied-grille { grid-template-columns: minmax(0, 1fr); }
  .specs { grid-template-columns: minmax(0, 1fr); }
  .etapes { grid-template-columns: minmax(0, 1fr); }
  .galerie { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-md); }
  .tableau thead { display: none; }
  .assistant .bouton, .formulaire .bouton { width: 100%; }
  .lettre { padding: 22px 18px; font-size: 1rem; }
  .lettre-destinataire, .lettre-signature { margin-left: 30% !important; }
  .tableau th, .tableau td { display: block; width: auto; }
  .tableau th { border-bottom: none; padding-bottom: 4px; }
  .tableau td { padding-top: 4px; }
  .specs dt { border-bottom: none; padding-bottom: 4px; }
  .specs dd { padding-top: 4px; }
  .groupe-boutons .bouton { width: 100%; }
}

/* ---------- Impression ---------- */
@media print {
  @page { size: A4; margin: 8mm; }
  .entete, .pied, .lien-evitement, .groupe-boutons, .vague { display: none !important; }
  .reveal { opacity: 1; transform: none; }
  body { font-size: 12pt; }

  /* Bouton « Imprimer ma lettre » (page Financer) : la lettre seule, sur une page A4 */
  body.imprime-lettre main > section:not(#courrier) { display: none !important; }
  body.imprime-lettre #courrier { padding: 0; background: none; }
  body.imprime-lettre #courrier .conteneur-texte { max-width: none; padding: 0; }
  body.imprime-lettre #courrier .conteneur-texte > :not(#apercu),
  body.imprime-lettre #apercu > :not(#lettre) { display: none !important; }
  body.imprime-lettre .lettre { border: none; box-shadow: none; margin: 0; padding: 10mm 14mm; font-size: 11.5pt; line-height: 1.5; }
}

