/* ========================================
   DPM FOSA - Styles spécifiques Cards
   Design 3 colonnes avec informations complètes
   Utilise le CSS de base dpm-delegues-cards.css
   ======================================== */

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

/* Card FOSA - Design vertical avec toutes les infos */
.dpm-fosa-card {
    display: flex;
    flex-direction: column;
    padding: 20px;
    min-height: 180px;
    position: relative;
}

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

.dpm-fosa-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-fosa-icon-wrapper svg {
    width: 24px;
    height: 24px;
    color: #ffffff;
    transition: all 0.3s;
}

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

/* Badge FOSA */
.dpm-fosa-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-fosa-card:hover .dpm-fosa-badge {
    color: #11b300;
    background: #f0fdf4;
    border-color: #bbf7d0;
}

/* Nom de la FOSA */
.dpm-fosa-name {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 16px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 42px;
}

/* Informations de localisation */
.dpm-fosa-info-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
}

.dpm-fosa-info-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: #475569;
}

.dpm-fosa-info-item svg {
    width: 16px;
    height: 16px;
    color: #11b300;
    flex-shrink: 0;
    margin-top: 2px;
}

.dpm-fosa-info-label {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    min-width: 50px;
}

.dpm-fosa-info-value {
    font-weight: 500;
    color: #334155;
    flex: 1;
}

/* Divider entre les infos */
.dpm-fosa-divider {
    height: 1px;
    background: #f1f5f9;
    margin: 8px 0;
}

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

/* Animation spéciale pour les FOSA */
.dpm-fosa-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-fosa-card:hover::after {
    width: 100%;
}

/* ========================================
   RESPONSIVE DESIGN FOSA
   ======================================== */

/* Grandes tablettes */
@media (max-width: 1200px) {
    .dpm-fosa-grid {
        gap: 18px;
    }
    
    .dpm-fosa-card {
        padding: 18px;
    }
    
    .dpm-fosa-name {
        font-size: 14px;
    }
    
    .dpm-fosa-info-item {
        font-size: 12px;
    }
}

/* Tablettes moyennes - passage à 2 colonnes */
@media (max-width: 1024px) {
    .dpm-fosa-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .dpm-fosa-card {
        padding: 18px;
        min-height: 170px;
    }
    
    .dpm-fosa-icon-wrapper {
        width: 40px;
        height: 40px;
    }
    
    .dpm-fosa-icon-wrapper svg {
        width: 22px;
        height: 22px;
    }
    
    .dpm-fosa-name {
        font-size: 14px;
        min-height: 40px;
    }
}

/* Tablettes portrait */
@media (max-width: 768px) {
    .dpm-fosa-grid {
        gap: 14px;
    }
    
    .dpm-fosa-card {
        padding: 16px;
        min-height: 160px;
    }
    
    .dpm-fosa-header {
        margin-bottom: 12px;
        padding-bottom: 10px;
    }
    
    .dpm-fosa-icon-wrapper {
        width: 38px;
        height: 38px;
    }
    
    .dpm-fosa-icon-wrapper svg {
        width: 20px;
        height: 20px;
    }
    
    .dpm-fosa-badge {
        font-size: 10px;
        padding: 3px 8px;
    }
    
    .dpm-fosa-name {
        font-size: 13px;
        margin-bottom: 12px;
        min-height: 38px;
    }
    
    .dpm-fosa-info-group {
        gap: 8px;
    }
    
    .dpm-fosa-info-item {
        font-size: 12px;
    }
    
    .dpm-fosa-info-item svg {
        width: 14px;
        height: 14px;
    }
    
    .dpm-fosa-info-label {
        font-size: 10px;
        min-width: 45px;
    }
}

/* Mobiles - passe à 1 colonne */
@media (max-width: 576px) {
    .dpm-fosa-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .dpm-fosa-card {
        padding: 18px;
        min-height: 150px;
    }
    
    .dpm-fosa-header {
        margin-bottom: 14px;
    }
    
    .dpm-fosa-icon-wrapper {
        width: 42px;
        height: 42px;
    }
    
    .dpm-fosa-icon-wrapper svg {
        width: 22px;
        height: 22px;
    }
    
    .dpm-fosa-badge {
        font-size: 11px;
        padding: 4px 10px;
    }
    
    .dpm-fosa-name {
        font-size: 15px;
        margin-bottom: 14px;
        min-height: 42px;
    }
    
    .dpm-fosa-info-group {
        gap: 10px;
    }
    
    .dpm-fosa-info-item {
        font-size: 13px;
    }
    
    .dpm-fosa-info-label {
        font-size: 11px;
        min-width: 50px;
    }
}

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

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