/**
 * SAFEM Reservations — Front-end Styles
 * Source exacte : instructions/safem-reservations.html
 */

:root {
    --safem-primary: #80624D;
    --safem-primary-dark: #6a5040;
    --safem-secondary: #F1E57D;
    --safem-success: #10B981;
    --safem-success-bg: #D1FAE5;
    --safem-error: #EF4444;
    --safem-error-bg: #FEE2E2;
    --safem-warning: #F59E0B;
    --safem-warning-bg: #FEF3C7;
    --safem-info: #3B82F6;
    --safem-info-bg: #DBEAFE;
    --safem-text: #111827;
    --safem-text-sub: #6B7280;
    --safem-border: #D1D5DB;
    --safem-white: #FFFFFF;
    --safem-gray-light: #F3F4F6;
    --s1: 4px;
    --s2: 8px;
    --s3: 12px;
    --s4: 16px;
    --s5: 24px;
    --s6: 32px;
    --radius: 15px;
    --radius-sm: 10px;
    --safem-danger: #EF4444;
}

/* ═══════════════════════════════════════════════════════════════
   BASE
   ═══════════════════════════════════════════════════════════════ */

.safem-wrap {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--safem-text);
    line-height: 1.6;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.safem-wrap *,
.safem-wrap *::before,
.safem-wrap *::after {
    box-sizing: border-box;
}

.safem-maintenance {
    background: var(--safem-gray-light);
    border: 1px solid var(--safem-border);
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
    color: var(--safem-text-sub);
}

/* ═══════════════════════════════════════════════════════════════
   BADGES (used across all front components)
   ═══════════════════════════════════════════════════════════════ */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 9px;
    border-radius: 6px;
    line-height: 1;
    white-space: nowrap;
}

.badge i { font-size: 9px; }

.badge-soumise       { background: #EFF6FF; color: #1D4ED8; border: 1px solid #BFDBFE; }
.badge-en-examen     { background: #FEF3C7; color: #92400E; border: 1px solid #FDE68A; }
.badge-acceptee      { background: #D1FAE5; color: #065F46; border: 1px solid #A7F3D0; }
.badge-liste-att     { background: #FFF7ED; color: #9A3412; border: 1px solid #FDBA74; }
.badge-refusee       { background: #FEE2E2; color: #991B1B; border: 1px solid #FECACA; }
.badge-payee         { background: #F0FDF4; color: #166534; border: 1px solid #86EFAC; }
.badge-annulee       { background: #F9FAFB; color: #6B7280; border: 1px solid #D1D5DB; }
.badge-non-paye      { background: #FEF2F2; color: #B91C1C; border: 1px solid #FCA5A5; }
.badge-paiement-attente { background: #FFFBEB; color: #B45309; border: 1px solid #FCD34D; }
.badge-paye-ok       { background: #F0FDF4; color: #166534; border: 1px solid #86EFAC; }

.safem-alert {
    display: flex;
    align-items: flex-start;
    gap: var(--s3);
    padding: 12px var(--s4);
    border-radius: var(--radius-sm);
    font-size: 14px;
    line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════════
   SECTION 02 — STAND CARDS
   ═══════════════════════════════════════════════════════════════ */

.stand-card {
    background: var(--safem-white);
    border: 1px solid var(--safem-border);
    border-radius: var(--radius);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.stand-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.stand-card-image {
    position: relative;
    height: 160px;
    background: #EDE8E3;
    overflow: hidden;
}

.stand-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stand-card-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #C8BDB5;
    background: linear-gradient(135deg, #EDE8E3 0%, #E0D8D1 100%);
}

.stand-badge-zone {
    position: absolute;
    top: var(--s3);
    left: var(--s3);
    background: var(--safem-primary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 6px;
    font-family: monospace;
}

.stand-badge-status {
    position: absolute;
    top: var(--s3);
    right: var(--s3);
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 6px;
}

.stand-badge-status.disponible {
    background: var(--safem-success-bg);
    color: #065F46;
}

.stand-badge-status.reserve {
    background: var(--safem-gray-light);
    color: var(--safem-text-sub);
}

.stand-card-body {
    padding: var(--s4) var(--s4) var(--s5);
}

.stand-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--s2);
    margin-bottom: var(--s3);
}

.stand-code {
    font-size: 16px;
    font-weight: 700;
    color: var(--safem-text);
    font-family: monospace;
}

.stand-tarif {
    font-size: 15px;
    font-weight: 700;
    color: var(--safem-primary);
    white-space: nowrap;
}

.stand-surface {
    font-size: 13px;
    color: var(--safem-text-sub);
    margin-bottom: var(--s3);
    display: flex;
    align-items: center;
    gap: var(--s2);
}

.stand-caracs {
    display: flex;
    gap: var(--s2);
    flex-wrap: wrap;
    margin-bottom: var(--s4);
}

.stand-carac-icon {
    width: 30px;
    height: 30px;
    border-radius: var(--s2);
    background: var(--safem-gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--safem-text-sub);
}

.stand-carac-icon.more {
    font-size: 10px;
    font-weight: 700;
    color: var(--safem-primary);
    background: #F0EAE5;
}

.stand-btn-reserver {
    width: 100%;
    height: 42px;
    background: var(--safem-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--s2);
    transition: background 0.2s;
}

.stand-btn-reserver:hover {
    background: var(--safem-primary-dark);
}

.stand-btn-reserver.disabled {
    background: var(--safem-gray-light);
    color: var(--safem-text-sub);
    cursor: not-allowed;
}

.stand-btn-reserver.disabled:hover {
    background: var(--safem-gray-light);
    color: var(--safem-text-sub);
}

.stand-quota-warn {
    background: var(--safem-secondary);
    color: #78600A;
    font-size: 11px;
    font-weight: 600;
    padding: 6px var(--s3);
    border-radius: var(--radius-sm);
    text-align: center;
    margin-top: var(--s3);
}

/* ═══════════════════════════════════════════════════════════════
   SECTION 03 — FILTERS SIDEBAR + CATALOGUE LAYOUT
   ═══════════════════════════════════════════════════════════════ */

.filtres-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: var(--s5);
    align-items: start;
}

.filtres-sidebar {
    background: var(--safem-white);
    border: 1px solid var(--safem-border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 24px;
}

.filtres-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px var(--s4);
    border-bottom: 1px solid var(--safem-border);
    background: var(--safem-gray-light);
    cursor: pointer;
    user-select: none;
    transition: background 0.15s;
}

.filtres-sidebar-header:hover {
    background: #ede8e3;
}

.filtres-sidebar-header-title {
    display: flex;
    align-items: center;
    gap: var(--s2);
    font-size: 13px;
    font-weight: 700;
    color: var(--safem-text);
}

.filtres-sidebar-body {
    padding: 0;
    display: flex;
    flex-direction: column;
}

.filtres-sidebar-body.collapsed {
    display: none;
}

/* Each filter group */
.filtre-group {
    padding: var(--s3) var(--s4);
    border-bottom: 1px solid var(--safem-border);
}

.filtre-group:last-child {
    border-bottom: none;
}

.filtre-group-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--safem-text-sub);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    display: block;
    margin-bottom: 8px;
}

.filtre-select {
    width: 100%;
    height: 36px;
    border: 1.5px solid var(--safem-border);
    border-radius: var(--radius-sm);
    padding: 0 10px;
    font-size: 13px;
    color: var(--safem-text);
    background: var(--safem-white);
    font-family: inherit;
    transition: border-color 0.15s;
    cursor: pointer;
}

.filtre-select:focus {
    outline: none;
    border-color: var(--safem-primary);
}

.filtre-range-row {
    display: flex;
    gap: 6px;
    align-items: center;
}

.filtre-range-input {
    flex: 1;
    min-width: 0;
    height: 36px;
    border: 1.5px solid var(--safem-border);
    border-radius: var(--radius-sm);
    padding: 0 8px;
    font-size: 13px;
    text-align: center;
    font-family: inherit;
    color: var(--safem-text);
    transition: border-color 0.15s;
}

.filtre-range-input:focus {
    outline: none;
    border-color: var(--safem-primary);
}

.filtre-range-input::placeholder {
    color: #b0b7bf;
    font-size: 12px;
}

.filtre-range-sep {
    font-size: 12px;
    color: var(--safem-text-sub);
    flex-shrink: 0;
}

.filtres-actions {
    display: flex;
    gap: 8px;
    padding: var(--s3) var(--s4);
    background: var(--safem-gray-light);
    border-top: 1px solid var(--safem-border);
}

.btn-filtre-apply {
    flex: 1;
    height: 34px;
    background: var(--safem-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: opacity 0.15s;
}

.btn-filtre-apply:hover {
    opacity: 0.88;
}

.btn-filtre-reset {
    height: 34px;
    padding: 0 10px;
    background: transparent;
    color: var(--safem-text-sub);
    border: 1px solid var(--safem-border);
    border-radius: var(--radius-sm);
    font-size: 12px;
    cursor: pointer;
    font-family: inherit;
    transition: color 0.15s, border-color 0.15s;
}

.btn-filtre-reset:hover {
    color: var(--safem-danger);
    border-color: var(--safem-danger);
}

/* Search bar */
.safem-search-bar {
    width: 100%;
    height: 42px;
    border: 1.5px solid var(--safem-border);
    border-radius: var(--radius-sm);
    padding: 0 14px 0 40px;
    font-size: 14px;
    font-family: inherit;
    color: var(--safem-text);
    background: var(--safem-white);
    transition: border-color 0.2s;
}

.safem-search-bar:focus {
    outline: none;
    border-color: var(--safem-primary);
}

.safem-search-wrap {
    position: relative;
    margin-bottom: var(--s4);
}

.safem-search-wrap i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--safem-text-sub);
    font-size: 14px;
}

/* Results bar */
.catalogue-results-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--s4);
    flex-wrap: wrap;
    gap: var(--s2);
}

.catalogue-results-count {
    font-size: 14px;
    color: var(--safem-text-sub);
}

.catalogue-results-count strong {
    color: var(--safem-text);
}

.catalogue-view-toggle {
    display: flex;
    gap: 8px;
}

.btn-view {
    height: 34px;
    padding: 0 14px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--safem-border);
    background: var(--safem-gray-light);
    color: var(--safem-text-sub);
}

.btn-view.active {
    background: var(--safem-primary);
    color: #fff;
    border-color: var(--safem-primary);
    font-weight: 600;
}

/* Stands grid */
.stands-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s5);
}

.stands-grid.view-list {
    grid-template-columns: 1fr;
    gap: 6px;
}

.stands-grid.view-list .stand-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    border-radius: var(--radius-sm);
}

.stands-grid.view-list .stand-card-image {
    display: none;
}

.stands-grid.view-list .stand-card-body {
    flex: 1;
    display: flex;
    align-items: center;
    gap: var(--s3);
    padding: 10px var(--s4);
    flex-wrap: wrap;
}

.stands-grid.view-list .stand-card-top {
    flex: 0 0 auto;
    min-width: 100px;
    display: flex;
    align-items: center;
    gap: var(--s3);
}

.stands-grid.view-list .stand-card-top .stand-code {
    font-size: 14px;
}

.stands-grid.view-list .stand-card-top .stand-tarif {
    font-size: 13px;
}

.stands-grid.view-list .stand-surface {
    flex-shrink: 0;
    margin: 0;
    font-size: 12px;
}

.stands-grid.view-list .stand-caracs {
    flex-shrink: 0;
    gap: 4px;
}

.stands-grid.view-list .stand-caracs span {
    font-size: 10px;
    padding: 2px 6px;
}

.stands-grid.view-list .stand-btn-reserver {
    flex-shrink: 0;
    width: auto;
    padding: 7px 14px;
    font-size: 12px;
    margin-left: auto;
}

.stands-grid.view-list .stand-quota-warn {
    display: none;
}

.stands-grid.view-list .stand-badge-status {
    display: none;
}

.stands-grid.view-list .stand-badge-zone {
    position: static;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 4px;
    margin-right: var(--s2);
    flex-shrink: 0;
}

/* Empty state */
.safem-empty-state {
    background: var(--safem-white);
    border: 1px solid var(--safem-border);
    border-radius: var(--radius);
    padding: 40px var(--s5);
    text-align: center;
}

.safem-empty-state i {
    font-size: 36px;
    color: #D1D5DB;
    display: block;
    margin-bottom: var(--s3);
}

.safem-empty-state .empty-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--safem-text);
    margin-bottom: 6px;
}

