/* Audit DYNAMAP SI - charte : bleu nuit #071430 du site dynamap.fr, accent ambre pour les appels à l'action.
   Polices système : aucune requête tierce, affichage immédiat. Modifiez les variables ci-dessous pour ajuster la charte. */
/* ---------- Charte : couleurs, rayon, largeur, police ---------- */
:root {
    --navy: #071430;
    --navy-2: #0d2147;
    --navy-3: #2b4a86;
    --ink: #101a33;
    --muted: #4b5a78;
    --line: #d6deec;
    --bg: #f4f6fb;
    --card: #ffffff;
    --blue: #1d4ed8;
    --blue-soft: #e8eefc;
    --amber: #f5b000;
    --amber-dark: #d99a00;
    --amber-ink: #1a1200;
    --amber-soft: #fff6dc;
    --bad: #b42318;
    --warn: #c2570c;
    --radius: 10px;
    --wrap: 1120px;
    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Couleurs des niveaux de maturité (1 = initial, 5 = optimisé) ----------
   Les gabarits n'écrivent que la classe .lv-N ; les couleurs ne sont définies qu'ici.
   Le rapport PDF a sa propre copie dans src/pdf/report_style.php (RP_LEVEL_COLORS) : gardez-les identiques. */
.lv-0 {
    --lv: #5b6578;
}

.lv-1 {
    --lv: #b42318;
}

.lv-2 {
    --lv: #c2570c;
}

.lv-3 {
    --lv: #946200;
}

.lv-4 {
    --lv: #2f7d4f;
}

.lv-5 {
    --lv: #0f766e;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--ink);
    background: #fff;
}

img,
svg {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--blue);
    text-underline-offset: 0.18em;
}

a:hover {
    color: #1236a8;
}

:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 2px;
    border-radius: 3px;
}

h1,
h2,
h3 {
    line-height: 1.2;
    letter-spacing: -0.015em;
    margin: 0 0 0.6em;
    color: var(--navy);
}

h1 {
    font-size: clamp(1.9rem, 4.4vw, 2.9rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(1.4rem, 2.8vw, 1.85rem);
    font-weight: 750;
}

h3 {
    font-size: 1.2rem;
    font-weight: 700;
}

p {
    margin: 0 0 1em;
}

ul,
ol {
    margin: 0 0 1em;
    padding-left: 1.3em;
}

.muted {
    color: var(--muted);
}

.small {
    font-size: 0.9rem;
}

.center {
    text-align: center;
}

.hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.skip {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--amber);
    color: var(--amber-ink);
    padding: 0.6rem 1rem;
    z-index: 100;
    font-weight: 700;
}

.skip:focus {
    left: 0.5rem;
    top: 0.5rem;
}

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 20px;
}

.wrap--narrow {
    max-width: 800px;
}

/* ---------- barre de contact + en-tête ---------- */
.topbar {
    background: #04102a;
    color: #c9d5ef;
    font-size: 0.875rem;
}

.topbar__in {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    padding-top: 7px;
    padding-bottom: 7px;
    flex-wrap: wrap;
}

.topbar__msg {
    margin: 0;
}

.topbar__links {
    display: flex;
    gap: 18px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.topbar a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.topbar a:hover {
    text-decoration: underline;
    color: var(--amber);
}

.topbar :focus-visible,
.site-header :focus-visible,
.hero :focus-visible,
.cta-band :focus-visible,
.site-footer :focus-visible {
    outline-color: var(--amber);
}

.site-header {
    background: var(--navy);
    color: #fff;
    border-bottom: 1px solid #14295a;
}

.site-header__in {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 14px;
    padding-bottom: 14px;
    flex-wrap: wrap;
}

.logo {
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
}

.logo b {
    color: var(--amber);
}

.logo__sub {
    font-size: 0.75rem;
    font-weight: 600;
    color: #aab8d6;
    letter-spacing: 0.04em;
    margin-left: 6px;
    border-left: 1px solid #2b4a86;
    padding-left: 10px;
}

.nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 20px;
}

