/* ==========================================================================
   DP SERVICES — APP.CSS
   Chargé une seule fois dans base.html.twig.

   SOMMAIRE
   1. Reset / Base
   2. Layout général (sidebar, topbar, content)
   3. Composants partagés
   4. Accueil Acquisition
   5. Dashboard Acquisition
   6. Historique
   7. Admin Dashboard (version simple)
   8. Calendrier + Modal mission
   9. Mobile Cleaner (missions + historique)
   10. Demandes
   11. Nouvelle demande
   12. Valider demande
   13. Prestations
   14. Modifier prestation
   15. Nouvelle prestation
   16. Devis (placeholder)
   17. Détail Devis
   18. Nouveau Devis
   19. Fiche prospect / Timeline / Email-SMS / Form card
   20. Fiche prospect (page)
   21. Confirmation envoi email/sms
   22. Formulaires envoi email/sms
   23. Propriétaire / Logements / Utilisateurs
   24. Prospects — Kanban / Import / Formulaires
   25. Formulaires natifs Symfony
   26. Connexion
   27. Dashboard Admin enrichi
   28. Prospects — Légende + Pagination
   29. Responsive Mobile
   ========================================================================== */


/* ==========================================================================
   1. RESET / BASE
   ========================================================================== */

:root {
    --bg:            #14474A;
    --bg-2:          #103E3E;
    --sidebar:       #0F3838;
    --card:          #1A5052;
    --card-2:        #16484A;
    --card-alt:      #2C6B66;
    --border:        rgba(232, 184, 74, 0.18);
    --border-soft:   rgba(245, 240, 225, 0.08);
--text:          #FFE08A;
--text-muted:    #F5F1E8;
--text-dim:      #D5E2DC;
    --gold:          #E8B84A;
    --gold-soft:     rgba(232, 184, 74, 0.15);
    --gold-strong:   #F0C868;
    --teal-accent:   #2DD4BF;
    --shadow-soft:   0 10px 30px -12px rgba(0, 0, 0, 0.35);
    --shadow-gold:   0 8px 24px -10px rgba(232, 184, 74, 0.35);
    --radius:        16px;
    --radius-lg:     20px;
}

* { box-sizing: border-box; }

html, body { height: 100%; background: var(--bg); }

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* Texte clair par défaut dans les conteneurs à fond foncé */
.card, .card-lg, .form-section, .devis-table-wrapper, .table-wrapper,
.data-table, .kanban-card, .kanban-column, .login-box, .welcome,
.lead-banner, .empty-state--card, .import-panel, .back-link--pill {
    color: var(--text);
}


/* ==========================================================================
   2. LAYOUT GÉNÉRAL
   ========================================================================== */

.app-layout {
    display: flex;
    min-height: 100vh;
}

.mobile-topbar,
.mobile-bottom-nav,
.mobile-topbar-menu-btn {
    display: none;
}

/* -- Sidebar -- */
.sidebar {
    width: 260px;
    flex-shrink: 0;
    background: var(--sidebar);
    border-right: 1px solid var(--border);
    color: var(--text);
    padding: 24px 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-logo {
    padding: 0 20px 20px;
    margin-bottom: 12px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.sidebar-logo img {
    max-width: 210px;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.sidebar a {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 2px 12px;
    padding: 11px 14px;
    border-radius: 12px;
    color: rgba(245, 240, 225, 0.75);
    text-decoration: none;
    font-size: 14px;
    position: relative;
    transition: background 0.2s, color 0.2s;
}

.sidebar a i {
    font-size: 16px;
    width: 18px;
    text-align: center;
    opacity: 0.85;
}

.sidebar a:hover {
    background: rgba(245, 240, 225, 0.04);
    color: var(--text);
}

.sidebar a.active {
    background: var(--gold-soft);
    color: var(--gold);
    font-weight: 500;
}

.sidebar a.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: var(--gold);
    border-radius: 0 2px 2px 0;
}

/* Bouton "Installer l'app" (sidebar desktop) */
.sidebar-pwa-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: auto 16px 20px;
    padding: 12px 16px;
    background: linear-gradient(135deg, var(--gold), #B8862E);
    color: var(--bg);
    border: none;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow-gold);
    transition: transform 0.2s, filter 0.2s;
}

.sidebar-pwa-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
}

.sidebar-pwa-btn i { font-size: 14px; }

/* -- Colonne principale -- */
.main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.topbar {
    background: var(--card);
    border-bottom: 1px solid var(--border-soft);
    padding: 10px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-soft);
}

.topbar h1,
.topbar-title {
    margin: 0;
    font-size: 1.2rem;
    color: var(--text);
    font-weight: 600;
    white-space: nowrap;
}

.topbar-search {
    position: relative;
    flex: 1;
    max-width: 480px;
    margin: 0 24px;
}

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

.topbar-search input {
    width: 100%;
    background: rgba(245, 240, 225, 0.05);
    border: 1px solid var(--border-soft);
    color: var(--text);
    padding: 9px 14px 9px 38px;
    border-radius: 999px;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s;
}

.topbar-search input::placeholder { color: var(--text-dim); }
.topbar-search input:focus { border-color: var(--gold); }

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.topbar-icon-btn {
    position: relative;
    height: 38px;
    width: 38px;
    display: grid;
    place-items: center;
    background: var(--card-2);
    border: 1px solid var(--border-soft);
    border-radius: 999px;
    color: var(--text);
    transition: background 0.2s;
}

.topbar-icon-btn:hover { background: var(--card); }
.topbar-icon-btn i { font-size: 15px; }

.topbar-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    height: 17px;
    min-width: 17px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--gold);
    color: var(--bg);
    font-size: 10px;
    font-weight: 700;
    display: grid;
    place-items: center;
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 6px 4px 4px;
    background: var(--card-2);
    border: 1px solid var(--border-soft);
    border-radius: 999px;
}

.topbar-avatar {
    height: 32px;
    width: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), #B8862E);
    color: var(--bg);
    font-size: 12px;
    font-weight: 700;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.topbar-user-info { display: flex; flex-direction: column; line-height: 1.2; }
.topbar-user-name { font-size: 12.5px; font-weight: 600; color: var(--text); white-space: nowrap; }
.topbar-user-role { font-size: 10.5px; color: var(--text-dim); }

.topbar .logout {
    display: grid;
    place-items: center;
    height: 30px;
    width: 30px;
    margin-left: 2px;
    background: var(--gold-soft);
    color: var(--gold);
    border-radius: 50%;
    text-decoration: none;
    font-size: 12px;
    transition: background 0.2s;
}

.topbar .logout:hover { background: var(--gold); color: var(--bg); }

.topbar-cta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 18px;
    background: var(--gold);
    color: var(--bg);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: var(--shadow-gold);
    transition: filter 0.2s;
}

.topbar-cta:hover { filter: brightness(1.08); }

/* Dropdown notifications (cloche) */
.topbar-notif-wrapper { position: relative; }

.topbar-notif-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 320px;
    max-height: 400px;
    overflow-y: auto;
    background: var(--card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    z-index: 100;
}

.topbar-notif-dropdown.is-open { display: block; }

.topbar-notif-empty {
    padding: 20px 16px;
    text-align: center;
    color: var(--text-dim);
    font-size: 13px;
}

.topbar-notif-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-soft);
    text-decoration: none;
    color: var(--text);
    background: var(--card);
    transition: background 0.15s;
    white-space: nowrap;
    overflow: hidden;
}

.topbar-notif-item:last-child { border-bottom: none; }
.topbar-notif-item:hover { background: var(--card-2); }
.topbar-notif-item--unread { background: var(--gold-soft); }
.topbar-notif-item--unread:hover { background: var(--gold-soft); filter: brightness(1.1); }
.topbar-notif-message {
    font-size: 10px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

.topbar-notif-date {
    font-size: 10px;
    color: var(--text-dim);
    flex-shrink: 0;
    white-space: nowrap;
}

@media (max-width: 1024px) {
    .topbar-search { display: none; }
    .topbar-cta span { display: none; }
}

.content {
    padding: 1rem 2rem;
    flex: 1;
    background: var(--bg);
}

.content > h2,
.content > h3 {
    color: var(--gold-strong);
    font-size: 1.25rem;
    font-weight: 700;
    margin: 1.75rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--gold-soft);
    letter-spacing: 0.3px;
}

