/* ============================================================
   AMICALE EMPT — Feuille de style principale
   Thème : Bleu Clair Premium
   Polices : Plus Jakarta Sans (titres) / Inter (corps) / JetBrains Mono (code)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── Variables CSS globales ────────────────────────────────── */
:root {
    --bg-base:        #F0F6FF;
    --bg-card:        #FFFFFF;
    --bg-sidebar:     #1B3A6B;
    --sidebar-text:   #E8F1FF;
    --sidebar-active: #2D6BE4;
    --accent-primary: #2D6BE4;
    --accent-light:   #6FA8DC;
    --accent-soft:    #C8DFF8;
    --text-primary:   #1A2B4A;
    --text-secondary: #4A6080;
    --text-muted:     #8BA5C4;
    --border:         #D6E6F7;
    --success:        #22A06B;
    --warning:        #F5A623;
    --danger:         #E5534B;
    --info:           #388BFD;
    --purple:         #7C3AED;
    --shadow:         0 2px 12px rgba(45,107,228,0.08);
    --shadow-md:      0 4px 24px rgba(45,107,228,0.13);
    --radius-card:    12px;
    --radius-elem:    8px;
    --sidebar-width:  260px;
    --topbar-height:  64px;
    --transition:     0.2s ease;
}

/* ── Reset & base ──────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html { font-size: 15px; scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

code, pre { font-family: 'JetBrains Mono', monospace; }

a { color: var(--accent-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-light); }

img { max-width: 100%; display: block; }

/* ── Scrollbar fine bleue ──────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--accent-soft); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-light); }

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

/* ── SIDEBAR ───────────────────────────────────────────────── */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-sidebar);
    color: var(--sidebar-text);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 100;
    overflow-y: auto;
    transition: transform var(--transition);
}

.sidebar-logo {
    padding: 24px 20px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    text-align: center;
}

.sidebar-logo img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin: 0 auto 10px;
    border: 2px solid rgba(255,255,255,0.2);
    object-fit: cover;
}

.sidebar-logo h1 {
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.5px;
}

.sidebar-logo p {
    font-size: 0.72rem;
    color: rgba(232,241,255,0.6);
    margin-top: 2px;
    font-style: italic;
}

.sidebar-nav {
    flex: 1;
    padding: 16px 0;
}

.nav-section-title {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: rgba(232,241,255,0.4);
    padding: 10px 20px 4px;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    color: rgba(232,241,255,0.75);
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 0;
    transition: all var(--transition);
    position: relative;
    text-decoration: none;
}

.nav-item:hover {
    background: rgba(255,255,255,0.07);
    color: #fff;
}

.nav-item.active {
    background: var(--sidebar-active);
    color: #fff;
    font-weight: 600;
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: #fff;
    border-radius: 0 2px 2px 0;
}

.nav-item .nav-icon {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.nav-item .nav-badge {
    margin-left: auto;
    background: rgba(255,255,255,0.15);
    color: rgba(232,241,255,0.9);
    font-size: 0.7rem;
    padding: 1px 7px;
    border-radius: 20px;
    font-weight: 600;
}

.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--sidebar-active);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: #fff;
    flex-shrink: 0;
}

.sidebar-user-info {
    flex: 1;
    min-width: 0;
}

.sidebar-user-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-role {
    font-size: 0.7rem;
    color: rgba(232,241,255,0.5);
    text-transform: capitalize;
}

.sidebar-logout {
    color: rgba(232,241,255,0.5);
    font-size: 1rem;
    cursor: pointer;
    padding: 4px;
    transition: color var(--transition);
    flex-shrink: 0;
}
.sidebar-logout:hover { color: var(--danger); }

/* ── TOPBAR ────────────────────────────────────────────────── */
.topbar {
    position: fixed;
    top: 0;
    left: var(--sidebar-width);
    right: 0;
    height: var(--topbar-height);
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 28px;
    gap: 16px;
    z-index: 50;
    box-shadow: var(--shadow);
}

.topbar-breadcrumb {
    flex: 1;
}

.topbar-breadcrumb h2 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.topbar-breadcrumb p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar-notif {
    width: 36px; height: 36px;
    border-radius: var(--radius-elem);
    background: var(--bg-base);
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
    font-size: 1rem;
}
.topbar-notif:hover { background: var(--accent-soft); border-color: var(--accent-primary); }

.topbar-mobile-toggle {
    display: none;
    width: 36px; height: 36px;
    align-items: center; justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-primary);
}