.nav a {
    color: #dce5fa;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.97rem;
    padding: 4px 0;
}

.nav a:hover {
    color: var(--amber);
}

/* ---------- boutons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 0.65rem 1.2rem;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    line-height: 1.2;
    text-align: center;
    transition: background-color .15s, border-color .15s, color .15s;
}

.btn--lg {
    padding: 0.9rem 1.6rem;
    font-size: 1.1rem;
}

.btn--sm {
    padding: 0.45rem 0.9rem;
    font-size: 0.93rem;
}

.btn--block {
    display: flex;
    width: 100%;
}

.btn--amber {
    background: var(--amber);
    color: var(--amber-ink);
}

.btn--amber:hover {
    background: var(--amber-dark);
    color: var(--amber-ink);
}

.btn--navy {
    background: var(--navy);
    color: #fff;
}

.btn--navy:hover {
    background: var(--navy-2);
    color: #fff;
}

.btn--light {
    background: #fff;
    color: var(--navy);
}

.btn--light:hover {
    background: #e8eefc;
    color: var(--navy);
}

.btn--ghost {
    background: transparent;
    color: var(--navy);
    border-color: var(--navy);
}

.btn--ghost:hover {
    background: var(--blue-soft);
    color: var(--navy);
}

.btn--outline-light {
    background: transparent;
    color: #fff;
    border-color: #5870a3;
}

.btn--outline-light:hover {
    border-color: #fff;
    color: #fff;
}

.btn-link {
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    color: var(--blue);
    text-decoration: underline;
    cursor: pointer;
    text-underline-offset: 0.18em;
}

.start-form {
    display: inline-block;
    margin: 0;
}

/* ---------- sections ---------- */
.section {
    padding: clamp(40px, 6vw, 72px) 0;
}

.section--alt {
    background: var(--bg);
}

.section__title {
    margin-bottom: 0.4em;
}

.section__lead {
    color: var(--muted);
    max-width: 70ch;
    margin-bottom: 1.6em;
}

.page {
    padding: 28px 0 56px;
}

.lead {
    font-size: 1.2rem;
    color: var(--muted);
    max-width: 68ch;
}

.grid {
    display: grid;
    gap: 20px;
}

.grid--2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid--4 {
    grid-template-columns: repeat(4, 1fr);
}

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
}

.ticks {
    list-style: none;
    padding: 0;
}

.ticks li {
    position: relative;
    padding-left: 1.7em;
    margin-bottom: 0.5em;
}

.ticks li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.45em;
    width: 0.9em;
    height: 0.5em;
    border-left: 3px solid var(--blue);
    border-bottom: 3px solid var(--blue);
    transform: rotate(-45deg) scale(0.9);
}

.crumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0 0 18px;
    font-size: 0.9rem;
    color: var(--muted);
}

.crumbs li + li::before {
    content: "/";
    margin-right: 6px;
    color: #94a1bb;
}

.crumbs a {
    color: var(--muted);
}

/* ---------- héros ---------- */
.hero {
    background: var(--navy);
    color: #e8eefb;
    background-image: repeating-radial-gradient(circle at 80% 46%, transparent 0 48px, rgba(43, 74, 134, 0.3) 48px 49px);
}

.hero__grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 32px;
    align-items: center;
    padding-top: clamp(40px, 6vw, 80px);
    padding-bottom: clamp(40px, 6vw, 80px);
}

.hero h1 {
    color: #fff;
    max-width: 17ch;
}

.hero__lead {
    font-size: 1.2rem;
    color: #c9d5ef;
    max-width: 52ch;
}

.hero__actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin: 26px 0 18px;
    align-items: center;
}

.hero__proof {
    color: #aab8d6;
    font-size: 0.95rem;
    margin: 0;
}

.hero__chart {
    margin: 0;
}

.hero__chart figcaption {
    text-align: center;
    font-size: 0.85rem;
    color: #aab8d6;
    margin-top: 6px;
}