.safem-empty-state .empty-text {
    font-size: 13px;
    color: var(--safem-text-sub);
    margin-bottom: var(--s4);
}

/* Sold-out state */
.safem-sold-out-state {
    background: var(--safem-warning-bg);
    border-color: var(--safem-warning);
}
.safem-sold-out-state i {
    color: var(--safem-warning);
}
.safem-sold-out-state .empty-text {
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

.btn-reset-filters {
    height: 38px;
    padding: 0 var(--s4);
    background: var(--safem-gray-light);
    color: var(--safem-text);
    border: 1px solid var(--safem-border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

/* Pagination */
.safem-pagination {
    display: flex;
    justify-content: center;
    gap: var(--s2);
    margin-top: var(--s5);
}

.safem-pagination button {
    height: 36px;
    min-width: 36px;
    padding: 0 var(--s3);
    border: 1px solid var(--safem-border);
    border-radius: var(--radius-sm);
    background: var(--safem-white);
    color: var(--safem-text-sub);
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
}

.safem-pagination button.active {
    background: var(--safem-primary);
    color: #fff;
    border-color: var(--safem-primary);
    font-weight: 600;
}

.safem-pagination button:hover:not(.active) {
    background: var(--safem-gray-light);
}

.pagination-ellipsis {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: var(--safem-text-sub);
    padding: 0 4px;
}

/* ═══════════════════════════════════════════════════════════════
   SECTION 04 — DRAWER DE RESERVATION
   ═══════════════════════════════════════════════════════════════ */

.safem-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 99999;
    display: none;
    justify-content: center;
    align-items: center;
}

.safem-drawer-overlay.open {
    display: flex;
}

.safem-drawer {
    width: 480px;
    max-width: 94%;
    max-height: 90vh;
    background: var(--safem-white);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.2);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    animation: safem-modal-pop 0.3s ease;
}

@keyframes safem-modal-pop {
    from { transform: scale(0.92); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.safem-drawer-header {
    background: var(--safem-primary);
    padding: var(--s4) var(--s5);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    border-radius: var(--radius) var(--radius) 0 0;
}

.safem-drawer-header-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.safem-drawer-header-sub {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.75);
    margin-top: 2px;
}

.safem-drawer-close {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.safem-drawer-body {
    padding: var(--s4) var(--s5);
    display: flex;
    flex-direction: column;
    gap: var(--s4);
    flex: 1;
    overflow-y: auto;
}

.drawer-recap {
    background: var(--safem-gray-light);
    border-radius: var(--radius-sm);
    padding: var(--s3) var(--s4);
}

.drawer-recap-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--safem-text-sub);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: var(--s2);
}

.drawer-recap-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s2);
}

.drawer-recap-label {
    font-size: 11px;
    color: var(--safem-text-sub);
}

