/* ============================================================
   ISMOMIX ULTIMATE DASHBOARD - CSS COMPLET
   ============================================================ */

:root {
    --ismomix-gold: #f9d976;
    --ismomix-gold-gradient: linear-gradient(145deg, #f9d976 0%, #b28e28 50%, #8c6d1d 100%);
    --ismomix-bg: #1a2036;      /* Le bleu nuit de ton image */
    --ismomix-card: #252b48;    /* La couleur des cadres */
    --ismomix-header: #14182b;  /* Couleur barre du haut */
    --ismomix-success: #00ff88;
    --font-main: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* 1. RESET & BASE */
* {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--ismomix-bg);
    color: white;
    font-family: var(--font-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.no-select {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

/* 2. DASHBOARD GRID (4 COLONNES) */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 colonnes parfaites sur PC */
    gap: 20px;
    width: 98%;
    max-width: 1600px;
    margin: 30px auto;
    padding: 0 10px;
    flex: 1;
}

/* 3. DESIGN DES CADRES (WIDGETS) */
.widget {
    background: var(--ismomix-card);
    border-radius: 20px; /* Coins très arrondis comme l'image */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(249, 217, 118, 0.2); /* Fine bordure dorée */
    height: 500px; /* Hauteur harmonisée */
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    transition: transform 0.3s ease;
}

.widget:hover {
    transform: translateY(-5px);
    border-color: var(--ismomix-gold);
}

/* EN-TÊTE DU CADRE (JAUNE) */
.widget-head {
    background: var(--ismomix-gold);
    color: #1a2036;
    padding: 12px 15px;
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

/* CORPS DU CADRE */
.widget-body {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    scrollbar-width: thin;
    scrollbar-color: var(--ismomix-gold) transparent;
}

/* BAS DU CADRE */
.widget-footer {
    padding: 15px;
    background: rgba(0,0,0,0.2);
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* BOUTON DANS LE CADRE */
.btn-yellow {
    background: var(--ismomix-gold-gradient);
    color: #1a2036;
    width: 100%;
    border: none;
    padding: 12px;
    border-radius: 12px;
    font-weight: 900;
    font-size: 0.75rem;
    cursor: pointer;
    text-transform: uppercase;
    transition: 0.2s;
}

.btn-yellow:hover {
    filter: brightness(1.2);
    box-shadow: 0 0 15px rgba(249, 217, 118, 0.3);
}

/* 4. ZONE LIBRE (STYLE SPÉCIFIQUE AU CENTRE) */
.zone-libre {
    min-height: 500px;
    background: var(--ismomix-card);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 2px dashed rgba(249, 217, 118, 0.3);
}

.zl-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 5px;
}

.zl-title span {
    color: var(--ismomix-gold);
    font-style: italic;
}

.zl-logo {
    width: 70px;
    height: 40px;
    background: var(--ismomix-gold);
    border-radius: 8px;
    margin-top: 20px;
    box-shadow: 0 0 20px rgba(249, 217, 118, 0.2);
}

/* 5. ADAPTATION MOBILE */
@media (max-width: 1400px) {
    .dashboard-grid { grid-template-columns: repeat(2, 1fr); } /* 2 colonnes */
}

@media (max-width: 800px) {
    .dashboard-grid { 
        grid-template-columns: 1fr; /* 1 colonne mobile */
        width: 95%;
        margin-top: 15px;
    }
    
    .widget {
        height: auto;
        min-height: 350px;
    }

    .zl-title {
        font-size: 1.8rem;
    }
}

/* Custom Scrollbar pour Chrome/Safari */
.widget-body::-webkit-scrollbar { width: 5px; }
.widget-body::-webkit-scrollbar-thumb { background: var(--ismomix-gold); border-radius: 10px; }