/* ---------- radar ---------- */
.radar {
    width: 100%;
    height: auto;
    display: block;
}

.radar__ring {
    fill: none;
    stroke: #d0d8e8;
    stroke-width: 1;
}

.radar__ring--outer {
    stroke: #aebbd5;
    stroke-width: 1.5;
}

.radar__axis {
    stroke: #d0d8e8;
    stroke-width: 1;
}

.radar__label {
    fill: #101a33;
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font);
}

.radar__tick {
    fill: #6b7a99;
    font-size: 10px;
    font-family: var(--font);
}

.radar__shape {
    fill: rgba(29, 78, 216, 0.18);
    stroke: #1d4ed8;
    stroke-width: 2.5;
    stroke-linejoin: round;
}

.radar__dot {
    fill: #1d4ed8;
    stroke: #fff;
    stroke-width: 1.5;
}

.radar--dark .radar__ring {
    stroke: #2b4a86;
}

.radar--dark .radar__ring--outer {
    stroke: #3d5e9f;
}

.radar--dark .radar__axis {
    stroke: #2b4a86;
}

.radar--dark .radar__label {
    fill: #dce5fa;
}

.radar--dark .radar__tick {
    fill: #7f93bd;
}

.radar--dark .radar__shape {
    fill: rgba(245, 176, 0, 0.22);
    stroke: var(--amber);
}

.radar--dark .radar__dot {
    fill: var(--amber);
    stroke: var(--navy);
}

/* ---------- cartes de durée et de thèmes ---------- */
.mode-card {
    display: flex;
    flex-direction: column;
}

.mode-card h3 {
    margin-bottom: 4px;
}

.mode-card__time {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    color: var(--navy);
    margin: 8px 0 2px;
}

.mode-card__time span {
    font-size: 1rem;
    font-weight: 600;
    color: var(--muted);
}

.mode-card__meta {
    color: var(--muted);
    font-size: 0.95rem;
}

.mode-card .ticks {
    flex: 1;
}

.mode-card__actions {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.theme-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-decoration: none;
    color: var(--ink);
    transition: border-color .15s, box-shadow .15s;
}

.theme-card:hover {
    border-color: var(--blue);
    box-shadow: 0 2px 0 var(--blue);
    color: var(--ink);
}

.theme-card__phase {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--blue);
}

.theme-card__title {
    font-size: 1.15rem;
    font-weight: 750;
    color: var(--navy);
    line-height: 1.25;
}

.theme-card__text {
    font-size: 0.93rem;
    color: var(--muted);
}

.theme-row h2 {
    font-size: 1.4rem;
    margin-bottom: 0.3em;
}

.theme-row h2 a {
    color: var(--navy);
    text-decoration: none;
}

.theme-row h2 a:hover {
    text-decoration: underline;
}

.steps {
    counter-reset: s;
    list-style: none;
    padding: 0;
    display: grid;
    gap: 14px;
    max-width: 760px;
}

.steps li {
    counter-increment: s;
    position: relative;
    padding-left: 52px;
}

.steps li::before {
    content: counter(s);
    position: absolute;
    left: 0;
    top: -2px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--navy);
    color: #fff;
    font-weight: 800;
    display: grid;
    place-items: center;
}

.fw {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}

.fw__list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--line);
}

.fw__list li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}

.fw__list span {
    color: var(--muted);
    text-align: right;
}

.privacy-band {
    max-width: 800px;
}

.faq details {
    border-bottom: 1px solid var(--line);
    padding: 14px 0;
}

.faq summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--navy);
}

.faq details p {
    margin: 10px 0 0;
    color: var(--muted);
}

/* ---------- pages de contenu ---------- */
.prose h2 {
    margin-top: 1.6em;
}

.prose ul {
    margin-bottom: 1.2em;
}

.theme-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 40px;
    align-items: start;
    margin-bottom: 40px;
}

.theme-layout__side {
    display: grid;
    gap: 18px;
    position: sticky;
    top: 16px;
}