.content > h2:first-child,
.content > h3:first-child { margin-top: 0; }

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.cards .card h3 {
    color: var(--text-muted);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.cards .card .number { font-size: 2rem; font-weight: bold; color: var(--text); }

.welcome {
    background: var(--card-alt);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}


/* ==========================================================================
   3. COMPOSANTS PARTAGÉS
   ========================================================================== */

.card {
    background: var(--card-alt);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.card__title { margin-bottom: 1rem; color: var(--text); }

.grid-auto {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.grid-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

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

.btn-link {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--gold);
    color: var(--bg);
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
}

.btn-link:hover { filter: brightness(1.08); }

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.stat-row__label { color: var(--text-muted); }
.stat-row__value { font-weight: 600; color: var(--text); }


/* ==========================================================================
   4. PAGE : ACCUEIL ACQUISITION
   ========================================================================== */

.welcome h2 { margin-bottom: 0.5rem; }
.welcome p { color: var(--text-muted); }

.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.action-card {
    background: #f1f5f9;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: background 0.2s;
}

.action-card:hover { background: #e2e8f0; }
.action-card__icon { font-size: 2rem; }
.action-card__title { margin: 0.5rem 0; color: var(--text); }
.action-card__desc { color: var(--text-muted); font-size: 0.875rem; }

/* Bandeau de bienvenue version enrichie */
.acq-hero {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--card-alt);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    margin-bottom: 2rem;
    border: 1px solid var(--border);
}

.acq-hero__icon {
    height: 64px;
    width: 64px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    background: var(--gold-soft);
    color: var(--gold);
    display: grid;
    place-items: center;
    font-size: 26px;
}

.acq-hero__title { font-size: 1.5rem; font-weight: 700; color: var(--gold-strong); margin: 0 0 0.5rem; }

.acq-hero__subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
}

.acq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.acq-card {
    position: relative;
    display: block;
    background: var(--card-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem 1.75rem;
    text-decoration: none;
    color: var(--text);
    box-shadow: var(--shadow-soft);
    transition: border-color 0.2s, transform 0.2s;
}

.acq-card:hover { border-color: rgba(232, 184, 74, 0.45); transform: translateY(-3px); }

.acq-card__icon {
    height: 52px;
    width: 52px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 22px;
    margin-bottom: 1.25rem;
}

.acq-card__icon--gold   { background: var(--gold-soft); color: var(--gold); }
.acq-card__icon--teal   { background: rgba(45, 212, 191, 0.15); color: var(--teal-accent); }
.acq-card__icon--purple { background: rgba(124, 58, 237, 0.15); color: #a78bfa; }

.acq-card__title { font-size: 1.1rem; font-weight: 700; color: var(--text); margin: 0 0 0.35rem; }
.acq-card__desc { font-size: 0.85rem; color: var(--text-muted); margin: 0; }

.acq-card__arrow {
    position: absolute;
    top: 1.75rem;
    right: 1.75rem;
    color: var(--text-dim);
    font-size: 14px;
    transition: color 0.2s, transform 0.2s;
}

.acq-card:hover .acq-card__arrow { color: var(--gold); transform: translateX(3px); }


/* ==========================================================================
   5. PAGE : DASHBOARD ACQUISITION
   ========================================================================== */

.kpi-card__label {
    font-size: 0.8rem;
    color: var(--text-dim);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.kpi-card__value { font-size: 2rem; font-weight: bold; color: var(--text); }

.kpi-card__value--total      { color: var(--text); }
.kpi-card__value--qualified  { color: #d97706; }
.kpi-card__value--clients    { color: #059669; }
.kpi-card__value--conversion { color: #2563eb; }
.kpi-card__value--emails     { color: #059669; }
.kpi-card__value--sms        { color: #7c3aed; }
.kpi-card__value--response   { color: #2563eb; }

.revenue-banner {
    background: #059669;
    color: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.revenue-banner__title { font-size: 0.875rem; opacity: 0.9; }
.revenue-banner__subtitle { font-size: 0.75rem; opacity: 0.75; margin-top: 0.25rem; }
.revenue-banner__amount { font-size: 2.5rem; font-weight: bold; }


/* ==========================================================================
   6. PAGE : HISTORIQUE
   ========================================================================== */

.table-wrapper {
    background: var(--card-alt);
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.table-wrapper__empty { padding: 2rem; text-align: center; color: var(--text-dim); }

.data-table {
    width: 100%;
    background: var(--card-alt);
    border-radius: 8px;
    border-collapse: collapse;
}

.data-table thead tr { background: var(--card-2); }
.data-table th { padding: 1rem; text-align: left; color: var(--gold); }
.data-table tbody tr { border-top: 1px solid var(--border-soft); }
.data-table td { padding: 1rem; font-size: 16px; }

.data-table__date { color: var(--text-muted); font-size: 0.875rem; white-space: nowrap; }
.data-table__text { color: var(--text-muted); font-size: 0.875rem; }

.badge-action {
    background: #dbeafe;
    color: #2563eb;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}


/* ==========================================================================
   7. PAGE : ADMIN DASHBOARD (version simple)
   ========================================================================== */

.kpi-border {
    background: var(--card-alt);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-top: 4px solid transparent;
}

.kpi-border--blue   { border-top-color: #2563eb; }
.kpi-border--green  { border-top-color: #059669; }
.kpi-border--orange { border-top-color: #d97706; }
.kpi-border--purple { border-top-color: #7c3aed; }

.kpi-border__label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.kpi-border__value { font-size: 2.5rem; font-weight: bold; color: var(--text); }

.section-title {
    margin-bottom: 1.5rem;
    color: var(--text);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.status-pill { text-align: center; padding: 1rem; border-radius: 8px; }

.status-pill--pending   { background: #fef3c7; }
.status-pill--validated { background: #d1fae5; }
.status-pill--completed { background: #dbeafe; }
.status-pill--cancelled { background: #fee2e2; }

.status-pill__value { font-size: 1.75rem; font-weight: bold; }

.status-pill--pending   .status-pill__value { color: #d97706; }
.status-pill--validated .status-pill__value { color: #059669; }
.status-pill--completed .status-pill__value { color: #2563eb; }
.status-pill--cancelled .status-pill__value { color: #dc2626; }

.status-pill__label { font-size: 0.875rem; margin-top: 0.25rem; }

.status-pill--pending   .status-pill__label { color: #92400e; }
.status-pill--validated .status-pill__label { color: #065f46; }
.status-pill--completed .status-pill__label { color: #1e40af; }
.status-pill--cancelled .status-pill__label { color: #991b1b; }

.quick-links { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn-quick { padding: 0.75rem 1.5rem; color: white; border-radius: 6px; text-decoration: none; }

.btn-quick--blue    { background: #2563eb; }
.btn-quick--green   { background: #059669; }
.btn-quick--orange  { background: #d97706; }
.btn-quick--purple  { background: #7c3aed; }
.btn-quick--cyan    { background: #0ea5e9; }
.btn-quick--emerald { background: #10b981; }

/* Grille "Statuts des demandes" : 4 colonnes cote à cote sur desktop */
.grid-auto:has(.status-pill) {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 0.6rem;
}

.grid-auto:has(.status-pill) .status-pill { padding: 0.6rem 0.4rem; text-align: center; }
.grid-auto:has(.status-pill) .status-pill__value { font-size: 1.1rem; }
.grid-auto:has(.status-pill) .status-pill__label { font-size: 0.68rem; margin-top: 0.15rem; }


/* ==========================================================================
   8. PAGE : CALENDRIER + MODAL MISSION
   ========================================================================== */

#calendar {
    --fc-border-color: rgba(245, 240, 225, 0.08);
    --fc-page-bg-color: var(--bg);
    --fc-neutral-bg-color: var(--card-alt);
    --fc-list-event-hover-bg-color: var(--card-2);
    --fc-today-bg-color: rgba(232, 184, 74, 0.08);
    --fc-now-indicator-color: var(--gold);
    --fc-event-border-color: transparent;

    background: var(--card-alt);
    padding: 0.75rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    color: var(--text);
    max-width: 100%;
    margin: 0 auto;
}

#calendar .fc-daygrid-day-frame { min-height: 65px; }

#calendar .fc-col-header-cell,
#calendar .fc-daygrid-day-number,
#calendar .fc-timegrid-slot-label,
#calendar .fc-list-day-text,
#calendar .fc-list-day-side-text { color: var(--text); }

#calendar .fc-day-today { background: rgba(232, 184, 74, 0.08) !important; }

#calendar .fc-button {
    background: var(--card-2) !important;
    border: 1px solid var(--border-soft) !important;
    color: var(--text) !important;
    box-shadow: none !important;
    text-transform: capitalize;
    padding: 4px 8px !important;
    font-size: 11px !important;
}

#calendar .fc-button:hover { background: var(--gold-soft) !important; color: var(--gold) !important; }
#calendar .fc-button-active { background: var(--gold) !important; color: var(--bg) !important; }
#calendar .fc-toolbar-title { color: var(--gold-strong); font-size: 1rem; }
#calendar a { color: var(--text); }

#calendar .fc-mission-event {
    margin-bottom: 2px !important;
}

#calendar .fc-mission-event .fc-event-main {
    padding: 2px 6px;
    border-radius: 5px;
    font-size: 10px;
    line-height: 1.4;
    text-align: center;
}

#calendar .fc-mission-event {
    margin-left: 35px !important;
    margin-right: 35px !important;
}
#calendar .fc-mission-event .fc-event-time { font-weight: 600; margin-right: 4px; }

#calendar .fc-mission-event.fc-status-pending .fc-event-main { background: rgba(232, 184, 74, 0.18); color: #F0C868; }
#calendar .fc-mission-event.fc-status-validated .fc-event-main,
#calendar .fc-mission-event.fc-status-completed .fc-event-main { background: rgba(45, 212, 191, 0.18); color: #7EE7D8; }
#calendar .fc-mission-event.fc-status-cancelled .fc-event-main { background: rgba(239, 68, 68, 0.18); color: #f87171; }
#calendar .fc-mission-event.fc-status-pending_modification .fc-event-main { background: rgba(249, 115, 22, 0.18); color: #fb923c; }

#calendar .fc-daygrid-more-link {
    background: rgba(232, 184, 74, 0.12);
    color: var(--gold);
    border-radius: 5px;
    padding: 2px 6px;
    font-size: 9px;
    font-weight: 500;
}

.filters {
    background: var(--card-alt);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    margin-bottom: 1rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    color: var(--text);
}

.filters select {
    padding: 0.5rem;
    border: 1px solid var(--border-soft);
    border-radius: 4px;
    background: #F5F0E1;
    color: #1e293b;
}

.filters__form { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }

.filters button {
    padding: 0.5rem 1rem;
    background: var(--gold);
    color: var(--bg);
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
}

.filters__reset {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #64748b;
    color: white;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
}

/* Modal détail mission */
.mission-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.mission-modal {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    max-width: 420px;
    width: 90%;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.mission-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #888;
}

.mission-modal h2 { margin: 0 0 16px; font-size: 20px; color: #1a1a1a; }
.mission-modal-row { margin-bottom: 8px; font-size: 14px; color: #1a1a1a; }


/* ==========================================================================
   9. PAGES MOBILES CLEANER (Missions + Historique)
   ========================================================================== */

.has-bottom-nav { padding-bottom: 70px; }

.mobile-header {
    background: #2c0e5c;
    color: white;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.mobile-header h1 { font-size: 1.4rem; }
.mobile-header .user-name { font-size: 0.975rem; color: #a7c4ec; }
.mobile-content { padding: 1rem; padding-bottom:120px; }

.mission-card {
    background: var(--card-alt);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-left: 5px solid #2563eb;
}

.mission-card.today { border-left-color: #059669; }

.mission-card .mission-date {
    font-size: 0.75rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.mission-card .mission-property { font-size: 1.1rem; font-weight: bold; color: var(--text); margin-bottom: 0.25rem; }
.mission-card .mission-service { color: var(--text-muted); font-size: 0.875rem; margin-bottom: 0.75rem; }
.mission-card .mission-time { font-size: 0.875rem; color: #2563eb; font-weight: bold; margin-bottom: 0.75rem; }

.btn-complete {
    width: 100%;
    padding: 0.875rem;
    background: #059669;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    font-weight: bold;
}

.btn-complete:hover { background: #047857; }

.empty-state .emoji { font-size: 3rem; margin-bottom: 1rem; }

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--card-alt);
    border-top: 1px solid var(--border-soft);
    display: none;  
    z-index: 100;
}

.bottom-nav a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.75rem 0.5rem;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.7rem;
    gap: 0.25rem;
}

.bottom-nav a.active { color: var(--gold); }
.bottom-nav a .icon { font-size: 1.4rem; }

.property-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 6px;
}

.mission-card--done { border-left-color: #059669; opacity: 0.8; }

.mission-status-done { text-align: center; color: #059669; font-weight: bold; margin-top: 0.5rem; }

.mission-comment { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 0.75rem; font-style: italic; }

.mission-status-pending { text-align: center; color: #d97706; font-size: 0.875rem; }

.mobile-header__title { display: flex; flex-direction: column; }

.mobile-notif-wrapper { position: relative; }

.mobile-notif-btn {
    position: relative;
    height: 36px;
    width: 36px;
    display: grid;
    place-items: center;
    background: var(--card-2);
    border: 1px solid var(--border-soft);
    border-radius: 999px;
    color: white;
    font-size: 15px;
    cursor: pointer;
}

.mobile-notif-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    height: 16px;
    min-width: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--gold);
    color: var(--bg);
    font-size: 9px;
    font-weight: 700;
    display: grid;
    place-items: center;
}

.mobile-notif-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 280px;
    max-height: 350px;
    overflow-y: auto;
    background: var(--card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    z-index: 200;
}

.mobile-notif-dropdown.is-open { display: block; }

.mobile-notif-empty { padding: 18px 14px; text-align: center; color: var(--text-dim); font-size: 13px; }

.mobile-notif-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 11px 14px;
    border-bottom: 1px solid var(--border-soft);
    text-decoration: none;
    color: var(--text);
}

.mobile-notif-item:last-child { border-bottom: none; }
.mobile-notif-item--unread { background: var(--gold-soft); }
.mobile-notif-message { font-size: 12.5px; line-height: 1.4; }
.mobile-notif-date { font-size: 10.5px; color: var(--text-dim); }

.missions-count-card {
    flex-wrap: wrap;
}

.missions-count-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.missions-count-card__progress {
    width: 100%;
    margin-top: 14px;
}

.missions-count-card__progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.missions-count-card__progress-label strong {
    color: var(--gold-strong);
    font-weight: 600;
}

.missions-count-card__progress-track {
    height: 8px;
    background: rgba(245, 240, 225, 0.08);
    border-radius: 999px;
    overflow: hidden;
}

.missions-count-card__progress-fill {
    height: 100%;
    background: var(--gold);
    border-radius: 999px;
    transition: width 0.3s ease;
}

/* -- Statut visuel (icône + couleur), remplace .mission-badge* -- */
.mission-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;
}

.mission-status i { font-size: 13px; }

.mission-status--done     { background: rgba(45, 212, 191, 0.18); color: var(--teal-accent); }
.mission-status--upcoming { background: var(--gold-soft); color: var(--gold); }
.mission-status--pending  { background: rgba(249, 115, 22, 0.18); color: #fb923c; }

/* -- Bouton "Terminer" : pilule icône + texte, touch-friendly -- */
.mission-row__complete-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: linear-gradient(135deg, #2DD4BF, #059669);
    color: #ffffff;
    border: none;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.2px;
    cursor: pointer;
    box-shadow: 0 8px 20px -8px rgba(5, 150, 105, 0.55);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.mission-row__complete-btn i {
    font-size: 15px;
}

.mission-row__complete-btn:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px -8px rgba(5, 150, 105, 0.65);
}
.mission-row__complete-btn:active {
    transform: translateY(0) scale(0.97);
    box-shadow: 0 4px 12px -6px rgba(5, 150, 105, 0.5);
}


/* ==========================================================================
   10. PAGE : DEMANDES
   ========================================================================== */

.property-dot--square { border-radius: 2px; width: 12px; height: 12px; }

.status-badge { display: inline-block; padding: 0.5rem 1rem; border-radius: 6px; font-size: 1.1rem; font-weight: bold; }

.status-badge--lg { }
.status-badge--sm { padding: 0.2rem 0.5rem; border-radius: 4px; font-size: 0.8rem; font-weight: normal; }

.status-badge--pending   { background: #fef3c7; color: #d97706; }
.status-badge--validated { background: #d1fae5; color: #059669; }
.status-badge--completed { background: #dbeafe; color: #2563eb; }
.status-badge--cancelled { background: #fee2e2; color: #dc2626; }
.status-badge--danger    { background: #fee2e2; color: #dc2626; }
.status-badge--warning   { background: #ffedd5; color: #ea580c; }
.status-badge--caution   { background: #fef3c7; color: #d97706; }
.status-badge--neutral   { background: #f1f5f9; color: #64748b; }
.status-badge--info      { background: #dbeafe; color: #2563eb; }
.status-badge--purple    { background: #f3e8ff; color: #7c3aed; }
.status-badge--success   { background: #d1fae5; color: #059669; }

.table-action-link{
    background:#4F46E5;
    color:#fff;
    border-radius:8px;
    padding:5px 5px 5px 5px;
    font-size:.78rem;
    font-weight:600;
}

.table-action-link:hover { filter: brightness(1.1); transform: translateY(-1px); }

.table-action-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:5px;

    padding:6px 12px;

    border:none;
    border-radius:999px;

    cursor:pointer;

    font-size:.75rem;
    font-weight:600;

    min-width:auto;
    margin:0;
}

.table-action-btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.table-action-btn--success { background: #f97316; color: white; }
.table-action-btn--danger{
    background:#DC2626;
    color:#fff;
    border-radius:8px;
    padding:5px 5px 5px 5px;
    font-size:.78rem;
    font-weight:600;
}

.inline-form { display: inline; }
.table-empty-cell { padding: 1rem; text-align: center; color: var(--text-dim); }

.u-mb-1 { margin-bottom: 1rem; }
.u-mt-1 { margin-top: 1rem; }

.requests-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.pending-value { color: var(--gold-strong); }

.request-summary {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 1.25rem 1.5rem;
    background: rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid var(--border-soft);
}

.request-summary__row { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: var(--text); }
.request-summary__row i { color: var(--gold); width: 16px; text-align: center; }


/* ==========================================================================
   11. PAGE : NOUVELLE DEMANDE
   ========================================================================== */

.btn-submit {
    margin-top: 1rem;
    padding: 0.75rem 2rem;
    background: var(--gold);
    color: var(--bg);
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
}

.btn-submit--success { background: #059669; }
.btn-cancel-link { margin-left: 1rem; color: var(--text-muted); }


/* ==========================================================================
   12. PAGE : VALIDER DEMANDE
   ========================================================================== */

.summary-text { margin-bottom: 1rem; color: var(--text-muted); }


/* ==========================================================================
   13-15. PRESTATIONS / MODIFIER / NOUVELLE PRESTATION
   Réutilisent .data-table, .btn-link, .table-action-link, .card,
   .btn-submit, .btn-cancel-link — aucune classe propre.
   ========================================================================== */


/* ==========================================================================
   16. PAGE : DEVIS (placeholder)
   ========================================================================== */

.example-wrapper { margin: 1em auto; max-width: 800px; width: 95%; font: 18px/1.5 sans-serif; }
.example-wrapper code { background: #F5F5F5; padding: 2px 6px; }


/* ==========================================================================
   17. PAGE : DÉTAIL DEVIS
   ========================================================================== */

.page-container--narrow { max-width: 768px; margin: 0 auto; }
.stack > * + * { margin-top: 1.5rem; }

.card-lg {
    background: var(--card-alt);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 1.25rem;
}

.devis-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.devis-header__date { font-size: 0.875rem; color: var(--text-muted); }
.devis-header__actions { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; }

.status-pill-sm { margin-left: 0.75rem; padding: 0.25rem 0.75rem; border-radius: 9999px; font-size: 0.75rem; font-weight: 600; }
.status-pill-sm--brouillon { background: #fef9c3; color: #854d0e; }
.status-pill-sm--envoye    { background: #dbeafe; color: #1e40af; }
.status-pill-sm--accepte   { background: #dcfce7; color: #15803d; }
.status-pill-sm--refuse    { background: #fee2e2; color: #b91c1c; }
.status-pill-sm--default   { background: #f3f4f6; color: #4b5563; }

.alert-pill { margin-left: 0.75rem; padding: 0.25rem 0.75rem; border-radius: 9999px; font-size: 0.75rem; font-weight: 600; background: #ffedd5; color: #c2410c; }

.btn-action {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.15s;
    display: inline-block;
}

.btn-action--neutral  { background: #f3f4f6; color: #374151; }
.btn-action--neutral:hover  { background: #e5e7eb; }
.btn-action--confirm  { background: #15803d; color: white; }
.btn-action--confirm:hover  { background: #166534; }
.btn-action--success  { background: #16a34a; color: white; }
.btn-action--success:hover  { background: #15803d; }
.btn-action--danger   { background: #ef4444; color: white; }
.btn-action--danger:hover   { background: #dc2626; }
.btn-action--disabled { background: #f3f4f6; color: #6b7280; cursor: default; }

.devis-table-wrapper { background: var(--card-alt); border-radius: 12px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); overflow: hidden; }
.devis-table { width: 100%; font-size: 0.875rem; border-collapse: collapse; }
.devis-table thead { background: #15803d; color: white; }
.devis-table th { padding: 0.75rem 1rem; text-align: left; }
.devis-table .th--center { text-align: center; }
.devis-table .th--right  { text-align: right; }
.devis-table td { padding: 0.75rem 1rem; }
.devis-table tbody tr { border-bottom: 1px solid #f3f4f6; }
.devis-table tbody tr:hover { background: #f9fafb; }
.devis-table .td--center { text-align: center; }
.devis-table .td--right  { text-align: right; }
.devis-table .td--bold   { font-weight: 500; }

.devis-line__title { font-weight: 500; }
.devis-line__desc { font-size: 0.75rem; color: var(--text-dim); }

.devis-table tfoot { background: #f9fafb; }
.devis-total-label { text-align: right; color: var(--text-muted); }
.devis-total-label--discount { text-align: right; color: #ef4444; }
.devis-total-value--discount { text-align: right; color: #ef4444; }
.devis-grand-total-label { text-align: right; font-weight: bold; color: #1f2937; }
.devis-grand-total-value { text-align: right; font-weight: bold; color: #15803d; font-size: 1.125rem; }

.notes-block__title { font-size: 0.875rem; font-weight: 500; color: var(--text); margin-bottom: 0.25rem; }
.notes-block__text { color: var(--text-muted); font-size: 0.875rem; }


/* ==========================================================================
   18. PAGE : NOUVEAU DEVIS
   ⚠️ Le JS dépend de .tarif-row (closest) — ne pas renommer.
   ========================================================================== */

.page-container { max-width: 1024px; margin: 0 auto; }

.lead-banner {
    background: var(--card-alt);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lead-banner__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #dcfce7;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #15803d;
    font-weight: bold;
    font-size: 1.125rem;
    flex-shrink: 0;
}

.lead-banner__name { font-weight: 600; color: var(--text); }
.lead-banner__meta { font-size: 0.875rem; color: var(--text-muted); }

.ai-suggest-bar { margin-bottom: 1rem; text-align: right; }
.btn-ai { padding: 0.75rem 1.5rem; background: #7c3aed; color: white; border: none; border-radius: 8px; cursor: pointer; }

.ai-banner {
    margin-bottom: 1rem;
    padding: 1rem 1.25rem;
    background: #ede9fe;
    border-left: 4px solid #7c3aed;
    border-radius: 8px;
    color: #4c1d95;
    font-size: 0.9rem;
}

.form-section { background: var(--card-alt); border-radius: 12px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); padding: 1.5rem; }
.form-section__title { font-size: 1.125rem; font-weight: 600; color: var(--text); margin-bottom: 1rem; }
.form-stack { display: flex; flex-direction: column; gap: 1.5rem; }

.tarif-category { margin-bottom: 1.5rem; }
.tarif-category__title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.25rem;
}

.tarif-list { display: flex; flex-direction: column; gap: 0.5rem; }

.tarif-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 8px;
    border: 1px solid var(--border-soft);
    transition: border-color 0.15s, background 0.15s;
}

.tarif-row:hover { border-color: var(--gold); background: var(--card-2); }
.tarif-row__checkbox { width: 1rem; height: 1rem; accent-color: var(--gold); border-radius: 4px; }
.tarif-row__label { flex: 1; cursor: pointer; }
.tarif-row__name { font-weight: 500; color: var(--text); }
.tarif-row__desc { font-size: 0.75rem; color: var(--text-dim); display: block; }
.tarif-row__ai-badge { font-size: 0.7rem; background: #7c3aed; color: white; padding: 2px 7px; border-radius: 9999px; }
.tarif-row__on-quote { font-size: 0.75rem; color: #f97316; font-weight: 500; }
.tarif-row__price { color: var(--gold-strong); font-weight: 600; }
.tarif-row__unit { font-size: 0.75rem; color: var(--text-dim); }

.tarif-row__qty-input {
    width: 3.5rem;
    text-align: center;
    border: 1px solid var(--border-soft);
    background: #F5F0E1;
    color: #1e293b;
    border-radius: 4px;
    padding: 0.25rem;
    font-size: 0.875rem;
}

.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 640px) { .form-grid-2 { grid-template-columns: 1fr; } }

.form-field__label { display: block; font-size: 0.875rem; font-weight: 500; color: var(--text); margin-bottom: 0.25rem; }
.form-field__input {
    width: 100%;
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    background: #F5F0E1;
    color: #1e293b;
}

.total-banner {
    background: #15803d;
    color: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.total-banner__label { font-size: 0.875rem; opacity: 0.8; }
.total-banner__value { font-size: 1.875rem; font-weight: bold; }

.btn-create-devis {
    background: white;
    color: #15803d;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s;
}

.btn-create-devis:hover { background: #f0fdf4; }


/* ==========================================================================
   19. COMPOSANTS PARTAGÉS — Fiche prospect / Timeline / Email-SMS / Form card
   ========================================================================== */

.inline { display: inline; }

.mb-sm  { margin-bottom: 0.5rem; }
.mb-md  { margin-bottom: 1rem; }
.mb-lg  { margin-bottom: 1.5rem; }
.mb-xl  { margin-bottom: 2rem; }
.mt-md  { margin-top: 1rem; }
.ml-sm  { margin-left: 0.5rem; }
.mr-md  { margin-right: 1rem; }
.fw-normal { font-weight: normal; }

.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.card-header--align-start { align-items: flex-start; }
.card-header--spaced      { margin-bottom: 1.5rem; }

.card-title { color: var(--text); }
.card-title--spaced { margin-bottom: 1rem; }

.card-section--divider { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid #e2e8f0; }
.card--accent { border-left: 5px solid; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; }

.progress-bar { margin-top: 0.5rem; background: #e2e8f0; border-radius: 4px; height: 6px; width: 120px; margin-left: auto; }
.progress-bar__fill { height: 6px; border-radius: 4px; }
.progress-bar__fill--danger  { background: #dc2626; }
.progress-bar__fill--warning { background: #ea580c; }
.progress-bar__fill--caution { background: #d97706; }
.progress-bar__fill--neutral { background: #94a3b8; }

.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field-label { font-size: 0.8rem; color: var(--text-dim); text-transform: uppercase; margin-bottom: 0; }

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    font-size: 1rem;
    color: white;
}

.btn--block { width: 100%; }
.btn--lg    { padding: 0.75rem 2rem; }
.btn--md    { padding: 0.75rem 1.5rem; border-radius: 4px; text-decoration: none; }

.btn--primary   { background: var(--gold); color: var(--bg); font-weight: 600; }
.btn--secondary { background: #f1f5f9; color: #475569; }
.btn--success   { background: #059669; }
.btn--accent    { background: #7c3aed; }
.btn--warning   { background: #d97706; }
.btn--confirm   { background: #16a34a; }
.btn--info      { background: #0ea5e9; }

.action-list { display: flex; flex-direction: column; gap: 0.5rem; }

.follow-up-notice { margin-top: 1rem; font-size: 0.875rem; color: var(--text-muted); }
.follow-up-notice--overdue { color: #dc2626; }

.timeline { position: relative; padding-left: 2rem; }
.timeline__line { position: absolute; left: 0.75rem; top: 0; bottom: 0; width: 2px; background: #e2e8f0; }
.timeline__item { position: relative; margin-bottom: 1.5rem; padding-left: 1.5rem; }

.timeline__item--call    { --tl-color: #2563eb; --tl-bg: #dbeafe; }
.timeline__item--email   { --tl-color: #059669; --tl-bg: #d1fae5; }
.timeline__item--sms     { --tl-color: #7c3aed; --tl-bg: #f3e8ff; }
.timeline__item--quote   { --tl-color: #d97706; --tl-bg: #fef3c7; }
.timeline__item--meeting { --tl-color: #dc2626; --tl-bg: #fee2e2; }
.timeline__item--other   { --tl-color: #64748b; --tl-bg: #f1f5f9; }

.timeline__dot { position: absolute; left: -0.35rem; top: 0.25rem; width: 1rem; height: 1rem; border-radius: 50%; background: var(--tl-bg); border: 2px solid var(--tl-color); }
.timeline__content { background: #f8fafc; border-radius: 6px; padding: 1rem; border-left: 3px solid var(--tl-color); }
.timeline__header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 0.5rem; }
.timeline__label { font-weight: 600; color: var(--tl-color); }
.timeline__meta { display: flex; align-items: center; gap: 1rem; }
.timeline__date { font-size: 0.8rem; color: var(--text-dim); }
.timeline__note { color: var(--text-muted); font-size: 0.875rem; margin: 0; }
.timeline__followup { margin-top: 0.5rem; font-size: 0.8rem; color: #d97706; }

.icon-btn { background: none; border: none; cursor: pointer; font-size: 0.8rem; }
.icon-btn--danger { color: #dc2626; }

.empty-state { color: #94a3b8; text-align: center; padding: 2rem; }
.empty-state--card { background: var(--card-alt); padding: 2rem; border-radius: 8px; text-align: center; color: var(--text-dim); }

.text-link {
    display: inline-block;
    min-width: 88px;
    text-align: center;
    background: #3b82f6;
    color: white;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    margin-right: 0.5rem;
    text-decoration: none;
    transition: filter 0.15s, transform 0.15s;
}

.text-link:hover { filter: brightness(1.1); transform: translateY(-1px); }
.text-link--success { background: #f97316; color: white; }
.text-link--success:hover { filter: brightness(1.1); transform: translateY(-1px); }

.text-link--warning {
    display: inline-block;
    min-width: 88px;
    text-align: center;
    background: #f97316;
    color: white;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    margin-right: 0.5rem;
    text-decoration: none;
    transition: filter 0.15s, transform 0.15s;
}

.text-link--warning:hover { filter: brightness(1.1); transform: translateY(-1px); }

.text-secondary { color: #64748b; }
.text-secondary--spaced { margin-left: 1rem; }
.text-secondary--sm {
    font-size: 0.875rem;
    color: #FFD6DE;
}

.alert { padding: 1rem; border-radius: 6px; margin-bottom: 1.5rem; }
.alert--warning { background: #fef3c7; border: 1px solid #fcd34d; }
.alert--danger  { background: #fee2e2; color: #dc2626; }
.alert--success { background: #d1fae5; border: 1px solid #6ee7b7; }
.alert--mb-sm   { margin-bottom: 1rem; }

.ai-flash-banner {
    background: #e0f2fe;
    border: 1px solid #7dd3fc;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    color: #0c4a6e;
}

.preview-box { background: #f8fafc; padding: 1rem; border-radius: 6px; margin-bottom: 1.5rem; }
.preview-box--mb-sm { margin-bottom: 1rem; }
.preview-box hr { margin: 0.75rem 0; border-color: #e2e8f0; }
.preview-box__body { white-space: pre-line; }
.preview-box__body--sm { font-size: 0.875rem; }

.form-group { margin-bottom: 1rem; }
.form-label { display: block; margin-bottom: 0.5rem; font-weight: 500; color: var(--text); }
.form-control { width: 100%; padding: 0.625rem; border: 1px solid var(--border-soft); border-radius: 6px; background: #F5F0E1; color: #1e293b; }
.form-textarea { width: 100%; padding: 0.75rem; border: 1px solid var(--border-soft); border-radius: 6px; font-size: 0.875rem; color: #1e293b; background: #F5F0E1; resize: vertical; }
.form-actions { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }

.recipient-list { margin-top: 0.5rem; padding-left: 1.5rem; }
.recipient-list__item { font-size: 0.875rem; color: var(--text-muted); }

.checkbox-list { background: #f8fafc; border: 1px solid #ddd; border-radius: 6px; max-height: 300px; overflow-y: auto; padding: 1rem; color: #1e293b; }
.checkbox-list__item { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem; cursor: pointer; }
.checkbox-list__meta { color: var(--text-muted); font-size: 0.8rem; }

.char-counter { text-align: right; font-size: 0.8rem; color: var(--text-muted); }

.color-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; }
.color-swatch { display: inline-block; width: 24px; height: 24px; border-radius: 4px; }

.text-btn {
    display: inline-block;
    min-width: 88px;
    text-align: center;
    background: #3b82f6;
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    margin-right: 0.5rem;
    transition: filter 0.15s, transform 0.15s;
}

.text-btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.text-btn--danger { background: #ef4444; color: white; margin-right: 0; }

/* Carte de formulaire générique (utilisateurs, logements...) */
.form-card {
    background: var(--card-alt);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    max-width: 640px;
}

.form-card__head { display: flex; align-items: center; gap: 14px; padding: 1.5rem; border-bottom: 1px solid var(--border-soft); }
.form-card__icon {
    height: 44px;
    width: 44px;
    flex-shrink: 0;
    border-radius: 12px;
    background: var(--gold-soft);
    color: var(--gold);
    display: grid;
    place-items: center;
    font-size: 18px;
}

.form-card__head h2 { margin: 0; font-size: 1.1rem; color: var(--text); }
.form-card__head p { margin: 2px 0 0; font-size: 0.8rem; color: var(--text-dim); }
.form-card__body { padding: 1.5rem; display: flex; flex-direction: column; gap: 0.25rem; }
.form-card__actions { display: flex; align-items: center; gap: 1rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border-soft); }
.form-card .btn--primary { display: inline-flex; align-items: center; gap: 8px; }


/* ==========================================================================
   20. PAGE : FICHE PROSPECT (lead_show)
   ========================================================================== */

.lead-detail__grid { display: grid; grid-template-columns: 2fr 1fr; gap: 1.5rem; }
.lead-detail__score { text-align: right; }
.lead-detail__sidebar { }
.lead-detail__timeline { grid-column: 1 / -1; }


/* ==========================================================================
   21-22. CONFIRMATION / FORMULAIRES ENVOI EMAIL-SMS
   Couvertes par les composants partagés (.alert, .preview-box,
   .recipient-list, .form-group, .checkbox-list, .char-counter, .btn).
   ========================================================================== */


/* ==========================================================================
   23. PAGES : PROPRIÉTAIRE / LOGEMENTS / UTILISATEURS
   ========================================================================== */

.users-card { padding: 0; overflow: hidden; }
.users-card__head { display: flex; align-items: center; gap: 10px; padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border-soft); }
.users-card__head h2 { margin: 0; font-size: 1.1rem; color: var(--gold-strong); }
.users-count { background: var(--gold-soft); color: var(--gold); font-size: 0.75rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; }

.users-table { margin: 0; box-shadow: none; border-radius: 0; }
.users-table thead tr { background: var(--card-2); }
.users-table tbody tr { transition: background 0.15s; }
.users-table tbody tr:hover { background: var(--card-2); }

.user-cell { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.user-cell .color-swatch { width: 20px; height: 20px; flex-shrink: 0; }

.user-avatar {
    height: 32px;
    width: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), #B8862E);
    color: var(--bg);
    font-size: 11px;
    font-weight: 700;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.row-actions { display: flex; gap: 8px; align-items: center; }

.action-btn {
    display: grid;
    place-items: center;
    height: 34px;
    width: 34px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-size: 13px;
    text-decoration: none;
    transition: filter 0.15s, transform 0.15s;
}

.action-btn:hover { filter: brightness(1.15); transform: translateY(-1px); }
.action-btn--edit     { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.action-btn--enable   { background: rgba(34, 197, 94, 0.15); color: #4ade80; }
.action-btn--disable  { background: rgba(249, 115, 22, 0.15); color: #fb923c; }
.action-btn--delete   { background: rgba(239, 68, 68, 0.15); color: #f87171; }


/* ==========================================================================
   24. PAGES : PROSPECTS — Kanban / Import / Formulaires
   ⚠️ Le JS Kanban dépend de .kanban-card, .kanban-card--dragging,
   .kanban-column, .kanban-column--drag-over — ne pas renommer.
   ========================================================================== */

.back-link { display: inline-block; margin-bottom: 1rem; color: var(--text-muted); text-decoration: none; font-size: 0.875rem; }
.back-link:hover { color: var(--gold); }

.back-link--pill {
    display: inline-block;
    margin-bottom: 1.5rem;
    padding: 0.5rem 1rem;
    background: var(--card-alt);
    border-radius: 9999px;
    box-shadow: var(--shadow-soft);
    color: var(--text);
    text-decoration: none;
    font-size: 0.875rem;
}

.back-link--pill:hover { background: var(--card-2); }

.import-panel { max-width: 640px; }
.import-panel__intro { color: var(--text-muted); margin-bottom: 1.5rem; }

.info-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    color: #475569;
    line-height: 1.6;
}

.btn-action--import { background: #15803d; color: white; }
.btn-action--import:hover { background: #166534; }

.kanban-board {
    display: grid;
    grid-template-columns: repeat(7, minmax(220px, 1fr));
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 1rem;
}

@media (max-width: 1280px) {
    .kanban-board { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
}

.kanban-column {
    background: var(--card-alt);
    border-radius: 8px;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    min-height: 200px;
    transition: background 0.15s;
}

.kanban-column--drag-over { background: var(--card-2); }

.kanban-column__header { display: flex; justify-content: space-between; align-items: center; padding: 0.5rem 0.25rem; margin-bottom: 0.5rem; }
.kanban-column__label { font-size: 0.8rem; font-weight: 600; color: var(--text); }
.kanban-column__count { background: var(--gold-soft); border-radius: 9999px; padding: 0.1rem 0.5rem; font-size: 0.75rem; color: var(--gold); }

.kanban-cards { display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }

.kanban-card {
    background: var(--card-alt);
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
    cursor: grab;
    transition: box-shadow 0.15s, opacity 0.15s;
}

.kanban-card--dragging { opacity: 0.5; }
.kanban-card__link { display: block; padding: 0.75rem; text-decoration: none; color: inherit; }
.kanban-card__title { font-weight: 600; font-size: 0.875rem; color: var(--text); margin-bottom: 0.25rem; }
.kanban-card__city { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.kanban-card__footer { display: flex; justify-content: space-between; align-items: center; }
.kanban-card__category { font-size: 0.7rem; color: var(--text-dim); }

.kanban-card__score { display: inline-block; padding: 0.1rem 0.5rem; border-radius: 9999px; font-size: 0.75rem; font-weight: 600; }
.kanban-card__score--critical { background: #fee2e2; color: #dc2626; }
.kanban-card__score--high     { background: #ffedd5; color: #ea580c; }
.kanban-card__score--medium   { background: #fef3c7; color: #d97706; }
.kanban-card__score--low      { background: #f1f5f9; color: #64748b; }


/* ==========================================================================
   25. FORMULAIRES NATIFS SYMFONY
   ========================================================================== */

form label { display: block; margin-bottom: 0.4rem; color: var(--text); font-weight: 500; font-size: 0.875rem; }

form input[type="text"],
form input[type="email"],
form input[type="password"],
form input[type="tel"],
form input[type="number"],
form input[type="date"],
form input[type="time"],
form input[type="color"],
form select,
form textarea {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--border-soft);
    border-radius: 6px;
    font-size: 0.875rem;
    color: #1e293b;
    background: #F5F0E1;
    transition: border-color 0.2s;
}

form input:focus,
form select:focus,
form textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }

form .form-error,
form ul.form-error { color: #dc2626; font-size: 0.8rem; margin-top: 0.25rem; list-style: none; padding: 0; }

form .is-invalid,
form input.is-invalid,
form select.is-invalid { border-color: #dc2626; background: #fff5f5; }

form .has-error input,
form .has-error select,
form .has-error textarea { border-color: #dc2626; }

form .invalid-feedback { color: #dc2626; font-size: 0.8rem; margin-top: 0.25rem; }

#property_color { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 4px; }
#property_color > div { display: flex; flex-direction: column; align-items: center; gap: 4px; }

#property_color input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    background-color: var(--swatch-color, #888);
    transition: transform 0.15s, box-shadow 0.15s;
}

#property_color input[type="radio"]:hover { transform: scale(1.08); }
#property_color input[type="radio"]:checked { border-color: var(--card-alt); box-shadow: 0 0 0 2px var(--gold); }
#property_color label { font-size: 10px; color: var(--text-dim); text-align: center; }


/* ==========================================================================
   26. PAGE : CONNEXION
   ========================================================================== */

.login-page { display: flex; justify-content: center; align-items: center; min-height: 100vh; }

.login-box { background: var(--card-alt); padding: 2rem; border-radius: 8px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); width: 100%; max-width: 400px; }
.login-box h1 { text-align: center; margin-bottom: 1.5rem; color: var(--gold); font-family: 'Cormorant Garamond', serif; font-size: 1.8rem; }
.login-box label { display: block; margin-bottom: 0.5rem; color: var(--text); }
.login-box input { width: 100%; padding: 0.75rem; border: 1px solid var(--border-soft); border-radius: 4px; font-size: 1rem; background: #F5F0E1; color: #1e293b; }
.login-box button {
    width: 100%;
    padding: 0.75rem;
    background: var(--gold);
    color: var(--bg);
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 1rem;
}

.login-box button:hover { filter: brightness(1.08); }
.error { background: #fee2e2; color: #dc2626; padding: 0.75rem; border-radius: 4px; margin-bottom: 1rem; }


/* ==========================================================================
   27. PAGE : DASHBOARD ADMIN ENRICHI
   ========================================================================== */

.dash-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-bottom: 0.8rem; }

.dash-kpi {
    background: var(--card-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 10px 16px;
    box-shadow: var(--shadow-soft);
    transition: border-color 0.2s, transform 0.2s;
}

.dash-kpi:hover { border-color: rgba(232, 184, 74, 0.45); transform: translateY(-2px); }

.dash-kpi-icon { height: 30px; width: 30px; border-radius: 9px; display: grid; place-items: center; margin-bottom: 6px; font-size: 13px; }
.dash-kpi-icon--gold   { background: var(--gold-soft); color: var(--gold); }
.dash-kpi-icon--teal   { background: rgba(45, 212, 191, 0.15); color: var(--teal-accent); }
.dash-kpi-icon--blue   { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.dash-kpi-icon--purple { background: rgba(124, 58, 237, 0.15); color: #a78bfa; }

.dash-kpi-value { font-size: 20px; font-weight: 700; color: var(--text); letter-spacing: -0.5px; }
.dash-kpi-label { font-size: 11px; color: var(--text-muted); margin-top: 1px; }
.dash-kpi-trend { font-size: 9px; color: var(--gold); margin-top: 3px; }
.dash-kpi-trend--down { color: #f87171; }

.dash-row { display: grid; gap: 12px; margin-bottom: 10px; }
.dash-row--3-2 { grid-template-columns: 1fr; }
.dash-row--3   { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 1200px) {
    .dash-row--3-2, .dash-row--3 { grid-template-columns: 1fr; }
}

.dash-row .card { padding: 1rem; margin-bottom: 0; }

.dash-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.dash-card-head h3 { font-size: 15px; font-weight: 600; color: var(--text); margin: 0; }
.dash-card-head h3 .dim { color: var(--text-dim); font-weight: 400; }

.dash-link { font-size: 12px; color: var(--gold); text-decoration: none; }
.dash-link:hover { text-decoration: underline; }

.dash-cal-nav { display: flex; align-items: center; gap: 6px; }
.dash-cal-nav button {
    height: 30px;
    width: 30px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    color: var(--text-muted);
    background: none;
    cursor: pointer;
}

.dash-cal-nav button:hover { background: var(--card-2); }
.dash-cal-nav .dash-cal-today { width: auto; padding: 0 12px; font-size: 11px; background: var(--gold-soft); color: var(--gold); border-color: transparent; font-weight: 500; }

.dash-cal-days { display: grid; grid-template-columns: 44px repeat(7, 1fr); gap: 4px; text-align: center; }
.dash-cal-day { padding: 2px 0; }
.dash-cal-day .dn { font-size: 10px; letter-spacing: 1.5px; color: var(--text-dim); }
.dash-cal-day .num { margin: 4px auto 0; height: 22px; width: 22px; display: grid; place-items: center; border-radius: 50%; font-size: 11px; color: var(--text); }
.dash-cal-day.active .num { background: var(--gold); color: var(--bg); font-weight: 600; }

.dash-cal-grid {
    position: relative;
    margin-top: 6px;
    height: 250px;
    border-radius: 12px;
    border: 1px solid var(--border-soft);
    background: rgba(0, 0, 0, 0.15);
    overflow: hidden;
    
}

.dash-hour-line { position: absolute; left: 0; right: 0; display: flex; align-items: center; }
.dash-hour-line .h { width: 44px; font-size: 10px; color: var(--text-dim); padding-left: 10px; }
.dash-hour-line .l { flex: 1; border-top: 1px solid var(--border-soft); }

.dash-cal-cols {
    position: absolute;
    inset: 0;
    padding-left: 36px;
    padding-right: 2px;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}
.dash-cal-col { position: relative; }

.dash-event { position: absolute; left:2px; right:2px; text-align: center; padding: 5px 8px; border-radius: 6px; font-size: 10px; line-height: 1.3; border: 1px solid; overflow: hidden; box-sizing: border-box; ;}
.dash-event .t { font-weight: 600; }
.dash-event .p { opacity: 0.75; font-size: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.dash-event--compact { display: flex; align-items: center; justify-content: center; padding: 4px 2px; }
.dash-event--compact .t { font-size: 9px; font-weight: 700; }

.dash-event--stacked {
    height: auto;
    min-height: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3px 8px;
}
.dash-event--stacked .t { font-size: 10px; }
.dash-event--stacked .p {
    font-size: 9px;
    opacity: 0.75;
    margin-top: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dash-event--stacked .t {
    font-size: 9.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dash-event.gold { background: rgba(232, 184, 74, 0.2); border-color: rgba(232, 184, 74, 0.45); color: var(--gold-strong); }

.dash-event.teal { background: rgba(45, 212, 191, 0.2); border-color: rgba(45, 212, 191, 0.45); color: var(--teal-accent); }

.dash-list { list-style: none; margin: 0; padding: 0; }

.dash-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 8px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-soft);
    margin-bottom: 4px;
}

.dash-list-item:last-child { margin-bottom: 0; }

.dash-li-icon { height: 26px; width: 26px; border-radius: 10px; background: var(--gold-soft); color: var(--gold); display: grid; place-items: center; flex-shrink: 0; font-size: 11px; }
.dash-li-body { flex: 1; min-width: 0; }
.dash-li-title { font-size: 12px; font-weight: 500; color: var(--text); }
.dash-li-sub { font-size: 10px; color: var(--text-dim); display: flex; align-items: center; gap: 4px; margin-top: 2px; }
.dash-li-time { font-size: 10px; color: var(--text-dim); white-space: nowrap; }

.dash-btn-validate { padding: 7px 14px; background: var(--gold); color: var(--bg); border: none; border-radius: 8px; font-size: 11px; font-weight: 600; cursor: pointer; transition: filter 0.15s; }
.dash-btn-validate:hover { filter: brightness(1.08); }

.dash-row-item { display: flex; align-items: center; gap: 12px; padding: 4px 0; }
.dash-row-item + .dash-row-item { border-top: 1px solid var(--border-soft); }

.dash-ri-avatar {
    height: 26px;
    width: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(232, 184, 74, 0.4), rgba(232, 184, 74, 0.12));
    color: var(--text);
    font-size: 9px;
    font-weight: 600;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.dash-ri-body { flex: 1; min-width: 0; }
.dash-ri-line1 { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dash-ri-name { font-size: 12px; font-weight: 500; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-ri-time { font-size: 10px; color: var(--text-dim); white-space: nowrap; }
.dash-ri-sub { font-size: 10px; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.dash-pill { padding: 4px 9px; border-radius: 6px; font-size: 10px; font-weight: 500; white-space: nowrap; }
.dash-pill.gold  { background: var(--gold-soft); color: var(--gold); }
.dash-pill.muted { background: rgba(245, 240, 225, 0.08); color: var(--text-muted); }

.dash-unread { height: 20px; min-width: 20px; background: var(--gold); color: var(--bg); border-radius: 999px; font-size: 10px; font-weight: 700; display: grid; place-items: center; flex-shrink: 0; }

.dash-timeline { position: relative; padding-left: 6px; list-style: none; margin: 0; }
.dash-timeline::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 1px; background: var(--border-soft); }

.dash-tl-item { position: relative; padding: 4px 0 16px 22px; }
.dash-tl-item:last-child { padding-bottom: 0; }
.dash-tl-item::before { content: ""; position: absolute; left: 0; top: 7px; height: 12px; width: 12px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px var(--card-alt); }

.dash-tl-title { font-size: 13px; font-weight: 500; color: var(--text); }
.dash-tl-desc { font-size: 11px; color: var(--text-dim); margin-top: 2px; }
.dash-tl-time { font-size: 10px; color: var(--text-dim); opacity: 0.7; margin-top: 2px; }

/* Statuts des demandes + Accès rapides, en bas du dashboard */
.dash-row--legacy { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

@media (max-width: 1024px) {
    .dash-row--legacy { grid-template-columns: 1fr; }
}

.dash-row--legacy .card { margin-bottom: 0; }
.dash-row--legacy .grid-auto { margin-bottom: 0; gap: 0.75rem; }
.dash-row--legacy .quick-links { gap: 0.6rem; }
.dash-row--legacy .btn-quick { padding: 0.6rem 1rem; font-size: 0.85rem; }

.card-quicklinks { padding: 0.5rem 0.8rem; margin-bottom: 0.75rem; }
.card-quicklinks .section-title { margin-bottom: 0.6rem; font-size: 0.8rem; }
.card-quicklinks .quick-links { gap: 0.5rem; }
.card-quicklinks .btn-quick { padding: 0.5rem 0.75rem; font-size: 0.8rem; }


/* ==========================================================================
   28. PAGE : PROSPECTS — Légende + Pagination
   ========================================================================== */

.legend-wrapper { position: relative; display: inline-block; }

.legend-trigger {
    padding: 0.5rem 1rem;
    background: var(--card-2);
    color: var(--text);
    border: 1px solid var(--border-soft);
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: background 0.15s, border-color 0.15s;
}

.legend-trigger:hover { background: var(--gold-soft); border-color: var(--gold); color: var(--gold); }

.legend-panel {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 320px;
    max-height: 420px;
    overflow-y: auto;
    background: var(--card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    padding: 1.25rem;
    z-index: 200;
    color: var(--text);
}

.legend-panel.is-open { display: block; animation: legendUnfold 0.2s ease; }

@keyframes legendUnfold {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.legend-panel__title { font-size: 0.875rem; font-weight: 700; color: var(--gold-strong); margin: 1rem 0 0.5rem; }
.legend-panel__title--intro { margin-top: 0; }
.legend-panel__intro { font-size: 0.8rem; color: var(--text-muted); margin: 0 0 0.75rem; }
.legend-panel__row { font-size: 0.8rem; color: var(--text); padding: 0.35rem 0; border-bottom: 1px solid var(--border-soft); }
.legend-panel__row--gap { margin-bottom: 0.5rem; border-bottom: none; }
.legend-panel__list { font-size: 0.78rem; color: var(--text-muted); line-height: 1.7; }

.legend-panel__close {
    display: block;
    width: 100%;
    margin-top: 1rem;
    padding: 0.5rem;
    background: var(--card-2);
    color: var(--text-muted);
    border: 1px solid var(--border-soft);
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
}

.legend-panel__close:hover { background: var(--gold-soft); color: var(--gold); }

.pagination { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }

.pagination__link,
.pagination__page {
    display: inline-block;
    padding: 0.5rem 0.9rem;
    border-radius: 6px;
    background: var(--card-alt);
    color: var(--text);
    text-decoration: none;
    font-size: 0.85rem;
    border: 1px solid var(--border-soft);
    transition: background 0.15s, border-color 0.15s;
}

.pagination__link:hover,
.pagination__page:hover { border-color: var(--gold); color: var(--gold); }

.pagination__page--active { background: var(--gold); color: var(--bg); border-color: var(--gold); font-weight: 600; }
.pagination__total { margin-left: auto; font-size: 0.8rem; color: var(--text-dim); }

/* ====== PHOSPHOR ICONS ====== */

.ph-fill,
.ph {
    font-size: 20px;
    vertical-align: middle;
}

.mobile-notif-btn i{
    font-size:24px;
    color:#4F46E5;
    transition:.25s;
}

.mobile-notif-btn:hover i{
    transform:scale(1.15);
}

.next-mission-card i{
    color:#4F46E5;
}

.mission-row__complete-btn{
    width:42px;
    height:42px;
    border:none;
    border-radius:50%;
    background:#4F46E5;
    color:white;
    display:flex;
    align-items:center;
    justify-content:center;
    transition:.25s;
    cursor:pointer;
}

.mission-row__complete-btn:hover{
    transform:scale(1.08);
    background:#4338CA;
}

.mission-row__complete-btn i{
    font-size:22px;
}

.next-mission-card__cta i{
    margin-right:8px;
}

.mobile-header i{
    transition:.25s;
}

.mobile-header i:hover{
    transform:rotate(10deg) scale(1.15);
}

.bottom-nav a.active i{
    color:#4DFF88;
    text-shadow:
        0 0 6px rgba(77,255,136,.7),
        0 0 14px rgba(77,255,136,.6),
        0 0 28px rgba(77,255,136,.4);
}

.bottom-nav i{
    font-size:26px;
    margin-bottom:4px;
}


.owner-hero {
    margin-bottom: 1.25rem;
}

.owner-hero__title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gold-strong);
    margin: 0 0 4px;
}

.owner-hero__subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

.owner-kpis {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 1.25rem;
}

.owner-kpi {
    background: var(--card-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 14px 10px;
    text-align: center;
    box-shadow: var(--shadow-soft);
}

.owner-kpi__icon {
    height: 34px;
    width: 34px;
    margin: 0 auto 8px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-size: 14px;
}

.owner-kpi__icon--gold { background: var(--gold-soft); color: var(--gold); }
.owner-kpi__icon--teal { background: rgba(45, 212, 191, 0.15); color: var(--teal-accent); }
.owner-kpi__icon--blue { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }

.owner-kpi__value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
}

.owner-kpi__label {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.owner-dashboard .mission-row__time {
    width: 54px;
    font-size: 0.72rem;
    line-height: 1.35;
}

.owner-property-card {
    transition: transform 0.15s;
}

.owner-property-card:hover {
    transform: translateY(-2px);
}

.requests-actions{
    display:flex;
    gap:.5rem;
    flex-wrap:wrap;
    align-items:center;
}

.requests-actions .table-action-link,
.requests-actions .table-action-btn{
    margin-right:0;
}

.form-control,
input[type="date"],
input[type="time"],
select,
textarea{
    width:100%;
    box-sizing:border-box;
}


.mission-row{
    display:flex;
    align-items:flex-start;
    gap:14px;
    background:var(--card-alt);
    border-radius:12px;
    padding:14px 16px;
    border-left:4px solid var(--mission-color);
}

.mission-row__time{
    width:48px;
    flex-shrink:0;
    text-align:left;
    font-weight:700;
    color:var(--gold-strong);
    line-height:1.35;
}

.mission-row__main{
    flex:1;
    min-width:0;
    display:flex;
    flex-direction:column;
}

.mission-row__property{
    display:flex;
    align-items:center;
    gap:6px;
    font-weight:600;
    margin-bottom:3px;
}

.mission-row__service{
    margin-bottom:6px;
}

.mission-row__comment{
    margin-top:2px;
}

.requests-actions{
    display:flex;
    gap:8px;
    margin-top:10px;
    flex-wrap:nowrap;
}

.requests-actions .inline-form{
    margin:0;
}

.table-action-link,
.table-action-btn{
    margin:0;
    white-space:nowrap;
}

.mission-badge{
    margin-left:12px;
    flex-shrink:0;
}

.password-wrapper{
    position:relative;
}

.password-wrapper input{
    padding-right:52px;
}

.password-wrapper{
    position:relative;
}

.password-wrapper input{
    width:100%;
    padding-right:50px;
}

.password-wrapper .toggle-password{
    position:absolute;
    top:50%;
    right:16px;
    transform:translateY(-50%);
    cursor:pointer;
    color:#7a7a7a;
    font-size:18px;
    transition:.2s;
    user-select:none;
}

.password-wrapper .toggle-password:hover{
    color:var(--gold);
}


.property-thumb {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
}

.property-thumb--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-2);
    color: var(--text-dim);
}

.property-thumb--lg {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    object-fit: cover;
}

.form-card__current-photo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}


/* -- Carte "Missions du jour" -- */
.missions-count-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--card-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
}

.missions-count-card__label {
    font-size: 0.75rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.missions-count-card__value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold-strong);
}

.missions-count-card__icon {
    height: 44px;
    width: 44px;
    display: grid;
    place-items: center;
    background: var(--gold-soft);
    color: var(--gold);
    border-radius: 12px;
    font-size: 18px;
    text-decoration: none;
    flex-shrink: 0;
    transition: background 0.2s;
}

.missions-count-card__icon:hover { background: var(--gold); color: var(--bg); }

/* -- Carte "Prochaine mission" -- */
.next-mission-card {
    background: var(--card-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.25rem;
}

.next-mission-card__label {
    font-size: 0.75rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.next-mission-card__body {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
}

.next-mission-card__photo {
    height: 64px;
    width: 64px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
}

.next-mission-card__photo--placeholder {
    display: grid;
    place-items: center;
    background: var(--card-2);
    color: var(--text-dim);
    font-size: 22px;
}

.next-mission-card__info { flex: 1; min-width: 0; }

.next-mission-card__time {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.next-mission-card__address {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.next-mission-card__address i { color: var(--gold); }

.next-mission-card__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 0.75rem;
    background: var(--gold);
    color: var(--bg);
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: filter 0.2s;
}

.next-mission-card__cta:hover { filter: brightness(1.08); }

/* -- Liste condensée des missions -- */
.mission-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mission-row {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--card-alt);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 0.9rem 1rem;
    border-left: 4px solid var(--mission-color, var(--gold));
}

.mission-row__time {
    flex-shrink: 0;
    width: 42px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gold-strong);
}

.mission-row__main { flex: 1; min-width: 0; }

.mission-row__property {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mission-row__service {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.mission-row__comment {
    font-size: 0.78rem;
    color: var(--text-dim);
    font-style: italic;
    margin-top: 4px;
}

.mission-row__side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex-shrink: 0;
}

.mission-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
}

.mission-badge--done      { background: rgba(45, 212, 191, 0.18); color: var(--teal-accent); }
.mission-badge--upcoming  { background: var(--gold-soft); color: var(--gold); }
.mission-badge--pending   { background: rgba(249, 115, 22, 0.18); color: #fb923c; }

.mission-row__complete-btn {
    display: grid;
    place-items: center;
    height: 30px;
    width: 30px;
    border: none;
    border-radius: 50%;
    background: #059669;
    color: white;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.2s, transform 0.2s;
}

.mission-row__complete-btn:hover { background: #047857; transform: scale(1.06); }


/* ==========================================================================
   29. RESPONSIVE MOBILE (<768px)
   ========================================================================== */
@media (max-width: 768px) {

    .app-layout { flex-direction: column; }
    .sidebar { display: none; }
    .desktop-only { display: none !important; }
    .main { padding-top: 0; padding-bottom: 70px; }

    .requests-actions{
    flex-direction:row;
}
    .requests-actions .btn { width: 100%; justify-content: center; display: flex; align-items: center; gap: 8px; }

    .acq-hero { padding: 2rem 1.25rem; }
    .acq-hero__title { font-size: 1.2rem; }
    .acq-grid { grid-template-columns: 1fr; }

    .content { padding: 1rem; }

    #calendar .fc-mission-event {
    margin-left: 2px !important;
    margin-right: 2px !important;
}

#calendar .fc-daygrid-day-frame { min-height: 46px !important; max-height: 46px !important; }
#calendar { padding: 0.6rem; max-width: 100%; }
    #calendar .fc-toolbar { flex-direction: column; gap: 8px; }
    #calendar .fc-toolbar-title { font-size: 0.9rem; }
    #calendar .fc-button { padding: 3px 7px !important; font-size: 10px !important; }

    /* -- Cases du calendrier : hauteur libre au lieu d'une hauteur figée,
       pour laisser le texte des events respirer -- */
    #calendar .fc-daygrid-day-frame {
        min-height: 60px !important;
        height: auto !important;
        max-height: none !important;
    }

    #calendar .fc-daygrid-day-number { font-size: 10px; padding: 1px 3px; }
    #calendar .fc-col-header-cell { font-size: 9px; padding: 3px 0; }
    #calendar .fc-daygrid-day-events { min-height: 0; }

    /* -- Events : texte lisible, centré, plus de coupure brutale -- */
    #calendar .fc-mission-event {
        margin-left: 2px !important;
        margin-right: 2px !important;
    }

    #calendar .fc-mission-event .fc-event-main {
        padding: 3px 4px;
        font-size: 7.5px;
        line-height: 1.25;
        text-align: center;
        white-space: normal;
        overflow: visible;
    }

    #calendar .fc-mission-event .fc-event-time {
        display: none;
    }

    #calendar .fc-list-day-cushion { background: var(--card-2) !important; }
    #calendar .fc-list-event:hover td { background: var(--card-2) !important; }
    #calendar .fc-list-event-title,
    #calendar .fc-list-event-time { color: var(--text) !important; }
    #calendar .fc-daygrid-day-top { justify-content: center; }

    .form-card { max-width: 100%; }
    .form-grid-2 { grid-template-columns: 1fr !important; }

    .users-table thead { display: none; }
    .users-table, .users-table tbody, .users-table tr, .users-table td { display: block; width: 100%; }
    .users-table tbody tr { background: var(--card-2); border-radius: 12px; padding: 2px 10px; margin: 0 48px 25px 48px; width: calc(100% - 96px); border: 1px solid var(--border-soft); }
    .users-table td { padding: 4px 0; border: none; font-size: 13px; text-align: center; }
    .users-table td::before { content: attr(data-label); display: block; font-size: 10px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-dim); margin-bottom: 2px; text-align: center; }
    .users-table td[data-label="Nom"]::before { display: none; }
    .users-table td[data-label="Actions"] { padding-top: 8px; }
    .row-actions { justify-content: center; }
    .user-cell { justify-content: center; }

    .mobile-topbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px 16px;
        background: var(--card);
        border-bottom: 1px solid var(--border-soft);
        position: sticky;
        top: 0;
        z-index: 300;
        box-shadow: var(--shadow-soft);
    }

    .mobile-topbar-logo img { height: 36px; width: auto; border-radius: 6px; object-fit: contain; }
    .mobile-topbar-actions { display: flex; align-items: center; gap: 10px; }

    .mobile-topbar-btn {
        position: relative;
        display: grid;
        place-items: center;
        width: 36px;
        height: 36px;
        background: var(--card-2);
        border: 1px solid var(--border-soft);
        border-radius: 50%;
        color: var(--text);
        font-size: 15px;
        cursor: pointer;
        text-decoration: none;
    }

    .mobile-topbar-avatar {
        display: grid;
        place-items: center;
        flex-shrink: 0;
        width: 34px;
        height: 34px;
        border-radius: 50%;
        background: linear-gradient(135deg, var(--gold), #B8862E);
        color: var(--bg);
        font-size: 12px;
        font-weight: 700;
    }

    .topbar { flex-wrap: wrap; padding: 12px 16px; gap: 10px; }
    .topbar-search { order: 3; flex-basis: 100%; max-width: 100%; margin: 0; }
    .topbar-actions { gap: 8px; }
    .topbar-user-info, .topbar-cta, #notif-dropdown-desktop { display: none !important; }

    .topbar-notif-dropdown,
    .mobile-topbar .topbar-notif-dropdown { position: fixed; top: 64px; left: 8px; right: 8px; width: auto; z-index: 400; }

    .legend-panel { position: fixed; top: 64px; left: 8px; right: 8px; width: auto; }
    .pagination__total { margin-left: 0; width: 100%; text-align: center; }

    .mobile-bottom-nav {
        display: flex;
        align-items: stretch;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 64px;
        background: var(--card);
        border-top: 1px solid var(--border);
        box-shadow: 0 -4px 20px rgba(0, 0, 0, .2);
        z-index: 300;
    }

    .mobile-bottom-nav a,
    .mobile-bottom-nav button {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        padding: 6px 4px;
        background: none;
        border: none;
        color: var(--text-dim);
        font: inherit;
        font-size: 10px;
        font-weight: 500;
        text-decoration: none;
        cursor: pointer;
        transition: color .2s;
        position: relative;
    }

    .mobile-bottom-nav a i,
    .mobile-bottom-nav button i { font-size: 18px; margin-bottom: 1px; }

    .mobile-bottom-nav a.active,
    .mobile-bottom-nav a.active i { color: var(--gold); }

    .mobile-bottom-nav a.active::after {
        content: "";
        position: absolute;
        bottom: 6px;
        left: 50%;
        transform: translateX(-50%);
        width: 4px;
        height: 4px;
        border-radius: 50%;
        background: var(--gold);
    }

    .mobile-nav-pwa {
        flex: 0 0 52px !important;
        padding: 6px 8px !important;
        background: var(--gold-soft) !important;
        border-left: 1px solid var(--border-soft) !important;
        border-radius: 0 !important;
        color: var(--gold) !important;
    }

    .mobile-nav-pwa i, .mobile-nav-pwa span { color: var(--gold) !important; }
    .mobile-nav-pwa span { font-size: 9px !important; }

    .data-table, .devis-table, .table-wrapper, .devis-table-wrapper { display: block; overflow-x: auto; white-space: nowrap; }

    .info-grid, .lead-detail__grid, .grid-split, .cards, .card-grid { grid-template-columns: 1fr !important; }

    .dash-kpis, .grid-auto, .dash-row--3 { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; }
    .dash-row--legacy { grid-template-columns: 1fr !important; gap: 10px !important; }

    .dash-kpi { padding: 14px 12px; }
    .dash-kpi-icon { height: 34px; width: 34px; margin-bottom: 10px; font-size: 15px; }
    .dash-kpi-value { font-size: 22px; }
    .dash-kpi-label { font-size: 11px; }

    .status-pill { padding: 0.6rem; }
    .status-pill__value { font-size: 1.3rem; }
    .status-pill__label { font-size: 0.75rem; }

    .status-grid { grid-template-columns: repeat(4, 1fr) !important; gap: 8px !important; }
    .status-grid .status-pill { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0.75rem 0.4rem; min-height: 78px; text-align: center; }
    .status-grid .status-pill__value { font-size: 1.15rem; line-height: 1.2; }
    .status-grid .status-pill__label { font-size: 0.62rem; line-height: 1.3; margin-top: 4px; }

    .card.card-quicklinks { display: none !important; }

    .dash-row--3 .dash-ri-time,
    .dash-row--3 .dash-pill,
    .dash-row--3 .dash-unread { display: none; }

    .dash-row--3 .dash-ri-name,
    .dash-row--3 .dash-ri-sub { white-space: normal; }

    .dash-row--3 .dash-li-time,
    .dash-row--3 .dash-btn-validate { display: none; }

    .dash-tl-title { font-size: 12px; }
    .dash-tl-desc, .dash-tl-time { font-size: 10px; }

    .lead-detail__timeline { grid-column: auto; }

    .filters, .filters__form { flex-direction: column; align-items: stretch; }
    .filters select, .filters button, .filters__reset { width: 100%; }

    .mission-modal { max-width: calc(100% - 32px); max-height: 85vh; padding: 18px; overflow-y: auto; }

    .dash-cal-days { grid-template-columns: 36px repeat(7, minmax(28px, 1fr)); font-size: 9px; }

    .dash-cal-grid { height: 200px; }

     /* -- En-têtes des jours (LUN, MAR...) -- */
    .dash-cal-days {
        overflow-x: visible;
    }

    /* -- La colonne du jour devient un conteneur flex vertical :
       les events se placent les uns en dessous des autres,
       dans l'ordre, au lieu d'être positionnés en absolu. -- */
    .dash-cal-col {
        position: static;
        display: flex;
        flex-direction: column;
        gap: 3px;
        height: auto;
        padding: 2px;
    }

.dash-event,
.dash-event--stacked {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box;
    padding: 5px 6px;
    font-size: 8px;
    line-height: 1.2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

    .dash-event .t,
    .dash-event--stacked .t {
        font-weight: 600;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        word-break: normal;
    }

    .dash-event .p,
    .dash-event--stacked .p {
        display: none; /* le "lieu" disparaît sur mobile, trop de bruit visuel */
    }

    /* -- Lignes d'heures : passent en arrière-plan, ne gênent plus les events -- */
    .dash-hour-line {
        z-index: 0;
    }

    .dash-hour-line .h {
        font-size: 9px;
    }

    .dash-cal-cols {
        position: relative;
        z-index: 1;
    }


     .dash-row--3-2 .card {
        overflow: hidden;
        box-sizing: border-box;
    }

    .dash-cal-cols {
        box-sizing: border-box;
        width: 100%;
    }

    .dash-cal-col {
        box-sizing: border-box;
        min-width: 0; /* évite que le flex force une largeur trop grande */
    }

    .card > h2 + *,
.card > h3 + *,
.card-header + *,
.card-header--spaced + *,
.card-title + *,
.card-title--spaced + *,
.section-title + *,
[class*="card__head"] + *,
[class*="-header"] + ul,
[class*="-header"] + table,
[class*="-header"] + div {
    margin-top: 24px;
}

.dash-list, .data-table, .devis-table, .devis-table-wrapper,
.kanban-cards, .checkbox-list, .timeline, .action-list, .recipient-list {
    margin-top: 42px;
}





/* ==========================================================================
   Ajustement bottom-nav : passe de 3 à 5 items pour l'espace cleaner
   (le flex:1 existant s'adapte déjà, on resserre juste le texte)
   ========================================================================== */

.bottom-nav a {
    padding: 0.6rem 0.25rem;
    font-size: 0.65rem;
    gap: 0.2rem;
    
}

.bottom-nav a .icon { font-size: 1.25rem; }

.bottom-nav {
    display: flex;   /* ← nouvelle règle */
}

  

.mobile-content .btn--block {
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    display: block;
}

    .mobile-header {
        max-width: 480px;
        margin: 0 auto;
    }

    .owner-kpis {
    gap: 8px;
}

.owner-kpi {
    padding: 10px 6px;
}

.owner-kpi__value {
    font-size: 1.15rem;
}

.owner-kpi__label {
    font-size: 0.6rem;
}

    .login-page{
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100dvh;
    padding: 16px;
}

    .login-box{
        width:100%;
        max-width:280px;
        padding:32px 24px;
        border-radius:18px;
    }

    .login-box h1{
        font-size:2rem;
        margin-bottom:2rem;
    }

    .form-group{
        margin-bottom:1.4rem;
    }

    .login-box label{
        font-size:0.95rem;
        margin-bottom:.55rem;
    }

    .login-box input{
        height:52px;
        font-size:16px; /* évite le zoom automatique sur iPhone */
        padding:0 16px;
        border-radius:10px;
    }

    .login-box button{
        height:52px;
        font-size:1rem;
        border-radius:10px;
        margin-top:1.5rem;
    }

    .error{
        font-size:.9rem;
    }


    /* .mobile-bottom-nav {
        display: none !important;
    } */

    .cleaner-dashboard {
        max-width: 1100px;
        margin: 0 auto;
    }

    .cleaner-dashboard__top {
        display: grid;
        grid-template-columns: 320px 1fr;
        gap: 1.25rem;
        align-items: stretch;
        margin-bottom: 1.25rem;
    }

    .cleaner-dashboard__top .missions-count-card,
    .cleaner-dashboard__top .next-mission-card {
        margin-bottom: 0;
    }

    .missions-count-card {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
    }

    .next-mission-card__photo {
        height: 84px;
        width: 84px;
    }

    .mission-list {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 1rem;
    }

/* ========== MOBILE DRAWER (Slide from RIGHT to LEFT) ========== */
/* ========== MOBILE DRAWER (Slide from RIGHT to LEFT) ========== */
.mobile-drawer {
    display: none !important;
    position: fixed;
    inset: 0;
    z-index: 998;
}

/* Desktop : drawer JAMAIS visible, peu importe .is-open */


/* Mobile : drawer visible seulement si .is-open */
@media (max-width: 768px) {
    .mobile-drawer.is-open {
        display: flex !important;
    }
}

.mobile-drawer__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 998;
}

.mobile-drawer__panel {
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    width: 320px;
    background: linear-gradient(180deg, var(--card-alt) 0%, #0F3838 100%);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    animation: slideInDrawer 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideInDrawer {
    to { transform: translateX(0); }
}

.mobile-drawer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 12px;
    border-bottom: 2px solid var(--border-soft);
    background: linear-gradient(90deg, rgba(232, 184, 74, 0.08) 0%, transparent 100%);
}

.mobile-drawer__header h3 {
    margin: 0;
    color: var(--gold-strong);
    font-size: 1.2rem;
    font-weight: 700;
    flex: 1;
    text-align: center;
    letter-spacing: 0.5px;
}

.mobile-drawer__header button {
    background: var(--gold-soft);
    border: none;
    color: var(--gold);
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.mobile-drawer__header button:hover {
    background: var(--gold);
    color: var(--bg);
    transform: rotate(90deg);
}

.mobile-drawer__nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 12px;
}

.mobile-drawer__nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    color: #E8B84A;
    text-decoration: none;
    transition: all 0.2s ease;
    border-radius: 10px;
    border-left: 3px solid transparent;
    position: relative;
    overflow: hidden;
}

.mobile-drawer__nav a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(232, 184, 74, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.mobile-drawer__nav a:hover {
    background: rgba(245, 240, 225, 0.08);
    color: var(--text);
    border-left-color: var(--gold);
    transform: translateX(4px);
}

.mobile-drawer__nav a:hover::before {
    opacity: 1;
}

.mobile-drawer__nav a.active {
    background: linear-gradient(90deg, var(--gold-soft) 0%, rgba(232, 184, 74, 0.1) 100%);
    color: var(--gold);
    font-weight: 600;
    border-left-color: var(--gold);
    box-shadow: 0 0 12px rgba(232, 184, 74, 0.2);
}

.mobile-drawer__nav i {
    width: 20px;
    text-align: center;
    font-size: 16px;
}

.mobile-drawer__divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-soft), transparent);
    margin: 16px 12px;
}

/* ========== ACQUISITION SECTION (SPECIAL STYLE) ========== */
.mobile-drawer__section-acquisition {
    padding: 12px;
    margin: 8px 12px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(45, 212, 191, 0.12) 0%, rgba(232, 184, 74, 0.08) 100%);
    border: 1px solid rgba(45, 212, 191, 0.2);
    position: relative;
    overflow: hidden;
}

.mobile-drawer__section-acquisition::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(45, 212, 191, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.mobile-drawer__section-acquisition a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 14px;
    color: var(--teal-accent);
    text-decoration: none;
    transition: all 0.2s ease;
    border-radius: 8px;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.mobile-drawer__section-acquisition a::before {
    content: '✦';
    position: absolute;
    left: -8px;
    opacity: 0;
    font-size: 10px;
    transition: all 0.2s ease;
}

.mobile-drawer__section-acquisition a:hover {
    background: rgba(45, 212, 191, 0.2);
    color: #4DFF88;
    transform: translateX(4px);
    box-shadow: 0 0 16px rgba(45, 212, 191, 0.3);
}

.mobile-drawer__section-acquisition a:hover::before {
    opacity: 1;
    left: 4px;
}

.mobile-drawer__section-acquisition i {
    font-size: 18px;
    width: 20px;
    text-align: center;
}

.mobile-drawer__acq-badge {
    display: inline-block;
    font-size: 7px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--teal-accent);
    margin-left: auto;
    padding: 3px 8px;
    background: rgba(45, 212, 191, 0.2);
    border-radius: 4px;
    border: 1px solid var(--teal-accent);
}

/* ========== NOTIFICATIONS BUTTON ========== */
.mobile-drawer__notif-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    color: #C98291;
    background: none;
    border: none;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
    cursor: pointer;
    font-family: inherit;
    border-radius: 10px;
    border-left: 3px solid transparent;
    overflow: hidden;
}

.mobile-drawer__notif-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(232, 184, 74, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.mobile-drawer__notif-btn:hover {
    background: rgba(245, 240, 225, 0.08);
    color: var(--gold);
    border-left-color: var(--gold);
    transform: translateX(4px);
}

.mobile-drawer__notif-btn:hover::before {
    opacity: 1;
}

.mobile-drawer__notif-btn i {
    width: 20px;
    text-align: center;
    font-size: 16px;
}

.mobile-drawer__badge {
    position: absolute;
    top: 4px;
    right: 14px;
    height: 18px;
    min-width: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: linear-gradient(135deg, #FF6B6B, #FF8787);
    color: white;
    font-size: 10px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: badgePulse 2s ease-in-out infinite;
    box-shadow: 0 0 12px rgba(255, 107, 107, 0.5);
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* ========== USER SECTION ========== */
.mobile-drawer__user-section {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 12px;
    margin-top: auto;
    border-top: 2px solid var(--border-soft);
    background: linear-gradient(90deg, rgba(232, 184, 74, 0.05) 0%, transparent 100%);
    border-radius: 12px 12px 0 0;
}

.mobile-drawer__user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), #B8862E);
    color: var(--bg);
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(232, 184, 74, 0.3);
    border: 2px solid var(--gold-soft);
}

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

.mobile-drawer__user-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.3px;
}

.mobile-drawer__user-role {
    font-size: 10px;
    color: var(--gold);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.mobile-drawer__logout {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-soft), rgba(232, 184, 74, 0.1));
    color: var(--gold);
    text-decoration: none;
    font-size: 16px;
    transition: all 0.2s ease;
    flex-shrink: 0;
    border: 2px solid var(--gold-soft);
    cursor: pointer;
}

.mobile-drawer__logout:hover {
    background: var(--gold);
    color: var(--bg);
    transform: scale(1.1) rotate(-10deg);
    box-shadow: 0 6px 20px rgba(232, 184, 74, 0.4);
}

/* ========== NOTIFICATIONS PANEL ========== */
.mobile-notif-panel {
    position: fixed;
    right: -340px;
    top: 0;
    bottom: 0;
    width: 340px;
    background: linear-gradient(180deg, var(--card) 0%, #0F3838 100%);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-notif-panel.is-open {
    right: 0;
}

.mobile-notif-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 2px solid var(--border-soft);
    background: linear-gradient(90deg, rgba(232, 184, 74, 0.08) 0%, transparent 100%);
}

.mobile-notif-panel__header h3 {
    margin: 0;
    font-size: 1.15rem;
    color: var(--gold-strong);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.mobile-notif-panel__header button {
    background: var(--gold-soft);
    border: none;
    color: var(--gold);
    cursor: pointer;
    font-size: 18px;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.mobile-notif-panel__header button:hover {
    background: var(--gold);
    color: var(--bg);
    transform: rotate(90deg);
}

.mobile-notif-panel__list {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}

.mobile-notif-panel__empty {
    padding: 40px 24px;
    text-align: center;
    color: var(--text-dim);
    font-size: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.mobile-notif-panel__empty::before {
    content: '🔔';
    font-size: 32px;
    opacity: 0.5;
}

.mobile-notif-panel__item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 16px;
    margin: 4px 8px;
    border-radius: 8px;
    color: var(--text);
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    position: relative;
    background: rgba(245, 240, 225, 0.03);
}

.mobile-notif-panel__item::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 8px;
    background: linear-gradient(90deg, rgba(232, 184, 74, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.mobile-notif-panel__item:hover {
    background: rgba(45, 212, 191, 0.1);
    border-left-color: var(--teal-accent);
    transform: translateX(4px);
    box-shadow: 0 0 16px rgba(232, 184, 74, 0.15);
}

.mobile-notif-panel__item:hover::before {
    opacity: 1;
}

.mobile-notif-panel__message {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    position: relative;
    z-index: 1;
    color: #C98291;
}

.mobile-notif-panel__date {
    font-size: 10px;
    color: var(--text-dim);
    position: relative;
    z-index: 1;
}

.mobile-topbar-menu-btn {
    background: none;
    border: none;
    color: var(--text);
    font-size: 18px;
    cursor: pointer;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.mobile-topbar-menu-btn:hover {
    color: var(--gold);
    transform: rotate(-10deg) scale(1.1);
}
}



@media (min-width: 769px) {
    .mobile-drawer,
    .mobile-drawer.is-open,
    .mobile-notif-panel {
        display: none !important;
    }
}



@media (max-width: 480px) {
    .topbar-title { font-size: 1rem; }
    .mission-modal h2 { font-size: 17px; }
    .mobile-bottom-nav a, .mobile-bottom-nav span { font-size: 9px; }
}