/* ==========================================================================
   Cept. by NECC : site.css
   Tokens et composants. Source de vérité : DESIGN.md.
   ========================================================================== */

/* ---------- Police officielle (fichiers du livrable de charte) ---------- */
@font-face { font-family: "Outfit"; font-weight: 400; font-display: swap; src: url("../../public/brand/fonts/Outfit-Regular.ttf") format("truetype"); }
@font-face { font-family: "Outfit"; font-weight: 500; font-display: swap; src: url("../../public/brand/fonts/Outfit-Medium.ttf") format("truetype"); }
@font-face { font-family: "Outfit"; font-weight: 600; font-display: swap; src: url("../../public/brand/fonts/Outfit-SemiBold.ttf") format("truetype"); }
@font-face { font-family: "Outfit"; font-weight: 700; font-display: swap; src: url("../../public/brand/fonts/Outfit-Bold.ttf") format("truetype"); }

/* ---------- Tokens ---------- */
:root {
  /* Brand */
  --c-orange: #DA673B;

  /* Surfaces */
  --c-white: #FFFFFF;
  --c-soft: #F5F5F5;
  --c-warm: #EAE3E0;
  --c-dark: #212121;

  /* Neutrals */
  --c-grey-300: #E0E0E0;
  --c-grey-500: #9E9E9E;
  --c-grey-700: #616161;

  /* Warm palette */
  --c-warm-300: #D4CBC6;
  --c-warm-500: #A79D97;
  --c-warm-700: #5D5551;

  /* Roles (redéfinis par .surface-*) */
  --bg: var(--c-white);
  --fg: var(--c-dark);
  --fg-2: var(--c-grey-700);
  --line: var(--c-grey-300);

  /* Type */
  --font: "Outfit", sans-serif;
  --fs-h1: clamp(2.75rem, 2rem + 3vw, 3.75rem);
  --fs-h2: clamp(2rem, 1.5rem + 2vw, 2.75rem);
  --fs-h3: clamp(1.5rem, 1.25rem + 1vw, 1.625rem);
  --fs-lead: clamp(1.125rem, 1.05rem + 0.3vw, 1.25rem);

  /* Radius */
  --r-1: 4px;
  --r-2: 8px;
  --r-3: 16px;
  --r-section: 24px;

  /* Motion */
  --t-fast: 150ms;
  --t-normal: 250ms;
  --t-slow: 450ms;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);

  /* Layout */
  --gutter: 32px;
  --pad: 64px;
}

@media (min-width: 768px) {
  :root { --gutter: 64px; --r-section: 40px; --pad: 96px; }
}
@media (min-width: 1280px) {
  :root { --pad: 128px; }
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 104px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--c-dark);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }

h1, h2, h3 { text-wrap: balance; letter-spacing: -0.015em; }
h1 { font-size: var(--fs-h1); font-weight: 700; line-height: 1.02; }
h2 { font-size: var(--fs-h2); font-weight: 700; line-height: 1.08; }
h3 { font-size: var(--fs-h3); font-weight: 600; line-height: 1.15; }
h4 { font-size: 1.125rem; font-weight: 600; line-height: 1.3; }

@media (min-width: 640px) {
  .line { display: block; }
}

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

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 200;
  padding: 12px 16px; background: var(--c-dark); color: var(--c-white);
  border-radius: var(--r-2);
}
.skip-link:focus { top: 16px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

/* ---------- Layout ---------- */
.container {
  width: min(100% - var(--gutter), 1280px);
  margin-inline: auto;
}

main { position: relative; z-index: 1; }

/* Sections : fond plein, bas arrondi qui laisse voir la surface suivante
   (signature groupe-necc.com). Les premières passent au-dessus des suivantes. */
.section {
  position: relative;
  background: var(--bg);
  color: var(--fg);
  padding-block: var(--pad);
  border-radius: 0 0 var(--r-section) var(--r-section);
}
.section + .section {
  margin-top: calc(-1 * var(--r-section));
  padding-top: calc(var(--pad) + var(--r-section));
}
main > .section:nth-child(1) { z-index: 12; }
main > .section:nth-child(2) { z-index: 11; }
main > .section:nth-child(3) { z-index: 10; }
main > .section:nth-child(4) { z-index: 9; }
main > .section:nth-child(5) { z-index: 8; }
main > .section:nth-child(6) { z-index: 7; }
main > .section:nth-child(7) { z-index: 6; }
main > .section:nth-child(8) { z-index: 5; }
main > .section:nth-child(9) { z-index: 4; }
main > .section:nth-child(10) { z-index: 3; }
main > .section:nth-child(11) { z-index: 2; }
main > .section:nth-child(12) { z-index: 1; }

.section--tight { --pad: 48px; }
@media (min-width: 768px) { .section--tight { --pad: 64px; } }

.surface-white { --bg: var(--c-white); --fg: var(--c-dark); --fg-2: var(--c-grey-700); --line: var(--c-grey-300); }
.surface-soft  { --bg: var(--c-soft);  --fg: var(--c-dark); --fg-2: var(--c-grey-700); --line: var(--c-grey-300); }
.surface-warm  { --bg: var(--c-warm);  --fg: var(--c-dark); --fg-2: var(--c-warm-700); --line: var(--c-warm-300); }
.surface-dark  { --bg: var(--c-dark);  --fg: var(--c-white); --fg-2: var(--c-warm-300); --line: var(--c-grey-700); }

/* ---------- Typo utilitaires ---------- */
.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-size: 0.875rem; font-weight: 500; line-height: 1.4;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--fg-2);
}
.eyebrow::before {
  content: ""; flex: none; width: 24px; height: 2px; background: var(--c-orange);
}

.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--fg-2); max-width: 52ch; }
.text { color: var(--fg-2); max-width: 65ch; }
.text + .text { margin-top: 16px; }
.statement {
  font-size: var(--fs-h3); font-weight: 700; line-height: 1.2;
  letter-spacing: -0.015em; text-wrap: balance; max-width: 26ch;
}

.section-head { display: grid; gap: 24px; margin-bottom: 48px; }
.section-head .eyebrow { margin-bottom: -8px; }
@media (min-width: 1024px) {
  .section-head { grid-template-columns: 7fr 5fr; column-gap: 32px; align-items: end; margin-bottom: 80px; }
  .section-head .eyebrow { grid-column: 1 / -1; }
}