.sections-list li {
    margin-bottom: 0.3em;
}

.quotes {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 10px;
}

.quotes li {
    border-left: 4px solid var(--amber);
    background: var(--bg);
    padding: 12px 16px;
    border-radius: 0 8px 8px 0;
}

.start-panel fieldset {
    border: 0;
    padding: 0;
    margin: 0 0 16px;
}

.start-panel legend {
    font-weight: 700;
    margin-bottom: 8px;
    padding: 0;
}

.radio-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 10px;
    cursor: pointer;
}

.radio-row input {
    margin-top: 0.4em;
    accent-color: var(--navy);
    width: 18px;
    height: 18px;
}

.chips {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.chips a {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    text-decoration: none;
    background: #fff;
    font-size: 0.95rem;
}

.chips a:hover {
    border-color: var(--blue);
}

.table-wrap {
    overflow-x: auto;
    margin-bottom: 1.2em;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.97rem;
}

.table th,
.table td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

.table thead th {
    background: var(--bg);
    font-weight: 700;
    color: var(--navy);
}

.table tr.is-current {
    background: var(--amber-soft);
}

.contact-card__name {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 2px;
}

.contact-card__list {
    list-style: none;
    padding: 0;
}

.sitemap-list li {
    margin-bottom: 0.4em;
}

/* ---------- encarts publicitaires (boutique) ---------- */
.promo {
    background: var(--amber-soft);
    border: 1px solid #ecd08a;
    border-left: 6px solid var(--amber);
    border-radius: var(--radius);
    padding: 16px 18px;
}

.promo__tag {
    margin: 0 0 4px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #7a5a00;
    letter-spacing: 0.02em;
}

.promo__title {
    margin: 0 0 6px;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--navy);
    line-height: 1.25;
}

.promo__text {
    margin: 0 0 12px;
    font-size: 0.95rem;
    color: #3c3a33;
}

.promo--inline {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    padding: 10px 14px;
    margin-bottom: 14px;
}

.promo--inline .promo__tag,
.promo--inline .promo__text {
    display: none;
}

.promo--inline .promo__title {
    margin: 0;
    flex: 1;
    font-size: 0.98rem;
    min-width: 12ch;
}

.promo-grid {
    margin-bottom: 36px;
}

.promo-grid .promo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.promo-grid .promo__text {
    flex: 1;
}

/* ---------- bandeau de contact ---------- */
.cta-band {
    background: var(--navy);
    color: #e8eefb;
    background-image: repeating-radial-gradient(circle at 12% 120%, transparent 0 40px, rgba(43, 74, 134, 0.28) 40px 41px);
}

.cta-band__in {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 32px;
    align-items: center;
    padding-top: 48px;
    padding-bottom: 48px;
}

.cta-band h2 {
    color: #fff;
}

.cta-band p {
    color: #c9d5ef;
}

.cta-band__actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
}

.cta-band__links {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin: 4px 0 0;
}

.cta-band__links a {
    color: #fff;
    font-weight: 600;
}

/* ---------- pied de page ---------- */
.site-footer {
    background: #04102a;
    color: #b9c6e3;
    padding-top: 44px;
    font-size: 0.95rem;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 1.3fr 1.2fr 1.1fr 1.1fr 1.2fr;
    gap: 28px;
    padding-bottom: 28px;
}

.site-footer__brand {
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
}

.site-footer__brand b {
    color: var(--amber);
}

