/* ===================================
   ⚡ DASHBOARD INTRANET v2.1.0 - BUILD 20251013-028 ⚡
   FIX : Images CONTAIN (complètes) + Bouton VERT bien visible
   MODE STANDALONE : Template PHP pur sans thème WordPress
   =================================== */

/* ===================================
   RESET ET BASE
   =================================== */

/* MASQUER LE HEADER WORDPRESS (intranet.css s'en occupe aussi) */
body.page .site-header,
.site-header,
header.site-header,
#site-header,
.header-main,
.main-navigation,
nav.main-navigation,
.site-branding {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* Remettre le body en haut */
body.page,
body.page-template {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.holidee-dashboard-v2 {
    margin: 0 !important;
    padding: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f5f7fa;
    /* Plus besoin de l'escape car le template standalone gère tout */
    overflow-x: hidden !important;
}

/* Reset WordPress - TOUS les conteneurs possibles */
.site-content,
.entry-content,
.page-content,
.um-account-content,
.um-account-main,
.site-main,
.content-area,
.site,
#content,
#primary,
.container,
.wrap,
article,
.hentry,
.page,
.type-page,
body.page,
body.page-template {
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
    width: 100% !important;
    left: 0 !important;
    right: 0 !important;
}

* {
    box-sizing: border-box;
}

/* ===================================
   1. HEADER - ZONE SUPÉRIEURE
   =================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: white;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.header-left {
    display: flex;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background 0.2s;
}

/* Contraintes de taille pour le logo du site dans le header */
.main-header .custom-logo,
.main-header .logo-img {
    max-height: 32px !important;
    height: 32px !important;
    width: auto !important;
    object-fit: contain !important;
    border-radius: 4px;
}

.main-header .custom-logo-link,
.main-header .logo-container,
.main-header .logo-slot {
    display: flex;
    align-items: center;
    gap: 8px;
}

.main-header .logo-text {
    font-size: 16px;
    font-weight: 700;
}

.logo-container:hover {
    background: #f7fafc;
}

.logo-icon {
    font-size: 24px;
}

.logo-text {
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
    letter-spacing: -0.2px;
}

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

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    background: #f7fafc;
    border-radius: 8px;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
    line-height: 1;
}

.user-role {
    font-size: 11px;
    color: #718096;
    line-height: 1;
}

.logout-btn {
    background: white;
    border: 1px solid #e2e8f0;
    color: #718096;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
}

.logout-btn:hover {
    background: #fff5f5;
    border-color: #fc8181;
    color: #e53e3e;
}

/* ===================================
   2. LAYOUT GRID : SIDEBAR + CONTENT
   =================================== */
.dashboard-layout {
    display: grid !important;
    grid-template-columns: 240px 1fr !important;
    grid-template-rows: 1fr !important;
    margin-top: 60px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    min-height: calc(100vh - 60px) !important;
    gap: 0 !important;
    column-gap: 0 !important;
    row-gap: 0 !important;
}

/* ===================================
   3. SIDEBAR - MENU LATÉRAL
   =================================== */
.sidebar {
    grid-column: 1 !important;
    background: #2d3748 !important;
    padding: 20px 12px !important;
    overflow-y: auto !important;
}

.sidebar-nav {
    display: flex !important;
    flex-direction: column !important;
    gap: 24px !important;
}

.nav-section-title {
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    color: #a0aec0 !important;
    padding: 0 12px !important;
    margin: 0 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.nav-menu {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
}

.nav-item {
    margin: 0;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    color: #cbd5e0;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s;
    font-size: 14px;
    font-weight: 500;
}

.nav-link:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}

.nav-item.active .nav-link {
    background: #4299e1;
    color: white;
    font-weight: 600;
}

.nav-link--attention {
    position: relative;
    padding-right: 28px;
}

.nav-link--attention::after {
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #F86624;
    box-shadow: 0 0 0 4px rgba(248, 102, 36, 0.18);
}

.nav-icon {
    font-size: 18px;
    min-width: 18px;
}

.nav-text {
    flex: 1;
}

/* ===================================
   4. CONTENT - ZONE PRINCIPALE
   =================================== */
.main-content {
    grid-column: 2 !important;
    background: white !important;
    padding: 24px !important;
    margin: 0 !important;
    overflow-y: auto !important;
}

/* ===================================
   STATS CARDS
   =================================== */
.stats-grid-v2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card-v2 {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.2s;
}

.stat-card-v2:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-color: #cbd5e0;
}

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

