/* Présentation baimi-algo : diapositives 1280 × 720 mises à l'échelle de l'écran. */
:root {
  --bleu: #0b6bcb; --bleu-fonce: #083d80; --bleu-nuit: #062a5a; --jaune: #ffc72c;
  --texte: #1f2328; --doux: #57606a; --fond: #f4f8fd;
  --echelle: 1;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: #0b1521; color: var(--texte);
  font: 400 24px/1.45 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  overflow: hidden;
}
:focus-visible { outline: 3px solid var(--jaune); outline-offset: 3px; }
img { display: block; max-width: 100%; height: auto; }
code, pre { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; }
code { font-size: 0.85em; background: #e9eff6; padding: 0.05em 0.3em; border-radius: 5px; }

/* Sans JavaScript : les diapositives se lisent les unes sous les autres. */
html:not(.js) body { overflow: auto; }
html:not(.js) .scene { display: grid; gap: 24px; padding: 24px; }
html:not(.js) .diapo { position: relative; width: min(1280px, 100%); margin: 0 auto; }
html:not(.js) .commandes, html:not(.js) .progression { display: none; }

/* Avec JavaScript : une diapositive à la fois, centrée et mise à l'échelle. */
.js .scene {
  position: absolute; left: 50%; top: 50%; width: 1280px; height: 720px;
  transform: translate(-50%, -50%) scale(var(--echelle)); transform-origin: center;
}
.js .diapo {
  position: absolute; inset: 0; visibility: hidden; opacity: 0;
  transition: opacity 0.35s ease, visibility 0s linear 0.35s;
}
.js .diapo.active { visibility: visible; opacity: 1; transition: opacity 0.35s ease; }
@media (prefers-reduced-motion: reduce) { .js .diapo, .js .diapo.active { transition: none; } }

.diapo {
  width: 1280px; height: 720px; overflow: hidden;
  background: #fff; padding: 64px 80px; display: flex; flex-direction: column;
  border-radius: 6px; box-shadow: 0 30px 80px rgb(0 0 0 / 0.45);
}
.surtitre { margin: 0 0 10px; color: var(--bleu); font-size: 17px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
h1, h2 { margin: 0 0 28px; letter-spacing: -0.02em; line-height: 1.1; }
h2 { font-size: 48px; font-weight: 800; }
.liste { margin: 0; padding-left: 1.1em; display: grid; gap: 14px; }
.liste li::marker { color: var(--bleu); }
.grand { font-size: 30px; line-height: 1.35; font-weight: 600; }
.pied-diapo { margin-top: auto; color: var(--doux); font-size: 22px; }

/* Titre et fin */
.titre {
  color: #fff; justify-content: center; align-items: flex-start;
  background:
    radial-gradient(900px 500px at 90% -10%, rgb(108 182 255 / 0.35), transparent 60%),
    radial-gradient(700px 400px at -10% 110%, rgb(255 199 44 / 0.18), transparent 60%),
    linear-gradient(160deg, var(--bleu) 0%, var(--bleu-fonce) 62%, var(--bleu-nuit) 100%);
}
.titre .surtitre { color: #fff; opacity: 0.9; }
.titre-logo { width: 112px; height: 112px; border-radius: 26px; margin-bottom: 28px; box-shadow: 0 16px 40px rgb(0 0 0 / 0.3); }
.titre h1 { font-size: 104px; font-weight: 850; margin-bottom: 14px; }
.titre-accroche { font-size: 44px; font-weight: 700; margin: 0 0 40px; line-height: 1.2; }
.titre-accroche span { color: var(--jaune); }
.titre-accroche a { color: var(--jaune); }
.titre-auteur { margin-top: 24px; font-size: 22px; opacity: 0.85; }
.fin h2 { font-size: 60px; max-width: 900px; }
.fin p { font-size: 26px; }

/* Colonnes */
.deux-colonnes { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; flex: 1; }
.papier {
  margin: 0; padding: 24px 28px; font-size: 19px; line-height: 1.55;
  background: #fffdf3; border: 1px solid #eadfb8; border-radius: 10px;
  box-shadow: 0 10px 30px rgb(120 100 30 / 0.15); transform: rotate(-1.2deg);
}
.mc { color: #7b2fbf; } .ty { color: #0a7d55; } .ch { color: #a3151d; }

.etapes { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: e; }
.etapes li {
  counter-increment: e; background: var(--fond); border-radius: 18px; padding: 28px 24px 30px;
  display: flex; flex-direction: column; gap: 8px; border-top: 6px solid var(--bleu);
}
.etapes li::before { content: counter(e); font-size: 56px; font-weight: 850; color: var(--bleu); line-height: 1; }
.etapes strong { font-size: 30px; }
.etapes span { color: var(--doux); font-size: 21px; }

/* Grande capture : texte à gauche, capture à droite, qui déborde. */
.image-large { display: grid; grid-template-columns: 400px 1fr; gap: 40px; padding-right: 0; align-items: center; }
.image-large .texte { font-size: 22px; }
.image-large h2 { font-size: 42px; }
.image-large > img {
  height: auto; align-self: center;
  width: 820px; max-width: none; border-radius: 12px 0 0 12px;
  box-shadow: 0 20px 50px rgb(8 61 128 / 0.25); border: 1px solid #d8e2ee;
}
.image-cote { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.image-cote > img { width: 100%; border-radius: 12px; box-shadow: 0 20px 50px rgb(8 61 128 / 0.2); border: 1px solid #d8e2ee; }
.telephone-diapo { grid-template-columns: 1fr 280px; }
.cadre-telephone { padding: 8px; background: #111821; border-radius: 34px; width: 272px !important; height: auto; }

/* Installer */
.installer { display: grid; grid-template-columns: 1fr 360px; gap: 56px; align-items: center; }
.installer h2 { font-size: 54px; color: var(--bleu-fonce); }
.systemes-diapo { list-style: none; padding: 0; margin: 0 0 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.systemes-diapo li { background: var(--fond); border-radius: 14px; padding: 16px 20px; font-size: 21px; color: var(--doux); }
.systemes-diapo strong { display: block; color: var(--texte); font-size: 26px; }
.qr { margin: 0; text-align: center; }
.qr img { width: 340px; height: 340px; border-radius: 16px; box-shadow: 0 16px 40px rgb(8 61 128 / 0.2); }
.qr figcaption { margin-top: 14px; font-weight: 700; color: var(--bleu-fonce); }

/* Commandes */
.commandes {
  position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 10;
  display: flex; align-items: center; gap: 6px; padding: 6px 8px;
  background: rgb(10 20 33 / 0.78); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-radius: 999px; color: #fff; font-size: 15px;
  transition: opacity 0.3s;
}
.commandes button {
  width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: #fff;
  font-size: 24px; line-height: 1; cursor: pointer;
}
.commandes button:hover { background: rgb(255 255 255 / 0.12); }
.commandes .retour-site { color: #fff; text-decoration: none; font-weight: 700; padding: 0 10px; }
.compteur { min-width: 64px; text-align: center; font-variant-numeric: tabular-nums; }
.calme .commandes { opacity: 0; }
.calme .commandes:focus-within { opacity: 1; }
.progression { position: fixed; left: 0; right: 0; top: 0; height: 4px; background: rgb(255 255 255 / 0.08); z-index: 10; }
.progression span { display: block; height: 100%; width: 0; background: var(--jaune); transition: width 0.3s ease; }
