/* ========================================
   DPM LABORATOIRES - Styles spécifiques Cards
   Design compact 2 colonnes avec texte sur une ligne
   Utilise le CSS de base dpm-delegues-cards.css
   ======================================== */

/* Grid spécifique pour laboratoires (2 colonnes fixes) */
.dpm-laboratoires-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* Card Laboratoire - Design compact vertical */
.dpm-laboratoire-card {
    display: flex;
    flex-direction: column;
    padding: 20px;
    min-height: 140px;
    position: relative;
}

/* En-tête de la card avec badge */
.dpm-labo-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f5f9;
}

.dpm-labo-icon-wrapper {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s;
}

.dpm-labo-icon-wrapper svg {
    width: 24px;
    height: 24px;
    color: #ffffff;
    transition: all 0.3s;
}

.dpm-laboratoire-card:hover .dpm-labo-icon-wrapper {
    background: linear-gradient(135deg, #11b300 0%, #0ea300 100%);
    transform: rotate(-10deg) scale(1.05);
}

/* Badge laboratoire */
.dpm-labo-badge {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    background: #f8fafc;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.dpm-laboratoire-card:hover .dpm-labo-badge {
    color: #11b300;
    background: #f0fdf4;
    border-color: #bbf7d0;
}

/* Nom du laboratoire - IMPORTANT: sur une seule ligne */
.dpm-labo-name {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 14px 0;
    line-height: 1.3;
    
    /* Forcer sur une seule ligne */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    
    /* Largeur maximale */
    max-width: 100%;
}

/* Localisation (agence) */
.dpm-labo-location {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #475569;
    margin-top: auto;
}

.dpm-labo-location svg {
    width: 16px;
    height: 16px;
    color: #11b300;
    flex-shrink: 0;
}

.dpm-labo-location span {
    font-weight: 500;
    color: #64748b;
}

/* Effet de bordure latérale au lieu du haut */
.dpm-laboratoire-card::before {
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
}

/* ========================================
   RESPONSIVE DESIGN LABORATOIRES
   ======================================== */

/* Tablettes larges */
@media (max-width: 1200px) {
    .dpm-laboratoires-grid {
        gap: 18px;
    }
    
    .dpm-laboratoire-card {
        padding: 18px;
    }
    
    .dpm-labo-name {
        font-size: 15px;
    }
}

/* Tablettes */
@media (max-width: 1024px) {
    .dpm-laboratoires-grid {
        gap: 16px;
    }
    
    .dpm-labo-icon-wrapper {
        width: 40px;
        height: 40px;
    }
    
    .dpm-labo-icon-wrapper svg {
        width: 22px;
        height: 22px;
    }
    
    .dpm-labo-name {
        font-size: 14px;
    }
    
    .dpm-labo-location {
        font-size: 13px;
    }
}

/* Petites tablettes */
@media (max-width: 768px) {
    /* Reste en 2 colonnes mais avec moins d'espace */
    .dpm-laboratoires-grid {
        gap: 14px;
    }
    
    .dpm-laboratoire-card {
        padding: 16px;
        min-height: 130px;
    }
    
    .dpm-labo-header {
        margin-bottom: 12px;
        padding-bottom: 10px;
    }
    
    .dpm-labo-icon-wrapper {
        width: 38px;
        height: 38px;
    }
    
    .dpm-labo-icon-wrapper svg {
        width: 20px;
        height: 20px;
    }
    
    .dpm-labo-badge {
        font-size: 10px;
        padding: 3px 8px;
    }
    
    .dpm-labo-name {
        font-size: 13px;
        margin-bottom: 12px;
    }
    
    .dpm-labo-location {
        font-size: 12px;
    }
    
    .dpm-labo-location svg {
        width: 14px;
        height: 14px;
    }
}

/* Mobiles - passe à 1 colonne */
@media (max-width: 576px) {
    .dpm-laboratoires-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .dpm-laboratoire-card {
        padding: 18px;
        min-height: 120px;
    }
    
    .dpm-labo-header {
        margin-bottom: 14px;
    }
    
    .dpm-labo-icon-wrapper {
        width: 42px;
        height: 42px;
    }
    
    .dpm-labo-icon-wrapper svg {
        width: 22px;
        height: 22px;
    }
    
    .dpm-labo-badge {
        font-size: 11px;
        padding: 4px 10px;
    }
    
    .dpm-labo-name {
        font-size: 15px;
        margin-bottom: 12px;
    }
    
    .dpm-labo-location {
        font-size: 13px;
    }
}

/* Très petits écrans */
@media (max-width: 380px) {
    .dpm-laboratoire-card {
        padding: 16px;
    }
    
    .dpm-labo-icon-wrapper {
        width: 40px;
        height: 40px;
    }
    
    .dpm-labo-icon-wrapper svg {
        width: 20px;
        height: 20px;
    }
    
    .dpm-labo-name {
        font-size: 14px;
    }
    
    .dpm-labo-location {
        font-size: 12px;
    }
}

/* Mode impression - 2 colonnes compactes */
@media print {
    .dpm-laboratoires-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .dpm-laboratoire-card {
        page-break-inside: avoid;
        padding: 12px;
        min-height: auto;
    }
    
    .dpm-labo-header {
        margin-bottom: 8px;
        padding-bottom: 6px;
    }
    
    .dpm-labo-name {
        font-size: 12px;
        margin-bottom: 8px;
    }
    
    .dpm-labo-location {
        font-size: 11px;
    }
}

/* Animation spéciale pour les laboratoires */
.dpm-laboratoire-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #11b300 50%, transparent 100%);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.dpm-laboratoire-card:hover::after {
    width: 100%;
}
