/* ============================================================
   GoodBeauty — démonstration
   - barre du haut : pastille « Démo », choix de la version, remise à neuf ;
   - bloc « Essayez la démo » de l'accueil ;
   - page d'essai (entrée en un clic par rôle) ;
   - « Démo sur deux écrans » : téléphone + agenda qui se met à jour.
   ============================================================ */

/* ---------- Barre du haut ---------- */
.demo-version { display: flex; align-items: center; gap: 6px; margin: 0; padding: 3px 4px 3px 3px; border: 1px solid var(--accent-ligne);
  border-radius: 12px; background: var(--accent-doux); }
.demo-pastille { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 9px; background: var(--accent); color: var(--sur-accent);
  font-weight: 700; font-size: .78rem; letter-spacing: .02em; }
.demo-pastille .ic { width: 15px; height: 15px; }
.demo-version select { min-height: 32px; padding: 4px 26px 4px 8px; border: 0; background-color: transparent; font-weight: 650; color: var(--accent-fonce);
  width: auto; box-shadow: none; }
.demo-remise { margin: 0; }
@media (max-width: 720px) {
  .demo-pastille span { display: none; }
  .demo-pastille { padding: 5px 6px; }
  .demo-version select { max-width: 104px; padding-right: 20px; }
}

/* ---------- Accueil ---------- */
.demo-visite .liste > li { align-items: flex-start; }
.demo-visite .liste .ic { color: var(--accent); margin-top: 2px; }
.demo-visite .titre { white-space: normal; }
.demo-liens .detail { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.demo-quitter summary { cursor: pointer; font-weight: 650; color: var(--encre-2); }
.demo-quitter[open] summary { margin-bottom: 12px; }

/* ---------- Page d'essai ---------- */
.demo-essai .contenu-nu { background: radial-gradient(1200px 600px at 10% -10%, var(--accent-doux), transparent 70%), var(--fond); }
.demo-essai-boite { width: 100%; max-width: 1060px; margin: 0 auto; padding: 8px 0 24px; }
.demo-essai-tete { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 22px; }
.demo-essai-tete .marque-logo { width: 54px; height: 54px; border-radius: 16px; font-size: 1.2rem; }
.demo-surtitre { margin: 4px 0 2px; color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; }
.demo-essai-tete h1 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); letter-spacing: -.02em; margin-bottom: 8px; }
.demo-chapo { font-size: 1.05rem; color: var(--encre-2); max-width: 760px; }
.demo-deja { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.demo-titre-roles { font-size: 1.05rem; margin: 6px 0 12px; color: var(--encre-2); }
.demo-roles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.demo-role { display: flex; flex-direction: column; gap: 4px; padding: 18px; background: var(--surface); border: 1px solid var(--ligne); border-radius: 18px;
  box-shadow: var(--ombre); transition: transform .15s, box-shadow .15s, border-color .15s; }
.demo-role:hover { transform: translateY(-2px); box-shadow: var(--ombre-forte); border-color: var(--accent-ligne); }
.demo-role h3 { margin: 6px 0 0; font-size: 1.15rem; }
.demo-role-ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--accent-doux); color: var(--accent); }
.demo-role-ic .ic { width: 22px; height: 22px; }
.demo-role-nom { margin: 0; color: var(--muet); font-size: .88rem; font-weight: 600; }
.demo-role-texte { margin: 6px 0 4px; color: var(--encre-2); font-size: .92rem; flex: 1; }
.demo-role-id { margin: 0 0 10px; font-size: .82rem; color: var(--muet); }
.demo-role .btn { width: 100%; white-space: normal; }
.demo-identifiants { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; padding: 14px 16px; border-radius: 14px;
  background: var(--surface-2); border: 1px dashed var(--ligne-forte); color: var(--encre-2); font-size: .92rem; }
.demo-identifiants .ic { color: var(--accent); margin-top: 2px; }
.demo-identifiants p { margin: 0; }
.demo-essai-liens { display: flex; gap: 18px; flex-wrap: wrap; margin: 16px 0 0; }
.demo-essai-liens a { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; }
@media (max-width: 1024px) { .demo-roles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .demo-roles { grid-template-columns: minmax(0, 1fr); }
  .demo-essai-tete { flex-direction: column; gap: 10px; }
}

/* ---------- Démo sur deux écrans ---------- */
.demo-ecrans .contenu-nu { display: block; padding: 0; min-height: 100vh; background:
  radial-gradient(900px 500px at 0% 0%, var(--accent-doux), transparent 65%), var(--fond); }
