/*
 * Site de téléchargement MBILLA — refait le 1er déc. 2026 : UNE action (installer), guidée pas à pas.
 * Couleurs et polices de l'appli (vert #1F7A4D, crème, maïs ; Plus Jakarta Sans + Inter). Téléphone d'abord (320 px),
 * mode sombre « Ardoise » comme l'appli. Pas de style dans la page (sécurité : voir _headers).
 */
@font-face { font-family: 'Plus Jakarta Sans'; src: url('polices/PlusJakartaSans-700.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Plus Jakarta Sans'; src: url('polices/PlusJakartaSans-600.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('polices/Inter-400.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('polices/Inter-500.ttf') format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('polices/Inter-600.ttf') format('truetype'); font-weight: 600; font-display: swap; }

:root {
  --fond: #fbf8f1;
  --surface: #ffffff;
  --surface-alt: #f3f5f0;
  --bordure: #e6e9e2;
  --texte: #14201a;
  --texte-doux: #56615a;
  --texte-indice: #7b857e;
  --vert: #1f7a4d;
  --vert-presse: #19643f;
  --vert-doux: #e5f3ea;
  --vert-texte: #1f7a4d;
  --sur-vert: #ffffff;
  --mais: #f2a900;
  --mais-doux: #fff3d1;
  --mais-texte: #7a5600;
  --ombre: 0 1px 2px rgba(20, 32, 26, 0.04), 0 10px 30px rgba(20, 32, 26, 0.07);
  --ombre-bouton: 0 6px 18px rgba(31, 122, 77, 0.28);
  --rayon: 18px;
  --rayon-l: 24px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fond: #1d232b;
    --surface: #262d36;
    --surface-alt: #2f3741;
    --bordure: #3a424e;
    --texte: #f3f6f9;
    --texte-doux: #b4bcc5;
    --texte-indice: #8d96a1;
    --vert-doux: #1d3a2d;
    --vert-texte: #5fd08f;
    --mais-doux: #3a3220;
    --mais-texte: #f5c95a;
    --ombre: 0 1px 2px rgba(0, 0, 0, 0.2), 0 10px 30px rgba(0, 0, 0, 0.3);
    --ombre-bouton: 0 6px 18px rgba(0, 0, 0, 0.35);
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

h1, h2 { font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif; font-weight: 700; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: var(--vert-texte); }
img { max-width: 100%; height: auto; display: block; }

/* Les icônes : un sprite SVG, au trait, de la couleur du texte. */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ic-texte { width: 16px; height: 16px; vertical-align: -3px; margin-left: 2px; }

/* --- Bandeau et en-tête --- */
.bandeau {
  background: var(--mais-doux);
  color: var(--mais-texte);
  font-size: 12.5px;
  font-weight: 500;
  text-align: center;
  padding: 6px 16px;
}

.entete {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  /* Vieux téléphones sans color-mix() : fond plein. */
  background: var(--fond);
  background: color-mix(in srgb, var(--fond) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--bordure) 70%, transparent);
}
.marque { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--texte); }
.marque img { width: 34px; height: 34px; border-radius: 10px; }
.marque span { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 21px; letter-spacing: -0.03em; }
.marque b { color: var(--mais); }
.entete-action {
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  color: var(--vert-texte);
  background: var(--vert-doux);
  padding: 8px 14px;
  border-radius: 999px;
}

main { max-width: 1040px; margin: 0 auto; padding: 0 16px; }

/* --- Héros : la promesse + la carte d'installation --- */
.heros { padding: 22px 0 8px; display: grid; gap: 20px; }
.lieu {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--vert-texte);
  background: var(--vert-doux);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}
h1 { font-size: clamp(32px, 9vw, 52px); line-height: 1.08; letter-spacing: -0.035em; }
h1 span { color: var(--vert-texte); }
.chapeau { margin-top: 10px; color: var(--texte-doux); font-size: 16px; max-width: 34em; }

.installer {
  background: var(--surface);
  border: 1px solid var(--bordure);
  border-radius: var(--rayon-l);
  box-shadow: var(--ombre);
  padding: 18px 16px 20px;
}
.installer-titre { font-size: 19px; margin-bottom: 12px; }

/* Choix de l'appareil : une pilule à 3 cases, comme un interrupteur. */
.appareils {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 4px;
  background: var(--surface-alt);
  border-radius: 14px;
}
.appareil {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--texte-doux);
  font: 600 13.5px/1 'Inter', system-ui, sans-serif;
  cursor: pointer;
}
.appareil .ic { width: 16px; height: 16px; }
.appareil[aria-selected='true'] { background: var(--surface); color: var(--texte); box-shadow: 0 1px 3px rgba(20, 32, 26, 0.12); }
.appareil:focus-visible { outline: 2px solid var(--vert); outline-offset: 2px; }
.detecte { margin-top: 8px; font-size: 12.5px; color: var(--texte-indice); text-align: center; }

.alerte {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--mais-doux);
  color: var(--mais-texte);
  font-size: 13.5px;
}
.alerte .ic { width: 18px; height: 18px; margin-top: 1px; }

.panneau { margin-top: 16px; }

