/* Les pages du compte partagent le shell du poste ; aucun dialogue ne porte l’audio. */
[data-solde-disponible][data-insuffisant="true"] { color: #eaa554; }
html[data-poste-verrouille] { display: none !important; }
.poste-acces-requis { padding: 16px; border: 1px solid #8e79ca; border-radius: 12px; background: #8e79ca18; }

/* Écran d'attente avant toute initialisation du panel et de ses médias. */
html[data-poste-occupe] { --occupe-fond: #f3f2f8; --occupe-encre: #24212d; --occupe-secondaire: #6d677b; --occupe-accent: #7455a6; --occupe-bouton: #292431; --occupe-sur-bouton: #fff; background: var(--occupe-fond); color: var(--occupe-encre); }
html[data-poste-occupe] body { box-sizing: border-box; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; width: 100%; height: auto; min-height: 100svh; margin: 0; padding: 64px 56px; overflow: auto; background: var(--occupe-fond); color: var(--occupe-encre); font-family: "Avenir Next", Avenir, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
html[data-poste-occupe] body::before,
html[data-poste-occupe] body::after { display: none; }
html[data-poste-occupe] .poste-occupe { box-sizing: border-box; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); column-gap: 88px; row-gap: 24px; width: min(100%, 1040px); min-width: 0; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; text-align: left; }
html[data-poste-occupe] .poste-occupe-marque { grid-column: 1 / -1; grid-row: 1; margin: 0 0 40px; color: var(--occupe-encre); font-size: 20px; font-weight: 700; line-height: 1.2; letter-spacing: -.06em; }
html[data-poste-occupe] .poste-occupe-icone { grid-column: 1; grid-row: 2; position: relative; display: block; width: 48px; height: 42px; margin: 0; border: 0; border-radius: 0; background: transparent; color: var(--occupe-accent); }
html[data-poste-occupe] .poste-occupe-icone::before,
html[data-poste-occupe] .poste-occupe-icone::after { content: ""; position: absolute; box-sizing: border-box; width: 30px; height: 24px; border: 1.7px solid currentColor; border-radius: 4px; }
html[data-poste-occupe] .poste-occupe-icone::before { left: 0; top: 0; }
html[data-poste-occupe] .poste-occupe-icone::after { left: 11px; top: 10px; background: var(--occupe-fond); }
html[data-poste-occupe] h1 { grid-column: 1; grid-row: 3 / 6; align-self: start; margin: -7px 0 0; color: var(--occupe-encre); font-size: clamp(48px, 4.7vw, 64px); font-weight: 500; line-height: 1.06; letter-spacing: -.055em; overflow-wrap: normal; }
html[data-poste-occupe] h1:focus { outline: none; }
html[data-poste-occupe] .poste-occupe-texte { grid-column: 2; grid-row: 3; margin: 0; font-size: 17px; line-height: 1.65; color: var(--occupe-encre); }
html[data-poste-occupe] .poste-occupe-aide { grid-column: 2; grid-row: 4; margin: 0; font-size: 14px; line-height: 1.75; color: var(--occupe-secondaire); }
html[data-poste-occupe] #poste-reessayer { grid-column: 2; grid-row: 5; justify-self: start; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; min-width: 164px; margin: 8px 0 0; padding: 12px 28px; border: 0; border-radius: 100px; background: var(--occupe-bouton); color: var(--occupe-sur-bouton); box-shadow: none; font-family: inherit; font-size: 14px; font-weight: 600; line-height: 1.4; cursor: pointer; }
html[data-poste-occupe] #poste-reessayer:hover { filter: brightness(1.15); }
html[data-poste-occupe] #poste-reessayer:focus-visible { outline: 2px solid var(--occupe-accent); outline-offset: 6px; }
@media (prefers-color-scheme: dark) {
  html[data-poste-occupe]:not([data-theme="light"]) { --occupe-fond: #0d0c14; --occupe-encre: #f0edf8; --occupe-secondaire: #aaa3bc; --occupe-accent: #c8b5ef; --occupe-bouton: #c8b5ef; --occupe-sur-bouton: #241b32; }
}
html[data-poste-occupe][data-theme="dark"] { --occupe-fond: #0d0c14; --occupe-encre: #f0edf8; --occupe-secondaire: #aaa3bc; --occupe-accent: #c8b5ef; --occupe-bouton: #c8b5ef; --occupe-sur-bouton: #241b32; }
@media (max-width: 840px) {
  html[data-poste-occupe] body { align-items: start; padding: 40px 28px; }
  html[data-poste-occupe] .poste-occupe { grid-template-columns: minmax(0, 1fr); row-gap: 22px; width: min(100%, 520px); }
  html[data-poste-occupe] .poste-occupe-marque { grid-column: 1; margin-bottom: 20px; }
  html[data-poste-occupe] .poste-occupe-icone { grid-column: 1; grid-row: 2; }
  html[data-poste-occupe] h1 { grid-column: 1; grid-row: 3; margin: 0 0 2px; font-size: clamp(40px, 7vw, 52px); }
  html[data-poste-occupe] .poste-occupe-texte { grid-column: 1; grid-row: 4; font-size: 16px; }
  html[data-poste-occupe] .poste-occupe-aide { grid-column: 1; grid-row: 5; }
  html[data-poste-occupe] #poste-reessayer { grid-column: 1; grid-row: 6; margin-top: 6px; }
}

/* L’entrée de connexion reste isolée des vues Compte et Recharge. */
html[data-poste-connexion] {
  --connexion-fond: #f6f7f9;
  --connexion-encre: #22252e;
  --connexion-secondaire: #686d7a;
  --connexion-accent: #7455a6;
  --connexion-bouton: #7455a6;
  --connexion-sur-bouton: #ffffff;
  --oaa-police: "Avenir Next", Avenir, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --oaa-police-titre: var(--oaa-police);
}
html[data-poste-connexion][data-theme="dark"] {
  --connexion-fond: #0b0d12;
  --connexion-encre: #f2f3f7;
  --connexion-secondaire: #a4a9b5;
  --connexion-accent: #c8b5ef;
  --connexion-bouton: #c8b5ef;
  --connexion-sur-bouton: #221735;
}
html[data-poste-connexion] body {
  min-height: 100svh; margin: 0;
  color: var(--connexion-encre); background: var(--connexion-fond);
  font-family: var(--oaa-police); -webkit-font-smoothing: antialiased;
}
html[data-poste-connexion] body::before,
html[data-poste-connexion] body::after { display: none; }
html[data-poste-connexion] .vitrine-barre {
  position: relative; z-index: 2; box-sizing: border-box;
  width: min(1392px, calc(100% - 64px)); min-height: 80px; padding-top: 0;
}
html[data-poste-connexion] .vitrine-logo { --oaa-taille-symbole: 30px; --oaa-largeur-mot: 116px; gap: 9px; }
html[data-poste-connexion] .vitrine-liens > a { display: none; }
html[data-poste-connexion] .oaa-theme-control { padding: 3px; gap: 2px; border: 0; background: transparent; }
html[data-poste-connexion] .oaa-theme-control button { min-height: 32px; padding: 6px 10px; color: var(--connexion-secondaire); font-size: 11px; font-weight: 500; }
html[data-poste-connexion] .oaa-theme-control button[aria-pressed="true"] { background: transparent; color: var(--connexion-encre); box-shadow: none; }
html[data-poste-connexion] .oaa-theme-control button[aria-pressed="true"] svg { color: var(--connexion-accent); }
html[data-poste-connexion] #espace-licence {
  box-sizing: border-box; display: grid; align-items: start; justify-items: center;
  width: min(1392px, calc(100% - 48px)); min-height: calc(100svh - 80px); padding: 0 0 24px;
}
html[data-poste-connexion] #espace-licence > :not(#connexion-entree) { display: none !important; }
html[data-poste-connexion] #connexion-entree {
  box-sizing: border-box; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  align-items: center; gap: clamp(48px, 6vw, 96px); width: 100%; padding: 0;
  border: 0; border-radius: 0; background: transparent;
}
html[data-poste-connexion] #connexion-entree[hidden] { display: none; }
html[data-poste-connexion] .connexion-cinema { position: relative; isolation: isolate; overflow: hidden; box-sizing: border-box; width: 100%; height: clamp(560px, calc(100svh - 104px), 880px); margin: 0; border: 0; border-radius: 16px; background: #10131a url("../licence/media/combat-boxe.jpg") center / cover no-repeat; color: #fff; }
html[data-poste-connexion] .connexion-cinema video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
html[data-poste-connexion] .connexion-cinema:is([data-video-state="poster"], [data-video-state="error"]) video { opacity: 0; }
html[data-poste-connexion] .connexion-cinema-legende { position: absolute; z-index: 2; display: block; inset: auto 42px 72px; padding: 0; text-align: left; }
html[data-poste-connexion] .connexion-cinema-repere { display: none; }
html[data-poste-connexion] .connexion-cinema-titre { margin: 0; font-size: clamp(44px, 4.8vw, 70px); line-height: 1.06; font-weight: 500; letter-spacing: -.045em; }
html[data-poste-connexion] .connexion-cinema-credit { position: absolute; z-index: 2; bottom: 24px; left: 42px; color: #d3d4d7; font-size: 9px; line-height: 1.5; text-decoration: none; }
html[data-poste-connexion] .connexion-cinema-credit:hover { color: #fff; }
html[data-poste-connexion] .connexion-video-toggle { position: absolute; z-index: 2; bottom: 16px; right: 20px; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .35); color: #fff; cursor: pointer; opacity: 0; }
html[data-poste-connexion] .connexion-cinema:hover .connexion-video-toggle,
html[data-poste-connexion] .connexion-video-toggle:focus-visible,
html[data-poste-connexion] .connexion-video-toggle[data-playing="false"] { opacity: 1; }
@media (hover: none) { html[data-poste-connexion] .connexion-video-toggle { opacity: 1; } }
html[data-poste-connexion] .connexion-video-toggle[hidden] { display: none; }
html[data-poste-connexion] .connexion-video-toggle:hover { background: rgba(255, 255, 255, .2); }
html[data-poste-connexion] .connexion-video-icone { width: 14px; height: 14px; background: currentColor; clip-path: polygon(23% 5%, 95% 50%, 23% 95%); }
html[data-poste-connexion] .connexion-video-toggle[data-playing="true"] .connexion-video-icone { clip-path: polygon(14% 10%, 36% 10%, 36% 90%, 14% 90%, 14% 10%, 64% 10%, 86% 10%, 86% 90%, 64% 90%, 64% 10%); }
html[data-poste-connexion] .connexion-acces,
html[data-poste-connexion] .connexion-carte { min-width: 0; }
html[data-poste-connexion] .connexion-acces { box-sizing: border-box; width: 100%; max-width: 320px; justify-self: center; margin: 0; padding-block: 16px; }
html[data-poste-connexion] .connexion-choix { display: flex; gap: 28px; padding: 0; margin-bottom: 20px; border-radius: 0; background: transparent; }
html[data-poste-connexion] .connexion-choix[hidden] { display: none; }
html[data-poste-connexion] .connexion-choix button {
  min-width: 0; min-height: 42px; padding: 10px 0; border: 0; border-radius: 0; text-align: left;
  color: var(--connexion-secondaire); background: transparent; font: 400 13px/1.5 var(--oaa-police); cursor: pointer;
  transition: color .15s, background .15s, border-color .15s;
}
html[data-poste-connexion] .connexion-choix button[aria-pressed="true"] { background: transparent; color: var(--connexion-accent); font-weight: 600; }
html[data-poste-connexion] .connexion-choix button:hover { color: var(--connexion-encre); }
html[data-poste-connexion] :is(button, a, input):focus-visible { outline: 2px solid var(--connexion-accent); outline-offset: 4px; }
html[data-poste-connexion] .connexion-carte .licence-carte { padding: 0; margin: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
html[data-poste-connexion] #activation-details > summary,
html[data-poste-connexion] #volet-activation .sous-titre,
html[data-poste-connexion] #champ-serveur,
html[data-poste-connexion] #premiers-pas-prerequis,
html[data-poste-connexion] #volet-creation > h2,
html[data-poste-connexion] #volet-creation > p { display: none; }
html[data-poste-connexion] #volet-activation .repli-contenu { margin: 0; padding: 0; }
html[data-poste-connexion] .connexion-carte form { gap: 0; margin: 0; }
html[data-poste-connexion] .connexion-carte .champ { margin-bottom: 20px; }
html[data-poste-connexion] .connexion-carte label { color: var(--connexion-encre); font-size: 13px; font-weight: 500; }
html[data-poste-connexion] .champ-tete { gap: 12px; margin-bottom: 0; }
html[data-poste-connexion] .champ-tete label { margin-bottom: 0; }
html[data-poste-connexion] #afficher-cle { min-height: 24px; padding: 0; color: var(--connexion-secondaire); font-size: 12px; text-decoration: none; }
html[data-poste-connexion] #afficher-cle:hover { color: var(--connexion-accent); }
html[data-poste-connexion] :is(#cle, #creation-nom, #code-cree) {
  box-sizing: border-box; width: 100%; min-width: 0; height: 46px; padding: 0; border: 0; border-radius: 0;
  background: transparent; color: var(--connexion-encre); font: 16px var(--oaa-police);
  transition: border-color .15s, box-shadow .15s;
}
html[data-poste-connexion] .champ input:hover:not(:disabled):not(:focus) { background: transparent; }
html[data-poste-connexion] :is(#cle, #creation-nom, #code-cree)::placeholder { color: var(--connexion-secondaire); opacity: 1; }
html[data-poste-connexion] :is(#cle, #creation-nom, #code-cree):is(:focus, :focus-visible) { outline: 0; box-shadow: none; background-color: transparent; caret-color: var(--connexion-accent); }
html[data-poste-connexion] :is(#cle, #creation-nom, #code-cree):focus-visible { background-image: linear-gradient(var(--connexion-accent), var(--connexion-accent)); background-position: left bottom; background-size: 32px 2px; background-repeat: no-repeat; }
html[data-poste-connexion] .champ:has(input:focus-visible) label { color: var(--connexion-accent); }
html[data-poste-connexion] :is(#activer, #creer-compte, #connexion-suite .bouton) {
  box-sizing: border-box; display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 46px; margin-top: 0; padding: 12px 20px;
  border: 0; border-radius: 999px; background: var(--connexion-bouton); color: var(--connexion-sur-bouton); font: 600 13px/1.5 var(--oaa-police);
  white-space: normal; text-align: center; text-decoration: none; transition: filter .15s;
}
html[data-poste-connexion] :is(#activer, #creer-compte)::before { display: none; }
html[data-poste-connexion] :is(#activer, #creer-compte):not([aria-busy="true"])::after,
html[data-poste-connexion] #connexion-suite .bouton::after { content: ""; flex: none; width: 20px; height: 20px; border: 0; border-radius: 0; background: currentColor; opacity: 1;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h14m-6-6 6 6-6 6' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
html[data-poste-connexion] :is(#activer, #creer-compte, #connexion-suite .bouton):hover:not(:disabled) { background: var(--connexion-bouton); filter: brightness(1.06); box-shadow: none; transform: none; }
html[data-poste-connexion] #creation-resultat:not([hidden]) { display: grid; gap: 14px; }
html[data-poste-connexion] #code-cree { font-family: var(--oaa-police-mono); }
html[data-poste-connexion] #creation-resultat p { margin: 0; color: var(--connexion-secondaire); font-size: 12px; line-height: 1.7; }
html[data-poste-connexion] #copier-code { min-height: 44px; border: 0; border-radius: 0; background: transparent; color: var(--connexion-encre); }
html[data-poste-connexion] #connexion-suite .bouton { margin-top: 20px; }
html[data-poste-connexion] #connexion-reussie { margin: 0; color: var(--connexion-encre); font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
html[data-poste-connexion] #connexion-alertes #message,
html[data-poste-connexion] #connexion-alertes #erreur-statut,
html[data-poste-connexion] .connexion-reseau { margin: 0 0 20px; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--connexion-encre); font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
html[data-poste-connexion] #connexion-alertes #erreur-statut { color: var(--oaa-danger); }
html[data-poste-connexion] #connexion-alertes #verifier,
html[data-poste-connexion] #connexion-alertes #poste-reessayer { justify-content: flex-start; width: auto; min-height: 44px; margin-bottom: 20px; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--connexion-accent); text-align: left; white-space: normal; box-shadow: none; }
html[data-poste-connexion] #migration-poste { color: var(--connexion-secondaire); font-size: 12px; line-height: 1.7; }
html[data-poste-connexion] #remplacer-poste { margin-bottom: 18px; padding-inline: 0; border: 0; background: transparent; color: var(--connexion-accent); white-space: normal; }
html[data-poste-connexion] .connexion-pied { margin-top: 24px; padding-top: 0; border-top: 0; text-align: left; }
html[data-poste-connexion] .connexion-assistance { display: inline-flex; flex-wrap: wrap; justify-content: flex-start; gap: 4px; padding-block: 4px; color: var(--connexion-secondaire); font-size: 12px; line-height: 1.7; text-decoration: none; }
html[data-poste-connexion] .connexion-assistance strong { color: var(--connexion-encre); font-weight: 500; }
html[data-poste-connexion] .connexion-assistance:hover strong { color: var(--connexion-accent); }
@media (max-width: 959px) {
  html[data-poste-connexion] #espace-licence { width: calc(100% - 48px); min-height: 0; padding: 0 0 40px; }
  html[data-poste-connexion] #connexion-entree { display: block; padding: 0; }
  html[data-poste-connexion] .connexion-cinema { height: 320px; }
  html[data-poste-connexion] .connexion-cinema-legende { inset: auto 32px 48px; }
  html[data-poste-connexion] .connexion-cinema-titre { font-size: 44px; }
  html[data-poste-connexion] .connexion-cinema-credit { bottom: 20px; left: 32px; }
  html[data-poste-connexion] .connexion-acces { max-width: 304px; margin: 0 auto; padding: 28px 0 0; }
  html[data-poste-connexion] .connexion-choix { margin-bottom: 20px; }
}
@media (max-width: 600px) {
  html[data-poste-connexion] .vitrine-barre { width: calc(100% - 48px); min-height: 72px; gap: 12px; flex-wrap: nowrap; }
  html[data-poste-connexion] .vitrine-logo { --oaa-taille-symbole: 26px; --oaa-largeur-mot: 98px; gap: 7px; }
  html[data-poste-connexion] #espace-licence { width: calc(100% - 24px); padding-top: 0; padding-bottom: 32px; }
  html[data-poste-connexion] .connexion-cinema { height: 210px; border-radius: 12px; }
  html[data-poste-connexion] .connexion-cinema-legende { inset: auto 20px 44px; }
  html[data-poste-connexion] .connexion-cinema-titre { font-size: 24px; }
  html[data-poste-connexion] .connexion-cinema-repere { display: none; }
  html[data-poste-connexion] .connexion-cinema-credit { left: 20px; bottom: 18px; font-size: 9px; }
  html[data-poste-connexion] .connexion-video-toggle { bottom: 10px; right: 12px; }
  html[data-poste-connexion] .connexion-acces { max-width: 304px; padding: 24px 0 0; }
  html[data-poste-connexion] .oaa-theme-control button { min-width: 34px; min-height: 34px; padding: 7px; }
  html[data-poste-connexion] .oaa-theme-control button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  html[data-poste-connexion] .connexion-carte .champ { margin-bottom: 20px; }
  html[data-poste-connexion] .connexion-pied { margin-top: 24px; }
}
@media (max-width: 360px) {
  html[data-poste-connexion] .connexion-choix { gap: 28px; }
  html[data-poste-connexion] .connexion-choix button { font-size: 13px; }
}
@media (any-pointer: coarse) { html[data-poste-connexion] :is(#cle, #creation-nom, #code-cree) { font-size: 16px; } }
@media (prefers-reduced-motion: reduce) { html[data-poste-connexion] *, html[data-poste-connexion] *::before, html[data-poste-connexion] *::after { animation: none !important; transition: none !important; } }

/* Maintenance globale : présentation commune à l’écran, à la connexion et au bandeau administrateur. */
html[data-poste-maintenance] {
  --maint-fond: #f6f7f9;
  --maint-surface: #fff;
  --maint-encre: #20232b;
  --maint-secondaire: #646a76;
  --maint-accent: #7455a6;
  --maint-bord: #20232b14;
  --maint-subtil: #7455a60a;
  color-scheme: light;
}
html[data-poste-maintenance][data-theme="dark"] {
  --maint-fond: #0b0d12;
  --maint-surface: #11141b;
  --maint-encre: #f2f3f7;
  --maint-secondaire: #a4a9b5;
  --maint-accent: #c8b5ef;
  --maint-bord: #ffffff14;
  --maint-subtil: #c8b5ef0c;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  html[data-poste-maintenance]:not([data-theme="light"]) {
    --maint-fond: #0b0d12;
    --maint-surface: #11141b;
    --maint-encre: #f2f3f7;
    --maint-secondaire: #a4a9b5;
    --maint-accent: #c8b5ef;
    --maint-bord: #ffffff14;
    --maint-subtil: #c8b5ef0c;
    color-scheme: dark;
  }
}
html[data-poste-maintenance]:not([data-poste-maintenance-admin]):not([data-poste-maintenance-connexion]) {
  display: block !important;
  background: var(--maint-fond);
}
html[data-poste-maintenance]:not([data-poste-maintenance-admin]):not([data-poste-maintenance-connexion]) body {
  display: block !important;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  background: var(--maint-fond);
}
html[data-poste-maintenance]:not([data-poste-maintenance-admin]):not([data-poste-maintenance-connexion]) body > :not(#onrocky-maintenance) {
  display: none !important;
}
#onrocky-maintenance {
  --maint-fond: inherit;
  --maint-surface: inherit;
  --maint-encre: inherit;
  --maint-secondaire: inherit;
  --maint-accent: inherit;
  --maint-bord: inherit;
  --maint-subtil: inherit;
  box-sizing: border-box;
  position: relative;
  display: block;
  width: 100%;
  min-height: 100svh;
  padding: max(28px, env(safe-area-inset-top)) max(28px, env(safe-area-inset-right)) max(40px, env(safe-area-inset-bottom)) max(28px, env(safe-area-inset-left));
  background: var(--maint-fond);
  color: var(--maint-encre);
  font-family: "Avenir Next", Avenir, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  text-align: left;
  -webkit-font-smoothing: antialiased;
}
#onrocky-maintenance *, #onrocky-maintenance *::before, #onrocky-maintenance *::after {
  box-sizing: border-box;
}
#onrocky-maintenance .maintenance-poste-disposition {
  display: block;
  width: min(100%, 1080px);
  margin: 0 auto;
}
#onrocky-maintenance .maintenance-poste-carte {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow-wrap: anywhere;
}
#onrocky-maintenance .maintenance-poste-introduction,
#onrocky-maintenance .maintenance-poste-reprise { display: contents; min-width: 0; }
#onrocky-maintenance .maintenance-poste-entete {
  order: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  min-height: 0;
  flex-direction: row;
  margin: 0 0 64px;
}
#onrocky-maintenance .maintenance-poste-marque {
  margin: 0;
  color: var(--maint-encre);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -.055em;
}
#onrocky-maintenance .maintenance-poste-statut {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--maint-secondaire);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: none;
}
#onrocky-maintenance .maintenance-poste-statut::before {
  content: "";
  flex: none;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--maint-accent);
  box-shadow: none;
}
#onrocky-maintenance h1 {
  order: 1;
  max-width: 12ch;
  margin: 0 0 18px;
  color: var(--maint-encre);
  font-size: 40px;
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -.055em;
  text-wrap: balance;
}
#onrocky-maintenance h1:focus { outline: none; }
#onrocky-maintenance .maintenance-poste-message {
  order: 2;
  max-width: 38ch;
  margin: 0 0 34px;
  color: var(--maint-secondaire);
  font-size: 16px;
  line-height: 1.7;
}
#onrocky-maintenance .maintenance-poste-legende {
  order: 3;
  margin: 0 0 12px;
  color: var(--maint-secondaire);
  font-size: 12px;
  letter-spacing: 0;
}
#onrocky-maintenance .maintenance-poste-temps {
  order: 4;
  margin: 0 0 22px;
  color: var(--maint-accent);
  font-size: 72px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
  letter-spacing: -.06em;
}
#onrocky-maintenance .maintenance-poste-progression { order: 5; width: 100%; max-width: 390px; margin: 0 0 32px; }
#onrocky-maintenance .maintenance-poste-progress-label {
  margin: 0 0 12px;
  color: var(--maint-secondaire);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}