/* ---------- Boutons & liens ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px;
  border: 1px solid transparent; border-radius: var(--r-3);
  font-size: 1rem; font-weight: 600; line-height: 1.2; text-decoration: none;
  cursor: pointer;
  transition: background-color var(--t-normal) var(--ease), color var(--t-normal) var(--ease), border-color var(--t-normal) var(--ease);
}
.btn--primary { background: var(--c-orange); color: var(--c-white); }
.btn--primary:hover { background: var(--c-dark); }
.surface-dark .btn--primary:hover { background: var(--c-white); color: var(--c-dark); }

.btn--outline { border-color: var(--fg); color: var(--fg); background: transparent; }
.btn--outline:hover { background: var(--fg); color: var(--bg); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-weight: 600; text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px; background-position: 0 calc(100% - 8px); background-repeat: no-repeat;
}
.link-arrow::after {
  content: "→"; transition: transform var(--t-normal) var(--ease);
}
.link-arrow:hover::after { transform: translateX(4px); }
.link-arrow[target="_blank"]::after { content: "↗"; }
.link-arrow[target="_blank"]:hover::after { transform: translate(2px, -2px); }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }

/* Choix du rendez-vous : « Réserver pour » fiscalité ou financement (options au style des réponses du test) */
.booking-choice { position: relative; }
.booking-choice__chevron { display: inline-block; transition: transform var(--t-fast) var(--ease); }
[aria-expanded="true"] > .booking-choice__chevron { transform: rotate(180deg); }
.booking-choice__menu {
  position: absolute; left: 0; top: calc(100% + 8px); z-index: 30;
  display: grid; gap: 8px; width: min(360px, calc(100vw - 2 * var(--gutter)));
  padding: 16px; background: var(--c-white); color: var(--c-dark);
  border: 1px solid var(--c-grey-300); border-radius: var(--r-3);
  box-shadow: 0 18px 40px -24px rgba(33, 33, 33, 0.35);
}
.booking-choice__menu[hidden] { display: none; }
.booking-choice__menu.is-up { top: auto; bottom: calc(100% + 8px); }
.booking-choice__label {
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-grey-700);
}
.booking-choice__option {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 16px; border: 1px solid var(--c-grey-300); border-radius: var(--r-2);
  font-weight: 600; line-height: 1.3; text-decoration: none;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.booking-choice__option small { display: block; margin-top: 2px; font-size: 0.875rem; font-weight: 400; color: var(--c-grey-700); }
.booking-choice__option:hover, .booking-choice__option:focus-visible { border-color: var(--c-orange); box-shadow: inset 0 0 0 1px var(--c-orange); }

/* ---------- Header ---------- */
cept-header { display: block; position: sticky; top: 12px; z-index: 100; min-height: 66px; margin-top: 12px; }

.header__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 66px; padding: 8px 8px 8px 16px;
  background: var(--c-white); border: 1px solid var(--c-grey-300); border-radius: var(--r-3);
}
/* Zone de protection du logo : 1/4 de sa hauteur (charte p. 6) */
.header__logo { display: flex; align-items: center; flex: none; min-height: 48px; padding: 0 10px; }
.header__logo img { height: 44px; width: auto; }

.header__nav { display: none; }
.header__list { display: flex; align-items: center; gap: 4px; }
.header__link {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px;
  background: none; border: 0; border-radius: var(--r-2); cursor: pointer;
  font-size: 1rem; text-decoration: none; color: var(--c-dark); white-space: nowrap;
  transition: color var(--t-fast) var(--ease);
}
.header__link:hover { color: var(--c-warm-700); }
.header__cta { white-space: nowrap; }
.header__link[aria-current="page"], .header__link[data-active] { font-weight: 600; }
.header__link[aria-current="page"]::before, .header__link[data-active]::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c-orange);
}
.header__chevron { width: 10px; height: 6px; transition: transform var(--t-normal) var(--ease); }
[aria-expanded="true"] > .header__chevron { transform: rotate(180deg); }

/* Méga-menu « Expertises » : panneau pleine largeur sous la barre, comme groupe-necc.com */
.header__mega {
  position: absolute; left: 0; right: 0; top: 100%; margin-top: 8px; padding: 28px 48px;
  background: var(--c-white); border: 1px solid var(--c-grey-300); border-radius: var(--r-3);
}
/* Pont invisible au-dessus du panneau : le survol ne se perd pas entre la barre et le menu */
.header__mega::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.header__mega-list { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-flow: column; grid-template-rows: repeat(3, auto); gap: 4px 32px; }
.header__mega-link {
  display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 8px;
  border-radius: var(--r-2); text-decoration: none; color: var(--c-dark);
  transition: color var(--t-fast) var(--ease);
}
.header__mega-arrow { transition: transform var(--t-normal) var(--ease); }
.header__mega-link:hover, .header__mega-link.is-all { color: var(--c-orange); }
.header__mega-link:hover .header__mega-arrow { transform: translateX(4px); }
.header__mega-link[aria-current="page"] { font-weight: 600; }

.header__aside { display: flex; align-items: center; gap: 8px; }
.header__group { display: none; color: var(--c-grey-700); }
.header__cta { display: none; }

.header__toggle {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 16px;
  background: var(--c-dark); color: var(--c-white); border: 0; border-radius: var(--r-3);
  font-weight: 600; cursor: pointer;
}
.header__toggle-icon { display: grid; gap: 5px; width: 16px; }
.header__toggle-icon span { height: 2px; background: currentColor; transition: transform var(--t-normal) var(--ease); }
[aria-expanded="true"] .header__toggle-icon span:first-child { transform: translateY(3.5px) rotate(45deg); }
[aria-expanded="true"] .header__toggle-icon span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

cept-header > header { position: relative; }
.header__panel {
  position: absolute; left: 0; right: 0; top: 100%;
  margin-top: 8px; padding: 24px;
  background: var(--c-white); border: 1px solid var(--c-grey-300); border-radius: var(--r-3);
  max-height: calc(100dvh - 110px); overflow: auto;
}
.header__panel a { text-decoration: none; }
.header__panel-list > li { border-bottom: 1px solid var(--c-grey-300); }
.header__panel-list > li > a, .header__panel-title {
  display: flex; align-items: center; min-height: 56px; font-size: 1.25rem; font-weight: 600;
}
.header__panel-title { color: var(--c-grey-700); font-size: 0.875rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; min-height: 44px; margin-top: 8px; }
.header__panel-sub { padding-bottom: 12px; }
.header__panel-sub a { display: flex; align-items: center; gap: 12px; min-height: 44px; font-size: 1.125rem; font-weight: 600; }
.header__panel-sub a.is-all { color: var(--c-orange); }
.header__panel .btn { width: 100%; margin-top: 24px; }
.header__panel .link-arrow { margin-top: 12px; color: var(--c-grey-700); font-weight: 500; }

/* Navigation complète à partir de 1280px : six entrées (calquées sur groupe-necc.com)
   et le bouton « Tester mon éligibilité » tiennent sur une ligne. Le contact et le lien
   du groupe restent dans le menu mobile, le pied de page et les blocs de rendez-vous. */
@media (min-width: 1280px) {
  .header__nav { display: block; }
  .header__cta { display: inline-flex; }
  .header__cta--contact, .header__group { display: none; }
  .header__toggle, .header__panel { display: none; }
}

/* ---------- Hero ---------- */
.hero { padding-top: 48px; overflow: clip; }
@media (min-width: 1024px) { .hero { padding-top: 80px; } }

