/* Site vitrine : PharmaTech, BAR, Épargne à la carte.
   Aucune police ni bibliothèque externe : polices du système, icônes SVG. */

:root {
  --fond: #f6f8f7;
  --surface: #ffffff;
  --teinte: #eaf3ee;
  --encre: #14201e;
  --doux: #55655f;
  --bord: #dde6e3;
  --marque: #17804d;
  --marque-vif: #2bb673;
  --marque-encre: #ffffff;
  --pharmatech: #17804d;
  --bar: #b45309;
  --epargne: #1d4ed8;
  --whatsapp: #128c4a;
  --logo-bleu: #1e6fd9;   /* « Digital », comme sur les reçus */
  --logo-vert: #17804d;   /* « Tech » */
  --ombre: 0 1px 2px rgba(20, 32, 30, .06), 0 8px 24px rgba(20, 32, 30, .06);
  --rayon: 16px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --fond: #0f1715;
    --surface: #16211e;
    --teinte: #13241d;
    --encre: #e7efec;
    --doux: #9db0aa;
    --bord: #26352f;
    --marque: #2bb673;
    --marque-vif: #3fd08a;
    --marque-encre: #06140e;
    --pharmatech: #3fd08a;
    --bar: #f59e0b;
    --epargne: #60a5fa;
    --whatsapp: #25d366;
    --logo-bleu: #5b9bf0;
    --logo-vert: #3fd08a;
    --ombre: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --fond: #0f1715;
  --surface: #16211e;
  --teinte: #13241d;
  --encre: #e7efec;
  --doux: #9db0aa;
  --bord: #26352f;
  --marque: #2bb673;
  --marque-vif: #3fd08a;
  --marque-encre: #06140e;
  --pharmatech: #3fd08a;
  --bar: #f59e0b;
  --epargne: #60a5fa;
  --whatsapp: #25d366;
  --logo-bleu: #5b9bf0;
  --logo-vert: #3fd08a;
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--fond);
  color: var(--encre);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-x: hidden;
}

a { color: var(--marque); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.2rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
code { font-family: ui-monospace, Consolas, monospace; font-size: .9em; background: var(--teinte); padding: .1em .35em; border-radius: 6px; overflow-wrap: anywhere; }

.conteneur { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .conteneur { padding: 0 24px; } }

.aller-contenu { position: absolute; left: -999px; top: 8px; }
.aller-contenu:focus { left: 8px; z-index: 10; background: var(--surface); padding: 8px 12px; border-radius: 8px; }

/* ── En-tête ── */
.entete {
  position: sticky; top: 0; z-index: 5;
  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(--bord);
}
.entete-ligne { display: flex; align-items: center; gap: 16px; height: 64px; }
.marque { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--encre); font-weight: 800; font-size: 1.15rem; }
.marque-logo { width: 34px; height: 34px; flex: none; }
.marque-digital { color: var(--logo-bleu); }
.marque-tech { color: var(--logo-vert); }
.menu { display: none; gap: 24px; margin-left: auto; }
.menu a { color: var(--doux); text-decoration: none; font-weight: 600; }
.menu a:hover { color: var(--encre); }
.entete .bouton-petit { margin-left: auto; }
@media (min-width: 760px) {
  .menu { display: flex; }
  .entete .bouton-petit { margin-left: 8px; }
}

/* ── Boutons ── */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px;
  background: var(--marque); color: var(--marque-encre);
  border: 1px solid transparent; border-radius: 12px;
  font-weight: 700; text-decoration: none; text-align: center;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.bouton:hover { transform: translateY(-1px); box-shadow: var(--ombre); }
