/* ============================================================
   SIERRE PARTAGE — Admin CSS
   Palette officielle turquoise #00b199
   ============================================================ */

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 14.5px;
    line-height: 1.55;
    color: #1a1815;
    background: #f6efe4;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #00897a; text-decoration: none; transition: color 0.15s; }
a:hover { color: #00b199; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
ul, ol { list-style: none; }

:root {
    --brand:        #00b199;
    --brand-deep:   #00897a;
    --brand-light:  #b3e5dd;
    --brand-bg:     #e6f6f3;
    --brand-soft:   #f0faf8;
    --warm:         #d4884a;
    --accent:       #e8593f;
    --gold:         #f5a623;
    --paper:        #ffffff;
    --cream:        #fdf9f3;
    --cream-deep:   #f6efe4;
    --line:         #ece5d8;
    --line-soft:    #f3edde;
    --ink:          #1a1815;
    --ink-soft:     #4a4540;
    --ink-mute:     #807a72;
    --ink-faded:    #b3aca3;
    --success:      #4a7c59;
    --warning:      #c68a3a;
    --error:        #c54a3a;
    --info:         #3a7ec5;
    --r-xs: 6px; --r-sm: 10px; --r-md: 14px; --r-lg: 20px;
    --shadow-xs: 0 1px 2px rgba(26,24,21,0.05);
    --shadow-sm: 0 2px 8px rgba(26,24,21,0.06);
    --shadow-md: 0 8px 24px rgba(26,24,21,0.08);
    --shadow-lg: 0 16px 40px rgba(26,24,21,0.12);
    --shadow-brand: 0 6px 16px rgba(0,177,153,0.25);
}

/* ============================================================
   LAYOUT GLOBAL
   ============================================================ */
.admin-shell {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.admin-sidebar {
    background: var(--ink);
    color: rgba(255,255,255,0.75);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}
.admin-brand {
    padding: 22px 22px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.admin-brand:hover { color: white; }
.admin-brand-mark {
    width: 40px; height: 40px;
    object-fit: contain;
    background: white;
    border-radius: 10px;
    padding: 4px;
    flex-shrink: 0;
}
.admin-brand strong {
    display: block;
    font-size: 16px;
    color: white;
}
.admin-brand span {
    display: block;
    font-size: 12px;
    color: rgba(255,255,255,0.55);
    margin-top: 2px;
}

.admin-nav {
    flex: 1;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: var(--r-sm);
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.15s;
}
.admin-nav-item svg { flex-shrink: 0; }
.admin-nav-item span { flex: 1; }
.admin-nav-item:hover {
    background: rgba(255,255,255,0.06);
    color: white;
}
.admin-nav-item.active {
    background: var(--brand);
    color: white;
}
.admin-nav-item .badge {
    background: var(--accent);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    min-width: 22px;
    text-align: center;
}

.admin-sidebar-foot {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.admin-user {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.admin-user-avatar {
    width: 36px; height: 36px;
    background: var(--brand);
    color: white;
    border-radius: 50%;
    display: grid; place-items: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}
.admin-user-info { min-width: 0; }
.admin-user-info strong {
    display: block;
    font-size: 13.5px;
    color: white;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.admin-user-info span {
    display: block;
    font-size: 11.5px;
    color: rgba(255,255,255,0.5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.admin-logout {
    width: 36px; height: 36px;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.7);
    border-radius: 50%;
    display: grid; place-items: center;
    flex-shrink: 0;
    transition: all 0.15s;
}
.admin-logout:hover {
    background: var(--accent);
    color: white;
}

/* ============================================================
   MAIN
   ============================================================ */
.admin-main { display: flex; flex-direction: column; min-width: 0; }

.admin-topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(253, 249, 243, 0.92);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--line);
    padding: 14px 28px;
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 60px;
}
.admin-page-title {
    flex: 1;
    font-size: 18px;
    font-weight: 700;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}
.admin-page-title svg { color: var(--brand); }
.admin-topbar-actions {
    display: flex;
    gap: 10px;
}
.admin-menu-toggle {
    width: 40px; height: 40px;
    border-radius: var(--r-sm);
    display: none;
    align-items: center;
    justify-content: center;
}
.admin-menu-toggle:hover { background: var(--cream-deep); }

.admin-content {
    flex: 1;
    padding: 28px;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
}

/* Responsive */
@media (max-width: 880px) {
    .admin-shell { grid-template-columns: 1fr; }
    .admin-sidebar {
        position: fixed;
        top: 0; left: 0;
        width: 280px;
        z-index: 100;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        box-shadow: var(--shadow-lg);
    }
    .admin-sidebar.open { transform: translateX(0); }
    .admin-menu-toggle { display: flex; }
    .admin-content { padding: 20px; }
}

/* ============================================================
   FLASH MESSAGES
   ============================================================ */
.flash {
    background: white;
    border-left: 4px solid var(--brand);
    border-radius: var(--r-md);
    padding: 14px 18px;
    margin-bottom: 18px;
    box-shadow: var(--shadow-sm);
    display: flex;
    gap: 12px;
    align-items: center;
}
.flash.flash-success { border-left-color: var(--success); }
.flash.flash-error   { border-left-color: var(--error); }
.flash.flash-warning { border-left-color: var(--warning); }
.flash.flash-info    { border-left-color: var(--info); }
.flash::before {
    content: '✓';
    width: 24px; height: 24px;
    background: var(--brand);
    color: white;
    border-radius: 50%;
    display: grid; place-items: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}
.flash.flash-success::before { background: var(--success); content: '✓'; }
.flash.flash-error::before   { background: var(--error); content: '!'; }
.flash.flash-warning::before { background: var(--warning); content: '!'; }
.flash.flash-info::before    { background: var(--info); content: 'i'; }

/* ============================================================
   PAGE HEADER (titre + actions secondaires)
   ============================================================ */
.page-header {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
}
.page-header h2 {
    font-size: 26px;
    color: var(--ink);
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}
.page-header .subtitle {
    color: var(--ink-mute);
    font-size: 14px;
    margin-top: 4px;
}
.page-header-actions {
    margin-left: auto;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--r-sm);
    font-weight: 600;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
    border: 1px solid transparent;
    text-decoration: none;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary {
    background: var(--brand);
    color: white;
}
.btn-primary:hover {
    background: var(--brand-deep);
    color: white;
    box-shadow: var(--shadow-brand);
    transform: translateY(-1px);
}
.btn-outline {
    background: white;
    color: var(--ink);
    border-color: var(--line);
}
.btn-outline:hover {
    border-color: var(--brand);
    color: var(--brand-deep);
    background: var(--brand-soft);
}
.btn-ghost {
    color: var(--ink-soft);
    background: transparent;
}
.btn-ghost:hover { background: var(--cream-deep); color: var(--ink); }
.btn-danger {
    background: var(--error);
    color: white;
}
.btn-danger:hover {
    background: #a53825;
    color: white;
}
.btn-sm { padding: 7px 12px; font-size: 13px; }
.btn-lg { padding: 14px 22px; font-size: 15px; }
.btn-icon {
    padding: 8px;
    width: 36px;
    height: 36px;
}
.btn-icon svg { width: 18px; height: 18px; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-xs);
}
.card-header {
    padding: 18px 22px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    gap: 12px;
}
.card-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--ink);
    margin: 0;
    flex: 1;
}
.card-body { padding: 22px; }
.card-body.tight { padding: 14px 22px; }
.card-foot {
    padding: 14px 22px;
    border-top: 1px solid var(--line);
    background: var(--cream-deep);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    border-radius: 0 0 var(--r-md) var(--r-md);
}

/* ============================================================
   STAT CARDS (dashboard)
   ============================================================ */
.stat-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-bottom: 30px;
}
.stat-tile {
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 22px;
    display: flex;
    align-items: center;
    gap: 18px;
    transition: all 0.2s;
}
.stat-tile:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.stat-tile .stat-icon {
    width: 52px; height: 52px;
    background: var(--brand-bg);
    color: var(--brand-deep);
    border-radius: var(--r-sm);
    display: grid; place-items: center;
    flex-shrink: 0;
}
.stat-tile .stat-icon svg { width: 26px; height: 26px; }
.stat-tile .stat-num {
    font-size: 26px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1;
    margin-bottom: 4px;
}
.stat-tile .stat-label {
    font-size: 13px;
    color: var(--ink-mute);
}
.stat-tile.tile-warn .stat-icon { background: rgba(245,166,35,0.15); color: var(--warning); }
.stat-tile.tile-accent .stat-icon { background: rgba(232,89,63,0.12); color: var(--accent); }
.stat-tile.tile-success .stat-icon { background: rgba(74,124,89,0.12); color: var(--success); }

/* ============================================================
   FORMS
   ============================================================ */
.field { margin-bottom: 18px; }
.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 18px;
}
.field-row > .field { margin-bottom: 0; }
@media (max-width: 640px) {
    .field-row { grid-template-columns: 1fr; gap: 18px; }
}
.field label {
    display: block;
    font-weight: 600;
    color: var(--ink);
    font-size: 14px;
    margin-bottom: 7px;
}
.field .field-hint {
    font-size: 12.5px;
    color: var(--ink-mute);
    margin-top: 6px;
    font-weight: 400;
    line-height: 1.5;
}
.field input[type="text"],
.field input[type="email"],
.field input[type="password"],
.field input[type="url"],
.field input[type="tel"],
.field input[type="number"],
.field input[type="date"],
.field input[type="datetime-local"],
.field input[type="time"],
.field textarea,
.field select {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--line);
    border-radius: var(--r-sm);
    background: white;
    font-size: 14.5px;
    color: var(--ink);
    transition: all 0.15s;
}
.field input:focus, .field textarea:focus, .field select:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(0,177,153,0.12);
}
.field textarea { resize: vertical; min-height: 100px; line-height: 1.55; }
.field select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%231a1815' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 38px;
}

