/* ATLAS · page Analyse : tableau de bord intégré sans double défilement, thème clair et sombre */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.an-page { --an-bg: #0A0F1E; background: var(--an-bg); }
html[data-theme="light"] .an-page { --an-bg: #F4F6FB; }

/* Le cadre prend la hauteur de son contenu (js/analyse.js) : une seule barre de défilement */
.an-page .an-frame { position: relative; height: auto !important; min-height: 70vh; background: var(--an-bg) !important; overflow: visible; }
.an-page .an-frame iframe { position: relative !important; inset: auto !important; display: block; width: 100%; height: 1800px; border: 0; background: var(--an-bg) !important; }
.an-page .an-frame:fullscreen { height: 100vh !important; overflow: hidden; }
.an-page .an-frame:fullscreen iframe { height: 100% !important; }
.an-page .an-loader { position: absolute; inset: 0 0 auto 0; top: 80px; z-index: 2; color: #94A3C4; }
.an-page .an-loader.done { opacity: 0; pointer-events: none; }
.an-page #lecture { background: var(--an-bg); }
/* Sections fusionnées (enseignes, comparateur, atelier, méthodologie) : fond du site, clair ou sombre */
html[data-theme="light"] .an-page .pg-section:not(#lecture) { background-color: #fff; }
html[data-theme="light"] .an-page .pg-section.alt { background-color: #F4F6FB; }

/* Boutons posés sur l'en-tête du tableau de bord */
.an-page .an-float { position: absolute; top: 30px; right: max(20px, calc((100% - 1180px) / 2 + 18px)); z-index: 3; display: flex; gap: 10px; }
html[dir=rtl] .an-page .an-float { right: auto; left: max(20px, calc((100% - 1180px) / 2 + 18px)); }
.an-page .an-float .btn { border-radius: 12px; padding: 10px 16px; font-weight: 600; font-size: 14px; min-height: 0; }
.an-page .an-float .btn-accent { background: linear-gradient(135deg, #5B7CFF, #8B5CF6); border: 0; color: #fff; box-shadow: 0 10px 24px -10px rgba(91, 124, 255, .8); }
.an-page .an-float .btn-outline { background: rgba(255, 255, 255, .05); border: 1px solid rgba(148, 163, 196, .3); color: #EEF2FF; }
.an-page .an-float .btn-outline:hover { background: rgba(255, 255, 255, .1); }
html[data-theme="light"] .an-page .an-float .btn-outline { background: #fff; color: #0F172A; border-color: rgba(15, 23, 42, .14); }
html[data-theme="light"] .an-page .an-float .btn-outline:hover { background: #F1F4FA; }
.an-page .an-frame:fullscreen .an-float { top: 14px; }

@media (max-width: 700px) {
  .an-page .an-float { display: none; } /* plein écran peu utile sur téléphone */
}

/* calculateur du risque d'audit (séance du 7 novembre 2026) */
.ra-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 18px 0; }
.ra-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; }
.ra-form select { padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(15, 23, 42, .15); background: #fff; font: inherit; color: #0F172A; }
.ra-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.ra-mx td, .ra-mx th { text-align: center; } .ra-mx td.on { background: #1F4FD8 !important; color: #fff; font-weight: 700; }
.ra-out { display: grid; gap: 10px; }
.ra-card { border: 1px solid rgba(15, 23, 42, .1); border-radius: 14px; padding: 12px 14px; background: #fff; }
.ra-card small { display: block; font-size: 12px; color: #55627D; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.ra-card b { display: block; font-size: 24px; color: #0A1F4A; margin: 2px 0; } .ra-card span { font-size: 13px; color: #55627D; }
.ra-ex { display: flex; flex-wrap: wrap; gap: 8px; }
html[data-theme="dark"] .ra-form select, html[data-theme="dark"] .ra-card { background: #10182C; color: #EEF2FF; border-color: rgba(148, 163, 196, .2); }
html[data-theme="dark"] .ra-card b { color: #EEF2FF; } html[data-theme="dark"] .ra-card small, html[data-theme="dark"] .ra-card span { color: #94A3C4; }
@media (max-width: 760px) { .ra-form, .ra-grid { grid-template-columns: 1fr; } }
