/* ==========================================================================
   MicroProjects — vitrine commerciale
   Tokens repris de MicroProjects-Desktop/static/css/style.css (même palette,
   même échelle d'espacement, même police système). Sombre par défaut,
   clair via [data-theme="clair"] ou prefers-color-scheme.
   ========================================================================== */

:root {
  --fond: #0f1420;
  --surface: #1a2130;
  --surface-2: #232b3b;
  --surface-3: #2b3446;
  --bordure: #2c3547;
  --bordure-forte: #3a4459;
  --texte: #e8ebf1;
  --texte-2: #a3abba;
  --texte-3: #8d96aa;          /* ≥ 4,5:1 sur --fond et --surface */
  --accent: #10b981;
  --accent-lien: #34d399;      /* 8,9:1 sur --fond */
  --accent-doux: #12352b;
  --accent-plein: #10b981;
  --accent-sur-plein: #04140e; /* 7,9:1 sur #10b981 */
  --indigo: #8b85f5;
  --orange: #f5a524;
  --danger: #f2555a;
  --k1: #94a3b8; --k2: #3aa6ff; --k3: #b48af5; --k4: #3dd68c;
  --code-fond: #0b0f18;
  --code-texte: #d6dbe5;
  --code-commentaire: #8891a5;
  --code-cle: #6ee7b7;
  --code-chaine: #fcd34d;
  --ombre: 0 1px 2px rgba(0, 0, 0, .4);
  --ombre-haute: 0 24px 60px rgba(0, 0, 0, .5);
  --rayon: 8px;
  --rayon-l: 12px;
  --esp-1: 4px; --esp-2: 8px; --esp-3: 12px; --esp-4: 16px;
  --esp-6: 24px; --esp-8: 32px; --esp-12: 48px; --esp-16: 64px; --esp-24: 96px;
  --police: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --largeur: 1160px;
  color-scheme: dark;
}

/* Clair : même table que l'application (contrastes AA vérifiés). */
:root[data-theme="clair"] {
  --fond: #f8fafc;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --surface-3: #e2e8f0;
  --bordure: #e2e8f0;
  --bordure-forte: #cbd5e1;
  --texte: #0f172a;
  --texte-2: #475569;
  --texte-3: #5b6678;
  --accent: #059669;
  --accent-lien: #047857;      /* 5,5:1 sur blanc */
  --accent-doux: #d1fae5;
  --accent-plein: #047857;
  --accent-sur-plein: #ffffff; /* 5,5:1 */
  --indigo: #4f46e5;
  --orange: #b45309;
  --danger: #dc2626;
  --k1: #64748b; --k2: #0284c7; --k3: #7c3aed; --k4: #059669;
  --code-fond: #0f172a;
  --ombre: 0 1px 2px rgba(15, 23, 42, .06);
  --ombre-haute: 0 24px 60px rgba(15, 23, 42, .14);
  color-scheme: light;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    --fond: #f8fafc; --surface: #ffffff; --surface-2: #f1f5f9; --surface-3: #e2e8f0;
    --bordure: #e2e8f0; --bordure-forte: #cbd5e1;
    --texte: #0f172a; --texte-2: #475569; --texte-3: #5b6678;
    --accent: #059669; --accent-lien: #047857; --accent-doux: #d1fae5;
    --accent-plein: #047857; --accent-sur-plein: #ffffff;
    --indigo: #4f46e5; --orange: #b45309; --danger: #dc2626;
    --k1: #64748b; --k2: #0284c7; --k3: #7c3aed; --k4: #059669;
    --code-fond: #0f172a;
    --ombre: 0 1px 2px rgba(15, 23, 42, .06);
    --ombre-haute: 0 24px 60px rgba(15, 23, 42, .14);
    color-scheme: light;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0; background: var(--fond); color: var(--texte);
  font: 16px/1.6 var(--police); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent-lien); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