.bouton:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--marque-vif); outline-offset: 2px; }
.bouton svg { width: 20px; height: 20px; fill: currentColor; }
.bouton-petit { min-height: 40px; padding: 8px 16px; font-size: .95rem; }
.bouton-clair { background: var(--surface); color: var(--encre); border-color: var(--bord); }
.bouton-whatsapp { background: var(--whatsapp); color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── Accueil ── */
.hero { padding: 48px 0 56px; background: radial-gradient(900px 400px at 85% 0%, color-mix(in srgb, var(--marque-vif) 18%, transparent), transparent 70%); }
.hero-grille { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero { padding: 80px 0 88px; } .hero-grille { grid-template-columns: 1.15fr .85fr; } }
.surtitre { color: var(--marque); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; margin-bottom: .75em; }
.chapo { font-size: 1.15rem; color: var(--doux); max-width: 36em; margin-bottom: 1.6em; }
.pastilles { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pastilles li { background: var(--surface); border: 1px solid var(--bord); border-radius: 999px; padding: 4px 12px; font-size: .9rem; font-weight: 600; color: var(--doux); }

.hero-visuel { position: relative; max-width: 420px; width: 100%; margin: 0 auto; }
.ecran { background: var(--surface); border: 1px solid var(--bord); border-radius: 20px; box-shadow: var(--ombre); padding: 18px; }
.ecran-barre { display: flex; gap: 6px; margin-bottom: 16px; }
.ecran-barre span { width: 10px; height: 10px; border-radius: 50%; background: var(--bord); }
.ecran-ligne { height: 10px; border-radius: 6px; background: var(--teinte); margin-top: 12px; }
.ecran-ligne.courte { width: 60%; }
.ecran-titre { width: 45%; height: 14px; margin: 0 0 16px; background: var(--bord); }
.ecran-chiffres { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ecran-chiffres div { background: var(--teinte); border-radius: 12px; padding: 12px; }
.ecran-chiffres b { display: block; font-size: 1.35rem; color: var(--marque); }
.ecran-chiffres small { color: var(--doux); }
.ecran-graphe { display: flex; align-items: flex-end; gap: 8px; height: 110px; margin-top: 16px; padding: 10px; border-radius: 12px; background: var(--teinte); }
.ecran-graphe i { flex: 1; border-radius: 6px 6px 2px 2px; background: linear-gradient(var(--marque-vif), var(--marque)); }
.bulle { position: absolute; right: -6px; bottom: -14px; display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--bord); border-radius: 999px; padding: 8px 14px; font-weight: 700; font-size: .9rem; box-shadow: var(--ombre); }
.point { width: 10px; height: 10px; border-radius: 50%; background: var(--marque-vif); box-shadow: 0 0 0 4px color-mix(in srgb, var(--marque-vif) 25%, transparent); }

/* ── Sections ── */
.section { padding: 64px 0; }
.section-teintee { background: var(--teinte); }
.section-intro { color: var(--doux); max-width: 44em; margin-bottom: 32px; }

.produits { display: grid; gap: 20px; }
@media (min-width: 900px) { .produits { grid-template-columns: repeat(3, 1fr); } }
.produit {
  --accent: var(--pharmatech);
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--bord); border-radius: var(--rayon);
  padding: 24px; box-shadow: var(--ombre);
  border-top: 4px solid var(--accent);
}
.produit-bar { --accent: var(--bar); }
.produit-epargne { --accent: var(--epargne); }
.produit-icone { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 16px; background: color-mix(in srgb, var(--accent) 14%, transparent); }
.produit-icone svg { width: 26px; height: 26px; fill: var(--accent); }
.produit-accroche { color: var(--doux); }
.liste-coches { list-style: none; padding: 0; margin: 0 0 20px; flex: 1; }
.liste-coches li { position: relative; padding-left: 28px; margin-bottom: 10px; }
.liste-coches li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
}
.liste-coches li::after {
  content: ""; position: absolute; left: 6px; top: calc(.3em + 4px); width: 5px; height: 9px;
  border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.lien-fleche { font-weight: 700; color: var(--accent); text-decoration: none; margin-top: auto; }
.lien-fleche::after { content: " →"; }
.lien-fleche:hover { text-decoration: underline; }

.atouts { display: grid; gap: 20px; margin-top: 32px; }
@media (min-width: 640px) { .atouts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .atouts { grid-template-columns: repeat(4, 1fr); } }
.atout { background: var(--surface); border: 1px solid var(--bord); border-radius: var(--rayon); padding: 22px; }
.atout svg { width: 28px; height: 28px; fill: var(--marque); margin-bottom: 10px; }
.atout p { color: var(--doux); margin: 0; }

/* ── Téléchargements ── */
.etat-chargement { color: var(--doux); }
.etat-chargement:empty { display: none; }
.telechargements { display: grid; gap: 20px; }
.bloc-telechargement { background: var(--surface); border: 1px solid var(--bord); border-radius: var(--rayon); padding: 22px; scroll-margin-top: 80px; }
.plateformes { display: grid; gap: 12px; }
@media (min-width: 700px) { .plateformes { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); } }
.plateforme {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border-radius: 12px; border: 1px solid var(--bord);
  background: var(--fond); color: var(--encre); text-decoration: none;
  transition: border-color .15s ease, transform .15s ease;
}
.plateforme:hover { border-color: var(--marque); transform: translateY(-1px); }
.plateforme svg { width: 30px; height: 30px; fill: var(--marque); flex: none; }
.plateforme b { display: block; }
.plateforme small { color: var(--doux); }
.version-details { margin-top: 12px; color: var(--doux); font-size: .95rem; }
.version-details summary { cursor: pointer; font-weight: 600; color: var(--encre); }
.version-details p { white-space: pre-line; margin: 8px 0 0; }
.version-details code { display: inline-block; margin-top: 4px; }
.bientot { color: var(--doux); margin: 0; }
.bientot a { font-weight: 700; }

.aides { display: grid; gap: 12px; margin-top: 28px; }
.aides details { background: var(--surface); border: 1px solid var(--bord); border-radius: 12px; padding: 14px 18px; }
.aides summary { cursor: pointer; font-weight: 700; }
.aides ol { margin: 12px 0 0; padding-left: 1.3em; color: var(--doux); }
.aides p { margin: 12px 0 0; color: var(--doux); }

/* ── Contact et pied ── */
.section-contact { background: var(--teinte); }
.contact { display: grid; gap: 24px; align-items: center; }
@media (min-width: 900px) { .contact { grid-template-columns: 1fr auto; } }
.contact p { color: var(--doux); margin: 0; max-width: 36em; }
.pied { border-top: 1px solid var(--bord); padding: 24px 0; color: var(--doux); font-size: .95rem; }
.pied-ligne { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }
