/* ============================================================
   Asfaly : thème (chargé APRÈS style.css, qu'il ne modifie pas)
   Violet de la marque en encre, jaune du logo en accent, papier légèrement teinté.
   ============================================================ */

/* ---------- Polices hébergées (Atkinson Hyperlegible Next, Literata : licence OFL) ---------- */
@font-face { font-family: 'Atkinson Hyperlegible Next'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/atkinson-hyperlegible-next-latin-ext-400-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Atkinson Hyperlegible Next'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/atkinson-hyperlegible-next-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Atkinson Hyperlegible Next'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('../fonts/atkinson-hyperlegible-next-latin-ext-600-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Atkinson Hyperlegible Next'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('../fonts/atkinson-hyperlegible-next-latin-600-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Atkinson Hyperlegible Next'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('../fonts/atkinson-hyperlegible-next-latin-ext-700-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Atkinson Hyperlegible Next'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('../fonts/atkinson-hyperlegible-next-latin-700-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

@font-face { font-family: 'Literata'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('../fonts/literata-latin-ext-600-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Literata'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('../fonts/literata-latin-600-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Literata'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('../fonts/literata-latin-ext-700-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Literata'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('../fonts/literata-latin-700-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

/* ---------- Variables : elles remplacent celles de style.css ---------- */
:root {
    --primary: #763cbd;
    --primary-hover: #5a2e94;
    --primary-light: #f1ebf9;
    --primary-ink: #4a2580;

    --accent: #ffd209;
    --accent-hover: #f0c200;
    --accent-ink: #231b30;

    --background: #f6f4f9;
    --white: #ffffff;
    --paper-deep: #ece8f2;

    --text: #231b30;
    --text-light: #5b5470;
    --text-muted: #6f6885;

    --border: #dad4e5;
    --field-border: #7c7491;

    /* « success » reste le jaune de la marque : le texte posé dessus est foncé (voir .btn-success) */
    --success: #ffd209;
    --success-hover: #f0c200;
    --ok: #2e6b57;
    --ok-bg: #e5f2ec;
    --danger: #a12d2d;
    --danger-hover: #861f1f;
    --danger-bg: #fbeceb;
    --warning: #f5b800;
    --warning-ink: #6b4200;
    --warning-bg: #fdf3da;

    --font-ui: 'Atkinson Hyperlegible Next', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-display: 'Literata', Georgia, 'Times New Roman', serif;

    --radius: 8px;
    --radius-lg: 14px;
    --shadow: 0 0 0 1px var(--border);
    --shadow-sm: none;
    --transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

/* ---------- Base ---------- */
html { -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-ui);
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--text);
    background: var(--background);
}
button, input, select, textarea { font-family: inherit; }

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: var(--text);
    text-wrap: balance;
}
h1 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.1rem); }
h2 { font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.6rem); }
h3 { font-size: 1.2rem; }
h4 { font-weight: 700; color: var(--text); }
.container > p:not([class]) { max-width: 75ch; }

a { color: var(--primary); text-underline-offset: 3px; }
a:hover { text-decoration: underline; }

:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--accent-ink); }
[hidden] { display: none !important; }

/* ---------- Page et feuille ---------- */
main { max-width: 1200px; margin: 1.25rem auto 2rem; padding: 0 1.5rem; }
main:focus { outline: none; }
.container {
    border-radius: var(--radius-lg);
    padding: clamp(1.1rem, 0.6rem + 2vw, 2.25rem);
    padding-top: clamp(1.25rem, 0.8rem + 1.5vw, 2rem);
    box-shadow: var(--shadow);
}
.container h1:first-child { margin-top: 0; }
h1 { margin-bottom: 0.5rem; }
h2 { margin-bottom: 0.5rem; }
.welcome-text { margin-bottom: 1.25rem; }
.narrow-form-box { max-width: 460px; margin: 2.5rem auto; }
.login-box { background: transparent; box-shadow: none; padding: 0; }
.welcome-text { color: var(--text-light); }

/* ---------- Boutons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 44px;
    padding: 0.55rem 1.25rem;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    border: 1.5px solid transparent;
    border-radius: var(--radius);
    transition: var(--transition);
}
.btn:hover { transform: none; box-shadow: none; text-decoration: none; }
.btn-primary, .btn-info { background: var(--primary); color: #fff; }
.btn-primary:hover, .btn-info:hover { background: var(--primary-hover); box-shadow: none; }
.btn-secondary { background: var(--white); color: var(--primary); border-color: var(--field-border); }
.btn-secondary:hover { background: var(--primary-light); border-color: var(--primary); }
.btn-success { background: var(--accent); color: var(--accent-ink); }
.btn-success:hover { background: var(--accent-hover); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: var(--danger-hover); }
.btn-warning { background: var(--warning); color: var(--accent-ink); }
.btn-warning:hover { background: #e0a800; }
.btn-sm { min-height: 36px; padding: 0.3rem 0.85rem; font-size: 0.92rem; }
.btn-block { display: flex; width: 100%; }
.btn:disabled, .btn[disabled] { opacity: 0.55; cursor: not-allowed; }
@media (pointer: coarse) { .btn-sm { min-height: 44px; } }

/* ---------- Formulaires ---------- */
.form-group label { font-weight: 600; }
.form-group input,
.form-group select,
.form-group textarea {
    min-height: 48px;
    padding: 0.7rem 0.85rem;
    border: 1.5px solid var(--field-border);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--text);
    font-size: 1rem;
}
.form-group input[type="checkbox"],
.form-group input[type="radio"] { min-height: 0; width: 1.25rem; height: 1.25rem; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(118, 60, 189, 0.35);
    outline: 2px solid transparent;
}
.form-group .help, .help { color: var(--text-light); font-size: 0.9rem; }
.search-input, .reason-input { min-height: 44px; border: 1.5px solid var(--field-border); border-radius: var(--radius); background: var(--white); }
.password-wrapper { align-items: stretch; }
.password-wrapper button { min-width: 48px; border: 1.5px solid var(--field-border); background: var(--white); }
.password-wrapper button:hover { background: var(--primary-light); }
.twofa-code-input { letter-spacing: 0.35em; }

/* ---------- Messages ---------- */
.alert { padding: 0.85rem 1.1rem; border-radius: var(--radius); border: 1px solid; font-size: 1rem; }
.alert-success { color: #1f5a46; background: var(--ok-bg); border-color: #b9dcca; }
.alert-error { color: #8a2222; background: var(--danger-bg); border-color: #efc4c0; }
.alert-warning, .alert-warning-strong { color: var(--warning-ink); background: var(--warning-bg); border-color: #ecc66a; }
.alert-info { color: var(--primary-ink); background: var(--primary-light); border-color: #d6c8ec; }
.text-danger { color: var(--danger); }
.warning-text { color: var(--danger); }
.info-box { border: 1px solid var(--border); background: var(--background); }
.info-box.warning { background: var(--danger-bg); border-color: #efc4c0; }
.request-card.pending, .request-card.approved, .request-card.rejected { border-left: 1px solid var(--border); }
.pending-box, .blocked-box { border-top: 1px solid var(--border); }
.empty-state { background: transparent; border: 1.5px dashed var(--border); }

/* ---------- Statuts ---------- */
.status-badge, .badge, .action-badge { font-weight: 600; font-size: 0.85rem; padding: 2px 12px; }
.status-badge.confirmed, .status-badge.active, .status-badge.approved, .status-badge.completed { background: var(--ok-bg); color: #1f5a46; }
.status-badge.pending, .status-badge.pending_admin { background: var(--warning-bg); color: var(--warning-ink); }
.status-badge.declined, .status-badge.suspended, .status-badge.rejected { background: var(--danger-bg); color: #8a2222; }
.status-badge.expired { background: var(--paper-deep); color: var(--text-light); }
.status-badge.pending_user, .badge-user { background: var(--primary-light); color: var(--primary-ink); }
.badge-admin { background: var(--paper-deep); color: var(--primary-ink); }

/* ---------- Statistiques ---------- */
.stat-card { background: var(--background); text-align: left; }
.stat-number { font-family: var(--font-display); font-size: 2rem; font-weight: 600; color: var(--primary); }
.stat-label { color: var(--text-light); }

/* ---------- En-tête et navigation ---------- */
.skip-link {
    position: absolute; left: 0.75rem; top: -4rem; z-index: 300;
    background: var(--primary); color: #fff; padding: 0.6rem 1rem; border-radius: var(--radius);
}
.skip-link:focus { top: 0.75rem; color: #fff; text-decoration: none; }

header.app-header { padding: 0; box-shadow: none; background: var(--white); border-bottom: 1px solid var(--border); }
.app-header-inner {
    max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; min-height: 64px;
    display: flex; align-items: center; gap: 1rem;
}
.app-logo { display: flex; align-items: center; flex: 0 0 auto; }
.app-logo img { height: 34px; width: auto; display: block; }
.app-header .header-actions { margin-left: auto; }

.app-nav-desktop { flex: 1; min-width: 0; }
.app-nav-desktop ul { list-style: none; display: flex; flex-wrap: nowrap; gap: 0.1rem; }
.app-nav-desktop a {
    display: inline-flex; align-items: center; gap: 0.45rem; min-height: 44px;
    padding: 0.4rem 0.65rem; border-radius: var(--radius); white-space: nowrap;
    color: var(--text-light); font-weight: 600; font-size: 0.95rem; text-decoration: none;
}
.app-nav-desktop a:hover { background: var(--primary-light); color: var(--primary-ink); }
.app-nav-desktop a[aria-current="page"] { color: var(--primary); background: var(--primary-light); box-shadow: inset 0 -3px 0 var(--accent); }
.icon { width: 1.25rem; height: 1.25rem; flex: 0 0 auto; }
@media (min-width: 1041px) and (max-width: 1180px) { .app-nav-desktop .icon { display: none; } .app-nav-desktop a { padding: 0.4rem 0.55rem; font-size: 0.92rem; } }

.menu-details { position: relative; }
.menu-details > summary { list-style: none; cursor: pointer; }
.menu-details > summary::-webkit-details-marker { display: none; }
.account-menu > summary {
    display: flex; align-items: center; gap: 0.6rem; min-height: 44px;
    padding: 0.25rem 0.75rem 0.25rem 0.3rem; border: 1px solid var(--border); border-radius: 999px;
    background: var(--white); font-weight: 600; color: var(--text);
}
.account-menu > summary:hover { background: var(--primary-light); }
.account-initial {
    width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
    background: var(--primary); color: #fff; font-weight: 700;
}
.menu-panel {
    position: absolute; right: 0; top: calc(100% + 0.5rem); z-index: 200; min-width: 270px;
    background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
    box-shadow: 0 14px 34px -14px rgba(35, 27, 48, 0.4); padding: 0.5rem;
}
.menu-panel a {
    display: flex; align-items: center; gap: 0.7rem; min-height: 44px; padding: 0.55rem 0.75rem;
    border-radius: var(--radius); color: var(--text); font-weight: 500; text-decoration: none;
}
.menu-panel a:hover { background: var(--primary-light); }
.menu-panel a[aria-current="page"] { color: var(--primary); font-weight: 700; }
.menu-panel hr { border: 0; border-top: 1px solid var(--border); margin: 0.4rem 0; }
.menu-account-id { padding: 0.5rem 0.75rem; }
.menu-account-id strong { display: block; }
.menu-account-id span { font-size: 0.88rem; color: var(--text-light); word-break: break-all; }
.menu-heading { padding: 0.4rem 0.75rem 0.2rem; font-size: 0.88rem; font-weight: 600; color: var(--text-light); }
.menu-lang { display: flex; flex-wrap: wrap; gap: 0.35rem; padding: 0.2rem 0.5rem 0.5rem; }
.menu-lang a { min-height: 36px; padding: 0.25rem 0.8rem; border: 1px solid var(--border); border-radius: 999px; font-size: 0.92rem; }
.menu-lang a[aria-current="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }

/* menu de langue des pages publiques (script existant) */
.dropdown-toggle { min-height: 44px; border: 1px solid var(--border); background: var(--white); font-weight: 600; }
.dropdown-toggle:hover { background: var(--primary-light); }
.dropdown-menu { border-radius: var(--radius-lg); box-shadow: 0 14px 34px -14px rgba(35, 27, 48, 0.4); }
.dropdown-menu a:hover { background: var(--primary-light); }

/* barre du bas (mobile) */
.app-nav-mobile {
    display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 120;
    background: var(--white); border-top: 1px solid var(--border); padding-bottom: env(safe-area-inset-bottom);
}
.app-nav-mobile ul { list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; }
.app-nav-mobile > ul > li > a,
.app-nav-mobile > ul > li > details > summary {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.15rem;
    min-height: 64px; padding: 0.4rem 0.1rem; text-align: center; text-decoration: none;
    font-size: 0.72rem; font-weight: 600; line-height: 1.15; color: var(--text-light);
    overflow-wrap: normal; hyphens: auto;
}
.app-nav-mobile > ul > li > a[aria-current="page"] { color: var(--primary); box-shadow: inset 0 3px 0 var(--accent); }
.more-menu[open] > summary { color: var(--primary); }

@media (max-width: 1040px) {
    .app-nav-desktop { display: none; }
    .app-header-inner { padding: 0 1rem; min-height: 56px; justify-content: space-between; }
    .app-logo img { height: 30px; }
    .account-menu .account-name { display: none; }
    .account-menu > summary { padding-right: 0.3rem; }
    .app-nav-mobile { display: block; }
    body.has-bottom-nav { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
    .more-menu .menu-panel {
        position: fixed; left: 0.5rem; right: 0.5rem; top: auto;
        bottom: calc(68px + env(safe-area-inset-bottom) + 0.5rem); max-height: 70vh; overflow: auto;
    }
}

/* ---------- Pied de page ---------- */
footer { background: var(--white); }
.footer-column h4 { font-weight: 700; }
.footer-links a { color: var(--text-light); }
.footer-links a:hover { color: var(--primary); text-decoration: underline; }
.footer-links a.active { color: var(--primary); font-weight: 700; }
@media (max-width: 768px) {
    .footer-container { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}

/* ---------- Mise en place du coffre : le cachet ---------- */
.setup-card { border-radius: var(--radius-lg); border: 1px solid var(--border); box-shadow: none; padding: clamp(1rem, 3vw, 1.75rem); background: var(--white); }
.setup-card.is-complete { background: var(--white); border-color: var(--accent); }
.setup-header { align-items: center; gap: 1.25rem; justify-content: flex-start; }
.setup-header > div:first-child { flex: 1; min-width: 0; }
.setup-header h2 { margin: 0 0 0.25rem; }
.setup-subtitle { color: var(--text-light); }
.setup-score, .setup-progress { display: none; }
.setup-progress-text { margin: 0.25rem 0 0.75rem; color: var(--text-light); font-size: 0.95rem; }

.setup-seal { order: 2; flex: 0 0 auto; width: 84px; height: 84px; }
.setup-seal svg { display: block; width: 100%; height: 100%; }
.seal-arc { fill: none; stroke: var(--border); stroke-width: 6; stroke-linecap: round; }
.seal-arc.is-done { stroke: var(--accent); stroke-dasharray: 1; stroke-dashoffset: 0; animation: seal-draw 0.5s ease-out backwards; }
.seal-arc:nth-of-type(2).is-done { animation-delay: 0.08s; }
.seal-arc:nth-of-type(3).is-done { animation-delay: 0.16s; }
.seal-arc:nth-of-type(4).is-done { animation-delay: 0.24s; }
.seal-arc:nth-of-type(5).is-done { animation-delay: 0.32s; }
.seal-disc { fill: var(--accent); }
.seal-keyhole { fill: var(--primary); }
@keyframes seal-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

.setup-steps { margin-top: 0.25rem; }
.setup-step {
    display: grid; grid-template-columns: 2.25rem 1fr auto; gap: 0.25rem 1rem; align-items: start;
    padding: 1rem 0; border-top: 1px solid var(--border); border-radius: 0; background: transparent;
}
.setup-step:first-child { border-top: 0; }
.setup-step.is-next { background: var(--primary-light); border: 0; margin: 0.4rem -0.75rem; padding: 1rem 0.75rem; border-radius: var(--radius); }
.setup-step-icon {
    width: 2.25rem; height: 2.25rem; flex: none; border-radius: 50%; border: 2px solid var(--primary);
    background: transparent; color: var(--primary); font-family: var(--font-display); font-weight: 700;
}
.setup-step.is-done .setup-step-icon { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.setup-step.is-partial .setup-step-icon { background: transparent; border-color: var(--warning); color: var(--warning-ink); }
.setup-step.is-next .setup-step-icon { background: var(--primary); color: #fff; }
.setup-step-title { color: var(--text); font-size: 1.05rem; }
.setup-step.is-done .setup-step-title { color: var(--text); }
.setup-step-desc { color: var(--text-light); font-size: 0.95rem; }
.setup-step-detail.is-ok { color: var(--ok); }
.setup-step-detail.is-warn { color: var(--warning-ink); }
.setup-badge { background: var(--paper-deep); color: var(--text-light); font-size: 0.78rem; padding: 2px 10px; }
.setup-badge-next { background: var(--primary); color: #fff; }
.setup-btn {
    display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0.5rem 1.1rem;
    border: 1.5px solid var(--primary); border-radius: var(--radius); background: var(--primary); color: #fff;
    font-size: 1rem; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.setup-btn:hover { opacity: 1; background: var(--primary-hover); text-decoration: none; color: #fff; }
.setup-btn-secondary { background: var(--white); color: var(--primary); border-color: var(--field-border); }
.setup-btn-secondary:hover { background: var(--primary-light); color: var(--primary); }
.setup-btn-success { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.setup-btn-success:hover { background: var(--accent-hover); color: var(--accent-ink); }
.setup-details > summary { color: var(--primary); }
.setup-guide { background: var(--background); border: 1px solid var(--border); }
.setup-guide-icon { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--primary-light); color: var(--primary); }
.setup-guide-icon .icon { width: 1.5rem; height: 1.5rem; }
.setup-guide-text p { color: var(--text-light); }
@media (max-width: 640px) {
    .setup-step { grid-template-columns: 2.25rem 1fr; }
    .setup-step-actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: stretch; width: auto; margin-left: 0; }
    .setup-step-actions .setup-btn, .setup-step-actions .setup-inline-form { flex: 1 1 12rem; }
    .setup-step-actions .setup-inline-form .setup-btn { width: 100%; }
    .setup-seal { width: 68px; height: 68px; }
    .setup-guide { flex-direction: column; align-items: flex-start; }
    .setup-guide .setup-btn { width: 100%; }
}

/* ---------- Indicateur de fiabilité du mot de passe ---------- */
.pw-meter-title { color: var(--text-light); }
.pw-meter-bar span { background: var(--paper-deep); }
.pw-level-0 .pw-meter-label { color: var(--danger); }
.pw-level-0 .pw-meter-bar span:nth-child(-n+1) { background: var(--danger); }
.pw-level-1 .pw-meter-label { color: #a34a0b; }
.pw-level-1 .pw-meter-bar span:nth-child(-n+2) { background: #d9731a; }
.pw-level-2 .pw-meter-label { color: #7a5f00; }
.pw-level-2 .pw-meter-bar span:nth-child(-n+3) { background: #e0a800; }
.pw-level-3 .pw-meter-label { color: var(--ok); }
.pw-level-3 .pw-meter-bar span:nth-child(-n+4) { background: #3d9a7a; }
.pw-level-4 .pw-meter-label { color: #1f5a46; }
.pw-level-4 .pw-meter-bar span { background: var(--ok); }
.pw-tips { color: var(--text-light); }
.pw-tips li.pw-tip-good, .pw-tips li.pw-tip-good::before { color: var(--ok); }
.pw-note { background: var(--warning-bg); color: var(--warning-ink); }

/* ---------- Listes et tableaux ---------- */
.compact-list { border-radius: var(--radius-lg); }
.compact-list-header { background: var(--background); color: var(--text-light); }
.compact-list-main { padding: 0.9rem 1rem; }
.compact-list-row:hover .compact-list-main, .compact-list-detail { background: var(--background); }
.compact-list-actions .btn { min-width: 44px; }
.table th { background: var(--background); color: var(--text-light); }
.user-tabs .tab.active, .filter-tabs .tab.active { box-shadow: inset 0 -3px 0 var(--accent); }

/* ---------- Mobile : la feuille occupe toute la largeur ---------- */
@media (max-width: 640px) {
    main { padding: 0; margin: 0 0 1rem; }
    .container { border-radius: 0; box-shadow: none; border-block: 1px solid var(--border); padding: 1.25rem 1rem; }
    .narrow-form-box, .wide-centered-box, .medium-centered-box, .narrow-centered-box-text-center,
    .medium-centered-box-text-center, .reset-box, .forgot-box { margin: 1rem auto; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .actions-row .btn { flex: 1 1 14rem; }
}

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* ---------- Impression (données récupérées, guides) ---------- */
@media print {
    .skip-link, .app-header, .app-nav-mobile, footer, .btn, .actions-row, .setup-card, .pw-widget { display: none !important; }
    body { background: #fff; color: #000; padding-bottom: 0 !important; font-size: 11pt; }
    main { margin: 0; padding: 0; max-width: none; }
    .container { box-shadow: none; border: 0; padding: 0; background: #fff; }
    a { color: #000; text-decoration: none; }
    h1, h2, h3 { break-after: avoid; }
    .recovered-section, .detail-card { break-inside: avoid; }
}