/* Play4Rare Work7.2 — finition commune. Chargé en dernier ; réutilise les rôles de theme-play4rare.css.
   Une règle structurelle par composant (console, étape, barre d'actions, pied) plutôt que des surcharges par écran. */
:root {
  --w72-radius: 22px;
  --w72-separator: rgb(255 255 255 / 13%);
  --w72-shadow: 0 14px 38px rgb(16 42 58 / 34%), 0 2px 8px rgb(16 42 58 / 18%);
  --w72-record: #14627B;
  --w72-notebook: #0B4F73;
}

/* ---------- C1 · contour homogène des panneaux ---------- */
.scene .console { border-radius: var(--w72-radius); box-shadow: var(--w72-shadow); }
/* Les enfants épousent l'arrondi : l'étape (qui défile et rogne son contenu) et le pied. La pointe vers Basile
   (::before de .console) reste hors de tout rognage. */
.scene .console > #stage { border-radius: var(--w72-radius) var(--w72-radius) 0 0; }
.scene .console > .libre-footer { border-radius: 0 0 var(--w72-radius) var(--w72-radius); background: var(--play-bar); border-top: 1px solid var(--w72-separator); }
/* Pied vide masqué ; un message réel (mode, alerte) reste affiché. */
.scene .console > .libre-footer:not(:has(.demo-banner:not(:empty))) { display: none; }
.scene .console:not(:has(> .libre-footer .demo-banner:not(:empty))) > #stage { border-radius: var(--w72-radius); }
/* Barre d'actions intégrée au contour : collée au bas, sans ombre portée qui déborde, séparation fine. */
.scene .console #stage > .action-bar { box-shadow: none; border-top: 1px solid var(--w72-separator); }
.scene .console #stage > .action-bar:last-child { margin-bottom: calc(-1 * var(--stage-b)); border-radius: 0 0 var(--w72-radius) var(--w72-radius); }
.scene .console:not(:has(> .libre-footer .demo-banner:not(:empty))) #stage > .action-bar { bottom: 0; }
.scene[data-wide="true"] .console #stage > .action-bar { border-top-color: var(--line); }

/* ---------- B1 · hub : exploration, récapitulatif, plan ---------- */
.scene .console .action-cards.w72-explore { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: .6rem 0 .5rem; }
.scene .console .w72-explore .action-card { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: .45rem; min-height: 5.6rem; padding: .8rem .9rem; text-align: left; }
.w72-card-icon { width: 26px; height: 26px; flex: none; fill: none; stroke: var(--play-link); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.scene .console .w72-explore .action-card:disabled .w72-card-icon { stroke: var(--play-disabled-ink); }
.scene .console .w2-hub-panel .w2-draft { margin: .2rem 0 .1rem; }
@container console (max-width: 560px) {
  .scene .console .action-cards.w72-explore { grid-template-columns: 1fr; gap: .45rem; }
  .scene .console .w72-explore .action-card { flex-direction: row; align-items: center; min-height: 3rem; padding: .55rem .75rem; }
  .w72-card-icon { width: 22px; height: 22px; }
}

/* ---------- B2 · anamnèse : temps à gauche, voix à droite, retour en bas ---------- */
.w72-consult-top { justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.w72-consult-top .consult-timer { margin: 0; }
.scene .console .voice-toggle { display: inline-flex; align-items: center; gap: .45rem; padding: 6px 12px; min-height: 38px; border-radius: 999px; font-size: .86rem; color: var(--play-surface); background: transparent; border: 1.5px solid rgb(255 255 255 / 38%); }
.voice-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.voice-toggle .w72-voice-state { font-weight: 400; opacity: .85; }
.voice-toggle .w72-voice-state::before { content: "· "; }
.scene .console .voice-toggle[data-on="true"] { border-color: var(--play-action); background: rgb(0 181 226 / 16%); }
.scene .console .voice-toggle:hover { background: rgb(255 255 255 / 10%); }
.scene .console .voice-toggle:focus-visible { outline: 3px solid var(--play-focus); outline-offset: 2px; box-shadow: 0 0 0 2px var(--play-surface); }
.w72-ask-bar { justify-content: space-between; }
#stage.w4-consultation > .w72-ask-bar { margin-top: 8px; }

/* ---------- C2 · en-tête : dossier et carnet ---------- */
.hud #dossier { background: var(--w72-record); border: 1.5px solid var(--play-action); color: #fff; position: relative; }
.hud #notebookButton { background: var(--w72-notebook); border: 1.5px solid rgb(255 255 255 / 32%); color: #fff; }
.hud :is(#dossier, #notebookButton) svg { color: #fff; flex: none; }
.hud #dossier:hover { background: #18748F; transform: none; }
.hud #notebookButton:hover { background: #0F5E86; transform: none; }
.hud :is(#dossier, #notebookButton):focus-visible { outline: 3px solid var(--play-focus); outline-offset: 2px; box-shadow: 0 0 0 2px var(--play-surface); }
.w72-badge { display: inline-block; margin-inline-start: .15rem; padding: .08rem .5rem; border-radius: 999px; background: var(--play-surface); color: var(--play-structure); font-size: .72rem; font-weight: 700; letter-spacing: .02em; line-height: 1.5; }
.w72-badge[hidden] { display: none; }
@media (max-width: 760px) {
  .w72-badge { position: absolute; top: -5px; right: -6px; margin: 0; padding: 0; width: 13px; height: 13px; font-size: 0; border: 2px solid var(--play-structure); }
}

/* ---------- A1 · écran institutionnel ---------- */
.w72-splash { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; overflow: hidden; background: linear-gradient(180deg, #E2F3FA 0%, #FAF8EE 100%); color: var(--play-ink); }
.w72-splash::backdrop { background: #E2F3FA; }
.w72-splash[open] { display: grid; place-items: center; cursor: pointer; }
.splash-inner { display: flex; flex-direction: column; align-items: center; gap: clamp(22px, 5.2vh, 64px); outline: none; padding: 24px; }
.splash-ucl { display: block; width: min(86vw, max(51vw, 300px), 980px); height: auto; }
.splash-label { margin: 0; font-weight: 700; font-size: clamp(16px, 1.56vw, 30px); letter-spacing: .005em; text-align: center; color: #0E1B24; }
.splash-dowino { display: block; width: min(64vw, max(24vw, 220px), 577px); height: auto; }
@media (prefers-reduced-motion: reduce) { .w72-splash { animation: none; transition: none; } }

/* ---------- E · réglages des effets sonores (menu) ---------- */