.de { --tel-l: 380px; max-width: 1680px; margin: 0 auto; padding: 14px clamp(12px, 2vw, 28px) 18px; min-height: 100vh; display: flex; flex-direction: column; gap: 14px; }
.de-tete { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.de-titre { flex: 1; min-width: 240px; }
.de-titre h1 { font-size: clamp(1.2rem, 2.2vw, 1.75rem); margin: 0; letter-spacing: -.02em; }
.de-sous { margin: 2px 0 0; color: var(--muet); }
.de-direct { display: inline-flex; align-items: center; gap: 7px; margin: 0 0 2px; font-size: .74rem; font-weight: 750; letter-spacing: .1em;
  text-transform: uppercase; color: var(--danger); }
.de-point { width: 9px; height: 9px; border-radius: 50%; background: currentColor; display: inline-block; animation: de-respire 1.6s ease-in-out infinite; }
@keyframes de-respire { 50% { opacity: .35; transform: scale(.8); } }
.de-outils { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.de-centre { display: flex; align-items: center; gap: 6px; padding: 0 10px; border: 1px solid var(--ligne-forte); border-radius: 11px; background: var(--surface); color: var(--muet); }
.de-centre select { border: 0; min-height: 38px; padding: 4px 0; background: transparent; font-weight: 650; width: auto; box-shadow: none; }
.de-scene { flex: 1; display: grid; grid-template-columns: var(--tel-l) minmax(0, 1fr); gap: clamp(14px, 2.4vw, 34px); align-items: start; }
.de-cote { min-width: 0; }
.de-legende { display: flex; align-items: center; gap: 7px; margin: 0 0 10px; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muet); font-weight: 700; }

/* le téléphone */
.de-cote-tel { position: sticky; top: 12px; }
.de-telephone { position: relative; width: 100%; aspect-ratio: 9 / 18.6; max-height: calc(100vh - 210px); min-height: 520px; margin: 0 auto;
  border-radius: 46px; padding: 34px 12px 14px; background: linear-gradient(145deg, #2b2429, #0f0b0d); box-shadow: 0 30px 60px -20px rgb(36 29 33 / .45),
  inset 0 0 0 2px #3a3136; }
.de-telephone iframe { width: 100%; height: 100%; border: 0; border-radius: 35px; background: #fff; display: block; }
.de-encoche { position: absolute; top: 12px; left: 50%; width: 84px; height: 12px; transform: translateX(-50%); border-radius: 10px; background: #000; z-index: 2;
  box-shadow: inset 0 0 0 1px #2b2429; }
.de-qr { display: flex; gap: 12px; align-items: center; margin-top: 14px; padding: 10px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--ligne); font-size: .84rem; color: var(--encre-2); }
.de-qr p { margin: 0; }
.de-qr-image { flex: none; width: 84px; height: 84px; padding: 6px; background: #fff; border-radius: 10px; }
.de-qr-image svg { width: 100%; height: 100%; display: block; }

/* l'agenda */
.de-cote-agenda { background: var(--surface); border: 1px solid var(--ligne); border-radius: 22px; box-shadow: var(--ombre); padding: 14px 16px 16px; }
.de-agenda-tete { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.de-agenda-tete .de-legende { margin: 0; }
.de-jour { display: flex; align-items: center; gap: 4px; flex: 1; justify-content: center; }
.de-jour strong { min-width: 170px; text-align: center; font-size: 1.02rem; }
.de-etat { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--ok); font-weight: 600; }
.de-etat.erreur { color: var(--alerte); }
.de-agenda { height: calc(100vh - 330px); min-height: 420px; overflow: auto; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--ligne);
  scrollbar-width: thin; }
.de-attente { margin: 0; padding: 40px 20px; text-align: center; color: var(--muet); }
.de-grille { display: grid; grid-template-columns: 52px repeat(var(--n), minmax(118px, 1fr)); min-width: calc(52px + var(--n) * 118px); position: relative; }
.de-coin, .de-entete { position: sticky; top: 0; z-index: 3; background: var(--surface-2); border-bottom: 1px solid var(--ligne); height: 40px; }
.de-entete { display: flex; align-items: center; gap: 7px; padding: 0 10px; font-weight: 700; font-size: .9rem; border-left: 1px solid var(--ligne); }
.de-entete .pastille { --c: inherit; background: var(--c); }
.de-heures { position: relative; grid-column: 1; }
.de-heures span { position: absolute; right: 8px; transform: translateY(-7px); font-size: .72rem; color: var(--muet); font-variant-numeric: tabular-nums; }
.de-heures span:first-child { transform: none; top: 2px !important; }
.de-colonne { position: relative; border-left: 1px solid var(--ligne); }
.de-ligne { position: absolute; left: 0; right: 0; border-top: 1px dashed var(--ligne); }
.de-repos { position: absolute; left: 0; right: 0; background: repeating-linear-gradient(135deg, transparent 0 7px, color-mix(in oklab, var(--ligne) 70%, transparent) 7px 8px); }
.de-rdv { --c: var(--accent); position: absolute; left: 4px; right: 4px; overflow: hidden; padding: 4px 8px 4px 10px; border-radius: 9px; text-decoration: none;
  color: var(--encre); font-size: .8rem; line-height: 1.25; background: color-mix(in oklab, var(--c) 16%, var(--surface));
  border: 1px solid color-mix(in oklab, var(--c) 40%, var(--surface)); border-left: 4px solid var(--c); box-shadow: 0 1px 2px rgb(36 29 33 / .06); }
.de-rdv:hover { color: var(--encre); z-index: 2; box-shadow: var(--ombre-forte); }
.de-rdv b { font-variant-numeric: tabular-nums; }
.de-rdv small { display: block; color: var(--encre-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.de-rdv.court { padding-top: 2px; padding-bottom: 2px; white-space: nowrap; text-overflow: ellipsis; }
.de-rdv.court small { display: none; }
.de-rdv.statut-annule { opacity: .5; text-decoration: line-through; background: repeating-linear-gradient(135deg, var(--surface) 0 6px, var(--surface-3) 6px 12px); }
.de-rdv.statut-absent { border-color: var(--danger); border-left-color: var(--danger); }
.de-rdv.statut-termine { filter: saturate(.55); }
.de-rdv.statut-demande { border-style: dashed; }
.de-maintenant { position: absolute; left: -1px; right: 0; height: 0; border-top: 2px solid var(--danger); z-index: 2; pointer-events: none; }
.de-maintenant::before { content: ""; position: absolute; left: -5px; top: -6px; width: 10px; height: 10px; border-radius: 50%; background: var(--danger); }
.de-nouveau { z-index: 4; animation: de-arrivee 1.1s cubic-bezier(.2, .9, .3, 1.3) both, de-halo 1.6s ease-out 1s 3; }
.de-badge { position: absolute; top: 4px; right: 6px; font-style: normal; font-size: .64rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  padding: 1px 6px; border-radius: 99px; background: var(--c); color: #fff; }
@keyframes de-arrivee { from { opacity: 0; transform: translateY(-14px) scale(.92); } }
@keyframes de-halo { from { box-shadow: 0 0 0 0 color-mix(in oklab, var(--c) 55%, transparent); } to { box-shadow: 0 0 0 14px transparent; } }

/* le fil des réservations */
.de-fil { margin-top: 12px; }
.de-fil h3 { display: flex; align-items: center; gap: 7px; font-size: .9rem; margin: 0 0 6px; color: var(--encre-2); }
.de-fil ul { list-style: none; margin: 0; padding: 0; max-height: 132px; overflow: auto; }
.de-fil li { display: flex; align-items: center; gap: 10px; padding: 7px 4px; border-bottom: 1px solid var(--ligne); font-size: .88rem; }
.de-fil li:last-child { border-bottom: 0; }
.de-fil-vide { color: var(--muet); }
.de-fil-heure { font-variant-numeric: tabular-nums; color: var(--muet); font-weight: 600; }
.de-fil-texte { flex: 1; min-width: 0; }
.de-fil-texte small { display: block; color: var(--muet); }
.de-fil-nouveau { animation: entrer .4s ease-out; }

/* grand écran : un téléphone un peu plus grand ; tablette et téléphone : l'un sous l'autre */
@media (min-width: 1500px) { .de { --tel-l: 410px; } }
@media (max-width: 980px) {
  .de-scene { grid-template-columns: minmax(0, 1fr); }
  .de-cote-tel { position: static; max-width: 420px; width: 100%; margin: 0 auto; }
  .de-telephone { max-height: none; min-height: 0; }
  .de-agenda { height: 70vh; }
}
@media (max-width: 560px) {
  .de-telephone { border-radius: 34px; padding: 28px 9px 11px; }
  .de-encoche { top: 9px; }
  .de-telephone iframe { border-radius: 27px; }
  .de-jour strong { min-width: 0; font-size: .95rem; }
  .de-cote-agenda { padding: 12px; border-radius: 16px; }
  .de-qr-image { width: 70px; height: 70px; }
  .de-tete .btn span { display: none; }
}