code, pre, kbd { font-family: var(--mono); font-size: .875em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ico-s { width: 16px; height: 16px; }

.conteneur { width: 100%; max-width: var(--largeur); margin: 0 auto; padding: 0 var(--esp-6); }
@media (max-width: 600px) { .conteneur { padding: 0 var(--esp-4); } }
.lien-evitement { position: absolute; left: -999px; top: var(--esp-2); background: var(--surface); padding: var(--esp-2) var(--esp-4); z-index: 100; }
.lien-evitement:focus { left: var(--esp-2); }

/* Blocs bilingues (pages légales) */
html[lang="fr"] [data-l="en"], html[lang="en"] [data-l="fr"] { display: none !important; }

/* ---------- En-tête ---------- */
.entete {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--fond) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--bordure);
}
.entete .conteneur { display: flex; align-items: center; gap: var(--esp-6); height: 60px; }
.marque { display: flex; align-items: center; gap: var(--esp-2); color: var(--texte); text-decoration: none; font-weight: 650; font-size: 15px; }
.marque img { width: 28px; height: 28px; }
.marque small { font-weight: 500; color: var(--texte-3); font-size: 12px; font-family: var(--mono); }
.nav { display: flex; gap: var(--esp-6); margin-right: auto; }
.nav a { color: var(--texte-2); text-decoration: none; font-size: 14px; }
.nav a:hover { color: var(--texte); }
.outils { display: flex; align-items: center; gap: var(--esp-2); }
.bascule-langue { display: inline-flex; border: 1px solid var(--bordure); border-radius: var(--rayon); overflow: hidden; }
.bascule-langue button { background: none; border: 0; color: var(--texte-3); font: 600 12px var(--police); padding: 6px 10px; cursor: pointer; min-height: 32px; }
.bascule-langue button[aria-pressed="true"] { background: var(--surface-2); color: var(--texte); }
.btn-icone { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: var(--rayon); border: 1px solid var(--bordure); background: none; color: var(--texte-2); cursor: pointer; }
.btn-icone:hover { color: var(--texte); background: var(--surface-2); }
.theme-clair-seul, :root[data-theme="clair"] .theme-sombre-seul { display: none; }
:root[data-theme="clair"] .theme-clair-seul { display: block; }
@media (max-width: 860px) { .nav { display: none; } .entete .conteneur { justify-content: space-between; } .outils { margin-left: auto; } }
@media (max-width: 420px) { .entete .btn-acheter-court { display: none; } }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--esp-2);
  min-height: 44px; padding: 0 var(--esp-6); border-radius: var(--rayon);
  font: 600 15px var(--police); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background .15s, border-color .15s, opacity .15s;
}
.btn-s { min-height: 36px; padding: 0 var(--esp-4); font-size: 14px; }
.btn-primaire { background: var(--accent-plein); color: var(--accent-sur-plein); }
.btn-primaire:hover { filter: brightness(1.06); }
.btn-secondaire { background: var(--surface); color: var(--texte); border-color: var(--bordure-forte); }
.btn-secondaire:hover { background: var(--surface-2); }
.btn[aria-disabled="true"], .btn:disabled { opacity: .45; cursor: not-allowed; filter: none; }

/* ---------- Hero ---------- */
.hero { padding: var(--esp-16) 0 var(--esp-12); }
.hero-texte { max-width: 760px; }
.etiquette-version { display: inline-flex; align-items: center; gap: var(--esp-2); font: 500 13px var(--mono); color: var(--texte-2); border: 1px solid var(--bordure); border-radius: 999px; padding: 4px 12px; margin-bottom: var(--esp-6); }
.etiquette-version i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.hero h1 { font-size: clamp(32px, 4.4vw, 52px); font-weight: 700; letter-spacing: -.025em; max-width: 15em; }
.hero .sous-titre { margin-top: var(--esp-6); font-size: 18px; color: var(--texte-2); max-width: 38em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: var(--esp-3); margin-top: var(--esp-8); }
.hero .rassurance { display: flex; flex-wrap: wrap; gap: var(--esp-2) var(--esp-6); margin: var(--esp-6) 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--texte-2); }
.hero .rassurance li { display: flex; align-items: center; gap: var(--esp-2); }
.hero .rassurance .ico { color: var(--accent); width: 18px; height: 18px; }
@media (max-width: 960px) { .hero { padding-top: var(--esp-12); } }

/* Captures et vidéos de l'application : cadre fin, coins de fenêtre macOS. */
.capture-hero { margin: var(--esp-12) 0 0; }
.capture-hero img, .video-app {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 9;
  border: 1px solid var(--bordure-forte); border-radius: var(--rayon-l);
  box-shadow: var(--ombre-haute); background: var(--surface);
}
.capture-hero img.theme-clair-seul, :root[data-theme="clair"] .capture-hero img.theme-sombre-seul { display: none; }
:root[data-theme="clair"] .capture-hero img.theme-clair-seul { display: block; }
.capture-hero figcaption, .note-video { margin-top: var(--esp-3); color: var(--texte-3); font-size: 13px; }
@media (max-width: 600px) { .capture-hero { margin-top: var(--esp-8); } .capture-hero img, .video-app { border-radius: var(--rayon); } }