.stat-rookies .stat-icon {
    background: #ebf8ff;
}

.stat-primes .stat-icon {
    background: #f0fff4;
}

.stat-code .stat-icon {
    background: #fef5e7;
}

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

.stat-label {
    font-size: 12px;
    color: #718096;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 28px;
    font-weight: 800;
    color: #2d3748;
    line-height: 1;
}

.quick-copy-btn {
    background: #edf2f7;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s;
}

.quick-copy-btn:hover {
    background: #4299e1;
    transform: scale(1.1);
}

/* ===================================
   TRACKING INFO
   =================================== */
.tracking-info-compact {
    background: linear-gradient(135deg, #ebf8ff 0%, #e6fffa 100%);
    border: 1px solid #bee3f8;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.tracking-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #2c5282;
    font-weight: 600;
}

.link-copy-btn {
    background: #3182ce;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(49, 130, 206, 0.2);
}

.link-copy-btn:hover {
    background: #2c5282;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(49, 130, 206, 0.3);
}

.link-copy-btn:active {
    transform: translateY(0);
}

.label-icon {
    font-size: 18px;
}

.tracking-label code {
    background: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: #2c5282;
    font-weight: 700;
    border: 1px solid #bee3f8;
}

/* ===================================
   ANNONCES - DESIGN MODERNE
   =================================== */
.annonces-section-v2 {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.section-title-bar {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #edf2f7;
}

.section-title-bar h2 {
    font-size: 20px;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 6px 0;
}

.section-subtitle {
    font-size: 14px;
    color: #718096;
}

/* Grid responsive avec flexbox fallback */
.annonces-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Card moderne avec image carrée */
.annonce-card {
        flex: 0 0 auto;
        width: 100%;
        max-width: 100%;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
}

/* Desktop: cartes 200px de large (10px > image de 190px) */
@media (min-width: 900px) {
    .annonces-grid {
        justify-content: flex-start;
        gap: 16px;
    }
    .annonce-card {
        width: 200px !important;
        max-width: 200px !important;
    }
}

.annonce-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    border-color: #cbd5e0;
}

/* Image carrée avec ratio 1:1 */
.annonce-image {
    position: relative;
    width: 100%;
    padding-top: 100%; /* Ratio 1:1 = carré parfait */
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

/* Desktop: forcer les visuels à 190x190px max */
@media (min-width: 900px) {
    .annonce-card .annonce-image {
        width: 190px !important;
        height: 190px !important;
        padding-top: 0 !important; /* annule le ratio carré */
        margin: 0 auto 12px auto !important; /* centré dans la card */
        background-size: contain !important; /* afficher l'image entière */
    }

    /* Optionnel: ajuster le contenu pour ne pas paraître vide autour */
    .annonce-card .annonce-content {
        text-align: center;
    }
}

.annonce-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.3) 100%);
    z-index: 1;
}

