/* ==========================================================================
   AutoDev — feuille de style du site
   Thème clair par défaut, thème sombre selon le système ou le choix du visiteur.
   ========================================================================== */

:root {
  --fond: #ffffff;
  --fond-doux: #f3f6fb;
  --fond-accent: #e9f1fc;
  --surface: #ffffff;
  --texte: #0f1b2d;
  --texte-doux: #4a5a70;
  --bordure: #d8e1ec;
  --primaire: #1d4f91;
  --primaire-survol: #143a6b;
  --sur-primaire: #ffffff;
  --accent: #c4511b;
  /* Couleurs du nom « AutoDev », reprises du logo */
  --marque-auto: #0b3a87;
  --marque-dev: #0790d2;
  --accent-survol: #a8430f;
  --sur-accent: #ffffff;
  --succes: #1f7a45;
  --succes-fond: #e6f4ec;
  --erreur: #b3261e;
  --erreur-fond: #fbe9e7;
  --info-fond: #e9f1fc;
  --attention: #8a5a00;
  --attention-fond: #fff4dc;
  --ombre: 0 1px 2px rgb(15 27 45 / 6%), 0 8px 24px rgb(15 27 45 / 8%);
  --ombre-forte: 0 2px 4px rgb(15 27 45 / 8%), 0 24px 48px rgb(15 27 45 / 14%);
  --focus: #2a78d6;

  /* Aperçu de l'application (illustration) */
  --ap-fenetre: #ffffff;
  --ap-barre: #eef2f8;
  --ap-lateral: #f5f8fc;
  --ap-panneau: #f8fafd;
  --ap-trait: #d8e1ec;
  --ap-texte: #27364b;
  --ap-receptions: #2a78d6;
  --ap-sorties: #eb6834;
  --ap-rupture: #7a1010;

  --rayon: 12px;
  --rayon-petit: 8px;
  --largeur: 1180px;
  --police: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="clair"]) {
    --fond: #0b1220;
    --fond-doux: #101a2d;
    --fond-accent: #13233d;
    --surface: #142036;
    --texte: #e8eef7;
    --texte-doux: #a9b7cb;
    --bordure: #27364f;
    --primaire: #7fb0ff;
    --primaire-survol: #a5c8ff;
    --sur-primaire: #0b1220;
    --accent: #ff8f57;
    --marque-auto: #e6edf6;
    --marque-dev: #38bdf8;
    --accent-survol: #ffab80;
    --sur-accent: #1a0d05;
    --succes: #6fd39a;
    --succes-fond: #12301f;
    --erreur: #ff8a80;
    --erreur-fond: #3a1513;
    --info-fond: #13233d;
    --attention: #f5c46b;
    --attention-fond: #33270c;
    --ombre: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 24px rgb(0 0 0 / 30%);
    --ombre-forte: 0 2px 4px rgb(0 0 0 / 35%), 0 24px 48px rgb(0 0 0 / 45%);
    --focus: #7fb0ff;
    --ap-fenetre: #172338;
    --ap-barre: #1d2b44;
    --ap-lateral: #142035;
    --ap-panneau: #1a2740;
    --ap-trait: #2c3c58;
    --ap-texte: #d5deeb;
    --ap-rupture: #6b1414;
    color-scheme: dark;
  }
}

:root[data-theme="sombre"] {
  --fond: #0b1220;
  --fond-doux: #101a2d;
  --fond-accent: #13233d;
  --surface: #142036;
  --texte: #e8eef7;
  --texte-doux: #a9b7cb;
  --bordure: #27364f;
  --primaire: #7fb0ff;
  --primaire-survol: #a5c8ff;
  --sur-primaire: #0b1220;
  --accent: #ff8f57;
  --marque-auto: #e6edf6;
  --marque-dev: #38bdf8;
  --accent-survol: #ffab80;
  --sur-accent: #1a0d05;
  --succes: #6fd39a;
  --succes-fond: #12301f;
  --erreur: #ff8a80;
  --erreur-fond: #3a1513;
  --info-fond: #13233d;
  --attention: #f5c46b;
  --attention-fond: #33270c;
  --ombre: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 24px rgb(0 0 0 / 30%);
  --ombre-forte: 0 2px 4px rgb(0 0 0 / 35%), 0 24px 48px rgb(0 0 0 / 45%);
  --focus: #7fb0ff;
  --ap-fenetre: #172338;
  --ap-barre: #1d2b44;
  --ap-lateral: #142035;
  --ap-panneau: #1a2740;
  --ap-trait: #2c3c58;
  --ap-texte: #d5deeb;
  --ap-rupture: #6b1414;
  color-scheme: dark;
}

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

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 5rem;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--police);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--texte);
  background: var(--fond);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  line-height: 1.2;
  margin: 0 0 0.6em;
  text-wrap: balance;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 1.3rem + 1.3vw, 2.25rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; text-wrap: pretty; }

