/* ══════════════════════════════════════════════════════════
   JEAN KERT — Feuille de styles unique
   Version 1.0
   ══════════════════════════════════════════════════════════ */

/* ── Variables ───────────────────────────────────────────── */
:root {
    --navy: #1B2A4A;
    --navy-deep: #111D35;
    --navy-light: #263D66;
    --gold: #C5A258;
    --gold-light: #D4B97A;
    --gold-pale: #E8D5A8;
    --offwhite: #F5F3EF;
    --cream: #FAF8F4;
    --text: #333;
    --text-light: #666;
    --text-muted: #999;
    --border: #e5e5e5;
    --border-light: #f0eeea;
    --success: #2E7D32;
    --warning: #E65100;
    --danger: #C62828;
    --info: #1565C0;
    --sidebar-w: 260px;
    --topbar-h: 58px;
    --radius: 6px;
}

/* ── Reset & base ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14px; scroll-behavior: smooth; }
body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    background: var(--offwhite);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--gold); }
img { max-width: 100%; }
table { border-collapse: collapse; width: 100%; }
input, select, textarea, button { font-family: inherit; font-size: inherit; }

/* ── Layout ──────────────────────────────────────────────── */
.app-layout { display: flex; min-height: 100vh; }

/* ── Sidebar ─────────────────────────────────────────────── */
.sidebar {
    width: var(--sidebar-w);
    position: fixed;
    top: 0; left: 0; bottom: 0;
    background: var(--navy);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    overflow: hidden;
}
.sidebar::before {
    content: '';
    position: absolute; inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(45deg, rgba(255,255,255,.02) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(255,255,255,.02) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(255,255,255,.02) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(255,255,255,.02) 75%);
    background-size: 30px 30px;
}

.sidebar-header {
    position: relative;
    padding: 28px 24px 22px;
    text-align: center;
    border-bottom: 1px solid rgba(197,162,88,.15);
}
.sidebar-logo {
    color: var(--gold);
    font-size: 28px;
    opacity: .8;
    margin-bottom: 6px;
}
.sidebar-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    font-size: 19px;
    color: var(--gold-pale);
    letter-spacing: 3px;
}
.sidebar-sub {
    font-size: 11px;
    color: rgba(255,255,255,.3);
    letter-spacing: 1.5px;
    margin-top: 4px;
}

.sidebar-nav {
    position: relative;
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}
.sidebar-nav::-webkit-scrollbar { width: 4px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 2px; }

.nav-section {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,.2);
    padding: 18px 24px 6px;
}
.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 24px;
    color: rgba(255,255,255,.5);
    font-size: 13.5px;
    font-weight: 500;
    position: relative;
    transition: all .15s ease;
}
.nav-item:hover { color: rgba(255,255,255,.85); background: rgba(255,255,255,.04); }
.nav-item.active { color: var(--gold-pale); background: rgba(197,162,88,.08); }
.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0; top: 4px; bottom: 4px;
    width: 3px;
    background: var(--gold);
    border-radius: 0 2px 2px 0;
}
.nav-icon { width: 18px; text-align: center; font-size: 14px; }

.sidebar-user {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    border-top: 1px solid rgba(197,162,88,.1);
}
.user-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    background: var(--navy-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    font-size: 13px;
    color: var(--gold-pale);
    flex-shrink: 0;
}
.user-info { flex: 1; min-width: 0; }
.user-name { font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,.7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-status { font-size: 11px; color: rgba(255,255,255,.3); }
.user-action { color: rgba(255,255,255,.3); font-size: 14px; }
.user-action:hover { color: var(--gold); }

/* ── Main ────────────────────────────────────────────────── */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-w);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ── Topbar ──────────────────────────────────────────────── */
.topbar {
    height: var(--topbar-h);
    background: #fff;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    position: sticky;
    top: 0;
    z-index: 500;
}
.topbar-breadcrumb { font-size: 13px; color: var(--text-muted); }
.topbar-breadcrumb strong { color: var(--navy); }
.topbar-right { display: flex; align-items: center; gap: 18px; }
.topbar-date { font-size: 12.5px; color: var(--text-muted); font-weight: 500; }
.topbar-notif { position: relative; font-size: 18px; color: var(--text-muted); }
.topbar-notif:hover { color: var(--navy); }
.notif-badge {
    position: absolute; top: -6px; right: -8px;
    background: var(--danger);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 16px; height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}