/* Placeholder pour annonces sans image */
.annonce-placeholder {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-icon {
    position: absolute;
    font-size: 80px;
    z-index: 2;
    opacity: 0.9;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

/* Badge DRAFT */
.draft-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #48bb78;
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(72, 187, 120, 0.4);
}

/* Contenu de la card */
.annonce-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.annonce-title {
    font-size: 16px;
    font-weight: 700;
    color: #2d3748;
    margin: 0; /* on gère l'espacement via le gap du .annonce-content */
    line-height: 1.35;
    /* Laisse le titre prendre la place nécessaire sans rognage */
    display: block;
    overflow: visible;
    min-height: 0;
}

/* Métadonnées de l'annonce */
.annonce-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.meta-item {
    font-size: 13px;
    color: #718096;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Actions */
.annonce-actions {
    display: flex;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid #edf2f7;
    margin-top: auto; /* pousse les actions en bas pour homogénéiser visuellement */
    min-height: 56px; /* hauteur constante pour aligner les boutons */
    align-items: center;
}

.btn-primary {
    flex: 1;
    background: #4299e1;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary:hover {
    background: #3182ce;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(66, 153, 225, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary.copied {
    background: #48bb78 !important;
    pointer-events: none;
}

/* État vide */
.no-annonces {
    text-align: center;
    padding: 60px 20px;
    color: #718096;
}

.no-annonces-icon {
    font-size: 80px;
    margin-bottom: 16px;
    display: block;
}

/* ===================================
   ÉTAT VIDE
   =================================== */
.no-works-state-v2 {
    text-align: center;
    padding: 60px 20px;
}

.empty-icon-v2 {
    font-size: 80px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.no-works-state-v2 h4 {
    font-size: 20px;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 12px 0;
}

.no-works-state-v2 p {
    font-size: 15px;
    color: #718096;
    margin: 8px 0;
}

/* ===================================
   MENU BURGER MOBILE
   =================================== */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    color: #2d3748;
    line-height: 1;
}

.mobile-overlay {
    display: none !important; /* Jamais visible par défaut */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    pointer-events: none;
}

/* L'overlay sera activé uniquement dans le media query mobile */
.mobile-overlay.active {
    pointer-events: auto;
}

/* ===================================
   RESPONSIVE
   =================================== */

/* Tablette - Réduire la sidebar */
@media (max-width: 1024px) {
    .dashboard-layout {
        grid-template-columns: 180px 1fr;
    }
    
    .sidebar {
        width: 180px;
    }
    
    .stats-grid-v2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .work-grid {
        grid-template-columns: 1fr;
    }
    
    .main-content {
        padding: 20px;
    }
}

/* Mobile - Menu hamburger + Layout vertical */
@media (max-width: 768px) {
    /* Afficher le menu burger sur mobile */
    .mobile-menu-toggle {
        display: block;
    }
    
    /* Activer l'overlay uniquement sur mobile */
    .mobile-overlay {
        display: none; /* Caché par défaut */
    }
    
    .mobile-overlay.active {
        display: block; /* Visible quand menu ouvert */
    }
    
    .dashboard-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    /* Header mobile ajustements */
    .main-header {
        height: 56px;
        padding: 0 12px;
    }
    
    .header-left {
        display: flex;
        align-items: center;
        gap: 12px;
    }
    
    .header-left img {
        height: 32px;
    }
    
    .header-right {
        gap: 8px;
    }
    
    .user-info {
        display: none;
    }
    
    /* SIDEBAR MOBILE - Cachée complètement par défaut */
    .sidebar {
        position: fixed !important; /* Sort du flux grid */
        left: -100%;
        top: 0;
        width: 280px;
        height: 100vh;
        z-index: 999;
        transition: left 0.3s ease;
        box-shadow: 4px 0 20px rgba(0,0,0,0.3);
        overflow-y: auto;
        display: block !important; /* Pas de grid sur la sidebar */
    }
    
    .sidebar.open {
        left: 0;
    }
    
    /* Main content mobile - Pleine largeur SANS espace sidebar */
    .main-content {
        grid-column: 1 / -1 !important; /* Prend TOUTES les colonnes */
        padding: 16px 12px !important;
        margin-top: 56px !important;
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 100vw !important;
    }
    
    /* Stats grid mobile - 1 colonne */
    .stats-grid-v2 {
        grid-template-columns: 1fr;
    }
    
    /* Annonces grid mobile - 1 colonne centrée */
    .annonces-grid {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .annonce-card {
        max-width: 100%;
        width: 100%;
        gap: 0; /* Pas d'espace entre image et contenu */
        flex-direction: column; /* Image au-dessus, contenu en dessous */
    }
    
    /* IMAGE CARRÉE 1:1 sur mobile - IMAGE COMPLÈTE VISIBLE */
    .annonce-image {
        position: relative !important;
        width: 100% !important;
        height: 0 !important;
        padding-top: 100% !important; /* Ratio 1:1 carré STRICT */
        background-size: contain !important; /* CONTIENT l'image entière sans rogner */
        background-repeat: no-repeat !important;
        background-position: center !important;
        border-radius: 12px !important;
        flex-shrink: 0 !important;
        background-color: #f7fafc !important; /* Fond gris clair pour voir le carré */
    }
    
    .annonce-content {
        padding: 16px;
        width: 100%;
        flex-shrink: 0;
        background: white;
    }
    
    .annonce-title {
        font-size: 15px;
        margin-bottom: 10px;
        line-height: 1.3;
        font-weight: 700;
        color: #1a202c;
    }
    
    .annonce-meta {
        flex-direction: column;
        gap: 6px;
        margin-bottom: 12px;
        font-size: 13px;
    }
    
    .meta-item {
        display: inline-block;
        background: #edf2f7;
        padding: 4px 10px;
        border-radius: 6px;
        font-size: 12px;
    }
    
    .annonce-actions {
        width: 100%;
        margin-top: 12px;
        display: block !important; /* S'assure qu'il est visible */
    }
    
    /* Bouton VERT et VISIBLE sur mobile */
    .btn-primary,
    .btn-copy-job {
        width: 100% !important;
        padding: 14px 20px !important;
        font-size: 15px !important;
        font-weight: 700 !important;
        border-radius: 10px !important;
        background: #48bb78 !important; /* VERT */
        color: white !important;
        border: none !important;
        cursor: pointer !important;
        display: block !important;
        text-align: center !important;
    }
    
    .btn-copy-job:hover {
        background: #38a169 !important;
        transform: scale(1.02);
    }
    
    .stat-card-v2 {
        padding: 16px;
    }
    
    .stat-icon {
        width: 40px;
        height: 40px;
    }
    
    .stat-number-v2 {
        font-size: 28px;
    }
    
    /* Tracking info mobile */
    .tracking-info {
        padding: 16px;
    }
    
    .tracking-info strong {
        font-size: 18px;
    }
    
    /* Work cards mobile - 1 colonne */
    .work-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .work-card {
        padding: 16px;
    }
    
    .work-card img {
        max-width: 100%;
    }
}

/* Très petit mobile */
@media (max-width: 480px) {
    .main-header {
        height: 50px;
    }
    
    .header-left img {
        height: 28px;
    }
    
    .main-content {
        padding: 12px 8px;
        margin-top: 50px;
    }
    
    .stat-number-v2 {
        font-size: 24px;
    }
    
    .tracking-info {
        padding: 12px;
    }
    
    .work-card {
        padding: 12px;
    }
    
    .work-card h3 {
        font-size: 16px;
    }
}

/* ===================================
   SYSTÈME DE VUES SPA
   =================================== */
.dashboard-view {
    display: none;
}

.dashboard-view.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* En-têtes des vues */
.view-header {
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
}

.view-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 8px 0;
}

.view-header p {
    font-size: 16px;
    color: #718096;
    margin: 0;
}

/* ===================================
   MES ROOKIES - STATS
   =================================== */
.rookies-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.stat-mini {
    flex: 1 1 200px;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    border-left: 4px solid #4299e1;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-mini:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.stat-mini.stat-success {
    border-left-color: #48bb78;
}

.stat-mini.stat-warning {
    border-left-color: #ed8936;
}

.stat-mini.stat-danger {
    border-left-color: #f56565;
}

.stat-mini-value {
    font-size: 32px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 4px;
}

.stat-mini-label {
    font-size: 14px;
    color: #718096;
    font-weight: 500;
}

/* ===================================
   FILTRES TABS
   =================================== */
.filter-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 10px 20px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-tab:hover {
    background: #f7fafc;
    border-color: #cbd5e0;
}

.filter-tab.active {
    background: #4299e1;
    border-color: #4299e1;
    color: white;
}

/* ===================================
   TABLEAUX
   =================================== */
.table-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.rookies-table,
.primes-table {
    width: 100%;
    border-collapse: collapse;
}

.rookies-table thead,
.primes-table thead {
    background: #f7fafc;
}

.rookies-table th,
.primes-table th {
    padding: 16px 20px;
    text-align: left;
    font-size: 14px;
    font-weight: 700;
    color: #4a5568;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rookies-table tbody tr,
.primes-table tbody tr {
    border-top: 1px solid #e2e8f0;
    transition: background 0.2s ease;
}

.rookies-table tbody tr:hover,
.primes-table tbody tr:hover {
    background: #f7fafc;
}

.rookies-table td,
.primes-table td {
    padding: 16px 20px;
    font-size: 14px;
    color: #2d3748;
}

.no-data-row:hover {
    background: white !important;
}

/* Badges de statut */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.status-badge.status-en-cours {
    background: #bee3f8;
    color: #2c5282;
}

.status-badge.status-essai {
    background: #feebc8;
    color: #c05621;
}

.status-badge.status-valide {
    background: #c6f6d5;
    color: #22543d;
}

.status-badge.status-abandonne {
    background: #fed7d7;
    color: #742a2a;
}

/* ===================================
   MES PRIMES - PLAFOND
   =================================== */
.plafond-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
    margin-bottom: 32px;
}

.plafond-card h3 {
    margin: 0 0 20px 0;
    font-size: 20px;
    font-weight: 700;
    opacity: 0.95;
}

.plafond-bar {
    width: 100%;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
}

.plafond-progress {
    height: 100%;
    background: linear-gradient(90deg, #48bb78 0%, #38a169 100%);
    border-radius: 12px;
    transition: width 0.5s ease;
}

.plafond-details {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    font-weight: 600;
}

.plafond-remaining {
    opacity: 0.9;
}

/* ===================================
   🔧 DEBUG VISUEL - DÉSACTIVÉ
   Décommentez les règles ci-dessous pour activer le debug
   =================================== */
/*
.holidee-dashboard-v2 {
    outline: 3px solid red;
    position: relative;
}

.holidee-dashboard-v2::before {
    content: 'CONTAINER PRINCIPAL';
    position: absolute;
    top: 0;
    left: 0;
    background: red;
    color: white;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: bold;
    z-index: 9999;
}

.main-header {
    outline: 3px solid green !important;
    position: relative;
}

.main-header::before {
    content: 'HEADER';
    position: absolute;
    top: 0;
    left: 0;
    background: green;
    color: white;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: bold;
    z-index: 9999;
}

.dashboard-layout {
    outline: 3px solid purple !important;
    position: relative;
}

.dashboard-layout::before {
    content: 'DASHBOARD LAYOUT (Grid)';
    position: absolute;
    top: 0;
    left: 0;
    background: purple;
    color: white;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: bold;
    z-index: 9999;
}

.sidebar {
    outline: 3px solid orange !important;
    position: relative;
}

.sidebar::before {
    content: 'SIDEBAR';
    position: absolute;
    top: 0;
    left: 0;
    background: orange;
    color: white;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: bold;
    z-index: 9999;
}

.main-content {
    outline: 3px solid blue !important;
    position: relative;
}

.main-content::before {
    content: 'MAIN CONTENT';
    position: absolute;
    top: 0;
    left: 0;
    background: blue;
    color: white;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: bold;
    z-index: 9999;
}

.mobile-overlay {
    outline: 5px dashed hotpink !important;
}

.mobile-overlay::before {
    content: 'OVERLAY MOBILE';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: hotpink;
    color: white;
    padding: 12px 24px;
    font-size: 18px;
    font-weight: bold;
    z-index: 9999;
}
*/

/* ===================================
   RESPONSIVE - VUES
   =================================== */
@media (max-width: 768px) {
    .view-header h1 {
        font-size: 24px;
    }
    
    .rookies-stats {
        gap: 12px;
    }
    
    .stat-mini {
        flex: 1 1 140px;
        padding: 16px;
    }
    
    .stat-mini-value {
        font-size: 24px;
    }
    
    .filter-tabs {
        gap: 6px;
    }
    
    .filter-tab {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .table-container {
        overflow-x: auto;
    }
    
    .rookies-table,
    .primes-table {
        min-width: 600px;
    }
    
    .rookies-table th,
    .rookies-table td,
    .primes-table th,
    .primes-table td {
        padding: 12px 16px;
        font-size: 13px;
    }
    
    .plafond-card {
        padding: 24px;
    }
}

/* ===================================
   UTILITAIRES
   =================================== */

/* MASQUER TOUT CE QUI EST LIÉ AUX COOKIES */
.cookie-banner,
.cookie-consent,
.gdpr-banner,
div[class*="cookie"],
div[id*="cookie"],
div[class*="consent"],
div[id*="consent"],
#moove_gdpr_cookie_modal,
#moove_gdpr_cookie_info_bar,
.moove-gdpr-modal-content,
#tarteaucitronRoot,
.cli-modal-backdrop,
.cli-modal,
#cookienotice,
.cc-window,
.cc-banner {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    position: absolute !important;
    left: -9999px !important;
    z-index: -9999 !important;
}

/* Supprimer les overlays qui bloquent */
body::after,
body::before {
    display: none !important;
}
