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

/* ============================================================
   TABLE DES MATIÈRES
   ------------------------------------------------------------
   1.  VARIABLES (root)
   2.  RESET & BASE
   3.  SCROLLBAR
   4.  ANIMATIONS (@keyframes)
   5.  LAYOUT — Conteneur / Main
   6.  LAYOUT — Header
   7.  LAYOUT — Footer
   8.  LAYOUT — Mobile Tab Bar
   9.  COMPOSANTS — Boutons
   10. COMPOSANTS — Badges & Pills de statut
   11. COMPOSANTS — Alertes
   12. COMPOSANTS — Cartes génériques (section-card, mini-stat)
   13. COMPOSANTS — Carte consulaire
   14. COMPOSANTS — Tableau
   15. COMPOSANTS — Empty state
   16. COMPOSANTS — Pagination
   17. COMPOSANTS — Map preview
   18. PAGE — Hero (Dashboard / Demandes / Check-in / Détail)
   19. PAGE — Liste demandes
   20. PAGE — Nouvelle demande (formulaire)
   21. PAGE — Check-in
   22. PAGE — Détail demande (show)
   23. PAGE — Profil
   24. PAGE — Auth (login / register / forgot / reset)
   25. UTILITAIRES
   26. RESPONSIVE — ≤ 1100px
   27. RESPONSIVE — ≤ 992px
   28. RESPONSIVE — ≤ 768px
   29. RESPONSIVE — ≤ 576px
   30. RESPONSIVE — ≤ 480px
   31. RESPONSIVE — ≤ 380px
   ============================================================ */


/* ============================================================
   1. VARIABLES
   ============================================================ */

:root {
    /* --- Couleurs primaires --- */
    --orange:          #ff8a00;
    --orange-dark:     #ea580c;
    --navy:            #0f172a;
    --slate:           #1e293b;
    --green:           #007A42;
    --green-light:     #009A55;
    --gold:            #C9A84C;

    /* --- Alias composants (pro-*) --- */
    --pro-navy:        var(--navy);
    --pro-orange:      var(--orange);
    --pro-orange-dark: var(--orange-dark);
    --pro-green:       #10b981;
    --pro-blue:        #3b82f6;
    --pro-red:         #ef4444;
    --pro-yellow:      #eab308;

    /* --- Fond / surfaces --- */
    --pro-bg:     #f4f7fb;
    --pro-card:   #ffffff;
    --white:      #ffffff;
    --bg:         #f8fafc;

    /* --- Texte --- */
    --pro-text:   #334155;
    --pro-muted:  #64748b;
    --text:       #1A2332;
    --text-light: #4B5563;
    --muted:      var(--pro-muted);

    /* --- Bordures --- */
    --pro-border:  #e2e8f0;
    --border:      #e2e8f0;
    --gris-border: #e2e8f0;
    --gris:        #64748b;

    /* --- Ombres --- */
    --shadow-sm: 0 4px 12px rgba(15, 23, 42, .04);
    --shadow-md: 0 10px 30px rgba(15, 23, 42, .06);
    --shadow-lg: 0 24px 60px rgba(15, 23, 42, .12);

    /* --- Rayons --- */
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 14px;
    --radius:    10px;

    /* --- Mise en page --- */
    --header-h: 70px;
    --footer-h: 90px;
}


/* ============================================================
   2. RESET & BASE
   ============================================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background: var(--pro-bg);
    color: var(--pro-text);
    font-family: 'Plus Jakarta Sans', sans-serif;
    overflow-x: hidden;
}

body.espace-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Inter', sans-serif;
    color: var(--slate);
    background:
        radial-gradient(circle at top right, rgba(255, 138, 0, .05), transparent 20%),
        radial-gradient(circle at bottom left, rgba(59, 130, 246, .04), transparent 25%),
        #f8fafc;
}

a { text-decoration: none; }
button { font-family: inherit; }


/* ============================================================
   3. SCROLLBAR
   ============================================================ */

::-webkit-scrollbar       { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 999px; }

/* Scrollbar modale */
#modal-contenu::-webkit-scrollbar       { width: 6px; }
#modal-contenu::-webkit-scrollbar-track { background: rgba(255, 255, 255, .05); }
#modal-contenu::-webkit-scrollbar-thumb { background: rgba(249, 115, 22, .5); border-radius: 10px; }


/* ============================================================
   4. ANIMATIONS
   ============================================================ */

@keyframes urgentPulse {
    0%   { transform: scale(1);    opacity: 1; }
    50%  { transform: scale(1.15); opacity: .7; }
    100% { transform: scale(1);    opacity: 1; }
}


/* ============================================================
   5. LAYOUT — Conteneur / Main
   ============================================================ */

.pro-container {
    width: 100%;
    max-width: 1350px;
    margin: 0 auto;
    padding: 18px;
}

.espace-main {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 34px 24px 130px;
    flex: 1;
    min-height: calc(100vh - var(--header-h) - var(--footer-h));
}


/* ============================================================
   6. LAYOUT — Header
   ============================================================ */

.espace-header {
    position: sticky;
    top: 0;
    z-index: 999;
    backdrop-filter: blur(18px);
    background: rgba(255, 255, 255, .84);
    border-bottom: 1px solid rgba(15, 23, 42, .06);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
}

.espace-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
        rgba(255, 138, 0, .03),
        transparent,
        rgba(59, 130, 246, .03));
    pointer-events: none;
}

.espace-header-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* Logo */
.espace-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.espace-logo-flag {
    display: flex;
    flex-direction: column;
    width: 8px;
    height: 36px;
    border-radius: 2px;
    overflow: hidden;
}

.espace-logo-flag span:nth-child(1) { flex: 1; background: var(--orange); }
.espace-logo-flag span:nth-child(2) { flex: 1; background: var(--white); border: 1px solid #ddd; }
.espace-logo-flag span:nth-child(3) { flex: 1; background: var(--green); }

.espace-logo-seal {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.espace-logo-title {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--navy);
}

.espace-logo-sub {
    display: block;
    font-size: 10px;
    color: var(--gris);
    text-transform: uppercase;
    letter-spacing: .04em;
}

/* Header right */
.espace-header-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.espace-header-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(255, 138, 0, .08);
    color: var(--orange);
    font-size: 12px;
    font-weight: 600;
}

/* Divider + bouton logout */
.logout-divider {
    width: 1px;
    height: 34px;
    background: #e2e8f0;
}

.espace-logout-btn {
    height: 46px;
    padding: 0 18px !important;
    border: 1px solid #fecdd3 !important;
    border-radius: 18px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    background: linear-gradient(135deg, #fff1f2, #ffe4e6) !important;
    color: #be123c !important;
    font-size: 13px;
    font-weight: 700;
    font-family: inherit;
    transition: .25s ease;
}

.espace-logout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(190, 24, 93, .14);
}

/* Barre de chargement */
#page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    z-index: 999999;
    opacity: 0;
    background: linear-gradient(90deg, #ff8a00, #ff6b00, #ffb347);
    box-shadow: 0 0 12px rgba(255, 138, 0, .55), 0 0 24px rgba(255, 138, 0, .35);
    will-change: width, opacity;
    transition: width .25s ease, opacity .35s ease;
}

#page-loader::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .95));
    filter: blur(2px);
}

body.page-loading #page-loader { opacity: 1; }


/* ============================================================
   7. LAYOUT — Footer
   ============================================================ */

.espace-footer {
    background: #ffffff;
    border-top: 2px solid var(--orange);
    padding: 30px 0;
    margin-top: auto;
}

.espace-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-copyright {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #4B5563;
    font-size: 13px;
    font-weight: 500;
}

.footer-seal-mini {
    background: var(--orange);
    color: white;
    font-weight: 800;
    font-size: 11px;
    padding: 3px 7px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(232, 120, 10, .2);
}

.espace-footer-links {
    display: flex;
    align-items: center;
    gap: 15px;
}

.espace-footer-links a {
    color: var(--orange);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s ease;
}

.espace-footer-links a:hover { color: var(--navy); text-decoration: underline; }

.dot-separator { color: var(--orange); opacity: .5; font-size: 12px; }


/* ============================================================
   8. LAYOUT — Mobile Tab Bar
   ============================================================ */

.mobile-tab-bar {
    position: fixed;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    width: calc(100% - 24px);
    max-width: 540px;
    height: 82px;
    padding: 0 14px;
    display: none;
    align-items: center;
    justify-content: space-between;
    border-radius: 30px;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(22px);
    border: 1px solid rgba(15, 23, 42, .06);
    box-shadow: 0 22px 55px rgba(15, 23, 42, .16);
    z-index: 9999;
}