.topbar-user {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--navy);
    color: var(--gold-pale);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    font-family: 'Cormorant Garamond', serif;
}
.topbar-user:hover { background: var(--navy-light); color: var(--gold-pale); }
.topbar-logout { color: var(--text-muted); font-size: 16px; }
.topbar-logout:hover { color: var(--danger); }
.mobile-toggle { display: none; background: none; border: none; font-size: 22px; color: var(--navy); cursor: pointer; }

/* ── Page content ────────────────────────────────────────── */
.page-content { flex: 1; padding: 28px; }

/* ── Footer ──────────────────────────────────────────────── */
.main-footer {
    padding: 14px;
    text-align: center;
    font-size: 11px;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    background: #fff;
}
.footer-symbol { color: var(--gold); opacity: .5; }

/* ── Flash messages ──────────────────────────────────────── */
.flash {
    padding: 14px 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 13.5px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: opacity .3s ease;
}
.flash-success { background: #E8F5E9; color: var(--success); border: 1px solid #C8E6C9; }
.flash-warning { background: #FFF3E0; color: var(--warning); border: 1px solid #FFE0B2; }
.flash-error { background: #FFEBEE; color: var(--danger); border: 1px solid #FFCDD2; }
.flash-close { background: none; border: none; cursor: pointer; font-size: 18px; color: inherit; opacity: .5; }

/* ── Cards ───────────────────────────────────────────────── */
.content-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 20px;
}
.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid var(--border-light);
}
.card-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    font-size: 17px;
    color: var(--navy);
}
.card-body { padding: 22px; }
.card-body-np { padding: 0; }

/* ── Stats grid ──────────────────────────────────────────── */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 22px;
}
.stat-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 4px; }
.stat-value {
    font-family: 'Cormorant Garamond', serif;
    font-size: 30px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.1;
}
.stat-detail { font-size: 11.5px; color: var(--text-muted); margin-top: 3px; }
.stat-accent .stat-value { color: var(--gold); }
a.stat-card-link {
    text-decoration: none;
    color: inherit;
    transition: box-shadow .2s ease, border-color .2s ease, transform .15s ease;
    cursor: pointer;
}
a.stat-card-link:hover {
    box-shadow: 0 4px 15px rgba(27,42,74,.1);
    border-color: var(--gold);
    transform: translateY(-2px);
}
a.stat-card-link:hover .stat-detail { color: var(--gold); }
a.stat-card-link:hover .stat-value { color: var(--gold); }
a.alerte-link { cursor: pointer; transition: transform .1s ease, box-shadow .15s ease; display:block; }
a.alerte-link:hover { transform: translateX(4px); box-shadow: 0 2px 8px rgba(0,0,0,.06); }

/* ── Welcome banner ──────────────────────────────────────── */
.welcome-banner {
    background: var(--navy);
    border-radius: var(--radius);
    padding: 28px 30px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}
.welcome-banner::before {
    content: '';
    position: absolute; inset: 0;
    background-image: linear-gradient(45deg, rgba(255,255,255,.03) 25%, transparent 25%), linear-gradient(-45deg, rgba(255,255,255,.03) 25%, transparent 25%);
    background-size: 30px 30px;
    pointer-events: none;
}
.welcome-title {
    position: relative;
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--gold-pale);
}
.welcome-sub { position: relative; font-size: 13px; color: rgba(255,255,255,.45); margin-top: 4px; }