.drawer-recap-value {
    font-size: 14px;
    font-weight: 600;
}

.drawer-recap-value.mono {
    font-family: monospace;
}

.drawer-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--s3) 0;
    border-top: 1px solid var(--safem-border);
    border-bottom: 1px solid var(--safem-border);
}

.drawer-total-label {
    font-size: 14px;
    color: var(--safem-text-sub);
}

.drawer-total-amount {
    font-size: 20px;
    font-weight: 700;
    color: var(--safem-primary);
}

.drawer-quota-info {
    display: flex;
    align-items: center;
    gap: var(--s2);
    font-size: 12px;
    color: var(--safem-text-sub);
}

.drawer-timer {
    background: var(--safem-secondary);
    border-radius: var(--radius-sm);
    padding: 8px var(--s3);
    font-size: 12px;
    font-weight: 600;
    color: #78600A;
    display: flex;
    align-items: center;
    gap: 8px;
}

.drawer-timer.warning {
    background: var(--safem-warning-bg);
    color: #78350F;
    border: 1px solid #FDE68A;
}

.btn-confirm-reservation {
    height: 46px;
    width: 100%;
    background: var(--safem-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--s3);
}

.btn-confirm-reservation:hover {
    background: var(--safem-primary-dark);
}

.btn-cancel-drawer {
    width: 100%;
    height: 38px;
    background: transparent;
    color: var(--safem-text-sub);
    border: 1px solid var(--safem-border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
}

/* ═══════════════════════════════════════════════════════════════
   SECTION 05 — PANIER + UPLOAD
   ═══════════════════════════════════════════════════════════════ */

/* Panier */
.safem-panier {
    max-width: 700px;
    margin-left: auto !important;
    margin-right: auto !important;
    float: none !important;
}

/* Dashboard user */
.safem-dashboard-user {
    max-width: 880px;
    margin-left: auto !important;
    margin-right: auto !important;
    float: none !important;
}

.safem-dashboard-user .safem-panel + .safem-panel,
.safem-dashboard-user .safem-panel + .dash-grid-2,
.safem-dashboard-user .dash-grid-2 {
    margin-top: var(--s4);
}

/* Alert banners */
.safem-alert-banner {
    border-radius: var(--radius);
    padding: var(--s4) var(--s5);
    margin-bottom: var(--s4);
    display: flex;
    align-items: flex-start;
    gap: var(--s3);
}

.safem-alert-banner i:first-child {
    font-size: 24px;
    margin-top: 2px;
    flex-shrink: 0;
}

.safem-alert-banner-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
}

.safem-alert-banner-text {
    font-size: 13px;
}

.safem-alert-success {
    background: #D1FAE5;
    border: 1px solid #6EE7B7;
}

.safem-alert-success i:first-child { color: #10B981; }
.safem-alert-success .safem-alert-banner-title,
.safem-alert-success .safem-alert-banner-text { color: #065F46; }

.safem-alert-error {
    background: #FEE2E2;
    border: 1px solid #FECACA;
}

.safem-alert-error i:first-child { color: #EF4444; }
.safem-alert-error .safem-alert-banner-title,
.safem-alert-error .safem-alert-banner-text { color: #991B1B; }

/* Section titles */
.dash-section-title {
    padding: var(--s3) var(--s5);
    font-size: 12px;
    font-weight: 700;
    color: var(--safem-text-sub);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom: 1px solid var(--safem-border);
    display: flex;
    align-items: center;
    gap: var(--s2);
}

.dash-section-title i:first-child {
    font-size: 13px;
    color: var(--safem-primary);
}

.dash-section-title .badge {
    margin-left: auto;
}

/* Card body & footer */
.dash-card-body {
    padding: var(--s4) var(--s5);
    display: flex;
    flex-direction: column;
    gap: var(--s2);
}

.dash-card-footer {
    padding: var(--s3) var(--s5) var(--s4);
}

/* Two-column grid */
.dash-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s4);
}

/* Exposant card */
.safem-panel.dash-exposant-card {
    background: linear-gradient(135deg, #80624D 0%, #6a5040 100%);
    border-color: #6a5040;
}

.dash-exposant-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--s5);
    gap: var(--s5);
}

.dash-exposant-left {
    flex: 1;
    min-width: 0;
}

.dash-exposant-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    margin-bottom: var(--s2);
}

.dash-exposant-number {
    font-size: 26px;
    font-weight: 800;
    font-family: 'Courier New', monospace;
    color: var(--safem-secondary);
    letter-spacing: 0.06em;
    line-height: 1.2;
}

.dash-exposant-actions {
    margin-top: var(--s3);
}

.dash-exposant-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 var(--s4);
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: var(--radius-sm);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s;
}

.dash-exposant-btn:hover {
    background: rgba(255,255,255,0.25);
}

.dash-exposant-qr {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.dash-exposant-qr #safem-qrcode {
    background: #fff;
    padding: 6px;
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.dash-exposant-qr-hint {
    font-size: 10px;
    color: rgba(255,255,255,0.6);
    text-align: center;
}

/* Reservation accordions */
.dash-resa-list {
    display: flex;
    flex-direction: column;
}

.dash-resa-accordion {
    border-bottom: 1px solid var(--safem-border);
}

.dash-resa-accordion:last-child {
    border-bottom: none;
}

.dash-resa-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--s3) var(--s5);
    cursor: pointer;
    transition: background 0.15s;
    gap: var(--s3);
}

.dash-resa-header:hover {
    background: var(--safem-gray-light);
}

.dash-resa-header-left {
    display: flex;
    align-items: center;
    gap: var(--s3);
    min-width: 0;
    flex: 1;
}

.dash-resa-icon {
    width: 36px;
    height: 36px;
    background: var(--safem-gray-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--safem-primary);
    font-size: 14px;
}

.dash-resa-stand {
    font-size: 14px;
    font-weight: 600;
    color: var(--safem-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dash-resa-dossier {
    font-size: 11px;
    font-family: monospace;
    color: var(--safem-text-sub);
    margin-top: 1px;
}

.dash-resa-header-right {
    display: flex;
    align-items: center;
    gap: var(--s2);
    flex-shrink: 0;
}

.dash-resa-chevron {
    font-size: 12px;
    color: var(--safem-text-sub);
    transition: transform 0.25s ease;
}

.dash-resa-accordion.open .dash-resa-chevron {
    transform: rotate(180deg);
}

.dash-resa-body {
    display: none;
    padding: 0 var(--s5) var(--s4);
    animation: safem-accordion-open 0.25s ease;
}

.dash-resa-accordion.open .dash-resa-body {
    display: block;
}

@keyframes safem-accordion-open {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.dash-resa-details {
    background: var(--safem-gray-light);
    border-radius: var(--radius-sm);
    padding: var(--s3);
    display: flex;
    flex-direction: column;
    gap: var(--s2);
}

.dash-resa-detail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--s1) 0;
}

.dash-resa-detail-label {
    font-size: 12px;
    color: var(--safem-text-sub);
    font-weight: 500;
}

.dash-resa-detail-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--safem-text);
}

.dash-resa-action {
    margin-top: var(--s3);
    display: flex;
    justify-content: flex-end;
}

/* Document rows */
.dash-doc-row {
    display: flex;
    align-items: center;
    gap: var(--s3);
    padding: var(--s2) var(--s3);
    border-radius: var(--radius-sm);
    border: 1px solid;
}

.dash-doc-row.success {
    background: var(--safem-success-bg);
    border-color: #6EE7B7;
}

.dash-doc-row.success i { color: var(--safem-success); }