.required-mark { color: var(--accent); }

/* Toggle checkbox */
.toggle-field {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 12px 14px;
    background: var(--cream-deep);
    border-radius: var(--r-sm);
    border: 1px solid var(--line);
    margin-bottom: 18px;
}
.toggle-field input[type="checkbox"] { display: none; }
.toggle-field .toggle {
    width: 40px; height: 22px;
    background: var(--line);
    border-radius: 11px;
    position: relative;
    transition: background 0.15s;
    flex-shrink: 0;
}
.toggle-field .toggle::after {
    content: '';
    position: absolute; top: 2px; left: 2px;
    width: 18px; height: 18px;
    background: white;
    border-radius: 50%;
    transition: transform 0.15s;
}
.toggle-field input:checked + .toggle { background: var(--brand); }
.toggle-field input:checked + .toggle::after { transform: translateX(18px); }
.toggle-field .info { flex: 1; }
.toggle-field .info strong {
    display: block;
    color: var(--ink);
    font-size: 14px;
    line-height: 1.3;
}
.toggle-field .info span {
    display: block;
    color: var(--ink-mute);
    font-size: 12.5px;
    margin-top: 2px;
}

/* Image upload preview */
.image-upload {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    background: var(--cream-deep);
    border: 1.5px dashed var(--line);
    border-radius: var(--r-sm);
}
.image-upload-preview {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: var(--r-xs);
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    border: 1px solid var(--line);
    position: relative;
    overflow: hidden;
}
.image-upload-preview.empty::after {
    content: '×';
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--ink-faded);
    font-size: 28px;
    font-weight: 100;
}
.image-upload-info { flex: 1; min-width: 0; }
.image-upload-info strong { display: block; font-size: 13px; color: var(--ink); }
.image-upload-info span { font-size: 12px; color: var(--ink-mute); }
.image-upload input[type="file"] {
    flex: 1;
    font-size: 13px;
    width: 100%;
}