.hero__grid { display: grid; gap: 48px; }
.hero__copy { display: grid; gap: 24px; align-content: start; }
.hero__copy .actions { margin-top: 16px; }
.hero__media { position: relative; }
.hero__media img {
  position: relative; width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--r-3);
}
@media (min-width: 1024px) {
  .hero__grid { grid-template-columns: 7fr 5fr; column-gap: 32px; align-items: end; }
  .hero__copy { padding-bottom: 24px; }
  .hero__media img { aspect-ratio: 1 / 1; }
  /* Motif NECC en retrait derrière la photo, desktop uniquement */
  .hero__media::before {
    content: ""; position: absolute; left: -72px; bottom: -120px; width: 220px; height: 430px;
    background: var(--motif, none) no-repeat center / contain;
  }
}

/* Hero des pages intérieures */
.hero--page .hero__media img { aspect-ratio: 4 / 3; }
@media (min-width: 1024px) { .hero--page .hero__media img { aspect-ratio: 1 / 1; } }
.hero--text .hero__copy { max-width: 900px; }

/* ---------- Logos ---------- */
.logos { display: grid; gap: 24px; margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--line); }
.logos__list { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 48px; }
.logos__list img { height: 32px; width: auto; max-width: 150px; object-fit: contain; }
.logos__list img.is-square { height: 56px; }
.logos--lg .logos__list img { height: 44px; max-width: 170px; }
@media (min-width: 1024px) {
  .logos { grid-template-columns: 220px 1fr; align-items: center; margin-top: 96px; }
  .logos__list { justify-content: space-between; }
}

/* ---------- Rows : liste numérotée à filets ---------- */
.rows { border-bottom: 1px solid var(--line); }
.row {
  position: relative;
  display: grid; grid-template-columns: 56px 1fr; column-gap: 16px; row-gap: 8px;
  padding-block: 24px; border-top: 1px solid var(--line);
}
.num {
  font-size: var(--fs-h3); font-weight: 500; line-height: 1.15;
  color: var(--c-orange); font-variant-numeric: tabular-nums;
}
.row__title { font-size: var(--fs-h3); font-weight: 600; line-height: 1.15; letter-spacing: -0.015em; }
.row__title a { text-decoration: none; }
.row__title a::after { content: ""; position: absolute; inset: 0; }
.row__text { grid-column: 2; color: var(--fg-2); max-width: 60ch; }
.row__arrow { display: none; }

.rows--date .row { grid-template-columns: 1fr; }
.rows--date .row__text { grid-column: auto; }
.row__meta { font-size: 0.875rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-2); }

@media (min-width: 1024px) {
  .row { grid-template-columns: 96px 1fr; padding-block: 32px; }
  .rows--wide .row { grid-template-columns: 96px 5fr 6fr 48px; column-gap: 32px; align-items: baseline; }
  .rows--wide .row__text { grid-column: auto; }
  .rows--wide .row__arrow {
    display: block; justify-self: end; font-size: 1.5rem; line-height: 1;
    transition: transform var(--t-normal) var(--ease), color var(--t-normal) var(--ease);
  }
  .rows--wide .row:hover .row__arrow { transform: translateX(6px); color: var(--c-orange); }
  .rows--date .row { grid-template-columns: 200px 5fr 6fr 48px; }
}
.row:has(a):hover .row__title { color: var(--c-warm-700); }
.surface-dark .row:has(a):hover .row__title { color: var(--c-warm-300); }
.row__title { transition: color var(--t-fast) var(--ease); }

/* Lignes sans numéro (offres) : titre, texte, flèche */
.rows--nonum .row { grid-template-columns: 1fr; }
.rows--nonum .row__text { grid-column: auto; }
.row__sub { display: block; margin-top: 4px; font-size: 1rem; font-weight: 500; letter-spacing: 0; color: var(--c-orange); }
@media (min-width: 1024px) { .rows--wide.rows--nonum .row { grid-template-columns: 5fr 6fr 48px; } }

/* Résultat concret d'une étape de méthode (page Notre approche) */
.row__deliverable { grid-column: 2; font-weight: 500; max-width: 60ch; }
.row__deliverable span { display: block; margin-bottom: 4px; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-2); }
@media (min-width: 1024px) {
  .method .row { grid-template-columns: 96px 4fr 5fr 3fr; column-gap: 32px; align-items: baseline; }
  .method .row__text, .method .row__deliverable { grid-column: auto; }
}

/* ---------- Facts : l'essentiel d'un dispositif (pages CIR, CII, JEI, CIMA) ---------- */
.facts { display: grid; gap: 0; border-bottom: 1px solid var(--line); }
.facts > div { display: grid; gap: 8px; padding-block: 24px; border-top: 1px solid var(--line); }
.facts dt { font-size: 0.875rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-2); }
.facts dd { font-size: 1.25rem; font-weight: 600; line-height: 1.35; max-width: 60ch; }
@media (min-width: 768px) { .facts > div { grid-template-columns: 220px 1fr; column-gap: 32px; align-items: baseline; } }

/* ---------- Offers : grille des six offres ----------
   Tuiles à filet, sans ombre ; le domaine en surtitre relie l'offre à sa stratégie. */
