/* =============================================================================
   Lecteur de la visite guidée — grals · Pilotage (#34, identité alignée sur la vitrine #48)
   Charte vitrine : indigo #4F46E5, neutres froids, Poppins (titres) / Inter (texte), point or du mot-symbole.
   Le lecteur s'efface : la capture est le sujet, la barre est un cadre.
   ============================================================================= */
@font-face{font-family:Inter;src:url(../polices/inter-400.woff2) format("woff2");font-weight:400;font-display:swap}
@font-face{font-family:Inter;src:url(../polices/inter-500.woff2) format("woff2");font-weight:500;font-display:swap}
@font-face{font-family:Inter;src:url(../polices/inter-600.woff2) format("woff2");font-weight:600;font-display:swap}
@font-face{font-family:Poppins;src:url(../polices/poppins-600.woff2) format("woff2");font-weight:600;font-display:swap}
@font-face{font-family:Poppins;src:url(../polices/poppins-700.woff2) format("woff2");font-weight:700;font-display:swap}

:root{
  --fond:#F7F7FB;          /* mêmes neutres froids que la vitrine */
  --surface:#FFFFFF;
  --surface-2:#FBFBFD;
  --creux:#F1F1F7;
  --bord:#E6E8F0;
  --bord-fort:#D6D9E4;
  --texte:#0B1020;
  --texte-2:#4A5266;
  --texte-3:#5B6376;       /* 5,9:1 sur --fond */
  --accent:#4F46E5;
  --accent-fort:#4338CA;
  --accent-doux:#EEEDFD;
  --accent-trait:rgb(79 70 229 / .28);
  --or:#E2B33D;
  --erreur:#B91C1C;
  --succes:#166534;
  --anneau:0 0 0 3px rgb(79 70 229 / .3);
  --ombre-1:0 1px 2px rgb(11 16 32 / .05);
  --ombre-2:0 10px 28px -14px rgb(30 27 75 / .22), 0 2px 6px -2px rgb(11 16 32 / .08);
  --ombre-3:0 28px 60px -24px rgb(30 27 75 / .32), 0 6px 16px -6px rgb(11 16 32 / .1);
  --r-1:6px; --r-2:8px; --r-3:12px; --r-4:16px;
  --sortie:cubic-bezier(.16,1,.3,1);     /* ease-out exponentiel */
  --h-haut:60px; --h-bas:52px;
  --police:Inter, ui-sans-serif, -apple-system, "Segoe UI", sans-serif;
  --titre:Poppins, Inter, ui-sans-serif, sans-serif;
}