/* ── Tables ──────────────────────────────────────────────── */
.data-table { width: 100%; }
.data-table th {
    background: var(--offwhite);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: var(--text-muted);
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
.data-table td {
    padding: 13px 16px;
    border-bottom: 1px solid var(--border-light);
    font-size: 13.5px;
    color: var(--text);
    vertical-align: middle;
}
.data-table tr:hover td { background: rgba(245,243,239,.5); }
.data-table tr:last-child td { border-bottom: none; }
.td-actions { white-space: nowrap; }
.td-right { text-align: right; }
.td-center { text-align: center; }
.td-nowrap { white-space: nowrap; }
.empty-state { text-align: center; padding: 50px 20px; color: var(--text-muted); }
.empty-state p { margin-top: 8px; }

/* ── Badges ──────────────────────────────────────────────── */
.badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
    color: #fff;
    white-space: nowrap;
    letter-spacing: .3px;
}
.badge-success { background: var(--success); }
.badge-warning { background: var(--warning); }
.badge-danger { background: var(--danger); }
.badge-info { background: var(--info); }
.badge-default { background: #78909C; }
.badge-sm { font-size: 10px; padding: 2px 7px; }
.badge-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-light);
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all .15s ease;
    text-decoration: none;
    white-space: nowrap;
}
.btn-primary { background: var(--navy); color: var(--gold-pale); }
.btn-primary:hover { background: var(--navy-light); color: var(--gold-pale); box-shadow: 0 2px 8px rgba(27,42,74,.25); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-light); color: #fff; }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #388E3C; color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #D32F2F; color: #fff; }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text-light); }
.btn-outline:hover { border-color: var(--navy); color: var(--navy); }
.btn-sm { padding: 5px 12px; font-size: 12px; }
.btn-xs { padding: 3px 8px; font-size: 11px; border-radius: 4px; }
.btn-icon { padding: 6px 10px; }
.btn-group { display: flex; gap: 8px; flex-wrap: wrap; }

/* ── Forms ────────────────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-label {
    display: block;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: var(--navy);
    margin-bottom: 6px;
}
.form-control {
    width: 100%;
    height: 40px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 13.5px;
    color: var(--text);
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.form-control:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(197,162,88,.12); outline: none; }
select.form-control { appearance: auto; cursor: pointer; }
textarea.form-control { height: auto; padding: 10px 14px; resize: vertical; min-height: 80px; }
.form-hint { font-size: 11.5px; color: var(--text-muted); margin-top: 4px; }
.form-error { font-size: 11.5px; color: var(--danger); margin-top: 4px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.form-inline { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.form-check { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.form-check input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--navy); cursor: pointer; }

/* ── Filter bar ──────────────────────────────────────────── */
.filter-bar {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    padding: 16px 22px;
    background: var(--offwhite);
    border-bottom: 1px solid var(--border-light);
}
.filter-bar .form-control { width: auto; min-width: 180px; height: 36px; font-size: 13px; }
.filter-bar input[type="text"] { min-width: 240px; }

/* ── Progress bar ────────────────────────────────────────── */
.progress { height: 8px; background: #eee; border-radius: 4px; overflow: hidden; }
.progress-bar { height: 100%; border-radius: 4px; transition: width .5s ease; }
.progress-bar.green { background: var(--success); }
.progress-bar.gold { background: var(--gold); }
.progress-bar.orange { background: var(--warning); }
.progress-bar.red { background: var(--danger); }
.progress-text { font-size: 12px; color: var(--text-muted); margin-top: 3px; }

/* ── Modal ───────────────────────────────────────────────── */
.modal-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-overlay.show { display: flex; }
.modal {
    background: #fff;
    border-radius: 8px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0,0,0,.2);
}
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}
.modal-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    font-size: 18px;
    color: var(--navy);
}
.modal-close { background: none; border: none; font-size: 22px; color: var(--text-muted); cursor: pointer; }
.modal-close:hover { color: var(--danger); }
.modal-body { padding: 24px; }
.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 24px;
    border-top: 1px solid var(--border-light);
    background: var(--offwhite);
    border-radius: 0 0 8px 8px;
}

/* ── Pagination ──────────────────────────────────────────── */
.pagination { display: flex; gap: 4px; justify-content: center; padding: 20px 0; }
.pag-btn {
    display: flex; align-items: center; justify-content: center;
    min-width: 34px; height: 34px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-light);
    padding: 0 8px;
}
.pag-btn:hover { border-color: var(--navy); color: var(--navy); }
.pag-btn.active { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ── Grid helpers ────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.gap-8 { gap: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 12px; }
.text-gold { color: var(--gold); }
.fw-bold { font-weight: 700; }

/* ── Tabs ────────────────────────────────────────────────── */
.tabs { display: flex; gap: 0; border-bottom: 2px solid var(--border); margin-bottom: 20px; }
.tab-btn {
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    transition: color .15s ease;
}
.tab-btn:hover { color: var(--navy); }
.tab-btn.active { color: var(--navy); }
.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0; right: 0;
    height: 2px;
    background: var(--gold);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── Obedience chips ─────────────────────────────────────── */
.chip-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid var(--border);
    color: var(--text-light);
    cursor: pointer;
    transition: all .15s ease;
}
.chip:hover, .chip.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.chip-count { font-size: 10px; opacity: .7; }