.dash-doc-row.error {
    background: var(--safem-error-bg);
    border-color: #FECACA;
}

.dash-doc-row.error i { color: var(--safem-error); }

.dash-doc-row i:first-child {
    font-size: 16px;
    flex-shrink: 0;
}

.dash-doc-label {
    flex: 1;
    font-size: 13px;
    font-weight: 600;
}

.dash-doc-row.success .dash-doc-label { color: #065F46; }
.dash-doc-row.error .dash-doc-label   { color: #991B1B; }

/* Upload page */
.safem-upload {
    max-width: 700px;
    margin-left: auto !important;
    margin-right: auto !important;
    float: none !important;
}

.safem-panel {
    background: var(--safem-white);
    border: 1px solid var(--safem-border);
    border-radius: var(--radius);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    overflow: hidden;
}

.safem-panel-header {
    background: var(--safem-primary);
    padding: var(--s4) var(--s5);
}

.safem-panel-header-title {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
}

.safem-panel-header-sub {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.75);
    margin-top: 2px;
}

.panier-quota-bar {
    padding: var(--s3) var(--s5);
    background: #FBF9F7;
    border-bottom: 1px solid var(--safem-border);
}

.panier-quota-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.panier-quota-label {
    font-size: 12px;
    color: var(--safem-text-sub);
    font-weight: 600;
}

.panier-quota-value {
    font-size: 12px;
    font-weight: 700;
    color: var(--safem-primary);
}

.panier-quota-track {
    height: 6px;
    background: var(--safem-gray-light);
    border-radius: 3px;
    overflow: hidden;
}

.panier-quota-fill {
    height: 100%;
    background: var(--safem-primary);
    border-radius: 3px;
    transition: width 0.3s;
}

.panier-item {
    padding: var(--s3) var(--s5);
    border-bottom: 1px solid var(--safem-border);
    display: flex;
    align-items: center;
    gap: var(--s3);
}

.panier-item:last-child {
    border-bottom: none;
}

.panier-item-icon {
    width: 36px;
    height: 36px;
    background: var(--safem-gray-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--safem-primary);
}

.panier-item-info {
    flex: 1;
    min-width: 0;
}

.panier-item-code {
    font-size: 14px;
    font-weight: 600;
    font-family: monospace;
}

.panier-item-detail {
    font-size: 12px;
    color: var(--safem-text-sub);
}

.panier-btn-delete {
    width: 28px;
    height: 28px;
    background: #FEE2E2;
    color: #EF4444;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.panier-btn-upload {
    width: 28px;
    height: 28px;
    background: #EFF6FF;
    color: #1D4ED8;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.panier-footer {
    padding: var(--s3) var(--s5);
    border-top: 1px solid var(--safem-border);
}

/* Payment methods row */
.resa-pay-methods {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s2);
}

.resa-pay-methods .resa-btn-payer {
    font-size: 12px;
    padding: 8px 14px;
}

/* ═══════════════════════════════════════════════════════════════
   MODALS (front-end)
   ═══════════════════════════════════════════════════════════════ */

.safem-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--s4);
}

.safem-modal-overlay.hidden {
    display: none;
}

.safem-modal {
    background: var(--safem-white);
    border-radius: var(--radius);
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    max-height: 90vh;
    overflow-y: auto;
    width: 100%;
}

.safem-modal-header {
    background: var(--safem-primary);
    padding: var(--s4) var(--s5);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.safem-modal-header-title {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
}

.safem-modal-header-sub {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    margin-top: 2px;
}

.safem-modal-close {
    width: 28px;
    height: 28px;
    background: rgba(255,255,255,0.15);
    border: none;
    border-radius: 6px;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.safem-modal-close:hover {
    background: rgba(255,255,255,0.3);
}

.btn-outline-primary,
.safem-wrap a.btn-outline-primary,
.safem-wrap a.btn-outline-primary:visited {
    width: 100%;
    height: 40px;
    background: transparent;
    color: var(--safem-primary);
    border: 1.5px solid var(--safem-primary);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.btn-outline-primary:hover,
.safem-wrap a.btn-outline-primary:hover {
    background: var(--safem-primary);
    color: #fff;
}

/* Upload docs */
.doc-row {
    display: flex;
    align-items: center;
    gap: var(--s3);
    padding: var(--s3);
    border-radius: var(--radius-sm);
}

.doc-row.valide {
    background: #F0FDF4;
    border: 1px solid #A7F3D0;
}

.doc-row.en-attente {
    background: #FEF3C7;
    border: 1px solid #FDE68A;
}

.doc-row.manquant {
    background: var(--safem-gray-light);
    border: 1.5px dashed var(--safem-border);
}

.doc-icon {
    font-size: 22px;
    flex-shrink: 0;
}

.doc-icon.valide { color: #10B981; }
.doc-icon.en-attente { color: #D97706; }
.doc-icon.manquant { color: #9CA3AF; }

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

.doc-name {
    font-size: 13px;
    font-weight: 600;
}

.doc-meta {
    font-size: 11px;
}

.doc-meta.valide { color: #065F46; }
.doc-meta.en-attente { color: #92400E; }
.doc-meta.manquant { color: var(--safem-text-sub); }

.btn-upload-choose {
    height: 32px;
    padding: 0 10px;
    background: var(--safem-primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
}

.upload-dropzone {
    border: 2px dashed var(--safem-primary);
    border-radius: var(--radius-sm);
    padding: 24px;
    text-align: center;
    background: #FBF8F6;
    cursor: pointer;
    transition: background 0.2s;
}

.upload-dropzone:hover,
.upload-dropzone.dragover {
    background: #F0EAE5;
}

.upload-dropzone i {
    font-size: 28px;
    color: var(--safem-primary);
    margin-bottom: 8px;
    display: block;
}

.upload-dropzone-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--safem-text);
    margin-bottom: 4px;
}

.upload-dropzone-sub {
    font-size: 11px;
    color: var(--safem-text-sub);
}

/* Upload loader overlay */
.safem-upload { position: relative; }
.safem-upload-loader {
    display: none;
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.92);
    z-index: 100;
    border-radius: var(--radius);
    align-items: center;
    justify-content: center;
}
.safem-upload-loader.active { display: flex; }
.safem-upload-loader-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--s3);
}
.safem-upload-loader-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--safem-primary);
}

.doc-progress-bar {
    display: flex;
    align-items: center;
    gap: var(--s3);
    padding: var(--s3);
    background: var(--safem-gray-light);
    border-radius: var(--radius-sm);
}

.doc-progress-info {
    flex: 1;
}

.doc-progress-label {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 4px;
}

.doc-progress-track {
    height: 4px;
    background: var(--safem-border);
    border-radius: 2px;
    overflow: hidden;
}

.doc-progress-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.3s;
}

/* ═══════════════════════════════════════════════════════════════
   SECTION 06 — DASHBOARD EXPOSANTE
   ═══════════════════════════════════════════════════════════════ */

/* --- Header --- */
.du-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--s4) var(--s5);
    gap: var(--s4);
    flex-wrap: wrap;
    border-bottom: 1px solid var(--safem-border);
}

.du-header-left { flex: 1; min-width: 0; }

.du-greeting {
    font-size: 17px;
    font-weight: 700;
    color: var(--safem-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.du-subline {
    font-size: 12px;
    color: var(--safem-text-sub);
    margin-top: 1px;
}

.du-header-right {
    display: flex;
    align-items: center;
    gap: var(--s3);
    flex-shrink: 0;
}

.du-exposant-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--safem-gray-light);
    border: 1px solid var(--safem-border);
    border-radius: 8px;
    padding: 6px 10px;
}