.mobile-tab-bar::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(255, 138, 0, .04), transparent, rgba(59, 130, 246, .04));
    pointer-events: none;
}

.tab-item {
    position: relative;
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #94a3b8;
    transition: .22s ease;
}

.tab-item i    { font-size: 18px; }
.tab-item span { font-size: 11px; font-weight: 700; }

.tab-item.active { color: var(--orange); }

.tab-item.active::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--orange);
}

.tab-item-center {
    width: 78px;
    min-width: 78px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.plus-circle {
    width: 64px;
    height: 64px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ff8a00, #ea580c);
    color: #fff;
    font-size: 22px;
    box-shadow: 0 18px 40px rgba(255, 138, 0, .34);
    transition: .25s ease;
}

.plus-circle:hover { transform: translateY(-3px); }

.checkin-dot {
    position: absolute;
    top: 5px;
    right: 22%;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #ef4444;
    border: 2px solid #fff;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, .16);
}

/* Alertes globales */
.alerts-wrapper {
    width: 100%;
    max-width: 1440px;
    margin: 18px auto 0;
    padding: 0 24px;
}

.alert-container {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 20px !important;
    border-radius: 24px !important;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.alert-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
}

.alert-error::before   { background: #ef4444; }
.alert-success::before { background: #10b981; }

.alert-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.alert-error .alert-icon   { background: rgba(239, 68, 68, .1); color: #dc2626; }
.alert-success .alert-icon { background: rgba(16, 185, 129, .12); color: #10b981; }

.alert-content { flex: 1; min-width: 0; }
.alert-content ul { margin: 0; padding-left: 18px; }
.alert-content li { line-height: 1.7; font-size: 14px; }

.alert-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 12px;
    background: rgba(255, 255, 255, .7);
    cursor: pointer;
    font-size: 18px;
    font-weight: 700;
    transition: .2s ease;
}

.alert-close:hover { transform: scale(1.05); }


/* ============================================================
   9. COMPOSANTS — Boutons
   ============================================================ */

.btn-primary-pro,
.btn-secondary-pro,
.btn-warning-pro {
    min-height: 44px;
    padding: 0 18px;
    border: none;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition: .25s ease;
    cursor: pointer;
}

.btn-primary-pro {
    background: var(--pro-navy);
    color: #fff;
}

.btn-primary-pro:hover { transform: translateY(-2px); }

.btn-secondary-pro {
    background: #fff;
    color: var(--pro-navy);
    border: 1px solid var(--pro-border);
}

.btn-secondary-pro:hover {
    border-color: var(--pro-orange);
    color: var(--pro-orange);
}

.btn-warning-pro {
    background: var(--pro-orange);
    color: #fff;
    white-space: nowrap;
}

/* Grands boutons (formulaires) */
.large-btn {
    height: 56px;
    padding: 0 24px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 700;
}


/* ============================================================
   10. COMPOSANTS — Badges & Pills de statut
   ============================================================ */

.status-pill-pro {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.statut-gray   { background: #f1f5f9; color: #475569; border-color: #cbd5e1; }
.statut-blue   { background: #dbeafe; color: #1e40af; border-color: #93c5fd; }
.statut-orange { background: #ffedd5; color: #9a3412; border-color: #fdba74; }
.statut-green  { background: #dcfce7; color: #166534; border-color: #86efac; }
.statut-red    { background: #fee2e2; color: #991b1b; border-color: #fca5a5; }
.statut-yellow { background: #fef9c3; color: #854d0e; border-color: #fde047; }

/* Badge service */
.service-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid var(--pro-border);
    color: var(--pro-text);
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

/* Badge urgence (avec dot animé) */
.demande-badge-urgente {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 7px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, #fff1f2, #ffe4e6);
    border: 1px solid #fecdd3;
    color: #e11d48;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(225, 29, 72, .08);
    width: fit-content;
    max-width: 100%;
}

.demande-badge-urgente i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, .12);
    animation: urgentPulse 1.8s infinite;
    flex-shrink: 0;
}

/* Badge priorité normale */
.demande-badge-normal {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-size: 10px;
    font-weight: 700;
}

/* Badge priorité normale (avec dot animé vert) */
.normal-priority {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 7px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, #d8fcb1, #eaffe4);
    border: 1px solid #d1fecd;
    color: #267e00;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(225, 29, 72, .08);
    width: fit-content;
    max-width: 100%;
}

.normal-priority i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #41da00;
    box-shadow: 0 0 0 3px rgba(65, 218, 0, .12);
    animation: urgentPulse 1.8s infinite;
    flex-shrink: 0;
}

/* Badge hero */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: var(--pro-orange-dark);
    font-size: 11px;
    font-weight: 700;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--pro-orange);
}

/* Badge step formulaire */
.step-badge-pro {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 138, 0, .08);
    color: var(--orange);
    font-size: 12px;
    font-weight: 700;
    border: 1px solid rgba(255, 138, 0, .15);
    white-space: nowrap;
}


/* ============================================================
   11. COMPOSANTS — Alertes
   ============================================================ */

/* Alerte standard (avec bord gauche orange) */
.alert-modern-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
    padding: 18px;
    background: #fff;
    border: 1px solid var(--pro-border);
    border-left: 4px solid var(--pro-orange);
    border-radius: 20px;
}

.alert-left {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    flex: 1;
}

.alert-icon-box {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: #fff7ed;
    color: var(--pro-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.alert-content-pro h3 { margin: 0 0 6px; font-size: 15px; color: var(--pro-navy); }
.alert-content-pro p  { margin: 0 0 10px; color: var(--pro-muted); font-size: 12px; }

.progress-container-pro {
    width: 100%;
    max-width: 340px;
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #e2e8f0;
}

.progress-bar-pro {
    height: 100%;
    background: linear-gradient(to right, #ff8200, #fb923c);
}

/* Alerte profil */
.profile-alert-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
    padding: 18px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    box-shadow: 0 4px 18px rgba(15, 23, 42, .04);
}

.profile-alert-content {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    flex: 1;
    min-width: 0;
}

.profile-alert-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(255, 130, 0, .12), rgba(255, 130, 0, .05));
    color: #ff8200;
    font-size: 20px;
}

.profile-alert-text { flex: 1; min-width: 0; }

.profile-alert-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}

.profile-alert-top h3 { margin: 0; font-size: 16px; font-weight: 800; color: #0f172a; }

.profile-alert-percent {
    padding: 6px 10px;
    border-radius: 999px;
    background: #fff7ed;
    color: #ea580c;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.profile-alert-text p { margin: 0 0 12px; color: #64748b; font-size: 13px; line-height: 1.5; }

.profile-progress {
    width: 100%;
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #e2e8f0;
}

.profile-progress-bar {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #ff8200, #fb923c);
}

.profile-alert-btn {
    height: 44px;
    padding: 0 18px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-shrink: 0;
    background: #0f172a;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition: .25s ease;
}

.profile-alert-btn:hover { transform: translateY(-2px); }

/* Alerte erreur formulaire */
.modern-alert-error {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    border-radius: 18px;
    margin-bottom: 24px;
    border: 1px solid rgba(239, 68, 68, .18);
    background: rgba(254, 242, 242, .9);
    color: #dc2626;
    font-size: 14px;
    font-weight: 600;
}


/* ============================================================
   12. COMPOSANTS — Cartes génériques
   ============================================================ */

/* Section card */
.section-card-pro {
    overflow: hidden;
    margin-bottom: 22px;
    padding: 24px;
    background: var(--pro-card);
    border: 1px solid var(--pro-border);
    border-radius: 24px;
    box-shadow: var(--shadow-sm);
}

.section-header-pro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.section-header-pro h2 { margin: 0; color: var(--pro-navy); font-size: 18px; font-weight: 800; }
.section-header-pro p  { margin: 5px 0 0; color: var(--pro-muted); font-size: 12px; }

/* Mini stats */
.hero-mini-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 20px;
}

.mini-stat-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    background: var(--pro-card);
    border: 1px solid var(--pro-border);
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
}

.mini-stat-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 16px;
    font-size: 18px;
}

.mini-stat-icon.orange { background: #fff7ed; color: var(--pro-orange); }
.mini-stat-icon.blue   { background: #eff6ff; color: var(--pro-blue); }
.mini-stat-icon.green  { background: #ecfdf5; color: var(--pro-green); }

.mini-stat-card strong { display: block; margin-bottom: 4px; color: var(--pro-navy); font-size: 20px; line-height: 1; }
.mini-stat-card span   { color: var(--pro-muted); font-size: 12px; font-weight: 500; }

/* Filtres */
.filters-form {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    flex-wrap: wrap;
}

.filter-group { flex: 1; min-width: 220px; }

.filter-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--pro-navy);
    font-size: 12px;
    font-weight: 700;
}

.filter-select {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    background: #fff;
    border: 1px solid var(--pro-border);
    border-radius: 14px;
    color: var(--pro-text);
    font-size: 13px;
    font-weight: 500;
    outline: none;
    transition: .2s ease;
}

.filter-select:focus {
    border-color: var(--pro-orange);
    box-shadow: 0 0 0 4px rgba(255, 130, 0, .08);
}


/* ============================================================
   13. COMPOSANTS — Carte consulaire
   ============================================================ */

.consular-card {
    position: relative;
    overflow: hidden;
    min-height: 100%;
    padding: 22px;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #fff;
    box-shadow: var(--shadow-md);
}

.card-decoration {
    position: absolute;
    border-radius: 50%;
}

.card-decoration.one {
    width: 140px;
    height: 140px;
    top: -50px;
    right: -50px;
    background: rgba(255, 130, 0, .08);
}

.card-decoration.two {
    width: 120px;
    height: 120px;
    left: -50px;
    bottom: -50px;
    background: rgba(255, 255, 255, .03);
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.country { display: flex; align-items: center; gap: 10px; }
.country img    { width: 34px; border-radius: 4px; }
.country strong { display: block; font-size: 10px; letter-spacing: .5px; }
.country span   { color: #94a3b8; font-size: 10px; }

.shield-icon { font-size: 26px; opacity: .15; }

.card-center { margin-top: 28px; }

.card-label {
    margin-bottom: 8px;
    color: #94a3b8;
    font-size: 9px;
    letter-spacing: 1.5px;
}

.card-number {
    font-family: 'Space Mono', monospace;
    font-size: 20px;
    color: var(--pro-orange);
    word-break: break-word;
}

.holder-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 22px;
}

.holder-item label { display: block; margin-bottom: 4px; color: #94a3b8; font-size: 9px; text-transform: uppercase; }
.holder-item p     { margin: 0; font-size: 13px; line-height: 1.4; font-weight: 600; }

.card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.status-valid {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(16, 185, 129, .14);
    color: #6ee7b7;
    font-size: 11px;
    font-weight: 700;
}

.secure-chip {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}


/* ============================================================
   14. COMPOSANTS — Tableau
   ============================================================ */

.dashboard-table-card {
    overflow: hidden;
    padding: 24px;
    background: #fff;
    border: 1px solid var(--pro-border);
    border-radius: 28px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .05);
}

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

.table-count-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid var(--pro-border);
    color: var(--pro-navy);
    font-size: 12px;
    font-weight: 700;
}

.table-link-btn {
    height: 44px;
    padding: 0 18px;
    border-radius: 14px;
    background: var(--pro-navy);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    transition: .25s ease;
}

.table-link-btn:hover { transform: translateY(-2px); }

.table-responsive-pro { width: 100%; overflow-x: auto; }

.modern-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 12px;
}

.modern-table thead th {
    padding: 0 16px 10px;
    border: none;
    color: #94a3b8;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .6px;
    text-align: left;
}

.modern-table tbody tr   { transition: .25s ease; }
.modern-table tbody tr:hover { transform: translateY(-2px); }
.modern-table tbody tr:hover td { background: #fcfcfd; }

.modern-table tbody td {
    padding: 18px 16px;
    background: #fff;
    border-top: 1px solid #eef2f7;
    border-bottom: 1px solid #eef2f7;
    font-size: 12px;
    vertical-align: middle;
}

.modern-table tbody td:first-child {
    border-left: 1px solid #eef2f7;
    border-top-left-radius: 18px;
    border-bottom-left-radius: 18px;
}

.modern-table tbody td:last-child {
    border-right: 1px solid #eef2f7;
    border-top-right-radius: 18px;
    border-bottom-right-radius: 18px;
}

.text-end { text-align: right; }

/* Contenu cellules tableau */
.table-ref-block {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.table-ref-icon,
.mobile-ref-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: #fff7ed;
    color: var(--pro-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.table-ref-block strong,
.mobile-dossier-ref strong { display: block; color: var(--pro-navy); font-size: 14px; font-weight: 800; line-height: 1.3; }

.table-ref-block span,
.mobile-dossier-ref span { display: block; margin-top: 3px; font-size: 12px; color: var(--pro-muted); }

.table-date { color: var(--pro-muted); font-size: 12px; font-weight: 600; }

.table-docs-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #eef2f7;
    color: var(--pro-text);
    font-size: 11px;
    font-weight: 700;
}

.table-action-btn,
.mobile-open-btn {
    height: 40px;
    padding: 0 14px;
    border-radius: 12px;
    background: var(--pro-navy);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    transition: .25s ease;
}

.table-action-btn:hover,
.mobile-open-btn:hover { transform: translateY(-2px); }

/* Cartes mobiles (dossiers) */
.mobile-dossiers-list { display: none; }

.mobile-dossier-card {
    padding: 18px;
    margin-bottom: 14px;
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 22px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, .03);
}

.mobile-dossier-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
}

.mobile-dossier-ref {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.mobile-dossier-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
}

.mobile-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--pro-muted);
    font-size: 12px;
    font-weight: 500;
}

