/* =========================================================
   Pomelia : la démo animée « Voyez Pomelia en action »
   ---------------------------------------------------------
   Six étapes de 20 secondes. Chaque étape a un texte à gauche
   et une scène dessinée à droite ; la barre de chapitres en
   dessous permet de choisir une étape.

   Comment lire ce fichier :
   1. La mise en page (carte, texte, barre de chapitres).
   2. Les scènes : chaque scène est un « plateau » (.st) de
      40 × 32 unités (em). Tout y est placé en em, si bien que
      la scène entière grandit ou rétrécit avec la largeur.
      Ces règles décrivent l'ÉTAT FINAL de chaque scène : c'est
      ce que voient les visiteurs sans animation.
   3. Le mouvement, seulement avec la classe .anim (posée par
      /js/site.js, jamais si « réduire les animations » est
      activé). Les classes .d1 à .d18 donnent le moment, en
      secondes, où un élément apparaît.
   Les écrans dessinés restent clairs en mode sombre, comme l'outil.

   Attention : ce fichier est chargé sur toute la page d'accueil.
   Chaque règle doit donc viser la démo seulement : un nom qui
   commence par .dm- ou .demo, ou une règle précédée de .st.
   Une règle « .q » toute seule a déjà déplacé la frise des
   tarifs, qui utilise aussi la classe q.
   ========================================================= */

/* ---------- 1. Mise en page ---------- */
.demo { background: var(--surface); border: 1px solid var(--ligne); border-radius: 20px; padding: clamp(16px, 3vw, 32px); display: grid; gap: 22px; min-width: 0; }
.demo-scenes { min-width: 0; }
.demo-ecran { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); gap: clamp(20px, 4vw, 48px); align-items: center; }
/* Sans JavaScript, les six scènes s'affichent l'une sous l'autre */
.demo-ecran + .demo-ecran { border-top: 1px solid var(--ligne); padding-top: 28px; margin-top: 28px; }
.js .demo-ecran + .demo-ecran { border-top: 0; padding-top: 0; margin-top: 0; }
.js .demo-ecran[hidden] { display: none; }

.dm-texte { display: grid; gap: 12px; align-content: center; }
.dm-num { font-size: 14px; font-weight: 700; color: var(--pulpe-fonce); }
.dm-texte h3 { font-size: clamp(24px, 2.7vw, 32px); line-height: 1.12; }
.dm-texte p:last-child { color: var(--brume); font-size: 17px; }

