/* Démo « Réponse en 2 minutes » — charte Gearline (Sora / Manrope, encre, bleu électrique, menthe, nuage, ardoise).
   Aucune règle n'est écrite dans la page (politique de sécurité du site) : tout le style est ici. */
:root {
  --encre: #111318;
  --encre-2: #1B1E26;
  --encre-3: #262A35;
  --bleu: #3B5BFF;
  --bleu-fonce: #2A45E0;
  --bleu-pale: #E8ECFF;
  --menthe: #2EE6A6;
  --menthe-fonce: #22D394;
  --menthe-pale: #D9FBEE;
  --menthe-texte: #0B6B4A;
  --ambre: #B25E09;
  --ambre-pale: #FFF1DC;
  --nuage: #F1F3F8;
  --gris: #9AA1B2;
  --ardoise: #5C6374;
  --ligne: #E2E5EE;
  --blanc: #FFFFFF;
  --titres: 'Sora', Arial, sans-serif;
  --texte: 'Manrope', Arial, sans-serif;
  --ombre: 0 1px 2px rgba(17, 19, 24, .06), 0 6px 20px rgba(17, 19, 24, .06);
  --ombre-forte: 0 18px 50px rgba(17, 19, 24, .22);
}

* { box-sizing: border-box; }
html { font-size: clamp(12.5px, calc(0.42vw + 0.62vh + 2px), 17.5px); }
html.presentation { font-size: clamp(14px, calc(0.5vw + 0.78vh + 2px), 20.5px); }
html, body { height: 100%; margin: 0; }
body { font-family: var(--texte); color: var(--encre); background: var(--nuage); -webkit-font-smoothing: antialiased; overflow: hidden; }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: default; }
button:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible { outline: 2px solid var(--bleu); outline-offset: 2px; }
h2, h3 { font-family: var(--titres); font-weight: 600; margin: 0; letter-spacing: -0.015em; }
p { margin: 0; }
[hidden] { display: none !important; }
svg { display: block; }

.app { height: 100vh; display: grid; grid-template-rows: auto auto minmax(0, 1fr); gap: 0.6rem; padding: 0.6rem 0.75rem 0.75rem; }