.mobile-urgent-wrap { margin-bottom: 14px; }

.mobile-dossier-bottom {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.mobile-date {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: var(--pro-muted);
}


/* ============================================================
   15. COMPOSANTS — Empty state
   ============================================================ */

.empty-state-pro {
    padding: 50px 20px;
    text-align: center;
}

.empty-icon-wrap {
    width: 78px;
    height: 78px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    background: #f8fafc;
    color: #cbd5e1;
    font-size: 30px;
}

.empty-state-pro h3 { margin: 0 0 8px; color: var(--pro-navy); font-size: 18px; font-weight: 800; }
.empty-state-pro p  { margin: 0 0 20px; color: var(--pro-muted); font-size: 13px; }


/* ============================================================
   16. COMPOSANTS — Pagination
   ============================================================ */

.pagination-wrapper-pro {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}


/* ============================================================
   17. COMPOSANTS — Map preview
   ============================================================ */

#map-preview {
    height: 220px;
    width: 100%;
    display: none;
    margin-top: 18px;
    border-radius: 24px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .05);
}


/* ============================================================
   18. PAGE — Hero (sections communes)
   ============================================================ */

/* Hero dashboard */
.hero-dashboard {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 22px;
    align-items: stretch;
    margin-bottom: 22px;
}

.consular-card-wrapper { order: 1; }

.hero-content {
    order: 2;
    position: relative;
    overflow: hidden;
    padding: 26px;
    background: #fff;
    border: 1px solid var(--pro-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
}

.hero-content::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 130, 0, .08), transparent 70%);
}

/* Hero demandes */
.demandes-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 22px;
    margin-bottom: 22px;
}

.demandes-hero-content {
    position: relative;
    overflow: hidden;
    padding: 28px;
    background: var(--pro-card);
    border: 1px solid var(--pro-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
}

.demandes-hero-content::before {
    content: '';
    position: absolute;
    top: -70px;
    right: -70px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 130, 0, .08), transparent 70%);
}

.demandes-stats-grid { display: flex; flex-direction: column; gap: 14px; }

/* Titres hero partagés */
.hero-title {
    margin: 16px 0 10px;
    color: var(--pro-navy);
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.05;
    font-weight: 800;
}

.hero-title span { color: var(--pro-orange); }

.hero-description {
    max-width: 650px;
    color: var(--pro-muted);
    font-size: 13px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.hero-meta-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
}


/* ============================================================
   19. PAGE — Liste demandes
   ============================================================ */

.demandes-list-pro {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.demande-modern-card {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 18px;
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 20px;
    text-decoration: none;
    transition: .25s ease;
}

.demande-modern-card:hover {
    transform: translateY(-3px);
    border-color: #fed7aa;
    box-shadow: 0 10px 25px rgba(15, 23, 42, .06);
}

.demande-icon-box {
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 18px;
    background: #fff7ed;
    color: var(--pro-orange);
    font-size: 20px;
}

.demande-main-content { flex: 1; min-width: 0; }

.demande-top-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.demande-identite strong { display: block; margin-bottom: 4px; color: var(--pro-navy); font-size: 15px; font-weight: 800; }
.demande-identite span   { display: block; color: var(--pro-muted); font-size: 13px; }

.demande-status-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.urgence-badge {
    padding: 7px 10px;
    border-radius: 999px;
    background: #fff1f2;
    color: #e11d48;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.demande-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
}

.demande-meta {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.demande-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--pro-muted);
    font-size: 12px;
    font-weight: 500;
}