.offers { display: grid; gap: 16px; }
.offer {
  position: relative; display: grid; grid-template-rows: auto auto 1fr auto; gap: 12px;
  padding: 28px; background: var(--c-white); border: 1px solid var(--line); border-radius: var(--r-3);
  transition: border-color var(--t-normal) var(--ease);
}
.offer:hover { border-color: var(--fg); }
.offer__domain { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-2); }
.offer__title { font-size: 1.5rem; font-weight: 600; line-height: 1.2; letter-spacing: -0.015em; }
.offer__title a { text-decoration: none; color: var(--c-dark); }
.offer__title a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-3); }
.offer__short { display: block; margin-top: 4px; font-size: 1rem; font-weight: 500; color: var(--c-orange); letter-spacing: 0; }
.offer__text { color: var(--c-grey-700); }
.offer__arrow { justify-self: end; font-size: 1.25rem; color: var(--c-dark); transition: transform var(--t-normal) var(--ease); }
.offer:hover .offer__arrow { transform: translateX(4px); }
@media (min-width: 640px) { .offers { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .offers { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  /* Tuile seule sur la dernière ligne : elle prend toute la largeur */
  .offer:last-child:nth-child(3n + 1) { grid-column: 1 / -1; }
}

/* ---------- Simulateur CIR / CII ---------- */
cept-simulator { display: block; }
.sim { display: grid; gap: 32px; }
.sim__type { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; padding: 0; border: 0; }
.sim__type legend { width: 100%; margin-bottom: 12px; }
.sim__label { display: block; margin-bottom: 8px; font-size: 0.875rem; font-weight: 500; color: var(--fg-2); }
.sim__choice { position: relative; flex: 1 1 240px; cursor: pointer; }
.sim__choice input { position: absolute; opacity: 0; }
.sim__choice span {
  display: block; min-height: 44px; padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--r-3);
  font-weight: 600; transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.sim__choice small { display: block; font-size: 0.875rem; font-weight: 400; color: var(--fg-2); }
.sim__choice input:checked + span { border-color: var(--c-orange); box-shadow: inset 0 0 0 1px var(--c-orange); }
.sim__choice input:focus-visible + span { outline: 2px solid var(--fg); outline-offset: 3px; }
.sim__fields { display: grid; gap: 20px; }
.sim__field input {
  width: 100%; min-height: 52px; padding: 0 16px; font: inherit; font-size: 1.125rem; color: var(--c-dark);
  background: var(--c-white); border: 1px solid var(--line); border-radius: var(--r-2);
}
.sim__field input:focus-visible { outline: 2px solid var(--c-orange); outline-offset: 1px; }
.sim__result { display: grid; gap: 16px; align-content: start; padding: 32px; background: var(--c-dark); color: var(--c-white); border-radius: var(--r-3); }
.sim__result .sim__label { color: var(--c-warm-300); margin: 0; }
.sim__amount { font-size: var(--fs-h1); font-weight: 700; line-height: 1; letter-spacing: -0.02em; }
.sim__detail > div { display: flex; justify-content: space-between; gap: 16px; padding-block: 8px; border-top: 1px solid var(--c-grey-700); font-size: 0.9375rem; }
.sim__detail > div[hidden] { display: none; }
.sim__detail dt { color: var(--c-warm-300); }
.sim__detail dd { font-weight: 600; white-space: nowrap; }
.sim__result .btn { justify-self: start; margin-top: 8px; }
.sim__result .btn--primary:hover { background: var(--c-white); color: var(--c-dark); }
.sim__note { font-size: 0.8125rem; color: var(--c-warm-300); }
@media (min-width: 1024px) {
  .sim { grid-template-columns: 7fr 5fr; column-gap: 48px; align-items: start; }
  .sim__type, .sim__fields { grid-column: 1; }
  .sim__result { grid-column: 2; grid-row: 1 / span 2; }
}

/* ---------- Test d'éligibilité CIR / CII : une question par écran ---------- */
cept-eligibility { display: block; }
.quiz { max-width: 760px; margin-inline: auto; padding: 24px; background: var(--c-white); border: 1px solid var(--c-grey-300); border-radius: var(--r-3); color: var(--c-dark); }
.quiz__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; }
.quiz__count { font-size: 0.875rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-grey-700); }
.quiz__back { min-height: 44px; padding: 0 4px; background: none; border: 0; font: inherit; font-weight: 600; color: var(--c-dark); cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.quiz__back:hover { color: var(--c-orange); }
.quiz__bar { height: 4px; margin: 8px 0 32px; background: var(--c-grey-300); border-radius: 2px; overflow: hidden; }
.quiz__bar span { display: block; height: 100%; background: var(--c-orange); transition: width var(--t-normal) var(--ease); }
.quiz__question { font-size: var(--fs-h3); font-weight: 600; line-height: 1.2; letter-spacing: -0.015em; }
.quiz__question:focus { outline: none; }
.quiz__options { display: grid; gap: 12px; margin-top: 24px; }
.quiz__option {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: 100%; min-height: 64px; padding: 14px 20px; text-align: left;
  background: var(--c-white); border: 1px solid var(--c-grey-300); border-radius: var(--r-3);
  font: inherit; font-weight: 600; color: var(--c-dark); cursor: pointer;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.quiz__option small { display: block; margin-top: 2px; font-size: 0.875rem; font-weight: 400; color: var(--c-grey-700); }
.quiz__option:hover, .quiz__option[aria-pressed="true"] { border-color: var(--c-orange); box-shadow: inset 0 0 0 1px var(--c-orange); }
.quiz__option:focus-visible { outline: 2px solid var(--c-dark); outline-offset: 3px; }
.quiz__arrow { flex: none; transition: transform var(--t-normal) var(--ease); }
.quiz__option:hover .quiz__arrow { transform: translateX(4px); color: var(--c-orange); }
.quiz--result { display: grid; gap: 28px; }
.quiz--result .quiz__bar { margin: -20px 0 0; }
.quiz__verdicts { border-bottom: 1px solid var(--c-grey-300); }
.quiz__verdicts > div { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; border-top: 1px solid var(--c-grey-300); font-weight: 600; }
.quiz__badge { flex: none; padding: 6px 14px; border: 1px solid var(--c-grey-300); border-radius: var(--r-2); font-size: 0.875rem; color: var(--c-grey-700); }
.quiz__badge[data-level="oui"] { background: var(--c-orange); border-color: var(--c-orange); color: var(--c-white); }
.quiz__badge[data-level="verif"] { border-color: var(--c-dark); color: var(--c-dark); }
.quiz__subtitle { margin-bottom: 12px; font-size: 0.875rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-grey-700); }
.quiz__note { font-size: 0.8125rem; color: var(--c-grey-700); }
/* Coordonnées, demandées juste avant le résultat */
.quiz__intro { margin-top: 12px; color: var(--c-grey-700); max-width: 56ch; }
.quiz__form { display: grid; gap: 20px; margin-top: 24px; }
.quiz__fields { display: grid; gap: 16px; }
.quiz__field { display: grid; gap: 6px; font-size: 0.875rem; font-weight: 500; color: var(--c-grey-700); }
.quiz__field small { font-weight: 400; }
.quiz__field input {
  width: 100%; min-height: 52px; padding: 0 16px; font: inherit; font-size: 1rem; color: var(--c-dark);
  background: var(--c-white); border: 1px solid var(--c-grey-300); border-radius: var(--r-2);
}
.quiz__field input:focus-visible { outline: 2px solid var(--c-orange); outline-offset: 1px; border-color: var(--c-orange); }
.quiz__consent { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; font-size: 0.875rem; color: var(--c-grey-700); cursor: pointer; }
.quiz__consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--c-orange); }
.quiz__consent a { color: var(--c-dark); }
.quiz__form .btn { justify-self: start; }
@media (min-width: 640px) {
  .quiz__fields { grid-template-columns: 1fr 1fr; }
  .quiz__field--wide { grid-column: 1 / -1; }
}
@media (min-width: 768px) { .quiz { padding: 40px; } }

/* Champ piège anti-robot : invisible à l'écran et pour les lecteurs d'écran,
   rempli seulement par un automate. Voir lead.php. */
