/* ==========================================================================
   HOME PAGE SPECIFIC STYLES
   ========================================================================== */

/* Styles spécifiques à la page d'accueil si nécessaire */
.activities-grid {
    margin-bottom: 40px;
}

/* Section Comment fonctionne avec image à gauche et cards horizontales à droite */
.how-it-works-section {
    padding: 70px 0;
    background-color: var(--background-light);
}

.how-it-works-image-container {
    display: flex;
    align-items: flex-start; /* Aligner en haut pour correspondre aux étapes */
    height: 100%;
    padding-top: 5px; /* Petit ajustement pour aligner parfaitement */
}

.how-it-works-image {
    border-radius: var(--border-radius);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    max-width: 100%;
    object-fit: cover; /* S'assurer que l'image conserve ses proportions */
    max-height: calc(4 * 88px); /* Hauteur calculée pour correspondre à 4 étapes + gaps */
}

.how-it-works-steps {
    display: flex;
    flex-direction: column;
    gap: 12px; /* Réduit l'espacement entre les étapes */
    max-width: 85%; /* Limite la largeur des étapes */
    margin: 0 auto; /* Centrer les étapes dans leur conteneur */
}

.step-card {
    background-color: white;
    border-radius: 15px; /* Border radius plus important */
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.step-content {
    padding: 14px; /* Padding réduit */
    display: flex;
    align-items: flex-start;
    gap: 15px; /* Gap réduit */
}

.step-icon {
    width: 45px; /* Taille réduite */
    height: 45px; /* Taille réduite */
    min-width: 45px; /* Taille réduite */
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, #2980b9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem; /* Taille réduite */
    transition: transform 0.3s ease;
}

.step-card:hover .step-icon {
    transform: scale(1.1);
}

.step-text {
    flex-grow: 1;
}

.step-text h3 {
    font-size: 1.1rem; /* Taille réduite */
    font-weight: 600;
    margin-bottom: 5px; /* Espacement réduit */
    color: #333;
}

.step-text p {
    color: #666;
    line-height: 1.4; /* Line height réduit */
    margin-bottom: 0;
    font-size: 0.85rem; /* Taille réduite */
}

/* Style pour le bouton */
.how-it-works-section .text-center {
    margin-top: 25px; /* Plus d'espace avant le bouton */
    max-width: 85%; /* Limiter la largeur pour correspondre aux étapes */
    margin-left: auto;
    margin-right: auto;
}

.how-it-works-section .btn {
    padding: 10px 25px; /* Taille du bouton ajustée */
    font-weight: 500;
    font-size: 0.95rem; /* Taille du texte du bouton ajustée */
}

@media (max-width: 991px) {
    .how-it-works-section {
        padding: 50px 0;
    }
    
    .how-it-works-image-container {
        margin-bottom: 25px;
        justify-content: center;
    }
    
    .how-it-works-image {
        max-height: none; /* Permettre à l'image de prendre sa taille naturelle sur mobile */
    }
    
    .how-it-works-steps {
        max-width: 100%; /* Pleine largeur sur mobile */
    }
    
    .step-content {
        padding: 12px;
    }
    
    .step-icon {
        width: 38px;
        height: 38px;
        min-width: 38px;
        font-size: 1rem;
    }
    
    .step-text h3 {
        font-size: 1rem;
    }
    
    .step-text p {
        font-size: 0.8rem;
    }
    
    .how-it-works-section .text-center {
        max-width: 100%;
    }
}

@media (max-width: 767px) {
    .step-icon {
        width: 35px;
        height: 35px;
        min-width: 35px;
    }
    
    .how-it-works-steps {
        gap: 10px;
    }
}

/* Styles pour la section Ce qui nous différencie */
.differentiators-section {
    padding: 60px 0;
    background-color: white;
}

.differentiators-section .section-title {
    margin-bottom: 40px;
}

.differentiator-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    padding: 25px;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid var(--primary-color);
}

.differentiator-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.differentiator-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(52, 152, 219, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.differentiator-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.differentiator-text {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.cta-button-container {
    text-align: center;
    margin-top: 40px;
}

.cta-button {
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 30px;
}