/* ── Assoc cards (directory) ─────────────────────────────── */
.assoc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.assoc-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    border-top: 3px solid var(--gold);
    padding: 20px;
    transition: box-shadow .2s ease;
}
.assoc-card:hover { box-shadow: 0 4px 15px rgba(0,0,0,.08); }
.assoc-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.assoc-card-name { font-family: 'Cormorant Garamond', serif; font-weight: 700; font-size: 16px; color: var(--navy); line-height: 1.3; }
.assoc-card-meta { font-size: 12px; color: var(--text-muted); margin-bottom: 12px; }
.assoc-card-officers { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.officer-chip {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    background: var(--offwhite);
    color: var(--text-light);
    border: 1px solid var(--border-light);
}

/* ── Planning calendar ───────────────────────────────────── */
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.cal-header { background: var(--navy); color: var(--gold-pale); text-align: center; padding: 10px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.cal-day { background: #fff; min-height: 90px; padding: 6px 8px; }
.cal-day-num { font-size: 12px; font-weight: 600; color: var(--text-muted); margin-bottom: 4px; }
.cal-day.today .cal-day-num { background: var(--gold); color: #fff; border-radius: 50%; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; }
.cal-day.other-month { background: var(--offwhite); }
.cal-day.other-month .cal-day-num { opacity: .3; }
.cal-event {
    font-size: 10.5px;
    padding: 2px 5px;
    margin-bottom: 2px;
    border-radius: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
}
.cal-event.tenue { background: rgba(27,42,74,.1); color: var(--navy); }
.cal-event.agape { background: rgba(197,162,88,.15); color: #8B7230; }
.cal-event.reunion { background: rgba(21,101,192,.1); color: var(--info); }
.cal-event.ceremonie { background: rgba(106,27,154,.1); color: #6A1B9A; }
.cal-event.en_attente { border: 1px dashed var(--warning); background: rgba(230,81,0,.05); color: var(--warning); }

/* ── QR Code display ─────────────────────────────────────── */
.qr-container { text-align: center; padding: 24px; }
.qr-container img { border: 4px solid var(--offwhite); border-radius: 8px; }
.qr-secret { font-family: monospace; font-size: 14px; letter-spacing: 2px; color: var(--navy); background: var(--offwhite); padding: 8px 16px; border-radius: 4px; margin-top: 12px; display: inline-block; }

/* ── Login page ──────────────────────────────────────────── */
.login-layout { display: flex; min-height: 100vh; }
.login-left {
    flex: 1;
    background: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.login-left::before {
    content: '';
    position: absolute; inset: 0;
    background-image: linear-gradient(45deg, rgba(255,255,255,.03) 25%, transparent 25%), linear-gradient(-45deg, rgba(255,255,255,.03) 25%, transparent 25%);
    background-size: 40px 40px;
}
.login-left-content { position: relative; text-align: center; padding: 40px; }
.login-columns { display: flex; justify-content: center; gap: 80px; margin-bottom: 40px; }
.login-column { width: 16px; height: 160px; background: linear-gradient(to bottom, var(--gold), var(--gold-light)); border-radius: 8px 8px 0 0; opacity: .8; }
.login-delta { font-size: 40px; color: var(--gold); opacity: .6; margin-bottom: 20px; }
.login-brand { font-family: 'Cormorant Garamond', serif; font-size: 36px; font-weight: 700; color: var(--gold-pale); letter-spacing: 4px; }
.login-brand-sub { font-size: 12px; color: rgba(255,255,255,.3); letter-spacing: 3px; text-transform: uppercase; margin-top: 8px; }
.login-dots { display: flex; justify-content: center; gap: 12px; margin-top: 40px; }
.login-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); opacity: .4; }

.login-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--offwhite);
    padding: 40px;
}
.login-form { width: 100%; max-width: 380px; }
.login-form h2 { font-family: 'Cormorant Garamond', serif; font-size: 26px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.login-form .login-hint { color: var(--text-muted); font-size: 13.5px; margin-bottom: 32px; }
.login-error { background: #FFEBEE; border: 1px solid #FFCDD2; color: var(--danger); padding: 12px 16px; border-radius: var(--radius); font-size: 13px; margin-bottom: 20px; }
.login-submit {
    width: 100%;
    height: 44px;
    background: var(--navy);
    color: var(--gold-pale);
    border: none;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all .15s ease;
}
.login-submit:hover { background: var(--navy-light); box-shadow: 0 4px 12px rgba(27,42,74,.3); }
.login-footer { text-align: center; margin-top: 30px; font-size: 11px; color: var(--text-muted); }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .assoc-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); transition: transform .25s ease; }
    .sidebar.open { transform: translateX(0); box-shadow: 4px 0 20px rgba(0,0,0,.3); }
    .main-content { margin-left: 0; }
    .mobile-toggle { display: block; }
    .topbar-date { display: none; }
    .grid-2, .grid-3, .grid-4, .stats-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .filter-bar { flex-direction: column; align-items: stretch; }
    .filter-bar .form-control { min-width: auto; width: 100%; }
    .login-left { display: none; }
    .login-right { flex: 1; }
    .calendar-grid .cal-event { font-size: 9px; }
}
@media (max-width: 480px) {
    .page-content { padding: 16px; }
    .card-header { padding: 14px 16px; flex-direction: column; gap: 10px; align-items: flex-start; }
    .card-body { padding: 16px; }
    .data-table { font-size: 12px; }
    .data-table th, .data-table td { padding: 10px 10px; }
    .btn { padding: 7px 14px; font-size: 12px; }
}

/* ── Print ───────────────────────────────────────────────── */
@media print {
    .sidebar, .topbar, .main-footer, .flash, .filter-bar, .btn, .mobile-toggle { display: none !important; }
    .main-content { margin-left: 0 !important; }
    .page-content { padding: 0 !important; }
    .content-card { border: 1px solid #ccc !important; break-inside: avoid; }
}

/* Progress bar */
.progress { background: rgba(0,0,0,.06); border-radius: 6px; overflow: hidden; }
.progress-bar { height: 100%; border-radius: 6px; transition: width .4s ease; }
.mt-4 { margin-top: 4px; }
.mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.text-xs { font-size: 11px; }
.btn-group { display: flex; gap: 6px; align-items: center; }

/* Message content */
.msg-content p { margin-bottom: 8px; }
.msg-content ul, .msg-content ol { margin-left: 20px; margin-bottom: 8px; }

/* Sidebar nav section spacing */
.sidebar-user .user-status.text-xs { font-size: 11px; line-height: 1.3; }

/* Jours fériés calendrier */
.cal-ferie { background: rgba(198,40,40,.04) !important; }
.cal-ferie .cal-day-num { color: var(--danger); }
.cal-ferie-tag { color: var(--warning); font-size: 10px; margin-left: 3px; }

/* WYSIWYG editor */
.wysiwyg-wrap { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.wysiwyg-toolbar { display: flex; gap: 2px; padding: 6px 8px; background: var(--offwhite); border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.wysiwyg-btn { background: none; border: 1px solid transparent; border-radius: 4px; width: 30px; height: 28px; cursor: pointer; font-size: 13px; color: var(--navy); display: flex; align-items: center; justify-content: center; }
.wysiwyg-btn:hover { background: rgba(0,0,0,.06); border-color: var(--border); }
.wysiwyg-editor { padding: 12px; font-size: 14px; line-height: 1.6; outline: none; font-family: 'DM Sans', sans-serif; }
.wysiwyg-editor:focus { box-shadow: inset 0 0 0 2px rgba(174,141,72,.2); }
.wysiwyg-editor p { margin-bottom: 6px; }
.wysiwyg-editor ul, .wysiwyg-editor ol { margin-left: 18px; margin-bottom: 6px; }
.wysiwyg-editor h3 { font-family: 'Cormorant Garamond', serif; font-size: 18px; margin-bottom: 8px; }

/* Animation pastille connecté */
@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:.4; } }