.du-qr-mini {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.du-exposant-info {
    display: flex;
    align-items: center;
    gap: 6px;
}

.du-exposant-num {
    font-size: 12px;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    color: var(--safem-primary);
    letter-spacing: 0.03em;
}

.du-qr-dl {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--safem-text-sub);
    font-size: 12px;
    padding: 2px;
    border-radius: 4px;
    transition: color 0.15s;
}
.du-qr-dl:hover { color: var(--safem-primary); }

.du-quota-pill {
    background: var(--safem-primary);
    color: #fff;
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

/* --- Stats row --- */
.du-stats-row {
    display: flex;
    align-items: stretch;
}

.du-stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px var(--s3);
    border-right: 1px solid var(--safem-border);
}

.du-stat:last-of-type { border-right: none; }

.du-stat-val {
    font-size: 20px;
    font-weight: 700;
    font-family: Georgia, serif;
    color: var(--safem-text);
    line-height: 1.2;
}
.du-stat-val.primary { color: var(--safem-primary); }
.du-stat-val.warning { color: #F59E0B; }

.du-stat-lbl {
    font-size: 10px;
    font-weight: 600;
    color: var(--safem-text-sub);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 1px;
}

/* --- Reservation list --- */
.du-resa-list {
    display: flex;
    flex-direction: column;
}

.du-resa-card {
    padding: var(--s3) var(--s5);
    border-bottom: 1px solid var(--safem-border);
    transition: background 0.15s;
}
.du-resa-card:last-child { border-bottom: none; }
.du-resa-card:hover { background: #FAFAFA; }

.du-resa-card.du-resa-terminal { opacity: 0.6; }
.du-resa-card.du-resa-terminal:hover { opacity: 1; }

.du-resa-card.du-resa-paid { opacity: 1; }

.du-resa-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s3);
}

.du-resa-main {
    display: flex;
    align-items: center;
    gap: var(--s3);
    flex: 1;
    min-width: 0;
}

.du-resa-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--safem-gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--safem-primary);
    flex-shrink: 0;
}

.du-resa-text { min-width: 0; flex: 1; }

.du-resa-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--safem-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.du-resa-ref {
    font-size: 11px;
    color: var(--safem-text-sub);
    font-family: 'Courier New', monospace;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.du-resa-sep {
    margin: 0 3px;
    color: var(--safem-border);
}

.du-resa-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.du-resa-amount {
    font-size: 14px;
    font-weight: 700;
    color: var(--safem-text);
    white-space: nowrap;
}
.du-resa-amount small {
    font-size: 10px;
    font-weight: 600;
    color: var(--safem-text-sub);
}

.du-resa-refus {
    margin-top: 6px;
    padding: 6px 10px;
    background: #FEF2F2;
    border: 1px solid #FECACA;
    border-radius: 6px;
    font-size: 12px;
    color: #991B1B;
    display: flex;
    align-items: flex-start;
    gap: 6px;
}
.du-resa-refus i { margin-top: 2px; flex-shrink: 0; }

.du-resa-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding-left: 46px; /* align with text after icon */
}

.du-btn-action,
.safem-wrap a.du-btn-action {
    height: 28px;
    padding: 0 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: none;
    background: var(--safem-primary);
    color: #fff;
    transition: opacity 0.15s;
    white-space: nowrap;
    text-decoration: none;
}
.du-btn-action:hover,
.safem-wrap a.du-btn-action:hover { opacity: 0.85; color: #fff; }
.safem-wrap a.du-btn-action:visited { color: #fff; }

.du-btn-action.du-btn-outline,
.safem-wrap a.du-btn-action.du-btn-outline,
.safem-wrap a.du-btn-action.du-btn-outline:visited {
    background: transparent;
    border: 1px solid var(--safem-border);
    color: var(--safem-text);
    text-decoration: none;
}
.du-btn-action.du-btn-outline:hover,
.safem-wrap a.du-btn-action.du-btn-outline:hover {
    background: var(--safem-gray-light);
    color: var(--safem-text);
}

.du-btn-cancel {
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid var(--safem-border);
    background: transparent;
    color: var(--safem-text-sub);
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.15s;
}
.du-btn-cancel:hover { border-color: var(--safem-danger); color: var(--safem-danger); }

/* --- Payment section --- */
.du-pay-body {
    padding: var(--s3) var(--s5);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.du-pay-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--safem-gray-light);
}
.du-pay-item:last-child { border-bottom: none; }

.du-pay-item-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
}

.du-pay-item-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--safem-text);
}

.du-pay-item-sub {
    font-size: 11px;
    color: var(--safem-text-sub);
}

.du-pay-item-amount {
    font-size: 13px;
    font-weight: 700;
    color: var(--safem-primary);
    white-space: nowrap;
}
.du-pay-item-amount small {
    font-size: 10px;
    font-weight: 600;
    color: var(--safem-text-sub);
}

.du-pay-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    margin-top: 4px;
}

.du-pay-notice-info {
    background: #EFF6FF;
    color: #1E40AF;
    border: 1px solid #BFDBFE;
}

.du-pay-notice-warn {
    background: #FEF3C7;
    color: #78350F;
    border: 1px solid #FDE68A;
}

.du-pay-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--s3) var(--s5) var(--s4);
    border-top: 1px solid var(--safem-border);
    gap: var(--s3);
    flex-wrap: wrap;
}

.du-pay-total {
    display: flex;
    flex-direction: column;
}

.du-pay-total-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--safem-text-sub);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.du-pay-total-val {
    font-size: 16px;
    font-weight: 700;
    color: var(--safem-primary);
}

.du-pay-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.du-btn-pay {
    height: 34px;
    padding: 0 14px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 8px;
    border: 1px solid var(--safem-primary);
    background: var(--safem-primary);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    transition: all 0.15s;
}
.du-btn-pay:hover { opacity: 0.85; }
.du-btn-pay:disabled { opacity: 0.5; cursor: not-allowed; }

/* Keep old classes for compat */
.dash-header {
    background: var(--safem-primary);
    padding: var(--s5) var(--s6);
    display: flex;
    align-items: center;
    gap: var(--s4);
    flex-wrap: wrap;
}

.dash-header-info { flex: 1; }

.dash-header-name {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.dash-header-sub {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 2px;
}

.dash-kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-bottom: 1px solid var(--safem-border);
}

.dash-kpi-item {
    padding: var(--s3) var(--s4);
    text-align: center;
    border-right: 1px solid var(--safem-border);
}

.dash-kpi-item:last-child {
    border-right: none;
}

.dash-kpi-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--safem-text-sub);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dash-kpi-value {
    font-size: 22px;
    font-weight: 700;
    font-family: Georgia, serif;
}