.bouton {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 20px;
  border-radius: 16px;
  font: 600 16.5px/1.2 'Inter', system-ui, sans-serif;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
}
.bouton-principal { background: var(--vert); color: var(--sur-vert); box-shadow: var(--ombre-bouton); }
.bouton-principal:hover { background: var(--vert-presse); }
.bouton-principal:active { transform: scale(0.985); }
.bouton-principal[aria-disabled='true'] { background: var(--surface-alt); color: var(--texte-indice); box-shadow: none; cursor: default; }
.bouton-second { background: var(--surface-alt); color: var(--texte); min-height: 48px; font-size: 15px; }
.bouton:focus-visible { outline: 3px solid var(--mais); outline-offset: 2px; }
.infos { margin-top: 8px; text-align: center; font-size: 12.5px; color: var(--texte-indice); }

/* Les 3 étapes : numéro rond + titre court + une phrase. */
.etapes { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 14px; }
.etapes li { display: flex; gap: 12px; align-items: flex-start; }
.etape-num {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--vert-doux);
  color: var(--vert-texte);
  font: 700 13px/26px 'Plus Jakarta Sans', sans-serif;
  text-align: center;
}
.etapes b { display: block; font-size: 14.5px; font-weight: 600; }
.etapes span { display: block; font-size: 13.5px; color: var(--texte-doux); }
.etapes i { font-style: normal; font-weight: 500; color: var(--texte); }

.lien-doux {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
}
.lien-doux .ic { width: 16px; height: 16px; }
.note { margin-top: 16px; font-size: 12.5px; color: var(--texte-indice); }

.qr-bloc { display: flex; gap: 16px; align-items: center; }
.qr-bloc b { display: block; font-size: 15px; margin-bottom: 4px; }
.qr-bloc p { font-size: 13.5px; color: var(--texte-doux); }
.qr { flex: none; width: 132px; height: 132px; padding: 8px; background: #ffffff; border-radius: 14px; border: 1px solid var(--bordure); }
.qr svg { width: 100%; height: 100%; display: block; }
.panneau .bouton-second { margin-top: 16px; }

/* --- Sections --- */
.section { padding: 36px 0 4px; }
.section h2 { font-size: 22px; margin-bottom: 14px; }

/* Les écrans : défilent de côté sur téléphone, côte à côte sur ordinateur. */
.ecrans {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 62%;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  margin: 0 -16px;
  padding: 0 16px 8px;
  scrollbar-width: none;
}
.ecrans::-webkit-scrollbar { display: none; }
.ecrans figure { margin: 0; scroll-snap-align: center; }
.ecrans img { width: 100%; }
.ecrans figcaption { margin-top: 6px; text-align: center; font-size: 13px; color: var(--texte-doux); }

.trois { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.trois li {
  display: grid;
  grid-template-columns: 40px 1fr;
  column-gap: 12px;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  padding: 14px;
}
.trois .rond {
  grid-row: span 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--vert-doux);
  color: var(--vert-texte);
  display: flex;
  align-items: center;
  justify-content: center;
}
.trois b { font-size: 15px; font-weight: 600; }
.trois li > span:last-child { font-size: 13.5px; color: var(--texte-doux); }

.questions { display: grid; gap: 8px; }
.questions details { background: var(--surface); border: 1px solid var(--bordure); border-radius: 14px; padding: 0 14px; }
.questions summary {
  list-style: none;
  cursor: pointer;
  padding: 13px 0;
  font-weight: 600;
  font-size: 14.5px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.questions summary::-webkit-details-marker { display: none; }
.questions summary::after { content: '+'; color: var(--texte-indice); font-weight: 500; font-size: 18px; line-height: 1; }
.questions details[open] summary::after { content: '–'; }
.questions details p { padding: 0 0 14px; font-size: 13.5px; color: var(--texte-doux); }

.pied {
  max-width: 1040px;
  margin: 36px auto 0;
  padding: 20px 16px 96px;
  display: grid;
  gap: 14px;
  text-align: center;
  font-size: 12.5px;
  color: var(--texte-indice);
  border-top: 1px solid var(--bordure);
}

/* Barre du bas : rappelle l'action principale quand on a fait défiler la page. */
.barre-installer {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(14px + env(safe-area-inset-bottom));
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  border-radius: 999px;
  background: var(--vert);
  color: var(--sur-vert);
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--ombre-bouton);
}

/* --- Grand écran : la promesse à gauche, la carte à droite --- */
@media (min-width: 860px) {
  .heros { grid-template-columns: 1.05fr 1fr; align-items: center; gap: 48px; padding: 56px 0 24px; }
  .chapeau { font-size: 18px; }
  .installer { padding: 24px; }
  .ecrans { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); grid-auto-columns: auto; overflow: visible; margin: 0; padding: 0; gap: 24px; }
  .trois { grid-template-columns: repeat(3, 1fr); }
  .trois li { grid-template-columns: 1fr; row-gap: 8px; }
  .trois .rond { grid-row: auto; }
  .questions { max-width: 720px; }
  .barre-installer { display: none; }
  .pied { padding-bottom: 28px; }
}
