/* Présentation en slides : une diapositive par écran, navigation clavier, balayage, molette */
html, body { height: 100%; }
body { overflow: hidden; background: var(--nuit); }

.deck { position: fixed; inset: 0; }
.slide {
  position: absolute; inset: 0; display: grid; align-items: center; overflow-y: auto; overflow-x: hidden;
  padding: 84px clamp(20px, 5vw, 72px) 96px; visibility: hidden; opacity: 0; transform: translateX(40px);
  transition: opacity .55s ease, transform .55s cubic-bezier(.2, .7, .2, 1), visibility 0s linear .55s;
  background: #fff; color: var(--texte);
}
.slide.avant { transform: translateX(-40px); }
.slide.active { visibility: visible; opacity: 1; transform: none; transition: opacity .55s ease, transform .55s cubic-bezier(.2, .7, .2, 1), visibility 0s; }
.slide.sombre { background: var(--nuit); color: #fff; }
.slide.lilas { background: var(--lilas); }
.slide .in { width: 100%; max-width: 1180px; margin: 0 auto; display: grid; gap: 28px; min-width: 0; }

/* apparition des éléments, en cascade */
.slide [data-a] { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i, 0) * 90ms + 150ms); }
.slide.active [data-a] { opacity: 1; transform: none; }

/* décor */
.blob { position: absolute; border-radius: 50%; pointer-events: none; }
.blob.a { width: 62vmax; height: 62vmax; right: -24vmax; top: -26vmax; background: radial-gradient(circle at 35% 35%, rgba(255, 0, 251, .42), rgba(128, 43, 255, .25) 45%, transparent 70%); }
.blob.b { width: 50vmax; height: 50vmax; left: -22vmax; bottom: -30vmax; background: radial-gradient(circle, rgba(128, 43, 255, .38), transparent 65%); }
.slide > .in { position: relative; z-index: 1; }