.hp { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Zone de message du formulaire de contact, alignée sur les champs du test */
.quiz__field textarea {
  width: 100%; min-height: 132px; padding: 14px 16px; font: inherit; font-size: 1rem; color: var(--c-dark);
  background: var(--c-white); border: 1px solid var(--c-grey-300); border-radius: var(--r-2); resize: vertical;
}
.quiz__field textarea:focus-visible { outline: 2px solid var(--c-orange); outline-offset: 1px; border-color: var(--c-orange); }
.quiz__error { margin: 0; font-size: 0.875rem; color: #B3261E; }

/* Principe de rémunération dans une ligne (page Tarifs) */
.price { margin-bottom: 8px; font-size: var(--fs-h3); font-weight: 600; line-height: 1.2; letter-spacing: -0.015em; color: var(--fg); }

/* Rows sans numéro (principes) */
.rows--plain .row { grid-template-columns: 1fr; }
.rows--plain .row__text { grid-column: auto; }
.rows--plain .row__title { font-size: 1.25rem; }
@media (min-width: 768px) {
  .rows--plain .row { grid-template-columns: 5fr 7fr; column-gap: 32px; align-items: baseline; }
}

/* ---------- Split : média + contenu ---------- */
.split { display: grid; gap: 48px; }
.split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-3); }
.split__body { display: grid; gap: 32px; align-content: start; }
@media (min-width: 1024px) {
  .split { grid-template-columns: 5fr 7fr; column-gap: 64px; align-items: start; }
  .split--reverse { grid-template-columns: 7fr 5fr; }
  .split--reverse .split__media { order: 2; }
  .split__media { position: sticky; top: 112px; }
  .split__media img { aspect-ratio: 4 / 5; }
}

/* ---------- Stages : trajectoire ---------- */
.stages { border-bottom: 1px solid var(--line); }
.stage__btn {
  display: grid; grid-template-columns: 56px 1fr 24px; align-items: baseline; column-gap: 16px;
  width: 100%; min-height: 72px; padding: 20px 0;
  background: none; border: 0; border-top: 1px solid var(--line);
  text-align: left; cursor: pointer;
}
.stage__name { font-size: var(--fs-h3); font-weight: 600; line-height: 1.15; letter-spacing: -0.015em; }
.stage__mark { justify-self: end; font-size: 1.5rem; line-height: 1; transition: transform var(--t-normal) var(--ease); }
.stage__btn[aria-expanded="true"] .stage__mark { transform: rotate(45deg); }
.stage__panel { display: grid; gap: 24px; padding: 8px 0 40px; }
.stage__panel[hidden] { display: none; }
.stage__label { font-size: 0.875rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-2); margin-bottom: 8px; }
.stage__situation { font-size: var(--fs-h3); font-weight: 600; line-height: 1.2; letter-spacing: -0.015em; text-wrap: balance; }
.stage__answer { color: var(--fg-2); max-width: 55ch; font-size: var(--fs-lead); line-height: 1.55; }
.stage__panel .link-arrow { justify-self: start; }

@media (min-width: 1024px) {
  .stages { display: grid; grid-template-columns: repeat(5, 1fr); border-bottom: 0; }
  .stage { display: contents; }
  .stage__btn {
    grid-row: 1; grid-template-columns: 1fr; row-gap: 8px; align-content: start;
    padding: 20px 16px 28px 0; border-top-width: 2px;
    transition: border-color var(--t-normal) var(--ease), color var(--t-normal) var(--ease);
  }
  .stage:nth-child(1) .stage__btn { grid-column: 1; }
  .stage:nth-child(2) .stage__btn { grid-column: 2; }
  .stage:nth-child(3) .stage__btn { grid-column: 3; }
  .stage:nth-child(4) .stage__btn { grid-column: 4; }
  .stage:nth-child(5) .stage__btn { grid-column: 5; }
  .stage__mark { display: none; }
  .stage__btn .num { font-size: 1.125rem; color: var(--fg-2); }
  .stage__btn[aria-expanded="false"] { color: var(--c-grey-700); }
  .stage__btn[aria-expanded="false"]:hover { color: var(--fg); border-top-color: var(--fg); }
  .stage__btn[aria-expanded="true"] { border-top-color: var(--c-orange); }
  .stage__btn[aria-expanded="true"] .num { color: var(--c-orange); }
  .stage__panel {
    grid-column: 1 / -1; grid-template-columns: 5fr 5fr 2fr; column-gap: 32px;
    padding: 48px 0 0; border-top: 1px solid var(--line);
  }
  .stage__panel .link-arrow { justify-self: end; align-self: end; }
}

/* ---------- Quote ---------- */
.quote { display: grid; gap: 32px; align-content: start; }
.quote__text {
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.5rem); font-weight: 500; line-height: 1.25;
  letter-spacing: -0.015em; text-wrap: pretty; max-width: 30ch;
}
.quote--sm .quote__text { font-size: 1.125rem; font-weight: 400; line-height: 1.6; letter-spacing: 0; max-width: 55ch; }
.quote__author { display: flex; align-items: center; gap: 16px; }
.quote__author img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; }
.quote__name { font-size: 1rem; font-weight: 600; }
/* Avis : le nom de l'auteur reste discret, la citation porte le message */
.rows--reviews .row__title { font-size: 1rem; font-weight: 600; letter-spacing: 0; line-height: 1.4; }
.quote__role { color: var(--fg-2); font-size: 0.9375rem; }

.proof { display: grid; gap: 64px; }
.proof__more { display: grid; gap: 48px; padding-top: 48px; border-top: 1px solid var(--line); }
.proof__more .quote { grid-template-rows: 1fr auto; }
@media (min-width: 1024px) {
  .proof { grid-template-columns: 4fr 8fr; column-gap: 32px; }
  .proof .quote__text { max-width: 28ch; }
  .proof__more { grid-column: 2; grid-template-columns: 1fr 1fr; column-gap: 48px; }
}

/* ---------- Rating (note Google) ---------- */
.rating { display: grid; justify-items: start; padding-top: 24px; border-top: 1px solid var(--line); }
.rating__value { font-size: var(--fs-h1); font-weight: 700; line-height: 1; letter-spacing: -0.02em; }
.rating__label { margin: 12px 0 8px; color: var(--fg-2); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 24px; }
.stat { padding-top: 24px; border-top: 1px solid var(--line); }
.stat__value { font-size: var(--fs-h1); font-weight: 700; line-height: 1; letter-spacing: -0.02em; }
.stat__label { margin-top: 12px; color: var(--fg-2); max-width: 22ch; }
/* Note client : cinq étoiles orange à la hauteur des chiffres voisins */
.stat__stars { display: flex; align-items: center; gap: 0.04em; height: 1em; color: var(--c-orange); }
.stat__stars svg { display: block; flex: none; width: 0.66em; height: 0.66em; }
@media (min-width: 1024px) {
  .stats { grid-template-columns: repeat(4, 1fr); column-gap: 32px; }
  .stats:has(> :nth-child(3):last-child) { grid-template-columns: repeat(3, 1fr); }
}

.figures { display: grid; gap: 32px; margin-top: 80px; }
@media (min-width: 1024px) { .figures { margin-top: 112px; } }