a { color: var(--primaire); text-underline-offset: 0.2em; }
a:hover { color: var(--primaire-survol); }

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

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

.lien-evitement {
  position: absolute;
  left: 1rem; top: -4rem;
  padding: 0.6rem 1rem;
  background: var(--primaire);
  color: var(--sur-primaire);
  border-radius: var(--rayon-petit);
  z-index: 100;
}
.lien-evitement:focus { top: 1rem; color: var(--sur-primaire); }

main:focus { outline: none; }

.conteneur {
  width: min(100% - 2rem, var(--largeur));
  margin-inline: auto;
}
.conteneur--etroit { width: min(100% - 2rem, 760px); }

.surtitre {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

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

.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.55rem 1.1rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 650;
  font-size: 0.98rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.bouton:active { transform: translateY(1px); }
.bouton--grand { min-height: 52px; padding: 0.75rem 1.5rem; font-size: 1.05rem; }
.bouton--accent { background: var(--accent); color: var(--sur-accent); }
.bouton--accent:hover { background: var(--accent-survol); color: var(--sur-accent); }
.bouton--primaire { background: var(--primaire); color: var(--sur-primaire); }
.bouton--primaire:hover { background: var(--primaire-survol); color: var(--sur-primaire); }
.bouton--contour { border-color: var(--primaire); color: var(--primaire); background: transparent; }
.bouton--contour:hover { background: var(--fond-accent); }
.bouton--discret { color: var(--texte); background: transparent; }
.bouton--discret:hover, .bouton--discret[aria-current] { background: var(--fond-doux); color: var(--texte); }
.bouton--danger { background: var(--erreur); color: #fff; }
.bouton--petit { min-height: 36px; padding: 0.35rem 0.85rem; font-size: 0.9rem; }
.bouton[disabled], .bouton[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }

/* ---------- En-tête ---------- */

.entete {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--fond) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--bordure);
}
.entete__ligne {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 68px;
}

.marque {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--texte);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}
.marque:hover { color: var(--texte); }
.marque img { width: auto; height: 40px; }
.marque__nom { color: var(--marque-auto); }
.marque__dev { color: var(--marque-dev); }

.navigation {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}
.navigation__liens {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  margin: 0 auto 0 0;
  padding: 0;
}
.navigation__liens a {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: var(--rayon-petit);
  color: var(--texte-doux);
  text-decoration: none;
  font-weight: 550;
}
.navigation__liens a:hover { color: var(--texte); background: var(--fond-doux); }
.navigation__liens a[aria-current] { color: var(--primaire); background: var(--fond-accent); }
.navigation__actions { display: flex; align-items: center; gap: 0.5rem; }

.bouton-theme {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  border: 1px solid var(--bordure);
  border-radius: 999px;
  background: transparent;
  color: var(--texte-doux);
  cursor: pointer;
}
.bouton-theme:hover { color: var(--texte); background: var(--fond-doux); }

.bouton-menu {
  display: none;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
  min-height: 44px;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--bordure);
  border-radius: 999px;
  background: transparent;
  color: var(--texte);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.bouton-menu__barres,
.bouton-menu__barres::before,
.bouton-menu__barres::after {
  display: block;
  width: 18px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  position: relative;
}
.bouton-menu__barres::before, .bouton-menu__barres::after { content: ""; position: absolute; left: 0; }
.bouton-menu__barres::before { top: -6px; }
.bouton-menu__barres::after { top: 6px; }

