/* ==========================================================================
   Custom PC Lab — feuille de style
   1. Polices        2. Variables      3. Base           4. Mise en page
   5. En-tête        6. Boutons, liens 7. Héros          8. Composants
   9. Formulaire     10. Pages légales 11. Pied de page  12. Bannière cookies
   13. Utilitaires
   ========================================================================== */

/* 1. Polices (hébergées sur le site, licence SIL OFL 1.1) ----------------- */
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono-latin-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* 2. Variables -------------------------------------------------------------- */
:root {
  --navy: #0F1830;
  --navy-2: #172242;
  --navy-hover: #22305A;
  --navy-line: rgba(255, 255, 255, 0.1);
  --orange: #F28A3A;          /* fonds, boutons, accents sur fond sombre */
  --orange-hover: #F6A262;
  --orange-text: #B04E0C;     /* texte orange sur fond clair (contraste AA) */
  --bg: #F4F5F8;
  --surface: #FFFFFF;
  --surface-2: #FAFBFC;
  --text: #1B2440;
  --muted: #4A5470;
  --line: #DDE1EA;
  --line-strong: #C5CBD8;
  --field-border: #7A849C;
  --on-dark: #E8ECF5;
  --on-dark-soft: #C9D1E4;
  --on-dark-muted: #A9B3CC;
  --danger: #B42318;
  --danger-bg: #FEF3F2;
  --todo-bg: #FFF1E5;
  --todo-text: #7A3608;

  --font-sans: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --radius: 12px;
  --radius-sm: 8px;
  --container: 74rem;
  --gutter: 1rem;
  --header-h: 4.25rem;
}
@media (min-width: 48rem) {
  :root { --gutter: 2rem; }
}

/* 3. Base ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1, h2, h3, h4 {
  margin: 0 0 0.75rem;
  color: inherit;
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.125rem, 1.4rem + 3.2vw, 3.5rem); font-weight: 800; line-height: 1.06; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.625rem, 1.2rem + 1.8vw, 2.5rem); }
h3, .h3 { font-size: 1.25rem; letter-spacing: -0.01em; }

p { margin: 0 0 1rem; text-wrap: pretty; }
ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; }
strong { font-weight: 650; }
address { font-style: normal; }

a { color: var(--text); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--orange-text); }

:focus-visible { outline: 3px solid var(--text); outline-offset: 3px; border-radius: 2px; }
.on-dark :focus-visible { outline-color: var(--orange); }

::selection { background: var(--orange); color: var(--navy); }

.on-dark a:not(.btn) { color: #fff; }
.on-dark a:not(.btn):hover { color: var(--orange); }

.mono { font-family: var(--font-mono); }

/* 4. Mise en page ----------------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: calc(48rem + 2 * var(--gutter)); }

.section { padding-block: clamp(3.5rem, 2rem + 6vw, 6.5rem); }
.section--tight { padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem); }
.section--white { background: var(--surface); border-block: 1px solid var(--line); }
.section--form { padding-top: clamp(2rem, 1rem + 3vw, 3.5rem); }

.section-head { max-width: 44rem; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3rem); }
.section-head > p:not(.eyebrow) { color: var(--muted); font-size: 1.125rem; }
.section-head > :last-child { margin-bottom: 0; }
.section-head--split { max-width: none; display: grid; gap: 1rem 3rem; align-items: end; }
.section-head--split h2 { margin-bottom: 0; }
.section-head--split > p { margin-bottom: 0.25rem; }
@media (min-width: 56rem) {
  .section-head--split { grid-template-columns: 1.1fr 1fr; }
}
.section-link { margin: 2rem 0 0; }

.grid { display: grid; gap: 1rem; }
@media (min-width: 48rem) {
  .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 64rem) {
  .grid { gap: 1.25rem; }
}
.stack { display: grid; gap: 1rem; align-content: start; }

.split { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 56rem) {
  .split { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 4rem; }
  .split--reverse { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
  .split--reverse > :first-child { order: 2; }
}
.split__text { max-width: 36rem; }

/* 5. En-tête ---------------------------------------------------------------- */
.skip-link {
  position: absolute;
  top: -10rem;
  left: 1rem;
  z-index: 200;
  padding: 0.75rem 1rem;
  background: var(--orange);
  color: var(--navy);
  font-weight: 650;
  border-radius: var(--radius-sm);
  text-decoration: none;
}
.skip-link:focus { top: 0.75rem; color: var(--navy); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  color: var(--on-dark);
  border-bottom: 1px solid var(--navy-line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-right: auto;
  color: #fff;
  font-size: 1.125rem;
  font-weight: 750;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}
.brand img { width: 32px; height: 32px; flex: none; }
.on-dark a.brand:hover { color: #fff; }

/* Sélecteurs préfixés par .site-header pour passer devant la règle .btn */
.site-header .header-cta { display: none; white-space: nowrap; }
@media (min-width: 30rem) {
  .site-header .header-cta { display: inline-flex; }
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.75rem;
  padding: 0.5rem 0.85rem;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-sm);
  font: 500 0.8125rem/1 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}
.nav-toggle:hover { border-color: #fff; }
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 16px;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before,
.nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -5px; }
.nav-toggle__bars::after { top: 5px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-5px) rotate(-45deg); }