.site-footer__title {
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer li {
    margin-bottom: 6px;
}

.site-footer a {
    color: #dce5fa;
}

.site-footer a:hover {
    color: var(--amber);
}

.site-footer__legal {
    border-top: 1px solid #14295a;
    padding-top: 16px;
    padding-bottom: 28px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 0.88rem;
}

.site-footer__legal p {
    margin: 0;
}

.help-fab {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 50;
    background: var(--navy);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    padding: 12px 18px;
    border-radius: 999px;
    box-shadow: 0 4px 18px rgba(7, 20, 48, 0.35);
    border: 2px solid var(--amber);
    font-size: 0.95rem;
    line-height: 1.25;
    max-width: calc(100vw - 36px);
}

.help-fab span {
    font-weight: 500;
    color: #c9d5ef;
    display: block;
    font-size: 0.8rem;
}

.help-fab:hover {
    color: #fff;
    background: var(--navy-2);
}

/* ---------- page d'audit ---------- */
.audit {
    background: var(--bg);
    padding: 28px 0 90px;
}

.audit-head {
    margin-bottom: 24px;
}

.audit-head__step {
    font-weight: 700;
    color: var(--blue);
    margin-bottom: 4px;
}

.audit-head h1 {
    font-size: clamp(1.6rem, 3.6vw, 2.3rem);
}

.audit-head__intro {
    color: var(--muted);
    max-width: 75ch;
}

.stepper {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 14px 0;
}

.stepper li {
    font-size: 0.85rem;
    padding: 3px 11px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--line);
    color: var(--muted);
}

.stepper li.is-done {
    background: var(--blue-soft);
    border-color: #b9c8f2;
    color: var(--navy);
}

.stepper li.is-current {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
    font-weight: 700;
}

.progress {
    height: 10px;
    background: #dfe6f4;
    border-radius: 6px;
    overflow: hidden;
}

.progress span {
    display: block;
    width: calc(var(--pct, 0) * 1%);
    height: 100%;
    background: var(--blue);
    border-radius: 6px;
}

.audit-head__meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 0.92rem;
    color: var(--muted);
    margin-top: 8px;
}

.audit__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 32px;
    align-items: start;
}

.audit__aside {
    display: grid;
    gap: 18px;
    position: sticky;
    top: 16px;
}

.audit-form {
    counter-reset: q;
}

.org-field {
    margin-bottom: 18px;
}

.org-field label {
    display: block;
    font-weight: 700;
    margin-bottom: 6px;
}

.org-field input {
    width: 100%;
    padding: 0.65rem 0.8rem;
    border: 1.5px solid #b4c0d8;
    border-radius: 8px;
    font: inherit;
}

.q-section {
    margin: 28px 0;
}

.q-section > h2 {
    font-size: 1.35rem;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--navy);
    margin-bottom: 14px;
}

.q {
    counter-increment: q;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px 18px 18px;
    margin: 0 0 14px;
    min-width: 0;
}

.q__text {
    float: left;
    width: 100%;
    padding: 0;
    margin: 0 0 12px;
    font-weight: 650;
    color: var(--navy);
    line-height: 1.45;
}

.q__text::before {
    content: counter(q) ". ";
    color: var(--blue);
    font-weight: 800;
}