@media (max-width: 960px) {
  .js .bouton-menu { display: inline-flex; }
  .entete__ligne { flex-wrap: wrap; gap: 0.75rem; }
  .navigation {
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 1rem;
  }
  .js .entete:not([data-menu-ouvert]) .navigation { display: none; }
  .navigation__liens { flex-direction: column; margin: 0; }
  .navigation__liens a { padding: 0.75rem; }
  .navigation__actions { flex-wrap: wrap; }
  .navigation__actions .bouton { flex: 1; }
}

/* ---------- Alertes ---------- */

.alerte {
  margin: 1.25rem 0 0;
  padding: 0.85rem 1rem;
  border-radius: var(--rayon-petit);
  border-left: 4px solid;
  background: var(--info-fond);
  border-color: var(--primaire);
}
.alerte--succes { background: var(--succes-fond); border-color: var(--succes); }
.alerte--erreur { background: var(--erreur-fond); border-color: var(--erreur); }
.alerte--attention { background: var(--attention-fond); border-color: var(--attention); }

/* ---------- Héros ---------- */

.heros {
  padding: clamp(2.5rem, 6vw, 5.5rem) 0 clamp(2.5rem, 6vw, 4.5rem);
  background:
    radial-gradient(60rem 30rem at 85% -10%, var(--fond-accent), transparent 70%),
    var(--fond);
}
.heros__grille {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}
.heros__accroche { font-size: 1.2rem; color: var(--texte-doux); max-width: 36rem; }
.heros__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.75rem 0 1rem; }
.heros__note { font-size: 0.92rem; color: var(--texte-doux); }

@media (max-width: 900px) {
  .heros__grille { grid-template-columns: 1fr; }
}

/* ---------- Aperçu de l'application (illustration SVG) ---------- */

.apercu { margin: 0; }
.apercu__svg {
  width: 100%;
  border-radius: 14px;
  box-shadow: var(--ombre-forte);
  font-family: var(--police);
}
.ap-fenetre { fill: var(--ap-fenetre); stroke: var(--ap-trait); }
.ap-barre-titre { fill: var(--ap-barre); }
.ap-pastille { fill: var(--ap-trait); }
.ap-titre { fill: var(--ap-texte); font-size: 13px; font-weight: 600; }
.ap-lateral { fill: var(--ap-lateral); }
.ap-menu text { fill: var(--ap-texte); font-size: 13px; }
.ap-menu-actif { fill: var(--fond-accent); }
.ap-cartes rect, .ap-panneau { fill: var(--ap-panneau); stroke: var(--ap-trait); }
.ap-etiquette { fill: var(--ap-texte); font-size: 12px; opacity: .8; }
.ap-chiffre { fill: var(--ap-texte); font-size: 22px; font-weight: 750; }
.ap-chiffre--alerte { fill: var(--erreur); }
.ap-barres-receptions rect { fill: var(--ap-receptions); }
.ap-barres-sorties rect { fill: var(--ap-sorties); }
.ap-tableau text { fill: var(--ap-texte); font-size: 12.5px; }
.ap-tableau .ap-entete { font-weight: 700; opacity: .75; }
.ap-tableau line { stroke: var(--ap-trait); }
.ap-rupture { fill: var(--ap-rupture); }
.ap-tableau .ap-rupture-texte { fill: #ffffff; font-weight: 600; }

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

.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section--douce { background: var(--fond-doux); }
.section__entete { max-width: 46rem; margin-bottom: 2.5rem; }
.section__entete--centre { margin-inline: auto; text-align: center; }
.section__entete p { color: var(--texte-doux); font-size: 1.12rem; }

.grille {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}
.grille--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }

.carte {
  background: var(--surface);
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  padding: 1.5rem;
  box-shadow: var(--ombre);
}
.carte h3 { margin-bottom: 0.4rem; }
.carte p:last-child { margin-bottom: 0; }
.carte__icone {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  margin-bottom: 1rem;
  border-radius: 12px;
  background: var(--fond-accent);
  color: var(--primaire);
}
.carte__icone svg { width: 26px; height: 26px; }
.texte-doux { color: var(--texte-doux); }