/* ---------- En-tête ---------- */
.entete-demo { display: flex; align-items: center; gap: 1rem; min-height: 2.9rem; padding: 0 0.25rem; }
.logo { height: 1.75rem; width: auto; flex: none; }
.titre-pack { display: flex; flex-direction: column; line-height: 1.15; padding-left: 1rem; border-left: 1px solid var(--ligne); }
.sur-titre { font-size: 0.72rem; color: var(--ardoise); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.pack { font-family: var(--titres); font-weight: 600; font-size: 1.08rem; white-space: nowrap; }
.actions-entete { margin-left: auto; display: flex; gap: 0.35rem; align-items: center; }
.btn-discret { display: inline-flex; align-items: center; gap: 0.4rem; border: 1px solid transparent; background: transparent; padding: 0.42rem 0.65rem; border-radius: 0.6rem; font-weight: 600; font-size: 0.86rem; color: var(--ardoise); white-space: nowrap; }
.btn-discret:hover { background: var(--blanc); border-color: var(--ligne); color: var(--encre); }
.btn-discret svg { width: 1.05rem; height: 1.05rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icone-seule { padding: 0.42rem; }
html.presentation .masquer-presentation { display: none; }

/* ---------- Bande noire : horloge, simulation, temps, chrono ---------- */
.bande { display: flex; align-items: stretch; flex-wrap: wrap; gap: 0.6rem 1rem; background: var(--encre); color: var(--blanc); border-radius: 1rem; padding: 0.65rem 0.8rem; box-shadow: var(--ombre); }
.horloge { display: flex; flex-direction: column; justify-content: center; min-width: 7.6rem; padding-right: 1rem; border-right: 1px solid var(--encre-3); line-height: 1.15; }
.horloge-jour { font-size: 0.78rem; color: var(--gris); text-transform: uppercase; letter-spacing: .07em; font-weight: 700; }
.horloge-heure { font-family: var(--titres); font-weight: 700; font-size: 1.55rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.horloge-note { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.72rem; color: var(--gris); white-space: nowrap; }
.horloge.tourne .horloge-heure { animation: tourne .35s ease; }
@keyframes tourne { from { opacity: .3; transform: translateY(-20%); } to { opacity: 1; transform: none; } }
.point-direct { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--menthe); animation: pouls 2s infinite; }
@keyframes pouls { 0% { box-shadow: 0 0 0 0 rgba(46,230,166,.55); } 70% { box-shadow: 0 0 0 0.45rem rgba(46,230,166,0); } 100% { box-shadow: 0 0 0 0 rgba(46,230,166,0); } }

.bande-simuler { display: flex; flex-direction: column; justify-content: center; gap: 0.3rem; padding-right: 1rem; border-right: 1px solid var(--encre-3); }
.btn-simuler { display: inline-flex; align-items: center; gap: 0.5rem; border: 0; border-radius: 0.75rem; padding: 0.75rem 1.15rem; font-weight: 800; font-size: 1.02rem; background: var(--menthe); color: var(--encre); white-space: nowrap; transition: transform .12s, background .15s; box-shadow: 0 0 0 0 rgba(46,230,166,.5); }
.btn-simuler svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.btn-simuler:hover:not(:disabled) { background: var(--menthe-fonce); transform: translateY(-1px); }
.btn-simuler:disabled { opacity: .5; }
.btn-simuler.invite { animation: invite 2.2s ease-in-out infinite; }
@keyframes invite { 0%, 100% { box-shadow: 0 0 0 0 rgba(46,230,166,.45); } 50% { box-shadow: 0 0 0 0.45rem rgba(46,230,166,0); } }
.prochaine { font-size: 0.76rem; color: var(--gris); white-space: nowrap; }

.bande-temps { display: flex; align-items: center; gap: 0.45rem; padding-right: 1rem; border-right: 1px solid var(--encre-3); }
.libelle-temps { font-size: 0.72rem; color: var(--gris); text-transform: uppercase; letter-spacing: .07em; font-weight: 600; width: 4.6rem; line-height: 1.2; }
.btn-temps { border: 0; border-radius: 0.65rem; padding: 0.7rem 0.95rem; font-weight: 700; font-size: 0.95rem; background: var(--bleu); color: var(--blanc); white-space: nowrap; transition: transform .12s, background .15s; }
.btn-temps:hover:not(:disabled) { background: var(--bleu-fonce); transform: translateY(-1px); }
.btn-temps:disabled { opacity: .45; }

.chrono, .comparaison { display: flex; flex-direction: column; justify-content: center; line-height: 1.2; min-width: 9.5rem; }
.chrono { margin-left: auto; padding: 0.35rem 0.9rem; border-radius: 0.75rem; background: var(--encre-2); }
.chrono-tete { font-size: 0.72rem; color: var(--gris); text-transform: uppercase; letter-spacing: .07em; font-weight: 700; white-space: nowrap; }
.chrono-val { font-family: var(--titres); font-weight: 700; font-size: 1.55rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.chrono-texte { font-size: 0.76rem; color: #C9CDD8; white-space: nowrap; }
.chrono[data-etat="attente"] .chrono-val { color: var(--gris); }
.chrono[data-etat="cours"] .chrono-val { color: var(--blanc); }
.chrono[data-etat="fini"] { box-shadow: inset 0 0 0 1.5px var(--menthe); }
.chrono[data-etat="fini"] .chrono-val { color: var(--menthe); }
.chrono[data-etat="fini"] .chrono-texte { color: var(--menthe); font-weight: 700; }
.comparaison { padding: 0.35rem 0.2rem; }
.cmp-val { font-family: var(--titres); font-weight: 600; font-size: 1.12rem; color: var(--blanc); white-space: nowrap; }
.comparaison .chrono-texte { color: var(--gris); }

/* ---------- Panneaux ---------- */
.vue-demo { min-height: 0; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 0.6rem; }
.panneau { background: var(--blanc); border-radius: 1rem; box-shadow: var(--ombre); padding: 0.75rem 0.85rem; min-height: 0; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.panneau-tete { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.6rem; }
.panneau-tete h2 { font-size: 1.12rem; }
.sous { font-size: 0.8rem; color: var(--ardoise); margin-top: 0.1rem; }
.compteur { display: flex; align-items: center; gap: 0.45rem; background: var(--encre); color: var(--blanc); border-radius: 0.7rem; padding: 0.35rem 0.7rem; flex: none; }
.compteur-num { font-family: var(--titres); font-weight: 700; font-size: 1.35rem; color: var(--menthe); font-variant-numeric: tabular-nums; }
.compteur-txt { font-size: 0.68rem; line-height: 1.2; color: #C9CDD8; }
.compteur.bump .compteur-num { animation: bump .4s ease; }
@keyframes bump { 50% { transform: scale(1.3); } }

/* ---------- Écran de l'artisan ---------- */
.ecran { flex: 1; min-height: 0; display: flex; flex-direction: column; border-radius: 0.9rem; overflow: hidden; background: var(--nuage); border: 3px solid var(--encre); position: relative; }
.ecran-barre { display: flex; align-items: center; gap: 0.3rem; background: var(--encre); padding: 0.25rem 0.6rem 0.35rem; }
.ecran-barre i { width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--encre-3); }
.ecran-adresse { margin: 0 auto; font-size: 0.7rem; color: var(--gris); background: var(--encre-2); padding: 0.1rem 0.9rem; border-radius: 99px; }
.ec-defil { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-bottom: 0.8rem; }
.ec-entete { display: flex; align-items: center; gap: 0.9rem; background: var(--encre); color: var(--blanc); padding: 0.7rem 1rem; }
.ec-logo { height: 1.25rem; width: auto; }
.ec-titre { display: flex; flex-direction: column; line-height: 1.15; padding-left: 0.9rem; border-left: 1px solid var(--encre-3); min-width: 0; }
.ec-sur { font-size: 0.66rem; text-transform: uppercase; letter-spacing: .08em; color: var(--menthe); font-weight: 700; }
.ec-titre strong { font-family: var(--titres); font-weight: 600; font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ec-etat { margin-left: auto; display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.75rem; font-weight: 700; color: var(--menthe); background: rgba(46,230,166,.12); padding: 0.3rem 0.65rem; border-radius: 99px; white-space: nowrap; }
.ec-etat i { width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--menthe); }

.ec-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.55rem; padding: 0.75rem 0.9rem 0.3rem; }
.kpi { background: var(--blanc); border-radius: 0.75rem; padding: 0.55rem 0.75rem; box-shadow: 0 1px 2px rgba(17,19,24,.05); min-width: 0; }
.kpi-tete { font-size: 0.74rem; color: var(--ardoise); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi-val { font-family: var(--titres); font-weight: 700; font-size: 1.35rem; line-height: 1.2; font-variant-numeric: tabular-nums; }
.kpi-sous { font-size: 0.7rem; color: var(--ardoise); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi.vedette { background: var(--encre); color: var(--blanc); }
.kpi.vedette .kpi-tete, .kpi.vedette .kpi-sous { color: #C9CDD8; }
.kpi.vedette .kpi-val { color: var(--menthe); }
.kpi.alerte .kpi-val { color: var(--ambre); }

.ec-filtres { display: flex; gap: 0.35rem; padding: 0.45rem 0.9rem 0.4rem; }
.ec-filtres button { border: 1px solid var(--ligne); background: var(--blanc); border-radius: 99px; padding: 0.28rem 0.8rem; font-weight: 700; font-size: 0.8rem; color: var(--ardoise); }
.ec-filtres button span { color: var(--gris); font-weight: 600; margin-left: 0.15rem; }
.ec-filtres button[aria-pressed="true"] { background: var(--encre); border-color: var(--encre); color: var(--blanc); }
.ec-filtres button[aria-pressed="true"] span { color: var(--menthe); }

.ec-liste { display: flex; flex-direction: column; gap: 0.5rem; padding: 0 0.9rem; }
.vide { font-size: 0.85rem; color: var(--ardoise); text-align: center; padding: 1.2rem 0.5rem; }
.dem { background: var(--blanc); border-radius: 0.8rem; padding: 0.6rem 0.75rem 0.65rem; box-shadow: 0 1px 2px rgba(17,19,24,.06); border-left: 4px solid var(--ligne); }
.dem.st-nouvelle { border-left-color: var(--bleu); }
.dem.st-repondue { border-left-color: #F2A33A; }
.dem.st-creneau { border-left-color: var(--menthe); }
.dem.st-rappele { border-left-color: var(--menthe-texte); }
.dem.st-traitee { opacity: .75; }
.dem.arrivee { animation: arrivee .6s ease; }
@keyframes arrivee { from { opacity: 0; transform: translateY(-0.6rem); box-shadow: 0 0 0 3px var(--bleu); } to { opacity: 1; transform: none; } }
.dem.eclair { animation: eclair 1.1s ease; }
@keyframes eclair { 0%, 100% { box-shadow: 0 1px 2px rgba(17,19,24,.06); } 30% { box-shadow: 0 0 0 3px var(--menthe); } }
.dem-haut { display: flex; align-items: center; gap: 0.5rem; }
.src { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.72rem; font-weight: 700; color: var(--ardoise); background: var(--nuage); padding: 0.14rem 0.5rem; border-radius: 99px; white-space: nowrap; }
.src svg { width: 0.85rem; height: 0.85rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dem-quand { font-size: 0.74rem; color: var(--ardoise); white-space: nowrap; }
.statut { margin-left: auto; font-size: 0.72rem; font-weight: 800; padding: 0.14rem 0.55rem; border-radius: 99px; white-space: nowrap; }
.statut.st-nouvelle { background: var(--bleu-pale); color: var(--bleu-fonce); }
.statut.st-repondue { background: var(--ambre-pale); color: var(--ambre); }
.statut.st-creneau { background: var(--menthe-pale); color: var(--menthe-texte); }
.statut.st-rappele { background: var(--menthe-pale); color: var(--menthe-texte); }
.statut.st-traitee { background: var(--nuage); color: var(--ardoise); }
.dem-nom { font-weight: 800; font-size: 0.98rem; margin-top: 0.3rem; }
.dem-nom .dem-ville { font-weight: 600; color: var(--ardoise); font-size: 0.85rem; }
.dem-travaux { font-size: 0.86rem; color: #2B2F3A; margin-top: 0.05rem; }
.dem-auto { display: flex; flex-wrap: wrap; gap: 0.2rem 0.8rem; font-size: 0.76rem; color: var(--ardoise); margin-top: 0.3rem; }
.dem-auto .ok { color: var(--menthe-texte); font-weight: 700; }
.dem-auto .encours { color: var(--bleu-fonce); font-weight: 700; }
.dem-auto .rap { color: var(--ambre); font-weight: 700; }
.dem-qualif { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.4rem; }
.dem-qualif span { font-size: 0.74rem; background: var(--bleu-pale); color: #22306E; padding: 0.12rem 0.5rem; border-radius: 0.4rem; }
.dem-creneau { margin-top: 0.4rem; font-size: 0.8rem; font-weight: 700; color: var(--menthe-texte); background: var(--menthe-pale); padding: 0.3rem 0.55rem; border-radius: 0.5rem; }
.dem-creneau.attente { color: var(--ardoise); background: var(--nuage); }
.dem-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.55rem; }
.act { display: inline-flex; align-items: center; gap: 0.35rem; border: 1px solid var(--ligne); background: var(--blanc); border-radius: 0.55rem; padding: 0.38rem 0.7rem; font-weight: 700; font-size: 0.8rem; color: var(--encre); white-space: nowrap; }
.act svg { width: 0.9rem; height: 0.9rem; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.act:hover { border-color: var(--encre); }
.act.principal { background: var(--bleu); border-color: var(--bleu); color: var(--blanc); }
.act.principal:hover { background: var(--bleu-fonce); }

/* Notification sur le téléphone de l'artisan */
.notif { position: absolute; left: 50%; top: 2.2rem; transform: translateX(-50%); width: min(26rem, calc(100% - 1.6rem)); display: flex; gap: 0.6rem; align-items: flex-start; background: rgba(27, 30, 38, .97); color: var(--blanc); border-radius: 1rem; padding: 0.65rem 0.8rem; box-shadow: var(--ombre-forte); z-index: 5; animation: notif-entree .35s ease; }
@keyframes notif-entree { from { opacity: 0; transform: translate(-50%, -0.8rem); } }
.notif-icone { flex: none; width: 1.9rem; height: 1.9rem; border-radius: 0.5rem; background: var(--menthe); color: var(--encre); display: grid; place-items: center; }
.notif-icone svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linejoin: round; }
.notif-corps { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.notif-tete { display: flex; justify-content: space-between; gap: 0.6rem; font-size: 0.72rem; color: var(--gris); }
.notif-tete strong { color: var(--blanc); }
.notif-texte { font-size: 0.82rem; line-height: 1.35; }

/* Feuille « Proposer un créneau » (dans l'écran) */
.ec-voile { position: absolute; inset: 0; background: rgba(17, 19, 24, .45); display: grid; place-items: end center; z-index: 6; }
.feuille { width: min(30rem, 100%); background: var(--blanc); border-radius: 1rem 1rem 0 0; padding: 1rem 1.1rem 0.8rem; box-shadow: var(--ombre-forte); display: flex; flex-direction: column; gap: 0.6rem; }
.feuille h3 { font-size: 1.05rem; }
.feuille-note { font-size: 0.8rem; color: var(--ardoise); line-height: 1.45; }
.creneaux { display: flex; flex-direction: column; gap: 0.4rem; }
.creneaux button { border: 1px solid var(--ligne); background: var(--nuage); border-radius: 0.6rem; padding: 0.6rem 0.8rem; font-weight: 700; text-align: left; }
.creneaux button:hover { border-color: var(--bleu); background: var(--bleu-pale); }
.btn-lien { border: 0; background: none; color: var(--ardoise); text-decoration: underline; padding: 0.3rem; align-self: center; font-weight: 600; }

/* ---------- Fil des messages automatiques ---------- */
.fil { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 0.4rem; padding-right: 0.2rem; }
.fil-vide { border: 1.5px dashed var(--ligne); border-radius: 0.8rem; padding: 1rem; text-align: center; font-size: 0.86rem; color: var(--ardoise); line-height: 1.5; }
.fil-vide strong { color: var(--encre); }
.fil-section { font-size: 0.68rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--gris); margin: 0.35rem 0 0.05rem; }
.carte { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 0.15rem 0.6rem; align-items: center; width: 100%; text-align: left; border: 1px solid var(--ligne); background: var(--blanc); border-radius: 0.7rem; padding: 0.5rem 0.65rem; }
.carte:hover { border-color: var(--gris); }
.carte.nouvelle-carte { animation: carte-entree .55s ease; }
@keyframes carte-entree { from { opacity: 0; transform: translateX(0.8rem); background: var(--menthe-pale); } to { opacity: 1; transform: none; } }
.carte .badge { grid-row: 1; font-size: 0.7rem; font-weight: 800; padding: 0.12rem 0.5rem; border-radius: 0.35rem; white-space: nowrap; }
.carte .c-dest { grid-row: 1; font-weight: 700; font-size: 0.86rem; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.carte .c-heure { grid-row: 1; font-size: 0.72rem; color: var(--ardoise); font-variant-numeric: tabular-nums; white-space: nowrap; }
.carte .c-apercu { grid-column: 1 / -1; font-size: 0.78rem; color: var(--ardoise); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.canal { display: inline-block; font-style: normal; font-size: 0.66rem; font-weight: 700; color: var(--ardoise); border: 1px solid var(--ligne); border-radius: 0.3rem; padding: 0 0.3rem; margin-left: 0.3rem; vertical-align: 0.08rem; }
.b-accuse { background: var(--menthe-pale); color: var(--menthe-texte); }
.b-alerte { background: var(--bleu-pale); color: var(--bleu-fonce); }
.b-qualif { background: #EEF0F6; color: #2B2F3A; }
.b-confirmation, .b-creneau { background: var(--menthe-pale); color: var(--menthe-texte); }
.b-relance { background: var(--ambre-pale); color: var(--ambre); }
.carte.historique { background: #FBFBFD; }
.carte.historique .c-dest { font-weight: 600; }
.ligne-info { font-size: 0.76rem; color: var(--ardoise); padding: 0.2rem 0.4rem; border-left: 2px solid var(--ligne); }
.ligne-info b { font-variant-numeric: tabular-nums; font-weight: 600; }
.repli { border: 1px dashed var(--ligne); background: transparent; border-radius: 0.6rem; padding: 0.45rem 0.6rem; font-size: 0.8rem; font-weight: 700; color: var(--ardoise); text-align: left; }
.repli:hover { color: var(--encre); border-color: var(--gris); }

.filigrane { position: fixed; right: 0.9rem; bottom: 0.15rem; font-size: 0.62rem; color: var(--gris); pointer-events: none; }

/* ---------- Modales ---------- */
.modale { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 1rem; }
.modale-fond { position: absolute; inset: 0; background: rgba(17, 19, 24, .55); }
.modale-boite { position: relative; background: var(--blanc); border-radius: 1rem; box-shadow: var(--ombre-forte); width: min(40rem, 100%); max-height: calc(100vh - 2rem); overflow: auto; padding: 1.2rem 1.3rem 1.1rem; }
.fermer { position: absolute; right: 0.7rem; top: 0.55rem; border: 0; background: var(--nuage); width: 2rem; height: 2rem; border-radius: 50%; font-size: 1.3rem; line-height: 1; color: var(--ardoise); }
.fermer:hover { background: var(--ligne); color: var(--encre); }
.msg-tete { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 0 2.2rem 0.3rem 0; }
.msg-tete .badge { font-size: 0.72rem; font-weight: 800; padding: 0.15rem 0.55rem; border-radius: 0.35rem; }
.msg-tete h2 { font-size: 1.15rem; }
.msg-delai { font-size: 0.82rem; color: var(--ardoise); margin-bottom: 0.8rem; }
.msg-delai strong { color: var(--menthe-texte); }
.msg { border: 1px solid var(--ligne); border-radius: 0.8rem; margin-top: 0.7rem; overflow: hidden; }
.msg-entete { display: flex; align-items: center; gap: 0.5rem; background: var(--nuage); padding: 0.45rem 0.8rem; font-size: 0.8rem; font-weight: 700; color: var(--ardoise); }
.msg-champs { padding: 0.55rem 0.8rem 0; font-size: 0.82rem; color: var(--ardoise); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.15rem 0.6rem; }
.msg-champs b { color: var(--encre); font-weight: 600; overflow-wrap: anywhere; }
.msg-corps { padding: 0.6rem 0.8rem 0.8rem; font-size: 0.9rem; line-height: 1.55; white-space: pre-wrap; }
.msg-sms { padding: 0.7rem 0.8rem 0.9rem; background: #F7F8FB; }
.bulle { max-width: 88%; background: var(--blanc); border: 1px solid var(--ligne); border-radius: 1rem 1rem 1rem 0.3rem; padding: 0.55rem 0.75rem; font-size: 0.9rem; line-height: 1.45; }
.bulle.sortante { margin-left: auto; background: var(--bleu); border-color: var(--bleu); color: var(--blanc); border-radius: 1rem 1rem 0.3rem 1rem; }
.sms-long { font-size: 0.72rem; color: var(--ardoise); margin-top: 0.35rem; }
.msg-form { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.msg-form th { text-align: left; font-weight: 600; color: var(--ardoise); padding: 0.45rem 0.8rem; width: 9.5rem; border-top: 1px solid var(--ligne); }
.msg-form td { padding: 0.45rem 0.8rem; font-weight: 700; border-top: 1px solid var(--ligne); }
.msg-note { font-size: 0.78rem; color: var(--ardoise); margin-top: 0.8rem; line-height: 1.45; }

.boite-reglages h2 { font-size: 1.2rem; margin-bottom: 0.6rem; }
fieldset { border: 1px solid var(--ligne); border-radius: 0.8rem; padding: 0.7rem 0.9rem 0.9rem; margin: 0 0 0.8rem; display: flex; flex-direction: column; gap: 0.6rem; }
legend { font-weight: 800; font-size: 0.9rem; padding: 0 0.3rem; }
.note { font-size: 0.8rem; color: var(--ardoise); line-height: 1.45; }
.deux-col { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.champ { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.8rem; font-weight: 700; color: var(--ardoise); }
.champ input, .champ select { font: inherit; font-size: 0.92rem; font-weight: 600; color: var(--encre); border: 1px solid var(--ligne); border-radius: 0.55rem; padding: 0.5rem 0.6rem; background: var(--blanc); }
.btn { border: 0; border-radius: 0.6rem; padding: 0.6rem 1rem; font-weight: 800; align-self: flex-start; }
.btn-secondaire { background: var(--encre); color: var(--blanc); }
.btn-secondaire:hover { background: var(--encre-3); }
.choix-segment { display: inline-flex; background: var(--nuage); border-radius: 99px; padding: 0.2rem; align-self: flex-start; }
.choix-segment button { border: 0; background: transparent; padding: 0.35rem 0.9rem; border-radius: 99px; font-weight: 700; font-size: 0.85rem; color: var(--ardoise); }
.choix-segment button.actif { background: var(--blanc); color: var(--encre); box-shadow: 0 1px 3px rgba(17,19,24,.12); }
.raccourcis { margin-top: 0.2rem; }

/* ---------- Toasts ---------- */
.toasts { position: fixed; left: 50%; bottom: 1.4rem; transform: translateX(-50%); z-index: 60; display: flex; flex-direction: column; gap: 0.4rem; align-items: center; pointer-events: none; }
.toast { background: var(--encre); color: var(--blanc); padding: 0.55rem 1rem; border-radius: 0.7rem; font-size: 0.86rem; font-weight: 600; box-shadow: var(--ombre-forte); animation: notif-entree-bas .3s ease; max-width: min(34rem, calc(100vw - 2rem)); }
.toast.sortie { opacity: 0; transition: opacity .3s; }
@keyframes notif-entree-bas { from { opacity: 0; transform: translateY(0.6rem); } }

/* ---------- Visite guidée (js/visite.js) ---------- */
.visite { position: fixed; inset: 0; z-index: 90; font-family: var(--texte); }
.visite-bloqueur { position: fixed; inset: 0; background: transparent; }
.visite-bloqueur.sombre { background: rgba(17, 19, 24, .68); }
.visite-trou { position: fixed; left: 0; top: 0; width: 0; height: 0; border-radius: 14px; pointer-events: none; z-index: 1;
  box-shadow: 0 0 0 3px var(--menthe), 0 0 0 9px rgba(46, 230, 166, .28), 0 0 0 200vmax rgba(17, 19, 24, .62);
  transition: left .35s ease, top .35s ease, width .35s ease, height .35s ease; }
.visite-trou.immediat { transition: none; }
body.visite-active .toasts { display: none; }
.visite-bulle { position: fixed; z-index: 3; width: min(370px, calc(100vw - 28px)); background: var(--encre); color: var(--blanc); border-radius: 18px; padding: 18px 20px 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .08); animation: visite-entree .25s ease; }
.visite-bulle.centre { left: 50%; top: 50%; transform: translate(-50%, -50%); }
.visite-bulle.finale { width: min(600px, calc(100vw - 28px)); padding: 26px 28px 22px; }
.visite-bulle:focus { outline: none; }
@keyframes visite-entree { from { opacity: 0; } }
.visite-tete { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.visite-progression { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; color: var(--menthe); letter-spacing: .04em; }
.visite-points { display: inline-flex; gap: 5px; }
.visite-points i { width: 8px; height: 8px; border-radius: 50%; background: #3A3F4C; }
.visite-points i.actif { background: var(--menthe); }
.visite-texte { margin: 0 0 16px; font-size: 18px; line-height: 1.5; font-weight: 500; color: var(--blanc); }
.visite-bulle.finale .visite-texte { font-family: var(--titres); font-size: 23px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.visite-pied { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.visite-bouton { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 2px solid var(--bleu); background: var(--bleu); color: var(--blanc); font: inherit; font-size: 17px; font-weight: 700; padding: 11px 20px; border-radius: 999px; cursor: pointer; text-decoration: none; transition: background .15s; }
.visite-bouton:hover { background: var(--bleu-fonce); border-color: var(--bleu-fonce); color: var(--blanc); }
.visite-bouton:disabled { opacity: .6; cursor: progress; }
.visite-bouton.action { background: var(--menthe); border-color: var(--menthe); color: var(--encre); }
.visite-bouton.action:hover { background: var(--menthe-fonce); border-color: var(--menthe-fonce); }
.visite-bouton.secondaire { background: transparent; border-color: rgba(255, 255, 255, .35); }
.visite-bouton.secondaire:hover { background: rgba(255, 255, 255, .08); }
.visite-pied .visite-suivant { margin-left: auto; }
.visite-lien { border: 0; background: none; font: inherit; font-size: 15px; color: var(--gris); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 6px 4px; }
.visite-lien:hover { color: var(--blanc); }
.visite-bouton:focus-visible, .visite-lien:focus-visible { outline: 3px solid var(--menthe); outline-offset: 3px; }
.visite-chiffres { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0 0 18px; }
.visite-chiffres div { background: var(--encre-2); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.visite-chiffres strong { font-family: var(--titres); font-size: 24px; color: var(--menthe); line-height: 1.2; }
.visite-chiffres span { font-size: 14px; color: #C9CDD8; line-height: 1.35; }
.visite-chiffres p { grid-column: 1 / -1; margin: 0; font-size: 13px; color: var(--gris); }
.visite-fin { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.visite-accueil { position: fixed; z-index: 3; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(620px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto;
  background: var(--blanc); color: var(--encre); border-radius: 22px; padding: 34px 38px 28px; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); text-align: center; animation: visite-entree .3s ease; }
.visite-sur-titre { margin: 0 0 10px; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--bleu); }
.visite-accueil h2 { font-family: var(--titres); font-size: 30px; line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 14px; }
.visite-accueil-texte { font-size: 18px; line-height: 1.55; color: #2B2F3A; margin: 0 0 24px; }
.visite-accueil .visite-commencer { font-size: 19px; padding: 15px 30px; }
.visite-accueil .visite-seul { display: block; margin: 12px auto 0; color: var(--ardoise); font-size: 16px; }
.visite-accueil .visite-seul:hover { color: var(--encre); }
.visite-note { margin: 18px 0 0; font-size: 14px; color: var(--ardoise); }
.visite-bulle.large { width: min(640px, calc(100vw - 28px)); }

/* ---------- Écran du téléphone (alternative propre) ---------- */
.avis-mobile { display: none; }

/* ---------- Tailles d'écran ---------- */
@media (max-width: 1180px) {
  /* Petit portable / tablette horizontale : la comparaison reste visible, en plus court. */
  .bande { gap: 0.6rem 0.8rem; }
  .horloge, .bande-simuler, .bande-temps { padding-right: 0.8rem; }
  .comparaison { min-width: 0; }
  .comparaison .chrono-texte { display: none; }
  .chrono { min-width: 8.5rem; }
}
@media (max-width: 1000px) {
  body { overflow: auto; }
  .app { height: auto; min-height: 100vh; grid-template-rows: auto auto auto; }
  .vue-demo { grid-template-columns: minmax(0, 1fr); }
  .panneau-gauche .ecran { min-height: 34rem; }
  .panneau-droit { min-height: 24rem; max-height: 80vh; }
  .chrono { margin-left: 0; }
  .comparaison { display: flex; }
}
@media (max-width: 760px) {
  html:not(.forcer-demo) body { overflow: auto; background: var(--encre); }
  html:not(.forcer-demo) .app, html:not(.forcer-demo) .toasts, html:not(.forcer-demo) .visite { display: none !important; }
  html:not(.forcer-demo) .avis-mobile { display: flex; }
  .avis-mobile { flex-direction: column; align-items: flex-start; gap: 16px; min-height: 100vh; padding: 28px 22px 36px; background: var(--encre); color: var(--blanc); font-size: 16px; line-height: 1.55; }
  .avis-mobile .am-logo { height: 26px; width: auto; }
  .avis-mobile .am-sur-titre { margin-top: 14px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--menthe); }
  .avis-mobile h2 { font-size: 26px; line-height: 1.2; letter-spacing: -0.02em; }
  .avis-mobile p { color: #D6DAE3; }
  .am-telephone { width: 100%; background: var(--encre-2); border: 1px solid rgba(46, 230, 166, .4); border-radius: 18px; padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 10px; }
  .avis-mobile .am-tel-tete { font-size: 13px; font-weight: 700; color: var(--menthe); }
  .avis-mobile .am-bulle { background: #2C313D; color: var(--blanc); border-radius: 16px 16px 16px 4px; padding: 10px 12px; font-size: 15px; line-height: 1.45; }
  .am-boutons { display: flex; flex-direction: column; gap: 12px; width: 100%; }
  .am-bouton { display: block; text-align: center; padding: 14px 20px; border-radius: 999px; background: var(--menthe); color: var(--encre); font-weight: 800; text-decoration: none; border: 2px solid var(--menthe); font-size: 16px; }
  .am-bouton.secondaire { background: transparent; border-color: rgba(255, 255, 255, .35); color: var(--blanc); }
  .am-continuer { align-self: center; border: 0; background: none; color: var(--gris); text-decoration: underline; font-size: 15px; padding: 8px; }
  .avis-mobile .am-note { font-size: 13px; color: var(--gris); }

  /* « Ouvrir quand même » : démo empilée, utilisable au doigt. */
  .entete-demo { flex-wrap: wrap; gap: 0.5rem 0.75rem; }
  .actions-entete { margin-left: 0; flex-wrap: wrap; }
  .titre-pack { border-left: 0; padding-left: 0; }
  .bande { flex-direction: column; }
  .horloge, .bande-simuler, .bande-temps { border-right: 0; padding-right: 0; }
  .btn-simuler { justify-content: center; }
  .chrono, .comparaison { width: 100%; }
  .ec-kpis { grid-template-columns: 1fr; }
  .ec-entete { flex-wrap: wrap; }
  .ec-etat { margin-left: 0; }
  .carte .c-dest, .carte .c-apercu { white-space: normal; }
  .deux-col { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
