﻿/* ==========================================================================
   1. VARIABLES & BASE
   ========================================================================== */
:root {
    --sisley-gold: #c5a47e;
    --sisley-black: #3A3A3A;
    --sisley-grey-light: #f8f9fa;
    --bg-light: #f8f9fc;
    --card-shadow: 0 5px 20px rgba(0,0,0,0.03);
    --card-radius: 16px;
}

body {
    background-color: var(--bg-light);
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.dashboard-container {
    padding: 30px;
    max-width: 1800px;
    margin: 0 auto;
    transition: margin-right 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    /* Transition douce pour la couleur de fond */
    transition: background-color 0.3s ease, border-color 0.3s ease;
    border-radius: var(--card-radius);
    min-height: 500px; /* Assure une zone droppable même vide */
    border: 2px solid transparent; /* Prépare la bordure */
}

/* --- NOUVEAU : Surbrillance de la Drop Zone --- */
.dashboard-drop-active {
    background-color: rgba(197, 164, 126, 0.05); /* Fond Sisley très léger */
    border: 2px dashed var(--sisley-gold); /* Bordure pointillée */
}

/* ==========================================================================
   2. CARTES & DRAG AND DROP
   ========================================================================== */
.dash-card {
    background: white;
    border-radius: var(--card-radius);
    padding: 25px;
    height: 100%;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: var(--card-shadow);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    z-index: 1;
    cursor: grab;
}

    .dash-card:active {
        cursor: grabbing;
    }

    .dash-card a,
    .dash-card button,
    .dash-card .btn {
        cursor: pointer;
    }

.draggable-item:hover .dash-card {
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-color: rgba(197, 164, 126, 0.3);
}

/* ==========================================================================
   3. BIBLIOTHÈQUE (DRAWER) - MODE LISTE SIMPLE
   ========================================================================== */
.widget-drawer {
    position: fixed;
    top: 0;
    right: -380px;
    width: 380px;
    height: 100vh;
    background: white;
    z-index: 2000;
    box-shadow: -10px 0 30px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    transition: right 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

    .widget-drawer.open {
        right: 0;
    }

.drawer-header {
    padding: 25px;
    border-bottom: 1px solid #f0f0f0;
    background: #fff;
}

.drawer-content {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
    background: #fff;
}

/* --- Item de Liste (Pas de prévisuel) --- */
.library-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    margin-bottom: 10px;
    background: #f8f9fa; /* Gris très clair pour différencier du fond blanc */
    border: 1px solid #eee;
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: grab; /* Indique qu'on peut toujours drag */
}

    .library-item:hover {
        background: white;
        border-color: var(--sisley-gold);
        box-shadow: 0 3px 10px rgba(0,0,0,0.05);
        transform: translateX(-2px);
    }

/* Conteneur Info (Titre + Desc) */
.library-info {
    flex: 1; /* Prend toute la place dispo */
    display: flex;
    flex-direction: column;
    padding-right: 15px;
}

    .library-info h6 {
        margin: 0 0 4px 0;
        font-size: 0.9rem;
        font-weight: 700;
        color: var(--sisley-black);
    }

    .library-info p {
        margin: 0;
        font-size: 0.75rem;
        color: #6c757d;
        line-height: 1.2;
    }

/* Zone d'actions à droite (Bouton + Poignée) */
.library-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* --- Bouton Ajouter (+) --- */
.btn-add-widget {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--sisley-gold);
    background: white;
    color: var(--sisley-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
}

    .btn-add-widget:hover {
        background: var(--sisley-gold);
        color: white;
        transform: scale(1.1);
    }

/* Icône de drag (Poignée) */
.library-drag-handle {
    color: #ccc;
    cursor: grab;
}

.library-item:hover .library-drag-handle {
    color: #999;
}
.library-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background-color: #f0f0f0;
    color: var(--sisley-black);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 1rem;
    flex-shrink: 0; /* Empêche l'écrasement si le texte est long */
}

/* Changement de couleur au survol de la ligne */
.library-item:hover .library-icon {
    background-color: var(--sisley-gold);
    color: white;
}

.link-hover-effect:hover {
    background-color: #e9ecef !important;
    border-color: #adb5bd !important;
    transform: translateY(-1px);
    transition: all 0.2s;
}

/* ==========================================================================
   4. MODE ÉDITION & TOOLBAR
   ========================================================================== */
body.edit-mode .dashboard-container {
    margin-right: 380px;
}