/* Barre de chapitres : six segments qui se remplissent pendant l'étape */
.dm-barre { display: flex; align-items: center; gap: 14px; }
html:not(.js) .dm-barre { display: none; }
.dm-chapitres { flex: 1; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.dm-chapitres button { position: relative; font: inherit; color: var(--brume); background: transparent; border: 0; border-top: 4px solid var(--ligne); padding: 10px 2px 0; text-align: left; cursor: pointer; display: flex; gap: 6px; align-items: baseline; min-width: 0; }
.dm-chapitres button i { position: absolute; left: 0; right: 0; top: -4px; height: 4px; background: var(--pulpe); transform-origin: left; transform: scaleX(0); }
.dm-chapitres button[aria-selected="true"] { color: var(--encre); }
.dm-chapitres button:hover { color: var(--encre); border-top-color: var(--brume); }
.dm-chapitres button[aria-selected="true"] i { transform: none; }
.dm-n { font-family: var(--titre); font-weight: 600; font-size: 16px; color: var(--feuille-texte); }
.dm-l { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-chapitres button[aria-selected="true"] .dm-l { font-weight: 700; }
.dm-lecture { font: inherit; font-size: 14px; font-weight: 700; color: var(--feuille-texte); background: transparent; border: 1.5px solid currentColor; border-radius: 999px; padding: 6px 14px; cursor: pointer; flex: none; }

@media (max-width: 860px) {
  .demo-ecran { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .dm-visuel { order: -1; }
  .dm-texte h3 { font-size: 22px; }
  .dm-texte p:last-child { font-size: 16px; }
}
@media (max-width: 600px) {
  .dm-l { display: none; }
  .dm-chapitres button { justify-content: center; }
}

/* ---------- 2. Les scènes (état final) ---------- */
.dm-visuel { container-type: inline-size; min-width: 0; }
.st { position: relative; width: 100%; aspect-ratio: 40 / 32; font-size: 13px; font-size: 2.5cqw; color: #17201C; }
.st > * { position: absolute; margin: 0; }
.st p { margin: 0; }
.st .ico { width: 1.1em; height: 1.1em; flex: none; }

/* Éléments communs */
.dm-fen { background: #FBF5F0; border: .35em solid var(--ecran-bord); border-radius: .9em; padding: 1.2em; display: flex; flex-direction: column; gap: .8em; box-shadow: var(--ombre); }
.dm-pt { font-size: .85em; color: #5E6B65; }
.dm-h { font-family: var(--titre); font-weight: 600; font-size: 1.55em; line-height: 1.1; color: #1F4A3A; }
.dm-chips { display: flex; flex-wrap: wrap; gap: .45em; }
.dm-chips span { font-size: .9em; font-weight: 700; color: #1F4A3A; background: #E2F1E8; border-radius: 999px; padding: .35em .8em; }
.dm-chips span::before { content: "✓ "; }
.dm-bt { display: inline-grid; align-self: flex-start; font-weight: 700; border-radius: .7em; padding: .7em 1.2em; background: #E2F1E8; color: #2B7350; }
.dm-bt > span { grid-area: 1 / 1; display: inline-flex; align-items: center; gap: .4em; white-space: nowrap; }
.dm-bt .avant { visibility: hidden; color: #FBF5F0; }
.dm-curseur { display: none; width: 1.5em; height: 2.1em; z-index: 5; filter: drop-shadow(0 0 .1em #FFFFFF) drop-shadow(0 .2em .3em rgba(0,0,0,.3)); }
.dm-curseur::before { content: ""; position: absolute; inset: 0; background: #17201C; clip-path: polygon(0 0, 0 78%, 22% 62%, 38% 100%, 55% 92%, 40% 56%, 72% 56%); }
.dm-tel { background: #FBF5F0; border: .4em solid var(--ecran-bord); border-radius: 2em; overflow: hidden; box-shadow: var(--ombre); }
.dm-cse { font-size: .75em; font-weight: 700; color: #1F4A3A; }
.dm-ok { display: inline-flex; align-items: center; gap: .4em; font-size: .95em; font-weight: 700; color: #2B7350; background: #E2F1E8; border-radius: 999px; padding: .5em 1em; }

/* Étape 1 : lancer le questionnaire */
.st .f1 { left: 0; top: 0; width: 27em; height: 21em; }
.st .f1 .dm-bt { margin-top: auto; }
.dm-dates { font-size: .95em; border-top: 1px solid #E6DCD3; padding-top: .7em; }
.st1 .dm-affiche { left: 28.2em; top: 2.5em; width: 11.3em; height: 16em; transform: rotate(3deg); }
.dm-affiche { background: #FBF5F0; border: 1px solid #E6DCD3; border-radius: .4em; box-shadow: var(--ombre); padding: 1em; display: flex; flex-direction: column; gap: .5em; }
.dm-affiche .dm-h { font-size: 1.2em; }
.dm-affiche img { width: 5.5em; height: auto; image-rendering: pixelated; }
.dm-mail { left: 13em; top: 22.5em; width: 21em; background: #FFFFFF; border: 1px solid #E6DCD3; border-radius: .8em; box-shadow: var(--ombre); padding: 1em; display: grid; gap: .5em; }
.dm-objet { font-weight: 700; font-size: .95em; }
.dm-mail i, .dm-note i, .dm-page i { display: block; height: .4em; border-radius: .2em; background: #E6DCD3; }
.st i.court { width: 60%; }
.st1 .dm-ok { left: 0; top: 23.6em; }
.st .c1 { left: 9em; top: 18.2em; }

/* Étape 2 : les salariés répondent */
.st2 .dm-tel { left: 2em; top: 0; width: 15.5em; height: 31.5em; }
.st .q { position: absolute; inset: 2.2em 1.1em 1.2em; display: flex; flex-direction: column; gap: .8em; }
.st .q2, .st .q3 { visibility: hidden; }
.dm-jauge { height: .35em; border-radius: .2em; background: #E6DCD3; overflow: hidden; }
.dm-jauge i { display: block; height: 100%; width: 18%; background: #1F4A3A; border-radius: .2em; }
.dm-jauge.j2 i { width: 50%; }
.dm-q { font-family: var(--titre); font-weight: 600; font-size: 1.3em; line-height: 1.2; color: #1F4A3A; }
.dm-opts { display: grid; gap: .45em; }
.dm-opts span { position: relative; border: 1px solid #E6DCD3; background: #FFFFFF; border-radius: .7em; padding: .55em .7em; font-size: .9em; }
.dm-opts .sel { background: #1F4A3A; color: #FBF5F0; border-color: #1F4A3A; font-weight: 700; }
.dm-opts .sel::after { content: ""; position: absolute; right: .8em; top: 50%; width: 2em; height: 2em; margin-top: -1em; border-radius: 50%; background: rgba(227,233,140,.75); opacity: 0; }
.st .q3 { justify-content: center; text-align: center; align-items: center; }
.dm-merci { font-family: var(--titre); font-weight: 600; font-size: 2.4em; color: #1F4A3A; }
.dm-urg { font-size: .75em; background: #A3262A; color: #FFFFFF; border-radius: .3em; padding: .3em .6em; }
.dm-compteur { left: 20em; top: 3em; width: 19.5em; background: #FFFFFF; border: 1px solid #E6DCD3; border-radius: 1em; box-shadow: var(--ombre); padding: 1.3em; display: grid; gap: .55em; }
.dm-grand { font-family: var(--titre); font-weight: 600; font-size: 4em; line-height: 1; color: #1F4A3A; font-variant-numeric: tabular-nums; }
.dm-prog { height: .7em; border-radius: .35em; background: #E6DCD3; overflow: hidden; }
.dm-prog i { display: block; width: 60%; height: 100%; background: #2B7350; }
.st2 .dm-chips { left: 20em; top: 18em; width: 19.5em; }

/* Étape 3 : l'anonymat et la règle des 10 */
.dm-groupe { background: #FBF5F0; border: 1px solid #E6DCD3; border-radius: 1em; box-shadow: var(--ombre); padding: 1.3em; display: flex; flex-direction: column; gap: .8em; }
.dm-gt { font-family: var(--titre); font-weight: 600; font-size: 1.5em; color: #1F4A3A; }
.st .dm-rep { left: 0; top: 1em; width: 18.5em; height: 16.5em; }
.dm-sans { display: grid; gap: .6em; margin-top: .3em; }
.dm-sans p { display: flex; justify-content: space-between; gap: .5em; border-bottom: 1px dashed #E6DCD3; padding-bottom: .5em; }
.dm-sans span { font-weight: 700; color: #2B7350; }
.st .g1 { left: 20.5em; top: 1em; width: 19.5em; height: 16.5em; }
.dm-pts { display: grid; grid-template-columns: repeat(5, 2.1em); gap: .7em; }
.dm-pts i { width: 2.1em; height: 2.1em; border-radius: 50%; background: #1F4A3A; }
.dm-masque { display: inline-flex; align-items: center; gap: .5em; align-self: flex-start; font-size: .95em; font-weight: 700; color: #5E6B65; background: #F4ECE5; border-radius: .6em; padding: .5em .8em; }
.st .g1 .dm-masque, .st .g1 .dm-score { position: absolute; left: 1.3em; bottom: 1.3em; }
.st .g1 .dm-masque { visibility: hidden; }
.dm-score { display: flex; align-items: baseline; gap: .5em; }
.dm-score b { font-family: var(--titre); font-weight: 600; font-size: 3em; line-height: 1; color: #2B7350; }
.dm-score span { font-size: .95em; color: #5E6B65; }
.dm-vue { top: 19.5em; width: 19.25em; height: 11.5em; border: 1px solid #E6DCD3; border-radius: 1em; padding: 1.3em; display: flex; flex-direction: column; justify-content: center; gap: .5em; box-shadow: var(--ombre); }
.dm-v { display: flex; align-items: center; gap: .4em; font-family: var(--titre); font-weight: 600; font-size: 1.45em; line-height: 1.15; }
.st .v-oui { left: 0; background: #E2F1E8; border-color: #BFDCCB; }
.v-oui .dm-v { color: #2B7350; }
.st .v-non { left: 20.75em; background: #F4ECE5; }
.v-non .dm-v { color: #5E6B65; }

/* Étape 4 : les résultats et où agir */
.st .f4 { left: 0; top: 0; width: 40em; height: 31.5em; }
.dm-tuiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7em; }
.dm-tuiles div { background: #FFFFFF; border: 1px solid #E6DCD3; border-radius: .7em; padding: .6em .9em; display: grid; }
.dm-tuiles b { font-family: var(--titre); font-weight: 600; font-size: 2em; line-height: 1.05; color: #1F4A3A; }
.dm-tuiles em { font-style: normal; font-size: .5em; color: #2B7350; vertical-align: middle; }
.dm-tuiles span { font-size: .8em; color: #5E6B65; }
.dm-carte { display: grid; grid-template-columns: 9em repeat(3, minmax(0, 1fr)); gap: .35em; font-variant-numeric: tabular-nums; }
.dm-carte .col { font-size: .72em; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #5E6B65; text-align: center; align-self: end; }
.dm-carte .lig { font-weight: 700; font-size: .95em; align-self: center; }
.dm-carte b { display: grid; place-items: center; min-height: 2.5em; border-radius: .4em; font-family: var(--titre); font-weight: 600; font-size: 1.25em; }
.dm-carte .f { background: #E2F1E8; color: #2B7350; }
.dm-carte .s { background: #FBEFDC; color: #9A5B0F; }
.dm-carte .a { background: #F8E1DF; color: #A3262A; box-shadow: inset 0 0 0 .14em #A3262A; }
.dm-carte .alerte { position: relative; z-index: 1; } /* passe devant ses voisines quand elle grossit */
.dm-bulle { left: 1.6em; top: 27.2em; width: 36.8em; font-size: 1em; font-weight: 700; color: #A3262A; background: #F8E1DF; border-radius: .6em; padding: .55em .9em; }

/* Étape 5 : le kit du mois */
.dm-panneau { left: 0; top: 0; width: 23em; height: 22em; background: #E9DCCB; border: .5em solid #CDB79E; border-radius: .6em; padding: .8em 1em; box-shadow: var(--ombre); }
.dm-panneau .dm-pt { color: #6B5A48; font-weight: 700; }
.dm-affiche.a5 { position: absolute; left: 5.5em; top: 2.6em; width: 11em; height: 15.5em; background: #E3E98C; border: 0; transform: rotate(-2deg); }
.dm-affiche.a5::before { content: ""; position: absolute; left: 50%; top: -.5em; width: 1.1em; height: 1.1em; margin-left: -.55em; border-radius: 50%; background: #E8606E; box-shadow: 0 .15em .2em rgba(0,0,0,.3); }
.dm-mois { font-size: .7em; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #1F4A3A; }
.dm-affiche.a5 .dm-h { color: #17201C; }
.dm-affiche.a5 i { display: block; height: .4em; border-radius: .2em; background: rgba(23,32,28,.18); }
.st5 .dm-tel { left: 25em; top: 0; width: 15em; height: 25em; padding: 1.6em .9em; display: flex; flex-direction: column; gap: .7em; }
.dm-notif { background: #FFFFFF; border: 1px solid #E6DCD3; border-radius: .7em; padding: .7em; display: grid; gap: .2em; font-size: .85em; box-shadow: 0 .2em .5em rgba(23,32,28,.08); }
.dm-notif b { color: #1F4A3A; }
.dm-note { left: 1em; top: 23.6em; width: 17em; height: 7.6em; background: #FFFFFF; border: 1px solid #E6DCD3; border-radius: .5em; box-shadow: var(--ombre); padding: .9em; display: grid; gap: .45em; align-content: start; }
.dm-suivant { left: 21.5em; top: 27.4em; font-size: .95em; font-weight: 700; color: #FBF5F0; background: #1F4A3A; border-radius: 999px; padding: .55em 1em; }

/* Étape 6 : la réunion et le suivi */
.dm-diapo { left: 0; top: 0; width: 23em; height: 13em; background: #1F4A3A; color: #FBF5F0; border-radius: .6em; padding: 1.1em; display: flex; flex-direction: column; gap: .4em; box-shadow: var(--ombre); }
.dm-diapo .dm-pt { color: #B9CBC2; }
.dm-diapo .dm-h { color: #FBF5F0; font-size: 1.35em; }
.dm-barres { margin-top: auto; height: 5em; display: flex; align-items: flex-end; gap: 1em; }
.dm-barres i { flex: 1; height: 50%; background: #E3E98C; border-radius: .2em .2em 0 0; }
.dm-barres .h64 { height: 64%; } .dm-barres .h55 { height: 55%; } .dm-barres .h71 { height: 71%; } .dm-barres .h50 { height: 50%; }
.dm-barres .vig { background: #E8606E; }
.dm-suivi { left: 24.5em; top: 0; width: 15.5em; height: 13em; background: #FFFFFF; border: 1px solid #E6DCD3; border-radius: .8em; box-shadow: var(--ombre); padding: 1em; display: flex; flex-direction: column; gap: .3em; }
.dm-courbe { width: 100%; height: auto; }
.dm-courbe .axe { stroke: #E6DCD3; stroke-width: 1.5; fill: none; }
.dm-courbe .ligne { stroke: #2B7350; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; fill: none; stroke-dasharray: 120; }
.dm-courbe circle { fill: #2B7350; }
.dm-gain { font-family: var(--titre); font-weight: 600; font-size: 1.4em; color: #1F4A3A; }
.dm-gain span { font-family: var(--texte); font-size: .6em; font-weight: 700; color: #2B7350; background: #E2F1E8; border-radius: 999px; padding: .15em .5em; vertical-align: middle; }
.dm-actions { left: 0; top: 14.5em; width: 40em; height: 17em; background: #FBF5F0; border: .35em solid var(--ecran-bord); border-radius: .9em; padding: 1em 1.2em; display: flex; flex-direction: column; gap: .55em; box-shadow: var(--ombre); }
.dm-actions > div { display: flex; justify-content: space-between; align-items: center; gap: 1em; background: #FFFFFF; border: 1px solid #E6DCD3; border-radius: .6em; padding: .5em .5em .5em .8em; font-size: .95em; }
.dm-actions .dm-bt { font-size: .85em; padding: .45em .8em; }
.st .c6 { position: absolute; left: 33em; top: 4.2em; }

/* ---------- 3. Le mouvement ---------- */
@keyframes dm-apparait { from { opacity: 0; translate: 0 .8em; } }
@keyframes dm-glisse { from { opacity: 0; translate: 0 3em; } }
@keyframes dm-vole { from { opacity: 0; translate: 16em -8em; rotate: 25deg; } }
@keyframes dm-fondu { from { opacity: 0; } }
@keyframes dm-efface { to { opacity: 0; visibility: hidden; } }
@keyframes dm-bouton { from { background: #1F4A3A; } }
@keyframes dm-choisit { from { background: #FFFFFF; color: #17201C; border-color: #E6DCD3; font-weight: 400; } }
@keyframes dm-tap { 0% { opacity: 0; scale: 1.8; } 40% { opacity: 1; scale: 1; } 100% { opacity: 0; scale: 1; } }
@keyframes dm-remplit { from { width: 0; } }
@keyframes dm-monte { from { height: 0; } }
@keyframes dm-trace { from { stroke-dashoffset: 120; } }
@keyframes dm-alerte { 50% { scale: 1.12; box-shadow: inset 0 0 0 .14em #A3262A, 0 0 0 .35em rgba(163,38,42,.25); } }
@keyframes dm-progres { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes dm-q1 { 0%, 31% { visibility: visible; opacity: 1; translate: 0 0; } 33%, 100% { visibility: hidden; opacity: 0; translate: -3em 0; } }
@keyframes dm-q2 { 0%, 32% { visibility: hidden; opacity: 0; translate: 3em 0; } 35%, 62% { visibility: visible; opacity: 1; translate: 0 0; } 64%, 100% { visibility: hidden; opacity: 0; translate: -3em 0; } }
@keyframes dm-q3 { 0%, 64% { visibility: hidden; opacity: 0; } 67%, 100% { visibility: visible; opacity: 1; } }
/* Curseur de l'étape 1 : arrive sur « Lancer », clique vers 9 s, repart */
@keyframes dm-c1 { 0%, 31% { opacity: 0; translate: 12em 9em; } 34% { opacity: 1; } 44% { translate: 0 0; scale: 1; } 45.5% { scale: .8; } 47% { scale: 1; } 56% { opacity: 1; translate: 0 0; } 62%, 100% { opacity: 0; translate: 5em 4em; } }
/* Curseur de l'étape 6 : ajoute les trois actions à l'ordre du jour (7 s, 8,2 s, 9,4 s) */
@keyframes dm-c6 { 0%, 27% { opacity: 0; translate: 4em 9em; } 30% { opacity: 1; } 34% { translate: 0 0; scale: 1; } 35% { scale: .8; } 36% { scale: 1; translate: 0 0; } 40% { translate: 0 3.05em; scale: 1; } 41% { scale: .8; } 42% { scale: 1; translate: 0 3.05em; } 46% { translate: 0 6.1em; scale: 1; } 47% { scale: .8; } 48% { scale: 1; } 54% { opacity: 1; translate: 0 6.1em; } 60%, 100% { opacity: 0; translate: 4em 10em; } }

/* Rien ne bouge quand la démo n'est pas à l'écran, ni pendant la pause (pseudo-éléments compris) */
.anim .demo:not(.vue) .demo-ecran *, .anim .demo:not(.vue) .demo-ecran *::before, .anim .demo:not(.vue) .demo-ecran *::after, .anim .demo:not(.vue) .dm-chapitres i,
.anim .demo.pause .demo-ecran *, .anim .demo.pause .demo-ecran *::before, .anim .demo.pause .demo-ecran *::after, .anim .demo.pause .dm-chapitres i { animation-play-state: paused !important; }

/* Apparitions : .ap (fondu), .gl (glisse du bas), .vole (affiche épinglée) ; .d1 à .d18 = moment en secondes */
.anim .demo-ecran:not([hidden]) .ap { animation: dm-apparait .6s ease both; }
.anim .demo-ecran:not([hidden]) .gl { animation: dm-glisse .9s cubic-bezier(.2, .8, .2, 1) both; }
.anim .demo-ecran:not([hidden]) .vole { animation: dm-vole 1.2s cubic-bezier(.2, .8, .2, 1) both; }
.anim .demo-ecran:not([hidden]) .d0 { animation-delay: .2s; }
.anim .demo-ecran:not([hidden]) .d1 { animation-delay: 1s; }
.anim .demo-ecran:not([hidden]) .d2 { animation-delay: 2s; }
.anim .demo-ecran:not([hidden]) .d3 { animation-delay: 3s; }
.anim .demo-ecran:not([hidden]) .d4 { animation-delay: 4s; }
.anim .demo-ecran:not([hidden]) .d5 { animation-delay: 5s; }
.anim .demo-ecran:not([hidden]) .d6 { animation-delay: 6s; }
.anim .demo-ecran:not([hidden]) .d7 { animation-delay: 7s; }
.anim .demo-ecran:not([hidden]) .d8 { animation-delay: 8s; }
.anim .demo-ecran:not([hidden]) .d9 { animation-delay: 9s; }
.anim .demo-ecran:not([hidden]) .d11 { animation-delay: 11s; }
.anim .demo-ecran:not([hidden]) .d12 { animation-delay: 12s; }
.anim .demo-ecran:not([hidden]) .d13 { animation-delay: 13s; }
.anim .demo-ecran:not([hidden]) .d15 { animation-delay: 15s; }
.anim .demo-ecran:not([hidden]) .d16 { animation-delay: 16s; }

/* Étape 1 */
.anim .demo-ecran:not([hidden]) .c1 { display: block; animation: dm-c1 20s linear both; }
.anim .demo-ecran:not([hidden]) .b1 { animation: dm-bouton .3s 9.2s both; }
.anim .demo-ecran:not([hidden]) .b1 .avant { visibility: visible; animation: dm-efface .2s 9.2s both; }
.anim .demo-ecran:not([hidden]) .b1 .apres { animation: dm-fondu .4s 9.4s both; }

/* Étape 2 */
.anim .demo-ecran:not([hidden]) .q1 { animation: dm-q1 20s linear both; }
.anim .demo-ecran:not([hidden]) .q2 { animation: dm-q2 20s linear both; }
.anim .demo-ecran:not([hidden]) .q3 { animation: dm-q3 20s linear both; }
.anim .demo-ecran:not([hidden]) .s1 { animation: dm-choisit .35s 3.2s both; }
.anim .demo-ecran:not([hidden]) .s2 { animation: dm-choisit .35s 10s both; }
.anim .demo-ecran:not([hidden]) .s1::after { animation: dm-tap .8s 2.8s both; }
.anim .demo-ecran:not([hidden]) .s2::after { animation: dm-tap .8s 9.6s both; }
.anim .demo-ecran:not([hidden]) .q1 .dm-jauge i { animation: dm-remplit 1s 3.6s ease both; }
.anim .demo-ecran:not([hidden]) .dm-prog i { animation: dm-remplit 16s 1s cubic-bezier(.3, .6, .4, 1) both; }
/* Le nombre de réponses (138) suit cette barre : voir « compteur » dans /js/site.js */

/* Étape 3 : une réponse sans nom ; neuf réponses, puis la dixième débloque le résultat ; ce que chacun voit */
.anim .demo-ecran:not([hidden]) .g1 .dm-masque { visibility: visible; animation: dm-efface .3s 10.6s both; }
.anim .demo-ecran:not([hidden]) .dm-pts .dix { animation: dm-apparait .5s 10.8s both; }
.anim .demo-ecran:not([hidden]) .dm-score { animation: dm-apparait .6s 11.4s both; }

/* Étape 4 : la case rouge attire l'œil */
.anim .demo-ecran:not([hidden]) .dm-carte .alerte { animation: dm-apparait .6s 5s both, dm-alerte 1.1s 9.5s 3; }

/* Étape 6 */
.anim .demo-ecran:not([hidden]) .dm-barres i { animation: dm-monte 1s ease both; }
.anim .demo-ecran:not([hidden]) .dm-barres i:nth-child(1) { animation-delay: .8s; }
.anim .demo-ecran:not([hidden]) .dm-barres i:nth-child(2) { animation-delay: 1.1s; }
.anim .demo-ecran:not([hidden]) .dm-barres i:nth-child(3) { animation-delay: 1.4s; }
.anim .demo-ecran:not([hidden]) .dm-barres i:nth-child(4) { animation-delay: 1.7s; }
.anim .demo-ecran:not([hidden]) .c6 { display: block; animation: dm-c6 20s linear both; }
.anim .demo-ecran:not([hidden]) .b2 { animation: dm-bouton .3s 7.1s both; }
.anim .demo-ecran:not([hidden]) .b3 { animation: dm-bouton .3s 8.3s both; }
.anim .demo-ecran:not([hidden]) .b4 { animation: dm-bouton .3s 9.5s both; }
.anim .demo-ecran:not([hidden]) .b2 .avant { visibility: visible; animation: dm-efface .2s 7.1s both; }
.anim .demo-ecran:not([hidden]) .b3 .avant { visibility: visible; animation: dm-efface .2s 8.3s both; }
.anim .demo-ecran:not([hidden]) .b4 .avant { visibility: visible; animation: dm-efface .2s 9.5s both; }
.anim .demo-ecran:not([hidden]) .b2 .apres { animation: dm-fondu .3s 7.3s both; }
.anim .demo-ecran:not([hidden]) .b3 .apres { animation: dm-fondu .3s 8.5s both; }
.anim .demo-ecran:not([hidden]) .b4 .apres { animation: dm-fondu .3s 9.7s both; }
.anim .demo-ecran:not([hidden]) .dm-courbe .ligne { animation: dm-trace 2s 14s ease both; }
.anim .demo-ecran:not([hidden]) .dm-courbe circle { animation: dm-fondu .3s both; }
.anim .demo-ecran:not([hidden]) .dm-courbe circle:nth-of-type(1) { animation-delay: 14s; }
.anim .demo-ecran:not([hidden]) .dm-courbe circle:nth-of-type(2) { animation-delay: 14.9s; }
.anim .demo-ecran:not([hidden]) .dm-courbe circle:nth-of-type(3) { animation-delay: 15.8s; }

/* Barre de chapitres : le segment de l'étape en cours se remplit en 20 s */
.anim .dm-chapitres button[aria-selected="true"] i { animation: dm-progres 20s linear both; }