/* Terminal / code */
.terminal { background: var(--code-fond); color: var(--code-texte); font: 12.5px/1.6 var(--mono); padding: var(--esp-4); overflow-x: auto; border-radius: 0; margin: 0; white-space: pre; tab-size: 2; }
.terminal .c { color: var(--code-commentaire); }
.terminal .k { color: var(--code-cle); }
.terminal .s { color: var(--code-chaine); }
.terminal .p { color: #6ee7b7; user-select: none; }

/* ---------- Sections ---------- */
.section { padding: var(--esp-24) 0; border-top: 1px solid var(--bordure); }
.section-tete { max-width: 680px; margin-bottom: var(--esp-12); }
.surtitre { font: 600 13px var(--mono); color: var(--accent-lien); margin-bottom: var(--esp-3); letter-spacing: .02em; }
.section h2 { font-size: clamp(26px, 3.2vw, 36px); font-weight: 700; letter-spacing: -.02em; }
.section-tete p { margin-top: var(--esp-4); color: var(--texte-2); font-size: 17px; }
@media (max-width: 600px) { .section { padding: var(--esp-16) 0; } .section-tete { margin-bottom: var(--esp-8); } }

/* Aperçus à onglets : onglets au-dessus, vidéo pleine largeur (texte de l'interface lisible). */
.apercus { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--esp-6); }
.apercus-liste { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--esp-2); }
.apercus-liste button {
  display: flex; gap: var(--esp-3); text-align: left; width: 100%;
  background: none; border: 1px solid var(--bordure); border-radius: var(--rayon);
  padding: var(--esp-3) var(--esp-4); color: var(--texte-2); cursor: pointer; font: inherit;
}
.apercus-liste button .ico { margin-top: 2px; color: var(--texte-3); }
.apercus-liste button strong { display: block; color: var(--texte); font-size: 15px; font-weight: 600; }
.apercus-liste button span { font-size: 13.5px; line-height: 1.45; }
.apercus-liste button:hover { background: var(--surface); }
.apercus-liste button[aria-selected="true"] { background: var(--surface); border-color: var(--accent); }
.apercus-liste button[aria-selected="true"] .ico { color: var(--accent); }
.apercus-panneau[hidden] { display: none; }
@media (max-width: 900px) {
  .apercus-liste { display: flex; overflow-x: auto; scrollbar-width: none; }
  .apercus-liste button { flex: none; width: auto; padding: var(--esp-2) var(--esp-4); align-items: center; }
  .apercus-liste button span { display: none; }
  .apercus-liste button strong { font-size: 14px; white-space: nowrap; }
  .apercus-liste button .ico { margin: 0; }
}

/* Grille de points forts */
.grille-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--esp-6); }
@media (max-width: 900px) { .grille-3 { grid-template-columns: minmax(0, 1fr); } }
.point h3 { font-size: 17px; font-weight: 600; display: flex; align-items: center; gap: var(--esp-2); margin-bottom: var(--esp-2); }
.point h3 .ico { color: var(--accent); }
.point p { color: var(--texte-2); font-size: 15px; }