body.edit-mode .drag-handle-overlay {
    display: block;
}

body.edit-mode .draggable-item:hover .widget-toolbar {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.drag-handle-overlay {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 50px;
    height: 60px;
    cursor: grab;
    z-index: 40;
}

/* Bouton Config (Engrenage) */
.widget-settings-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 60;
}

    .widget-settings-btn:hover,
    .widget-settings-btn.active {
        background-color: #f0f0f0;
        color: var(--sisley-black);
        transform: rotate(90deg);
    }

/* Toolbar Menu */
.widget-toolbar {
    position: absolute;
    top: 50px;
    right: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 8px 12px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    border: 1px solid #f0f0f0;
    z-index: 55;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.2s cubic-bezier(0.4, 0.0, 0.2, 1);
    pointer-events: none;
}

    .widget-toolbar.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1);
        pointer-events: auto;
    }

.tool-btn {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.85rem;
}

    .tool-btn:hover {
        background: #f8f9fa;
        color: var(--sisley-black);
    }

.tool-separator {
    width: 1px;
    height: 16px;
    background: #eee;
    margin: 0 2px;
}

.tool-btn-delete:hover {
    background: #fff5f5;
    color: #dc3545;
}

/* ==========================================================================
   5. FAB EDIT
   ========================================================================== */
.fab-edit {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--sisley-black);
    color: white;
    padding: 15px 25px;
    border-radius: 50px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    cursor: pointer;
    z-index: 2001;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
}

    .fab-edit:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    }

    .fab-edit.active {
        background: var(--sisley-gold);
    }

/* KPI & Tables (Styles conservés pour la cohérence) */
.kpi-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #f0f0f0;
}

    .kpi-item:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }

.kpi-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #999;
    letter-spacing: 1px;
    font-weight: 600;
}

.kpi-number {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--sisley-black);
    line-height: 1;
}

.progress-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: conic-gradient(var(--sisley-gold) var(--percent), #f0f0f0 0);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 4px 10px rgba(197, 164, 126, 0.1);
}

.progress-inner {
    width: 68px;
    height: 68px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-val {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--sisley-black);
}

.table-custom thead th {
    text-transform: uppercase;
    font-size: 0.7rem;
    color: #aaa;
    border: none;
}

.store-name {
    font-weight: 600;
    color: #1a1a1a;
}

.task-link {
    color: var(--sisley-black);
    text-decoration: none !important;
    font-weight: 700;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
}

    .task-link:hover {
        color: var(--sisley-gold);
    }

        .task-link:hover i {
            opacity: 1;
            transform: translateX(3px);
        }

    .task-link i {
        font-size: 0.8rem;
        opacity: 0;
        transition: all 0.2s;
        margin-left: 8px;
        color: var(--sisley-gold);
    }

.link-clean {
    text-decoration: none !important;
}

    .link-clean:hover {
        opacity: 0.8;
    }

.bg-new {
    background-color: #007Bff;
}
/* ==========================================================================
   7. WIDGETS "LUXE SISLEY" (SHORTCUTS & ALERTS)
   ========================================================================== */

/* --- WIDGET ACCÈS RAPIDE (Tuiles Minimalistes & Luxe) --- */
.shortcuts-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.shortcut-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 colonnes strictes */
    gap: 15px;
    flex: 1; /* Prend l'espace disponible */
}

.shortcut-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border: 1px solid #f0f0f0; /* Bordure très subtile par défaut */
    border-radius: 4px; /* Coins peu arrondis pour un look plus sérieux/luxe */
    padding: 20px 10px;
    text-decoration: none !important;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

/* Effet "Sisley" : Fond grisé très léger au repos pour le contraste */
.shortcut-tile {
    background: linear-gradient(145deg, #ffffff, #fafafa);
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

    /* --- INTERACTION HOVER --- */
    .shortcut-tile:hover {
        border-color: var(--sisley-gold); /* Bordure Or */
        transform: translateY(-3px); /* Légère remontée */
        box-shadow: 0 8px 25px rgba(197, 164, 126, 0.15); /* Ombre dorée diffuse */
    }

    /* Ligne décorative animée en bas */
    .shortcut-tile::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 2px;
        background-color: var(--sisley-gold);
        transition: width 0.3s ease;
    }

    .shortcut-tile:hover::after {
        width: 60%; /* La ligne s'étend au survol mais pas totalement */
    }

    /* --- ICONE --- */
    .shortcut-tile i {
        font-size: 1.5rem;
        margin-bottom: 12px;
        color: var(--sisley-black); /* Noir profond par défaut */
        transition: color 0.3s ease, transform 0.3s ease;
    }

    .shortcut-tile:hover i {
        color: var(--sisley-gold); /* Devient Or au survol */
        transform: scale(1.1);
    }

/* --- TEXTE --- */
.shortcut-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 2px; /* Espacement typique du luxe */
    font-weight: 600;
    color: #666; /* Gris foncé pour le texte */
    text-align: center;
    transition: color 0.3s ease;
}

