/* Démo Permilia : téléphone de démonstration aux couleurs de l'application (v1.10.0). */
.vitrine--permilia{--brun:#7A5101;--brun-c:#8E6B27;--brun-f:#654400;--brun-bord:#9E834C;--or:#FBD46F;--or-haut:#FEE19D;--or-bas:#DDB659;--or-bord:#C9A24A;--or-titre:#FED472;--texte-or:#322400;--fond:#F7F6FB;--carte:#FFFFFF;--creme:#F1EFF5;--encre:#1C1C1C;--corps:#3E3E3C;--doux:#6B6E73;--filet:#E4E2EA;--piste:#EDEEF0}
/* ---------- Téléphone de démonstration ----------
   v1.10.0 (lot 13, décision d'Alban du 07/10/2026 : « on annule la pièce partout, brune et dorée ») : écrans refaits
   d'après l'application actuelle (captures du 07/10/2026) : barres brunes, boutons dorés, arche, fond gris lavande.
   Couleurs relevées sur les captures (docs/lot13/LISEZMOI.md) ; contrastes : blanc sur brun 7,0:1, or des titres sur
   brun 5,0:1, texte foncé sur or 10,6:1, brun sur blanc 6,9:1, gris des textes secondaires sur le fond 4,8:1. */
.demo{display:flex;flex-direction:column;align-items:center;gap:12px}
.tel{width:min(80vw,304px);aspect-ratio:9/19;background:#23282B;border-radius:46px;padding:10px;
  box-shadow:0 34px 60px -24px rgba(60,40,0,.5),0 0 0 1px rgba(0,0,0,.25)}
.tel-ecran{position:relative;width:100%;height:100%;border-radius:36px;overflow:hidden;
  background:var(--fond);container-type:inline-size}
.tel-ecran::before{content:"";position:absolute;top:9px;left:50%;width:9px;height:9px;margin-left:-4.5px;
  border-radius:50%;background:#15181A;z-index:7}
/* Lot 2, A3 : légende placée avant le téléphone (lue avant d'agir), hors de son ombre */
.legende{margin:0;font-size:14px;color:var(--vit-muted);text-align:center;max-width:32ch}

/* Écrans : tailles en em, 1 em = 1/24,6 de la largeur de l'écran (proportions réelles d'un téléphone) */
.ecran{position:absolute;inset:0;overflow-y:auto;font-size:4.07cqw;line-height:1.45;
  display:flex;flex-direction:column;scrollbar-width:none;color:var(--encre);background:var(--fond)}
.ecran::-webkit-scrollbar{display:none}
.ecran.entre{animation:fondu .22s ease-out}
@keyframes fondu{from{opacity:0}to{opacity:1}}

.e-barre{flex:none;background:var(--brun);color:#FFFFFF;padding:2.1em 1em .9em;display:flex;align-items:center;gap:.6em}
.e-barre .mid{flex:1;text-align:center;font-weight:500;font-size:.9em;letter-spacing:.03em;color:var(--or-titre)}
.e-retour,.e-fantome{width:2.4em;height:2.4em;flex:none}
.e-retour{border:0;background:none;color:inherit;display:grid;place-items:center;cursor:pointer;border-radius:.6em;padding:0}
.e-retour svg{width:1.45em;height:1.45em;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.e-fantome{visibility:hidden}

.e-corps{flex:1;display:flex;flex-direction:column;justify-content:center;padding:.4em 0}
.e-part{display:flex;flex-direction:column;align-items:center;text-align:center;gap:.8em;padding:1.1em 1.3em}
.e-part+.e-part{border-top:1px solid var(--filet)}
/* Bouton doré en relief, comme dans l'application */
.e-btn{font:inherit;font-weight:800;font-size:1.02em;letter-spacing:.01em;line-height:1.2;color:var(--texte-or);
  background:linear-gradient(180deg,var(--or-haut),var(--or) 55%,var(--or-bas));
  border:.09em solid var(--or-bord);border-radius:.75em;width:88%;min-height:3.6em;cursor:pointer;display:flex;align-items:center;justify-content:center;
  box-shadow:inset 0 .12em .2em rgba(255,250,230,.8),0 .35em .8em rgba(90,60,0,.22);transition:transform .12s ease}
.e-btn:active{filter:brightness(.96);transform:translateY(1px)}
.e-btn sup{font-size:.62em;margin-left:.12em;line-height:0}
.e-expl{margin:0;font-size:.92em;line-height:1.5;color:var(--corps)}
.e-expl b{color:var(--brun);font-weight:700}
.e-ref{margin:0;font-size:.6em;font-weight:500;line-height:1.5;color:var(--doux)}
.e-pied{flex:none;padding:.8em 1.2em 1.4em;border-top:1px solid var(--filet);text-align:center}
.e-pied p{margin:0;font-size:.58em;font-weight:500;line-height:1.55;color:var(--doux)}

/* Accueil de l'application : moitié haute brune (arche, nom), moitié basse claire (slogan, Commencer) */
.e-accueil{padding:0}
.e-haut{flex:0 0 59%;background:var(--brun);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1.3em;padding-top:1.6em}
.e-arche{display:block;width:46%;height:auto;filter:drop-shadow(0 .4em .7em rgba(40,25,0,.25))}
.e-mot{font-family:var(--font-title);font-weight:800;font-size:3.05em;letter-spacing:-.035em;color:#FFFFFF;line-height:1}
.e-bas-accueil{flex:1;display:flex;flex-direction:column;align-items:center;text-align:center;padding:1.4em 1.2em 1.1em}
.e-slogan{margin:0;font-family:var(--font-title);font-weight:800;font-size:1.22em;letter-spacing:-.01em;color:var(--encre)}
.e-sous{margin:.15em 0 0;font-style:italic;font-size:.95em;color:var(--doux)}
.e-commencer{font:inherit;font-weight:700;font-size:1.06em;margin-top:auto;width:100%;min-height:3.1em;border:0;border-radius:.6em;
  background:var(--encre);color:#FFFFFF;cursor:pointer;transition:transform .12s ease}
.e-commencer:active{transform:translateY(1px);background:#000000}
.e-copy{margin:.9em 0 0;font-size:.56em;font-weight:600;color:var(--doux)}

/* Formation : onglets */
.e-formation{padding-bottom:0}
.e-onglets{flex:none;display:flex;background:var(--carte);border-bottom:1px solid var(--filet)}
.e-onglet{flex:1;font:inherit;font-size:.86em;font-weight:600;color:var(--doux);background:none;border:0;border-bottom:.22em solid transparent;
  padding:.75em 0 .55em;cursor:pointer}
.e-onglet[aria-selected="true"]{color:var(--encre);font-weight:700;border-bottom-color:var(--brun)}
.e-vue{padding:.9em 1em 1em}
.e-nom{font-family:var(--font-title);font-weight:800;font-size:1.3em;letter-spacing:-.02em}
.e-total{display:flex;align-items:baseline;gap:.4em;margin:.1em 0 .3em}
.e-total b{font-family:var(--font-title);font-weight:800;font-size:2.6em;line-height:1}
.e-total span{color:var(--doux);font-weight:600;font-size:.86em}
.e-legende-suivi{display:flex;flex-wrap:wrap;gap:.2em .9em;margin:0 0 .8em;padding:0;list-style:none;font-size:.74em;font-weight:600}
.e-legende-suivi li{display:flex;align-items:center;gap:.35em;margin:0}
.e-legende-suivi i{width:.75em;height:.75em;border-radius:.2em;background:var(--piste)}
.e-legende-suivi i.ok{background:#0E8A4A}.e-legende-suivi i.ko{background:#E5322A}
.e-comp-titre{margin:0 0 .55em;font-size:.74em;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:var(--brun);line-height:1.35}
.e-crit{display:grid;grid-template-columns:1fr auto;align-items:start;gap:.45em .6em;background:var(--carte);border-radius:.7em;
  padding:.65em .8em .75em;margin-bottom:.5em;font-size:.8em;font-weight:600;box-shadow:0 1px 2px rgba(28,28,28,.06)}
.e-crit .n{color:var(--doux);white-space:nowrap}
.e-jauge{grid-column:1/-1;height:.38em;background:var(--piste);border-radius:.2em;overflow:hidden}
.e-jauge i{display:block;height:100%;background:var(--brun);border-radius:.2em}
.e-jauge i.j100{width:100%}.e-jauge i.j70{width:70%}.e-jauge i.j60{width:60%}
.e-eleve{background:var(--carte);border-radius:2em;padding:.6em 1em;display:flex;gap:.7em;align-items:center;font-size:.86em;
  box-shadow:0 1px 3px rgba(28,28,28,.08);margin-bottom:.8em}
.e-eleve b{font-size:.82em;letter-spacing:.1em;color:var(--brun)}
.e-eleve span{font-weight:700}
.e-competence{font:inherit;display:block;width:100%;text-align:left;cursor:pointer;color:#FFFFFF;margin-bottom:.6em;
  background:linear-gradient(180deg,var(--brun-c),var(--brun) 45%,var(--brun-f));border:.08em solid var(--brun-bord);border-radius:.8em;
  padding:.7em 2.2em .75em .9em;position:relative;box-shadow:0 .25em .6em rgba(60,40,0,.25)}
.e-competence::after{content:"";position:absolute;right:1em;top:50%;width:.5em;height:.5em;margin-top:-.4em;
  border-right:.14em solid #FFFFFF;border-bottom:.14em solid #FFFFFF;transform:rotate(45deg)}
.e-competence b{display:block;font-size:1em;font-weight:800}
.e-competence span{display:block;font-size:.8em;line-height:1.35}
.e-actions{display:flex;gap:.6em;flex-wrap:wrap}
.e-pilule{font:inherit;font-size:.78em;font-weight:700;border-radius:2em;padding:.6em 1.1em;cursor:pointer;
  background:var(--carte);color:var(--encre);border:1px solid var(--filet)}
.e-pilule.fonce{background:var(--encre);color:#FFFFFF;border-color:var(--encre)}
.e-vide{margin:2.2em .4em 0;text-align:center;color:var(--doux);font-size:.84em;line-height:1.5}
.e-bas{margin-top:auto;position:sticky;bottom:0;background:var(--fond);border-top:1px solid var(--filet);padding:.7em 1em 1.2em;display:flex;justify-content:center}
.e-bas .e-btn{width:100%;min-height:3.1em}

/* Simulation : écran de départ */
.e-sim{padding:1.9em .55em 1em}
.e-bandeau{flex:none;background:var(--brun);color:#FFFFFF;border-radius:1em;display:flex;align-items:center;gap:.35em;padding:.4em .7em .4em .3em}
.e-mini{display:flex;align-items:center;gap:.4em;font-family:var(--font-title);font-weight:800;font-size:1.02em;letter-spacing:-.02em}
.e-mini svg{width:1.45em;height:1.45em}
.e-bandeau .mid{margin-left:auto;font-size:.5em;font-weight:700;letter-spacing:.08em;text-transform:uppercase;text-align:right;line-height:1.35;max-width:9em}
.e-carte{background:var(--carte);border-radius:1em;margin-top:.6em;padding:1em .9em 1.2em;text-align:center;
  box-shadow:0 1px 2px rgba(23,23,25,.06),0 10px 30px rgba(23,23,25,.07)}
.e-grande{display:block;width:28%;margin:.2em auto .7em}
.e-essai{display:inline-block;background:var(--or);color:var(--texte-or);border-radius:1.25em;padding:.3em .8em;
  font-size:.56em;font-weight:700;letter-spacing:.11em;text-transform:uppercase}
.e-titre{margin:.5em 0 .45em;font-family:var(--font-title);font-size:1.3em;font-weight:800;letter-spacing:-.03em;line-height:1.15}
.e-soul{display:block;width:4em;height:.25em;border-radius:.13em;background:var(--brun);margin:0 auto .75em}
.e-consigne{text-align:left;background:var(--creme);border-radius:.5em;padding:.45em .65em;margin:.38em 0;font-size:.8em;line-height:1.35}
.e-consigne b{color:var(--brun);font-weight:700;margin-right:.3em}
.e-mode-titre{margin:.9em 0 .3em;text-align:left;font-size:.56em;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--doux)}
.e-mode{display:grid;grid-template-columns:1fr 1fr;gap:.4em;margin:0 0 .7em}
.e-opt{font:inherit;font-size:.72em;font-weight:700;letter-spacing:.06em;border:1px solid var(--filet);background:var(--carte);padding:.65em .4em;
  border-radius:.5em;color:var(--doux);cursor:pointer}
.e-opt[aria-pressed="true"]{background:var(--encre);border-color:var(--encre);color:var(--or-titre)}
.e-cta{font:inherit;font-weight:800;font-size:.95em;letter-spacing:.03em;display:flex;align-items:center;justify-content:space-between;width:100%;
  background:linear-gradient(180deg,var(--or-haut),var(--or) 55%,var(--or-bas));color:var(--texte-or);
  border:.09em solid var(--or-bord);border-radius:.7em;padding:.45em .5em .45em 1em;cursor:pointer}
.e-cta svg{width:1.9em;height:1.9em}

.e-toast{position:absolute;left:50%;bottom:4.5cqw;transform:translate(-50%,2cqw);z-index:6;
  background:var(--brun);color:#FFFFFF;font-size:3.3cqw;font-weight:600;line-height:1.35;text-align:center;
  padding:2.6cqw 4cqw;border-radius:3cqw;width:max-content;max-width:86%;
  opacity:0;pointer-events:none;transition:opacity .2s,transform .2s}
.e-toast.on{opacity:1;transform:translate(-50%,0)}
/* Lot 4, étape 2, défaut 5 : l'écran du téléphone garde ses couleurs dans les deux thèmes ; anneau de focus aux couleurs
   de l'application : brun sur l'écran clair (6,7:1), or sur les barres brunes (5,0:1). */
.tel-ecran :focus-visible{outline:3px solid var(--brun);outline-offset:3px}
.tel-ecran :is(.e-barre,.e-bandeau,.e-haut) :focus-visible{outline-color:var(--or-titre)}
.svg-defs{position:absolute;width:0;height:0}
@media (prefers-reduced-motion: reduce){.ecran.entre{animation:none}.e-btn,.e-commencer{transition:none}}