/* ── CONTENU PRINCIPAL ─────────────────────────────────────── */
.main-content {
    margin-left: var(--sidebar-width);
    padding-top: var(--topbar-height);
    min-height: 100vh;
    flex: 1;
}

.page-content {
    padding: 28px;
    max-width: 1400px;
}

/* ── CARTES ────────────────────────────────────────────────── */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.card-header {
    padding: 18px 22px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.card-header h3 {
    font-size: 0.95rem;
    font-weight: 700;
}

.card-body { padding: 22px; }
.card-footer {
    padding: 14px 22px;
    border-top: 1px solid var(--border);
    background: var(--bg-base);
}

/* ── KPI CARDS ─────────────────────────────────────────────── */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-bottom: 26px;
}

.kpi-card {
    background: var(--bg-card);
    border-radius: var(--radius-card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: transform var(--transition), box-shadow var(--transition);
    cursor: default;
}

.kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.kpi-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.kpi-icon.blue   { background: rgba(45,107,228,0.1);  color: var(--accent-primary); }
.kpi-icon.green  { background: rgba(34,160,107,0.1);  color: var(--success); }
.kpi-icon.orange { background: rgba(245,166,35,0.1);  color: var(--warning); }
.kpi-icon.purple { background: rgba(124,58,237,0.1);  color: var(--purple); }
.kpi-icon.red    { background: rgba(229,83,75,0.1);   color: var(--danger); }

.kpi-info { flex: 1; min-width: 0; }
.kpi-value {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.1;
}
.kpi-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 2px;
    font-weight: 500;
}
.kpi-sub {
    font-size: 0.72rem;
    color: var(--success);
    margin-top: 5px;
    font-weight: 600;
}
.kpi-sub.warning { color: var(--warning); }
.kpi-sub.danger  { color: var(--danger); }

/* ── TABLEAUX ──────────────────────────────────────────────── */
.table-wrapper {
    overflow-x: auto;
}

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

.data-table thead th {
    background: var(--bg-base);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 10px 14px;
    border-bottom: 2px solid var(--border);
    text-align: left;
    white-space: nowrap;
}

.data-table tbody tr {
    border-bottom: 1px solid var(--border);
    transition: background var(--transition);
}

.data-table tbody tr:hover { background: rgba(240,246,255,0.8); }
.data-table tbody tr:last-child { border-bottom: none; }

.data-table tbody td {
    padding: 11px 14px;
    color: var(--text-primary);
    vertical-align: middle;
}

.data-table .td-muted { color: var(--text-muted); font-size: 0.82rem; }

/* ── BADGES ────────────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.3px;
}
.badge-blue    { background: var(--accent-soft);           color: var(--accent-primary); }
.badge-green   { background: rgba(34,160,107,0.12);        color: var(--success); }
.badge-orange  { background: rgba(245,166,35,0.12);        color: var(--warning); }
.badge-red     { background: rgba(229,83,75,0.12);         color: var(--danger); }
.badge-purple  { background: rgba(124,58,237,0.1);         color: var(--purple); }
.badge-gray    { background: rgba(139,165,196,0.12);       color: var(--text-muted); }

/* ── BOUTONS ───────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 18px;
    border-radius: var(--radius-elem);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
    font-family: 'Inter', sans-serif;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary  { background: var(--accent-primary); color: #fff; }
.btn-primary:hover  { background: #2460cc; color: #fff; }

.btn-success  { background: var(--success); color: #fff; }
.btn-success:hover  { background: #1a8557; color: #fff; }

.btn-danger   { background: var(--danger); color: #fff; }
.btn-danger:hover   { background: #c94444; color: #fff; }

.btn-warning  { background: var(--warning); color: #fff; }
.btn-warning:hover  { background: #d4901e; color: #fff; }

.btn-outline  {
    background: transparent;
    border: 1.5px solid var(--border);
    color: var(--text-secondary);
}
.btn-outline:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    background: var(--accent-soft);
}

.btn-sm { padding: 5px 12px; font-size: 0.78rem; }
.btn-lg { padding: 11px 26px; font-size: 0.95rem; }
.btn-icon { padding: 7px; width: 34px; height: 34px; justify-content: center; }

/* ── FORMULAIRES ───────────────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}
.form-label .required { color: var(--danger); margin-left: 2px; }

.form-control, .form-select {
    width: 100%;
    padding: 9px 13px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-elem);
    font-size: 0.88rem;
    color: var(--text-primary);
    background: var(--bg-card);
    transition: border-color var(--transition), box-shadow var(--transition);
    font-family: 'Inter', sans-serif;
    outline: none;
}

.form-control:focus, .form-select:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(45,107,228,0.12);
}

.form-control::placeholder { color: var(--text-muted); }
.form-control.is-invalid   { border-color: var(--danger); }
.form-error {
    font-size: 0.75rem;
    color: var(--danger);
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/*--------- solo ---------------*/
.form-control[readonly] {
    background-color: #f5f5f5 !important;
    font-weight: 600;
    cursor: not-allowed;
}