/* Comparatif */
.comparatif { display: grid; grid-template-columns: 1fr 1fr; gap: var(--esp-6); }
@media (max-width: 760px) { .comparatif { grid-template-columns: minmax(0, 1fr); } }
.offre { background: var(--surface); border: 1px solid var(--bordure); border-radius: var(--rayon-l); padding: var(--esp-8); }
.offre.nous { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.offre h3 { font-size: 15px; font-weight: 600; color: var(--texte-2); }
.offre .prix { margin: var(--esp-3) 0 var(--esp-1); font-size: 40px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.offre .prix small { font-size: 16px; font-weight: 500; color: var(--texte-2); }
.offre .prix-note { color: var(--texte-3); font-size: 14px; }
.offre ul { list-style: none; padding: 0; margin: var(--esp-6) 0 0; display: grid; gap: var(--esp-3); font-size: 15px; }
.offre li { display: flex; gap: var(--esp-3); align-items: flex-start; color: var(--texte-2); }
.offre li .ico { margin-top: 2px; }
.offre .ico.non { color: var(--texte-3); }
.offre .ico.oui { color: var(--accent); }
.cumul { margin-top: var(--esp-8); }
.cumul table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 15px; }
.cumul th, .cumul td { padding: var(--esp-3) var(--esp-4); text-align: right; border-bottom: 1px solid var(--bordure); }
.cumul th:first-child, .cumul td:first-child { text-align: left; }
.cumul thead th { color: var(--texte-3); font-weight: 500; font-size: 13px; }
.cumul td.nous { color: var(--accent-lien); font-weight: 600; }
.note { margin-top: var(--esp-3); color: var(--texte-3); font-size: 13px; }
.defile-x { overflow-x: auto; }

/* MCP */
.mcp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: var(--esp-12); align-items: start; }
@media (max-width: 960px) { .mcp { grid-template-columns: minmax(0, 1fr); } }
.etapes { list-style: none; padding: 0; margin: 0; counter-reset: e; display: grid; gap: var(--esp-6); }
.etapes li { counter-increment: e; display: grid; grid-template-columns: 28px 1fr; gap: var(--esp-3); }
.etapes li::before { content: counter(e); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--bordure-forte); font: 600 13px var(--mono); color: var(--texte-2); }
.etapes strong { display: block; font-weight: 600; }
.etapes p { color: var(--texte-2); font-size: 15px; margin-top: 2px; }
.outils-mcp { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--esp-6); }
.outils-mcp code { background: var(--surface); border: 1px solid var(--bordure); border-radius: 6px; padding: 3px 8px; font-size: 12.5px; color: var(--texte-2); }
.bloc-code { border: 1px solid var(--bordure-forte); border-radius: var(--rayon-l); overflow: hidden; background: var(--code-fond); }
.bloc-code-tete { display: flex; align-items: center; gap: 2px; background: var(--surface-2); border-bottom: 1px solid var(--bordure); padding: 0 var(--esp-2); overflow-x: auto; scrollbar-width: none; }
.bloc-code-tete [role="tab"] { background: none; border: 0; border-bottom: 2px solid transparent; color: var(--texte-3); font: 500 13px var(--police); padding: 10px 12px; cursor: pointer; white-space: nowrap; }
.bloc-code-tete [role="tab"][aria-selected="true"] { color: var(--texte); border-color: var(--accent); }
.bloc-code-tete .copier { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; color: var(--texte-3); font: 500 12px var(--police); padding: 8px; cursor: pointer; white-space: nowrap; }
.bloc-code-tete .copier:hover { color: var(--texte); }
.bloc-code .fichier { padding: 8px var(--esp-4) 0; color: var(--code-commentaire); font: 12px var(--mono); }
.bloc-code [role="tabpanel"][hidden] { display: none; }
.precision { margin-top: var(--esp-4); color: var(--texte-3); font-size: 13px; display: flex; gap: var(--esp-2); }
.precision .ico { width: 16px; height: 16px; margin-top: 2px; }