.shortcut-tile:hover .shortcut-label {
    color: var(--sisley-black); /* Devient noir au survol */
}

/* Message si vide (Design épuré) */
.shortcuts-empty {
    text-align: center;
    padding: 30px;
    color: #999;
    font-style: italic;
    font-size: 0.8rem;
    border: 1px dashed #ddd;
    border-radius: 8px;
    grid-column: span 2;
}

    .shortcuts-empty a {
        color: var(--sisley-black);
        font-weight: 600;
        border-bottom: 1px solid var(--sisley-gold);
        text-decoration: none;
    }

/* --- WIDGET ALERTES (Liste Épurée & Toolbar Luxe) --- */

/* Conteneur principal flexible */
.widget-alerts-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* --- TOOLBAR (Menu de filtres) --- */
.alert-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 8px;
    margin-bottom: 15px;
    flex-wrap: wrap; /* Permet de passer à la ligne si widget trop petit */
    gap: 10px;
}

.alert-filters {
    display: flex;
    gap: 15px;
}

/* Boutons filtres (Style Onglet Textuel) */
.filter-tab {
    background: none;
    border: none;
    padding: 0 0 5px 0;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

    /* État survol et actif */
    .filter-tab:hover,
    .filter-tab.active {
        color: var(--sisley-black);
    }

    /* Soulignement doré animé */
    .filter-tab::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px;
        background-color: var(--sisley-gold);
        transition: width 0.3s ease;
    }

    .filter-tab.active::after {
        width: 100%;
    }

/* Petit bouton de tri à droite (Icône discrète) */
.sort-toggle-btn {
    background: none;
    border: none;
    color: #ccc;
    font-size: 0.8rem;
    cursor: pointer;
    transition: color 0.3s;
}

    .sort-toggle-btn:hover {
        color: var(--sisley-gold);
    }


/* --- LISTE DES ALERTES (Liens) --- */
.alert-list-container {
    flex: 1; /* Prend l'espace restant */
    overflow-y: auto;
    padding-right: 5px; /* Espace pour scrollbar */
}

/* L'item devient un lien bloc */
a.alert-item {
    display: flex; /* Flex pour aligner point + contenu */
    text-decoration: none !important; /* Pas de soulignement bleu moche */
    align-items: flex-start;
    padding: 12px 10px;
    border-bottom: 1px solid #f9f9f9;
    transition: background-color 0.2s, transform 0.2s;
    border-radius: 6px;
    margin-bottom: 4px;
    cursor: pointer;
}

    a.alert-item:last-child {
        border-bottom: none;
    }

    /* Effet hover luxe */
    a.alert-item:hover {
        background-color: #fafafa;
        transform: translateX(3px); /* Petit décalage vers la droite */
    }

/* Le point indicateur */
.alert-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-top: 6px;
    margin-right: 15px;
    flex-shrink: 0;
}

.dot-danger {
    background-color: var(--sisley-black);
}
/* Urgent = Noir */
.dot-warning {
    background-color: var(--sisley-gold);
}
/* Warning = Or */

.alert-content {
    flex: 1;
}

.alert-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 2px;
}

.alert-title {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--sisley-black);
}

.alert-date {
    font-size: 0.6rem;
    color: #bbb;
    font-style: italic;
}

.alert-message {
    font-size: 0.75rem;
    color: #666;
    line-height: 1.3;
    font-weight: 400;
}
/* Style pour la date sur link hover */
a.alert-item:hover .alert-title {
    color: var(--sisley-gold);
}
/* --- WIDGET ACTIVITIES (Tableau Luxe) --- */

.widget-activities-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Header plus discret */
.activities-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end; /* Aligner sur la ligne de base du texte */
    margin-bottom: 20px;
}

.btn-view-all {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    text-decoration: none !important;
    border-bottom: 1px solid transparent;
    transition: all 0.3s;
    padding-bottom: 2px;
}

    .btn-view-all:hover {
        color: var(--sisley-gold);
        border-color: var(--sisley-gold);
    }

