/* Section principale */
.commerciaux-section {
    padding: 40px 0;
    background-color: white;
}

.commerciaux-section h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #333;
    font-weight: 600;
}

/* Grille et cartes */
.commercial-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.commercial-card {
    padding: 15px;
    margin-bottom: 30px;
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
}

.commercial-card:nth-child(1) { animation-delay: 0.1s; }
.commercial-card:nth-child(2) { animation-delay: 0.2s; }
.commercial-card:nth-child(3) { animation-delay: 0.3s; }
.commercial-card:nth-child(4) { animation-delay: 0.4s; }
.commercial-card:nth-child(5) { animation-delay: 0.5s; }
.commercial-card:nth-child(6) { animation-delay: 0.6s; }
.commercial-card:nth-child(7) { animation-delay: 0.7s; }
.commercial-card:nth-child(8) { animation-delay: 0.8s; }

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

/* Carte individuelle */
.card-wrapper {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Image */
.commercial-image {
    text-align: center;
    padding: 25px 25px 15px;
    /*background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);*/
}

.commercial-image img {
    /*border-radius: 50%;
    border: 5px solid white;*/
    object-fit: cover;
    width: 200px;
    height: 200px;
}

/* Informations */
.commercial-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.commercial-name {
    color: #333;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 10px;
    text-align: center;
}

.commercial-position {
    color: #667eea;
    font-weight: 500;
    text-align: center;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.commercial-departements {
    color: #666;
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.4;
    flex-grow: 1;
}

/* Contacts */
.commercial-contact {
    margin-top: auto;
}

.contact-mail,
.contact-phone {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.contact-mail:hover,
.contact-phone:hover {
    background: #e9ecef;
}

.contact-mail i,
.contact-phone i {
    color: #667eea;
    margin-right: 10px;
    font-size: 1.1rem;
}

.contact-mail a {
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
    flex-grow: 1;
}

.contact-mail a:hover {
    color: #667eea;
}

.contact-phone span {
    color: #333;
    font-size: 0.9rem;
    flex-grow: 1;
}

/* Responsive */
@media (max-width: 1199px) {
    .commercial-card {
        flex: 0 0 33.333%;
        max-width: 33.333%;
    }
}

@media (max-width: 991px) {
    .commercial-card {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 767px) {
    .commercial-card {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .commercial-image img {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 575px) {
    .commerciaux-section {
        padding: 20px 0;
    }
    
    .commercial-card {
        padding: 10px;
    }
    
    .commercial-info {
        padding: 15px;
    }
}