.dash-kpi-value.primary { color: var(--safem-primary); }
.dash-kpi-value.warning { color: #F59E0B; }
.dash-kpi-value.text    { color: var(--safem-text); }

/* Dashboard table */
.safem-table-wrap {
    overflow-x: auto;
}

.safem-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.safem-table thead tr {
    background: #F9FAFB;
    border-bottom: 1px solid var(--safem-border);
}

.safem-table th {
    padding: 10px 14px;
    text-align: left;
    font-size: 10px;
    font-weight: 700;
    color: var(--safem-text-sub);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

.safem-table td {
    padding: 10px 14px;
}

.safem-table tbody tr {
    border-bottom: 1px solid #F3F4F6;
}

.safem-table tbody tr:nth-child(even) {
    background: #FAFAF9;
}

.safem-table .td-dossier {
    font-family: monospace;
    font-size: 12px;
    color: var(--safem-text-sub);
}

.safem-table .td-stand {
    font-weight: 600;
}

.safem-table .td-date {
    font-size: 12px;
    color: var(--safem-text-sub);
}

.btn-voir {
    height: 28px;
    padding: 0 10px;
    background: var(--safem-gray-light);
    color: var(--safem-text-sub);
    border: 1px solid var(--safem-border);
    border-radius: 6px;
    font-size: 11px;
    cursor: pointer;
    font-family: inherit;
}

.btn-payer {
    height: 28px;
    padding: 0 10px;
    background: var(--safem-primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Reservation card (detail dossier) */
.resa-card {
    background: var(--safem-white);
    border: 1px solid var(--safem-border);
    border-radius: var(--radius);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    overflow: hidden;
}

.resa-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--s4) var(--s5);
    border-bottom: 1px solid var(--safem-border);
    flex-wrap: wrap;
    gap: var(--s2);
}

.resa-dossier-num {
    font-size: 13px;
    font-weight: 700;
    color: var(--safem-text-sub);
    font-family: monospace;
}

.resa-body {
    padding: var(--s4) var(--s5);
    display: flex;
    flex-direction: column;
    gap: var(--s3);
}

.resa-stand-info {
    display: flex;
    align-items: center;
    gap: var(--s3);
}

.resa-stand-icon {
    width: 42px;
    height: 42px;
    background: var(--safem-gray-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--safem-primary);
    font-size: 18px;
    flex-shrink: 0;
}

.resa-stand-label { font-size: 15px; font-weight: 600; }
.resa-stand-sub   { font-size: 12px; color: var(--safem-text-sub); }

/* Timeline */
.resa-timeline {
    display: flex;
    align-items: center;
    margin: var(--s2) 0;
    overflow-x: auto;
    padding: var(--s1) 0;
}

.resa-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    flex: 1;
    min-width: 52px;
}

.resa-step-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid var(--safem-border);
    background: var(--safem-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    color: var(--safem-text-sub);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.resa-step-dot.done {
    background: var(--safem-success);
    border-color: var(--safem-success);
    color: #fff;
}

.resa-step-dot.current {
    background: var(--safem-primary);
    border-color: var(--safem-primary);
    color: #fff;
}

.resa-step-label {
    font-size: 9px;
    color: var(--safem-text-sub);
    text-align: center;
    line-height: 1.2;
    font-weight: 500;
}

.resa-step-label.active {
    color: var(--safem-primary);
    font-weight: 700;
}

.resa-step-line {
    flex: 1;
    height: 2px;
    background: var(--safem-border);
    margin-top: -17px;
    min-width: 10px;
}

.resa-step-line.done {
    background: var(--safem-success);
}

.resa-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--s3) var(--s5) var(--s4);
    border-top: 1px solid var(--safem-border);
    flex-wrap: wrap;
    gap: var(--s2);
}

.resa-montant {
    font-size: 15px;
    font-weight: 700;
    color: var(--safem-text);
}

.resa-btn-payer {
    height: 36px;
    padding: 0 var(--s4);
    background: var(--safem-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: var(--s2);
}

/* Notifications history */
.notif-item {
    display: flex;
    align-items: center;
    gap: var(--s3);
    padding: var(--s3) var(--s5);
    border-bottom: 1px solid #F3F4F6;
}

.notif-item-clickable {
    cursor: pointer;
    transition: background 0.15s;
}

.notif-item-clickable:hover {
    background: var(--safem-gray-light);
}

.notif-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 14px;
}

.notif-icon.email {
    background: #EFF6FF;
    color: #3B82F6;
}

.notif-icon.sms {
    background: #F0FDF4;
    color: #10B981;
}

.notif-icon-event {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 14px;
}

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

.notif-type {
    font-size: 13px;
    font-weight: 600;
}

.notif-date {
    font-size: 11px;
    color: var(--safem-text-sub);
}

.notif-excerpt {
    font-size: 12px;
    color: var(--safem-text-sub);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* See all link */
.notif-see-all {
    padding: var(--s3) var(--s5);
    text-align: center;
    border-top: 1px solid var(--safem-border);
}

.notif-see-all a {
    font-size: 13px;
    font-weight: 600;
    color: var(--safem-primary);
    text-decoration: none;
    cursor: pointer;
}

.notif-see-all a:hover {
    text-decoration: underline;
}

/* Notification content modal */
.notif-content-meta {
    display: flex;
    gap: var(--s3);
    flex-wrap: wrap;
    margin-bottom: var(--s3);
    padding-bottom: var(--s3);
    border-bottom: 1px solid var(--safem-border);
}

.notif-content-meta-item {
    font-size: 12px;
    color: var(--safem-text-sub);
    display: flex;
    align-items: center;
    gap: 4px;
}

.notif-content-desc {
    padding: var(--s3) var(--s4);
    background: var(--safem-gray-light);
    border-radius: var(--radius-sm);
    border: 1px solid var(--safem-border);
}

/* ═══════════════════════════════════════════════════════════════
   CONFIRMATION PAGE
   ═══════════════════════════════════════════════════════════════ */

.safem-confirmation {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.confirmation-icon {
    font-size: 56px;
    color: var(--safem-success);
    margin-bottom: var(--s4);
}

.confirmation-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--safem-text);
    margin-bottom: var(--s2);
}

.confirmation-numero {
    font-size: 24px;
    font-weight: 700;
    font-family: monospace;
    color: var(--safem-primary);
    margin-bottom: var(--s5);
}

.confirmation-recap {
    background: var(--safem-gray-light);
    border-radius: var(--radius);
    padding: var(--s5);
    text-align: left;
    margin-bottom: var(--s5);
}

.confirmation-steps {
    text-align: left;
    margin-bottom: var(--s5);
}

.confirmation-steps h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--safem-text);
    margin-bottom: var(--s3);
}

.confirmation-steps ol {
    padding-left: var(--s5);
}

.confirmation-steps li {
    font-size: 14px;
    color: var(--safem-text-sub);
    margin-bottom: var(--s2);
    line-height: 1.5;
}

.confirmation-actions {
    display: flex;
    flex-direction: column;
    gap: var(--s3);
}

.btn-primary,
.safem-wrap a.btn-primary {
    height: 44px;
    background: var(--safem-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--s2);
    text-decoration: none;
}

.btn-primary:hover,
.safem-wrap a.btn-primary:hover,
.safem-wrap a.btn-primary:visited { background: var(--safem-primary-dark); color: #fff; }

.btn-outline,
.safem-wrap a.btn-outline,
.safem-wrap a.btn-outline:visited {
    height: 40px;
    background: transparent;
    color: var(--safem-primary);
    border: 1.5px solid var(--safem-primary);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--s2);
    text-decoration: none;
}

.btn-outline:hover,
.safem-wrap a.btn-outline:hover { background: var(--safem-primary); color: #fff; }

/* ═══════════════════════════════════════════════════════════════
   LOADING / SPINNER
   ═══════════════════════════════════════════════════════════════ */

.safem-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.safem-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--safem-border);
    border-top-color: var(--safem-primary);
    border-radius: 50%;
    animation: safem-spin 0.8s linear infinite;
}