.demande-arrow {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 12px;
    background: #f8fafc;
    color: var(--pro-orange);
    transition: .2s ease;
}

.demande-modern-card:hover .demande-arrow { background: #fff7ed; }


/* ============================================================
   20. PAGE — Nouvelle demande (formulaire)
   ============================================================ */

.create-demande-hero { margin-bottom: 24px; }
.create-steps-grid   { align-self: stretch; }

.modern-form-section {
    position: relative;
    overflow: hidden;
    margin-bottom: 24px;
    border-radius: 28px;
    border: 1px solid rgba(15, 23, 42, .06);
    background: linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(248, 250, 252, .96));
    box-shadow: 0 10px 30px rgba(15, 23, 42, .05);
}

.modern-form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--orange), #f59e0b);
}

/* Grille types de demande */
.demande-types-modern-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.demande-type-modern-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 24px;
    border-radius: 24px;
    border: 1.5px solid #edf2f7;
    background: #fff;
    cursor: pointer;
    transition: .25s ease;
}

.demande-type-modern-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 138, 0, .25);
    box-shadow: 0 14px 30px rgba(15, 23, 42, .08);
}

.demande-type-modern-card.selected {
    border-color: var(--orange);
    background: linear-gradient(180deg, rgba(255, 247, 237, .9), #fff);
    box-shadow: 0 14px 35px rgba(255, 138, 0, .14);
}

.demande-type-modern-card input { display: none; }

.type-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.type-icon-wrap {
    width: 62px;
    height: 62px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 138, 0, .12), rgba(255, 138, 0, .2));
    color: var(--orange);
    font-size: 24px;
}

.type-radio-indicator {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #d1d5db;
    position: relative;
    transition: .2s ease;
}

.demande-type-modern-card.selected .type-radio-indicator { border-color: var(--orange); background: rgba(255, 138, 0, .1); }

.demande-type-modern-card.selected .type-radio-indicator::after {
    content: '';
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: var(--orange);
}

.type-card-body { display: flex; flex-direction: column; gap: 8px; }
.type-card-body strong { font-size: 16px; color: #0f172a; font-weight: 700; }
.type-card-body p { margin: 0; color: #64748b; line-height: 1.6; font-size: 13px; }

/* Grille priorité */
.priorite-modern-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.priorite-modern-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 24px;
    border-radius: 24px;
    border: 1.5px solid #edf2f7;
    background: #fff;
    cursor: pointer;
    transition: .25s ease;
}

.priorite-modern-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, .08);
}