#onrocky-maintenance progress {
  display: block;
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 3px;
  overflow: hidden;
  border: 0;
  border-radius: 3px;
  background: var(--maint-bord);
  accent-color: var(--maint-accent);
}
#onrocky-maintenance progress::-webkit-progress-bar { background: var(--maint-bord); }
#onrocky-maintenance progress::-webkit-progress-value { background: var(--maint-accent); }
#onrocky-maintenance progress::-moz-progress-bar { background: var(--maint-accent); }
#onrocky-maintenance .maintenance-poste-activite {
  order: 6;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--maint-accent);
  font-size: 13px;
  line-height: 1.6;
}
#onrocky-maintenance .maintenance-poste-pulsation {
  flex: none;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
#onrocky-maintenance .maintenance-poste-pulsation::after { content: none; }
#onrocky-maintenance .maintenance-poste-detail {
  order: 7;
  max-width: 48ch;
  margin: 0 0 18px;
  color: var(--maint-secondaire);
  font-size: 13px;
  line-height: 1.75;
}
#onrocky-maintenance .maintenance-poste-admin {
  order: 8;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 44px;
  width: fit-content;
  padding: 10px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--maint-accent);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  text-align: left;
  gap: 12px;
  text-decoration: none;
}
#onrocky-maintenance .maintenance-poste-admin::after { content: ""; flex: none; width: 17px; height: 17px; background: currentColor; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h14m-6-6 6 6-6 6' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
#onrocky-maintenance .maintenance-poste-admin:hover { background: transparent; color: var(--maint-encre); }
#onrocky-maintenance a:focus-visible { outline: 2px solid var(--maint-accent); outline-offset: 4px; }
#onrocky-maintenance .maintenance-poste-visuel,
#onrocky-maintenance .maintenance-poste-atmosphere { display: none !important; }
#onrocky-maintenance [hidden] { display: none !important; }