@keyframes safem-spin {
    to { transform: rotate(360deg); }
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 1100px) {
    .stands-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .filtres-layout {
        grid-template-columns: 1fr;
    }

    .filtres-sidebar {
        position: static;
    }

    .filtres-sidebar-body {
        display: none;
    }

    .filtres-sidebar-body.open {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .filtres-sidebar-body.open .filtre-group {
        flex: 1 1 calc(50% - 1px);
        border-right: 1px solid var(--safem-border);
        border-bottom: 1px solid var(--safem-border);
        min-width: 140px;
    }

    .filtres-sidebar-body.open .filtre-group:nth-child(even) {
        border-right: none;
    }

    .filtres-sidebar-body.open .filtres-actions {
        width: 100%;
    }

    .dash-kpi-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .stands-grid {
        grid-template-columns: 1fr;
    }

    .safem-drawer {
        width: 100%;
    }

    .dash-header {
        padding: var(--s4) var(--s5);
    }

    .dash-kpi-grid {
        grid-template-columns: 1fr;
    }

    .dash-kpi-item {
        border-right: none;
        border-bottom: 1px solid var(--safem-border);
    }

    .dash-grid-2 {
        grid-template-columns: 1fr;
    }

    /* New dashboard user responsive */
    .du-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--s3);
    }

    .du-header-right {
        width: 100%;
        justify-content: space-between;
    }

    .du-resa-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .du-resa-meta {
        padding-left: 46px;
        flex-wrap: wrap;
    }

    .du-resa-actions {
        padding-left: var(--s3);
    }

    .du-resa-card {
        padding: var(--s3) var(--s4);
    }

    .du-pay-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .du-pay-methods {
        width: 100%;
    }

    .du-btn-pay {
        flex: 1;
        justify-content: center;
    }

    .resa-timeline {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* List view on mobile */
    .stands-grid.view-list .stand-card-body {
        flex-wrap: wrap;
        padding: var(--s3);
        gap: var(--s2);
    }

    .stands-grid.view-list .stand-card-top {
        flex: 1 1 100%;
    }

    .stands-grid.view-list .stand-surface {
        flex: 0 0 auto;
    }

    .stands-grid.view-list .stand-badge-zone {
        order: -1;
    }

    .stands-grid.view-list .stand-btn-reserver {
        width: 100%;
        margin-top: var(--s1);
        margin-left: 0;
    }

    .stands-grid.view-list .stand-caracs {
        flex: 1 1 100%;
    }
}

@media (max-width: 480px) {
    .safem-wrap {
        padding: var(--s3);
    }

    .stand-card-image {
        height: 120px;
    }

    .confirmation-numero {
        font-size: 20px;
    }

    .drawer-recap-grid {
        grid-template-columns: 1fr;
    }

    .filtres-sidebar-body.open .filtre-group {
        flex: 1 1 100%;
        border-right: none;
    }

    .filtres-sidebar-header,
    .filtres-group-title {
        font-size: 12px;
    }

    .stand-card-body {
        padding: var(--s3);
    }

    /* Dashboard user - small screens */
    .du-greeting { font-size: 15px; }

    .du-exposant-tag {
        padding: 4px 8px;
    }

    .du-exposant-num { font-size: 11px; }

    .du-stat-val { font-size: 16px; }

    .du-resa-icon { width: 28px; height: 28px; font-size: 12px; }

    .du-resa-title { font-size: 13px; }

    .du-resa-amount { font-size: 13px; }

    .du-resa-meta {
        padding-left: 40px;
    }

    .du-resa-actions {
        padding-left: 0;
        flex-wrap: wrap;
    }

    .du-pay-body { padding: var(--s3) var(--s4); }

    .du-pay-footer { padding: var(--s3) var(--s4); }

    /* Panier mobile */
    .panier-cart-footer {
        flex-direction: column;
        gap: var(--s3);
    }

    .panier-cart-actions {
        width: 100%;
    }

    .panier-cart-actions .btn-primary,
    .panier-cart-actions .btn-outline-primary {
        flex: 1;
    }

    .panier-cart-item {
        flex-wrap: wrap;
    }

    .panier-cart-item-price {
        min-width: auto;
    }

    /* Checkout mobile */
    .checkout-item {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--s2);
    }

    .checkout-item-right {
        width: 100%;
        justify-content: space-between;
    }

    .checkout-footer {
        padding: var(--s4);
    }

    .checkout-methods {
        flex-direction: column;
    }

    .checkout-btn-pay {
        justify-content: center;
    }
}

/* ═══════════════════════════════════════════════════════════════
   ALERTS (front-end banners)
   ═══════════════════════════════════════════════════════════════ */

.safem-alert {
    display: flex;
    align-items: flex-start;
    gap: var(--s3);
    padding: var(--s4);
    border-radius: var(--radius);
    margin-bottom: var(--s4);
    font-size: 13px;
    line-height: 1.5;
}

.safem-alert i {
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

.safem-alert strong {
    display: block;
    font-size: 14px;
    margin-bottom: 2px;
}

.safem-alert-success {
    background: var(--safem-success-bg);
    border: 1px solid #A7F3D0;
    color: #065F46;
}

.safem-alert-success i { color: var(--safem-success); }

.safem-alert-error {
    background: var(--safem-error-bg);
    border: 1px solid #FECACA;
    color: #991B1B;
}

.safem-alert-error i { color: var(--safem-error); }

.safem-alert-warn {
    background: var(--safem-warning-bg);
    border: 1px solid #FDE68A;
    color: #78350F;
}

.safem-alert-warn i { color: var(--safem-warning); }

/* Alert banner (dashboard) */
.safem-alert-banner {
    display: flex;
    align-items: center;
    gap: var(--s3);
    padding: var(--s4) var(--s5);
    border-radius: var(--radius);
    margin-bottom: var(--s4);
    font-size: 13px;
}

.safem-alert-banner i { font-size: 20px; flex-shrink: 0; }

.safem-alert-banner-title { font-weight: 700; font-size: 14px; }
.safem-alert-banner-text { font-size: 13px; margin-top: 2px; }

.safem-alert-banner.safem-alert-success {
    background: var(--safem-success-bg);
    border: 1px solid #A7F3D0;
    color: #065F46;
}

.safem-alert-banner.safem-alert-error {
    background: var(--safem-error-bg);
    border: 1px solid #FECACA;
    color: #991B1B;
}

/* ═══════════════════════════════════════════════════════════════
   PANIER (cart page)
   ═══════════════════════════════════════════════════════════════ */

.panier-nav {
    display: flex;
    align-items: center;
    gap: var(--s3);
    margin-bottom: var(--s4);
}

.panier-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--safem-primary);
    text-decoration: none;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    background: var(--safem-gray-light);
    border: 1px solid var(--safem-border);
    transition: all 0.15s;
}

.panier-nav-link:hover {
    background: var(--safem-primary);
    color: #fff;
    border-color: var(--safem-primary);
}

/* Cart items container */
.panier-items {
    display: flex;
    flex-direction: column;
}

/* Cart item (accepted, unpaid — in cart) */
.panier-cart-item {
    display: flex;
    align-items: center;
    gap: var(--s3);
    padding: var(--s3) var(--s5);
    border-bottom: 1px solid #F3F4F6;
    transition: background 0.15s;
}

.panier-cart-item:last-child { border-bottom: none; }
.panier-cart-item:hover { background: #FAFAFA; }

.panier-cart-item-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--safem-gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--safem-primary);
    flex-shrink: 0;
}

.panier-cart-item-info {
    flex: 1;
    min-width: 0;
}

.panier-cart-item-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--safem-text);
}

.panier-cart-item-detail {
    font-size: 12px;
    color: var(--safem-text-sub);
}

.panier-cart-item-ref {
    font-size: 11px;
    font-family: 'Courier New', monospace;
    color: var(--safem-text-sub);
}

.panier-cart-item-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--safem-primary);
    white-space: nowrap;
    min-width: 90px;
    text-align: right;
}

.panier-cart-item-price small {
    font-size: 10px;
    font-weight: 600;
    color: var(--safem-text-sub);
}

.panier-btn-remove {
    width: 32px;
    height: 32px;
    border: 1px solid var(--safem-border);
    background: transparent;
    color: var(--safem-text-sub);
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
    transition: all 0.15s;
}

