:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e67e22;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    font-family: 'Segoe UI', sans-serif;
    line-height: 1.6;
}

.hero-section {
    position: relative;
    min-height: 60vh; /* Hauteur responsive */
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Overlay sombre pour le contraste */
    z-index: 2;
}

.hero-text {
    position: relative;
    z-index: 3;
    color: white;
    max-width: 800px;
    padding: 20px;
    font-size: 1.5em;
    text-align: center;
}

.team-section {
    padding: 4rem 2rem;
    background: #f8f9fa;
    margin: 3rem 0;
    border-radius: 15px;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.underline {
    width: 100px;
    height: 3px;
    background: var(--accent-color);
    margin: 0 auto;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.team-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.team-card:hover {
    transform: translateY(-5px);
}

.icon-wrapper {
    font-size: 2.5em;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.services-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

.service-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: scale(1.03);
}

.service-image {
    height: 250px;
    background-size: cover;
    background-position: center;
    filter: grayscale(20%);
}

.service-card h4 {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    margin: 0;
    text-align: center;
    font-size: 1.5em;
}

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

.hero-section, .team-section, .services-section {
    animation: fadeIn 0.8s ease-out forwards;
}

/* Media Query pour écrans inférieurs à 768px */
@media (max-width: 768px) {
    .hero-text {
        font-size: 1.2em; /* Réduction de la taille de police */
        padding: 10px; /* Réduction du padding */
    }

    .team-section {
        padding: 2rem 1rem; /* Réduction du padding */
    }

    .team-grid {
        grid-template-columns: 1fr; /* Une seule colonne */
    }

    .team-card {
        padding: 1.5rem; /* Réduction du padding */
    }

    .team-card:hover {
        transform: none; /* Désactivation de l’effet de survol */
    }

    .services-section {
        padding: 1rem; /* Réduction du padding */
    }

    .service-card h4 {
        font-size: 1.2em; /* Réduction de la taille des titres */
    }

    .service-card:hover {
        transform: none; /* Désactivation de l’effet de survol */
    }
}

/* Media Query pour écrans inférieurs à 480px */
@media (max-width: 480px) {
    .hero-text {
        font-size: 1em; /* Réduction supplémentaire de la taille de police */
    }

    .section-title {
        font-size: 2em; /* Ajustement de la taille des titres de section */
    }

    .service-image {
        height: 200px; /* Réduction de la hauteur des images */
    }
}