@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Spectral:wght@600;700&display=swap');

:root {
    --ink: #1d2330;
    --muted: #5d667a;
    --line: #d7deea;
    --surface: #ffffff;
    --surface-soft: #f7f9fd;
    --brand: #0c6b72;
    --brand-strong: #094f54;
    --accent: #ff9f43;
    --danger: #cc3344;
    --success: #238a57;
    --shadow: 0 12px 36px rgba(18, 34, 64, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Manrope', 'Trebuchet MS', sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at 8% 6%, rgba(12, 107, 114, 0.18), transparent 28%),
        radial-gradient(circle at 88% 2%, rgba(255, 159, 67, 0.18), transparent 26%),
        linear-gradient(160deg, #edf3fb 0%, #f9fbff 48%, #f3f6fc 100%);
    min-height: 100vh;
}

.public-shell { min-height: 100vh; padding: 34px 20px 60px; }
.public-brand { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--brand-strong); font-family: 'Spectral', Georgia, serif; font-size: 20px; }
.public-brand .brand-mark { border-color: var(--brand); color: var(--brand); }
.verification-card, .public-directory { max-width: 620px; margin: 50px auto 0; padding: 34px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.9); box-shadow: var(--shadow); text-align: center; }
.verification-icon { display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 16px; border-radius: 50%; font-size: 28px; font-weight: 800; }
.verification-valid { border-top: 5px solid var(--success); }
.verification-valid .verification-icon { background: #e6f8ee; color: var(--success); }
.verification-invalid { border-top: 5px solid var(--danger); }
.verification-invalid .verification-icon { background: #ffe9ed; color: var(--danger); }
.verification-card h1, .public-directory h1 { margin-bottom: 8px; font-family: 'Spectral', Georgia, serif; font-size: 2.5rem; }
.verification-photo { width: 96px; height: 96px; object-fit: cover; border-radius: 50%; margin: 4px auto 12px; border: 3px solid #fff; box-shadow: var(--shadow); display: block; }
.verification-lead { max-width: 440px; margin: 0 auto 22px; }
.public-details { display: grid; grid-template-columns: 1fr 1fr; margin: 24px 0; border-top: 1px solid #e4eaf2; text-align: left; }
.public-details div { padding: 13px 10px 10px 0; border-bottom: 1px solid #e4eaf2; }
.public-details dt { color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.public-details dd { margin: 5px 0 0; color: #21374e; font-size: 13px; font-weight: 700; }
.verification-note { color: var(--muted); }
.public-directory { text-align: left; }
.public-directory h1 { text-align: center; }
.public-directory > p:not(.eyebrow) { text-align: center; }
.public-search { display: flex; gap: 8px; margin: 25px 0; }
.public-search input { flex: 1; }
.result-count { color: var(--muted); font-size: 12px; }
.directory-results { border-top: 1px solid #e4eaf2; }
.directory-result { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 0; border-bottom: 1px solid #e7ebf3; }
.directory-result strong, .directory-result small { display: block; }
.directory-result strong { color: #21374e; }
.directory-result small { margin-top: 4px; color: var(--muted); font-size: 11px; }

.navbar {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(8px);
    background: linear-gradient(110deg, rgba(9, 79, 84, 0.92), rgba(12, 107, 114, 0.92));
    color: #fff;
    padding: 14px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.navbar a {
    color: #ebf7f8;
    text-decoration: none;
    margin-left: 14px;
    padding: 8px 10px;
    border-radius: 10px;
    transition: background-color 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.navbar a:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-1px);
}

.navbar .brand {
    font-family: 'Spectral', Georgia, serif;
    letter-spacing: 0.2px;
    font-weight: 700;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand {
    color: #fff !important;
    text-decoration: none;
    margin-left: 0 !important;
}

.brand strong,
.brand small {
    display: block;
}

.brand small {
    color: rgba(235, 247, 248, 0.7);
    font-family: 'Manrope', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 10px;
    color: #ffcf91;
    font-family: 'Manrope', sans-serif;
    font-size: 11px;
    letter-spacing: 0.08em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.mobile-menu-toggle { display: none; }

.nav-link-active {
    background: rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 -2px 0 #ffb866;
    color: #fff !important;
}

.nav-alert-link { display: inline-flex; align-items: center; gap: 7px; }
.nav-alert-count { display: inline-grid; place-items: center; min-width: 19px; height: 19px; padding: 0 4px; border-radius: 999px; background: #ffb866; color: #56320f; font-size: 10px; font-weight: 800; }

.navbar .nav-user {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 12px;
    padding-left: 14px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.account-menu { position: relative; margin-top: auto; }
.account-trigger { width: 100%; border: 0; cursor: pointer; font: inherit; text-align: left; background: transparent !important; color: #ebf7f8 !important; appearance: none; -webkit-appearance: none; }
.account-trigger-text { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 2px; }
.account-trigger-text strong, .account-trigger-text small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-trigger-text strong { color: #fff; font-size: 12px; }
.account-trigger-text small { color: rgba(235,247,248,.65); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }
.account-chevron { margin-left: auto; color: #ffbd73; font-size: 13px; transition: transform 180ms ease; }
.account-trigger[aria-expanded="true"] .account-chevron { transform: rotate(180deg); }
.account-dropdown { position: absolute; right: 0; bottom: calc(100% + 10px); z-index: 80; width: 268px; padding: 10px; border: 1px solid rgba(215,222,234,.9); border-radius: 14px; background: rgba(255,255,255,.98); box-shadow: 0 18px 45px rgba(18,34,64,.2); animation: dropdownIn 160ms ease-out; }
.account-dropdown[hidden] { display: none; }
.dropdown-profile { display: flex; align-items: center; gap: 10px; padding: 8px; }
.dropdown-profile strong, .dropdown-profile small, .account-dropdown a strong, .account-dropdown a small { display: block; }
.dropdown-profile strong { color: #1c3045; font-size: 13px; }.dropdown-profile small { margin-top: 3px; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }
.dropdown-avatar { width: 38px; height: 38px; border: 2px solid #dce5f2; border-radius: 11px; object-fit: cover; }.dropdown-avatar-fallback { display: grid; place-items: center; background: #e4f1f3; color: var(--brand-strong); font-size: 13px; font-weight: 800; }
.dropdown-divider { height: 1px; margin: 7px 4px; background: #e7ebf3; }
.account-dropdown a { display: flex; align-items: center; gap: 10px; margin: 0; padding: 10px 8px; border-radius: 9px; color: #233b53; text-decoration: none; }
.account-dropdown a:hover { background: #f1f7f8; color: var(--brand-strong); transform: none; }
.account-dropdown a small { margin-top: 2px; color: var(--muted); font-size: 10px; }.dropdown-icon { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 8px; background: #e7f2f3; color: var(--brand-strong); font-size: 16px; }.dropdown-logout { color: var(--danger) !important; }.dropdown-logout .dropdown-icon { background: #ffedf0; color: var(--danger); }
.account-dropdown .dropdown-profile { margin: -10px -10px 8px; padding: 14px 12px; border-radius: 13px 13px 8px 8px; background: linear-gradient(135deg, #0a5961, #0c7d82); }
.account-dropdown .dropdown-profile strong { color: #fff !important; }.account-dropdown .dropdown-profile small { color: rgba(255,255,255,.72); }.account-dropdown .dropdown-profile .dropdown-avatar { border-color: rgba(255,255,255,.48); }
.account-dropdown .dropdown-profile + .dropdown-divider { margin-top: 0; }
@keyframes dropdownIn { from { opacity: 0; transform: translateY(5px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }

.user-dot {
    display: grid;
    place-items: center;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #ffb866;
    color: #56320f;
    font-size: 11px;
    font-weight: 800;
}

.container {
    max-width: 1200px;
    margin: 26px auto 42px;
    padding: 0 20px;
    animation: revealUp 360ms ease-out;
}

.card-box {
    background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 22px;
    margin-bottom: 18px;
    box-shadow: var(--shadow);
}

h1,
h2,
h3 {
    margin-top: 0;
    color: #123041;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.25rem, 2.2vw, 1.6rem);
}

.page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin: 34px 0 26px;
}

.page-heading h1 {
    margin-bottom: 7px;
    font-family: 'Spectral', Georgia, serif;
    font-size: clamp(2rem, 4vw, 3.1rem);
    font-weight: 700;
    letter-spacing: -0.04em;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--brand);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.15em;
}

.page-subtitle {
    margin: 0;
    max-width: 560px;
    font-size: 14px;
}

.heading-actions,
.bulk-actions,
.row-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.inline-action-form { display: inline; margin: 0; }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 104px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 8px 22px rgba(18, 34, 64, 0.06);
    color: inherit;
    text-decoration: none;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.stat-card:hover { border-color: #9bc5c8; box-shadow: 0 12px 26px rgba(18, 34, 64, 0.1); transform: translateY(-2px); }

.stat-card strong,
.stat-card span {
    display: block;
}

.stat-card strong {
    color: #123041;
    font-size: 25px;
    line-height: 1.1;
}

.stat-card div span {
    margin-top: 5px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.3;
}

.stat-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    border-radius: 12px;
    background: #e4f1f3;
    color: var(--brand-strong);
    font-size: 11px;
    font-weight: 800;
}

.stat-icon.success { background: #e6f8ee; color: var(--success); }
.stat-icon.warning { background: #fff2de; color: #9b6516; }
.stat-icon.danger { background: #ffe9ed; color: var(--danger); }

.members-panel {
    padding: 24px;
}

.insights-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 20px; }
.insight-panel { padding: 20px 22px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.78); box-shadow: 0 8px 22px rgba(18,34,64,.06); }
.insight-panel .panel-heading { margin-bottom: 12px; }
.status-list { display: grid; gap: 8px; }
.status-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid #edf0f5; }
.recent-list { display: grid; gap: 4px; }
.recent-list a { display: flex; align-items: center; gap: 10px; padding: 8px 4px; color: inherit; text-decoration: none; border-radius: 8px; }
.recent-list a:hover { background: #f3f8f9; }
.recent-list strong, .recent-list small { display: block; }
.recent-list strong { color: #21374e; font-size: 12px; }
.recent-list small { color: var(--muted); font-size: 11px; }
.recent-avatar { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: #e4f1f3; color: var(--brand-strong); font-size: 11px; font-weight: 800; }
.recent-arrow { margin-left: auto; color: var(--brand); }

.panel-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 18px;
}

.panel-heading h2 { margin-bottom: 4px; }
.panel-heading p { margin: 0; font-size: 12px; }
.panel-heading-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

.live-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--success);
    font-size: 12px;
    font-weight: 700;
}

.live-status i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #35ae70;
    box-shadow: 0 0 0 4px #e3f6eb;
}

.filters {
    display: grid;
    grid-template-columns: minmax(220px, 1.5fr) minmax(150px, 0.8fr) minmax(180px, 1fr) auto auto;
    align-items: end;
    gap: 10px;
    padding: 15px;
    margin-bottom: 18px;
    border: 1px solid #e4eaf2;
    border-radius: 12px;
    background: #f7f9fc;
}

.filters label { margin: 0 0 5px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; }
.filters input,
.filters select { height: 40px; }
.btn-filter { height: 40px; white-space: nowrap; }

.bulk-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 11px;
}

.select-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #46556b;
    font-size: 12px;
    font-weight: 700;
}

.select-all input { accent-color: var(--brand); }
.table-wrap { overflow-x: auto; }
table { min-width: 930px; }
tbody tr { border-left: 3px solid transparent; }
tbody tr:hover { border-left-color: var(--accent); }
.member-name { display: block; color: #1c3045; }
.member-link { text-decoration: none; }
.member-link:hover .member-name { color: var(--brand); }
.member-name + small { display: none; color: var(--muted); font-size: 11px; }
.muted-cell { color: var(--muted); font-size: 12px; }
.empty-state { padding: 48px 20px; text-align: center; }
.empty-state strong, .empty-state span { display: block; }
.empty-state span { margin-top: 5px; color: var(--muted); font-size: 12px; }

.detail-topbar { display: flex; align-items: center; justify-content: space-between; margin: 28px 0 18px; }
.back-link { color: var(--brand-strong); font-size: 13px; font-weight: 800; text-decoration: none; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 18px; align-items: start; }
.profile-card, .expiry-card, .history-card { margin-bottom: 18px; }
.profile-header { display: flex; align-items: center; gap: 20px; }
.profile-header h1 { margin-bottom: 10px; font-family: 'Spectral', Georgia, serif; font-size: clamp(2rem, 4vw, 3rem); }
.profile-photo { width: 112px; height: 112px; border-radius: 18px; object-fit: cover; border: 3px solid #e2eaf2; }
.profile-placeholder { display: grid; place-items: center; background: #edf3f6; color: #8b9aaa; font-size: 11px; font-weight: 800; }
.detail-actions, .form-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 24px 0; }
.detail-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin: 0; border-top: 1px solid #e4eaf2; }
.detail-list div { padding: 14px 10px 10px 0; border-bottom: 1px solid #e4eaf2; }
.detail-list dt { color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.detail-list dd { margin: 5px 0 0; color: #21374e; font-size: 14px; font-weight: 700; }
.expiry-card { background: #e9f7f4; border-color: #bfe5dc; }
.expiry-card > strong { display: block; margin: 12px 0 4px; color: var(--brand-strong); font-size: 27px; }
.expiry-card p:not(.eyebrow) { margin-bottom: 20px; }
.expiry-warning { background: #fff5e4; border-color: #f4d6a1; }
.expiry-warning > strong { color: #936019; }
.expiry-danger { background: #ffedf0; border-color: #f3bec8; }
.expiry-danger > strong { color: #a52a39; }
.form-card { max-width: 780px; margin: 40px auto; }
.form-card h1 { font-family: 'Spectral', Georgia, serif; }

.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 20px;
    padding-top: 17px;
    border-top: 1px solid #e7ebf3;
}

.pagination-summary {
    color: var(--muted);
    font-size: 12px;
}

.pagination-summary strong { color: #263c53; }

.pagination-links {
    display: flex;
    align-items: center;
    gap: 5px;
}

.page-control,
.page-number {
    display: grid;
    place-items: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border: 1px solid #d8e1ec;
    border-radius: 8px;
    background: #fff;
    color: #42566d;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.page-control:hover,
.page-number:hover {
    border-color: #8bbbc0;
    background: #edf7f7;
    color: var(--brand-strong);
    transform: translateY(-1px);
}

.page-number.current {
    border-color: var(--brand);
    background: var(--brand);
    color: #fff;
    box-shadow: 0 5px 12px rgba(12, 107, 114, 0.22);
}

.page-control.disabled {
    opacity: 0.42;
    cursor: default;
}

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

table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

th,
td {
    padding: 11px 12px;
    border-bottom: 1px solid #e7ebf3;
    text-align: left;
    font-size: 14px;
}

th {
    background: #eff5fb;
    color: #29445d;
    font-weight: 700;
}

tbody tr {
    transition: background-color 160ms ease;
}

tr:hover {
    background: #f8fbff;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 12px;
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(120deg, var(--brand), #0b818b);
    box-shadow: 0 8px 18px rgba(11, 129, 139, 0.24);
    transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(11, 129, 139, 0.3);
    filter: saturate(1.05);
}

.btn:active {
    transform: translateY(1px) scale(0.98);
    box-shadow: 0 3px 9px rgba(11, 129, 139, 0.18);
}

.btn:focus-visible,
.navbar a:focus-visible {
    outline: 3px solid rgba(255, 184, 102, 0.55);
    outline-offset: 2px;
}

.btn-secondary {
    background: #f4f7fc;
    color: #29445d;
    border-color: #d5deea;
    box-shadow: none;
}

.btn-secondary:hover {
    box-shadow: none;
    background: #ebf1f8;
}

.btn-danger {
    background: linear-gradient(120deg, #b72739, var(--danger));
    box-shadow: 0 8px 18px rgba(184, 39, 57, 0.24);
}

.btn-sm {
    padding: 7px 12px;
    font-size: 12px;
    border-radius: 10px;
}

form label {
    display: block;
    margin: 14px 0 6px;
    font-weight: 700;
    font-size: 13px;
    color: #22364e;
}

form input,
form select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccd7e7;
    border-radius: 10px;
    font-size: 14px;
    color: #1f2a3c;
    background: #fff;
    transition: border-color 140ms ease, box-shadow 140ms ease;
}

form input:focus,
form select:focus {
    border-color: #62a9b0;
    box-shadow: 0 0 0 3px rgba(11, 129, 139, 0.15);
    outline: none;
}

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

.row > div {
    flex: 1;
    min-width: 220px;
}

.flash {
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 14px;
    font-size: 14px;
    border: 1px solid transparent;
}

.flash.success {
    background: #e9f8f0;
    color: #186b42;
    border-color: #c3eecf;
}

.flash.error {
    background: #ffedf0;
    color: #9e2331;
    border-color: #ffd1d8;
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.badge.actif {
    background: #e6f8ee;
    color: #1c7b4b;
}

.badge.suspendu {
    background: #fff2de;
    color: #8f5d12;
}

.badge.radie,
.badge.expire {
    background: #ffe9ed;
    color: #9f2332;
}

.badge.en_conge,
.badge.suspendu { background: #fff2de; color: #8f5d12; }
.badge.demissionnaire,
.badge.licencie,
.badge.retraite { background: #f0eaf8; color: #69458e; }

.photo-thumb {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #dce5f2;
}

.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 10px;
}

.checkbox-cell {
    width: 30px;
}

.login-box {
    max-width: 420px;
    margin: clamp(48px, 10vh, 94px) auto;
}

small.help {
    color: var(--muted);
    font-size: 12px;
}

ul {
    margin: 10px 0 4px;
}

@keyframes revealUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@media (max-width: 960px) {
    .navbar {
        position: static;
        align-items: flex-start;
        gap: 12px;
        flex-direction: column;
        padding: 14px 16px;
    }

    .nav-links { flex-wrap: wrap; }

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

    .filters { grid-template-columns: repeat(2, 1fr); }
    .filters .search-field { grid-column: 1 / -1; }

    .navbar a {
        margin-left: 0;
        margin-right: 6px;
    }

    .container {
        margin-top: 16px;
        padding: 0 12px;
    }

    .card-box {
        padding: 16px;
        border-radius: 14px;
    }

    th,
    td {
        font-size: 13px;
        padding: 9px;
    }

    .toolbar {
        align-items: stretch;
    }
}

.login-page { display: grid; grid-template-columns: minmax(420px, 1.05fr) minmax(480px, .95fr); min-height: 100vh; overflow: hidden; background: #f7fafc; }
.login-showcase { position: relative; overflow: hidden; min-height: 100vh; background: #073f48; color: #fff; }
.showcase-grid { position: absolute; inset: 0; opacity: .22; background-image: linear-gradient(rgba(166,226,219,.25) 1px, transparent 1px), linear-gradient(90deg, rgba(166,226,219,.25) 1px, transparent 1px); background-size: 42px 42px; transform: perspective(500px) rotateX(58deg) scale(1.45) translateY(18%); transform-origin: center bottom; }
.showcase-orbit { position: absolute; border: 1px solid rgba(255,184,102,.45); border-radius: 50%; animation: orbitFloat 9s ease-in-out infinite; }
.orbit-one { width: 480px; height: 480px; right: -220px; top: 12%; box-shadow: 0 0 0 22px rgba(255,184,102,.035), 0 0 0 70px rgba(255,184,102,.025); }
.orbit-two { width: 260px; height: 260px; left: -150px; bottom: 5%; border-color: rgba(135,224,215,.32); animation-delay: -3s; }
.showcase-content { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: space-between; min-height: 100vh; padding: 48px clamp(34px, 6vw, 92px) 42px; }
.login-brand, .login-mobile-brand { display: flex; align-items: center; gap: 10px; }
.login-brand strong, .login-brand small { display: block; }.login-brand strong { font-family: 'Spectral', Georgia, serif; font-size: 20px; }.login-brand small { margin-top: 3px; color: rgba(235,247,248,.65); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.showcase-copy { max-width: 520px; margin: auto 0; animation: revealUp 650ms ease-out; }.showcase-copy h1 { margin: 10px 0 20px; color: #fff; font-family: 'Spectral', Georgia, serif; font-size: clamp(3.2rem, 6vw, 5.7rem); line-height: .94; letter-spacing: -.055em; }.showcase-copy h1 em { color: #ffbd73; font-style: normal; }.showcase-copy p:not(.eyebrow) { max-width: 400px; color: rgba(235,247,248,.73); font-size: 15px; line-height: 1.8; }
.showcase-status { display: flex; align-items: center; gap: 9px; color: rgba(235,247,248,.72); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }.showcase-status strong { margin-left: auto; color: #ffbd73; font-size: 11px; letter-spacing: .12em; }.status-pulse, .login-footer i { width: 7px; height: 7px; border-radius: 50%; background: #65d19b; box-shadow: 0 0 0 5px rgba(101,209,155,.13); }
.login-panel { display: grid; place-items: center; padding: 48px clamp(28px, 7vw, 110px); background: rgba(255,255,255,.86); }.login-panel-inner { width: min(100%, 430px); animation: revealUp 500ms ease-out; }.login-mobile-brand { display: none; margin-bottom: 42px; color: var(--brand-strong); }.login-panel h2 { margin: 11px 0 7px; font-family: 'Spectral', Georgia, serif; font-size: clamp(2.6rem, 4vw, 4rem); letter-spacing: -.05em; }.login-intro { margin: 0 0 34px; color: var(--muted); font-size: 14px; }
.login-form label { margin-top: 19px; }.login-input { display: flex; align-items: center; border: 1px solid #d5deea; border-radius: 10px; background: #fff; transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease; }.login-input:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(12,107,114,.11); transform: translateY(-1px); }.login-input > span { width: 43px; color: #8a9aac; text-align: center; font-size: 13px; }.login-input input { border: 0; box-shadow: none !important; }.password-toggle { margin-right: 9px; padding: 5px; border: 0; background: transparent; color: var(--brand); cursor: pointer; font-size: 11px; font-weight: 800; }.login-submit { width: 100%; justify-content: space-between; margin-top: 30px; padding: 14px 17px; }.login-footer { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; color: #8491a0; font-size: 11px; }.login-footer span { display: inline-flex; align-items: center; gap: 8px; }.login-footer a { color: var(--brand); }
@keyframes orbitFloat { 0%, 100% { transform: translate3d(0,0,0) rotate(0deg); } 50% { transform: translate3d(0,16px,0) rotate(4deg); } }
@media (max-width: 820px) { .login-page { display: block; }.login-showcase { min-height: 330px; }.showcase-content { min-height: 330px; padding: 28px 24px; }.showcase-copy { margin: 38px 0 0; }.showcase-copy h1 { font-size: clamp(2.6rem, 12vw, 4.3rem); }.showcase-copy p:not(.eyebrow), .showcase-status { display: none; }.login-panel { min-height: calc(100vh - 330px); padding: 42px 24px 50px; }.login-mobile-brand { display: flex; }}
@media (prefers-reduced-motion: reduce) { .showcase-orbit { animation: none; } }

@media (max-width: 640px) {
    .public-shell { padding: 24px 12px 40px; }
    .verification-card, .public-directory { margin-top: 30px; padding: 24px 18px; }
    .verification-card h1, .public-directory h1 { font-size: 2rem; }
    .public-details { grid-template-columns: 1fr; }
    .public-search { align-items: stretch; flex-direction: column; }
    .page-heading { align-items: stretch; flex-direction: column; margin-top: 24px; }
    .page-heading h1 { font-size: 2.25rem; }
    .heading-actions, .heading-actions .btn { width: 100%; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
    .stat-card { min-height: 88px; padding: 12px; gap: 9px; }
    .stat-icon { width: 34px; height: 34px; }
    .stat-card strong { font-size: 21px; }
    .stat-card div span { font-size: 10px; }
    .members-panel { padding: 16px; }
    .insights-grid { grid-template-columns: 1fr; }
    .panel-heading { flex-direction: column; }
    .panel-heading-actions { align-items: flex-start; flex-direction: column; gap: 10px; }
    .detail-topbar { align-items: flex-start; flex-direction: column-reverse; gap: 12px; }
    .detail-grid { grid-template-columns: 1fr; }
    .profile-header { align-items: flex-start; flex-direction: column; }
    .detail-list { grid-template-columns: 1fr; }
    .pagination { align-items: stretch; flex-direction: column; }
    .pagination-links { justify-content: center; }
    .filters { grid-template-columns: 1fr; }
    .filters .search-field { grid-column: auto; }
    .filters .btn-filter { width: 100%; }
    .bulk-toolbar { align-items: stretch; flex-direction: column; }
    .bulk-actions, .bulk-actions .btn { width: 100%; }
    .bulk-actions .btn { flex: 1; }
    .navbar .nav-user { margin-left: 0; padding-left: 0; border-left: 0; }
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .btn {
        width: 100%;
    }

    .btn-sm {
        width: auto;
    }

    .member-name + small { display: block; }
}

.settings-page { max-width: 1180px; }
.settings-chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid #cde9db; border-radius: 999px; background: #effaf3; color: #207044; font-size: 11px; font-weight: 800; }
.settings-chip i { width: 7px; height: 7px; border-radius: 50%; background: #41ac70; box-shadow: 0 0 0 4px #dff4e7; }
.account-grid, .settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.account-card, .settings-card { margin-bottom: 0; }
.account-hero { display: flex; align-items: center; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid #e6ebf2; }
.account-hero h2 { margin: 3px 0; }.account-hero p:not(.eyebrow) { margin: 0; font-size: 12px; }
.account-avatar { width: 82px; height: 82px; border: 3px solid #dce5f2; border-radius: 18px; object-fit: cover; }.account-avatar-fallback { display: grid; place-items: center; background: #e4f1f3; color: var(--brand-strong); font-size: 24px; font-weight: 800; }
.settings-form { margin-top: 20px; }.settings-form .btn { margin-top: 20px; }.settings-card h2 { margin-bottom: 4px; }.settings-card p:not(.eyebrow) { margin-top: 0; font-size: 12px; }.settings-card-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 20px; }.settings-icon { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 auto; border-radius: 10px; background: #e4f1f3; color: var(--brand-strong); font-size: 10px; font-weight: 800; }.settings-wide { grid-column: 1 / -1; }
.color-setting { display: flex; align-items: center; gap: 12px; }.color-setting input { width: 54px; height: 42px; padding: 4px; }.color-setting code { color: var(--muted); font-size: 13px; }.settings-actions { grid-column: 1 / -1; display: flex; gap: 8px; }
@media (max-width: 700px) { .account-grid, .settings-grid { grid-template-columns: 1fr; }.settings-wide, .settings-actions { grid-column: auto; }.account-hero { align-items: flex-start; flex-direction: column; }.settings-actions, .settings-actions .btn { width: 100%; } }

.employee-form-card { max-width: 820px; margin: 36px auto; }
.employee-form-card h1 { margin-bottom: 24px; font-family: 'Spectral', Georgia, serif; }
.document-preview { width: 54px; height: 54px; margin-top: 6px; border: 1px solid #dce5ed; border-radius: 8px; object-fit: cover; }
.delivery-card { max-width: 980px; margin: 30px auto; }
.delivery-steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-bottom: 30px; }
.delivery-step { position: relative; display: flex; align-items: center; flex-direction: column; gap: 7px; color: #93a1af; text-align: center; }
.delivery-step::after { position: absolute; top: 15px; left: calc(50% + 18px); width: calc(100% - 28px); height: 2px; content: ''; background: #e2e9ed; }
.delivery-step:last-child::after { display: none; }
.delivery-step span { position: relative; z-index: 1; display: grid; place-items: center; width: 32px; height: 32px; border: 2px solid #dbe5ea; border-radius: 50%; background: #fff; font-size: 11px; font-weight: 800; }
.delivery-step small { max-width: 105px; font-size: 10px; line-height: 1.25; }
.delivery-step.is-done { color: var(--brand-strong); }.delivery-step.is-done span { border-color: var(--brand); background: var(--brand); color: #fff; }.delivery-step.is-done::after { background: #8cc8c4; }.delivery-step.is-current small { color: var(--brand); font-weight: 800; }
textarea { width: 100%; padding: 10px 12px; border: 1px solid #ccd7e7; border-radius: 10px; font: inherit; resize: vertical; }
@media (max-width: 700px) { .delivery-steps { grid-template-columns: repeat(3, 1fr); row-gap: 18px; }.delivery-step::after { display: none; } }
.card-settings-shell { max-width: 900px; margin: 36px auto; padding: 28px; }
.card-settings-heading { margin-bottom: 24px; }.card-settings-heading h1 { margin: 5px 0; font-family: 'Spectral', Georgia, serif; font-size: clamp(2rem, 4vw, 3rem); }.card-settings-heading p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 13px; }
.card-config-tabs { display: flex; gap: 7px; padding: 5px; margin-bottom: 22px; border-radius: 13px; background: #edf3f5; }
.card-config-tab { flex: 1; padding: 12px 16px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: var(--muted); cursor: pointer; font: inherit; font-size: 13px; font-weight: 800; transition: background-color 180ms ease, color 180ms ease, box-shadow 180ms ease; }
.card-config-tab.is-active { background: #fff; color: var(--brand-strong); box-shadow: 0 4px 14px rgba(18,34,64,.1); }
.card-config-panel { padding: 22px; border: 1px solid #e0e8ed; border-radius: 14px; background: linear-gradient(145deg, #fbfdfd, #f4f8f9); }.card-config-panel[hidden] { display: none; }.config-panel-title { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 18px; }.config-panel-title h2 { margin: 4px 0; }.config-panel-title p { margin: 0; color: var(--muted); font-size: 12px; }.card-color-input { width: 58px; height: 42px; padding: 4px; }.shared-card-assets { margin-top: 20px; padding: 18px; border: 1px dashed #c8d6dc; border-radius: 12px; background: #f7fafb; }.shared-card-assets::before { display: block; width: 100%; margin-bottom: 4px; content: 'Éléments partagés par les deux modèles'; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.config-subsection { margin-top: 20px; padding: 16px; border: 1px solid #dbe7ea; border-radius: 11px; background: rgba(255,255,255,.7); }.config-subsection-title { margin: 0 0 5px !important; color: var(--brand-strong) !important; font-size: 11px !important; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
@media (max-width: 600px) { .card-settings-shell { padding: 18px; }.card-config-tabs { flex-direction: column; }.card-config-panel { padding: 16px; } }

.dashboard-page { max-width: 1280px; }
.dashboard-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 36px 0 25px; }
.dashboard-hero h1 { margin: 7px 0; font-family: 'Spectral', Georgia, serif; font-size: clamp(2.3rem, 4vw, 3.8rem); letter-spacing: -.05em; }
.dashboard-hero p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 14px; }
.dashboard-date { display: flex; align-items: flex-end; flex-direction: column; gap: 4px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }.dashboard-date strong { color: var(--brand-strong); font-size: 14px; }.dashboard-date i { width: 40px; height: 3px; margin-top: 5px; border-radius: 3px; background: var(--accent); }
.dashboard-stats { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }.dashboard-stat { display: flex; align-items: center; gap: 14px; min-height: 116px; padding: 20px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.84); box-shadow: 0 8px 22px rgba(18,34,64,.06); color: inherit; text-decoration: none; transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease; }.dashboard-stat:hover { border-color: #8fbfc1; box-shadow: 0 13px 30px rgba(18,34,64,.1); transform: translateY(-2px); }.dashboard-stat strong { display: block; color: #17364b; font-size: 29px; line-height: 1; }.dashboard-stat small { display: block; margin-top: 6px; color: var(--muted); font-size: 11px; }.dashboard-stat-label { display: block; color: #a8dcd5; font-size: 10px; font-weight: 800; letter-spacing: .12em; }.dashboard-stat b { display: block; margin-top: 14px; color: #bfece5; font-size: 11px; }.stat-main { display: block; padding: 22px; border: 0; background: linear-gradient(135deg, #084c55, #0c7a7e); color: #fff; }.stat-main strong { margin-top: 7px; color: #fff; font-family: 'Spectral', Georgia, serif; font-size: 43px; }.stat-main small { color: rgba(235,247,248,.72); }.dashboard-stat-icon { display: grid; place-items: center; width: 43px; height: 43px; flex: 0 0 auto; border-radius: 12px; font-size: 10px; font-weight: 800; }.dashboard-stat-icon.success { background: #e6f8ee; color: var(--success); }.dashboard-stat-icon.warning { background: #fff2de; color: #936019; }.dashboard-stat-icon.danger { background: #ffe9ed; color: var(--danger); }
.dashboard-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 18px; margin-bottom: 18px; }.dashboard-grid-bottom { grid-template-columns: 1fr 1fr; }.dashboard-card { padding: 23px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.86); box-shadow: 0 8px 22px rgba(18,34,64,.06); }.dashboard-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-bottom: 20px; }.dashboard-card-head h2 { margin: 4px 0 0; font-size: 1.3rem; }.dashboard-live { display: inline-flex; align-items: center; gap: 7px; color: var(--success); font-size: 11px; font-weight: 800; }.dashboard-live i { width: 7px; height: 7px; border-radius: 50%; background: #42ad72; }.text-link { color: var(--brand); font-size: 11px; font-weight: 800; text-decoration: none; }.status-visual { display: flex; align-items: center; gap: 35px; }.status-ring { display: grid; place-items: center; width: 150px; height: 150px; flex: 0 0 auto; border-radius: 50%; background: conic-gradient(var(--brand) var(--active), #e7edf1 0); position: relative; }.status-ring::after { position: absolute; inset: 13px; content: ''; border-radius: 50%; background: #fff; }.status-ring div { position: relative; z-index: 1; text-align: center; }.status-ring strong, .status-ring small { display: block; }.status-ring strong { color: var(--brand-strong); font-family: 'Spectral', Georgia, serif; font-size: 28px; }.status-ring small { color: var(--muted); font-size: 10px; text-transform: uppercase; }.status-legend { flex: 1; }.status-legend div { display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid #edf0f4; color: var(--muted); font-size: 12px; }.status-legend strong { color: #253c52; }.legend-dot { width: 8px; height: 8px; border-radius: 50%; }.legend-dot.active { background: var(--brand); }.legend-dot.warning { background: #e6a342; }.legend-dot.danger, .legend-dot.expired { background: var(--danger); }
.alert-metric { display: flex; align-items: baseline; gap: 10px; }.alert-metric strong { color: #9a651b; font-family: 'Spectral', Georgia, serif; font-size: 48px; }.alert-metric span { color: var(--muted); font-size: 12px; }.alert-progress { height: 8px; margin: 18px 0 10px; overflow: hidden; border-radius: 10px; background: #edf0f3; }.alert-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #e6a342, #f2c46d); }.dashboard-muted { color: var(--muted); font-size: 12px; }.alerts-overview .btn { margin-top: 9px; }
.barreau-list, .activity-list { display: grid; gap: 12px; }.barreau-row { display: grid; grid-template-columns: minmax(150px, .8fr) 1fr; align-items: center; gap: 15px; }.barreau-row strong, .barreau-row small { display: block; }.barreau-row strong { color: #263d53; font-size: 12px; }.barreau-row small { margin-top: 3px; color: var(--muted); font-size: 10px; }.barreau-bar { height: 7px; overflow: hidden; border-radius: 9px; background: #e9eff1; }.barreau-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), #53aaa4); }.activity-row { display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid #edf0f4; }.activity-dot { width: 8px; height: 8px; border: 2px solid #fff; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 2px #bfe0de; }.activity-row strong, .activity-row small { display: block; }.activity-row strong { color: #263d53; font-size: 12px; }.activity-row small, .activity-row time { color: var(--muted); font-size: 10px; }.activity-row time { align-self: start; }
.recent-members-card { margin-bottom: 25px; }.recent-member-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }.dashboard-member { display: flex; align-items: center; gap: 9px; padding: 10px; border: 1px solid #e6ebf1; border-radius: 10px; color: inherit; text-decoration: none; }.dashboard-member:hover { border-color: #9bc5c7; background: #f4fafa; }.dashboard-member-avatar { display: grid; place-items: center; width: 32px; height: 32px; flex: 0 0 auto; border-radius: 9px; background: #e4f1f3; color: var(--brand-strong); font-size: 11px; font-weight: 800; }.dashboard-member strong, .dashboard-member small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.dashboard-member strong { color: #263d53; font-size: 11px; }.dashboard-member small { margin-top: 3px; color: var(--muted); font-size: 10px; }.dashboard-member-arrow { margin-left: auto; color: var(--brand); }
@media (max-width: 900px) { .dashboard-stats { grid-template-columns: repeat(2, 1fr); }.dashboard-grid, .dashboard-grid-bottom { grid-template-columns: 1fr; }.recent-member-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .dashboard-hero { align-items: flex-start; flex-direction: column; }.dashboard-date { align-items: flex-start; }.dashboard-stats { grid-template-columns: 1fr 1fr; gap: 9px; }.dashboard-stat { min-height: 100px; padding: 14px; }.stat-main { grid-column: 1 / -1; }.status-visual { align-items: flex-start; flex-direction: column; gap: 20px; }.recent-member-grid { grid-template-columns: 1fr; }.barreau-row { grid-template-columns: 1fr; gap: 6px; } }

/* Navigation latérale de l'espace d'administration. */
@media (min-width: 1201px) {
    body:has(.navbar) { padding-left: 256px; }
    .navbar {
        position: fixed;
        inset: 0 auto 0 0;
        width: 256px;
        min-height: 100vh;
        padding: 28px 16px 20px;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 34px;
        border-right: 1px solid rgba(255,255,255,.12);
        border-bottom: 0;
        box-shadow: 12px 0 30px rgba(18,34,64,.12);
    }
    .navbar .brand { margin: 0 10px !important; }
    .nav-links { flex: 1; align-items: stretch; flex-direction: column; gap: 5px; }
    .navbar a { display: flex; align-items: center; min-height: 43px; margin: 0; padding: 10px 13px; border-radius: 10px; }
    .navbar .nav-link-active { box-shadow: inset 3px 0 0 #ffb866; background: rgba(255,255,255,.16); }
    .account-menu { padding-top: 14px; border-top: 1px solid rgba(255,255,255,.18); }
    .navbar .nav-user { align-self: stretch; margin: 0; padding: 8px; border-left: 0; }
    .account-dropdown { right: auto; left: calc(100% + 10px); bottom: 0; }
    .container { max-width: 1280px; margin: 32px auto 48px; }
}

.user-avatar { width: 27px; height: 27px; flex: 0 0 auto; border: 2px solid rgba(255,255,255,.55); border-radius: 50%; object-fit: cover; }
.user-avatar-table { width: 38px; height: 38px; border-color: #dce5f2; vertical-align: middle; }
.user-dot-table { display: inline-grid; width: 38px; height: 38px; vertical-align: middle; }
.user-photo-form { display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; vertical-align: middle; }
.user-photo-form input[type="file"] { width: 150px; padding: 5px; font-size: 11px; }
.profile-settings-card { display: flex; align-items: center; gap: 20px; max-width: 760px; margin: 0 auto 18px; }
.profile-settings-avatar { flex: 0 0 auto; }
.user-avatar-large, .user-dot-large { display: grid; place-items: center; width: 82px; height: 82px; border: 3px solid #dce5f2; border-radius: 18px; object-fit: cover; }
.user-dot-large { background: #e4f1f3; color: var(--brand-strong); font-size: 24px; font-weight: 800; }
.profile-settings-content { flex: 1; }
.profile-settings-content h2 { margin-bottom: 4px; }
.profile-settings-content p:not(.eyebrow) { margin: 0 0 12px; font-size: 12px; }
.profile-photo-upload { display: flex; align-items: center; gap: 8px; }
.profile-photo-upload input[type="file"] { max-width: 240px; padding: 7px; }
@media (max-width: 640px) { .profile-settings-card { align-items: flex-start; flex-direction: column; } .profile-photo-upload { align-items: stretch; flex-direction: column; } .profile-photo-upload .btn { width: 100%; } }

/* Administration des comptes utilisateurs. */
.users-page { max-width: 1240px; }
.users-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin: 34px 0 22px; }
.users-hero h1 { margin: 6px 0 7px; color: #17364b; font-family: 'Spectral', Georgia, serif; font-size: clamp(2.35rem, 4vw, 3.5rem); line-height: .98; }
.users-hero p:not(.eyebrow) { max-width: 520px; margin: 0; color: var(--muted); font-size: 13px; }
.users-hero-mark { display: grid; place-items: center; width: 122px; height: 122px; flex: 0 0 auto; border: 1px solid #b7d9d7; border-radius: 28px; background: linear-gradient(145deg, #e5f5f2, #fff7e9); color: var(--brand-strong); box-shadow: 0 12px 28px rgba(18,34,64,.08); }
.users-hero-mark span { font-family: 'Spectral', Georgia, serif; font-size: 38px; line-height: 1; }.users-hero-mark small { margin-top: -24px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.user-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.user-metric { display: flex; align-items: center; gap: 12px; min-height: 78px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.82); box-shadow: 0 7px 20px rgba(18,34,64,.05); }
.user-metric-icon { display: grid; place-items: center; width: 36px; height: 36px; flex: 0 0 auto; border-radius: 11px; background: #fff1df; color: #a6651e; font-size: 10px; font-weight: 800; }.user-metric-icon-teal { background: #e3f4f1; color: var(--brand-strong); }.user-metric-icon-alert { background: #ffeaed; color: var(--danger); font-size: 17px; }
.user-metric strong, .user-metric small { display: block; }.user-metric strong { color: #17364b; font-size: 23px; line-height: 1; }.user-metric small { margin-top: 5px; color: var(--muted); font-size: 10px; }
.user-profile-panel { max-width: none; margin: 0 0 18px; padding: 18px 22px; border-color: #c8e2df; background: linear-gradient(110deg, rgba(232,247,244,.92), rgba(255,255,255,.9)); }
.user-profile-panel .user-avatar-large, .user-profile-panel .user-dot-large { width: 68px; height: 68px; border-radius: 16px; }.user-profile-panel .profile-settings-content h2 { color: #17364b; font-size: 20px; }.user-profile-panel .profile-settings-content p:not(.eyebrow) { color: var(--muted); }
.user-create-panel { max-width: 900px; margin: 0 auto 18px; padding: 25px 28px; }.user-panel-heading { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 21px; }.user-panel-heading h2 { margin: 4px 0 3px; color: #17364b; font-size: 20px; }.user-panel-heading p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 12px; }.user-panel-icon { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 auto; border-radius: 12px; background: var(--brand); color: #fff; font-size: 22px; font-weight: 400; box-shadow: 0 7px 15px rgba(12,107,114,.2); }
.user-create-panel form > .row { grid-template-columns: repeat(2, minmax(0, 1fr)); }.user-create-panel form > label { margin-top: 3px; }.user-create-panel form > input[type="password"] { max-width: 420px; }.user-create-panel form > input[type="file"] { max-width: 420px; }
.user-list-panel { padding: 22px; }.user-list-heading { align-items: flex-start; margin-bottom: 18px; }.user-list-heading h2 { margin: 4px 0 3px; color: #17364b; font-size: 20px; }.user-list-heading p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 11px; }.users-list-status { display: inline-flex; align-items: center; gap: 7px; padding: 8px 10px; border: 1px solid #cce8d8; border-radius: 999px; background: #effaf3; color: #277447; font-size: 10px; font-weight: 800; }.users-list-status i { width: 7px; height: 7px; border-radius: 50%; background: #42ad72; box-shadow: 0 0 0 3px #dff4e7; }
.users-table { min-width: 1080px; }.users-table th { background: #f5f8fb; color: #66758a; font-size: 10px; letter-spacing: .05em; }.users-table tbody tr { border-left-width: 3px; }.users-table tbody tr:hover { background: #fbfdfd; }.users-table td { vertical-align: top; }.users-table td:first-child { color: #8492a4; font-size: 11px; font-weight: 800; }.users-table small { color: var(--muted); font-size: 10px; }
.users-table .user-photo-form { display: flex; align-items: center; flex-wrap: wrap; margin: 8px 0 0; }.users-table .user-photo-form input[type="file"] { width: 140px; }.users-table form select, .users-table form input[type="password"] { min-height: 35px; border-radius: 8px; font-size: 11px; }.users-table .btn-sm { min-height: 35px; }
.user-create-link { display: flex; align-items: center; gap: 13px; max-width: 900px; margin: 0 auto 18px; padding: 16px 20px; border: 1px solid #b9dcd9; border-radius: 14px; background: linear-gradient(110deg, #e8f7f4, #fffaf0); color: inherit; text-decoration: none; box-shadow: 0 8px 22px rgba(18,34,64,.06); transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease; }.user-create-link:hover { border-color: #78b9b5; box-shadow: 0 13px 28px rgba(18,34,64,.11); transform: translateY(-2px); }.user-create-link .user-panel-icon { width: 36px; height: 36px; }.user-create-link strong, .user-create-link small { display: block; }.user-create-link strong { color: #17364b; font-size: 14px; }.user-create-link small { margin-top: 3px; color: var(--muted); font-size: 11px; }.user-create-link b { margin-left: auto; color: var(--brand); font-size: 22px; font-weight: 400; }.user-role-label { display: block; color: #17364b; font-size: 11px; font-weight: 800; text-transform: capitalize; }.users-table td > small { display: block; margin-top: 4px; }
.users-readonly-note { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 900px; margin: 0 auto 18px; padding: 14px 18px; border: 1px solid #e4d8bd; border-radius: 12px; background: #fff9ed; color: #7d6027; font-size: 11px; }.users-readonly-note strong { font-size: 12px; }.users-readonly-label { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.user-form-page { max-width: 900px; }.user-form-topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 30px 0 16px; }.user-form-shell { padding: 28px; }.user-form-heading { display: flex; align-items: flex-start; gap: 14px; padding-bottom: 24px; border-bottom: 1px solid #e5ebf1; }.user-form-heading h1 { margin: 5px 0 6px; color: #17364b; font-family: 'Spectral', Georgia, serif; font-size: clamp(2rem, 4vw, 3rem); }.user-form-heading p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 13px; }.user-form-section { padding: 24px 0; border-bottom: 1px solid #e8edf2; }.user-form-section-title { display: flex; align-items: flex-start; gap: 11px; margin-bottom: 18px; }.user-form-section-title > span { display: grid; place-items: center; width: 27px; height: 27px; flex: 0 0 auto; border-radius: 8px; background: #e7f3f1; color: var(--brand-strong); font-size: 10px; font-weight: 800; }.user-form-section-title strong, .user-form-section-title small { display: block; }.user-form-section-title strong { color: #17364b; font-size: 13px; }.user-form-section-title small { margin-top: 3px; color: var(--muted); font-size: 11px; }.user-form-actions { display: flex; gap: 9px; flex-wrap: wrap; padding-top: 24px; }.user-form-actions .btn { min-width: 190px; }.user-form .help { display: block; margin-top: 6px; }
@media (max-width: 640px) { .user-form-topbar { align-items: flex-start; flex-direction: column-reverse; }.user-form-shell { padding: 20px 16px; }.user-form-heading { align-items: flex-start; flex-direction: column; }.user-form-actions, .user-form-actions .btn { width: 100%; }.user-form-actions .btn { min-width: 0; }.user-create-link { align-items: flex-start; padding: 14px; }.user-create-link b { align-self: center; } }
@media (max-width: 760px) { .users-hero { align-items: flex-start; flex-direction: column; }.users-hero-mark { width: 100%; height: 72px; border-radius: 16px; grid-template-columns: auto auto; gap: 10px; }.users-hero-mark small { margin: 0; }.user-metrics { grid-template-columns: 1fr; }.user-create-panel, .user-list-panel { padding: 18px 15px; }.user-create-panel form > .row { grid-template-columns: 1fr; }.user-profile-panel { padding: 16px; }.user-list-heading { gap: 12px; }.users-list-status { align-self: flex-start; } }

@media (max-width: 700px) {
    .users-page { padding: 0 10px; }
    .users-hero { margin: 22px 0 16px; gap: 14px; }
    .users-hero h1 { font-size: 2.35rem; }
    .users-hero-mark { height: 64px; }
    .user-metric { min-height: 68px; padding: 11px 13px; }
    .user-profile-panel { margin-bottom: 12px; }
    .user-list-panel { padding: 14px 10px; }
    .users-table { display: block; min-width: 0; white-space: normal; }
    .users-table thead { display: none; }
    .users-table tbody { display: grid; gap: 10px; }
    .users-table tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px; padding: 12px 10px; border: 1px solid #e2e9f0; border-left: 3px solid var(--accent); border-radius: 11px; background: #fff; }
    .users-table tbody td { display: flex; align-items: center; min-height: 28px; padding: 4px 0; border: 0; white-space: normal; }
    .users-table tbody td::before { margin-right: 8px; color: #8a97a7; font-size: 9px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
    .users-table tbody td:nth-child(1) { display: none; }
    .users-table tbody td:nth-child(2) { grid-column: 1 / -1; padding-bottom: 8px; border-bottom: 1px solid #edf1f4; }
    .users-table tbody td:nth-child(2)::before { content: 'Utilisateur'; }
    .users-table tbody td:nth-child(3)::before { content: 'Photo'; }
    .users-table tbody td:nth-child(4)::before { content: 'Accès'; }
    .users-table tbody td:nth-child(5)::before { content: 'Sécurité'; }
    .users-table tbody td:nth-child(6)::before { content: 'Mot de passe'; }
    .users-table tbody td:nth-child(7)::before { content: 'Suppression'; }
    .users-table .user-avatar-table, .users-table .user-dot-table { width: 30px; height: 30px; }
    .users-table .user-role-label { font-size: 10px; }
    .users-table .btn-sm { min-height: 30px; padding: 6px 9px; }
}

@media (max-width: 430px) {
    .users-table tbody tr { grid-template-columns: 1fr; }
    .users-table tbody td { align-items: flex-start; }
    .users-table tbody td:nth-child(2) { align-items: center; }
    .users-list-status { font-size: 9px; }
    .user-form-heading h1 { font-size: 2rem; }
}

@media (max-width: 1200px) {
    body:has(.navbar) { padding-left: 0; }
    .navbar .nav-links { width: 100%; min-width: 0; flex-direction: row; align-items: center; flex-wrap: nowrap; overflow-x: auto; overflow-y: visible; padding-bottom: 3px; scrollbar-width: thin; }
    .navbar .nav-links > a, .navbar .account-menu { flex: 0 0 auto; }
    .account-menu { margin-left: 5px; }
    .account-dropdown { right: 0; bottom: calc(100% + 10px); }
}

@media (max-width: 1200px) {
    body:has(.navbar) { padding-left: 0; }
    .navbar { position: sticky; top: 0; z-index: 100; width: 100%; min-height: 62px; padding: 12px; gap: 12px; flex-direction: row; align-items: center; }
    .navbar .brand { margin-left: 0 !important; }
    .navbar .brand small { display: none; }
    .navbar .brand strong { font-size: 16px; }
    .mobile-menu-toggle { display: flex; width: 42px; height: 38px; margin-left: auto; padding: 8px 9px; border: 1px solid rgba(255,255,255,.22); border-radius: 9px; background: rgba(255,255,255,.08); cursor: pointer; flex-direction: column; justify-content: center; gap: 4px; }
    .mobile-menu-toggle span { display: block; width: 22px; height: 2px; border-radius: 3px; background: #fff; transition: transform 180ms ease, opacity 180ms ease; }
    .navbar.nav-open .mobile-menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }.navbar.nav-open .mobile-menu-toggle span:nth-child(2) { opacity: 0; }.navbar.nav-open .mobile-menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
    .navbar .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; width: 100%; max-height: calc(100vh - 62px); min-width: 0; padding: 10px 12px 16px; overflow-y: auto; overflow-x: hidden; background: linear-gradient(145deg, #073f48, #0c6b72); box-shadow: 0 14px 30px rgba(18,34,64,.22); }
    .navbar.nav-open .nav-links { display: flex; flex-direction: column; align-items: stretch; gap: 4px; }
    .navbar .nav-links > a { width: 100%; min-height: 42px; padding: 10px 12px; font-size: 12px; }
    .account-menu { width: 100%; margin: 8px 0 0; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.18); }
    .account-dropdown { position: absolute; top: auto; right: 0; bottom: calc(100% + 10px); width: min(300px, calc(100vw - 24px)); }
    .container { width: 100%; padding: 0 12px; }
    .page-heading { gap: 15px; }
    .page-heading h1 { overflow-wrap: anywhere; }
    .heading-actions, .heading-actions .btn { width: 100%; }
    .card-box, .dashboard-card, .insight-panel { padding: 16px; }
    .bulk-toolbar { gap: 12px; }
    .bulk-actions { display: grid; grid-template-columns: 1fr; }
    .bulk-actions .btn { width: 100%; }
    .row-actions { align-items: stretch; flex-direction: column; }
    .row-actions .btn, .row-actions form { width: 100%; }
    .row-actions form .btn { width: 100%; }
    .employee-form-card, .form-card, .card-settings-shell { margin: 18px auto; }
    .card-settings-shell { padding: 16px; }
    .card-config-panel { padding: 15px; }
    .shared-card-assets { padding: 13px; }
    .delivery-card { margin: 18px auto; }
}

@media (max-width: 480px) {
    .navbar { position: static; }
    .navbar .nav-links { margin-right: -12px; padding-right: 12px; }
    .navbar .nav-user { min-width: 135px; }
    .account-trigger-text small { display: none; }
    .page-heading h1, .dashboard-hero h1 { font-size: 2rem; }
    .page-subtitle, .dashboard-hero p:not(.eyebrow) { font-size: 12px; line-height: 1.5; }
    .stats-grid { grid-template-columns: 1fr; }
    .stat-card { min-height: 78px; }
    .dashboard-stats { grid-template-columns: 1fr; }
    .dashboard-stat.stat-main { grid-column: auto; }
    .dashboard-card-head { align-items: stretch; flex-direction: column; gap: 8px; }
    .status-ring { width: 128px; height: 128px; }
    .recent-member-grid { grid-template-columns: 1fr; }
    .filters { padding: 12px; }
    .pagination-links { flex-wrap: wrap; }
    .public-brand { font-size: 17px; }
    .verification-card h1, .public-directory h1 { font-size: 1.8rem; }
    .login-panel { padding: 32px 18px 40px; }
    .login-footer { align-items: flex-start; flex-direction: column; }
    .card-config-tabs { gap: 4px; }
    .card-config-tab { padding: 10px 8px; font-size: 12px; }
    .delivery-steps { grid-template-columns: repeat(2, 1fr); }
}