/* TABLEAU DESIGN */
.activities-table {
    width: 100%;
    border-collapse: collapse;
}

    .activities-table thead th {
        font-size: 0.65rem;
        text-transform: uppercase;
        letter-spacing: 2px;
        color: #aaa;
        font-weight: 600;
        border-bottom: 1px solid #f0f0f0;
        padding-bottom: 15px;
        padding-left: 10px;
    }

    .activities-table tbody tr {
        transition: background-color 0.2s ease;
        border-bottom: 1px solid #f9f9f9;
    }

        .activities-table tbody tr:last-child {
            border-bottom: none;
        }

        .activities-table tbody tr:hover {
            background-color: #fafafa; /* Gris très léger au survol */
        }

    .activities-table td {
        padding: 15px 10px;
        vertical-align: middle;
        font-size: 0.85rem;
        color: #555;
    }
    .activities-table tbody tr {
        transition: all 0.2s ease;
        border-bottom: 1px solid #f9f9f9;
        cursor: pointer; /* Indique que toute la ligne est cliquable */
        position: relative; /* Nécessaire pour certains effets */
    }

        /* Effet de survol plus marqué (Luxe) */
        .activities-table tbody tr:hover {
            background-color: #fafafa;
            transform: scale(1.01); /* Effet "Pop" très subtil */
            box-shadow: 0 4px 15px rgba(0,0,0,0.05); /* Légère ombre */
            z-index: 2;
        }

            /* On change la couleur du nom de la tâche quand on survole la ligne */
            .activities-table tbody tr:hover .td-task span {
                color: var(--sisley-gold);
            }

/* Cellules spécifiques */
.td-store {
    font-weight: 700;
    color: var(--sisley-black);
    width: 25%;
}

.td-task a {
    color: #555;
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 500;
}

    .td-task a:hover {
        color: var(--sisley-gold); /* Le lien devient Or */
    }

.td-date {
    font-family: 'Courier New', monospace; /* Touche technique subtile */
    font-size: 0.75rem;
    color: #999;
}

/* --- STATUTS (PILLS MINIMALISTES) --- */
.status-pill {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid transparent; /* Bordure par défaut */
    background: transparent;
}

/* Status: NOUVEAU (Noir plein ou contour) */
.pill-new {
    border-color: var(--sisley-black);
    color: var(--sisley-black);
}

/* Status: VALIDÉ (Or plein ou contour) */
.pill-validated {
    background-color: rgba(197, 164, 126, 0.1); /* Fond or très pâle */
    border-color: var(--sisley-gold);
    color: var(--sisley-gold);
}

/* Status: EN COURS (Gris foncé) */
.pill-progress {
    border-color: #666;
    color: #666;
    border-style: dashed; /* Petit détail stylé */
}

/* Status: REFUS (Rouge très discret) */
.pill-refused {
    background-color: #fff5f5;
    border-color: #e74c3c;
    color: #e74c3c;
}

/* Status: PENDING (Orange Sisley/Moutarde) */
.pill-pending {
    border-color: #e0a800;
    color: #e0a800;
}
/* --- MODAL CONFIGURATION (Sisley Style) --- */
.sisley-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8); /* Fond blanc opalescent */
    backdrop-filter: blur(5px);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

    .sisley-modal-overlay.active {
        opacity: 1;
        visibility: visible;
    }

.sisley-modal {
    background: white;
    width: 450px;
    border: 1px solid #eee;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    border-radius: 2em
}

.sisley-modal-overlay.active .sisley-modal {
    transform: translateY(0);
}

.sisley-modal-header {
    padding: 20px 30px;
    border-bottom: 1px solid #f9f9f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .sisley-modal-header h5 {
        margin: 0;
        font-size: 0.9rem;
        text-transform: uppercase;
        letter-spacing: 2px;
        font-weight: 600;
    }

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #ccc;
    transition: 0.2s;
}

    .close-btn:hover {
        color: var(--sisley-black);
    }

.sisley-modal-body {
    padding: 30px;
}

/* Checkbox Style */
.sisley-checkbox-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f9f9f9;
    cursor: pointer;
    font-size: 0.9rem;
    color: #444;
}

    .sisley-checkbox-row:last-child {
        border-bottom: none;
    }

    .sisley-checkbox-row input {
        display: none;
    }