.liste-coches { list-style: none; padding: 0; margin: 0 0 1rem; }
.liste-coches li { position: relative; padding-left: 1.75rem; margin-bottom: 0.45rem; }
.liste-coches li::before {
  content: "";
  position: absolute;
  left: 0.15rem; top: 0.45em;
  width: 0.95rem; height: 0.55rem;
  border-left: 3px solid var(--succes);
  border-bottom: 3px solid var(--succes);
  transform: rotate(-45deg);
}

/* ---------- Bandeau d'appel ---------- */

.appel {
  background: linear-gradient(135deg, #143a6b, #1d4f91 55%, #2a78d6);
  color: #fff;
  border-radius: calc(var(--rayon) * 1.5);
  padding: clamp(2rem, 5vw, 3.5rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.appel h2 { margin: 0 0 0.3rem; }
.appel p { margin: 0; opacity: .9; }
.appel .bouton--accent { background: #ffffff; color: #143a6b; }
.appel .bouton--accent:hover { background: #e9f1fc; color: #143a6b; }

/* ---------- Pages d'erreur et texte ---------- */

.page-erreur { padding: 5rem 0; }
.page-texte { padding: clamp(2.5rem, 6vw, 4rem) 0; }
.page-texte h2 { font-size: 1.4rem; margin-top: 2rem; }

.entete-page {
  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(1.5rem, 4vw, 2.5rem);
  background: var(--fond-doux);
  border-bottom: 1px solid var(--bordure);
}
.entete-page p { color: var(--texte-doux); font-size: 1.15rem; max-width: 46rem; margin: 0; }

/* ---------- Pied de page ---------- */

.pied {
  margin-top: 0;
  padding: 3.5rem 0 1.5rem;
  background: var(--fond-doux);
  border-top: 1px solid var(--bordure);
  font-size: 0.95rem;
}
.pied__grille {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2rem;
}
.pied__slogan { color: var(--texte-doux); margin-top: 0.75rem; font-style: italic; }
.pied__titre { font-size: 0.95rem; text-transform: uppercase; letter-spacing: .06em; color: var(--texte-doux); }
.pied ul { list-style: none; padding: 0; margin: 0; }
.pied li { margin-bottom: 0.4rem; }
.pied a:not(.marque) { color: var(--texte); text-decoration: none; }
.pied a:not(.marque):hover { text-decoration: underline; }
.pied__bas {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--bordure);
  color: var(--texte-doux);
}
.pied__bas p { margin: 0; }

@media (max-width: 760px) {
  .pied__grille { grid-template-columns: 1fr 1fr; }
  .pied__marque { grid-column: 1 / -1; }
}

/* ---------- Atouts ---------- */

.bandeau-atouts { border-block: 1px solid var(--bordure); background: var(--surface); }
.atouts {
  list-style: none;
  margin-block: 0;
  padding: 1.5rem 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 1.25rem 2rem;
}
.atouts li { display: flex; gap: 0.85rem; align-items: flex-start; font-size: 0.95rem; color: var(--texte-doux); }
.atouts svg { flex: none; color: var(--primaire); margin-top: 0.15rem; }
.atouts strong { display: block; color: var(--texte); font-size: 1rem; }

.section__suite { margin: 2rem 0 0; font-weight: 650; }
.section__suite a { text-decoration: none; }
.section__suite a:hover { text-decoration: underline; }
.h3 { font-size: 1.2rem; }

/* ---------- Étapes ---------- */

.etapes {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1.25rem;
  counter-reset: etape;
}
.etape {
  background: var(--surface);
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  padding: 1.75rem 1.5rem 1.5rem;
}
.etape__numero {
  display: grid;
  place-items: center;
  width: 2.5rem; height: 2.5rem;
  margin-bottom: 1rem;
  border-radius: 999px;
  background: var(--primaire);
  color: var(--sur-primaire);
  font-weight: 800;
  font-size: 1.1rem;
}
.etape p { margin: 0; }

/* ---------- Galerie et visionneuse ---------- */

.galerie {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr));
  gap: 1.5rem;
}
.vignette { margin: 0; }
.vignette__lien {
  display: block;
  border-radius: var(--rayon);
  overflow: hidden;
  border: 1px solid var(--bordure);
  box-shadow: var(--ombre);
  background: var(--fond-doux);
  transition: transform .2s, box-shadow .2s;
}
.vignette__lien:hover { transform: translateY(-3px); box-shadow: var(--ombre-forte); }
.vignette img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.vignette figcaption { margin-top: 0.75rem; font-size: 0.95rem; color: var(--texte-doux); }
.vignette figcaption strong { display: block; color: var(--texte); font-size: 1rem; }

.visionneuse {
  width: min(100% - 2rem, 1200px);
  max-height: calc(100dvh - 2rem);
  padding: 0;
  border: 0;
  border-radius: var(--rayon);
  background: var(--surface);
  color: var(--texte);
  box-shadow: var(--ombre-forte);
  overflow: auto;
}
.visionneuse::backdrop { background: rgb(5 10 20 / 75%); }
.visionneuse__fermer { position: sticky; top: 0; display: flex; justify-content: flex-end; padding: 0.5rem; background: var(--surface); }
.visionneuse__image { width: 100%; }
.visionneuse__texte { margin: 0; padding: 1rem 1.25rem 1.25rem; color: var(--texte-doux); }
.visionneuse__texte strong { color: var(--texte); }

/* ---------- Formules de prix ---------- */

.formules {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: 1.5rem;
  align-items: stretch;
}
.formule {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--bordure);
  border-radius: calc(var(--rayon) * 1.25);
  padding: 2rem 1.75rem 1.75rem;
  box-shadow: var(--ombre);
}
.formule--avant { border: 2px solid var(--accent); box-shadow: var(--ombre-forte); }
.formule__badge {
  position: absolute;
  top: -0.85rem; left: 1.75rem;
  margin: 0;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--sur-accent);
  font-size: 0.8rem;
  font-weight: 700;
}
.formule__nom { font-size: 1.3rem; margin-bottom: 0.25rem; }
.formule__prix { font-size: 2.1rem; font-weight: 800; letter-spacing: -0.02em; margin: 0.25rem 0 0; }
.formule__postes { color: var(--texte-doux); font-weight: 600; margin-bottom: 1rem; }
.formule__description { color: var(--texte-doux); }
.formule .liste-coches { margin-bottom: 1.5rem; }
.formule .bouton { margin-top: auto; }
.tarifs-infos { margin-top: 2.5rem; }
.tarifs-infos .carte { box-shadow: none; }