@media (min-width: 600px) and (max-width: 959px) {
  #onrocky-maintenance { padding: 40px 48px 56px; }
  #onrocky-maintenance .maintenance-poste-disposition { max-width: 680px; }
  #onrocky-maintenance .maintenance-poste-entete { margin-bottom: 80px; }
  #onrocky-maintenance h1 { font-size: 52px; }
  #onrocky-maintenance .maintenance-poste-temps { font-size: 88px; }
}
@media (min-width: 960px) {
  #onrocky-maintenance { padding: 40px max(48px, env(safe-area-inset-right)) 64px max(48px, env(safe-area-inset-left)); }
  #onrocky-maintenance .maintenance-poste-carte {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    column-gap: 100px;
    row-gap: clamp(88px, 14vh, 148px);
    align-items: center;
  }
  #onrocky-maintenance .maintenance-poste-entete { grid-column: 1 / -1; margin: 0; }
  #onrocky-maintenance .maintenance-poste-introduction,
  #onrocky-maintenance .maintenance-poste-reprise { display: block; }
  #onrocky-maintenance .maintenance-poste-introduction { grid-column: 1; }
  #onrocky-maintenance .maintenance-poste-reprise { grid-column: 2; }
  #onrocky-maintenance h1 { margin-bottom: 24px; font-size: 64px; }
  #onrocky-maintenance .maintenance-poste-message { margin-bottom: 36px; }
  #onrocky-maintenance .maintenance-poste-legende { margin-bottom: 16px; font-size: 13px; }
  #onrocky-maintenance .maintenance-poste-temps { margin-bottom: 32px; font-size: clamp(72px, 9vw, 100px); }
  #onrocky-maintenance .maintenance-poste-progression { margin: 0; }
}
html[data-poste-maintenance]:not([data-poste-maintenance-admin]):not([data-poste-maintenance-connexion]) #onrocky-maintenance .maintenance-poste-reprise:has(.maintenance-poste-progression[hidden]) .maintenance-poste-temps {
  max-width: 16ch;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.2;
  letter-spacing: -.04em;
}