.checkmark {
    width: 18px;
    height: 18px;
    border: 1px solid #ddd;
    position: relative;
    transition: all 0.2s;
}

.sisley-checkbox-row input:checked ~ .checkmark {
    background-color: var(--sisley-black);
    border-color: var(--sisley-black);
}

    .sisley-checkbox-row input:checked ~ .checkmark::after {
        content: '';
        position: absolute;
        left: 5px;
        top: 1px;
        width: 6px;
        height: 11px;
        border: solid white;
        border-width: 0 2px 2px 0;
        transform: rotate(45deg);
    }

.sisley-modal-footer {
    padding: 20px 30px;
/*    background: #fcfcfc;*/
    border-top: 1px solid #f9f9f9;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.btn-sisley-gold {
    background-color: var(--sisley-black);
    color: white;
    border-radius: 30px;
    border: none;
    padding: 10px 25px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
    cursor: pointer;
}

    .btn-sisley-gold:hover {
        background-color: var(--sisley-gold);
    }

.btn-sisley-outline {
    background: transparent;
    border: 1px solid #eee;
    border-radius: 30px;
    padding: 10px 25px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    transition: 0.3s;
    cursor: pointer;
}

    .btn-sisley-outline:hover {
        border-color: #ccc;
        color: #333;
    }

.btn-setting-shortcut {
    background: transparent;
    color: var(--sisley-black);
    border: none;
    padding: 10px 25px;
    margin: 0 0 0 10px ;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
    cursor: pointer;
}
    .btn-setting-shortcut:hover {
        background: transparent;
        color: var(--sisley-gold);
    }
/* ==========================================================================
   8. WIDGET LIVE MERCH FEED (GALERIE LUXE)
   ========================================================================== */

.widget-merch-content {
    overflow: hidden; /* Empêche le débordement */
}

/* Grille responsive et auto-adaptative */
.merch-feed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); /* Tuiles de 100px min */
    gap: 12px;
    overflow-y: auto;
    padding: 2px; /* Pour éviter de couper les ombres */
    flex: 1;
}

.merch-photo-card {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    group: hover; /* Pour déclencher les animations */
}

/* Conteneur de l'image (Ratio Carré) */
.merch-photo-wrapper {
    position: relative;
    width: 100%;
    padding-top: 100%; /* Ratio 1:1 (Carré parfait) */
    border-radius: 8px;
    overflow: hidden;
    background-color: #f0f0f0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid transparent;
}

/* L'image elle-même en background */
.merch-photo-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

/* Overlay sombre + Icône (apparaît au survol) */
.merch-photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

    .merch-photo-overlay i {
        color: white;
        font-size: 1.2rem;
        transform: scale(0.8);
        transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

/* --- INTERACTIONS --- */

/* Au survol de la carte */
.merch-photo-card:hover .merch-photo-wrapper {
    box-shadow: 0 8px 20px rgba(197, 164, 126, 0.25); /* Ombre dorée diffuse */
    border-color: var(--sisley-gold);
    transform: translateY(-3px);
}

/* Zoom lent de l'image */
.merch-photo-card:hover .merch-photo-img {
    transform: scale(1.15);
}

/* Apparition de l'overlay */
.merch-photo-card:hover .merch-photo-overlay {
    opacity: 1;
}

    /* Pop de l'icône */
    .merch-photo-card:hover .merch-photo-overlay i {
        transform: scale(1);
    }

/* Texte sous l'image */
.merch-photo-info {
    margin-top: 6px;
    display: flex;
    flex-direction: column;
}

    .merch-photo-info .store-name {
        font-size: 0.65rem;
        font-weight: 700;
        color: var(--sisley-black);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.2;
    }

    .merch-photo-info .photo-date {
        font-size: 0.6rem;
        color: #999;
    }

/* Petit détail Luxe : la date devient dorée au survol global */
.merch-photo-card:hover .photo-date {
    color: var(--sisley-gold);
}

/* ==========================================================================
   9. WIDGET CAMPAIGN TIMELINE
   ========================================================================== */

.campaign-list {
    flex: 1;
    overflow-y: auto;
    padding-right: 5px; /* Evite que la scrollbar colle */
}

.campaign-item {
    padding: 15px 5px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
}

    .campaign-item:hover {
        background-color: #fafafa;
        border-radius: 6px;
    }

    .campaign-item:last-child {
        border-bottom: none;
    }

/* Header */
.campaign-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.campaign-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--sisley-black);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 65%;
}

