/* ========================================
   DPM AGENCES - Styles spécifiques Cards
   Design alternatif pour les agences
   Utilise le CSS de base dpm-delegues-cards.css
   ======================================== */

/* Grid spécifique pour agences (colonnes plus larges) */
.dpm-agences-grid {
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
}

/* Card Agence - Design horizontal */
.dpm-agence-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    padding: 20px;
    min-height: 120px;
}

/* Icône d'agence - Design carré avec gradient */
.dpm-agence-icon {
    width: 70px;
    height: 70px;
    min-width: 70px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 2px solid #bbf7d0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.dpm-agence-icon svg {
    width: 36px;
    height: 36px;
    color: #15803d;
    transition: all 0.3s;
}

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

.dpm-agence-card:hover .dpm-agence-icon svg {
    color: #ffffff;
}

/* Nom de l'agence */
.dpm-agence-name {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

/* Container de localisation */
.dpm-agence-location {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dpm-location-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #475569;
    line-height: 1.4;
}

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

.dpm-location-label {
    font-weight: 600;
    color: #64748b;
    min-width: 105px;
}

.dpm-location-value {
    font-weight: 500;
    color: #1e293b;
}

/* Barre verte en bas au lieu du haut pour différencier */
.dpm-agence-card::before {
    top: auto;
    bottom: 0;
    height: 3px;
}

/* ========================================
   RESPONSIVE DESIGN AGENCES
   ======================================== */

/* Tablettes */
@media (max-width: 1024px) {
    .dpm-agences-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }
    
    .dpm-agence-icon {
        width: 65px;
        height: 65px;
        min-width: 65px;
    }
    
    .dpm-agence-icon svg {
        width: 32px;
        height: 32px;
    }
}

/* Petites tablettes */
@media (max-width: 768px) {
    .dpm-agences-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .dpm-agence-card {
        gap: 16px;
        padding: 18px;
    }
    
    .dpm-agence-icon {
        width: 60px;
        height: 60px;
        min-width: 60px;
    }
    
    .dpm-agence-icon svg {
        width: 30px;
        height: 30px;
    }
    
    .dpm-agence-name {
        font-size: 17px;
    }
    
    .dpm-location-item {
        font-size: 12px;
    }
}

/* Mobiles */
@media (max-width: 576px) {
    .dpm-agences-grid {
        grid-template-columns: 1fr;
    }
    
    /* Passage en mode vertical sur mobile */
    .dpm-agence-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        padding: 16px;
    }
    
    .dpm-agence-icon {
        width: 56px;
        height: 56px;
        min-width: 56px;
        align-self: center;
    }
    
    .dpm-agence-icon svg {
        width: 28px;
        height: 28px;
    }
    
    .dpm-agence-name {
        font-size: 16px;
        text-align: center;
        width: 100%;
    }
    
    .dpm-agence-location {
        width: 100%;
    }
    
    .dpm-location-label {
        min-width: 95px;
        font-size: 11px;
    }
    
    .dpm-location-value {
        font-size: 12px;
    }
}

/* Très petits écrans */
@media (max-width: 380px) {
    .dpm-agence-card {
        padding: 14px;
    }
    
    .dpm-agence-icon {
        width: 52px;
        height: 52px;
        min-width: 52px;
    }
    
    .dpm-agence-icon svg {
        width: 26px;
        height: 26px;
    }
    
    .dpm-agence-name {
        font-size: 15px;
    }
    
    .dpm-location-item {
        font-size: 11px;
    }
    
    .dpm-location-label {
        min-width: 85px;
    }
}

/* Mode impression */
@media print {
    .dpm-agences-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dpm-agence-card {
        page-break-inside: avoid;
    }
}