/* ---------- FAQ ---------- */
.faq { border-bottom: 1px solid var(--line); }
.faq details { border-top: 1px solid var(--line); }
.faq summary {
  display: grid; grid-template-columns: 1fr 24px; column-gap: 24px; align-items: baseline;
  padding: 24px 0; cursor: pointer; list-style: none;
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.5rem); font-weight: 600; line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; justify-self: end; font-size: 1.5rem; font-weight: 400; line-height: 1;
  transition: transform var(--t-normal) var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq__answer { padding: 0 48px 32px 0; color: var(--fg-2); max-width: 65ch; }
.faq__answer p + p { margin-top: 12px; }
.faq__answer strong { color: var(--fg); font-weight: 600; }

.cols { display: grid; gap: 32px; }
@media (min-width: 1024px) {
  .cols { grid-template-columns: 4fr 8fr; column-gap: 32px; align-items: start; }
  .cols--even { grid-template-columns: 1fr 1fr; column-gap: 64px; }
  .cols--lead { grid-template-columns: 7fr 5fr; column-gap: 64px; }
  .cols__aside { position: sticky; top: 112px; }
}
.cols__aside { display: grid; gap: 24px; align-content: start; }

/* ---------- Inline list (périmètre) ---------- */
.inline-list { display: flex; flex-wrap: wrap; gap: 8px 0; font-size: var(--fs-h3); font-weight: 600; line-height: 1.2; letter-spacing: -0.015em; }
.inline-list li:not(:last-child)::after { content: "·"; margin-inline: 16px; color: var(--c-orange); }

.checklist { display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 28px; max-width: 60ch; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 0.8em; width: 16px; height: 2px; background: var(--c-orange); }

/* ---------- Table (formules) ---------- */
/* position: relative pour que les libellés .visually-hidden du tableau restent dans la zone défilante */
.table-wrap { position: relative; overflow-x: auto; max-width: 100%; }
cept-formules { min-width: 0; max-width: 100%; }
.table { width: 100%; min-width: 640px; border-collapse: collapse; text-align: left; }
.table th, .table td { padding: 16px 16px 16px 0; border-bottom: 1px solid var(--line); vertical-align: baseline; }
.table thead th { padding-bottom: 24px; border-bottom-color: var(--fg); font-weight: 400; color: var(--fg-2); }
.table thead strong { display: block; font-size: var(--fs-h3); font-weight: 600; color: var(--fg); letter-spacing: -0.015em; }
.table tbody th { font-weight: 400; max-width: 44ch; }
.table .table__group th { padding-top: 40px; font-size: 0.875rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-2); }
.table td { width: 16%; font-weight: 600; }
.table--2 td { width: 22%; }
/* Comparatif en texte (page Agrément) : colonnes égales, texte courant */
.table--compare td { width: 36%; font-weight: 400; color: var(--fg-2); }
.table--compare td strong { color: var(--fg); font-weight: 600; }
.table--compare tbody th { font-weight: 500; }
.table thead strong { white-space: nowrap; }
.table__price { display: block; margin-top: 6px; font-size: 1.25rem; font-weight: 700; color: var(--c-orange); white-space: nowrap; }
.table td.is-off { color: var(--c-grey-700); font-weight: 400; }

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 24px; }
/* Portraits officiels : déjà détourés en cercle, affichés sans recadrage */
.team img { width: 120px; height: 120px; object-fit: contain; object-position: left bottom; margin-bottom: 16px; }
.team__name { font-size: 1.25rem; font-weight: 600; line-height: 1.3; }
.team__role { color: var(--fg-2); }
@media (min-width: 1024px) { .team { grid-template-columns: repeat(4, 1fr); column-gap: 32px; } }

/* ---------- Marquee : logos clients défilants ----------
   Animation en boucle demandée explicitement (exception à DESIGN.md « Motion »).
   Pause au survol, au focus et par bouton ; à l'arrêt si prefers-reduced-motion. */
cept-clients, cept-formules, cept-stats, cept-rating, cept-stages, cept-expertises { display: block; }
.marquee__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.marquee__toggle {
  flex: none; min-height: 44px; padding: 0 4px; background: none; border: 0; cursor: pointer; white-space: nowrap;
  font-size: 0.875rem; font-weight: 500; color: var(--fg-2);
  text-decoration: underline; text-underline-offset: 4px;
}
.marquee__toggle:hover { color: var(--fg); }
.marquee { overflow: hidden; }
.marquee__track { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.marquee:hover .marquee__track, .marquee__track.is-paused { animation-play-state: paused; }
.marquee__group { display: flex; gap: 16px; padding-right: 16px; }
.marquee__lead { margin-top: 12px; font-size: var(--fs-lead); line-height: 1.4; max-width: 46ch; }
/* Tuiles toutes blanches, logos en niveaux de gris : un seul traitement pour tous. */
.logo-tile {
  display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 12px;
  flex: none; width: 208px; height: 136px; padding: 22px 28px 14px;
  background: var(--c-white); border-radius: var(--r-3); text-decoration: none;
}
.logo-tile img {
  width: 100%; height: 100%; min-height: 0; object-fit: contain;
  filter: grayscale(1); opacity: 0.85;
  transition: filter var(--t-normal) var(--ease), opacity var(--t-normal) var(--ease);
}
.marquee__group > li { flex: none; }
.logo-tile:hover img, .logo-tile:focus-visible img { filter: none; opacity: 1; }.logo-tile--invert img, .logo-tile--invert:hover img { filter: invert(1) grayscale(1); }
.logo-tile__sector {
  font-size: 0.75rem; font-weight: 500; line-height: 1.3; letter-spacing: 0.08em;
  text-transform: uppercase; text-align: center; white-space: nowrap; color: var(--c-grey-700);
}
@keyframes marquee { to { transform: translateX(-50%); } }
@media (max-width: 767px) { .logo-tile { width: 176px; height: 120px; padding: 18px 20px 12px; } }
/* Avis clients défilants (accueil, surface sombre) */
cept-reviews { display: block; }
.reviews-head { display: grid; gap: 32px; margin-bottom: 16px; }
.reviews-head__title { display: grid; gap: 24px; }
@media (min-width: 1024px) {
  .reviews-head { grid-template-columns: 7fr 4fr; column-gap: 32px; align-items: end; }
}
.marquee__head--end { justify-content: flex-end; margin-bottom: 24px; }
.marquee--slow .marquee__track { animation-duration: 90s; }
.review-card {
  display: grid; grid-template-rows: auto 1fr auto; gap: 20px;
  flex: none; width: 360px; padding: 32px;
  border: 1px solid var(--line); border-radius: var(--r-3);
}
.review-card__stars { color: var(--c-orange); letter-spacing: 0.2em; font-size: 0.875rem; }
.review-card__text { font-size: 1.125rem; line-height: 1.55; }
.review-card__author { color: var(--fg-2); font-size: 0.9375rem; }
.review-card__name { display: block; color: var(--fg); font-size: 1rem; font-weight: 600; }
@media (max-width: 767px) { .review-card { width: 280px; padding: 24px; } .review-card__text { font-size: 1rem; } }

@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; }
  .marquee__track { animation: none; padding-inline: 16px; }
  .marquee__group[aria-hidden="true"], .marquee__toggle { display: none; }
}