.panier-btn-remove:hover {
    border-color: var(--safem-danger);
    color: var(--safem-danger);
    background: #FEF2F2;
}

/* In-progress items (soumise, en_examen, etc.) */
.panier-item {
    display: flex;
    align-items: center;
    gap: var(--s3);
    padding: var(--s3) var(--s5);
    border-bottom: 1px solid #F3F4F6;
}

.panier-item:last-child { border-bottom: none; }

.panier-item-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--safem-gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: var(--safem-text-sub);
    flex-shrink: 0;
}

.panier-item-info {
    flex: 1;
    min-width: 0;
}

.panier-item-code {
    font-size: 13px;
    font-weight: 600;
    color: var(--safem-text);
}

.panier-item-detail {
    font-size: 12px;
    color: var(--safem-text-sub);
}

/* Cart footer */
.panier-cart-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--s4) var(--s5);
    border-top: 1px solid var(--safem-border);
    gap: var(--s3);
    flex-wrap: wrap;
}

.panier-cart-total {
    display: flex;
    flex-direction: column;
}

.panier-cart-total-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--safem-text-sub);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.panier-cart-total-val {
    font-size: 18px;
    font-weight: 700;
    color: var(--safem-primary);
}

.panier-cart-actions {
    display: flex;
    align-items: center;
    gap: var(--s2);
    flex-wrap: wrap;
}

.panier-btn-checkout {
    padding: 0 var(--s5) !important;
    height: 42px !important;
    font-size: 14px !important;
    gap: 8px;
}

/* Quota bar */
.panier-quota-bar {
    background: var(--safem-white);
    border: 1px solid var(--safem-border);
    border-radius: var(--radius);
    padding: var(--s4) var(--s5);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.panier-quota-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--s2);
}

.panier-quota-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--safem-text-sub);
}

.panier-quota-value {
    font-size: 12px;
    font-weight: 700;
    color: var(--safem-primary);
}

.panier-quota-track {
    height: 6px;
    background: var(--safem-gray-light);
    border-radius: 3px;
    overflow: hidden;
}

.panier-quota-fill {
    height: 100%;
    background: var(--safem-primary);
    border-radius: 3px;
    transition: width 0.4s ease;
}

/* ═══════════════════════════════════════════════════════════════
   CHECKOUT PAGE
   ═══════════════════════════════════════════════════════════════ */

.checkout-breadcrumb {
    margin-bottom: var(--s4);
}

.checkout-breadcrumb a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--safem-primary);
    text-decoration: none;
    transition: opacity 0.15s;
}

.checkout-breadcrumb a:hover { opacity: 0.7; }

/* Checkout items list */
.checkout-items {
    display: flex;
    flex-direction: column;
}

.checkout-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--s3) var(--s5);
    border-bottom: 1px solid #F3F4F6;
    transition: background 0.15s;
    gap: var(--s3);
}

.checkout-item:last-child { border-bottom: none; }
.checkout-item:hover { background: #FAFAFA; }

.checkout-item-pending {
    opacity: 0.6;
}

.checkout-item-left {
    display: flex;
    align-items: center;
    gap: var(--s3);
    flex: 1;
    min-width: 0;
}

.checkout-item-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--safem-gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--safem-primary);
    flex-shrink: 0;
}

.checkout-item-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--safem-text);
}

.checkout-item-detail {
    font-size: 12px;
    color: var(--safem-text-sub);
}

.checkout-item-ref {
    font-size: 11px;
    font-family: 'Courier New', monospace;
    color: var(--safem-text-sub);
}

.checkout-item-right {
    display: flex;
    align-items: center;
    gap: var(--s3);
    flex-shrink: 0;
}

.checkout-item-amount {
    font-size: 14px;
    font-weight: 700;
    color: var(--safem-primary);
    white-space: nowrap;
}

.checkout-item-amount small {
    font-size: 10px;
    font-weight: 600;
    color: var(--safem-text-sub);
}

.checkout-btn-remove {
    width: 28px;
    height: 28px;
    border: 1px solid var(--safem-border);
    background: transparent;
    color: var(--safem-text-sub);
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    transition: all 0.15s;
}

.checkout-btn-remove:hover {
    border-color: var(--safem-danger);
    color: var(--safem-danger);
    background: #FEF2F2;
}

/* Checkout alerts */
.checkout-alert {
    display: flex;
    align-items: center;
    gap: var(--s2);
    padding: var(--s3) var(--s5);
    font-size: 13px;
    border-top: 1px solid #F3F4F6;
}

.checkout-alert i { flex-shrink: 0; }

.checkout-alert-warn {
    color: #78350F;
    background: #FFFBEB;
}

.checkout-alert-warn i { color: #F59E0B; }

.checkout-alert-info {
    color: #1E40AF;
    background: #EFF6FF;
}

.checkout-alert-info i { color: #3B82F6; }

/* Checkout footer */
.checkout-footer {
    padding: var(--s4) var(--s5);
    border-top: 1px solid var(--safem-border);
}

.checkout-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--s4);
}

.checkout-total-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--safem-text);
}

.checkout-total-val {
    font-size: 20px;
    font-weight: 700;
    color: var(--safem-primary);
}

.checkout-divider {
    height: 1px;
    background: var(--safem-border);
    margin-bottom: var(--s4);
}

.checkout-methods-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--safem-text);
    margin-bottom: var(--s3);
    display: flex;
    align-items: center;
}

.checkout-methods {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s2);
}

.checkout-btn-pay {
    height: 42px;
    padding: 0 var(--s5);
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--safem-primary);
    background: var(--safem-primary);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    transition: all 0.15s;
    font-family: inherit;
    flex: 1;
    min-width: 180px;
    justify-content: center;
}

.checkout-btn-pay:hover { opacity: 0.85; }
.checkout-btn-pay:disabled { opacity: 0.5; cursor: not-allowed; }

/* ═══════════════════════════════════════════════════════════════
   DASHBOARD — Pay CTA panel
   ═══════════════════════════════════════════════════════════════ */

.du-pay-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--s4) var(--s5);
    gap: var(--s4);
    flex-wrap: wrap;
}

.du-pay-cta-left {
    display: flex;
    align-items: center;
    gap: var(--s3);
    flex: 1;
    min-width: 0;
}

/* ═══════════════════════════════════════════════════════════════
   GLOBAL BUTTON RADIUS OVERRIDE — 20px pill style
   ═══════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════
   GLOBAL BUTTON RADIUS OVERRIDE — 15px rounded
   ═══════════════════════════════════════════════════════════════ */

.safem-wrap .btn-primary,
.safem-wrap .btn-outline,
.safem-wrap .btn-outline-primary,
.safem-wrap .btn-upload-choose,
.safem-wrap .btn-voir,
.safem-wrap .btn-payer,
.safem-wrap .btn-filtre-apply,
.safem-wrap .btn-filtre-reset,
.safem-wrap .btn-view,
.safem-wrap .btn-reset-filters,
.safem-wrap .btn-confirm-reservation,
.safem-wrap .btn-cancel-drawer,
.safem-wrap .stand-btn-reserver,
.safem-wrap .du-btn-action,
.safem-wrap .du-btn-cancel,
.safem-wrap .du-btn-pay,
.safem-wrap .resa-btn-payer,
.safem-wrap .panier-btn-remove,
.safem-wrap .panier-btn-checkout,
.safem-wrap .checkout-btn-remove,
.safem-wrap .checkout-btn-pay,
.safem-wrap .panier-btn-delete,
.safem-wrap .panier-btn-upload,
.safem-wrap .safem-modal-close {
    border-radius: 15px !important;
}