/* ---------- Fonctionnalités détaillées ---------- */

.liste-fonctions { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)); }
.fonction {
  display: flex;
  gap: 1.25rem;
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
}
.fonction .carte__icone { flex: none; }
.fonction h2 { font-size: 1.3rem; margin-bottom: 0.4rem; }
.fonction .liste-coches { margin: 0; }

/* ---------- Questions fréquentes ---------- */

.faq__item {
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  background: var(--surface);
  margin-bottom: 0.75rem;
}
.faq__item summary {
  cursor: pointer;
  padding: 1.1rem 3rem 1.1rem 1.25rem;
  font-weight: 650;
  font-size: 1.05rem;
  list-style: none;
  position: relative;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "";
  position: absolute;
  right: 1.35rem; top: 50%;
  width: 0.6rem; height: 0.6rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-70%) rotate(45deg);
  transition: transform .2s;
}
.faq__item[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq__reponse { padding: 0 1.25rem 1rem; color: var(--texte-doux); }

/* ---------- Pages de texte ---------- */

.page-texte ul { padding-left: 1.25rem; }
.page-texte li { margin-bottom: 0.4rem; }
.a-completer {
  padding: 0 0.35rem;
  border-radius: 4px;
  background: var(--attention-fond);
  color: var(--attention);
  font-weight: 600;
}

/* ---------- Vidéo de promotion ---------- */

.section--video { background: linear-gradient(var(--fond), var(--fond-doux)); }
.video { margin: 0 auto; max-width: 1000px; }
.video__lecteur {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: calc(var(--rayon) * 1.25);
  background: #0f2b52;
  box-shadow: var(--ombre-forte);
}
.video__transcription { margin-top: 1rem; color: var(--texte-doux); }
.video__transcription summary { cursor: pointer; font-weight: 650; color: var(--primaire); }
.video__transcription p { margin: 0.5rem 0 0; }

/* ---------- Formulaires ---------- */

.formulaire { display: grid; gap: 1.35rem; padding: clamp(1.25rem, 4vw, 2.25rem); }
.formulaire__note { margin: 0; font-size: 0.92rem; color: var(--texte-doux); }
.champ { display: grid; gap: 0.35rem; }
.champ label { font-weight: 650; }
.champ__facultatif { font-weight: 400; color: var(--texte-doux); }
.champ__aide { margin: 0; font-size: 0.92rem; color: var(--texte-doux); }
.champ input, .champ select, .champ textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.65rem 0.85rem;
  border: 1.5px solid color-mix(in srgb, var(--texte-doux) 55%, var(--bordure));
  border-radius: var(--rayon-petit);
  background: var(--surface);
  color: var(--texte);
  font: inherit;
  font-size: 1rem;
}
.champ textarea { resize: vertical; line-height: 1.5; }
.champ input:focus-visible, .champ select:focus-visible, .champ textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 1px;
  border-color: var(--focus);
}
.champ input:user-invalid, .champ select:user-invalid, .champ textarea:user-invalid,
.champ--erreur input, .champ--erreur select, .champ--erreur textarea { border-color: var(--erreur); }
.champ__erreur { margin: 0; color: var(--erreur); font-weight: 600; font-size: 0.95rem; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--primaire); }
.formulaire .bouton[type="submit"] { justify-self: start; }

.piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.resume-erreurs {
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  border: 2px solid var(--erreur);
  border-radius: var(--rayon);
  background: var(--erreur-fond);
}
.resume-erreurs h2 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.resume-erreurs ul { margin: 0; padding-left: 1.2rem; }
.resume-erreurs a { color: var(--erreur); font-weight: 600; }

/* ---------- Démo ---------- */

.demo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 2.5rem; align-items: start; }
.demo__telechargement { position: sticky; top: 6rem; }
.demo__telechargement .bouton { margin: 0.5rem 0 1rem; }
.demo__infos h2 { margin-top: 0; }
.demo__infos h2:not(:first-child) { margin-top: 2rem; }
.demo__etapes { padding-left: 1.3rem; }
.demo__etapes li { margin-bottom: 0.5rem; }
.demo__empreinte summary { cursor: pointer; color: var(--primaire); font-weight: 600; }
.demo__empreinte pre {
  overflow-x: auto;
  padding: 0.75rem;
  border-radius: var(--rayon-petit);
  background: var(--fond-doux);
  font-size: 0.8rem;
}
kbd {
  padding: 0.05rem 0.4rem;
  border: 1px solid var(--bordure);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: var(--fond-doux);
  font: 0.9em var(--police);
}
code { font-size: 0.92em; }
@media (max-width: 860px) {
  .demo { grid-template-columns: 1fr; }
  .demo__telechargement { position: static; }
}
.champ__mdp { display: flex; gap: 0.5rem; align-items: center; }
.champ__mdp input { flex: 1; }
.champ__mdp .bouton { flex: none; border: 1px solid var(--bordure); border-radius: var(--rayon-petit); min-height: 48px; }

/* ---------- Espace client ---------- */