.priorite-modern-card.selected {
    border-color: var(--orange);
    background: linear-gradient(180deg, rgba(255, 247, 237, .75), #fff);
    box-shadow: 0 14px 35px rgba(255, 138, 0, .12);
}

.priorite-modern-card input { display: none; }

.priorite-icon {
    width: 62px;
    height: 62px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.priorite-icon.standard { background: rgba(100, 116, 139, .1); color: #64748b; }
.priorite-icon.urgent   { background: rgba(245, 158, 11, .12); color: #f59e0b; }

.priorite-content { display: flex; flex-direction: column; gap: 6px; }
.priorite-content strong { font-size: 16px; color: #0f172a; }
.priorite-content p { margin: 0; color: #64748b; line-height: 1.5; font-size: 13px; }

/* Textarea */
.modern-input-group { width: 100%; }

.modern-textarea {
    width: 100%;
    min-height: 180px;
    resize: vertical;
    border-radius: 24px;
    background: #f8fafc;
    padding: 24px;
    font-size: 14px;
    line-height: 1.7;
    color: #0f172a;
    border: 1px solid #e2e8f0;
    outline: none;
    transition: .2s ease;
}

.modern-textarea:focus {
    background: #fff;
    border-color: rgba(255, 138, 0, .4);
    box-shadow: 0 0 0 4px rgba(255, 138, 0, .08);
}

.modern-textarea::placeholder { color: #94a3b8; }

/* Zone upload */
.modern-upload-zone {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    border: 2px dashed #cbd5e1;
    background: linear-gradient(180deg, #f8fafc, #fff);
    transition: .25s ease;
    cursor: pointer;
}

.modern-upload-zone.dragging {
    border-color: var(--orange);
    background: linear-gradient(180deg, rgba(255, 247, 237, .9), #fff);
}

.modern-upload-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 5;
}

.upload-zone-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 24px;
}

.upload-big-icon {
    width: 90px;
    height: 90px;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(255, 138, 0, .12), rgba(255, 138, 0, .2));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--orange);
    font-size: 38px;
    margin-bottom: 24px;
}

.upload-zone-content h3 { margin: 0 0 8px; font-size: 20px; color: #0f172a; font-weight: 700; }
.upload-zone-content p  { margin: 0; color: #64748b; font-size: 14px; }

.upload-supported-files {
    margin-top: 18px;
    padding: 10px 16px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #e2e8f0;
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
}

/* Fichiers uploadés */
.modern-files-grid {
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.modern-file-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    border-radius: 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.modern-file-icon {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--orange);
    font-size: 20px;
    flex-shrink: 0;
}

.modern-file-content { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.modern-file-content strong { font-size: 13px; color: #0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.modern-file-content span   { color: #64748b; font-size: 12px; }

/* Actions formulaire */
.modern-form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    margin-bottom: 40px;
}

.modern-error-msg { display: block; margin-top: 14px; color: #dc2626; font-size: 13px; font-weight: 600; }


/* ============================================================
   21. PAGE — Check-in
   ============================================================ */

.checkin-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) 360px;
    gap: 24px;
    margin-bottom: 28px;
}

.checkin-stats-grid { display: flex; flex-direction: column; gap: 18px; }
.checkin-history-card { overflow: hidden; }
.checkin-list-modern { display: flex; flex-direction: column; gap: 18px; }

.checkin-modern-card {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    padding: 24px;
    border: 1px solid rgba(15, 23, 42, .06);
    background: linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(248, 250, 252, .96));
    box-shadow: 0 10px 35px rgba(15, 23, 42, .05);
    transition: .25s ease;
}

.checkin-modern-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 138, 0, .15);
    box-shadow: 0 18px 45px rgba(15, 23, 42, .08);
}

.checkin-modern-card::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(rgba(255, 138, 0, .08), transparent 70%);
}

.checkin-card-top {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.checkin-left {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    min-width: 0;
    flex: 1;
}

.checkin-date-box {
    width: 78px;
    min-width: 78px;
    padding: 14px 10px;
    border-radius: 22px;
    text-align: center;
    border: 1px solid #e2e8f0;
    background: linear-gradient(180deg, #fff, #f8fafc);
}

.checkin-date-box strong { display: block; font-size: 18px; line-height: 1; font-weight: 800; color: #0f172a; }
.checkin-date-box span   { display: block; margin-top: 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: #94a3b8; font-weight: 700; }

.checkin-content { display: flex; flex-direction: column; gap: 14px; min-width: 0; flex: 1; }

.checkin-title-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.checkin-status-icon {
    width: 54px;
    height: 54px;
    min-width: 54px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .12);
}

.checkin-status-icon.green  { background: #10b981; }
.checkin-status-icon.orange { background: #f59e0b; }
.checkin-status-icon.red    { background: #ef4444; }
.checkin-status-icon.gray   { background: #94a3b8; }

.checkin-title-row strong { display: block; font-size: 16px; color: #0f172a; font-weight: 700; line-height: 1.5; }
.checkin-title-row span   { display: block; margin-top: 4px; font-size: 13px; color: #64748b; }

.checkin-location { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: #64748b; font-size: 13px; }
.checkin-location i { color: var(--orange); }

.checkin-right { display: flex; align-items: flex-start; gap: 12px; flex-shrink: 0; }

.checkin-note-box {
    position: relative;
    z-index: 1;
    margin-top: 22px;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid #fed7aa;
    background: linear-gradient(135deg, #fff7ed, #fffbf7);
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.checkin-note-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #ea580c;
    font-size: 18px;
}

.checkin-note-box strong { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 700; color: #9a3412; }
.checkin-note-box p      { margin: 0; font-size: 13px; line-height: 1.7; color: #9a3412; }


/* ============================================================
   22. PAGE — Détail demande (show)
   ============================================================ */

.demande-show-hero { margin-bottom: 24px; }

.hero-back-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: #64748b;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: .2s ease;
}

.hero-back-link:hover { color: var(--orange); }

.demande-show-stats { align-self: stretch; }

.demande-show-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(320px, 420px);
    gap: 24px;
    align-items: start;
}

.demande-show-main,
.demande-show-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.demande-show-card {
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, .06);
    background: linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(248, 250, 252, .96));
    box-shadow: 0 10px 35px rgba(15, 23, 42, .05);
}

.demande-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.demande-info-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 22px;
    border-radius: 22px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.demande-info-item.full   { grid-column: 1 / -1; }
.demande-info-item span   { font-size: 13px; color: #64748b; font-weight: 600; }
.demande-info-item strong { font-size: 15px; color: #0f172a; font-weight: 700; }

.demande-note-box {
    padding: 24px;
    border-radius: 24px;
    background: linear-gradient(180deg, #f8fafc, #fff);
    border: 1px solid #e2e8f0;
    color: #475569;
    line-height: 1.8;
    font-size: 14px;
}

/* Documents */
.documents-modern-list { display: flex; flex-direction: column; gap: 16px; }

.document-modern-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px;
    border-radius: 22px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    transition: .2s ease;
}

.document-modern-item:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 138, 0, .2);
    box-shadow: 0 10px 24px rgba(15, 23, 42, .05);
}

.document-modern-left { display: flex; align-items: center; gap: 16px; min-width: 0; }

.document-modern-icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(239, 68, 68, .12), rgba(239, 68, 68, .2));
    color: #ef4444;
    font-size: 22px;
    flex-shrink: 0;
}

.document-modern-content { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.document-modern-content strong { font-size: 14px; color: #0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.document-modern-content span   { font-size: 12px; color: #64748b; }

.document-view-btn {
    height: 44px;
    padding: 0 18px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    background: rgba(255, 138, 0, .1);
    color: var(--orange);
    font-size: 13px;
    font-weight: 700;
    transition: .2s ease;
    flex-shrink: 0;
}

.document-view-btn:hover { background: var(--orange); color: #fff; }

/* Timeline */
.timeline-modern {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.timeline-modern::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 24px;
    width: 2px;
    height: calc(100% - 20px);
    background: #e2e8f0;
}

.timeline-modern-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    z-index: 1;
}

.timeline-modern-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    flex-shrink: 0;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .12);
}

.timeline-modern-icon.blue   { background: #3b82f6; }
.timeline-modern-icon.orange { background: #ff8200; }
.timeline-modern-icon.green  { background: #10b981; }
.timeline-modern-icon.gray   { background: #cbd5e1; color: #64748b; }

.timeline-modern-content { display: flex; flex-direction: column; gap: 6px; padding-top: 4px; }
.timeline-modern-content strong { font-size: 14px; color: #0f172a; }
.timeline-modern-content span   { font-size: 13px; color: #64748b; line-height: 1.5; }

/* Support */
.support-modern-card {
    position: relative;
    overflow: hidden;
    padding: 28px;
    border-radius: 28px;
    background: linear-gradient(135deg, #fff7ed, #ffedd5);
    border: 1px solid rgba(251, 146, 60, .2);
}

.support-modern-card::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .2);
}

.support-modern-icon {
    width: 70px;
    height: 70px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #ea580c;
    font-size: 28px;
    margin-bottom: 20px;
}

.support-modern-card h3 { margin: 0 0 12px; font-size: 22px; color: #9a3412; font-weight: 700; }
.support-modern-card p  { margin: 0; color: #9a3412; line-height: 1.7; font-size: 14px; }

.support-modern-btn {
    margin-top: 22px;
    height: 52px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    text-decoration: none;
    background: #ea580c;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    transition: .2s ease;
}

.support-modern-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(234, 88, 12, .24); }

.sticky-card { position: sticky; top: 90px; }

/* Modale lecture */
#modal-contenu h1,
#modal-contenu h2,
#modal-contenu h3 { color: #ffffff; margin-top: 1rem; }
#modal-contenu ul,
#modal-contenu ol  { padding-left: 1.5rem; margin: 1rem 0; }
#modal-contenu a   { color: #f97316; text-decoration: underline; }
#modal-contenu strong { color: #ffffff; }


/* ============================================================
   23. PAGE — Profil
   ============================================================ */

.profil-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 22px;
    margin-bottom: 24px;
}

/* Avatar */
.profil-avatar-wrap {
    position: relative;
    width: 90px;
    height: 90px;
    flex-shrink: 0;
}

.profil-avatar-img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .12);
}

.profil-avatar-placeholder {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fff7ed, #ffedd5);
    border: 3px solid #fff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pro-orange);
    font-size: 30px;
}

.profil-avatar-overlay {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(15, 23, 42, .45);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    opacity: 0;
    cursor: pointer;
    transition: .2s ease;
}

.profil-avatar-wrap:hover .profil-avatar-overlay { opacity: 1; }

/* Nav onglets */
.profil-nav-card {
    background: #fff;
    border: 1px solid var(--pro-border);
    border-radius: 22px;
    padding: 10px;
    margin-bottom: 22px;
    box-shadow: var(--shadow-sm);
    overflow-x: auto;
}

.profil-nav {
    display: flex;
    gap: 6px;
    min-width: max-content;
}

.profil-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 18px;
    border-radius: 14px;
    text-decoration: none;
    color: var(--pro-muted);
    font-size: 13px;
    font-weight: 700;
    transition: .2s ease;
    white-space: nowrap;
    position: relative;
}

.profil-nav-item:hover { background: #f8fafc; color: var(--pro-navy); }
.profil-nav-item.active { background: var(--pro-navy); color: #fff; }

.profil-nav-icon {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

.profil-nav-item:not(.active) .profil-nav-icon { background: #f1f5f9; color: var(--pro-muted); }

.profil-nav-check { color: var(--pro-green); font-size: 12px; }
.profil-nav-item.active .profil-nav-check { color: #6ee7b7; }

.profil-nav-label { line-height: 1; }

/* Grille champs */
.profil-fields-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.profil-field-group { display: flex; flex-direction: column; gap: 8px; }

.profil-label-new {
    font-size: 12px;
    font-weight: 700;
    color: var(--pro-navy);
    letter-spacing: .2px;
}

.profil-input-new {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1.5px solid var(--pro-border);
    border-radius: 14px;
    background: #fff;
    color: var(--pro-text);
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    outline: none;
    transition: .2s ease;
}

.profil-input-new:focus {
    border-color: var(--pro-orange);
    box-shadow: 0 0 0 4px rgba(255, 130, 0, .08);
}

.profil-input-new[readonly] { background: #f1f5f9; cursor: not-allowed; color: var(--pro-muted); }

.profil-error-msg { font-size: 12px; color: #dc2626; font-weight: 600; }

/* Input + toggle œil */
.profil-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.profil-input-wrap .profil-input-new { padding-right: 50px; }

.profil-eye-btn {
    position: absolute;
    right: 14px;
    background: none;
    border: none;
    cursor: pointer;
    color: #94a3b8;
    font-size: 14px;
    padding: 4px;
    line-height: 1;
    transition: color .2s;
}

.profil-eye-btn:hover { color: var(--pro-navy); }

/* Upload photo ronde */
.profil-upload-circle {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 2px dashed #cbd5e1;
    background: #f8fafc;
    cursor: pointer;
    overflow: hidden;
    transition: .2s ease;
    flex-shrink: 0;
}

.profil-upload-circle:hover { border-color: var(--pro-orange); background: #fff7ed; }

.profil-upload-circle-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.profil-upload-circle-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 26px;
}

.profil-upload-hidden { display: none; }

/* Actions formulaire profil */
.profil-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 14px;
    margin-bottom: 40px;
}


/* ============================================================
   24. PAGE — Auth
   ============================================================ */

.auth-page-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 16px;
    background: var(--pro-bg);
}

/* Version split (register) */
.auth-page-split {
    align-items: stretch;
    padding: 0;
    min-height: 100vh;
}

/* Carte centrée (login, forgot, reset) */
.auth-card {
    width: 100%;
    max-width: 460px;
    background: #fff;
    border: 1px solid var(--pro-border);
    border-radius: 28px;
    padding: 40px 36px;
    box-shadow: 0 20px 60px rgba(15, 23, 42, .08);
}

/* En-tête de carte */
.auth-card-head { text-align: center; margin-bottom: 28px; }

.auth-card-icon {
    width: 64px;
    height: 64px;
    border-radius: 22px;
    background: rgba(255, 130, 0, .1);
    color: var(--pro-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin: 0 auto 20px;
}

.auth-card-title { margin: 0 0 8px; color: var(--pro-navy); font-size: 26px; font-weight: 800; line-height: 1.1; }
.auth-card-sub   { margin: 0; color: var(--pro-muted); font-size: 13px; line-height: 1.6; }

/* Bannières d'alerte */
.auth-banner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 16px;
    margin-bottom: 22px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
}

.auth-banner-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.auth-banner-error   { background: #fff1f2; color: #b91c1c; border: 1px solid #fecdd3; }

/* Corps formulaire */
.auth-form-body { display: flex; flex-direction: column; gap: 18px; }

/* Champs */
.auth-field-wrap  { display: flex; flex-direction: column; gap: 7px; }
.auth-field-label { font-size: 12px; font-weight: 700; color: var(--pro-navy); letter-spacing: .2px; }
.auth-required    { color: #ef4444; }

.auth-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.auth-forgot-link {
    font-size: 12px;
    font-weight: 700;
    color: var(--pro-orange);
    text-decoration: none;
    transition: color .2s;
}

.auth-forgot-link:hover { color: var(--pro-orange-dark); }

/* Input avec icône gauche */
.auth-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input-icon-left {
    position: absolute;
    left: 16px;
    color: #94a3b8;
    font-size: 14px;
    pointer-events: none;
    z-index: 1;
}

.auth-field-input {
    width: 100%;
    height: 50px;
    padding: 0 16px;
    border: 1.5px solid var(--pro-border);
    border-radius: 14px;
    background: #fff;
    color: var(--pro-text);
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    outline: none;
    transition: .2s ease;
}

.auth-input-group .auth-field-input { padding-left: 44px; }

.auth-field-input:focus {
    border-color: var(--pro-orange);
    box-shadow: 0 0 0 4px rgba(255, 130, 0, .08);
}

.auth-field-input.is-error {
    border-color: #ef4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, .07);
}

.auth-fields-row .auth-field-input { padding-left: 16px; }

.auth-field-hint  { font-size: 11px; color: var(--pro-muted); line-height: 1.5; }
.auth-field-error { font-size: 12px; color: #dc2626; font-weight: 600; }

/* Toggle password */
.auth-eye-toggle {
    position: absolute;
    right: 14px;
    background: none;
    border: none;
    cursor: pointer;
    color: #94a3b8;
    font-size: 14px;
    padding: 6px;
    line-height: 1;
    transition: color .2s;
    z-index: 1;
}

.auth-eye-toggle:hover { color: var(--pro-navy); }

/* Turnstile */
.auth-turnstile-wrap { padding: 4px 0; }

/* Checkbox custom */
.auth-check-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 13px;
    color: var(--pro-text);
    font-weight: 500;
    line-height: 1.5;
    user-select: none;
}

.auth-check-input { display: none; }

.auth-check-box {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border-radius: 7px;
    border: 2px solid var(--pro-border);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .2s ease;
    position: relative;
}

.auth-check-input:checked + .auth-check-box { background: var(--pro-navy); border-color: var(--pro-navy); }

.auth-check-input:checked + .auth-check-box::after {
    content: '';
    width: 6px;
    height: 10px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg) translateY(-1px);
}

/* Bouton submit */
.auth-submit-btn {
    width: 100%;
    height: 52px;
    border: none;
    border-radius: 16px;
    background: var(--pro-navy);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: .25s ease;
    margin-top: 4px;
}

.auth-submit-btn:hover    { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(15, 23, 42, .15); }
.auth-submit-btn:disabled { cursor: not-allowed; transform: none; box-shadow: none; }

/* Pied de carte */
.auth-card-footer {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--pro-border);
    text-align: center;
    font-size: 13px;
    color: var(--pro-muted);
    font-weight: 500;
}

.auth-card-footer a { color: var(--pro-orange); font-weight: 700; text-decoration: none; transition: color .2s; }
.auth-card-footer a:hover { color: var(--pro-orange-dark); }

/* Rangée de champs (register) */
.auth-fields-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

/* Panneau split gauche */
.auth-side-panel {
    width: 380px;
    min-width: 380px;
    min-height: 100vh;
    background: linear-gradient(160deg, #0f172a 0%, #1e293b 100%);
    color: #fff;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
}

.auth-side-badge {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: rgba(255, 130, 0, .15);
    border: 1px solid rgba(255, 130, 0, .25);
    color: var(--pro-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 28px;
}

.auth-side-title    { margin: 0 0 16px; font-size: 36px; font-weight: 800; line-height: 1.15; color: #fff; }
.auth-side-title em { font-style: normal; color: var(--pro-orange); }
.auth-side-desc     { margin: 0 0 28px; color: #94a3b8; font-size: 14px; line-height: 1.7; }

.auth-side-list {
    list-style: none;
    margin: 0 0 auto;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-side-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #cbd5e1;
    font-weight: 500;
}

.auth-side-list li i {
    width: 22px;
    height: 22px;
    border-radius: 8px;
    background: rgba(16, 185, 129, .15);
    color: #6ee7b7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    flex-shrink: 0;
}

.auth-side-cta {
    margin-top: 40px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.auth-side-cta p { margin: 0 0 10px; color: #64748b; font-size: 13px; }

.auth-side-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: color .2s;
}

.auth-side-link:hover { color: var(--pro-orange); }

/* Panneau formulaire (register) */
.auth-form-panel {
    flex: 1;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 60px 40px;
    overflow-y: auto;
}

.auth-form-panel-inner  { width: 100%; max-width: 560px; }
.auth-form-panel-head   { margin-bottom: 32px; }


/* ============================================================
   25. UTILITAIRES
   ============================================================ */

.text-end { text-align: right; }


/* ============================================================
   26. RESPONSIVE — ≤ 1100px
   ============================================================ */

@media (max-width: 1100px) {

    .hero-dashboard,
    .checkin-hero {
        grid-template-columns: 1fr;
    }

    .demande-show-layout { grid-template-columns: 1fr; }
    .demande-show-sidebar { order: -1; }
    .sticky-card { position: relative; top: auto; }

    .checkin-stats-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .espace-header-inner { padding: 14px 20px; }
    .alerts-wrapper      { padding: 0 20px; }
    .espace-main         { padding: 28px 20px 120px; }
}


/* ============================================================
   27. RESPONSIVE — ≤ 992px
   ============================================================ */

@media (max-width: 992px) {

    .demandes-hero            { grid-template-columns: 1fr; }
    .demandes-stats-grid      { display: grid; grid-template-columns: repeat(3, 1fr); }
    .profil-hero              { grid-template-columns: 1fr; }

    .modern-form-actions      { flex-direction: column-reverse; align-items: stretch; }
    .large-btn                { width: 100%; justify-content: center; }

    /* Auth split */
    .auth-page-split          { flex-direction: column; align-items: center; }
    .auth-side-panel          { width: 100%; min-width: unset; min-height: unset; position: static; padding: 40px 24px; border-radius: 0; }
    .auth-side-list           { flex-direction: row; flex-wrap: wrap; gap: 10px; }
    .auth-side-cta            { display: none; }
    .auth-side-title          { font-size: 28px; }
    .auth-form-panel          { padding: 40px 24px; }
}


/* ============================================================
   28. RESPONSIVE — ≤ 768px
   ============================================================ */

@media (max-width: 768px) {

    /* Layout */
    .pro-container  { padding: 14px; }
    .espace-header-inner { padding: 14px 16px; gap: 14px; }
    .espace-main    { padding: 22px 16px 125px; }
    .alerts-wrapper { padding: 0 16px; }

    /* Tab bar mobile visible */
    .mobile-tab-bar { display: flex; }

    /* Header logout */
    .espace-logout-btn { height: 42px; padding: 0 14px !important; border-radius: 15px !important; font-size: 12px; }
    .logout-divider    { display: none; }

    /* Arrondis réduits */
    .demandes-hero-content,
    .section-card-pro,
    .mini-stat-card,
    .demande-modern-card,
    .hero-content,
    .consular-card,
    .alert-modern-box,
    .demande-show-card,
    .checkin-modern-card,
    .checkin-note-box,
    .support-modern-card { border-radius: 18px; }

    .demandes-hero-content,
    .hero-content { padding: 22px; }

    .hero-title { font-size: 30px; }

    .hero-actions { flex-direction: column; margin-top: 20px; }

    .btn-primary-pro,
    .btn-secondary-pro,
    .btn-warning-pro { width: 100%; }

    /* Stats */
    .demandes-stats-grid,
    .hero-mini-stats,
    .holder-grid,
    .checkin-stats-grid { grid-template-columns: 1fr; }

    /* Filtres */
    .filters-form  { flex-direction: column; align-items: stretch; }
    .filter-group  { width: 100%; min-width: 100%; }

    /* Alertes */
    .alert-modern-box,
    .alert-left,
    .section-header-pro { flex-direction: column; align-items: flex-start; }

    .profile-alert-card    { flex-direction: column; align-items: stretch; padding: 16px; border-radius: 18px; }
    .profile-alert-content { width: 100%; }
    .profile-alert-btn     { width: 100%; }
    .profile-alert-top     { align-items: flex-start; }
    .profile-alert-top h3  { font-size: 15px; }
    .profile-alert-text p  { font-size: 12px; }

    /* Demande cards */
    .demande-modern-card  { flex-direction: column; }
    .demande-icon-box     { width: 52px; height: 52px; border-radius: 16px; }
    .demande-top-row      { flex-direction: column; gap: 12px; }
    .demande-status-group { width: 100%; }
    .demande-bottom-row   { flex-direction: column; align-items: flex-start; }
    .demande-meta         { width: 100%; flex-direction: column; align-items: flex-start; gap: 10px; }
    .demande-arrow        { width: 100%; border-radius: 14px; }

    /* Tableau */
    .desktop-table       { display: none; }
    .mobile-dossiers-list { display: block; }

    .dashboard-table-card  { padding: 20px; border-radius: 22px; }
    .table-header-actions  { width: 100%; justify-content: space-between; flex-wrap: wrap; }
    .table-link-btn        { flex: 1; }
    .status-pill-pro       { padding: 6px 10px; font-size: 9px; }

    .mobile-dossier-bottom { justify-content: stretch; }
    .mobile-open-btn       { width: 100%; }

    /* Formulaire demande */
    .modern-form-section   { border-radius: 22px; padding: 22px; }
    .demande-types-modern-grid,
    .priorite-modern-grid,
    .modern-files-grid     { grid-template-columns: 1fr; }

    .demande-type-modern-card,
    .priorite-modern-card  { padding: 20px; border-radius: 20px; }

    .upload-zone-content   { padding: 45px 18px; }
    .upload-big-icon       { width: 74px; height: 74px; border-radius: 22px; font-size: 30px; }
    .upload-zone-content h3 { font-size: 17px; }
    .modern-textarea       { padding: 18px; border-radius: 18px; }

    /* Check-in */
    .checkin-modern-card    { padding: 20px; border-radius: 24px; }
    .checkin-card-top       { flex-direction: column; align-items: flex-start; }
    .checkin-right          { width: 100%; }
    .checkin-right .status-pill-pro { width: 100%; justify-content: center; text-align: center; }

    /* Détail demande */
    .demande-show-hero   { margin-bottom: 20px; }
    .hero-back-link      { font-size: 13px; gap: 8px; margin-bottom: 16px; }
    .hero-meta-row       { gap: 10px; }

    .demande-info-grid   { grid-template-columns: 1fr; gap: 14px; }
    .demande-info-item   { padding: 18px; border-radius: 18px; }
    .demande-note-box    { padding: 20px; border-radius: 20px; font-size: 13px; }

    .documents-modern-list { gap: 14px; }
    .document-modern-item  { flex-direction: column; align-items: flex-start; padding: 16px; border-radius: 18px; }
    .document-modern-left,
    .document-modern-content { width: 100%; }
    .document-modern-content strong { white-space: normal; overflow: visible; text-overflow: unset; line-height: 1.5; }
    .document-view-btn     { width: 100%; justify-content: center; height: 46px; border-radius: 14px; }

    .timeline-modern          { gap: 20px; }
    .timeline-modern::before  { left: 22px; }
    .timeline-modern-icon     { width: 44px; height: 44px; border-radius: 14px; font-size: 15px; }
    .timeline-modern-content strong { font-size: 13px; }
    .timeline-modern-content span   { font-size: 12px; }

    .support-modern-card h3 { font-size: 20px; }
    .support-modern-card p  { font-size: 13px; }
    .support-modern-btn     { height: 48px; border-radius: 16px; font-size: 13px; }
    .support-modern-card    { padding: 22px; }
    .section-card-pro       { padding: 20px; }

    /* Profil */
    .profil-hero > .demandes-hero-content { flex-direction: column; align-items: flex-start; gap: 18px; }
    .profil-nav          { gap: 4px; }
    .profil-nav-item     { padding: 10px 14px; font-size: 12px; }
    .profil-nav-label    { display: none; }
    .profil-nav-icon     { width: 26px; height: 26px; font-size: 12px; }
    .profil-fields-grid  { grid-template-columns: 1fr; }
    .profil-form-actions { flex-direction: column; }
    .profil-form-actions .btn-primary-pro,
    .profil-form-actions .large-btn { width: 100%; justify-content: center; }

    /* Auth */
    .auth-page-wrap  { padding: 20px 14px; }
    .auth-card       { padding: 30px 22px; border-radius: 22px; }
    .auth-card-title { font-size: 22px; }
    .auth-fields-row { grid-template-columns: 1fr; gap: 18px; }
    .auth-form-panel { padding: 30px 16px; }

    /* Footer */
    .espace-footer { display: none; }

    /* Map */
    #map-preview { height: 200px; border-radius: 20px; }

    /* Modale */
    #msg-modal      { padding: 0 !important; align-items: flex-start !important; }
    #msg-modal-card { max-width: 100% !important; height: 100% !important; max-height: 100% !important; border-radius: 0 !important; border: none !important; }
    #modal-footer   { padding-bottom: calc(70px + env(safe-area-inset-bottom, 8px)) !important; }
    #modal-footer button { width: 100% !important; }
}


/* ============================================================
   29. RESPONSIVE — ≤ 576px
   ============================================================ */

@media (max-width: 576px) {

    /* Header layout */
    .espace-header-inner   { flex-direction: row !important; align-items: flex-start !important; justify-content: space-between; gap: 12px; }
    .espace-logo           { flex: 1; min-width: 0; }
    .espace-logo-title     { font-size: 14px; }
    .espace-logo-sub       { font-size: 10px; }
    .espace-header-right   { width: auto !important; flex-shrink: 0; justify-content: flex-end; }
    .espace-header-right .logout-divider { display: none; }
    .espace-header-right form { margin-left: 0 !important; padding-left: 0 !important; border-left: none !important; }
    .espace-logout-btn     { height: 40px; padding: 0 12px !important; border-radius: 14px !important; font-size: 12px; white-space: nowrap; }
    .espace-logout-btn span { display: none; }
    .espace-logout-btn i   { margin: 0; font-size: 14px; }

    /* Alertes */
    .alert-container  { border-radius: 20px !important; padding: 16px !important; }
    .alert-content li { font-size: 13px; }

    /* Tab bar */
    .mobile-tab-bar    { width: calc(100% - 18px); height: 76px; bottom: 14px; border-radius: 26px; }
    .tab-item i        { font-size: 17px; }
    .tab-item span     { font-size: 10px; }
    .tab-item-center   { width: 68px; min-width: 68px; }
    .plus-circle       { width: 58px; height: 58px; border-radius: 22px; font-size: 20px; }

    /* Badges urgents */
    .demande-badge-urgente { padding: 6px 10px; gap: 6px; font-size: 9px; width: auto; align-self: flex-start; }
    .demande-badge-urgente i { width: 6px; height: 6px; }
    .normal-priority { padding: 6px 10px; gap: 6px; font-size: 9px; width: auto; align-self: flex-start; }
    .normal-priority i { width: 6px; height: 6px; }

    /* Check-in */
    .checkin-hero        { gap: 18px; margin-bottom: 22px; }
    .checkin-list-modern { gap: 14px; }
    .checkin-modern-card { padding: 16px; border-radius: 20px; }
    .checkin-left        { flex-direction: column; gap: 14px; }

    .checkin-date-box {
        width: 100%;
        min-width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 16px;
        border-radius: 18px;
    }

    .checkin-date-box strong,
    .checkin-date-box span { margin: 0; }

    .checkin-title-row  { gap: 12px; }
    .checkin-status-icon { width: 46px; height: 46px; min-width: 46px; border-radius: 15px; font-size: 17px; }
    .checkin-title-row strong { font-size: 14px; }
    .checkin-title-row span   { font-size: 12px; }
    .checkin-location   { font-size: 12px; }

    .checkin-note-box   { flex-direction: column; padding: 16px; border-radius: 18px; gap: 12px; }
    .checkin-note-icon  { width: 42px; height: 42px; min-width: 42px; border-radius: 14px; font-size: 16px; }
    .checkin-note-box strong { font-size: 13px; }
    .checkin-note-box p      { font-size: 12px; }

    /* Détail demande */
    .demande-show-layout,
    .demande-show-main,
    .demande-show-sidebar { gap: 16px; }

    .hero-back-link    { font-size: 12px; }
    .hero-meta-row     { flex-direction: column; align-items: flex-start; width: 100%; }
    .demande-show-stats { width: 100%; }
    .demande-show-card  { border-radius: 20px; }

    .demande-info-item  { padding: 16px; border-radius: 16px; gap: 8px; }
    .demande-info-item span   { font-size: 12px; }
    .demande-info-item strong { font-size: 14px; line-height: 1.5; word-break: break-word; }
    .demande-note-box   { padding: 18px; border-radius: 18px; font-size: 13px; }

    .document-modern-item  { padding: 14px; border-radius: 16px; gap: 14px; }
    .document-modern-left  { gap: 12px; align-items: flex-start; }
    .document-modern-icon  { width: 48px; height: 48px; min-width: 48px; border-radius: 14px; font-size: 18px; }
    .document-modern-content strong { font-size: 13px; }
    .document-modern-content span   { font-size: 11px; }
    .document-view-btn     { font-size: 12px; height: 44px; border-radius: 12px; padding: 0 14px; }

    .timeline-modern          { gap: 18px; }
    .timeline-modern::before  { left: 19px; top: 8px; height: calc(100% - 16px); }
    .timeline-modern-item     { gap: 12px; }
    .timeline-modern-icon     { width: 38px; height: 38px; min-width: 38px; border-radius: 12px; font-size: 13px; }
    .timeline-modern-content  { padding-top: 2px; }
    .timeline-modern-content strong { font-size: 13px; line-height: 1.4; }
    .timeline-modern-content span   { font-size: 11px; }

    .support-modern-card { padding: 18px; border-radius: 20px; }
    .support-modern-card::before { width: 100px; height: 100px; top: -30px; right: -30px; }
    .support-modern-icon { width: 54px; height: 54px; border-radius: 16px; font-size: 20px; margin-bottom: 16px; }
    .support-modern-card h3 { font-size: 17px; line-height: 1.4; }
    .support-modern-card p  { font-size: 12px; }
    .support-modern-btn     { height: 44px; border-radius: 14px; font-size: 12px; gap: 8px; margin-top: 18px; }

    /* Formulaire */
    .modern-form-section     { padding: 18px; border-radius: 20px; }
    .type-icon-wrap,
    .priorite-icon           { width: 54px; height: 54px; border-radius: 16px; font-size: 20px; }
    .upload-zone-content     { padding: 35px 14px; }
    .upload-supported-files  { width: 100%; text-align: center; }
    .modern-file-card        { padding: 14px; }
    .modern-file-icon        { width: 44px; height: 44px; border-radius: 14px; font-size: 18px; }

    /* Tableau mobile */
    .table-header-actions    { flex-direction: column; align-items: stretch; }
    .table-count-badge,
    .table-link-btn          { width: 100%; justify-content: center; }
    .mobile-dossier-bottom   { flex-direction: column; align-items: stretch; }

    /* Map */
    #map-preview { height: 180px; border-radius: 18px; }

    /* Profil nav icônes seules */
    .profil-nav-item { padding: 10px 12px; }

    /* Auth */
    .auth-card       { padding: 24px 18px; border-radius: 20px; }
    .auth-card-title { font-size: 20px; }
    .auth-submit-btn { height: 48px; font-size: 13px; }

    /* Modale modale desktop */
    #msg-modal-card { max-height: 90vh !important; border-radius: 16px !important; }
}


/* ============================================================
   30. RESPONSIVE — ≤ 480px
   ============================================================ */

@media (max-width: 480px) {

    .hero-title             { font-size: 26px; }
    .card-number            { font-size: 17px; }
    .section-header-pro h2  { font-size: 16px; }
    .country strong,
    .country span           { font-size: 9px; }
    .mini-stat-card         { padding: 16px; }
    .demande-identite strong { font-size: 14px; }
    .demande-identite span  { font-size: 12px; }
}


/* ============================================================
   31. RESPONSIVE — ≤ 380px
   ============================================================ */

@media (max-width: 380px) {

    .espace-header-inner { padding: 12px; }
    .espace-main         { padding: 16px 12px 118px; }

    .mobile-tab-bar  { width: calc(100% - 14px); height: 72px; border-radius: 22px; }
    .plus-circle     { width: 54px; height: 54px; border-radius: 18px; font-size: 18px; }
    .tab-item span   { font-size: 9px; }

    .checkin-modern-card { padding: 14px; }
    .checkin-date-box    { padding: 12px 14px; }
    .checkin-status-icon { width: 42px; height: 42px; min-width: 42px; border-radius: 13px; font-size: 15px; }
    .checkin-note-box    { padding: 14px; }

    .demande-show-card { border-radius: 18px; }
    .demande-info-item { padding: 14px; }

    .document-modern-item { padding: 12px; }
    .document-modern-icon { width: 42px; height: 42px; min-width: 42px; font-size: 16px; }

    .timeline-modern-icon    { width: 34px; height: 34px; min-width: 34px; border-radius: 10px; font-size: 12px; }
    .timeline-modern::before { left: 17px; }

    .support-modern-card { padding: 16px; }
    .support-modern-icon { width: 48px; height: 48px; font-size: 18px; }
}

@media (max-width: 768px) {
  .espace-header-label {
    display: none !important;
  }
}
@media (max-width: 768px) {
  .espace-header-label,
  .espace-footer-pro {
    display: none !important;
  }
}
.alert-container {
    display: flex;
    align-items: center;   /* centre verticalement */
    justify-content: center; /* centre horizontalement */
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 10px;
}

.alert-icon {
    margin-right: 8px;
    font-size: 18px;
}

.alert-content {
    text-align: left; /* centre le texte */
}
.passport-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 12px;
    margin-top: 6px;
}

.passport-badge.expired {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
}

.passport-badge.warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
}

.passport-badge.valid {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}



.flex-container {
    display: flex;
    gap: 40px;
}

.holder-item label {
    display: block; 
}



/* ----STYLES POINTAGE DE SECURITE ---- */

/* ---- Grille options santé ---- */
.checkin-options-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.checkin-option-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border: 1.5px solid var(--pro-border);
    border-radius: 18px;
    background: #fff;
    cursor: pointer;
    transition: .25s ease;
}

.checkin-option-card:hover {
    border-color: rgba(255, 130, 0, .35);
    background: #fffbf7;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, .06);
}

.checkin-option-card.selected {
    border-color: var(--pro-orange);
    background: linear-gradient(180deg, rgba(255, 247, 237, .8), #fff);
    box-shadow: 0 8px 24px rgba(255, 130, 0, .12);
}

/* Spécial urgence */
#opt-urgence.selected {
    border-color: #ef4444;
    background: linear-gradient(180deg, rgba(254, 226, 226, .5), #fff);
    box-shadow: 0 8px 24px rgba(239, 68, 68, .12);
}

.option-card-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.option-card-body {
    flex: 1;
    min-width: 0;
}

.option-card-body strong {
    display: block;
    color: var(--pro-navy);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 3px;
}

.option-card-body span {
    display: block;
    color: var(--pro-muted);
    font-size: 12px;
}

.option-card-radio {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    flex-shrink: 0;
    position: relative;
    transition: .2s ease;
}

.checkin-option-card.selected .option-card-radio {
    border-color: var(--pro-orange);
}

.checkin-option-card.selected .option-card-radio::after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: var(--pro-orange);
}

#opt-urgence.selected .option-card-radio {
    border-color: #ef4444;
}

#opt-urgence.selected .option-card-radio::after {
    background: #ef4444;
}

/* ---- GPS état OK ---- */
#gps-status-bar.gps-ok {
    border-color: #bbf7d0;
    background: linear-gradient(135deg, #f0fdf4, #f7fffe);
}

#gps-status-bar.gps-ok .checkin-note-icon {
    color: #10b981;
}

#gps-status-bar.gps-ok strong,
#gps-status-bar.gps-ok p {
    color: #166534;
}

/* ---- Responsive ---- */
@media (max-width: 576px) {
    .option-card-icon {
        width: 44px;
        height: 44px;
        min-width: 44px;
        border-radius: 14px;
        font-size: 17px;
    }

    .option-card-body strong { font-size: 13px; }
    .option-card-body span   { font-size: 11px; }

    .checkin-option-card { padding: 14px 16px; gap: 12px; }
}