.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav ul a {
  display: block;
  color: var(--on-dark);
  font-weight: 500;
  font-size: 0.98rem;
  text-decoration: none;
}
.on-dark .site-nav ul a:hover { color: #fff; }
.on-dark .site-nav ul a[aria-current="page"] { color: #fff; }

@media (max-width: 69.99rem) {
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    padding: 0.25rem var(--gutter) 1.5rem;
    background: var(--navy);
    border-bottom: 1px solid var(--navy-line);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.3);
  }
  .site-nav.is-open { display: block; }
  .site-nav ul a { padding: 0.9rem 0.25rem; border-bottom: 1px solid var(--navy-line); }
  .site-nav ul a[aria-current="page"] { padding-left: 0.9rem; box-shadow: inset 3px 0 0 var(--orange); }
  .nav-cta { margin-top: 1.25rem; width: 100%; }
}
@media (min-width: 70rem) {
  .site-header .nav-toggle, .site-header .header-cta { display: none; }
  .site-nav { display: flex; align-items: center; gap: 1.25rem; }
  .site-nav ul { display: flex; gap: 0.125rem; }
  .site-nav ul a { padding: 0.5rem 0.7rem; border-radius: 6px; }
  .site-nav ul a:hover { background: rgba(255, 255, 255, 0.06); }
  .site-nav ul a[aria-current="page"] { border-radius: 0; box-shadow: inset 0 -2px 0 var(--orange); }
}