.campaign-dates {
    font-size: 0.65rem;
    font-family: 'Helvetica Neue', sans-serif;
    color: #999;
    font-weight: 500;
}

/* Progress Track */
.campaign-progress-track {
    width: 100%;
    height: 4px; /* Très fin pour le style luxe */
    background-color: #eee;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 10px;
}

.campaign-progress-bar {
    height: 100%;
    background-color: var(--sisley-gold); /* Or par défaut */
    border-radius: 2px;
    transition: width 0.6s cubic-bezier(0.4, 0.0, 0.2, 1);
}

/* Variantes de couleurs de barres */
.bg-danger {
    background-color: #e74c3c !important;
}
/* Rouge */
.bg-info {
    background-color: #3498db !important;
}
/* Bleu */

/* Footer */
.campaign-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.campaign-stats {
    display: flex;
    align-items: baseline;
    font-size: 0.75rem;
}

.text-gold {
    color: var(--sisley-gold);
}

.text-danger {
    color: #e74c3c;
}

/* Badges (Pillules) */
.campaign-badge {
    font-size: 0.6rem;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-normal {
    background-color: rgba(197, 164, 126, 0.1);
    color: var(--sisley-gold);
}

.badge-urgent {
    background-color: #fff5f5;
    color: #e74c3c;
    animation: pulse-red 2s infinite;
}

.badge-upcoming {
    background-color: #f0f7ff;
    color: #3498db;
    border: 1px solid #dbeafe;
}

.badge-finished {
    background-color: #eee;
    color: #999;
}

@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.4);
    }

    70% {
        box-shadow: 0 0 0 4px rgba(231, 76, 60, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0);
    }
}

/* ==========================================================================
   10. WIDGET HEATMAP (CARTE INTERACTIVE)
   ========================================================================== */

.heatmap-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #fdfdfd; /* Fond océan très léger ou blanc */
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.world-map-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.05));
}

.map-zone {
    fill: #eee; /* Couleur par défaut (gris = 0% ou pas de données) */
    stroke: #fff;
    stroke-width: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
}

    .map-zone:hover {
        filter: brightness(0.9);
        transform: scale(1.01); /* Effet pop léger */
        transform-origin: center;
    }

/* Légende discrète */
.heatmap-legend {
    display: flex;
    gap: 15px;
    font-size: 0.65rem;
    color: #999;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

    .legend-item .dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        display: block;
    }

/* Tooltip Custom */
.heatmap-tooltip {
    position: absolute;
    background: rgba(40, 40, 40, 0.9); /* Noir Sisley presque opaque */
    color: white;
    padding: 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    pointer-events: none; /* Laisse passer les clics */
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    min-width: 120px;
}

    .heatmap-tooltip strong {
        display: block;
        margin-bottom: 4px;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: #fff;
    }

    .heatmap-tooltip .text-gold {
        color: var(--sisley-gold);
        font-weight: 700;
        font-size: 1rem;
    }

/* ==========================================================================
   11. WIDGET DURATRANS EXPIRY
   ========================================================================== */

.visual-expiry-list {
    flex: 1;
    overflow-y: auto;
    padding-right: 5px;
}

.visual-item {
    display: flex;
    align-items: center;
    padding: 12px 10px;
    background: #fff;
    border: 1px solid #f9f9f9;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: all 0.2s ease;
    cursor: pointer;
}

    .visual-item:hover {
        border-color: var(--sisley-gold);
        box-shadow: 0 4px 10px rgba(0,0,0,0.05);
        transform: translateX(2px);
    }

/* Miniature carrée */
.visual-thumb {
    width: 45px;
    height: 45px;
    border-radius: 6px;
    background-color: #eee;
    background-size: cover;
    background-position: center;
    margin-right: 12px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Infos centrales */
.visual-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.visual-store {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--sisley-black);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.visual-name {
    font-size: 0.7rem;
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.badge-brand {
    display: inline-block;
    font-size: 0.6rem;
    background: #f0f0f0;
    color: #555;
    padding: 1px 6px;
    border-radius: 4px;
    margin-top: 2px;
    width: fit-content;
    font-weight: 600;
}

/* Compteur de jours à droite */
.visual-age {
    text-align: center;
    padding-left: 10px;
    border-left: 1px solid #eee;
    margin-left: 10px;
    min-width: 50px;
}

.age-number {
    display: block;
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1;
}

.age-label {
    font-size: 0.55rem;
    text-transform: uppercase;
    color: #aaa;
}