.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }

/* ── ALERTS / FLASH ────────────────────────────────────────── */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-elem);
    font-size: 0.87rem;
    font-weight: 500;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 16px;
}
.alert-success { background: rgba(34,160,107,0.1);  border: 1px solid rgba(34,160,107,0.25);  color: #166a47; }
.alert-danger  { background: rgba(229,83,75,0.1);   border: 1px solid rgba(229,83,75,0.25);   color: #a0362f; }
.alert-warning { background: rgba(245,166,35,0.1);  border: 1px solid rgba(245,166,35,0.25);  color: #9c6c0a; }
.alert-info    { background: rgba(56,139,253,0.1);  border: 1px solid rgba(56,139,253,0.25);  color: #1a5ebd; }

/* ── AVATAR MEMBRE ─────────────────────────────────────────── */
.member-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
    background: var(--accent-soft);
    flex-shrink: 0;
}

.member-avatar-lg {
    width: 96px; height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-soft);
}

/* ── PAGE HEADER ───────────────────────────────────────────── */
.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.page-header-title h2 {
    font-size: 1.35rem;
    font-weight: 800;
}

.page-header-title p {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.page-header-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

/* ── GRILLES GRAPHIQUES ────────────────────────────────────── */
.chart-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 20px;
    margin-bottom: 26px;
}

.chart-container {
    position: relative;
    height: 280px;
}

/* ── PAGINATION ────────────────────────────────────────────── */
.pagination {
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: center;
    padding: 14px 0 4px;
    flex-wrap: wrap;
}

.pagination a, .pagination span {
    width: 34px; height: 34px;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius-elem);
    font-size: 0.82rem;
    font-weight: 600;
    border: 1.5px solid var(--border);
    background: var(--bg-card);
    color: var(--text-secondary);
    transition: all var(--transition);
    text-decoration: none;
}
.pagination a:hover { border-color: var(--accent-primary); color: var(--accent-primary); }
.pagination .current { background: var(--accent-primary); border-color: var(--accent-primary); color: #fff; }

/* ── SEARCH BAR ────────────────────────────────────────────── */
.search-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
    flex-wrap: wrap;
    align-items: center;
}

.search-input-wrap {
    position: relative;
    flex: 1;
    min-width: 200px;
}
.search-input-wrap .search-icon {
    position: absolute;
    left: 11px; top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.95rem;
    pointer-events: none;
}
.search-input-wrap .form-control { padding-left: 34px; }

/* ── PHOTO UPLOAD ──────────────────────────────────────────── */
.photo-upload-zone {
    border: 2px dashed var(--border);
    border-radius: var(--radius-card);
    padding: 28px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
}
.photo-upload-zone:hover, .photo-upload-zone.dragover {
    border-color: var(--accent-primary);
    background: rgba(45,107,228,0.04);
}
.photo-upload-zone input[type="file"] {
    position: absolute; inset: 0;
    opacity: 0; cursor: pointer;
    width: 100%; height: 100%;
}

/* ── STATS SECTION ─────────────────────────────────────────── */
.stat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.87rem;
}
.stat-row:last-child { border-bottom: none; }
.stat-row-label { color: var(--text-secondary); }
.stat-row-value { font-weight: 700; color: var(--text-primary); }

/* ── TABS ──────────────────────────────────────────────────── */
.tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--border);
    margin-bottom: 22px;
    overflow-x: auto;
}

.tab-item {
    padding: 10px 20px;
    font-size: 0.87rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    white-space: nowrap;
    transition: all var(--transition);
    text-decoration: none;
}
.tab-item:hover { color: var(--accent-primary); }
.tab-item.active {
    color: var(--accent-primary);
    border-bottom-color: var(--accent-primary);
}