/* ---------- Partenaires et référencements (À propos, surface sombre) ----------
   Logos partenaires ramenés en blanc monochrome : un seul traitement pour tous. */
.partners { display: grid; gap: 32px; margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--line); }
.partners__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 24px; align-items: center; }
.partners__list li { display: grid; place-items: center; height: 56px; }
.partners__list img { max-width: 140px; max-height: 56px; width: auto; height: auto; filter: brightness(0) invert(1); opacity: 0.85; }
/* Logo à lettres évidées : variante monochrome préparée, pas de filtre */
.partners__list img.is-mono { filter: none; max-width: 96px; }
.referencements { display: grid; gap: 32px; }
.referencements__text { color: var(--fg-2); max-width: 46ch; }
.referencements__list { display: flex; flex-wrap: wrap; gap: 32px; }
.referencements__list a { display: grid; justify-items: center; gap: 12px; text-decoration: none; font-weight: 600; }
.referencements__list a:hover span { text-decoration: underline; text-underline-offset: 4px; }
.referencements__list img { width: 112px; height: 112px; transition: transform var(--t-normal) var(--ease); }
.referencements__list a:hover img { transform: scale(1.04); }
@media (min-width: 768px) { .partners__list { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) {
  .partners { grid-template-columns: 220px 1fr; align-items: center; }
  .partners__list { grid-template-columns: repeat(5, 1fr); }
  .referencements { grid-template-columns: 1fr auto; align-items: center; }
}

/* ---------- Names : liste typographique (clients, partenaires) ---------- */
.names { display: flex; flex-wrap: wrap; gap: 8px 0; font-size: 1.25rem; font-weight: 600; line-height: 1.3; }
.names li:not(:last-child)::after { content: "·"; margin-inline: 14px; color: var(--c-orange); }
.names__note { margin-top: 16px; color: var(--fg-2); max-width: 60ch; }

/* ---------- Média pleine largeur ---------- */
.wide-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-3); }
@media (min-width: 768px) { .wide-media img { aspect-ratio: 16 / 9; } }

/* ---------- Contact ---------- */
.contact-list { border-bottom: 1px solid var(--line); }
.contact-list > div { display: grid; gap: 4px; padding-block: 24px; border-top: 1px solid var(--line); }
.contact-list dt { font-size: 0.875rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-2); }
.contact-list dd { font-size: 1.125rem; font-weight: 500; line-height: 1.4; overflow-wrap: anywhere; }
.contact-list dd a { text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; }
.contact-list dd a:hover { color: var(--c-warm-700); }
.contact-list dd small { display: block; font-size: 0.9375rem; font-weight: 400; letter-spacing: 0; color: var(--fg-2); margin-top: 4px; }
@media (min-width: 768px) { .contact-list > div { grid-template-columns: 200px 1fr; align-items: baseline; column-gap: 32px; } }

/* ---------- CTA final ---------- */
.cta { overflow: clip; }
.cta__inner { position: relative; display: grid; gap: 48px; align-items: center; }
.cta__copy { display: grid; gap: 24px; justify-items: start; }
.cta__inner h2 { max-width: 18ch; }
.cta__copy .actions { margin-top: 16px; }
.cta__inner .bv { justify-self: center; }
@media (min-width: 1024px) {
  .cta__inner { grid-template-columns: 1fr auto; column-gap: 64px; }
  .cta__inner .bv { justify-self: end; margin-right: 48px; }
}

/* ---------- Encart de rendez-vous en fin de section ---------- */
cept-booking { display: block; margin-top: 48px; }
.booking {
  display: grid; gap: 32px; align-items: center; padding: 28px;
  background: var(--c-white); border: 1px solid var(--c-grey-300); border-radius: var(--r-3); color: var(--c-dark);
}
.booking__copy { display: grid; gap: 16px; justify-items: start; }
.booking__title { font-size: var(--fs-h3); font-weight: 600; line-height: 1.2; letter-spacing: -0.015em; max-width: 24ch; }
.booking .text { color: var(--c-grey-700); }
.booking .bv { justify-self: center; }
.booking .bv__card { background: var(--c-white); box-shadow: 0 18px 40px -24px rgba(33, 33, 33, 0.45); }
@media (min-width: 1024px) { .booking { grid-template-columns: 1fr auto; padding: 40px 48px; column-gap: 64px; } }

/* ---------- Calendrier animé : un curseur réserve un créneau ----------
   Positions en pixels dans une illustration de 316 × 272 : jour cible (Mer 14)
   centré en 158/75, créneau cible (10:30) centré en 228/136. */
.bv { position: relative; z-index: 1; flex: none; width: 316px; height: 272px; max-width: 100%; cursor: pointer; }
.bv__card {
  position: absolute; inset: 0; background: var(--c-white); color: var(--c-dark);
  border: 1px solid var(--c-grey-300); border-radius: var(--r-3);
  box-shadow: 0 18px 40px -24px rgba(33, 33, 33, 0.35);
}
.bv__title { position: absolute; top: 18px; left: 22px; font-size: 0.875rem; font-weight: 600; }
.bv__days { position: absolute; top: 50px; left: 22px; display: flex; gap: 8px; }
.bv__day {
  display: grid; place-items: center; align-content: center; width: 48px; height: 50px;
  border: 1px solid var(--c-grey-300); border-radius: var(--r-2); font-size: 1rem; font-weight: 600; line-height: 1.1;
}
.bv__day small { font-size: 0.6875rem; font-weight: 500; color: var(--c-grey-700); }
.bv__slots { position: absolute; top: 116px; left: 22px; display: grid; grid-template-columns: 132px 132px; gap: 8px; }
.bv__slot {
  display: grid; place-items: center; height: 40px;
  border: 1px solid var(--c-grey-300); border-radius: var(--r-2); font-size: 0.9375rem; font-weight: 600;
}
.bv__done {
  position: absolute; left: 22px; right: 22px; top: 220px; height: 34px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--c-dark); color: var(--c-white); border-radius: var(--r-2); font-size: 0.875rem; font-weight: 600;
  opacity: 0;
}
.bv__check { color: var(--c-orange); }
.bv__cursor { position: absolute; left: 0; top: 0; opacity: 0; transform-origin: 5px 2px; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.25)); }