/* ============================================================
   TABLES (liste de contenus)
   ============================================================ */
.data-table {
    width: 100%;
    background: white;
    border-radius: var(--r-md);
    overflow: hidden;
    border: 1px solid var(--line);
    border-spacing: 0;
    border-collapse: separate;
}
.data-table th, .data-table td {
    text-align: left;
    padding: 13px 18px;
    font-size: 14px;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
}
.data-table th {
    background: var(--cream-deep);
    color: var(--ink);
    font-weight: 600;
    font-size: 12.5px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.data-table tr:last-child td { border-bottom: 0; }
.data-table tr:hover td { background: var(--brand-soft); }
.data-table .row-image {
    width: 50px;
    height: 50px;
    background: var(--cream-deep);
    background-size: cover;
    background-position: center;
    border-radius: var(--r-xs);
    flex-shrink: 0;
}
.data-table .row-title strong { display: block; font-weight: 600; color: var(--ink); }
.data-table .row-title span { display: block; color: var(--ink-mute); font-size: 12.5px; margin-top: 2px; }
.data-table td.row-actions,
.data-table .row-actions {

    text-align: right;
    white-space: nowrap;
}
.data-table td.row-actions > *,
.data-table .row-actions > * {
    display: inline-flex;
    vertical-align: middle;
    margin-left: 2px;
}

/* Status pill */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}
.status-pill::before {
    content: '';
    width: 6px; height: 6px;
    background: currentColor;
    border-radius: 50%;
}
.status-pill.status-success { background: rgba(74,124,89,0.12); color: var(--success); }
.status-pill.status-muted   { background: rgba(128,122,114,0.15); color: var(--ink-mute); }
.status-pill.status-warning { background: rgba(245,166,35,0.18); color: var(--warning); }
.status-pill.status-accent  { background: rgba(232,89,63,0.12); color: var(--accent); }