/* ── PROFILE CARD ──────────────────────────────────────────── */
.profile-header {
    display: flex;
    align-items: flex-start;
    gap: 22px;
    padding: 24px;
    border-bottom: 1px solid var(--border);
}
.profile-info h3 { font-size: 1.15rem; }
.profile-info p  { font-size: 0.82rem; color: var(--text-muted); }
.profile-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 8px;
}
.profile-meta-item {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ── MODAL ─────────────────────────────────────────────────── */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(26,43,74,0.45);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-overlay.open { display: flex; }

.modal {
    background: var(--bg-card);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-md);
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalIn 0.2s ease;
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(-16px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
    padding: 18px 22px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.modal-header h4 { font-size: 1rem; }
.modal-close {
    background: none; border: none;
    cursor: pointer; font-size: 1.2rem;
    color: var(--text-muted); transition: color var(--transition);
}
.modal-close:hover { color: var(--danger); }
.modal-body   { padding: 22px; }
.modal-footer {
    padding: 14px 22px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* ── PAGE LOGIN ────────────────────────────────────────────── */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1B3A6B 0%, #2D6BE4 60%, #6FA8DC 100%);
    padding: 20px;
}

.login-card {
    background: var(--bg-card);
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(27,58,107,0.3);
    width: 100%;
    max-width: 440px;
    padding: 42px 40px;
}

.login-logo {
    text-align: center;
    margin-bottom: 30px;
}
.login-logo img {
    width: 80px; height: 80px;
    border-radius: 50%;
    margin: 0 auto 12px;
    border: 3px solid var(--accent-soft);
    object-fit: cover;
}
.login-logo h1 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-primary);
}
.login-logo p {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
}

/* ── EMPTY STATE ───────────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 50px 20px;
    color: var(--text-muted);
}
.empty-state .empty-icon { font-size: 3rem; margin-bottom: 12px; }
.empty-state h4 { font-size: 1rem; color: var(--text-secondary); }
.empty-state p  { font-size: 0.85rem; margin-top: 6px; }

/* ── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 900px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.open {
        transform: translateX(0);
    }
    .main-content {
        margin-left: 0;
    }
    .topbar {
        left: 0;
    }
    .topbar-mobile-toggle {
        display: flex;
    }
    .form-grid-2,
    .form-grid-3 { grid-template-columns: 1fr; }
    .kpi-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
    .page-content { padding: 16px; }
    .kpi-grid { grid-template-columns: 1fr; }
    .chart-grid { grid-template-columns: 1fr; }
    .login-card { padding: 28px 20px; }
}

/* ── CHAMP EN LECTURE SEULE SOLO───────────────────────────────────────────── */
.readonly-field {
    background-color: #888; /* #f5f5f5 fond gris */
    font-weight: bold;         /* texte en gras */
    cursor: not-allowed;
    color: #555;               /* légèrement atténué (optionnel) */
}

.input-icon-wrapper {
    position: relative;
}

.input-icon-wrapper input {
    padding-right: 40px; /* espace pour l'icône */
	background-color: #f5f5f5; /* fond gris */
}

.input-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    font-size: 1.1rem;
    pointer-events: none; /* évite les bugs de clic */
}
input[readonly].form-control {
    background-color: #f5f5f5 !important;
    font-weight: bold;
    cursor: not-allowed;
    color: #555;
}

.label {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* ── UTILITAIRES ───────────────────────────────────────────── */
.d-flex          { display: flex; }
.align-center    { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8           { gap: 8px; }
.gap-12          { gap: 12px; }
.gap-16          { gap: 16px; }
.mt-4            { margin-top: 4px; }
.mt-8            { margin-top: 8px; }
.mt-16           { margin-top: 16px; }
.mb-16           { margin-bottom: 16px; }
.mb-24           { margin-bottom: 24px; }
.text-muted      { color: var(--text-muted); }
.text-success    { color: var(--success); }
.text-danger     { color: var(--danger); }
.text-warning    { color: var(--warning); }
.text-right      { text-align: right; }
.text-center     { text-align: center; }
.fw-bold         { font-weight: 700; }
.w-100           { width: 100%; }
.truncate        { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

<style>

/* ===== COULEURS DES LIGNES ===== */

/* Père */
.row-pere{
    background:#ffb74d !important;
}

.row-pere:hover{
    background:#ffa726 !important;
}

/* Mère */
.row-mere{
    background:#ffb74d !important;
}

.row-mere:hover{
   background:#ffa726 !important;
}

.row-conjoint{
    background:#f3e5f5 !important;
}

.row-conjoint:hover{
    background:#e1bee7 !important;
}

.row-enfant{
    background:#e3f2fd !important;
}

.row-enfant:hover{
    background:#bbdefb !important;
}

/* ===== BADGES ===== */

.badge-yellow{
    background:#ffd54f;
    color:#5d4037;
    border:1px solid #ffca28;
    font-weight:600;
}

.badge-orange{
    background:#fff3e0;
    color:#e65100;
    border:1px solid #ffcc80;
}

</style>