/* Lecture : une fois à l'apparition, puis au survol */
.bv.is-playing .bv__cursor { animation: bv-cursor 4.4s var(--ease) both; }
.bv.is-playing .bv__day--target { animation: bv-day 4.4s linear both; }
.bv.is-playing .bv__slot--target { animation: bv-slot 4.4s linear both; }
.bv.is-playing .bv__done { animation: bv-done 4.4s var(--ease) both; }
@keyframes bv-cursor {
  0%   { opacity: 0; transform: translate(296px, 250px); }
  8%   { opacity: 1; transform: translate(284px, 236px); }
  26%  { transform: translate(153px, 73px) scale(1); }
  29%  { transform: translate(153px, 73px) scale(0.8); }
  32%  { transform: translate(153px, 73px) scale(1); }
  50%  { transform: translate(223px, 134px) scale(1); }
  53%  { transform: translate(223px, 134px) scale(0.8); }
  56%  { transform: translate(223px, 134px) scale(1); }
  74%  { opacity: 1; transform: translate(223px, 134px); }
  90%, 100% { opacity: 0; transform: translate(276px, 244px); }
}
@keyframes bv-day {
  0%, 29% { background: var(--c-white); color: var(--c-dark); border-color: var(--c-grey-300); }
  31%, 100% { background: var(--c-dark); color: var(--c-white); border-color: var(--c-dark); }
}
@keyframes bv-slot {
  0%, 53% { background: var(--c-white); color: var(--c-dark); border-color: var(--c-grey-300); }
  55%, 100% { background: var(--c-orange); color: var(--c-white); border-color: var(--c-orange); }
}
@keyframes bv-done {
  0%, 60% { opacity: 0; transform: translateY(6px); }
  68%, 100% { opacity: 1; transform: translateY(0); }
}
.bv.is-playing .bv__day--target small, .bv__day--target.is-on small { color: inherit; }
/* Moins d'animations demandées : l'état final, sans curseur */
@media (prefers-reduced-motion: reduce) {
  .bv__day--target { background: var(--c-dark); color: var(--c-white); border-color: var(--c-dark); }
  .bv__day--target small { color: inherit; }
  .bv__slot--target { background: var(--c-orange); color: var(--c-white); border-color: var(--c-orange); }
  .bv__done { opacity: 1; }
}
/* Petits écrans : l'illustration garde ses proportions, réduite pour tenir dans l'encart */
@media (max-width: 479px) {
  .booking { padding: 24px 16px; }
  .booking .bv { zoom: 0.9; }
}
@media (max-width: 359px) { .bv { zoom: 0.82; } }
.cta::after {
  content: ""; position: absolute; right: -120px; bottom: -40px; width: 440px; height: 406px;
  background: var(--motif, none) no-repeat center / contain; pointer-events: none;
  display: none;
  /* Le motif reste derriere le contenu : pendant l'animation d'apparition,
     .cta__inner cree un contexte d'empilement et la carte perdrait sa priorite. */
  z-index: -1;
}
@media (min-width: 1024px) { .cta::after { display: block; right: 0; } }

/* ---------- Footer ---------- */
cept-footer { display: block; }
.footer {
  --bg: var(--c-dark); --fg: var(--c-white); --fg-2: var(--c-warm-300); --line: var(--c-grey-700);
  background: var(--bg); color: var(--fg);
  margin-top: calc(-1 * var(--r-section));
  padding: calc(80px + var(--r-section)) 0 40px;
}
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer__grid { display: grid; gap: 48px; }
.footer__brand { display: grid; gap: 24px; align-content: start; }
.footer__brand img { height: 72px; width: auto; }
.footer__brand p { color: var(--fg-2); max-width: 34ch; }
.footer__title { font-size: 0.875rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 20px; }
.footer__title::after { content: ""; display: block; width: 24px; height: 2px; margin-top: 12px; background: var(--c-orange); }
.footer__links { display: grid; gap: 4px; }
.footer__links a { display: inline-flex; align-items: center; min-height: 44px; }
.footer__address { color: var(--fg-2); font-style: normal; line-height: 1.7; }
.footer__necc img { height: 40px; width: auto; margin-bottom: 16px; }
.footer__necc-logo { display: inline-block; transition: opacity var(--t-fast) var(--ease); }
.footer__necc-logo:hover { opacity: 0.75; }
.footer__necc-logo:focus-visible { outline: 2px solid var(--c-white); outline-offset: 4px; border-radius: 4px; }
.footer__necc p { color: var(--fg-2); margin-bottom: 8px; max-width: 30ch; }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px;
  margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line);
  color: var(--fg-2); font-size: 0.875rem;
}
.footer__bottom ul { display: flex; flex-wrap: wrap; gap: 8px 32px; }
.footer__bottom a { display: inline-flex; align-items: center; min-height: 44px; }
.footer__bottom p { display: flex; align-items: center; min-height: 44px; }
@media (min-width: 768px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer__grid { grid-template-columns: 4fr 3fr 2fr 3fr; column-gap: 32px; } }

/* ---------- Articles : liste filtrable (<cept-articles filters>) ----------
   Filtres en boutons à filet, sans pastille pleine : l'orange marque seulement le thème actif. */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filters__btn {
  min-height: 44px; padding: 8px 16px; border: 1px solid var(--line); border-radius: var(--r-3);
  background: transparent; font-weight: 500; cursor: pointer;
  transition: border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.filters__btn:hover { border-color: var(--fg); }
.filters__btn[aria-pressed="true"] { border-color: var(--c-orange); color: var(--fg); box-shadow: inset 0 -2px 0 var(--c-orange); }
.filters__btn:focus-visible { outline: 2px solid var(--c-orange); outline-offset: 2px; }
.row[hidden] { display: none; }

/* ---------- Article : en-tête et corps de texte ----------
   Colonne de lecture de 68ch ; les listes retrouvent puces et numéros
   (la remise à zéro globale les supprime). */
.article__meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 0.875rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-2); }
.article__back { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; text-decoration: none; color: var(--fg-2); }
.article__back:hover { color: var(--fg); }
.prose { max-width: 68ch; font-size: 1.0625rem; line-height: 1.7; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2.2em; font-size: clamp(1.5rem, 1.3rem + 0.8vw, 2rem); line-height: 1.2; letter-spacing: -0.015em; text-wrap: balance; }
.prose h3 { margin-top: 1.8em; font-size: 1.25rem; line-height: 1.3; }
.prose h2 + *, .prose h3 + * { margin-top: 0.6em; }
.prose ul, .prose ol { display: grid; gap: 8px; }
.prose ul li { position: relative; padding-left: 28px; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: 0.85em; width: 16px; height: 2px; background: var(--c-orange); }
.prose ol { counter-reset: step; }
.prose ol li { position: relative; padding-left: 40px; counter-increment: step; }
.prose ol li::before { content: counter(step, decimal-leading-zero) "."; position: absolute; left: 0; font-weight: 700; color: var(--c-orange); }
.prose a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { color: var(--c-warm-700); }
.prose strong { font-weight: 600; }
.prose .table-wrap { margin-top: 1.6em; }
.prose .table { min-width: 520px; font-size: 1rem; }
.prose .table td { width: auto; font-weight: 400; }
.prose .table thead th { font-weight: 600; color: var(--fg); }
.prose .note { padding: 24px; border-left: 2px solid var(--c-orange); background: var(--c-soft); }
.article__sources { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 0.9375rem; color: var(--fg-2); max-width: 68ch; }
.article__sources li + li { margin-top: 4px; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(12px); transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease); }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