/* La connexion et l’administration gardent leurs contrôles accessibles. */
html:is([data-poste-maintenance-admin], [data-poste-maintenance-connexion]) #onrocky-maintenance {
  display: block;
  min-height: 0;
  padding: 20px max(20px, env(safe-area-inset-right)) 0 max(20px, env(safe-area-inset-left));
  border: 0;
  background: var(--maint-fond);
}
html:is([data-poste-maintenance-admin], [data-poste-maintenance-connexion]) #onrocky-maintenance .maintenance-poste-carte {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 110px); column-gap: 24px; row-gap: 0; align-items: start;
  padding: 14px 0; border: 0; border-radius: 0; background: transparent; box-shadow: none;
}
html:is([data-poste-maintenance-admin], [data-poste-maintenance-connexion]) #onrocky-maintenance .maintenance-poste-introduction,
html:is([data-poste-maintenance-admin], [data-poste-maintenance-connexion]) #onrocky-maintenance .maintenance-poste-reprise { display: contents; }
html:is([data-poste-maintenance-admin], [data-poste-maintenance-connexion]) #onrocky-maintenance .maintenance-poste-entete,
html:is([data-poste-maintenance-admin], [data-poste-maintenance-connexion]) #onrocky-maintenance .maintenance-poste-progression,
html:is([data-poste-maintenance-admin], [data-poste-maintenance-connexion]) #onrocky-maintenance .maintenance-poste-activite { display: none; }
html:is([data-poste-maintenance-admin], [data-poste-maintenance-connexion]) #onrocky-maintenance h1 { grid-column: 1; grid-row: 1; max-width: none; margin: 0 0 6px; font-size: 16px; line-height: 1.4; letter-spacing: -.025em; }
html:is([data-poste-maintenance-admin], [data-poste-maintenance-connexion]) #onrocky-maintenance .maintenance-poste-message { grid-column: 1; grid-row: 2; max-width: none; margin: 0; font-size: 12px; }
html:is([data-poste-maintenance-admin], [data-poste-maintenance-connexion]) #onrocky-maintenance .maintenance-poste-legende { grid-column: 2; grid-row: 1; margin: 0 0 6px; font-size: 10px; }
html:is([data-poste-maintenance-admin], [data-poste-maintenance-connexion]) #onrocky-maintenance .maintenance-poste-temps { grid-column: 2; grid-row: 2; margin: 0; font-size: 23px; line-height: 1.2; letter-spacing: -.04em; }
html:is([data-poste-maintenance-admin], [data-poste-maintenance-connexion]) #onrocky-maintenance .maintenance-poste-reprise:has(.maintenance-poste-progression[hidden]) .maintenance-poste-temps { max-width: 110px; font-size: 12px; line-height: 1.5; letter-spacing: 0; }
html:is([data-poste-maintenance-admin], [data-poste-maintenance-connexion]) #onrocky-maintenance .maintenance-poste-detail { grid-column: 1 / -1; grid-row: 3; max-width: none; margin: 12px 0 4px; font-size: 11px; }
html:is([data-poste-maintenance-admin], [data-poste-maintenance-connexion]) #onrocky-maintenance .maintenance-poste-admin { grid-column: 1 / -1; grid-row: 4; min-height: 36px; font-size: 11px; }
html[data-poste-maintenance-admin] #onrocky-maintenance .maintenance-poste-disposition { max-width: 1080px; width: 100%; }
html[data-poste-maintenance-admin] #onrocky-maintenance .maintenance-poste-admin { width: fit-content; min-width: 0; }
html[data-poste-maintenance-connexion][data-poste-connexion] #espace-licence { min-height: 0; padding-top: 24px; padding-bottom: 56px; }
@media (max-width: 480px) {
  #onrocky-maintenance .maintenance-poste-entete { gap: 10px; }
  #onrocky-maintenance .maintenance-poste-statut { font-size: 10px; }
  html:is([data-poste-maintenance-admin], [data-poste-maintenance-connexion]) #onrocky-maintenance { padding-left: 28px; padding-right: 28px; }
  html:is([data-poste-maintenance-admin], [data-poste-maintenance-connexion]) #onrocky-maintenance .maintenance-poste-carte { column-gap: 16px; }
}
@media (forced-colors: active) {
  #onrocky-maintenance a:focus-visible { outline-color: Highlight; }
  #onrocky-maintenance .maintenance-poste-statut::before,
  #onrocky-maintenance .maintenance-poste-pulsation { background: CanvasText; }
}
#onrocky-maintenance, #onrocky-maintenance *, #onrocky-maintenance *::before, #onrocky-maintenance *::after {
  animation: none !important;
  transition: none !important;
}