/* 6. Boutons et liens -------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 2.875rem;
  padding: 0.7rem 1.25rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font: 650 1rem/1.2 var(--font-sans);
  letter-spacing: -0.005em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--sm { min-height: 2.5rem; padding: 0.5rem 1rem; font-size: 0.9375rem; }
.btn--lg { min-height: 3.25rem; padding: 0.85rem 1.6rem; font-size: 1.0625rem; }

.btn--primary { background: var(--orange); color: var(--navy); }
.btn--primary:hover { background: var(--orange-hover); color: var(--navy); }
.btn--dark { background: var(--navy); color: #fff; }
.btn--dark:hover { background: var(--navy-hover); color: #fff; }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.32); }
.btn--ghost:hover { color: #fff; border-color: #fff; background: rgba(255, 255, 255, 0.04); }
.btn--outline { background: var(--surface); color: var(--text); border-color: var(--field-border); }
.btn--outline:hover { color: var(--text); border-color: var(--text); }
.btn[disabled] { opacity: 0.65; cursor: not-allowed; }
.btn.is-loading::before {
  content: "";
  width: 1rem;
  height: 1rem;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding-bottom: 2px;
  border-bottom: 1px solid currentColor;
  font-weight: 650;
  text-decoration: none;
}
.link-arrow::after {
  content: "→";
  content: "→" / "";
  transition: transform 0.15s ease;
}
.link-arrow:hover::after { transform: translateX(3px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1rem;
  color: var(--orange-text);
  font: 500 0.8125rem/1.4 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; flex: none; width: 8px; height: 8px; background: currentColor; }
.on-dark .eyebrow { color: var(--orange); }

.lead { max-width: 40rem; font-size: clamp(1.125rem, 1rem + 0.4vw, 1.3125rem); line-height: 1.55; }
.on-dark .lead { color: var(--on-dark-soft); }

/* 7. Héros ------------------------------------------------------------------- */
.hero,
.page-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--navy);
  color: var(--on-dark);
}
/* Grille discrète */
.hero::before,
.page-hero::before,
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 80% 75% at 78% 30%, #000 25%, transparent 80%);
  mask-image: radial-gradient(ellipse 80% 75% at 78% 30%, #000 25%, transparent 80%);
  pointer-events: none;
}
/* Pistes de circuit imprimé */
.hero::after,
.page-hero::after,
.cta-band::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -5rem;
  bottom: -3rem;
  width: min(56rem, 130vw);
  aspect-ratio: 3 / 2;
  background: url("../img/motif-circuit.svg") no-repeat right bottom / contain;
  -webkit-mask-image: linear-gradient(to left, #000 30%, transparent 85%);
  mask-image: linear-gradient(to left, #000 30%, transparent 85%);
  pointer-events: none;
}

.hero { padding-block: clamp(3rem, 2rem + 6vw, 6.5rem) clamp(4rem, 2rem + 7vw, 7.5rem); }
.hero__grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 60rem) {
  .hero__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 4rem; }
}
.hero h1 { max-width: 15ch; margin-bottom: 1.25rem; color: #fff; font-size: clamp(2.375rem, 1.5rem + 4vw, 4.25rem); }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.hero__facts {
  display: grid;
  gap: 0.9rem;
  margin: 2.75rem 0 0;
  padding: 1.5rem 0 0;
  list-style: none;
  border-top: 1px solid var(--navy-line);
}
@media (min-width: 40rem) {
  .hero__facts { grid-template-columns: repeat(3, auto); justify-content: start; gap: 2.5rem; }
}
.fact__k {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--on-dark-muted);
  font: 500 0.75rem/1.4 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.fact__v { color: #fff; font-weight: 600; }

.hero__visual { position: relative; }
.hero__card {
  position: relative;
  margin: -3rem 1rem 0;
  padding: 1.25rem 1.4rem;
  background: var(--surface);
  color: var(--text);
  border-radius: var(--radius);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}
@media (min-width: 60rem) {
  .hero__card { position: absolute; left: -2.5rem; bottom: -2rem; max-width: 20rem; margin: 0; }
}
.hero__card-title {
  margin-bottom: 0.75rem;
  color: var(--orange-text);
  font: 500 0.75rem/1.4 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero__card .checklist { margin: 0; }
.hero__card .checklist li::before { border-color: var(--orange-text); }

.page-hero { padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem); }
.page-hero::after { width: min(44rem, 120vw); bottom: -6rem; opacity: 0.8; }
.page-hero h1 { max-width: 22ch; margin-bottom: 1rem; color: #fff; }
.page-hero .lead { margin-bottom: 0; }
.page-hero--compact { padding-block: clamp(2rem, 1.25rem + 3vw, 3.25rem); }
.page-hero--center { text-align: center; }
.page-hero--center h1,
.page-hero--center .lead { margin-inline: auto; }

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  color: var(--on-dark-muted);
  font: 400 0.8125rem/1.4 var(--font-mono);
}
.breadcrumb li + li::before { content: "/"; margin-right: 0.5rem; color: rgba(255, 255, 255, 0.3); }
.on-dark .breadcrumb a { color: var(--on-dark-muted); text-decoration: none; }
.on-dark .breadcrumb a:hover { color: #fff; text-decoration: underline; }
.on-dark .breadcrumb [aria-current="page"] { color: var(--on-dark); }

.legal-meta { margin: 0; color: var(--on-dark-muted); font: 400 0.8125rem/1.4 var(--font-mono); }

.ref-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.75rem 0 0;
  padding: 0.6rem 1rem;
  border: 1px solid var(--navy-line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  color: var(--on-dark-muted);
  font: 500 0.8125rem/1.4 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.ref-badge .mono { color: #fff; font-size: 1rem; letter-spacing: 0.04em; text-transform: none; }

/* 8. Composants -------------------------------------------------------------- */

/* Étapes (accueil) */
.steps { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 40rem) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; } }
.step {
  padding: 1.5rem 1.5rem 1.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.step__num {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.25rem;
  color: var(--orange-text);
  font: 500 0.8125rem/1 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.step__num::after { content: ""; flex: 1; height: 1px; background: var(--line-strong); }
.step__num::before {
  content: "";
  order: 2;
  width: 7px;
  height: 7px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}
.step h3 { margin-bottom: 0.5rem; }
.step p:last-child { margin-bottom: 0; color: var(--muted); }

/* Arguments */
.feature { padding-top: 1.25rem; border-top: 2px solid var(--navy); }
.feature p:last-child { margin-bottom: 0; color: var(--muted); }
.feature__k,
.card__k,
.role__k {
  margin: 0 0 0.75rem;
  color: var(--orange-text);
  font: 500 0.75rem/1.4 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.on-dark .card__k,
.on-dark .role__k { color: var(--orange); }

/* Cartes */
.card {
  padding: clamp(1.25rem, 1rem + 1.5vw, 2rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.card > :last-child { margin-bottom: 0; }
.card h3 { margin-bottom: 0.6rem; }
.card p { color: var(--muted); }
.section--white .card { background: var(--bg); border-color: transparent; }
.card.on-dark,
.section--white .card.on-dark { background: var(--navy); color: var(--on-dark); border-color: var(--navy); }
.card.on-dark p { color: var(--on-dark-soft); }
.role__k { font-size: 0.875rem; }
.role .checklist { margin: 0; }

/* Liste à coches */
.checklist { display: grid; gap: 0.65rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.checklist li { position: relative; padding-left: 1.75rem; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.42em;
  width: 0.8rem;
  height: 0.45rem;
  border-left: 2px solid var(--orange-text);
  border-bottom: 2px solid var(--orange-text);
  transform: rotate(-45deg);
}
.on-dark .checklist li::before { border-color: var(--orange); }
.checklist--compact { gap: 0.45rem; font-size: 0.95rem; }

.numbered { margin: 0 0 2rem; padding-left: 1.4rem; }
.numbered li { padding-left: 0.4rem; }
.numbered li + li { margin-top: 0.75rem; }
.numbered li::marker { color: var(--orange-text); font-family: var(--font-mono); font-weight: 500; }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Formules */
.plans { display: grid; gap: 1.5rem; }
@media (min-width: 60rem) {
  .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; align-items: stretch; }
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.5rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
@media (min-width: 30rem) { .plan { padding: 2.25rem 2rem 2rem; } }
.plan--featured { background: var(--navy); color: var(--on-dark); border-color: var(--navy); box-shadow: 0 24px 48px rgba(15, 24, 48, 0.18); }
.plan__tag {
  position: absolute;
  top: 0;
  left: 2rem;
  margin: 0;
  padding: 0.4rem 0.65rem;
  transform: translateY(-50%);
  background: var(--orange);
  color: var(--navy);
  border-radius: 4px;
  font: 500 0.75rem/1 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.plan__name { margin: 0 0 1rem; font-size: 1.375rem; }
.plan--featured .plan__name { color: #fff; }
.plan__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.1rem 0.6rem;
  margin: 0;
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: -0.03em;
}
.plan__fixed { font-size: clamp(2.25rem, 2rem + 1vw, 2.75rem); line-height: 1; }
.plan--featured .plan__fixed { color: #fff; }
.plan__rate { color: var(--orange-text); font-size: 1.375rem; }
.plan--featured .plan__rate { color: var(--orange); }
.plan__basis { margin: 0.5rem 0 0; color: var(--muted); font-size: 0.9375rem; }
.plan--featured .plan__basis { color: var(--on-dark-muted); }
.plan .checklist { margin: 1.5rem 0; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.plan--featured .checklist { border-color: var(--navy-line); }
.plan__example { margin: auto 0 1.25rem; color: var(--muted); font-size: 0.9375rem; }
.plan__example strong { color: var(--text); font-weight: 500; }
.plan--featured .plan__example { color: var(--on-dark-muted); }
.plan--featured .plan__example strong { color: #fff; }
.plan .btn { width: 100%; }

.note { margin: 1.5rem 0 0; color: var(--muted); font-size: 0.9375rem; }
.on-dark .note { color: var(--on-dark-muted); }

/* Tableaux */
.table-wrap {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.table { width: 100%; min-width: 32rem; border-collapse: collapse; font-size: 1rem; }
.table caption {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
  font-weight: 650;
  text-align: left;
}
.table th,
.table td { padding: 0.9rem 1.25rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table thead th {
  background: var(--surface-2);
  color: var(--muted);
  font: 500 0.75rem/1.4 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.table tbody tr:last-child > * { border-bottom: 0; }
.table tbody th { font-weight: 600; }
.table .num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.table .is-featured { background: rgba(242, 138, 58, 0.09); }
.table--options,
.table--compact { min-width: 0; }
.table--options .num { white-space: normal; min-width: 7rem; }
.table--compact { font-size: 0.9375rem; }
.table--compact th,
.table--compact td { padding: 0.75rem 1rem; }
.cell-note { display: block; margin-top: 0.15rem; color: var(--muted); font: 400 0.8125rem/1.4 var(--font-sans); }
.table .num .cell-note { font-family: var(--font-mono); }

.options-layout { display: grid; gap: 1.25rem; align-items: start; }
@media (min-width: 60rem) {
  .options-layout { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
}

/* Calculateur */
.calc { display: grid; gap: 2rem; }
@media (min-width: 56rem) {
  .calc { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 3rem; align-items: center; }
}
.calc__form h2 { margin-bottom: 1.5rem; }
.calc__results { display: grid; gap: 0.6rem; }
.calc__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  background: var(--bg);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
}
.calc__row.is-featured { background: var(--navy); color: #fff; }
.calc__plan { font-weight: 650; }
.calc__detail { display: block; color: var(--muted); font: 400 0.8125rem/1.4 var(--font-mono); }
.calc__row.is-featured .calc__detail { color: var(--on-dark-muted); }
.calc__price { font: 500 1.5rem/1 var(--font-mono); letter-spacing: -0.02em; white-space: nowrap; }

/* Emplacements d’images */
.media {
  position: relative;
  margin: 0;
  overflow: hidden;
  background-color: #E4E7EE;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.media img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.media.is-missing img { display: none; }
.media__ph {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 1rem;
  background-image: repeating-linear-gradient(135deg, rgba(15, 24, 48, 0.045) 0 1px, transparent 1px 11px);
  color: var(--muted);
  font: 400 0.75rem/1.4 var(--font-mono);
  text-align: center;
}
.media__ph::before {
  content: "";
  width: 2.25rem;
  height: 1.75rem;
  margin-bottom: 0.4rem;
  border: 1.5px solid currentColor;
  border-radius: 4px;
  opacity: 0.6;
  background: radial-gradient(circle at 70% 35%, currentColor 0 2px, transparent 2.5px);
}
.media__ph-label { color: var(--text); font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; }
.media__ph-file { overflow-wrap: anywhere; }
.media--dark { background-color: var(--navy-2); border-color: var(--navy-line); }
.media--dark .media__ph {
  background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 11px);
  color: var(--on-dark-muted);
}
.media--dark .media__ph-label { color: #fff; }

.ratio-4x3 { aspect-ratio: 4 / 3; }
.ratio-3x2 { aspect-ratio: 3 / 2; }
.ratio-16x9 { aspect-ratio: 16 / 9; }
.ratio-4x5 { aspect-ratio: 4 / 5; }
.ratio-1x1 { aspect-ratio: 1 / 1; }
.media--hero { aspect-ratio: 4 / 3; }
@media (min-width: 60rem) { .media--hero { aspect-ratio: 4 / 5; } }

/* Galerie */
.gallery { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }
.shot {
  display: flex;
  flex-direction: column;
  margin: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.section--white .shot { background: var(--bg); border-color: transparent; }
.shot .media { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.shot__caption { padding: 1.1rem 1.25rem 1.3rem; }
.shot__caption p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.shot__title { margin: 0 0 0.5rem; font-size: 1.0625rem; }
.spec { display: grid; gap: 0.5rem; margin: 0.75rem 0 0; }
.spec > div { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 0.75rem; font-size: 0.9375rem; }
.spec dt {
  padding-top: 0.1rem;
  color: var(--muted);
  font: 400 0.75rem/1.6 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.spec dd { margin: 0; }

.figure { margin: 0; }
.figure figcaption { margin-top: 0.9rem; color: var(--muted); font-size: 0.9375rem; }
.figure figcaption strong { color: var(--text); }

/* Parcours détaillé */
.timeline { display: grid; margin: 0; padding: 0; list-style: none; }
.timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 1.25rem;
  padding-bottom: 2.75rem;
}
@media (min-width: 48rem) {
  .timeline__item { grid-template-columns: 4rem minmax(0, 1fr); gap: 2rem; padding-bottom: 3.5rem; }
}
.timeline__item::before {
  content: "";
  position: absolute;
  left: calc(1.5rem - 1px);
  top: 3.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: repeating-linear-gradient(to bottom, var(--line-strong) 0 6px, transparent 6px 12px);
}
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item:last-child::before { display: none; }
.timeline__num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin: 0;
  background: var(--navy);
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--bg), 0 0 0 5px var(--line-strong);
  font: 500 0.9375rem/1 var(--font-mono);
}
.timeline__body { max-width: 44rem; }
.timeline__body h2 { margin-top: 0.45rem; font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem); }
.timeline__body > :last-child { margin-bottom: 0; }

.address-card {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border-left: 3px solid var(--orange);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font: 400 0.9375rem/1.6 var(--font-mono);
}

/* FAQ */
.faq-layout { display: grid; gap: 2.5rem; }
@media (min-width: 64rem) {
  .faq-layout { grid-template-columns: minmax(0, 1fr) 18rem; gap: 3.5rem; align-items: start; }
  .faq-aside { position: sticky; top: calc(var(--header-h) + 1.5rem); }
}
.faq-group + .faq-group { margin-top: 3rem; }
.faq-group h2 { margin-bottom: 1rem; font-size: 1.375rem; }
.faq { display: grid; gap: 0.625rem; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.faq details[open] { border-color: var(--line-strong); }
.faq summary {
  position: relative;
  padding: 1.1rem 3.75rem 1.1rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 650;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--orange-text); }
.faq summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 1.25rem;
  width: 1.6rem;
  height: 1.6rem;
  margin-top: -0.8rem;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background:
    linear-gradient(var(--orange-text), var(--orange-text)) center / 10px 2px no-repeat,
    linear-gradient(var(--orange-text), var(--orange-text)) center / 2px 10px no-repeat;
}
.faq details[open] summary::after { background: linear-gradient(var(--orange-text), var(--orange-text)) center / 10px 2px no-repeat; }
.faq__body { padding: 0 1.25rem 1.25rem; }
.faq__body > :last-child { margin-bottom: 0; }
.contact-mini { margin: 0 0 1.25rem; padding: 0; list-style: none; display: grid; gap: 0.4rem; }

/* Contact */
.contact-grid { display: grid; gap: 1rem; margin-bottom: 2rem; }
@media (min-width: 40rem) { .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 72rem) { .contact-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.contact-card__v { margin-bottom: 0.75rem; color: var(--text); font-size: 1.1875rem; font-weight: 650; line-height: 1.35; }
.contact-card__v a { text-decoration: none; }
.contact-card__v a:hover { text-decoration: underline; }
.contact-card__v--address { font-size: 1.0625rem; }
.contact-cta { margin-top: 1rem; }

/* Bandeau d’appel */
.cta-band {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  gap: 1.75rem;
  padding: clamp(1.75rem, 1rem + 4vw, 3.5rem);
  background: var(--navy);
  color: var(--on-dark);
  border-radius: calc(var(--radius) + 4px);
}
.cta-band::after { right: -8rem; top: -4rem; bottom: auto; width: min(40rem, 120vw); opacity: 0.7; }
@media (min-width: 56rem) {
  .cta-band { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 3rem; }
}
.cta-band h2 { margin-bottom: 0.75rem; color: #fff; }
.cta-band p { max-width: 36rem; margin: 0; color: var(--on-dark-soft); }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Messages */
.notice {
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.notice > :last-child { margin-bottom: 0; }
.notice--warn { background: #FFF6EE; border-color: #E9B48A; }
.notice--error { background: var(--danger-bg); border-color: var(--danger); color: var(--danger); font-weight: 600; }

/* Mentions à compléter */
.todo {
  padding: 0.1em 0.4em;
  background: var(--todo-bg);
  color: var(--todo-text);
  border: 1px dashed var(--orange-text);
  border-radius: 4px;
  font: 500 0.85em/1.5 var(--font-mono);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.draft-note {
  margin: 0 0 2.5rem;
  padding: 1rem 1.25rem;
  background: var(--todo-bg);
  color: var(--todo-text);
  border: 2px dashed var(--orange-text);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
}
.draft-note > :last-child { margin-bottom: 0; }
.draft-note__title {
  margin-bottom: 0.4rem;
  font: 500 0.75rem/1.4 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Page 404 */
.links-grid {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
}
.link-card {
  display: block;
  height: 100%;
  padding: 1.25rem 1.4rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color 0.15s ease;
}
.link-card:hover { border-color: var(--navy); color: var(--text); }
.link-card__k {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--orange-text);
  font: 500 0.75rem/1.4 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.link-card__t { font-weight: 650; font-size: 1.0625rem; }

/* 9. Formulaire -------------------------------------------------------------- */
.form-layout { display: grid; gap: 1.5rem; grid-template-areas: "stepper" "form" "note"; }
.stepper-wrap { grid-area: stepper; }
.form-card { grid-area: form; min-width: 0; }
.aside-note { grid-area: note; }
@media (min-width: 64rem) {
  .form-layout {
    grid-template-columns: 15rem minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    grid-template-areas: "stepper form" "note form";
    column-gap: 3rem;
    row-gap: 2rem;
  }
  .aside-note { align-self: start; }
}

.stepper { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.stepper li { display: flex; flex-direction: column; gap: 0.5rem; color: var(--muted); font: 400 0.75rem/1.3 var(--font-mono); }
.stepper__dot { display: block; height: 4px; border-radius: 2px; background: var(--line-strong); font-size: 0; }
.stepper li[aria-current="step"] { color: var(--text); font-weight: 500; }
.stepper li[aria-current="step"] .stepper__dot { background: var(--navy); }
.stepper li.is-done .stepper__dot { background: var(--orange); }
@media (max-width: 39.99rem) {
  .stepper__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (min-width: 64rem) {
  .stepper { grid-template-columns: 1fr; gap: 0; }
  .stepper li { flex-direction: row; align-items: center; gap: 0.85rem; padding: 0.65rem 0; font-size: 0.8125rem; }
  .stepper__dot {
    display: grid;
    place-items: center;
    flex: none;
    width: 2rem;
    height: 2rem;
    border: 1px solid var(--field-border);
    border-radius: 50%;
    background: var(--surface);
    color: var(--muted);
    font-size: 0.8125rem;
  }
  .stepper li[aria-current="step"] .stepper__dot { border-color: var(--navy); color: #fff; }
  .stepper li.is-done .stepper__dot { border-color: var(--orange); color: var(--navy); }
}

.form-card {
  padding: clamp(1.25rem, 0.75rem + 3vw, 2.5rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.step-count {
  margin: 0 0 0.5rem;
  color: var(--orange-text);
  font: 500 0.8125rem/1.4 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.form-step__title { margin-bottom: 1.5rem; font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); }
.form-step__title:focus { outline: none; }
.form-step__intro { margin-top: -0.75rem; margin-bottom: 1.5rem; color: var(--muted); }

.field { min-width: 0; margin: 0 0 1.5rem; padding: 0; border: 0; }
.field__label { display: block; margin-bottom: 0.4rem; padding: 0; font-size: 1rem; font-weight: 650; }
.req { margin-left: 0.15rem; color: var(--danger); }
.optional { color: var(--muted); font-size: 0.9375rem; font-weight: 400; }
.field__hint { margin: -0.15rem 0 0.6rem; color: var(--muted); font-size: 0.9rem; }
.field__hint--after { margin: 0.45rem 0 0; }

.input {
  display: block;
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 0.85rem;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--field-border);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.input:hover { border-color: var(--text); }
.input:focus-visible { outline: 3px solid var(--text); outline-offset: 1px; border-color: var(--text); }
textarea.input { min-height: 6.5rem; resize: vertical; }
select.input {
  appearance: none;
  padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%231B2440' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.95rem center;
  background-size: 12px 8px;
}
.input[aria-invalid="true"] { border-color: var(--danger); box-shadow: inset 0 0 0 1px var(--danger); }
.input-unit { position: relative; }
.input-unit .input { padding-right: 2.5rem; }
.input-unit__suffix {
  position: absolute;
  top: 50%;
  right: 0.95rem;
  transform: translateY(-50%);
  color: var(--muted);
  font-family: var(--font-mono);
  pointer-events: none;
}

.field-row { display: grid; gap: 0 1rem; }
@media (min-width: 40rem) {
  .field-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field-row--cp { grid-template-columns: 10rem minmax(0, 1fr); }
}

.field__error {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0.5rem 0 0;
  color: var(--danger);
  font-size: 0.9375rem;
  font-weight: 600;
}
.field__error::before {
  content: "!";
  display: grid;
  place-items: center;
  flex: none;
  width: 1.2rem;
  height: 1.2rem;
  margin-top: 0.1rem;
  background: var(--danger);
  color: #fff;
  border-radius: 50%;
  font: 700 0.75rem/1 var(--font-sans);
}

/* Choix (boutons radio et cases sous forme de cartes) */
.choices { display: grid; gap: 0.65rem; }
@media (min-width: 40rem) {
  .choices--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.choice { position: relative; display: block; }
.choice input {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.choice__box {
  position: relative;
  display: block;
  height: 100%;
  padding: 0.95rem 1rem 0.95rem 2.9rem;
  background: var(--surface);
  border: 1px solid var(--field-border);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.choice__box::before {
  content: "";
  position: absolute;
  top: 1.05rem;
  left: 1rem;
  width: 1.15rem;
  height: 1.15rem;
  background: var(--surface);
  border: 2px solid var(--field-border);
  border-radius: 50%;
}
.choice--check .choice__box::before { border-radius: 4px; }
.choice__title { display: block; font-weight: 650; line-height: 1.35; }
.choice__desc { display: block; margin-top: 0.2rem; color: var(--muted); font-size: 0.9rem; line-height: 1.45; }
.choice__tag {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.15rem 0.4rem;
  vertical-align: 0.1em;
  background: var(--orange);
  color: var(--navy);
  border-radius: 3px;
  font: 500 0.6875rem/1.2 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.choice input:hover + .choice__box { border-color: var(--text); }
.choice input:focus-visible + .choice__box { outline: 3px solid var(--text); outline-offset: 2px; }
.choice input:checked + .choice__box { background: #F6F7FA; border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.choice input:checked + .choice__box::before {
  border-color: var(--navy);
  background: radial-gradient(circle, var(--navy) 0 38%, var(--surface) 42%);
}
.choice--check input:checked + .choice__box::before {
  background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 85% no-repeat;
}
.choice input[aria-invalid="true"] + .choice__box { border-color: var(--danger); }
.choice--compact .choice__box { padding-top: 0.8rem; padding-bottom: 0.8rem; }
.choice--compact .choice__box::before { top: 0.9rem; }

.check-field { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.75rem; align-items: start; }
.check-field input { width: 1.35rem; height: 1.35rem; margin: 0.2rem 0 0; accent-color: var(--navy); cursor: pointer; }
.check-field label { cursor: pointer; }

.recap { display: grid; gap: 1rem; margin-bottom: 2rem; }
.recap__section { padding: 1rem 1.25rem; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.recap__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.75rem; }
.recap__title { margin: 0; font-size: 1rem; }
.recap__edit {
  padding: 0.35rem 0;
  background: none;
  border: 0;
  color: var(--text);
  font: 600 0.9375rem/1.2 var(--font-sans);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}
.recap__edit:hover { color: var(--orange-text); }
.recap dl { display: grid; gap: 0.6rem; margin: 0; }
.recap dl > div { display: grid; gap: 0.1rem; }
@media (min-width: 40rem) {
  .recap dl > div { grid-template-columns: 11rem minmax(0, 1fr); gap: 1rem; }
}
.recap dt { color: var(--muted); font: 400 0.75rem/1.7 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; }
.recap dd { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }

.turnstile { min-height: 65px; }
.turnstile:focus { outline: none; }
.form-legal { color: var(--muted); font-size: 0.9rem; }

.form-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.form-nav [data-next],
.form-nav [data-submit] { margin-left: auto; }
.form-status:empty { display: none; }
.form-status { margin-top: 1rem; }

.error-summary {
  margin: 0 0 1.75rem;
  padding: 1.1rem 1.25rem;
  background: var(--danger-bg);
  border: 2px solid var(--danger);
  border-radius: var(--radius-sm);
}
.error-summary:focus { outline: 3px solid var(--text); outline-offset: 2px; }
.error-summary__title { margin: 0 0 0.5rem; color: var(--danger); font-size: 1.0625rem; }
.error-summary ul { margin: 0; padding-left: 1.1rem; }
.error-summary a { color: var(--danger); font-weight: 600; }

.aside-note {
  padding: 1.25rem 1.4rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.9375rem;
}
.aside-note__title {
  margin-bottom: 0.6rem;
  color: var(--orange-text);
  font: 500 0.75rem/1.4 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.aside-note ul { margin: 0 0 1rem; padding-left: 1.1rem; }
.aside-note li + li { margin-top: 0.4rem; }
.aside-note > :last-child { margin-bottom: 0; }

.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* 10. Pages légales ---------------------------------------------------------- */
.legal-layout { display: grid; gap: 2.5rem; }
@media (min-width: 64rem) {
  .legal-layout { grid-template-columns: 15rem minmax(0, 1fr); gap: 4rem; }
  .toc {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
    align-self: start;
    max-height: calc(100vh - var(--header-h) - 4rem);
    overflow-y: auto;
  }
}
.toc { font-size: 0.9375rem; }
.toc__title {
  margin-bottom: 0.75rem;
  color: var(--muted);
  font: 500 0.75rem/1.4 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.toc ol { display: grid; gap: 0.1rem; margin: 0; padding: 0; list-style: none; border-left: 1px solid var(--line); }
.toc a {
  display: block;
  margin-left: -1px;
  padding: 0.3rem 0 0.3rem 1rem;
  color: var(--muted);
  border-left: 2px solid transparent;
  line-height: 1.4;
  text-decoration: none;
}
.toc a:hover { color: var(--text); border-left-color: var(--orange); }

.prose { max-width: 46rem; min-width: 0; }
.prose h2 {
  margin: 3rem 0 1rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
  font-size: clamp(1.3rem, 1.15rem + 0.6vw, 1.6rem);
}
.prose > section:first-of-type > h2,
.prose > p:first-of-type + section > h2 { margin-top: 1rem; }
.prose h3 { margin: 1.75rem 0 0.5rem; font-size: 1.125rem; }
.prose ul,
.prose ol { padding-left: 1.25rem; }
.prose li + li { margin-top: 0.35rem; }
.prose .table-wrap { margin: 1rem 0 1.5rem; }
.legal-box {
  margin: 1rem 0 1.5rem;
  padding: 1.15rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--navy);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.legal-box > :last-child { margin-bottom: 0; }
.legal-box--form { font-size: 0.9375rem; }
.legal-box--draft { background: var(--todo-bg); border-color: var(--orange-text); color: var(--todo-text); }
.id-list { display: grid; gap: 0; margin: 0 0 1rem; border-top: 1px solid var(--line); }
.id-list > div { display: grid; gap: 0.1rem; padding: 0.6rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 40rem) {
  .id-list > div { grid-template-columns: 10rem minmax(0, 1fr); gap: 1rem; }
}
.id-list dt { color: var(--muted); font: 400 0.75rem/1.9 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; }
.id-list dd { margin: 0; }

/* 11. Pied de page ----------------------------------------------------------- */
.site-footer {
  padding: clamp(3rem, 2rem + 4vw, 4.5rem) 0 2rem;
  background: var(--navy);
  color: var(--on-dark-muted);
  font-size: 0.95rem;
}
.footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 48rem) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 64rem) {
  .footer-grid { grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 3rem; }
}
.footer-brand .brand { margin-bottom: 1rem; }
.footer-brand p { max-width: 24rem; }
.footer-title {
  margin: 0 0 1rem;
  color: #fff;
  font: 500 0.75rem/1.4 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.footer-links { display: grid; gap: 0.6rem; margin: 0; padding: 0; list-style: none; }
.on-dark .footer-links a { color: var(--on-dark); text-decoration: none; }
.on-dark .footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--navy-line);
  font: 400 0.78rem/1.6 var(--font-mono);
}
.footer-bottom p { margin: 0; }

/* 12. Bannière de consentement (inactive tant que consent.js n’est pas chargé) */
.consent {
  position: fixed;
  right: var(--gutter);
  bottom: var(--gutter);
  left: var(--gutter);
  z-index: 300;
  max-width: 34rem;
  margin-left: auto;
  padding: 1.25rem 1.25rem 1rem;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(15, 24, 48, 0.25);
}
.consent__title { margin: 0 0 0.5rem; font-size: 1.0625rem; }
.consent p { color: var(--muted); font-size: 0.9375rem; }
.consent__services { display: grid; gap: 0.6rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.consent__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.consent__actions .btn { flex: 1 1 9rem; }
.link-button {
  padding: 0;
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

/* 13. Utilitaires ------------------------------------------------------------ */
[hidden] { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.nowrap { white-space: nowrap; }
.break { overflow-wrap: anywhere; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .site-header, .site-footer, .cta-band, .toc, .skip-link { display: none !important; }
  body { background: #fff; }
  .page-hero { background: none; color: #000; padding: 0 0 1rem; }
  .page-hero::before, .page-hero::after { display: none; }
  .page-hero h1, .legal-meta { color: #000; }
}
