/* ONLY STREAM — wiki (/aide), démarrage guidé (/demarrage) et leurs
 * illustrations animées (src/illustrations.js). Chargée en plus de site.css,
 * seulement sur ces pages. Mêmes règles : mobile d'abord, aucune page qui
 * défile en largeur, animations figées pour qui en demande moins. */

/* ── Wiki : accueil ─────────────────────────────────────────────────────── */
.aide-heros { position: relative; padding: 28px 0 18px; text-align: center; }
.aide-heros h1 { margin: 0 auto .35em; max-width: 18ch; font-size: clamp(1.9rem, 6vw, 3rem); line-height: 1.1; background: linear-gradient(120deg, #fff 30%, #c4b5fd 60%, var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.aide-heros .chapeau { margin: 0 auto 22px; }
.aide-populaires { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 16px 0 0; color: var(--doux); font-size: .9rem; }
.aide-populaires > span { align-self: center; }
.aide-populaires a { padding: 6px 12px; border: 1px solid var(--bord-2); border-radius: 999px; color: var(--texte); text-decoration: none; transition: border-color var(--tempo), background var(--tempo), transform var(--tempo); }
.aide-populaires a:hover { border-color: var(--violet); background: rgba(168, 85, 247, .1); transform: translateY(-1px); }

.aide-recherche { position: relative; max-width: 640px; margin: 0 auto; text-align: left; }
.aide-recherche__champ { display: flex; align-items: center; gap: 10px; padding: 0 16px; border: 1px solid var(--bord-2); border-radius: 16px; background: rgba(10, 10, 18, .7); box-shadow: 0 10px 34px rgba(0, 0, 0, .35); transition: border-color var(--tempo), box-shadow var(--tempo); }
.aide-recherche__champ:focus-within { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(168, 85, 247, .18), 0 10px 34px rgba(0, 0, 0, .35); }
.aide-recherche__champ .icone { flex: none; width: 20px; height: 20px; color: var(--doux); }
.aide-recherche__champ input { flex: 1; min-width: 0; min-height: 54px; border: 0; background: transparent; color: var(--texte); font: inherit; font-size: 16px; outline: none; }
.aide-resultats { position: absolute; z-index: 20; top: calc(100% + 8px); left: 0; right: 0; max-height: 60vh; margin: 0; padding: 6px; overflow: auto; list-style: none; border: 1px solid var(--bord-2); border-radius: 16px; background: var(--panneau); box-shadow: var(--ombre); animation: aide-apparait .18s ease; }
.aide-resultats[hidden] { display: none; }
.aide-resultats a { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; color: var(--texte); text-decoration: none; }
.aide-resultats a:hover, .aide-resultats a.est-choisi { background: rgba(168, 85, 247, .14); }
.aide-resultats a span:last-child { color: var(--doux); font-size: .88rem; }
.aide-resultats__cat { color: var(--cyan); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.aide-resultats__vide { padding: 12px; color: var(--doux); }
@keyframes aide-apparait { from { opacity: 0; transform: translateY(-4px); } }

.aide-une { display: grid; gap: 22px; align-items: center; margin: 28px 0; padding: 22px; border: 1px solid rgba(168, 85, 247, .3); border-radius: var(--rayon-l); background: linear-gradient(135deg, rgba(168, 85, 247, .12), rgba(34, 211, 238, .05)); }
.aide-une h2 { margin: 0 0 .4em; font-size: 1.6rem; }
.aide-une p { color: var(--doux); }
.aide-une__boutons { display: flex; flex-wrap: wrap; gap: 10px; }
.aide-une .ill { margin: 0; }
@media (min-width: 900px) { .aide-une { grid-template-columns: 1fr 1.1fr; padding: 30px; } }

.aide-categories { display: grid; gap: 16px; }
@media (min-width: 700px) { .aide-categories { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .aide-categories { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.aide-categorie { padding: 20px; border: 1px solid var(--bord); border-radius: var(--rayon-l); background: var(--panneau); transition: border-color var(--tempo), transform var(--tempo); }
.aide-categorie:hover { border-color: rgba(168, 85, 247, .45); transform: translateY(-2px); }
.aide-categorie__titre { display: flex; align-items: center; gap: 10px; margin: 0 0 4px; font-size: 1.12rem; }
.aide-categorie__icone { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: linear-gradient(140deg, rgba(168, 85, 247, .35), rgba(34, 211, 238, .2)); }
.aide-categorie__icone .icone { width: 20px; height: 20px; }
.aide-categorie .doux { margin: 0 0 10px; font-size: .9rem; }
.aide-categorie ul { margin: 0; padding: 0; list-style: none; }
.aide-categorie li + li { border-top: 1px solid var(--bord); }
.aide-categorie a { display: grid; gap: 2px; padding: 10px 0; color: var(--texte); text-decoration: none; }
.aide-categorie a strong { font-weight: 600; }
.aide-categorie a span { color: var(--doux); font-size: .86rem; }
.aide-categorie a:hover strong { color: #d8b4fe; }

/* ── Wiki : article ─────────────────────────────────────────────────────── */
.aide-mise { display: grid; gap: 24px; }
.aide-mise__cote .aide-recherche { margin-bottom: 12px; }
.aide-mise__cote .aide-recherche__champ input { min-height: 46px; }
.aide-mise__menu { border: 1px solid var(--bord); border-radius: var(--rayon); background: var(--panneau); }
.aide-mise__menu > summary { padding: 12px 14px; font-weight: 700; cursor: pointer; }
.aide-nav { padding: 0 8px 10px; }
.aide-nav__groupe + .aide-nav__groupe { margin-top: 8px; }
.aide-nav__titre { display: flex; align-items: center; gap: 8px; margin: 6px 6px 4px; color: var(--doux); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.aide-nav__titre .icone { width: 15px; height: 15px; }
.aide-nav ul { margin: 0; padding: 0; list-style: none; }
.aide-nav a { display: block; padding: 7px 10px; border-radius: 10px; color: var(--texte); font-size: .9rem; text-decoration: none; }
.aide-nav a:hover { background: rgba(255, 255, 255, .05); }
.aide-nav a[aria-current="page"] { background: rgba(168, 85, 247, .16); color: #e9d5ff; font-weight: 600; box-shadow: inset 3px 0 0 var(--violet); }
@media (max-width: 899px) { .aide-mise__menu:not([open]) { margin-bottom: 0; } }
@media (min-width: 900px) {
  .aide-mise { grid-template-columns: 270px minmax(0, 1fr); align-items: start; }
  .aide-mise__cote { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow: auto; }
}

.aide-article { min-width: 0; }
.aide-fil { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 14px; color: var(--doux); font-size: .88rem; }
.aide-fil a { color: var(--cyan); }
.aide-article__tete { margin-bottom: 22px; }
.aide-article__icone { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 12px; border-radius: 16px; background: linear-gradient(140deg, var(--violet), var(--violet-2)); box-shadow: 0 10px 30px rgba(168, 85, 247, .35); }
.aide-article__icone .icone { width: 26px; height: 26px; }
.aide-article h1 { margin: 0 0 .3em; font-size: clamp(1.7rem, 5vw, 2.4rem); line-height: 1.15; }
.aide-article .chapeau { margin: 0 0 12px; }
.aide-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0; color: var(--doux); font-size: .88rem; }
.aide-meta > .icone { width: 16px; height: 16px; }
.aide-meta .bouton { margin-left: auto; }

.aide-sommaire { margin: 0 0 24px; padding: 14px 18px; border: 1px solid var(--bord); border-left: 3px solid var(--cyan); border-radius: 12px; background: rgba(34, 211, 238, .04); }
.aide-sommaire p { margin: 0 0 6px; color: var(--cyan); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.aide-sommaire ol { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.aide-sommaire li::before { content: "→ "; color: var(--cyan); }
.aide-sommaire a { color: var(--texte); }

.aide-contenu { font-size: 1.02rem; line-height: 1.7; }
.aide-contenu > p { margin: 0 0 1em; color: #d9d6ea; }
.aide-contenu h2 { scroll-margin-top: 90px; margin: 1.8em 0 .6em; font-size: 1.35rem; }
.aide-contenu code { padding: 2px 6px; border: 1px solid var(--bord-2); border-radius: 6px; background: rgba(255, 255, 255, .05); font-size: .88em; }
.aide-contenu a { color: var(--cyan); }
.aide-contenu strong { color: #fff; }

.aide-etapes { counter-reset: none; margin: 0 0 1.2em; padding: 0; list-style: none; }
.aide-etapes > li { position: relative; display: flex; gap: 14px; padding: 0 0 16px; }
.aide-etapes > li:not(:last-child)::before { content: ""; position: absolute; left: 15px; top: 34px; bottom: 2px; width: 2px; background: linear-gradient(var(--violet), transparent); opacity: .5; }
.aide-etapes__num { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(140deg, var(--violet), var(--violet-2)); color: #fff; font-weight: 800; font-size: .9rem; box-shadow: 0 6px 18px rgba(168, 85, 247, .35); }
.aide-etapes > li > span:last-child { padding-top: 4px; min-width: 0; }
.aide-etapes--compactes > li { padding-bottom: 8px; }
.aide-etapes--compactes > li::before { display: none; }

.aide-liste { margin: 0 0 1.2em; padding: 0; list-style: none; }
.aide-liste li { position: relative; padding: 0 0 8px 26px; }
.aide-liste li::before { content: ""; position: absolute; left: 6px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px rgba(34, 211, 238, .6); }

.aide-encart { display: flex; gap: 14px; margin: 0 0 1.4em; padding: 14px 16px; border: 1px solid; border-radius: 14px; }
.aide-encart p { margin: 2px 0 0; }
.aide-encart__icone { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; }
.aide-encart__icone .icone { width: 18px; height: 18px; }
.aide-encart--astuce { border-color: rgba(168, 85, 247, .4); background: rgba(168, 85, 247, .08); }
.aide-encart--astuce .aide-encart__icone { background: rgba(168, 85, 247, .25); color: #e9d5ff; }
.aide-encart--attention { border-color: rgba(255, 180, 90, .45); background: rgba(255, 180, 90, .07); }
.aide-encart--attention .aide-encart__icone { background: rgba(255, 180, 90, .2); color: #ffd29a; }
.aide-encart--info { border-color: rgba(34, 211, 238, .4); background: rgba(34, 211, 238, .06); }
.aide-encart--info .aide-encart__icone { background: rgba(34, 211, 238, .2); color: var(--cyan); }

.aide-tableau { width: 100%; margin: 0 0 1.4em; border-collapse: collapse; font-size: .95rem; }
.aide-tableau th, .aide-tableau td { padding: 10px 12px; border-bottom: 1px solid var(--bord); text-align: left; vertical-align: top; }
.aide-tableau thead th { color: var(--doux); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
.aide-tableau tbody th { color: #fff; font-weight: 600; white-space: nowrap; }
.aide-tableau tbody tr:hover { background: rgba(255, 255, 255, .02); }

.aide-image, .aide-video { margin: 0 0 1.6em; }
.aide-image__lien { display: block; overflow: hidden; border: 1px solid var(--bord-2); border-radius: 14px; box-shadow: var(--ombre); cursor: zoom-in; }
.aide-image img, .aide-video video { display: block; width: 100%; height: auto; background: var(--fond-2); transition: transform .5s cubic-bezier(.22, 1, .36, 1); }
.aide-image__lien:hover img { transform: scale(1.015); }
.aide-video video { border: 1px solid var(--bord-2); border-radius: 14px; box-shadow: var(--ombre); }
.aide-image figcaption, .aide-video figcaption, .ill figcaption { margin-top: 8px; color: var(--doux); font-size: .88rem; text-align: center; }
.aide-image--illus { margin: 0; }

.aide-faq { margin-bottom: 1.4em; }
.aide-faq .faq__item p { color: #d9d6ea; }

.aide-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin: 32px 0 18px; padding: 18px 20px; border: 1px solid rgba(168, 85, 247, .35); border-radius: var(--rayon-l); background: linear-gradient(120deg, rgba(168, 85, 247, .14), rgba(34, 211, 238, .06)); }
.aide-cta p { margin: 2px 0 0; color: var(--doux); }
.aide-suite { display: grid; gap: 12px; }
@media (min-width: 640px) { .aide-suite { grid-template-columns: 1fr 1fr; } }
.aide-suite__lien { display: grid; gap: 2px; padding: 14px 16px; border: 1px solid var(--bord); border-radius: 14px; color: var(--texte); text-decoration: none; transition: border-color var(--tempo); }
.aide-suite__lien span { color: var(--doux); font-size: .82rem; }
.aide-suite__lien:hover { border-color: var(--violet); }
.aide-suite__lien--apres { text-align: right; }

/* ── Illustrations animées ──────────────────────────────────────────────── */
.ill { margin: 0 0 1.6em; }
.ill__scene { position: relative; overflow: hidden; aspect-ratio: 16 / 10; border: 1px solid var(--bord-2); border-radius: 18px; background: radial-gradient(120% 90% at 20% 0%, rgba(168, 85, 247, .22), transparent 60%), radial-gradient(90% 80% at 100% 100%, rgba(34, 211, 238, .14), transparent 60%), #0b0b15; box-shadow: var(--ombre); font-size: clamp(7px, 1.25vw, 12px); line-height: 1.3; }
.ill__scene *, .ill__scene *::before, .ill__scene *::after { animation-duration: 10s; animation-iteration-count: infinite; animation-timing-function: cubic-bezier(.45, 0, .25, 1); }
.ill--pause .ill__scene *, .ill--pause .ill__scene *::before { animation-play-state: paused; }
.ill .icone { width: 1.3em; height: 1.3em; flex: none; }

.ill-fen { position: absolute; display: flex; flex-direction: column; overflow: hidden; border: 1px solid #34344d; border-radius: 10px; background: #12121d; box-shadow: 0 14px 40px rgba(0, 0, 0, .55); }
.ill-fen__barre { display: flex; align-items: center; gap: 4px; padding: .5em .7em; background: #1b1b2a; color: #8e8ca6; font-size: .85em; }
.ill-fen__barre i { width: .65em; height: .65em; border-radius: 50%; background: #3a3a55; }
.ill-fen__barre i:first-child { background: #ff5f57; } .ill-fen__barre i:nth-child(2) { background: #febc2e; } .ill-fen__barre i:nth-child(3) { background: #28c840; }
.ill-fen__barre span { margin-left: .6em; }
.ill-fen__corps { position: relative; flex: 1; padding: .9em; }
.ill-btn { display: inline-flex; align-items: center; gap: .4em; padding: .45em .8em; border: 1px solid #3a3a55; border-radius: .7em; background: #1d1d2c; color: #e8e6f5; font-weight: 600; white-space: nowrap; }
.ill-btn--obs, .ill-btn--plein { border-color: transparent; background: linear-gradient(135deg, #a855f7, #7c3aed); color: #fff; }
.ill-btn--mini { padding: .25em .55em; font-size: .85em; }
.ill-pastille { display: inline-block; padding: .25em .7em; border-radius: 999px; background: linear-gradient(90deg, #ec4899, #a855f7); color: #fff; font-weight: 800; }
.ill-roue { display: block; width: 3.4em; height: 3.4em; border-radius: 50%; background: conic-gradient(#a855f7 0 25%, #22d3ee 0 50%, #f59e0b 0 75%, #ec4899 0); animation-name: ill-tourne; animation-timing-function: linear; }
@keyframes ill-tourne { to { transform: rotate(1turn); } }
.ill-curseur { position: absolute; z-index: 9; width: 2.2em; height: 2.2em; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .6)); }
.ill-curseur svg { width: 100%; height: 100%; fill: #fff; stroke: #111; stroke-width: 1.2; }
.ill-titre { display: block; margin-bottom: .6em; color: #fff; font-size: 1.1em; }
.ill-champ { display: block; margin-bottom: .6em; padding: .5em .7em; border: 1px solid #3a3a55; border-radius: .6em; background: #0b0b14; color: #cfcde0; }
.ill-ok { position: absolute; left: .9em; right: .9em; bottom: .9em; display: flex; align-items: center; gap: .4em; padding: .5em .7em; border: 1px solid rgba(53, 208, 127, .5); border-radius: .6em; background: rgba(53, 208, 127, .12); color: #5eea9f; font-weight: 700; opacity: 0; }
.ill-avatar { display: block; width: 3.6em; height: 3.6em; border-radius: 50%; background: linear-gradient(140deg, #f472b6, #a855f7); box-shadow: 0 0 0 3px #12121d, 0 0 0 4px #ec4899; }
.ill-avatar--petit { width: 2em; height: 2em; box-shadow: none; }
.ill-tel { position: absolute; padding: .6em; border-radius: 2em; background: #05050a; box-shadow: 0 0 0 2px #2c2c40, 0 18px 50px rgba(0, 0, 0, .6); }
.ill-tel__ecran { position: relative; display: flex; flex-direction: column; align-items: center; gap: .55em; height: 100%; padding: 1.4em .8em; overflow: hidden; border-radius: 1.5em; background: #101018; color: #e8e6f5; }

/* Glisser dans OBS */
.ill--obs .ill-site { left: 3%; top: 12%; width: 40%; height: 76%; }
.ill-site__apercu { display: flex; flex-direction: column; align-items: center; justify-content: space-between; width: 38%; height: 62%; margin: 0 auto; padding: .7em .3em; border: 1px dashed #3a3a55; border-radius: .6em; background: #0a0a12; }
.ill-site__boutons { position: absolute; left: .9em; right: .9em; bottom: .9em; display: flex; justify-content: center; gap: .5em; }
.ill--obs .ill-btn--obs { animation-name: ill-obs-bouton; }
@keyframes ill-obs-bouton { 0%, 17% { box-shadow: none; } 20%, 26% { box-shadow: 0 0 0 .3em rgba(168, 85, 247, .45); transform: scale(.96); } 30%, 100% { box-shadow: none; transform: none; } }
.ill--obs .ill-obs { left: 47%; top: 6%; width: 50%; height: 88%; }
.ill-obs__apercu { position: relative; display: grid; place-items: center; height: 58%; border-radius: .4em; background: linear-gradient(160deg, #2a2a3d, #15151f); }
.ill-obs__camera { display: grid; place-items: center; width: 34%; aspect-ratio: 1; border-radius: 50%; background: rgba(255, 255, 255, .06); color: #6d6b85; }
.ill-obs__camera .icone { width: 60%; height: 60%; }
.ill-obs__overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; padding: .6em; opacity: 0; animation-name: ill-obs-overlay; }
@keyframes ill-obs-overlay { 0%, 60% { opacity: 0; transform: scale(1.06); } 66%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.ill-obs__docks { display: grid; grid-template-columns: 1fr 1.6fr; gap: .5em; margin-top: .6em; }
.ill-dock { display: flex; flex-direction: column; gap: .3em; padding: .45em; border-radius: .4em; background: #1a1a28; }
.ill-dock b { color: #8e8ca6; font-size: .85em; }
.ill-dock i { display: flex; align-items: center; gap: .35em; padding: .3em .45em; border-radius: .3em; background: #23233a; font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ill-obs__nouvelle { max-height: 0; padding-block: 0 !important; opacity: 0; color: #fff; animation-name: ill-obs-nouvelle; }
@keyframes ill-obs-nouvelle { 0%, 57% { max-height: 0; opacity: 0; } 61% { max-height: 3em; opacity: 1; padding-block: .3em; background: #7c3aed; } 75%, 92% { max-height: 3em; opacity: 1; padding-block: .3em; background: #3b2a66; } 100% { max-height: 0; opacity: 0; } }
.ill-fantome { position: absolute; z-index: 8; display: inline-flex; align-items: center; gap: .4em; padding: .45em .8em; border-radius: .7em; background: rgba(124, 58, 237, .85); color: #fff; font-weight: 600; white-space: nowrap; opacity: 0; animation-name: ill-obs-fantome; }
@keyframes ill-obs-fantome { 0%, 22% { left: 24%; top: 79%; opacity: 0; } 26% { left: 24%; top: 79%; opacity: .9; } 54% { left: 70%; top: 76%; opacity: .9; } 58%, 100% { left: 70%; top: 76%; opacity: 0; } }
.ill--obs .ill-curseur { animation-name: ill-obs-curseur; }
@keyframes ill-obs-curseur { 0% { left: 55%; top: 40%; opacity: 0; } 6% { opacity: 1; } 18%, 24% { left: 34%; top: 82%; } 54%, 58% { left: 80%; top: 79%; } 72%, 90% { left: 66%; top: 34%; opacity: 1; } 100% { left: 66%; top: 34%; opacity: 0; } }

/* La source TARGET ONLY STREAM glissée dans OBS (mêmes temps que « Glisser dans OBS ») */
.ill--target .ill-site { left: 3%; top: 12%; width: 40%; height: 76%; }
.ill--target .ill-btn--obs { animation-name: ill-obs-bouton; }
.ill--target .ill-obs { left: 47%; top: 6%; width: 50%; height: 88%; }
.ill--target .ill-obs__nouvelle { color: #e9d5ff; }
.ill--target .ill-fantome { animation-name: ill-target-fantome; }
@keyframes ill-target-fantome { 0%, 22% { left: 20%; top: 79%; opacity: 0; } 26% { left: 20%; top: 79%; opacity: .9; } 54% { left: 70%; top: 76%; opacity: .9; } 58%, 100% { left: 70%; top: 76%; opacity: 0; } }
.ill--target .ill-curseur { animation-name: ill-target-curseur; }
@keyframes ill-target-curseur { 0% { left: 55%; top: 40%; opacity: 0; } 6% { opacity: 1; } 18%, 24% { left: 26%; top: 82%; } 54%, 58% { left: 80%; top: 79%; } 72%, 90% { left: 80%; top: 79%; opacity: 1; } 100% { left: 80%; top: 79%; opacity: 0; } }

/* Masquer la source TARGET : l'œil */
.ill--oeil .ill-obs { left: 8%; top: 7%; width: 84%; height: 70%; }
.ill-dock--sources { gap: .45em; font-size: 1.25em; }
.ill-ligne { justify-content: space-between; }
.ill-ligne > span:first-child { display: flex; align-items: center; gap: .35em; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ill-ligne__yeux { position: relative; flex: none; width: 1.3em; height: 1.3em; }
.ill-oeil { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: #cfcde0; stroke-width: 2; stroke-linecap: round; }
.ill-oeil circle { fill: #cfcde0; stroke: none; }
.ill-ligne--masquee { color: #6d6b85; }
.ill-ligne--masquee .ill-oeil { stroke: #6d6b85; }
.ill-ligne--cible { color: #fff; background: #3b2a66 !important; animation-name: ill-oeil-ligne; }
@keyframes ill-oeil-ligne { 0%, 40% { color: #fff; } 43%, 93% { color: #8e8ca6; } 100% { color: #fff; } }
.ill-ligne--cible .ill-oeil:not(.ill-oeil--ferme) { animation-name: ill-oeil-ouvert; }
.ill-ligne--cible .ill-oeil--ferme { opacity: 0; animation-name: ill-oeil-ferme; }
@keyframes ill-oeil-ouvert { 0%, 40% { opacity: 1; } 42%, 93% { opacity: 0; } 100% { opacity: 1; } }
@keyframes ill-oeil-ferme { 0%, 40% { opacity: 0; } 42%, 93% { opacity: 1; } 100% { opacity: 0; } }
.ill--oeil .ill-ok--oeil { left: 30%; right: 30%; bottom: 7%; justify-content: center; animation-name: ill-ws-ok; }
.ill--oeil .ill-curseur { animation-name: ill-oeil-curseur; }
@keyframes ill-oeil-curseur { 0% { left: 50%; top: 60%; opacity: 0; } 6% { opacity: 1; } 34%, 41% { left: 86%; top: 29%; } 39% { transform: scale(.85); } 42% { transform: none; } 68% { left: 62%; top: 86%; opacity: 1; } 90% { left: 62%; top: 86%; opacity: 1; } 100% { opacity: 0; } }

/* Code dans la bio TikTok */
.ill--bio .ill-tel { left: 7%; top: 5%; width: 27%; height: 90%; }
.ill-tiktok__pseudo { font-size: 1.05em; }
.ill-tiktok__modifier, .ill-tiktok__enregistrer { padding: .4em .9em; border-radius: .4em; background: #2a2a3a; font-weight: 600; }
.ill-tiktok__enregistrer { margin-top: auto; background: #fe2c55; color: #fff; animation-name: ill-bio-enregistrer; }
@keyframes ill-bio-enregistrer { 0%, 52% { transform: none; } 55%, 58% { transform: scale(.92); box-shadow: 0 0 0 .3em rgba(254, 44, 85, .35); } 62%, 100% { transform: none; } }
.ill-tiktok__modifier { animation-name: ill-bio-modifier; }
@keyframes ill-bio-modifier { 0%, 19% { transform: none; } 21%, 24% { transform: scale(.92); background: #3a3a50; } 27%, 100% { transform: none; } }
.ill-tiktok__bio { width: 100%; padding: .5em; border: 1px solid #34344a; border-radius: .4em; color: #b9b7cc; font-size: .9em; text-align: center; }
.ill-frappe { display: inline-block; max-width: 0; overflow: hidden; vertical-align: bottom; white-space: nowrap; color: #fff; font-weight: 800; border-right: 2px solid #fe2c55; animation-name: ill-bio-frappe; animation-timing-function: steps(7, end); }
@keyframes ill-bio-frappe { 0%, 28% { max-width: 0; } 48%, 93% { max-width: 4.6em; } 100% { max-width: 0; } }
.ill--bio .ill-site { left: 42%; top: 12%; width: 53%; height: 76%; }
.ill-code { display: flex; align-items: center; justify-content: space-between; gap: .5em; margin-bottom: .6em; padding: .45em .7em; border: 1px dashed #a855f7; border-radius: .6em; color: #e9d5ff; font-weight: 800; letter-spacing: .08em; }
.ill-verifier { animation-name: ill-bio-verifier; }
@keyframes ill-bio-verifier { 0%, 68% { opacity: 1; transform: none; } 70%, 72% { transform: scale(.93); } 76%, 94% { opacity: 0; } 100% { opacity: 1; } }
.ill--bio .ill-ok { animation-name: ill-bio-ok; }
@keyframes ill-bio-ok { 0%, 74% { opacity: 0; transform: translateY(.5em); } 78%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.ill--bio .ill-curseur { animation-name: ill-bio-curseur; }
@keyframes ill-bio-curseur { 0% { left: 60%; top: 30%; opacity: 0; } 4% { opacity: 1; } 9%, 12% { left: 86%; top: 52%; } 21%, 25% { left: 23%; top: 41%; } 55%, 58% { left: 23%; top: 83%; } 70%, 73% { left: 52%; top: 66%; } 90% { left: 70%; top: 40%; opacity: 1; } 100% { opacity: 0; } }

/* Serveur WebSocket d'OBS */
.ill--websocket .ill-obs { left: 3%; top: 6%; width: 58%; height: 88%; }
.ill-menu { display: flex; gap: .2em; margin: -.9em -.9em .6em; padding: .35em .6em; background: #17172a; color: #b9b7cc; }
.ill-menu span { padding: .2em .55em; border-radius: .3em; }
.ill-menu__outils { animation-name: ill-ws-outils; }
@keyframes ill-ws-outils { 0%, 8% { background: transparent; } 10%, 22% { background: #3b2a66; color: #fff; } 25%, 100% { background: transparent; } }
.ill-deroulant { position: absolute; z-index: 2; left: 33%; top: 2.2em; display: flex; flex-direction: column; min-width: 60%; padding: .3em; border: 1px solid #3a3a55; border-radius: .5em; background: #1d1d2e; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); opacity: 0; animation-name: ill-ws-deroulant; }
.ill-deroulant span { padding: .4em .6em; border-radius: .3em; color: #cfcde0; }
@keyframes ill-ws-deroulant { 0%, 10% { opacity: 0; transform: translateY(-.4em); } 12%, 22% { opacity: 1; transform: none; } 24%, 100% { opacity: 0; } }
.ill-deroulant__choix { animation-name: ill-ws-choix; }
@keyframes ill-ws-choix { 0%, 16% { background: transparent; } 18%, 24% { background: #7c3aed; color: #fff; } 26%, 100% { background: transparent; } }
.ill-dialogue { position: absolute; left: 8%; right: 8%; top: 18%; display: flex; flex-direction: column; gap: .7em; padding: 1em; border: 1px solid #3a3a55; border-radius: .6em; background: #1a1a2a; box-shadow: 0 16px 40px rgba(0, 0, 0, .55); opacity: 0; animation-name: ill-ws-dialogue; }
@keyframes ill-ws-dialogue { 0%, 24% { opacity: 0; transform: scale(.96); } 27%, 93% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.ill-case { display: flex; align-items: center; gap: .5em; }
.ill-case i { position: relative; width: 1.2em; height: 1.2em; border: 2px solid #6b6985; border-radius: .25em; animation-name: ill-ws-case; }
@keyframes ill-ws-case { 0%, 33% { background: transparent; border-color: #6b6985; } 35%, 93% { background: #7c3aed; border-color: #a855f7; } 100% { background: transparent; } }
.ill-infos { align-self: flex-start; animation-name: ill-ws-infos; }
@keyframes ill-ws-infos { 0%, 42% { transform: none; } 44%, 46% { transform: scale(.94); background: #2c2c45; } 48%, 100% { transform: none; } }
.ill-mdp { display: flex; align-items: center; gap: .5em; opacity: 0; animation-name: ill-ws-mdp; }
.ill-mdp code { padding: .2em .5em; border-radius: .3em; background: #0b0b14; color: #e9d5ff; }
@keyframes ill-ws-mdp { 0%, 46% { opacity: 0; } 49%, 93% { opacity: 1; } 100% { opacity: 0; } }
.ill--websocket .ill-site { left: 64%; top: 20%; width: 33%; height: 60%; }
.ill-champ--mdp span { display: inline-block; max-width: 0; overflow: hidden; vertical-align: bottom; animation-name: ill-ws-colle; }
@keyframes ill-ws-colle { 0%, 64% { max-width: 0; } 66%, 94% { max-width: 8em; } 100% { max-width: 0; } }
.ill--websocket .ill-ok { animation-name: ill-ws-ok; }
@keyframes ill-ws-ok { 0%, 72% { opacity: 0; transform: translateY(.5em); } 76%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.ill--websocket .ill-curseur { animation-name: ill-ws-curseur; }
@keyframes ill-ws-curseur { 0% { left: 30%; top: 50%; opacity: 0; } 4% { opacity: 1; } 9%, 11% { left: 31%; top: 13%; } 18%, 21% { left: 38%; top: 21%; } 32%, 34% { left: 12%; top: 38%; } 43%, 46% { left: 18%; top: 49%; } 54%, 57% { left: 50%; top: 59%; } 64%, 66% { left: 78%; top: 45%; } 90% { left: 84%; top: 70%; opacity: 1; } 100% { opacity: 0; } }

/* QR code visé par le téléphone */
.ill-ecran { position: absolute; left: 8%; top: 8%; width: 48%; height: 74%; }
.ill-ecran__dalle { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6em; height: 100%; border: .5em solid #23233a; border-radius: .8em; background: #12121d; }
.ill-ecran__pied { display: block; width: 30%; height: .7em; margin: 0 auto; border-radius: 0 0 .4em .4em; background: #23233a; }
.ill-ecran__texte { color: #9694ad; }
.ill-qr { width: 42%; padding: .5em; border-radius: .4em; background: #fff; fill: #0a0a12; }
.ill--qr .ill-tel { top: 14%; width: 23%; height: 80%; animation-name: ill-qr-tel; }
@keyframes ill-qr-tel { 0% { left: 105%; transform: rotate(8deg); } 18%, 46% { left: 40%; transform: rotate(-6deg); } 56%, 92% { left: 66%; transform: none; } 100% { left: 105%; transform: rotate(8deg); } }
.ill-scan { position: absolute; left: 10%; right: 10%; height: 2px; background: #22d3ee; box-shadow: 0 0 12px #22d3ee; opacity: 0; animation-name: ill-qr-scan; }
@keyframes ill-qr-scan { 0%, 20% { top: 20%; opacity: 0; } 24% { opacity: 1; } 34% { top: 75%; } 44% { top: 25%; opacity: 1; } 48%, 100% { opacity: 0; } }
.ill-touches { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5em; width: 100%; margin-top: 1.2em; opacity: 0; animation-name: ill-qr-touches; }
@keyframes ill-qr-touches { 0%, 48% { opacity: 0; transform: scale(.9); } 54%, 93% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.ill-touche { aspect-ratio: 1; border-radius: .7em; animation-name: ill-qr-touche; }
.ill-touche--violet { background: #7c3aed; } .ill-touche--cyan { background: #0891b2; } .ill-touche--rose { background: #db2777; }
.ill-touche--orange { background: #ea580c; } .ill-touche--vert { background: #16a34a; } .ill-touche--rouge { background: #dc2626; }
@keyframes ill-qr-touche { 0%, 58% { filter: none; transform: none; } 61% { filter: brightness(1.6); transform: scale(.9); } 65%, 100% { filter: none; transform: none; } }
.ill-touche--2 { animation-delay: .5s; } .ill-touche--3 { animation-delay: 1s; } .ill-touche--4 { animation-delay: 1.5s; } .ill-touche--5 { animation-delay: 2s; } .ill-touche--6 { animation-delay: 2.5s; }

/* Quand… → Alors… */
.ill-flux { position: absolute; inset: 0; }
.ill-cadeau { position: absolute; left: 4%; top: 9%; display: flex; align-items: center; gap: .5em; padding: .5em .9em .5em .5em; border-radius: 999px; background: rgba(0, 0, 0, .55); box-shadow: 0 0 0 1px rgba(255, 255, 255, .1); opacity: 0; animation-name: ill-fl-cadeau; }
@keyframes ill-fl-cadeau { 0%, 3% { opacity: 0; transform: translateX(-1em); } 9%, 88% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; } }
.ill-rose { font-size: 1.8em; animation-name: ill-fl-rose; }
@keyframes ill-fl-rose { 0%, 8% { transform: scale(.4); } 12% { transform: scale(1.3) rotate(-10deg); } 16%, 100% { transform: none; } }
.ill-etape { position: absolute; top: 34%; display: flex; flex-direction: column; gap: .3em; width: 29%; padding: .9em; border: 1px solid #34344d; border-radius: .9em; background: #14141f; color: #cfcde0; }
.ill-etape b { color: #fff; font-size: 1.1em; }
.ill-etape span:last-child { display: flex; align-items: center; gap: .35em; }
.ill-num { display: grid; place-items: center; width: 1.7em; height: 1.7em; border-radius: 50%; background: #7c3aed; color: #fff; font-weight: 800; }
.ill-etape--quand { left: 3%; animation-name: ill-fl-quand; }
.ill-etape--alors { left: 38%; animation-name: ill-fl-alors; }
@keyframes ill-fl-quand { 0%, 14% { border-color: #34344d; box-shadow: none; } 18%, 30% { border-color: #a855f7; box-shadow: 0 0 0 .3em rgba(168, 85, 247, .25), 0 0 2em rgba(168, 85, 247, .35); } 36%, 100% { border-color: #34344d; box-shadow: none; } }
@keyframes ill-fl-alors { 0%, 34% { border-color: #34344d; box-shadow: none; } 38%, 52% { border-color: #22d3ee; box-shadow: 0 0 0 .3em rgba(34, 211, 238, .2), 0 0 2em rgba(34, 211, 238, .3); } 58%, 100% { border-color: #34344d; box-shadow: none; } }
.ill-fleche { position: absolute; left: 32.5%; top: 47%; width: 5%; height: 3px; border-radius: 3px; background: #34344d; overflow: hidden; }
.ill-fleche::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #a855f7, #22d3ee); transform: scaleX(0); transform-origin: left; animation-name: ill-fl-fleche; }
@keyframes ill-fl-fleche { 0%, 26% { transform: scaleX(0); } 36%, 88% { transform: scaleX(1); } 96%, 100% { transform: scaleX(0); } }
.ill-live { position: absolute; right: 4%; top: 7%; width: 24%; height: 86%; overflow: hidden; border-radius: 1.4em; background: linear-gradient(180deg, #3b2a66, #1a1028 55%, #0b0b15); box-shadow: 0 0 0 2px #2c2c40, 0 18px 50px rgba(0, 0, 0, .6); }
.ill-live__badge { position: absolute; left: .7em; top: .7em; padding: .15em .5em; border-radius: .3em; background: #fe2c55; color: #fff; font-size: .8em; font-weight: 800; }
.ill-ondes { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.ill-ondes i { position: absolute; left: -2em; top: -2em; width: 4em; height: 4em; border: 2px solid #22d3ee; border-radius: 50%; opacity: 0; animation-name: ill-fl-onde; }
.ill-ondes i:nth-child(2) { animation-delay: .35s; } .ill-ondes i:nth-child(3) { animation-delay: .7s; }
@keyframes ill-fl-onde { 0%, 50% { opacity: 0; transform: scale(.3); } 54% { opacity: .9; } 70%, 100% { opacity: 0; transform: scale(2.6); } }
.ill-confettis i { position: absolute; left: 50%; top: 45%; width: .55em; height: .9em; border-radius: .1em; opacity: 0; animation-name: ill-fl-confetti; }
.ill-confettis i:nth-child(odd) { background: #a855f7; } .ill-confettis i:nth-child(even) { background: #22d3ee; } .ill-confettis i:nth-child(3n) { background: #f59e0b; } .ill-confettis i:nth-child(5n) { background: #ec4899; }
.ill-confettis i:nth-child(1) { --x: -4em; --y: -5em; } .ill-confettis i:nth-child(2) { --x: 3em; --y: -6em; } .ill-confettis i:nth-child(3) { --x: -5em; --y: 1em; } .ill-confettis i:nth-child(4) { --x: 5em; --y: -1em; } .ill-confettis i:nth-child(5) { --x: -1em; --y: -7em; }
.ill-confettis i:nth-child(6) { --x: 2em; --y: 4em; } .ill-confettis i:nth-child(7) { --x: -3em; --y: 5em; } .ill-confettis i:nth-child(8) { --x: 4.5em; --y: 3em; } .ill-confettis i:nth-child(9) { --x: -5.5em; --y: -3em; } .ill-confettis i:nth-child(10) { --x: 1em; --y: -4em; }
@keyframes ill-fl-confetti { 0%, 50% { opacity: 0; transform: none; } 53% { opacity: 1; } 80% { opacity: 1; transform: translate(var(--x), var(--y)) rotate(320deg); } 90%, 100% { opacity: 0; transform: translate(var(--x), calc(var(--y) + 3em)) rotate(400deg); } }

/* Rappuyer pour arrêter */
.ill-rappui { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.2em; }
.ill-grosse-touche { position: relative; display: flex; flex-direction: column; justify-content: space-between; width: 10em; aspect-ratio: 1; padding: 1em; border-radius: 1.6em; background: linear-gradient(150deg, #22d3ee, #0e7490); color: #fff; box-shadow: 0 1em 2.4em rgba(34, 211, 238, .3); animation-name: ill-rp-touche; }
.ill-grosse-touche b { font-size: 1.4em; }
.ill-grosse-touche__icone .icone { width: 2em; height: 2em; }
.ill-grosse-touche__legende { opacity: .8; }
@keyframes ill-rp-touche { 0%, 10% { transform: none; } 12%, 15% { transform: scale(.9); filter: brightness(1.3); } 19%, 53% { transform: none; filter: none; } 55%, 58% { transform: scale(.9); filter: brightness(1.3); } 62%, 100% { transform: none; filter: none; } }
.ill-etat { position: absolute; top: 76%; display: flex; align-items: center; gap: .5em; padding: .45em 1em; border-radius: 999px; font-weight: 700; opacity: 0; }
.ill-etat--joue { background: rgba(34, 211, 238, .14); color: #67e8f9; animation-name: ill-rp-joue; }
.ill-etat--stop { background: rgba(255, 107, 107, .14); color: #ff9b9b; animation-name: ill-rp-stop; }
@keyframes ill-rp-joue { 0%, 13% { opacity: 0; } 17%, 54% { opacity: 1; } 57%, 100% { opacity: 0; } }
@keyframes ill-rp-stop { 0%, 56% { opacity: 0; } 60%, 92% { opacity: 1; } 100% { opacity: 0; } }
.ill-egaliseur { display: inline-flex; align-items: flex-end; gap: 2px; height: 1em; }
.ill-egaliseur i { width: 3px; height: 30%; border-radius: 2px; background: currentColor; animation: ill-rp-barre .5s ease-in-out infinite alternate; }
.ill-egaliseur i:nth-child(2) { animation-delay: .15s; } .ill-egaliseur i:nth-child(3) { animation-delay: .3s; } .ill-egaliseur i:nth-child(4) { animation-delay: .1s; }
@keyframes ill-rp-barre { to { height: 100%; } }
.ill-doigt { position: absolute; left: 54%; top: 46%; width: 2.6em; height: 2.6em; border: .25em solid rgba(255, 255, 255, .9); border-radius: 50%; background: rgba(255, 255, 255, .25); opacity: 0; animation-name: ill-rp-doigt; }
@keyframes ill-rp-doigt { 0%, 7% { opacity: 0; transform: scale(1.4); } 11%, 14% { opacity: 1; transform: scale(.8); } 18%, 50% { opacity: 0; transform: scale(1.4); } 54%, 57% { opacity: 1; transform: scale(.8); } 61%, 100% { opacity: 0; } }

/* Camera Cast */
.ill--cast .ill-tel { left: 9%; top: 9%; width: 23%; height: 82%; }
.ill--cast .ill-tel__ecran { justify-content: center; background: linear-gradient(170deg, #3b2a66, #0e0e18); }
.ill--cast .ill-tel__ecran > .icone { width: 3em; height: 3em; color: #e9d5ff; }
.ill-rec { position: absolute; top: 1em; right: 1em; width: .8em; height: .8em; border-radius: 50%; background: #fe2c55; animation: ill-clignote 1s steps(2) infinite; }
@keyframes ill-clignote { 50% { opacity: .2; } }
.ill-tel__texte { color: #cfcde0; font-weight: 600; }
.ill-wifi { position: absolute; left: 39%; top: 38%; width: 14%; height: 24%; }
.ill-wifi i { position: absolute; left: 50%; top: 50%; width: 2.5em; height: 2.5em; margin: -1.25em; border: 3px solid transparent; border-right-color: #22d3ee; border-radius: 50%; opacity: 0; animation-name: ill-ca-onde; animation-duration: 2s; }
.ill-wifi i:nth-child(2) { width: 4.5em; height: 4.5em; margin: -2.25em; animation-delay: .3s; } .ill-wifi i:nth-child(3) { width: 6.5em; height: 6.5em; margin: -3.25em; animation-delay: .6s; }
@keyframes ill-ca-onde { 0% { opacity: 0; } 30% { opacity: 1; } 100% { opacity: 0; transform: translateX(1em); } }
.ill-live--cast { left: auto; right: 9%; width: 25%; background: linear-gradient(180deg, #1c1c2c, #0b0b15); }
.ill-live__pc, .ill-live__tel { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4em; color: #8e8ca6; }
.ill-live__pc .icone, .ill-live__tel .icone { width: 3em; height: 3em; }
.ill-live__tel { background: linear-gradient(170deg, #3b2a66, #0e0e18); color: #e9d5ff; transform: translateY(100%); animation-name: ill-ca-tel; }
@keyframes ill-ca-tel { 0%, 30% { transform: translateY(100%); } 40%, 88% { transform: none; } 96%, 100% { transform: translateY(100%); } }

@media (prefers-reduced-motion: reduce) {
  .ill__scene *, .ill__scene *::before, .ill__scene *::after { animation: none !important; }
  .ill-obs__nouvelle, .ill-obs__overlay, .ill--bio .ill-ok, .ill--websocket .ill-ok, .ill-dialogue, .ill-mdp, .ill-touches, .ill-cadeau, .ill-etat--joue { opacity: 1; max-height: none; }
  .ill-frappe, .ill-champ--mdp span { max-width: none; }
  .ill--bio .ill-verifier, .ill-curseur, .ill-fantome, .ill-doigt, .ill-deroulant { opacity: 0; }
  .ill--qr .ill-tel { left: 66%; }
  .ill-live__tel { transform: none; }
}

/* ── Démarrage guidé ────────────────────────────────────────────────────── */
.dem { max-width: 1120px; margin: 0 auto; }
.dem__tete { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 18px; }
.dem__titre { display: flex; align-items: center; gap: 12px; }
.dem__titre > span:last-child { display: grid; }
.dem__titre .doux { font-size: .88rem; }
.dem__logo { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: linear-gradient(140deg, var(--violet), var(--violet-2)); box-shadow: 0 8px 24px rgba(168, 85, 247, .4); }
.dem__logo .icone { width: 22px; height: 22px; animation: dem-etincelle 3s ease-in-out infinite; }
@keyframes dem-etincelle { 50% { transform: rotate(18deg) scale(1.12); } }

.dem-etapes { display: flex; margin: 0; padding: 0; list-style: none; }
.dem-etapes__point { position: relative; flex: 1; min-width: 0; }
.dem-etapes__point:not(:last-child)::after { content: ""; position: absolute; left: calc(50% + 20px); right: calc(-50% + 20px); top: 17px; height: 2px; border-radius: 2px; background: var(--bord-2); }
.dem-etapes__point.est-fait:not(:last-child)::after { background: linear-gradient(90deg, var(--ok), var(--violet)); }
.dem-etapes a { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--doux); font-size: .78rem; text-align: center; text-decoration: none; }
.dem-etapes__rond { position: relative; z-index: 1; display: grid; place-items: center; width: 36px; height: 36px; border: 2px solid var(--bord-2); border-radius: 50%; background: var(--panneau); color: var(--doux); font-weight: 800; transition: transform var(--tempo); }
.dem-etapes__rond .icone { width: 18px; height: 18px; }
.dem-etapes__point.est-fait .dem-etapes__rond { border-color: var(--ok); background: rgba(53, 208, 127, .15); color: var(--ok); }
.dem-etapes__point.est-courant .dem-etapes__rond { border-color: transparent; background: linear-gradient(140deg, var(--violet), var(--violet-2)); color: #fff; box-shadow: 0 0 0 5px rgba(168, 85, 247, .2), 0 8px 22px rgba(168, 85, 247, .45); transform: scale(1.08); }
.dem-etapes__point.est-courant a { color: var(--texte); font-weight: 700; }
.dem-etapes a:hover .dem-etapes__rond { transform: scale(1.08); }
@media (max-width: 639px) { .dem-etapes__nom { display: none; } .dem-etapes__point.est-courant .dem-etapes__nom { display: block; position: absolute; top: 42px; white-space: nowrap; } .dem-etapes { margin-bottom: 18px; } }
.dem-barre { height: 4px; margin: 14px 0 20px; overflow: hidden; border-radius: 4px; background: var(--bord); }
.dem-barre__plein { display: block; width: 0; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--violet), var(--cyan)); box-shadow: 0 0 12px rgba(168, 85, 247, .6); transition: width 1.1s cubic-bezier(.22, 1, .36, 1); }

.dem-carte { display: grid; gap: 22px; padding: 20px; border: 1px solid var(--bord); border-radius: var(--rayon-l); background: linear-gradient(180deg, rgba(27, 27, 41, .95), rgba(20, 20, 31, .95)); box-shadow: var(--ombre); animation: dem-entree .55s cubic-bezier(.22, 1, .36, 1); }
@keyframes dem-entree { from { opacity: 0; transform: translateY(14px); } }
@media (min-width: 960px) { .dem-carte { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: start; padding: 30px; gap: 34px; } .dem-carte__illus { position: sticky; top: 90px; } }
.dem-carte__illus { display: grid; gap: 16px; min-width: 0; }
.dem-carte__illus .ill, .dem-carte__illus .aide-video { margin: 0; }
.dem-carte__corps { min-width: 0; }
.dem-carte__corps h1 { margin: 0 0 .35em; font-size: clamp(1.6rem, 4.5vw, 2.2rem); line-height: 1.15; }
.dem-carte__corps .chapeau { margin: 0 0 18px; }
.dem-carte__corps > form, .dem-carte__corps > .dem-preuve { margin-bottom: 16px; }
.dem-carte__corps .aide-etapes { margin-top: 6px; }
.dem-carte__corps .aide-etapes .copie, .dem-carte__corps .aide-etapes .glisser-obs { margin: 8px 0; }
.dem-carte__corps .aide-etapes .aide { display: block; margin-top: 6px; }

.dem-promesses { display: grid; gap: 10px; margin: 0 0 22px; padding: 0; list-style: none; }
.dem-promesses li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--bord); border-radius: 12px; background: rgba(255, 255, 255, .02); animation: dem-entree .5s cubic-bezier(.22, 1, .36, 1) both; }
.dem-promesses li:nth-child(2) { animation-delay: .08s; } .dem-promesses li:nth-child(3) { animation-delay: .16s; } .dem-promesses li:nth-child(4) { animation-delay: .24s; }
.dem-promesses .icone { width: 20px; height: 20px; color: var(--cyan); }
.dem-question { margin: 0 0 10px; font-weight: 700; }
.dem-logiciels__choix { display: grid; gap: 12px; margin-bottom: 18px; }
@media (min-width: 560px) { .dem-logiciels__choix { grid-template-columns: 1fr 1fr; } }
.dem-logiciel { position: relative; display: grid; gap: 4px; padding: 16px; border: 2px solid var(--bord-2); border-radius: 16px; background: var(--panneau); cursor: pointer; transition: border-color var(--tempo), transform var(--tempo), box-shadow var(--tempo); }
.dem-logiciel:hover { transform: translateY(-2px); }
.dem-logiciel input { position: absolute; opacity: 0; pointer-events: none; }
.dem-logiciel span:last-child { color: var(--doux); font-size: .88rem; }
.dem-logiciel__icone { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 4px; border-radius: 14px; background: rgba(255, 255, 255, .06); }
.dem-logiciel__icone .icone { width: 24px; height: 24px; }
.dem-logiciel:has(input:checked) { border-color: var(--violet); background: linear-gradient(140deg, rgba(168, 85, 247, .16), rgba(34, 211, 238, .05)); box-shadow: 0 0 0 4px rgba(168, 85, 247, .15); }
.dem-logiciel:has(input:checked) .dem-logiciel__icone { background: linear-gradient(140deg, var(--violet), var(--violet-2)); }
.dem-logiciel:has(input:focus-visible) { outline: 2px solid var(--cyan); outline-offset: 3px; }

.dem-statut { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; padding: 11px 14px; border: 1px dashed var(--bord-2); border-radius: 12px; color: var(--doux); font-weight: 600; }
.dem-statut .icone { width: 20px; height: 20px; }
.dem-statut__attente { flex: none; width: 12px; height: 12px; border-radius: 50%; background: #ffb45a; box-shadow: 0 0 0 0 rgba(255, 180, 90, .6); animation: dem-attente 1.6s ease-out infinite; }
@keyframes dem-attente { 70% { box-shadow: 0 0 0 10px rgba(255, 180, 90, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 180, 90, 0); } }
.dem-statut--ok { border-style: solid; border-color: rgba(53, 208, 127, .5); background: rgba(53, 208, 127, .1); color: #7ef0b0; }
.dem-statut--bravo { animation: dem-bravo-statut .7s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes dem-bravo-statut { 0% { transform: scale(.94); } 50% { transform: scale(1.03); } }

.dem-preuve { padding: 16px; border: 1px solid rgba(168, 85, 247, .35); border-radius: 14px; background: rgba(168, 85, 247, .06); }
.dem-preuve > p:first-child { margin: 0 0 10px; }
.dem-code { margin: 0 0 12px 46px; max-width: 340px; }
.dem-code .champ-copie { font-weight: 800; letter-spacing: .1em; }
.dem-mdp { display: grid; gap: 6px; margin-top: 10px; }
.dem-mdp input { min-height: 46px; padding: 0 12px; border: 1px solid var(--bord-2); border-radius: 12px; background: #0b0b14; color: var(--texte); font: inherit; font-size: 16px; }
.dem-mdp input:focus { border-color: var(--violet); outline: none; box-shadow: 0 0 0 3px rgba(168, 85, 247, .2); }
.dem-test { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 6px 0 14px; }
.dem-test__retour { color: var(--cyan); font-size: .92rem; }
.dem-test__retour.est-erreur { color: #ffb45a; }
.dem-aide { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; color: var(--cyan); font-size: .92rem; }
.dem-aide .icone { width: 16px; height: 16px; }
.dem-astuce { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid rgba(168, 85, 247, .35); border-radius: 14px; background: rgba(168, 85, 247, .07); }
.dem-astuce p { margin: 0; }
.dem-astuce > .icone { flex: none; width: 20px; height: 20px; color: #d8b4fe; }
.dem-carte__corps .dem-astuce { margin: 0 0 14px; }

.dem-regle { display: grid; gap: 14px; padding: 16px; border: 1px solid var(--bord); border-radius: 16px; background: rgba(10, 10, 18, .5); }
.dem-regle__etape { display: grid; gap: 8px; }
.dem-regle__etape label { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.dem-regle select { width: 100%; min-width: 0; min-height: 48px; padding: 0 12px; border: 1px solid var(--bord-2); border-radius: 12px; background: var(--fond); color: var(--texte); font: inherit; font-size: 16px; }
.dem-regle select:focus { border-color: var(--violet); outline: none; box-shadow: 0 0 0 3px rgba(168, 85, 247, .2); }
.dem-regle .champ-bouton { display: flex; gap: 8px; }
.dem-regle .champ-bouton select { flex: 1; }
.dem-regle [data-dem-ecouter].est-actif { border-color: var(--cyan); color: var(--cyan); }
.dem-regle > .bouton { justify-self: start; }
.dem-liste { display: grid; gap: 6px; margin: 0 0 14px; padding: 0; list-style: none; }
.dem-liste li { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; background: rgba(255, 255, 255, .03); animation: dem-entree .4s ease both; }
.dem-liste .icone { width: 16px; height: 16px; color: var(--cyan); }
.dem-liste--regles .icone { color: var(--ok); }
.dem-qr { display: grid; gap: 16px; align-items: center; margin: 0 0 16px; padding: 16px; border: 1px solid var(--bord); border-radius: 16px; background: rgba(10, 10, 18, .5); }
@media (min-width: 560px) { .dem-qr { grid-template-columns: 180px 1fr; } }
.dem-qr figure { margin: 0; text-align: center; }
.dem-qr figcaption { margin-top: 6px; color: var(--doux); font-size: .85rem; }
.dem-qr .qr { width: 100%; max-width: 180px; height: auto; padding: 10px; border-radius: 12px; background: #fff; }
.dem-qr p { margin: 0 0 10px; }

.dem-verifs { margin: 0 0 20px; }
.dem-suites { display: grid; gap: 10px; margin: 0 0 22px; padding: 0; list-style: none; }
@media (min-width: 560px) { .dem-suites { grid-template-columns: 1fr 1fr; } }
.dem-suites a { display: flex; gap: 12px; align-items: flex-start; height: 100%; padding: 14px; border: 1px solid var(--bord); border-radius: 14px; color: var(--texte); text-decoration: none; transition: border-color var(--tempo), transform var(--tempo); }
.dem-suites a:hover { border-color: var(--violet); transform: translateY(-2px); }
.dem-suites .icone { flex: none; width: 22px; height: 22px; color: #d8b4fe; }
.dem-suites span { display: grid; gap: 2px; color: var(--doux); font-size: .88rem; }
.dem-suites strong { color: var(--texte); font-size: 1rem; }

.dem-bravo { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 11; overflow: hidden; border: 1px solid rgba(53, 208, 127, .35); border-radius: 18px; background: radial-gradient(circle at 50% 45%, rgba(53, 208, 127, .25), transparent 55%), radial-gradient(circle at 20% 0%, rgba(168, 85, 247, .3), transparent 50%), #0b0b15; }
.dem-bravo__logo { display: grid; place-items: center; width: 120px; height: 120px; border-radius: 50%; background: linear-gradient(140deg, #22c55e, #35d07f); color: #fff; box-shadow: 0 0 0 14px rgba(53, 208, 127, .15), 0 20px 60px rgba(53, 208, 127, .4); animation: dem-bravo-logo 2.4s cubic-bezier(.2, 1.6, .4, 1) infinite; }
.dem-bravo__logo .icone { width: 64px; height: 64px; stroke-width: 2.4; }
@keyframes dem-bravo-logo { 0% { transform: scale(.6); opacity: 0; } 18% { transform: scale(1); opacity: 1; } 85% { transform: scale(1); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
.dem-bravo i { position: absolute; left: 50%; top: 45%; width: 10px; height: 16px; border-radius: 2px; opacity: 0; animation: dem-confetti 2.4s cubic-bezier(.2, .7, .3, 1) infinite; }
.dem-bravo i:nth-child(4n) { background: #a855f7; } .dem-bravo i:nth-child(4n+1) { background: #22d3ee; } .dem-bravo i:nth-child(4n+2) { background: #f59e0b; } .dem-bravo i:nth-child(4n+3) { background: #ec4899; }
.dem-bravo i:nth-child(2) { --x: -180px; --y: -120px; } .dem-bravo i:nth-child(3) { --x: 160px; --y: -140px; } .dem-bravo i:nth-child(4) { --x: -220px; --y: 20px; } .dem-bravo i:nth-child(5) { --x: 210px; --y: 10px; }
.dem-bravo i:nth-child(6) { --x: -90px; --y: -170px; } .dem-bravo i:nth-child(7) { --x: 100px; --y: -180px; } .dem-bravo i:nth-child(8) { --x: -150px; --y: 120px; } .dem-bravo i:nth-child(9) { --x: 150px; --y: 130px; }
.dem-bravo i:nth-child(10) { --x: -40px; --y: -200px; } .dem-bravo i:nth-child(11) { --x: 50px; --y: 150px; } .dem-bravo i:nth-child(12) { --x: -250px; --y: -60px; } .dem-bravo i:nth-child(13) { --x: 250px; --y: -70px; }
.dem-bravo i:nth-child(14) { --x: -110px; --y: 170px; } .dem-bravo i:nth-child(15) { --x: 120px; --y: 60px; } .dem-bravo i:nth-child(16) { --x: -200px; --y: -150px; } .dem-bravo i:nth-child(17) { --x: 190px; --y: 170px; }
@keyframes dem-confetti { 0%, 10% { opacity: 0; transform: none; } 14% { opacity: 1; } 70% { opacity: 1; transform: translate(var(--x), var(--y)) rotate(380deg); } 100% { opacity: 0; transform: translate(var(--x), calc(var(--y) + 60px)) rotate(460deg); } }

.dem-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 18px 0 0; }
.dem-nav form { margin: 0; }
.dem-nav__suite--pret { animation: dem-pret 1.6s ease-in-out infinite; }
@keyframes dem-pret { 50% { box-shadow: 0 0 0 6px rgba(168, 85, 247, .25), 0 10px 30px rgba(168, 85, 247, .45); } }

@media (prefers-reduced-motion: reduce) {
  .dem-carte, .dem-promesses li, .dem-liste li, .dem__logo .icone, .dem-statut__attente, .dem-nav__suite--pret, .dem-statut--bravo, .dem-bravo__logo, .dem-bravo i, .aide-resultats { animation: none; }
  .dem-barre__plein { transition: none; }
}

/* Téléphone : une seule illustration par étape (le formulaire remonte) ; boutons du bas sur une ligne. */
@media (max-width: 959px) { .dem-carte__illus > :nth-child(n+2) { display: none; } }
.dem [hidden] { display: none !important; }
.dem-nav .bouton { white-space: nowrap; }
@media (max-width: 420px) { .dem-nav .bouton { padding-inline: 14px; font-size: .92rem; } }

/* Démarrage guidé : l'étape Soundboard (les incontournables, ▶ et ★). */
.dem-sons { display: grid; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
@media (min-width: 640px) { .dem-sons { grid-template-columns: 1fr 1fr; } }
.dem-son { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 8px 10px; border: 1px solid var(--bord); border-radius: 14px; background: rgba(255, 255, 255, .02); animation: dem-entree .4s ease both; transition: border-color var(--tempo); }
.dem-son:hover { border-color: rgba(168, 85, 247, .45); }
.dem-son__ecouter { position: relative; flex: none; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 12px; background: linear-gradient(140deg, var(--violet), #22d3ee); color: #fff; cursor: pointer; }
.dem-son__ecouter > .icone { width: 18px; height: 18px; }
.dem-son__barres { position: absolute; inset: 0; display: none; align-items: flex-end; justify-content: center; gap: 3px; padding: 11px; }
.dem-son__barres i { width: 3px; height: 30%; border-radius: 2px; background: #fff; animation: ill-rp-barre .45s ease-in-out infinite alternate; }
.dem-son__barres i:nth-child(2) { animation-delay: .15s; } .dem-son__barres i:nth-child(3) { animation-delay: .3s; }
.dem-son__ecouter.est-actif > .icone { display: none; }
.dem-son__ecouter.est-actif .dem-son__barres { display: flex; }
.dem-son__infos { display: grid; flex: 1; min-width: 0; }
.dem-son__infos strong { overflow: hidden; font-size: .92rem; text-overflow: ellipsis; white-space: nowrap; }
.dem-son__infos span { overflow: hidden; color: var(--doux); font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.dem-son__favori { flex: none; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--bord-2); border-radius: 12px; background: transparent; color: var(--doux); cursor: pointer; transition: color .15s ease, border-color .15s ease, background .15s ease; }
.dem-son__favori .icone { width: 19px; height: 19px; }
.dem-son__favori:hover { border-color: rgba(250, 204, 21, .5); color: #facc15; }
.dem-son__favori[aria-pressed="true"] { border-color: rgba(250, 204, 21, .55); background: rgba(250, 204, 21, .08); color: #facc15; }
.dem-son__favori[aria-pressed="true"] .icone { fill: currentColor; }
.dem-son__favori.est-pop .icone { animation: dem-pop .5s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes dem-pop { 0% { transform: scale(.5) rotate(-18deg); } 60% { transform: scale(1.35) rotate(8deg); } 100% { transform: none; } }
.dem-promesses--sons li { animation: none; }
@media (prefers-reduced-motion: reduce) { .dem-son, .dem-son__barres i, .dem-son__favori.est-pop .icone { animation: none; } }