.opts {
    clear: both;
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.opt__input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.opt {
    padding: 8px 16px;
    border: 1.5px solid #b4c0d8;
    border-radius: 999px;
    background: #fff;
    cursor: pointer;
    font-size: 0.97rem;
    font-weight: 600;
    color: var(--ink);
    user-select: none;
    transition: background-color .12s, border-color .12s, color .12s;
}

.opt:hover {
    border-color: var(--navy);
    background: var(--bg);
}

.opt__input:focus-visible + .opt {
    outline: 3px solid var(--blue);
    outline-offset: 2px;
}

.opt__input:checked + .opt {
    color: #fff;
    border-color: transparent;
}

.opt__input:checked + .opt--3 {
    background: #1d4ed8;
}

.opt__input:checked + .opt--2 {
    background: #3b64d8;
}

.opt__input:checked + .opt--1 {
    background: #c2570c;
}

.opt__input:checked + .opt--0 {
    background: #b42318;
}

.opt__input:checked + .opt--x {
    background: #5b6578;
}

.part-nav {
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
    margin: 26px 0 8px;
}

.help-card__title {
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 4px;
}

.help-card__links {
    font-size: 0.93rem;
    margin-bottom: 0;
}

/* ---------- résultats ---------- */
.results {
    padding: 28px 0 56px;
    background: var(--bg);
}

.results-head__meta {
    color: var(--muted);
}

.notice {
    background: var(--amber-soft);
    border: 1px solid #ecd08a;
    border-radius: 8px;
    padding: 10px 14px;
}

.score-hero {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 28px;
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 28px;
    margin: 22px 0 36px;
}

.score-big {
    font-size: clamp(4.2rem, 11vw, 6.8rem);
    font-weight: 800;
    line-height: 1;
    color: var(--lv);
    margin: 0 0 12px;
    letter-spacing: -0.03em;
}

.score-big span {
    font-size: 0.45em;
    margin-left: 4px;
}

.level-badge {
    display: inline-block;
    border: 2px solid var(--lv);
    color: var(--lv);
    background: #fff;
    font-weight: 750;
    padding: 4px 14px;
    border-radius: 999px;
    font-size: 0.98rem;
}

.level-badge--sm {
    font-size: 0.85rem;
    padding: 1px 10px;
    border-width: 1.5px;
}

.score-hero__desc {
    margin-top: 12px;
    max-width: 44ch;
}

.score-hero__chart {
    margin: 0;
}

.bars {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 18px;
    margin-bottom: 40px;
}

.bar {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px 18px;
}

.bar__head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-weight: 750;
    color: var(--navy);
    margin-bottom: 8px;
}

.bar__track {
    height: 12px;
    border-radius: 6px;
    background: #e3e9f5;
    overflow: hidden;
}

.bar__track span {
    display: block;
    width: calc(var(--pct, 0) * 1%);
    height: 100%;
    background: var(--lv);
    border-radius: 6px;
}

.bar__meta {
    font-size: 0.9rem;
    color: var(--muted);
    margin: 10px 0 4px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    align-items: center;
}

.bar__details summary {
    cursor: pointer;
    font-size: 0.92rem;
    color: var(--blue);
}

.bar__details ul {
    list-style: none;
    padding: 8px 0 0;
    margin: 0;
    font-size: 0.93rem;
}

.bar__details li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 4px 0;
    border-bottom: 1px dashed var(--line);
}

.frag-list {
    list-style: none;
    padding: 0;
    margin: 0 0 18px;
    display: grid;
    gap: 12px;
}

.frag {
    background: #fff;
    border: 1px solid var(--line);
    border-left: 6px solid #5b6578;
    border-radius: var(--radius);
    padding: 12px 16px;
}

.frag--0 {
    border-left-color: var(--bad);
}

.frag--1 {
    border-left-color: var(--warn);
}

.frag__tag {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--muted);
    margin-bottom: 2px;
}

.frag--0 .frag__tag {
    color: var(--bad);
}

.frag--1 .frag__tag {
    color: var(--warn);
}

.frag__text {
    margin: 0 0 4px;
    font-weight: 600;
    color: var(--navy);
}

.frag__meta {
    margin: 0;
    font-size: 0.88rem;
    color: var(--muted);
}

.more summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--blue);
}

.more .frag-list {
    margin-top: 14px;
}

.reco-list {
    display: grid;
    gap: 16px;
    margin-bottom: 40px;
}

.reco__head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.reco__head h3 {
    margin-bottom: 8px;
}

.reco__links {
    margin: 0;
    font-size: 0.93rem;
}

.upgrade {
    margin-bottom: 36px;
}

.upgrade__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.upgrade form {
    margin: 0;
}

.purge {
    display: grid;
    gap: 20px;
    margin: 10px 0 40px;
}

.purge__form {
    background: var(--amber-soft);
    border: 3px solid var(--amber);
    border-radius: 14px;
    padding: 26px;
}

.purge__check {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: #fff;
    border: 2px solid var(--navy);
    border-radius: 10px;
    padding: 18px;
    margin: 16px 0 20px;
    cursor: pointer;
}