/* typographie des slides */
.titre-xl { font-size: clamp(40px, 7vw, 88px); font-weight: 900; letter-spacing: -0.035em; line-height: 1.02; }
.titre { font-size: clamp(30px, 4.2vw, 54px); font-weight: 800; }
.chapo { font-size: clamp(17px, 1.7vw, 21px); font-weight: 300; color: var(--texte-2); max-width: 64ch; }
.sombre .chapo { color: #ddd3f2; }
.petit { font-size: 14px; color: var(--texte-3); }
.sombre .petit { color: #b7acd3; }
.tete { display: grid; gap: 14px; }

/* barre du haut et commandes */
.barre { position: fixed; z-index: 10; left: 0; right: 0; top: 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px clamp(16px, 4vw, 40px); pointer-events: none; }
.barre > * { pointer-events: auto; }
.barre .logo { height: 34px; display: block; }
.barre .logo.d { display: none; }
body.clair .barre .logo.l { display: none; }
body.clair .barre .logo.d { display: block; }
.barre .retour { font-size: 13px; font-weight: 600; text-decoration: none; color: #cfc4ea; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .22); }
body.clair .barre .retour { color: var(--texte-2); border-color: var(--trait); background: rgba(255, 255, 255, .8); }

.commandes { position: fixed; z-index: 10; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 14px; padding: 16px clamp(16px, 4vw, 40px) calc(16px + env(safe-area-inset-bottom, 0px)); }
.points { display: flex; gap: 7px; flex: 1; flex-wrap: wrap; }
.points button { width: 9px; height: 9px; padding: 0; border-radius: 99px; border: 0; background: rgba(255, 255, 255, .3); cursor: pointer; transition: width .3s ease, background .3s ease; }
.points button.on { width: 28px; background: var(--grad); }
body.clair .points button { background: #d8cdee; }
body.clair .points button.on { background: var(--grad); }
.compteur { font-size: 13px; font-variant-numeric: tabular-nums; color: #b7acd3; min-width: 52px; text-align: right; }
body.clair .compteur { color: var(--texte-3); }
.nav { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .06); color: #fff; font-size: 20px; cursor: pointer; display: grid; place-items: center; transition: background .2s ease; }
.nav:hover { background: rgba(255, 255, 255, .16); }
.nav.suiv { background: var(--grad); border: 0; }
body.clair .nav { color: var(--nuit); border-color: var(--trait); background: #fff; }
body.clair .nav.suiv { color: #fff; background: var(--grad); }
.nav:disabled { opacity: .3; cursor: default; }
.progression { position: fixed; z-index: 11; left: 0; top: 0; height: 3px; background: var(--grad); transition: width .5s ease; }

/* 1. couverture */
.couv .in { gap: 30px; }
.couv .indice { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #b7acd3; }
.couv .indice kbd { font-family: inherit; font-size: 12px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 6px; padding: 1px 7px; }

/* 2. message d'Alain */
.citation { position: relative; font-size: clamp(22px, 3vw, 36px); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; padding-left: 34px; max-width: 30ch; }
.citation::before { content: "«"; position: absolute; left: -6px; top: -14px; font-size: 64px; line-height: 1; color: var(--magenta); }
.qui { display: flex; gap: 12px; align-items: center; font-size: 14px; color: var(--texte-2); }
.qui img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.puces6 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.puces6 > div { display: grid; gap: 6px; align-content: start; padding: 18px; border-radius: 16px; background: var(--lilas); min-width: 0; }
.puces6 b { font-size: 15px; }
.puces6 span { font-size: 14px; color: var(--texte-2); }
.puces6 i { font-style: normal; font-weight: 800; font-size: 13px; color: var(--violet); }
.deux { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.deux > * { min-width: 0; }

/* 3. chemin du visiteur */
.chemin { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 14px; align-items: stretch; }
.chemin .pas { display: grid; gap: 10px; align-content: start; padding: 26px 22px; border-radius: 20px; background: #fff; box-shadow: var(--ombre); min-width: 0; }
.chemin .pas .n { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--grad); color: #fff; font-weight: 800; font-size: 18px; }
.chemin .pas h3 { font-size: 24px; font-weight: 800; }
.chemin .pas p { color: var(--texte-2); font-size: 15px; }
.chemin .fl { align-self: center; font-size: 28px; color: var(--violet); }
.alain-partout { display: flex; gap: 16px; align-items: center; padding: 16px 20px; border-radius: 18px; background: var(--nuit); color: #fff; }
.alain-partout img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex: none; }
.alain-partout p { font-size: 15px; color: #e4dcf6; }
.alain-partout b { color: #fff; }

/* 4. socle */
.briques { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.brique { display: grid; gap: 8px; align-content: start; padding: 18px 16px; border-radius: 16px; border: 1px solid var(--trait); background: #fff; min-width: 0; }
.brique .pic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--lilas-2); }
.brique .pic svg { width: 20px; height: 20px; stroke: var(--violet); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.brique b { font-size: 15px; line-height: 1.3; }
.brique span { font-size: 13.5px; color: var(--texte-2); }
.chiffre-cle { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.chiffre-cle .v { font-size: clamp(44px, 6vw, 72px); font-weight: 900; letter-spacing: -0.04em; line-height: 1; }
.chiffre-cle p { max-width: 46ch; color: var(--texte-2); }

/* 5. fiche cas */
.fiche { border-radius: 22px; background: #fff; box-shadow: var(--ombre); overflow: hidden; border: 1px solid var(--trait); }
.fiche .hd { padding: 20px 22px; background: var(--nuit); color: #fff; display: grid; gap: 8px; }
.fiche .hd .eti { display: flex; gap: 6px; flex-wrap: wrap; }
.fiche .hd .eti span { font-size: 11.5px; font-weight: 600; padding: 3px 10px; border-radius: 99px; background: rgba(255, 255, 255, .12); color: #eadfff; }
.fiche .hd h3 { font-size: 19px; font-weight: 700; line-height: 1.3; }
.fiche .temps { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--trait); }
.fiche .temps > div { background: #fff; padding: 14px 18px; display: grid; gap: 4px; align-content: start; }
.fiche .temps b { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--violet); }
.fiche .temps p { font-size: 13.5px; color: var(--texte-2); }
.fiche .temps > div.fort { background: var(--lilas); }
.fiche .pied { padding: 12px 18px; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--texte-2); }
.liste-num { display: grid; gap: 12px; counter-reset: n; padding: 0; margin: 0; list-style: none; }
.liste-num li { counter-increment: n; display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; font-size: 16px; }
.liste-num li::before { content: counter(n); width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--lilas-2); color: var(--violet); font-weight: 800; font-size: 15px; }
.liste-num li b { display: block; }
.liste-num li span { color: var(--texte-2); font-size: 14.5px; }

/* 6. trois portes */
.portes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.porte { display: grid; gap: 12px; align-content: start; padding: 28px 24px; border-radius: 22px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); min-width: 0; text-decoration: none; color: #fff; transition: transform .25s ease, background .25s ease; }
.porte:hover { transform: translateY(-4px); background: rgba(255, 255, 255, .1); }
.porte .n { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-sombre); }
.porte h3 { font-size: 30px; font-weight: 800; }
.porte q { font-size: 20px; font-weight: 600; quotes: "« " " »"; color: #fff; }
.porte p { color: #cfc4ea; font-size: 15px; }

/* 7-9. options */
.opt { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 52px); align-items: center; }
.opt .tete .num { display: inline-flex; align-items: center; gap: 10px; }
.opt .tete .num span { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--grad); color: #fff; font-weight: 800; }
.opt q { font-size: clamp(20px, 2.2vw, 26px); font-weight: 700; color: var(--violet); quotes: "« " " »"; }
.pm { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pm > div { display: grid; gap: 8px; align-content: start; min-width: 0; }
.pm h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; }
.pm .plus h4 { color: var(--ok); }
.pm .moins h4 { color: #b0006e; }
.pm ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.pm li { font-size: 14px; color: var(--texte-2); padding-left: 20px; position: relative; }
.pm .plus li::before { content: "+"; position: absolute; left: 0; font-weight: 800; color: var(--ok); }
.pm .moins li::before { content: "–"; position: absolute; left: 0; font-weight: 800; color: #b0006e; }
.opt .chiffres { display: flex; gap: 20px; flex-wrap: wrap; font-size: 14px; color: var(--texte-2); }
.opt .chiffres b { font-size: 22px; color: var(--texte); margin-right: 4px; }
.opt .actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }

/* écran simulé du futur site */
.ecran { border-radius: 18px; background: #fff; box-shadow: var(--ombre); border: 1px solid var(--trait); overflow: hidden; min-width: 0; }
.ecran .chrome { display: flex; gap: 6px; padding: 10px 14px; background: #f1edf8; border-bottom: 1px solid var(--trait); align-items: center; }
.ecran .chrome i { width: 9px; height: 9px; border-radius: 50%; background: #d4cbe6; }
.ecran .chrome span { margin-left: 10px; font-size: 11px; color: var(--texte-3); }
.ecran .nav-site { display: flex; gap: 4px 14px; flex-wrap: wrap; align-items: center; padding: 12px 16px; background: var(--nuit); color: #fff; font-size: 11.5px; font-weight: 600; }
.ecran .nav-site .lg { font-weight: 800; margin-right: 6px; }
.ecran .nav-site .rdv { margin-left: auto; padding: 4px 10px; border-radius: 99px; background: var(--grad); }
.ecran .nav-site .hl { color: var(--accent-sombre); }
.ecran .corps { padding: 16px; display: grid; gap: 12px; }
.matrice { display: grid; grid-template-columns: 112px repeat(3, 1fr); gap: 6px; font-size: 12px; }
.matrice > div { padding: 8px 9px; border-radius: 9px; background: var(--lilas); color: var(--texte-2); line-height: 1.3; min-width: 0; }
.matrice .h { background: none; font-weight: 700; color: var(--texte-3); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; padding-bottom: 2px; }
.matrice .r { background: var(--nuit); color: #fff; font-weight: 700; }
.matrice .c { transition: background .3s ease, color .3s ease, transform .3s ease; }
.matrice .c.on { background: var(--violet); color: #fff; transform: scale(1.03); }
.tuiles6 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tuiles6 div { padding: 12px; border-radius: 12px; border: 1.5px solid var(--trait); font-weight: 700; font-size: 13px; line-height: 1.3; transition: border-color .3s ease, background .3s ease; }
.tuiles6 div.on { border-color: var(--violet); background: var(--lilas); }
.mini-q { font-size: 18px; font-weight: 800; }
.roles3 { display: flex; gap: 6px; flex-wrap: wrap; font-size: 12px; }
.roles3 span { padding: 5px 10px; border-radius: 99px; background: var(--lilas-2); color: var(--violet); font-weight: 600; }
.frise { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; position: relative; }
.frise::before { content: ""; position: absolute; left: 10%; right: 10%; top: 21px; height: 3px; background: var(--grad); border-radius: 3px; }
.frise > div { position: relative; display: grid; gap: 8px; justify-items: center; text-align: center; font-size: 12.5px; font-weight: 700; }
.frise .rond { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 3px solid var(--violet); color: var(--violet); font-weight: 800; transition: background .3s ease, color .3s ease; }
.frise .rond.on { background: var(--violet); color: #fff; }
.frise small { font-weight: 400; color: var(--texte-3); font-size: 11.5px; }
.guide { display: grid; gap: 6px; padding: 12px; border-radius: 12px; background: var(--lilas); font-size: 12.5px; }
.guide b { font-size: 13px; }
.guide .q3 { display: flex; gap: 6px; flex-wrap: wrap; }
.guide .q3 span { padding: 4px 10px; border-radius: 99px; background: #fff; border: 1px solid var(--trait); }
.parcours { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12.5px; }
.parcours span { padding: 5px 10px; border-radius: 8px; background: #fff; border: 1px solid var(--trait); font-weight: 600; opacity: .35; transition: opacity .35s ease, border-color .35s ease; }
.parcours span.on { opacity: 1; border-color: var(--violet); }
.parcours span.fin { background: var(--nuit); color: #fff; border-color: var(--nuit); }
.parcours i { font-style: normal; color: var(--texte-3); }

/* 10. comparatif */
.criteres { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 48px; }
.critere { display: grid; grid-template-columns: minmax(120px, .9fr) 1.4fr; gap: 14px; align-items: center; }
.critere .nom { font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.barres { display: grid; gap: 3px; }
.barre-o { display: grid; grid-template-columns: 1fr 30px; gap: 8px; align-items: center; }
.barre-o .piste { height: 8px; border-radius: 6px; background: #efe9f8; overflow: hidden; }
.barre-o .val { height: 100%; width: 0; border-radius: 6px; transition: width .9s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i, 0) * 40ms + 300ms); }
.barre-o b { font-size: 12px; font-variant-numeric: tabular-nums; color: var(--texte-2); }
.o1 { background: var(--violet); } .o2 { background: var(--magenta); } .o3 { background: var(--nuit); }
.legende { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; font-weight: 600; align-items: center; }
.legende span { display: inline-flex; align-items: center; gap: 8px; }
.legende i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.totaux { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.totaux div { padding: 14px 16px; border-radius: 16px; background: var(--lilas); display: grid; gap: 2px; }
.totaux b { font-size: 30px; font-weight: 900; letter-spacing: -0.03em; }
.totaux span { font-size: 13px; color: var(--texte-2); }

/* 11. recommandation */
.emprunts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.emprunt { padding: 20px; border-radius: 18px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); display: grid; gap: 8px; align-content: start; min-width: 0; }
.emprunt .de { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-sombre); }
.emprunt p { color: #e4dcf6; font-size: 15px; }
.badge-reco { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 99px; background: var(--grad); font-weight: 700; font-size: 14px; justify-self: start; }

/* 12. besoins */
.besoins { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.besoin { padding: 20px; border-radius: 18px; background: #fff; box-shadow: 0 10px 30px -18px rgba(14, 0, 36, .3); display: grid; gap: 8px; align-content: start; min-width: 0; }
.besoin .pic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--grad); }
.besoin .pic svg { width: 20px; height: 20px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.besoin b { font-size: 16px; }
.besoin span { font-size: 14px; color: var(--texte-2); }

/* 13. calendrier */
.cal { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; position: relative; }
.cal::before { content: ""; position: absolute; left: 0; right: 0; top: 13px; height: 3px; background: linear-gradient(90deg, var(--magenta), var(--violet)); border-radius: 3px; }
.cal > div { position: relative; display: grid; gap: 6px; padding-top: 38px; min-width: 0; }
.cal > div::before { content: ""; position: absolute; top: 4px; left: 0; width: 21px; height: 21px; border-radius: 50%; background: #fff; border: 4px solid var(--violet); }
.cal > div.fort::before { background: var(--magenta); border-color: var(--magenta); }
.cal .d { font-size: 13px; font-weight: 800; color: var(--violet); text-transform: uppercase; letter-spacing: .06em; }
.cal b { font-size: 16px; }
.cal span { font-size: 13.5px; color: var(--texte-2); }

/* 14. fin */
.fin .actions { display: flex; gap: 16px; flex-wrap: wrap; }
.fin .echeance { display: flex; gap: 20px; align-items: center; justify-self: start; padding: 20px 28px 22px 22px; border-radius: 24px; background: rgba(255, 255, 255, .07); border: 1.5px solid rgba(232, 107, 255, .65); box-shadow: 0 24px 60px -30px rgba(255, 0, 251, .55); }
.fin .echeance .pic { flex: none; width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: var(--grad); }
.fin .echeance .pic svg { width: 32px; height: 32px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fin .echeance .lbl { display: block; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-sombre); margin-bottom: 4px; }
.fin .echeance strong { display: block; font-size: clamp(30px, 4.4vw, 56px); font-weight: 900; letter-spacing: -0.03em; line-height: 1.05; color: #fff; }
@media (max-width: 720px) { .fin .echeance { gap: 14px; padding: 16px 18px; } .fin .echeance .pic { width: 48px; height: 48px; border-radius: 14px; } .fin .echeance .pic svg { width: 24px; height: 24px; } }

/* adaptation mobile et petits écrans */
@media (max-width: 980px) {
  .briques { grid-template-columns: repeat(2, 1fr); }
  .puces6 { grid-template-columns: repeat(2, 1fr); }
  .opt, .deux { grid-template-columns: 1fr; }
  .cal { grid-template-columns: repeat(3, 1fr); row-gap: 22px; }
  .cal::before { display: none; }
  .criteres { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .slide { align-items: start; padding: 76px 18px 96px; }
  .chemin { grid-template-columns: 1fr; }
  .chemin .fl { transform: rotate(90deg); justify-self: center; }
  .portes, .besoins, .emprunts, .totaux { grid-template-columns: 1fr; }
  .puces6, .briques { grid-template-columns: 1fr; }
  .pm { grid-template-columns: 1fr; }
  .critere { grid-template-columns: 1fr; gap: 6px; }
  .fiche .temps { grid-template-columns: 1fr; }
  .matrice { grid-template-columns: 84px repeat(3, 1fr); font-size: 10.5px; }
  .tuiles6 { grid-template-columns: repeat(2, 1fr); }
  .cal { grid-template-columns: 1fr 1fr; }
  .barre .retour { display: none; }
  .nav { width: 42px; height: 42px; }
  .commandes { background: linear-gradient(rgba(14, 0, 36, 0), rgba(14, 0, 36, .94) 45%); }
  body.clair .commandes { background: linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, .96) 45%); }
  .barre { background: linear-gradient(rgba(14, 0, 36, .9), rgba(14, 0, 36, 0)); }
  body.clair .barre { background: linear-gradient(rgba(255, 255, 255, .95), rgba(255, 255, 255, 0)); }
}
@media (max-height: 760px) and (min-width: 721px) {
  .slide { align-items: start; padding-top: 76px; }
}