/* Téléphone : adaptation ciblée, sans changement du poste ordinateur. */
@media (max-width: 600px) {
  [data-theme-control] .oaa-theme-control button { width: 44px; height: 44px; min-width: 44px; min-height: 44px; }
  body:has(#sauvegarde-auto-active) .vitrine-liens .bouton.fantome, body:has(#sauvegarde-auto-active) #fichier { min-height: 44px; }
  html[data-poste-connexion] .oaa-theme-control button { min-width: 44px; min-height: 44px; }
  html[data-poste-connexion] .connexion-video-toggle { width: 44px; height: 44px; }
  html[data-poste-connexion] .connexion-choix button, html[data-poste-connexion] .connexion-assistance { min-height: 44px; }
  html[data-poste-connexion] #afficher-cle { min-height: 44px; }
  html[data-poste-connexion] #espace-licence { padding-bottom: max(32px, env(safe-area-inset-bottom)); }
  html[data-poste-connexion] :is(#cle, #creation-nom, #code-cree) { scroll-margin-block: 20px; }
  #onrocky-maintenance .maintenance-poste-admin { min-height: 44px; }
  html:is([data-poste-maintenance-admin], [data-poste-maintenance-connexion]) #onrocky-maintenance .maintenance-poste-admin { min-height: 44px; }
}