/* Empty state */
.empty-state {
    text-align: center;
    padding: 60px 24px;
    background: white;
    border-radius: var(--r-md);
    border: 1px dashed var(--line);
}
.empty-state svg { width: 56px; height: 56px; color: var(--ink-faded); margin: 0 auto 16px; display: block; }
.empty-state h3 { font-size: 17px; color: var(--ink); margin-bottom: 6px; }
.empty-state p { color: var(--ink-mute); margin-bottom: 18px; max-width: 360px; margin-left: auto; margin-right: auto; }

/* ============================================================
   RICH-TEXT EDITOR
   ============================================================ */
.rich-toolbar {
    display: flex;
    gap: 4px;
    padding: 8px;
    background: var(--cream-deep);
    border: 1.5px solid var(--line);
    border-bottom: 0;
    border-radius: var(--r-sm) var(--r-sm) 0 0;
    flex-wrap: wrap;
}
.rich-toolbar button {
    width: 34px; height: 34px;
    border-radius: var(--r-xs);
    color: var(--ink-soft);
    display: grid; place-items: center;
    transition: all 0.12s;
}
.rich-toolbar button:hover { background: white; color: var(--brand-deep); }
.rich-toolbar button.active { background: var(--brand); color: white; }
.rich-toolbar .sep {
    width: 1px;
    background: var(--line);
    margin: 4px 4px;
}
.rich-editor {
    width: 100%;
    min-height: 240px;
    padding: 14px 16px;
    border: 1.5px solid var(--line);
    border-top: 0;
    border-radius: 0 0 var(--r-sm) var(--r-sm);
    background: white;
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--ink);
    outline: none;
}
.rich-editor:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(0,177,153,0.08);
}
.rich-editor p { margin-bottom: 12px; }
.rich-editor h2 { font-size: 22px; margin: 22px 0 12px; font-weight: 700; }
.rich-editor h3 { font-size: 18px; margin: 18px 0 10px; font-weight: 700; }
.rich-editor h4 { font-size: 16px; margin: 16px 0 8px; font-weight: 700; }
.rich-editor ul, .rich-editor ol { padding-left: 24px; margin-bottom: 12px; }
.rich-editor ul li { list-style: disc; margin-bottom: 4px; }
.rich-editor ol li { list-style: decimal; margin-bottom: 4px; }
.rich-editor blockquote {
    border-left: 3px solid var(--brand);
    padding: 8px 14px;
    background: var(--brand-soft);
    margin: 12px 0;
    color: var(--ink-soft);
    font-style: italic;
}
.rich-editor a { color: var(--brand-deep); text-decoration: underline; }
.rich-editor img { max-width: 100%; border-radius: var(--r-xs); margin: 8px 0; }

/* ============================================================
   PHOTO GRID (albums)
   ============================================================ */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}