.section--compte { padding-top: clamp(2rem, 5vw, 3rem); min-height: 60vh; }
.sans-marge { margin: 0; }
.nav-compte {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 1.25rem 0 2rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--bordure);
}
.nav-compte ul { display: flex; flex-wrap: wrap; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.nav-compte a { display: block; padding: 0.5rem 0.85rem; border-radius: var(--rayon-petit); text-decoration: none; color: var(--texte-doux); font-weight: 600; }
.nav-compte a:hover { background: var(--fond-doux); color: var(--texte); }
.nav-compte a[aria-current] { background: var(--fond-accent); color: var(--primaire); }
.vide { text-align: center; padding: 2.5rem 1.5rem; }
.vide .bouton { margin: 0.25rem; }

.tableau-defilant { overflow-x: auto; border: 1px solid var(--bordure); border-radius: var(--rayon); background: var(--surface); }
.tableau { width: 100%; border-collapse: collapse; font-size: 0.97rem; }
.tableau th, .tableau td { padding: 0.8rem 1rem; text-align: left; border-bottom: 1px solid var(--bordure); white-space: nowrap; }
.tableau thead th { background: var(--fond-doux); font-size: 0.85rem; text-transform: uppercase; letter-spacing: .04em; color: var(--texte-doux); }
.tableau tbody tr:last-child > * { border-bottom: 0; }
.tableau tbody tr:hover { background: var(--fond-doux); }
.tableau .nombre { text-align: right; font-variant-numeric: tabular-nums; }

.pastille { display: inline-block; padding: 0.15rem 0.6rem; border-radius: 999px; font-size: 0.85rem; font-weight: 650; white-space: nowrap; }
.pastille--attente { background: var(--attention-fond); color: var(--attention); }
.pastille--succes { background: var(--succes-fond); color: var(--succes); }
.pastille--erreur { background: var(--erreur-fond); color: var(--erreur); }
.pastille--neutre { background: var(--fond-doux); color: var(--texte-doux); }

.liste-definitions { margin: 0; display: grid; gap: 0.6rem; }
.liste-definitions > div { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px dashed var(--bordure); padding-bottom: 0.5rem; }
.liste-definitions > div:last-child { border-bottom: 0; }
.liste-definitions dt { color: var(--texte-doux); }
.liste-definitions dd { margin: 0; text-align: right; font-weight: 600; }
.recapitulatif { margin-bottom: 1.5rem; }
.recapitulatif__montant { font-size: 1.4rem; }
code.reference { font-size: 1.05rem; padding: 0.1rem 0.4rem; border-radius: 5px; background: var(--fond-accent); color: var(--primaire); font-weight: 700; }

.groupe { border: 0; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.groupe legend { font-weight: 700; margin-bottom: 0.5rem; padding: 0; }
.choix {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1rem;
  border: 1.5px solid var(--bordure);
  border-radius: var(--rayon);
  cursor: pointer;
}
.choix:has(input:checked) { border-color: var(--primaire); background: var(--fond-accent); }
.choix input { width: 1.2rem; height: 1.2rem; margin-top: 0.2rem; }
.choix strong { display: block; }
.choix span { color: var(--texte-doux); }
.choix span strong { color: var(--texte); }

.commande { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 2rem; align-items: start; }
.commande__principal { display: grid; gap: 1.5rem; }
.commande__resume { position: sticky; top: 6rem; }
.paiement .liste-definitions { margin: 1rem 0; }
.paiement__annuler { margin-top: 1rem; border-top: 1px solid var(--bordure); padding-top: 1rem; }
@media (max-width: 900px) {
  .commande { grid-template-columns: 1fr; }
  .commande__resume { position: static; order: -1; }
}

.progression { display: flex; list-style: none; margin: 0; padding: 0; counter-reset: progression; }
.progression__etape {
  flex: 1;
  position: relative;
  padding-top: 2.4rem;
  text-align: center;
  font-size: 0.92rem;
  color: var(--texte-doux);
  counter-increment: progression;
}
.progression__etape::before {
  content: counter(progression);
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  width: 2rem; height: 2rem;
  border-radius: 999px;
  border: 2px solid var(--bordure);
  background: var(--surface);
  font-weight: 700;
  z-index: 1;
}
.progression__etape:not(:first-child)::after {
  content: "";
  position: absolute;
  top: 1rem; right: 50%;
  width: 100%; height: 2px;
  background: var(--bordure);
}
.progression__etape--faite { color: var(--texte); }
.progression__etape--faite::before { content: "✓"; background: var(--succes); border-color: var(--succes); color: #fff; }
.progression__etape--faite:not(:first-child)::after { background: var(--succes); }
.progression__etape--courante { color: var(--texte); font-weight: 700; }
.progression__etape--courante::before { border-color: var(--primaire); color: var(--primaire); }

.activation { display: grid; gap: 1.25rem; }
.activation h2 { margin: 0; }
.activation__etapes { margin: 0; padding-left: 1.3rem; display: grid; gap: 0.5rem; color: var(--texte-doux); }
.activation__etapes strong { color: var(--texte); }
.activation__formulaire { padding: 1.25rem 0 0; border-top: 1px solid var(--bordure); }
.activation__formulaire h3 { margin: 0; }
.champ textarea.code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 0.95rem; }
.activation__complet { margin: 0; }
.tableau .bouton svg { flex: none; }
.activation .tableau th, .activation .tableau td { white-space: normal; }
.activation .tableau code { word-break: break-all; }