*,*::before,*::after{box-sizing:border-box}
html{height:100%;-webkit-text-size-adjust:100%}
body{
  margin:0;height:100%;min-height:100dvh;overflow:hidden;
  display:grid;grid-template-rows:var(--h-haut) minmax(0,1fr) var(--h-bas);
  font-family:var(--police);font-size:14px;line-height:1.5;color:var(--texte);background:var(--fond);
  -webkit-font-smoothing:antialiased;font-feature-settings:"cv11";
}
.vc-compteur,.compte,.driver-popover-progress-text{font-variant-numeric:tabular-nums}
::selection{background:var(--accent);color:#fff}
button,input{font:inherit;color:inherit}
button{cursor:pointer;touch-action:manipulation}
:focus{outline:none}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:var(--r-1)}
.sprite{position:absolute;width:0;height:0;overflow:hidden}
.ic{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
.ic-s{width:16px;height:16px}
.sr{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.evitement{position:fixed;left:12px;top:-60px;z-index:10050;padding:10px 14px;border-radius:var(--r-2);background:var(--texte);color:#fff;text-decoration:none;font-weight:500}
.evitement:focus{top:12px}
[hidden]{display:none!important}

/* ---------------------------------------------------------------- Barres */
.barre{position:relative;z-index:10010;display:flex;align-items:center;gap:16px;padding:0 20px;background:var(--surface);min-width:0}
.barre-haut{border-bottom:1px solid var(--bord);display:grid;grid-template-columns:auto minmax(0,1fr) auto}
.barre-haut .voir-comme{justify-self:center}
.barre-bas{border-top:1px solid var(--bord);justify-content:space-between}
.barre-g{grid-column:1}
.voir-comme{grid-column:2}
.barre-d{grid-column:3}
.barre-g,.barre-d{display:flex;align-items:center;gap:10px;min-width:0}
.barre-d{justify-content:flex-end;gap:6px}
/* Driver.js neutralise les clics hors cible ; la barre reste toujours utilisable. */
.driver-active .barre,.driver-active .barre *,.driver-active .menu,.driver-active .menu *,
.driver-active .conseil,.driver-active .conseil *,.driver-active .evitement{pointer-events:auto}

.marque{display:inline-flex;align-items:baseline;gap:0;padding:6px 8px 6px 4px;margin-left:-4px;border:0;background:none;border-radius:var(--r-2);white-space:nowrap}
.marque{align-items:center}
.marque .mot{font:600 19px/1 var(--titre);letter-spacing:-.01em;color:var(--texte)}
.marque .or{width:6px;height:6px;border-radius:50%;background:var(--or);margin:0 8px}
.marque .desc{font:500 19px/1 var(--titre);color:var(--texte-2);letter-spacing:-.01em}
.marque .visite{margin-left:8px;font-size:13.5px;font-weight:500;color:var(--texte-3)}
.marque:hover .desc{color:var(--texte)}

.chapitre-zone{position:relative;min-width:0;padding-left:12px;margin-left:2px;border-left:1px solid var(--bord)}
.chapitre{display:flex;align-items:center;gap:9px;max-width:100%;min-height:36px;padding:4px 8px 4px 4px;border:1px solid transparent;border-radius:var(--r-2);background:none;text-align:left;transition:background-color .15s,border-color .15s}
.chapitre:hover{background:var(--creux)}
.chapitre[aria-expanded="true"]{background:var(--creux);border-color:var(--bord)}
.chapitre-titre,.chapitre-court{font-weight:500;font-size:13.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.chapitre-court{display:none}
.chapitre .ic{color:var(--texte-3);transition:transform .2s var(--sortie)}
.chapitre[aria-expanded="true"] .ic{transform:rotate(180deg)}
.lettre{display:inline-grid;place-items:center;flex:none;width:24px;height:24px;border-radius:6px;background:var(--accent-doux);color:var(--accent);font-weight:600;font-size:12.5px}

.btn-texte{display:inline-flex;align-items:center;gap:7px;min-height:40px;padding:0 10px;border:0;border-radius:var(--r-2);background:none;color:var(--texte-2);font-weight:500;font-size:13.5px;white-space:nowrap;transition:background-color .15s,color .15s}
.btn-texte:hover{background:var(--creux);color:var(--texte)}
.btn-cta{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;padding:0 16px;border:1px solid var(--accent-fort);border-radius:var(--r-2);background:var(--accent);color:#fff;font-weight:500;font-size:13.5px;white-space:nowrap;box-shadow:var(--ombre-1), inset 0 1px 0 rgb(255 255 255 / .12);transition:background-color .15s,transform .1s}
.btn-cta:hover{background:var(--accent-fort)}
.btn-cta:active{transform:translateY(1px)}
.btn-cta .lib-court{display:none}
.barre-d .btn-cta{margin-left:6px}

/* Voir comme */
.voir-comme{display:flex;align-items:center;gap:10px}
.vc-etiquette{font-size:12.5px;color:var(--texte-3);font-weight:500;white-space:nowrap}
.vc-segments{display:flex;padding:3px;gap:2px;background:var(--creux);border:1px solid var(--bord);border-radius:10px}
.vc-segments button{display:inline-flex;align-items:center;gap:7px;min-height:30px;padding:0 10px 0 4px;border:0;border-radius:7px;background:none;color:var(--texte-2);font-size:13px;font-weight:500;white-space:nowrap;transition:background-color .2s var(--sortie),color .2s,box-shadow .2s}
.vc-segments button:hover{color:var(--texte)}
.vc-segments button[aria-pressed="true"]{background:var(--surface);color:var(--texte);box-shadow:0 1px 2px rgb(11 16 32 / .10), 0 0 0 1px var(--bord)}
.vc-segments .ini{display:inline-grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#E6E8F0;color:var(--texte-2);font-size:10px;font-weight:600;letter-spacing:.02em}
.vc-segments button[aria-pressed="true"] .ini{background:var(--accent);color:#fff}
/* Bouton attendu par la bulle : anneau + point pulsé (la barre est au-dessus du voile) */
.vc-segments button.attendu{position:relative;color:var(--accent);background:var(--surface);box-shadow:0 0 0 2px var(--accent), 0 4px 12px -4px rgb(11 16 32 / .25)}
.vc-segments button.attendu .ini{background:var(--accent-doux);color:var(--accent)}
.vc-segments button.attendu::after{content:"";position:absolute;top:-4px;right:-4px;width:10px;height:10px;border-radius:50%;background:var(--accent);box-shadow:0 0 0 2px #fff;animation:pulse-anneau 1.2s cubic-bezier(.16,1,.3,1) infinite}
@keyframes pulse-anneau{0%{box-shadow:0 0 0 2px #fff,0 0 0 2px rgb(79 70 229 / .5)}100%{box-shadow:0 0 0 2px #fff,0 0 0 12px rgb(79 70 229 / 0)}}
.vc-segments .prenom{display:none}
.vc-compteur{display:inline-flex;align-items:baseline;gap:5px;min-width:112px;font-size:13px;color:var(--texte-2);white-space:nowrap}
.vc-compteur b{font-size:20px;font-weight:600;letter-spacing:-.02em;color:var(--texte);min-width:3ch;text-align:right;transition:color .3s}
.vc-compteur.anime b{color:var(--accent)}

/* Menu des chapitres */
.menu{position:absolute;top:calc(100% + 10px);left:8px;z-index:10020;width:340px;max-width:calc(100vw - 24px);padding:8px;background:var(--surface);border:1px solid var(--bord);border-radius:var(--r-3);box-shadow:var(--ombre-3);animation:entree .18s var(--sortie)}
.menu-titre{margin:6px 10px 6px;font-size:12px;font-weight:500;color:var(--texte-3)}
.menu-liste{list-style:none;margin:0;padding:0}
.menu-liste button{display:flex;align-items:center;gap:12px;width:100%;min-height:52px;padding:8px 10px;border:0;border-radius:var(--r-2);background:none;text-align:left}
.menu-liste button:hover{background:var(--creux)}
.menu-liste button[aria-current="true"]{background:var(--accent-doux)}
.menu-liste .m-txt{display:flex;flex-direction:column;min-width:0}
.menu-liste .m-t{font-weight:500;font-size:14px}
.menu-liste .m-d{font-size:12.5px;color:var(--texte-3)}
.menu-actions{margin-top:6px;padding-top:6px;border-top:1px solid var(--bord)}
.menu-action{display:flex;align-items:center;gap:10px;width:100%;min-height:44px;padding:0 10px;border:0;border-radius:var(--r-2);background:none;color:var(--texte-2);font-weight:500;font-size:13.5px;text-align:left}
.menu-action:hover{background:var(--creux);color:var(--texte)}
.menu-mention{display:none;margin:8px 10px 4px;font-size:12px;color:var(--texte-3)}

/* Pied */
.progression{display:flex;align-items:center;gap:14px;flex:1;min-width:0;max-width:620px}
.segments{display:flex;flex:1;gap:4px;list-style:none;margin:0;padding:0;min-width:0}
.segments li{flex:1;min-width:0}
.segments button{display:block;width:100%;height:24px;padding:10px 0;border:0;background:none;border-radius:4px}
.segments button::before{content:"";display:block;height:4px;border-radius:2px;background:var(--bord-fort);transition:background-color .3s var(--sortie)}
.segments button:hover::before{background:#9AA1B2}
.segments .fait button::before{background:var(--accent-trait)}
.segments .actuel button::before{background:var(--accent)}
.compte{display:none}
.mention{display:flex;align-items:center;gap:8px;margin:0;font-size:12.5px;color:var(--texte-3);white-space:nowrap}
.pastille{width:6px;height:6px;border-radius:50%;background:var(--succes);flex:none}

/* ---------------------------------------------------------------- Scène */
.scene{position:relative;display:grid;place-items:center;min-height:0;overflow:hidden;padding:24px;
  background:radial-gradient(120% 90% at 50% 0%, #FFFFFF 0%, var(--fond) 60%)}
.cadre{position:relative;display:flex;flex-direction:column;opacity:0;transition:opacity .25s var(--sortie)}
.cadre.pret{opacity:1}
.ecran{position:relative;overflow:hidden;background:var(--surface-2)}
.toile{position:absolute;left:0;top:0;transform-origin:0 0}
.zoomeur{position:relative;transform-origin:50% 50%;transition:transform .4s cubic-bezier(.65,0,.35,1)}
.couche{position:absolute;inset:0;border:0;width:100%;height:100%;background:var(--surface-2);opacity:0;transition:opacity .22s ease-out;pointer-events:none}
.couche.visible{opacity:1}
.attrape{position:absolute;inset:0}
.zone{position:absolute;pointer-events:auto;border-radius:6px}
.cible{position:absolute;z-index:2;padding:0;border:0;border-radius:6px;background:transparent;cursor:pointer}
.cible:focus-visible{outline:calc(2px * var(--inv,1)) solid var(--accent);outline-offset:calc(3px * var(--inv,1))}

/* Point pulsé (Arcade) : taille constante quelle que soit l'échelle de la capture. */
.point{position:absolute;top:50%;width:14px;height:14px;margin:-7px 0 0 -7px;border-radius:50%;background:var(--accent);
  box-shadow:0 0 0 3px #fff, 0 2px 6px rgb(11 16 32 / .3);transform:scale(var(--inv,1))}
.point::after{content:"";position:absolute;inset:0;border-radius:50%;background:var(--accent);animation:pulse 1.2s cubic-bezier(.16,1,.3,1) infinite}
.cible[data-point="droite"] .point{left:calc(100% - 18px * var(--inv,1))}
.cible[data-point="centre"] .point{left:50%}
.cible[data-point="gauche"] .point{left:calc(18px * var(--inv,1))}
.cible.rallume .point::after{animation:pulse-fort .7s cubic-bezier(.16,1,.3,1) 2, pulse 1.2s cubic-bezier(.16,1,.3,1) 1.4s infinite}
@keyframes pulse{0%{transform:scale(1);opacity:.55}100%{transform:scale(3.2);opacity:0}}
@keyframes pulse-fort{0%{transform:scale(1);opacity:.8}100%{transform:scale(4.4);opacity:0}}

/* Cadre « Votre ERP » : une fenêtre neutre, sans adresse ni marque. */
.cadre-erp{border-radius:10px;background:var(--surface);box-shadow:var(--ombre-3), 0 0 0 1px rgb(11 16 32 / .07)}
.cadre-erp .ecran{border-radius:0 0 10px 10px}
.cadre-barre{display:none}
.cadre-erp .cadre-barre{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;height:34px;padding:0 12px;background:var(--creux);border-bottom:1px solid var(--bord);border-radius:10px 10px 0 0}
.feux{display:flex;gap:6px}
.feux i{width:10px;height:10px;border-radius:50%;background:var(--bord-fort)}
.cadre-titre{grid-column:2;display:inline-flex;align-items:center;height:22px;padding:0 28px;border-radius:6px;background:var(--surface);border:1px solid var(--bord);font-size:12px;color:var(--texte-3);font-weight:500}

/* Cadre téléphone */
.cadre-telephone{padding:9px;border-radius:46px;background:#17161A;box-shadow:var(--ombre-3), inset 0 0 0 1.5px #3A3940}
.cadre-telephone .ecran{border-radius:39px}
/* Pas d'îlot : les captures sont des pages web, l'îlot masquait leur en-tête (revue design B2) */
.cadre-nu{padding:0;background:none;border-radius:0;box-shadow:none}
.cadre-nu .ecran{border-radius:0}

/* Conseil paysage (A et C sur petit écran) */
.conseil{position:absolute;z-index:10005;top:10px;left:10px;right:10px;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:start;column-gap:10px;padding:10px 4px 4px 12px;background:var(--surface);border:1px solid var(--bord);border-radius:var(--r-3);box-shadow:var(--ombre-2);font-size:13.5px;line-height:1.4;color:var(--texte-2)}
.conseil p{margin:2px 0 0;grid-column:2}
.conseil .ic{margin-top:2px}
.conseil .ic{color:var(--accent)}
.conseil-lien{grid-column:2;grid-row:2;justify-self:start;min-height:40px;padding:0;border:0;background:none;color:var(--accent);font-weight:600;font-size:13.5px}
.conseil-fermer{grid-column:3;grid-row:1 / span 2;align-self:start;display:grid;place-items:center;width:44px;height:44px;border:0;background:none;color:var(--texte-3);border-radius:var(--r-2)}

/* ---------------------------------------------------------------- Panneaux */
.panneau{position:absolute;inset:0;z-index:10006;display:grid;place-items:center;overflow-y:auto;padding:32px 24px;
  background:rgb(243 242 240 / .62);-webkit-backdrop-filter:blur(3px) saturate(.9);backdrop-filter:blur(3px) saturate(.9);
  animation:fondu .25s var(--sortie)}
.carte{width:100%;background:var(--surface);border:1px solid var(--bord);border-radius:var(--r-4);box-shadow:var(--ombre-3);animation:entree .35s var(--sortie)}
.titre-1{margin:0;font-family:var(--titre);font-size:28px;line-height:1.18;font-weight:600;letter-spacing:-.025em;text-wrap:balance}
.chapeau{margin:12px 0 0;font-size:15.5px;line-height:1.55;color:var(--texte-2);max-width:56ch;text-wrap:pretty}

.carte-accueil{max-width:580px;padding:36px 36px 24px}
.portes{list-style:none;margin:28px 0 0;padding:0;display:grid;gap:10px}
.porte{position:relative;display:grid;grid-template-columns:44px minmax(0,1fr) auto;align-items:center;gap:14px;width:100%;min-height:72px;padding:12px 14px 12px 12px;
  border:1px solid var(--bord);border-radius:var(--r-3);background:var(--surface);text-align:left;
  transition:border-color .15s,background-color .15s,box-shadow .2s var(--sortie),transform .15s var(--sortie)}
.porte:hover{border-color:var(--accent-trait);background:var(--surface-2);box-shadow:var(--ombre-2)}
.porte:active{transform:scale(.995)}
.porte:focus-visible{outline:none;border-color:var(--accent);box-shadow:var(--anneau)}
.porte-ic{display:grid;place-items:center;width:44px;height:44px;border-radius:10px;background:var(--accent-doux);color:var(--accent)}
.porte-ic .ic{width:22px;height:22px;stroke-width:1.6}
.porte-txt{display:flex;flex-direction:column;gap:2px;min-width:0}
.porte-t{font-size:15.5px;font-weight:600;letter-spacing:-.01em}
.porte-d{font-size:13.5px;color:var(--texte-3)}
.porte-fl{color:var(--texte-3);transition:transform .2s var(--sortie),color .15s}
.porte:hover .porte-fl{transform:translateX(3px);color:var(--accent)}
.porte-badge{display:none;position:absolute;top:-10px;right:14px;padding:2px 8px;box-shadow:0 0 0 3px var(--surface);border-radius:999px;background:var(--accent-doux);color:var(--accent);font-size:11.5px;font-weight:600;vertical-align:1px}
.porte[data-conseille] {border-color:var(--accent-trait)}
.porte[data-conseille] .porte-badge{display:inline-block}
.accueil-pied{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:18px 0 0;font-size:13px;color:var(--texte-3)}
.accueil-mention{display:inline-flex;align-items:center;gap:8px}
.lien{min-height:44px;padding:0;border:0;background:none;color:var(--accent);font-weight:500;font-size:14px;text-decoration:underline;text-decoration-color:var(--accent-trait);text-underline-offset:4px;text-decoration-thickness:1.5px}
.lien:hover{text-decoration-color:var(--accent)}

.carte-fin{max-width:640px;padding:36px}
.carte-fin .titre-1{font-size:26px}
.coches{list-style:none;margin:20px 0 0;padding:0;display:grid;gap:10px}
.coches:empty{display:none}
.coches li{display:flex;gap:10px;align-items:flex-start;font-size:15px;line-height:1.45}
.coches .ic{margin-top:1px;color:var(--accent);stroke-width:2.2}
.acces{margin-top:28px}
.btn-grand{min-height:48px;padding:0 20px;font-size:15px}
.btn-cta:disabled{cursor:progress}
.acces-nr{margin:28px 0 0;padding:14px 16px;border-radius:var(--r-3);background:var(--accent-doux);color:var(--texte);font-size:15px;line-height:1.5}
.suite{margin-top:28px;padding-top:20px;border-top:1px solid var(--bord)}
.suite-titre{margin:0 0 6px;font-size:12.5px;font-weight:500;color:var(--texte-3)}
.suite-liste{list-style:none;margin:0;padding:0}
.suite-liste button{display:flex;align-items:center;gap:12px;width:100%;min-height:48px;padding:6px 8px;margin:0 -8px;width:calc(100% + 16px);border:0;border-radius:var(--r-2);background:none;text-align:left;font-size:14.5px;font-weight:500;color:var(--texte)}
.suite-liste button:hover{background:var(--creux)}
.suite-liste .s-t{flex:1}
.suite-liste .s-d{font-size:13px;color:var(--texte-3);font-weight:400}
.suite-liste .ic{color:var(--texte-3)}
.suite-liste .lettre.neutre{background:var(--creux);color:var(--texte-2)}

/* ---------------------------------------------------------------- Bulles (Driver.js 1.9.0) */
.driver-popover.bulle{
  font-family:var(--police);color:var(--texte);min-width:280px;max-width:344px;padding:18px 18px 14px;
  border:1px solid var(--bord);border-radius:var(--r-3);background:var(--surface);
  box-shadow:0 18px 44px -20px rgb(11 16 32 / .42), 0 3px 10px -3px rgb(11 16 32 / .14)}
.driver-popover.bulle .driver-popover-title{font-family:var(--police);font-size:16px;line-height:1.35;font-weight:600;letter-spacing:-.012em;padding-right:4px;text-wrap:balance}
.driver-popover.bulle .driver-popover-title[style*=block]+.driver-popover-description{margin-top:6px}
.driver-popover.bulle .driver-popover-description{font-family:var(--police);font-size:14.5px;line-height:1.55;color:var(--texte-2);text-wrap:pretty}
.bulle .consigne{display:flex;align-items:center;gap:8px;margin-top:12px;font-size:13px;font-weight:500;color:var(--accent)}
.bulle .consigne i{position:relative;width:8px;height:8px;border-radius:50%;background:var(--accent);flex:none}
.bulle .consigne i::after{content:"";position:absolute;inset:0;border-radius:50%;background:var(--accent);animation:pulse 1.2s cubic-bezier(.16,1,.3,1) infinite}
.bulle .bulle-cta{display:inline-flex;align-items:center;min-height:40px;margin-top:12px;padding:0 14px;border:1px solid var(--accent);border-radius:10px;background:#fff;color:var(--accent);font-family:inherit;font-weight:600;font-size:14px;line-height:1.2;cursor:pointer}
.bulle .bulle-cta:hover{background:var(--accent);color:#fff}
.bulle .bulle-cta:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.driver-popover.bulle .driver-popover-footer{margin-top:16px;gap:8px}
.driver-popover.bulle .driver-popover-progress-text{font-family:var(--police);font-size:12.5px;font-weight:500;color:var(--texte-3);font-variant-numeric:tabular-nums}
.driver-popover.bulle .driver-popover-navigation-btns{gap:6px;align-items:center}
.driver-popover.bulle .driver-popover-navigation-btns button+button{margin-left:0}
.driver-popover.bulle .driver-popover-footer-btn{
  all:unset;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;gap:4px;min-height:36px;min-width:36px;padding:0 12px;
  border-radius:var(--r-2);font-family:var(--police);font-size:13.5px;font-weight:500;line-height:20px;cursor:pointer;text-shadow:none;
  transition:background-color .15s,color .15s,border-color .15s}
.driver-popover.bulle .driver-popover-next-btn{background:var(--accent);color:#fff;border:1px solid var(--accent-fort)}
.driver-popover.bulle .driver-popover-next-btn:hover{background:var(--accent-fort)}
.driver-popover.bulle.attend-clic .driver-popover-next-btn{background:var(--surface);color:var(--texte-2);border:1px solid var(--bord-fort)}
.driver-popover.bulle.attend-clic .driver-popover-next-btn:hover{background:var(--creux);color:var(--texte)}
.driver-popover.bulle .driver-popover-prev-btn{padding:0;width:40px;min-height:40px;color:var(--texte-2);background:none;border:1px solid var(--bord)}
.driver-popover.bulle .driver-popover-prev-btn:hover{background:var(--creux);color:var(--texte)}
.driver-popover.bulle .driver-popover-footer-btn:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.driver-popover.bulle .driver-popover-btn-disabled{opacity:.35}
.driver-popover.bulle .driver-popover-footer-btn .ic{width:16px;height:16px;margin-right:-3px}
.driver-popover.bulle .driver-popover-prev-btn .ic{margin:0}
.driver-popover.bulle:focus,.driver-popover.bulle:focus-visible,.titre-1:focus,.titre-1:focus-visible{outline:none}
.driver-popover.bulle .driver-popover-arrow{border-width:7px}
.driver-popover.bulle .bulle-passer{display:none}
.driver-popover.bulle.secoue{animation:secoue .36s cubic-bezier(.36,.07,.19,.97)}
@keyframes secoue{10%,90%{translate:-1px 0}20%,80%{translate:2px 0}30%,50%,70%{translate:-4px 0}40%,60%{translate:4px 0}}
.driver-overlay{transition:opacity .25s}
.chargement .driver-popover{opacity:0;transition:opacity .12s}

/* ---------------------------------------------------------------- États */
.etat-accueil .barre-haut .chapitre-zone,.etat-accueil .barre-haut [data-action="recommencer"],
.etat-accueil .barre-haut [data-action="passer"],.etat-accueil .progression{visibility:hidden}
.etat-fin .barre-haut [data-action="passer"]{display:none}
body.menu-ouvert .driver-popover{visibility:hidden}
.etat-fin .segments li button::before{background:var(--accent-trait)}

@keyframes fondu{from{opacity:0}}
@keyframes entree{from{opacity:0;transform:translateY(6px) scale(.99)}}

/* ---------------------------------------------------------------- Responsive */
@media (max-width:1279px){
  .vc-segments .nom{display:none}
  .vc-segments .prenom{display:inline}
  .vc-compteur{min-width:96px}
}
@media (max-width:1100px){
  .barre{gap:10px;padding:0 14px}
  .marque .visite{display:none}
  .vc-etiquette{display:none}
  .mention{font-size:12px}
}
@media (max-width:860px){
  .btn-cta .lib-long{display:none}
  .btn-cta .lib-court{display:inline}
  .btn-grand .lib-court{display:none}
}

/* Téléphone : la barre se resserre, la bulle devient un panneau bas (bottom sheet). */
@media (max-width:639px){
  :root{--h-haut:56px}
  body{grid-template-rows:var(--h-haut) minmax(0,1fr) 0}
  body.avec-vc .scene{margin-top:48px}
  .barre-haut{display:flex;padding:0 10px 0 12px;gap:6px}
  .barre-g{flex:1;gap:4px}
  .marque{padding-right:2px;min-height:44px;align-items:center}
  .marque .mot,.marque .desc{font-size:17px}
  .marque .or{margin:0 6px}
  .chapitre-titre{display:none}
  .chapitre-court{display:inline}
  .chapitre .lettre{display:none}
  .chapitre-zone{padding-left:6px}
  .chapitre-zone{padding-left:8px;flex:1}
  .chapitre{width:100%;min-height:44px}
  .barre-d [data-action="recommencer"],.barre-d [data-action="passer"]{display:none}
  .barre-d .btn-cta{margin-left:0;min-height:40px;padding:0 12px}
  .voir-comme{position:fixed;left:0;right:0;top:var(--h-haut);height:48px;z-index:10010;justify-content:space-between;gap:8px;padding:0 10px;background:var(--surface);border-bottom:1px solid var(--bord)}
  .vc-segments button{padding:0 9px 0 4px;min-height:40px}
  .vc-segments{padding:2px}
  .vc-compteur{min-width:0}
  .vc-compteur b{font-size:17px}
  .barre-bas{position:absolute;left:0;right:0;top:var(--h-haut);height:3px;padding:0;border:0;background:transparent;z-index:10009;pointer-events:none}
  body.avec-vc .barre-bas{top:calc(var(--h-haut) + 48px)}
  .barre-bas .mention,.barre-bas .compte{display:none}
  .progression{max-width:none;gap:0}
  .segments{gap:2px}
  .segments button{height:3px;padding:0;pointer-events:none}
  .segments button::before{height:3px;border-radius:0}
  .menu{position:fixed;top:calc(var(--h-haut) + 6px);left:8px;right:8px;width:auto}
  .menu-mention{display:flex;align-items:center;gap:8px}
  .scene{padding:12px}
  .scene.plein{padding:0}
  body.mobile-large .scene{padding:12px 12px 212px}
  body.mobile-large.avec-conseil .scene{padding-top:92px}
  .panneau{padding:12px;place-items:start center}
  .carte-accueil,.carte-fin{padding:24px 20px 16px;border-radius:14px}
  .titre-1{font-size:23px}
  .carte-fin .titre-1{font-size:22px}
  .chapeau{font-size:15px}
  .portes{margin-top:22px}
  .porte{grid-template-columns:40px minmax(0,1fr) auto;gap:12px;min-height:68px}
  .porte-ic{width:40px;height:40px}
  .porte-t{font-size:15px}
  .porte-d{font-size:14px}
  .btn-grand{min-height:50px}
  .coches li{font-size:15px}
  .suite-liste button{font-size:15px}

  .driver-popover.bulle{
    position:fixed!important;left:8px!important;right:8px!important;top:auto!important;
    bottom:calc(8px + env(safe-area-inset-bottom))!important;
    width:auto!important;min-width:0;max-width:none;padding:16px 16px 12px;border-radius:var(--r-4);
    box-shadow:0 -6px 30px -12px rgb(11 16 32 / .35), 0 2px 8px -2px rgb(11 16 32 / .12)}
  .driver-popover.bulle.feuille-haut{top:calc(var(--h-haut) + 10px)!important;bottom:auto!important}
  body.avec-vc .driver-popover.bulle.feuille-haut{top:calc(var(--h-haut) + 58px)!important}
  .driver-popover.bulle .driver-popover-arrow{display:none}
  .driver-popover.bulle .driver-popover-description{font-size:15px}
  .driver-popover.bulle .driver-popover-footer-btn{min-height:44px;min-width:44px}
  .driver-popover.bulle .driver-popover-prev-btn{width:44px}
  .driver-popover.bulle .bulle-passer{display:inline-flex;margin-right:auto;min-height:44px;padding:0 4px;border:0;background:none;color:var(--texte-3);font:500 13.5px/1 var(--police);align-items:center;cursor:pointer}
  .driver-popover.bulle .driver-popover-progress-text{margin-right:10px}
}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important}
  .point::after,.bulle .consigne i::after{display:none}
}