/* Plateformes */
.plateformes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--esp-3); }
.plateforme { border: 1px solid var(--bordure); border-radius: var(--rayon); padding: var(--esp-4); background: var(--surface); }
.plateforme strong { display: block; font-size: 15px; }
.plateforme span { color: var(--texte-3); font-size: 13px; }
@media (max-width: 900px) { .plateformes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Achat */
.achat { display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: var(--esp-12); align-items: start; }
@media (max-width: 960px) { .achat { grid-template-columns: minmax(0, 1fr); } }
.caisse { background: var(--surface); border: 1px solid var(--bordure-forte); border-radius: var(--rayon-l); padding: var(--esp-8); box-shadow: var(--ombre); }
@media (max-width: 600px) { .caisse { padding: var(--esp-6) var(--esp-4); } }
.caisse .ligne-prix { display: flex; align-items: baseline; justify-content: space-between; gap: var(--esp-4); }
.caisse .ligne-prix strong { font-size: 18px; }
.caisse .ligne-prix span { font-size: 36px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.caisse .sous { color: var(--texte-3); font-size: 14px; margin-top: var(--esp-1); }
.caisse ul { list-style: none; padding: 0; margin: var(--esp-6) 0; display: grid; gap: var(--esp-2); font-size: 15px; color: var(--texte-2); }
.caisse li { display: flex; gap: var(--esp-2); }
.caisse li .ico { color: var(--accent); margin-top: 2px; width: 18px; height: 18px; }
.coche { display: grid; grid-template-columns: 22px 1fr; gap: var(--esp-3); align-items: start; padding: var(--esp-3) 0; border-top: 1px solid var(--bordure); font-size: 14px; color: var(--texte-2); cursor: pointer; }
.coche input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent-plein); cursor: pointer; }
.caisse .btn { width: 100%; margin-top: var(--esp-4); }
.caisse .aide { margin-top: var(--esp-3); font-size: 13px; color: var(--texte-3); min-height: 1.6em; }
.caisse .aide[data-etat="info"] { color: var(--texte-2); }
.paiement-mentions { margin-top: var(--esp-4); font-size: 12.5px; color: var(--texte-3); line-height: 1.5; }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--bordure); }
.faq summary { list-style: none; cursor: pointer; padding: var(--esp-6) 0; display: flex; justify-content: space-between; gap: var(--esp-4); font-weight: 600; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { color: var(--texte-3); transition: transform .2s; margin-top: 2px; }
.faq details[open] summary .ico { transform: rotate(45deg); }
.faq details > div { padding: 0 0 var(--esp-6); color: var(--texte-2); max-width: 680px; }
.faq details > div p + p { margin-top: var(--esp-3); }

/* Pied de page */
.pied { border-top: 1px solid var(--bordure); padding: var(--esp-12) 0; font-size: 14px; color: var(--texte-3); }
.pied .conteneur { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--esp-8); }
.pied h4 { color: var(--texte); font-size: 14px; font-weight: 600; margin-bottom: var(--esp-3); }
.pied ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--esp-2); }
.pied a { color: var(--texte-2); text-decoration: none; }
.pied a:hover { color: var(--texte); text-decoration: underline; }
.pied .identite p + p { margin-top: var(--esp-2); }
@media (max-width: 760px) { .pied .conteneur { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Pages légales ---------- */
.legal { padding: var(--esp-12) 0 var(--esp-24); }
.legal .conteneur { max-width: 820px; }
.legal .fil { font-size: 14px; margin-bottom: var(--esp-6); }
.legal .fil a { color: var(--texte-2); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.legal h1 { font-size: clamp(28px, 3.4vw, 38px); font-weight: 700; letter-spacing: -.02em; }
.legal .maj { color: var(--texte-3); font-size: 14px; margin-top: var(--esp-2); }
.legal .sommaire { margin: var(--esp-8) 0; padding: var(--esp-4) var(--esp-6); background: var(--surface); border: 1px solid var(--bordure); border-radius: var(--rayon); font-size: 14px; }
.legal .sommaire ol { margin: var(--esp-2) 0 0; padding-left: 1.2em; columns: 2; column-gap: var(--esp-8); }
@media (max-width: 600px) { .legal .sommaire ol { columns: 1; } }
.legal h2 { font-size: 20px; font-weight: 650; margin: var(--esp-12) 0 var(--esp-3); }
.legal h3 { font-size: 16px; font-weight: 600; margin: var(--esp-6) 0 var(--esp-2); }
.legal p, .legal li { color: var(--texte-2); }
.legal p + p { margin-top: var(--esp-3); }
.legal ul, .legal ol { padding-left: 1.3em; }
.legal li + li { margin-top: var(--esp-2); }
.legal dl { display: grid; grid-template-columns: minmax(150px, 220px) 1fr; gap: var(--esp-2) var(--esp-6); margin: var(--esp-4) 0; }
.legal dt { color: var(--texte-3); font-size: 14px; }
.legal dd { margin: 0; color: var(--texte); }
@media (max-width: 600px) { .legal dl { grid-template-columns: 1fr; gap: 0; } .legal dd { margin-bottom: var(--esp-3); } }
.legal .encadre { margin: var(--esp-6) 0; padding: var(--esp-4) var(--esp-6); border-left: 3px solid var(--accent); background: var(--surface); border-radius: 0 var(--rayon) var(--rayon) 0; }
.legal strong { color: var(--texte); }

/* ---------- Page de livraison (après paiement, non indexée) ---------- */
.livraison { padding: var(--esp-12) 0 var(--esp-24); }
.livraison .conteneur { max-width: 1040px; }
.livraison-tete { display: grid; grid-template-columns: 48px 1fr; gap: var(--esp-4); align-items: start; max-width: 760px; }
.pastille-ok { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--accent-doux); color: var(--accent-lien); }
.pastille-ok .ico { width: 26px; height: 26px; stroke-width: 2.2; }
.livraison h1 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 700; letter-spacing: -.02em; }
.livraison-tete p { margin-top: var(--esp-3); color: var(--texte-2); font-size: 17px; }
.livraison-tete .reference { font: 13px var(--mono); color: var(--texte-3); margin-top: var(--esp-2); overflow-wrap: anywhere; }
.livraison h2 { font-size: 22px; font-weight: 650; letter-spacing: -.01em; margin: var(--esp-16) 0 var(--esp-2); }
.livraison .chapo { color: var(--texte-2); max-width: 680px; margin-bottom: var(--esp-6); }
.confirmation { margin-top: var(--esp-8); background: var(--surface); border: 1px solid var(--bordure); border-left: 3px solid var(--accent); border-radius: 0 var(--rayon) var(--rayon) 0; padding: var(--esp-6); }
.confirmation h2 { margin: 0 0 var(--esp-3); font-size: 17px; }
.confirmation p, .confirmation li { color: var(--texte-2); font-size: 15px; }
.confirmation p + p, .confirmation ul + p { margin-top: var(--esp-3); }
.confirmation ul { margin: var(--esp-3) 0 0; padding-left: 1.2em; display: grid; gap: var(--esp-1); }
.confirmation strong { color: var(--texte); }
.confirmation .actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--esp-3) var(--esp-6); margin-top: var(--esp-4); font-size: 14px; }
.telechargements { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--esp-3); }
@media (max-width: 960px) { .telechargements { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .telechargements { grid-template-columns: minmax(0, 1fr); } }
.carte-dl { display: flex; flex-direction: column; gap: var(--esp-1); background: var(--surface); border: 1px solid var(--bordure); border-radius: var(--rayon-l); padding: var(--esp-6) var(--esp-4) var(--esp-4); }
.carte-dl.recommandee { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.carte-dl strong { font-size: 17px; }
.carte-dl .format { font: 12.5px var(--mono); color: var(--texte-3); }
.carte-dl .detail { font-size: 13px; color: var(--texte-2); margin-bottom: var(--esp-4); }
.carte-dl .etiquette { align-self: flex-start; font: 600 11.5px var(--mono); color: var(--accent-lien); margin-bottom: var(--esp-1); }
.carte-dl .btn { margin-top: auto; width: 100%; padding: 0 var(--esp-3); }
.carte-dl .indispo { margin-top: auto; font-size: 13px; color: var(--texte-3); min-height: 44px; display: flex; align-items: center; }
.guide { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--esp-12); align-items: start; }
@media (max-width: 860px) { .guide { grid-template-columns: minmax(0, 1fr); gap: var(--esp-8); } }
.guide h3 { font-size: 16px; font-weight: 600; margin-bottom: var(--esp-4); }
.systemes { display: grid; gap: var(--esp-3); margin: 0; }
.systemes div { border-bottom: 1px solid var(--bordure); padding-bottom: var(--esp-3); }
.systemes dt { font-weight: 600; font-size: 15px; }
.systemes dd { margin: 2px 0 0; color: var(--texte-2); font-size: 14.5px; }
.systemes code, .etapes code { font-size: 13px; background: var(--surface-2); border-radius: 4px; padding: 1px 5px; }
@media (max-width: 600px) { .livraison { padding-top: var(--esp-8); } .livraison-tete { grid-template-columns: 1fr; gap: var(--esp-3); } .livraison h2 { margin-top: var(--esp-12); } .confirmation { padding: var(--esp-4); } }
@media print {
  .entete, .pied, .telechargements, .confirmation .actions button { display: none !important; }
  body { background: #fff; color: #000; }
}
.alerte { margin-top: var(--esp-4); padding: var(--esp-3) var(--esp-4); border: 1px solid var(--bordure); border-left: 3px solid var(--orange); border-radius: 0 var(--rayon) var(--rayon) 0; background: var(--surface); }
.livraison-tete .alerte p { margin: 0; font-size: 15px; }
.alerte code { font-size: 13px; background: var(--surface-2); border-radius: 4px; padding: 1px 5px; }
.boutons-dl { margin-top: auto; display: grid; gap: var(--esp-2); }
.boutons-dl .btn { margin-top: 0; }