.photo-tile {
    aspect-ratio: 1;
    background: var(--cream-deep);
    border-radius: var(--r-sm);
    overflow: hidden;
    position: relative;
    cursor: grab;
    border: 2px solid transparent;
    transition: all 0.15s;
}
.photo-tile.dragging { opacity: 0.4; cursor: grabbing; }
.photo-tile.drag-over { border-color: var(--brand); transform: scale(1.04); }
.photo-tile img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.photo-tile .photo-actions {
    position: absolute;
    top: 6px; right: 6px;
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.15s;
}
.photo-tile:hover .photo-actions { opacity: 1; }
.photo-tile .photo-actions button {
    width: 28px; height: 28px;
    background: rgba(0,0,0,0.7);
    color: white;
    border-radius: 50%;
    display: grid; place-items: center;
    backdrop-filter: blur(4px);
}
.photo-tile .photo-actions button:hover { background: var(--accent); }
.photo-tile .photo-actions button svg { width: 14px; height: 14px; }
.photo-tile.is-cover::after {
    content: 'Couverture';
    position: absolute;
    bottom: 6px; left: 6px;
    background: var(--brand);
    color: white;
    padding: 3px 8px;
    border-radius: var(--r-xs);
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.photo-uploader {
    display: block;
    width: 100%;
    border: 2px dashed var(--line);
    border-radius: var(--r-md);
    padding: 30px 24px;
    text-align: center;
    background: var(--brand-soft);
    transition: all 0.2s;
    cursor: pointer;
    margin-bottom: 20px;
}
.photo-uploader {
    border: 2px dashed var(--line);
    border-radius: var(--r-md);
    padding: 30px 24px;
    text-align: center;
    background: var(--brand-soft);
    transition: all 0.2s;
    cursor: pointer;
    margin-bottom: 20px;
}
.photo-uploader:hover, .photo-uploader.drag-over {
    border-color: var(--brand);
    background: var(--brand-bg);
}
.photo-uploader svg {
    width: 40px; height: 40px;
    color: var(--brand);
    margin: 0 auto 10px;
}
.photo-uploader strong { display: block; color: var(--ink); font-size: 15px; }
.photo-uploader span { color: var(--ink-mute); font-size: 13px; }
.photo-uploader input[type="file"] { display: none; }

/* ============================================================
   TOAST
   ============================================================ */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translate(-50%, 100px);
    background: var(--ink);
    color: white;
    padding: 12px 22px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex; align-items: center; gap: 10px;
}
.toast.show { transform: translate(-50%, 0); }
.toast.error { background: var(--error); }
.toast.success { background: var(--success); }

/* ============================================================
   TABS
   ============================================================ */
.tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.tabs button {
    padding: 12px 20px;
    color: var(--ink-mute);
    font-weight: 600;
    font-size: 14px;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: all 0.15s;
}
.tabs button:hover { color: var(--ink); }
.tabs button.active {
    color: var(--brand-deep);
    border-bottom-color: var(--brand);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ============================================================
   MODAL (admin)
   ============================================================ */
.admin-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(26,24,21,0.6);
    backdrop-filter: blur(4px);
    z-index: 500;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.admin-modal-overlay.show { display: flex; }
.admin-modal {
    background: white;
    border-radius: var(--r-md);
    width: 100%;
    max-width: 500px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}
.admin-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
}
.admin-modal-header h3 { flex: 1; font-size: 17px; }
.admin-modal-body { padding: 24px; }
.admin-modal-foot {
    padding: 14px 24px;
    border-top: 1px solid var(--line);
    background: var(--cream-deep);
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

/* ============================================================
   LOGIN PAGE
   ============================================================ */
.login-wrap {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background: linear-gradient(135deg, var(--brand-soft) 0%, var(--cream) 100%);
}
.login-card {
    background: white;
    border-radius: var(--r-md);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 420px;
    overflow: hidden;
}
.login-head {
    padding: 36px 36px 24px;
    text-align: center;
}
.login-head img {
    width: 72px; height: 72px;
    margin: 0 auto 12px;
    object-fit: contain;
}
.login-head h1 {
    font-size: 22px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 6px;
}
.login-head p { color: var(--ink-mute); font-size: 14px; }
.login-body { padding: 0 36px 36px; }
.login-body .btn { width: 100%; }

/* Helpers */
.text-muted { color: var(--ink-mute); }
.text-success { color: var(--success); }
.text-error { color: var(--error); }
.text-warning { color: var(--warning); }
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 12px; }
.mt-3 { margin-top: 18px; }
.mt-4 { margin-top: 24px; }
.flex { display: flex; gap: 10px; align-items: center; }
.flex-wrap { flex-wrap: wrap; }
.flex-end { justify-content: flex-end; }
.flex-between { justify-content: space-between; }
.gap-1 { gap: 6px; }
.gap-2 { gap: 12px; }
.full-width { width: 100%; }
.hidden { display: none !important; }

/* === FIX placeholders dans les data-tables admin === */
.data-table .row-image {
    background: var(--brand-soft, #f0faf8);
    overflow: hidden;
}
.data-table .row-image[style*="background-image"] {
    background-color: var(--cream-deep) !important;
}
/* Force la couleur visible pour les icônes et lettres dans les placeholders vides */
.data-table .row-image:not([style*="background-image"]) {
    color: var(--brand-deep, #00897a) !important;
    background: var(--brand-soft, #f0faf8) !important;
}
.data-table .row-image svg {
    width: 22px;
    height: 22px;
    stroke-width: 2;
}
/* Cas spécial committee : garder le rond turquoise plein */
.data-table .row-image[style*="border-radius:50%"][style*="background:var(--brand)"] {
    background: var(--brand) !important;
    color: white !important;
}