.purge__check input {
    width: 30px;
    height: 30px;
    flex: none;
    accent-color: var(--navy);
    margin-top: 2px;
}

.purge__check strong {
    display: block;
    font-size: 1.15rem;
    color: var(--navy);
}

.purge__check small {
    display: block;
    color: var(--muted);
    font-size: 0.93rem;
    margin-top: 4px;
}

.purge__done {
    margin: 14px 0 0;
    font-weight: 700;
    color: #0f5132;
}

.purge__delete {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.purge__delete p {
    margin: 0;
}

/* ---------- pied de page : liens légaux ---------- */
.site-footer__legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* ---------- liste complète des questions d'un thème ---------- */
.question-list {
    margin-bottom: 1.4em;
}

.question-list li {
    margin-bottom: 0.45em;
}

.q-tag {
    display: inline-block;
    margin-left: 4px;
    padding: 0 8px;
    border-radius: 999px;
    background: var(--blue-soft);
    color: var(--navy-3);
    font-size: 0.74rem;
    font-weight: 700;
    white-space: nowrap;
    vertical-align: 0.1em;
}

/* ---------- guides (section Ressources) ---------- */
.guide-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: var(--ink);
    text-decoration: none;
}

.guide-card h2 {
    font-size: 1.2rem;
}

.guide-card h2 a {
    text-decoration: none;
}

.guide-card:hover {
    border-color: var(--blue);
}

a.guide-card:hover {
    box-shadow: 0 2px 0 var(--blue);
    color: var(--ink);
}

.guide-card__title {
    font-size: 1.15rem;
    font-weight: 750;
    color: var(--navy);
    line-height: 1.25;
}

.guide-card__text {
    font-size: 0.95rem;
    color: var(--muted);
}

.guide-meta {
    margin-bottom: 1.2em;
}

.guide-links {
    padding-left: 1.2em;
}

.guide-links li {
    margin-bottom: 0.4em;
}

.guide-cta {
    margin: 1.6em 0;
    background: var(--amber-soft);
    border-color: #f1d98c;
}

.takeaways {
    margin: 1.4em 0;
    background: var(--blue-soft);
    border-color: #b9c8f2;
}

.takeaways h2 {
    margin-top: 0;
    font-size: 1.2rem;
}

.takeaways .ticks {
    margin-bottom: 0;
}

.toc {
    margin: 1.4em 0;
    font-size: 0.97rem;
}

.toc__title {
    margin-bottom: 0.3em;
    font-weight: 700;
    color: var(--navy);
}

.toc ol {
    margin-bottom: 0;
}

/* ---------- adaptatif ---------- */
@media (max-width: 960px) {
    .hero__grid,
    .fw,
    .cta-band__in,
    .score-hero {
        grid-template-columns: 1fr;
    }

    .grid--4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid--3 {
        grid-template-columns: 1fr;
    }

    .theme-layout,
    .audit__body {
        grid-template-columns: 1fr;
    }

    .theme-layout__side,
    .audit__aside {
        position: static;
    }

    .site-footer__grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero h1 {
        max-width: none;
    }
}

@media (max-width: 640px) {
    body {
        font-size: 1rem;
    }

    .grid--2,
    .grid--4 {
        grid-template-columns: 1fr;
    }

    .hide-sm {
        display: none;
    }

    .topbar__msg {
        display: none;
    }

    .site-footer__grid {
        grid-template-columns: 1fr;
    }

    .opt {
        padding: 8px 13px;
        font-size: 0.93rem;
    }

    .help-fab {
        padding: 9px 14px;
        right: 10px;
        bottom: 10px;
    }

    .help-fab span {
        display: none;
    }

    .purge__form {
        padding: 18px;
    }

    .score-hero {
        padding: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    * {
        transition: none !important;
    }
}

@media print {
    .topbar,
    .site-header,
    .site-footer,
    .help-fab,
    .purge,
    .upgrade,
    .cta-band,
    .promo {
        display: none !important;
    }

    body {
        font-size: 11pt;
    }
}
