/* ============================= */
/* Variables */
/* ============================= */
:root {
    --font-primary: 'Arial, sans-serif';
    --font-secondary: 'Arial, sans-serif';
    --primary-color: #4CAF50;
    --secondary-color: #333;
    --background-color: #f0f0f0;
    --card-padding: 20px;
    --card-border-radius: 10px;
}

/* ============================= */
/* Reset */
/* ============================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ============================= */
/* Global Styles */
/* ============================= */
body {
    font-family: var(--font-secondary);
    background-color: var(--background-color);
    color: var(--secondary-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}


h1 {
    margin-bottom: 5px; /* Réduit l'espace en bas de h1 */
    color: var(--secondary-color);
}

h2 p {
    margin-top: 0; /* Réduit ou élimine l'espace en haut de h2 */
    margin-bottom: 25px; /* Contrôle l'espace en bas */
    font-size: 1.5rem; /* Taille de police légèrement plus grande */
    font-weight: 300; /* Ajoute un effet léger pour un style élégant */
    line-height: 1.6; /* Améliore la lisibilité */
    color: #555; /* Couleur subtile pour le texte */
    text-align: center; /* Centre le texte pour un meilleur équilibre visuel */
    max-width: 800px; /* Limite la largeur pour un meilleur focus */
    margin-left: auto; /* Centre horizontalement */
    margin-right: auto; /* Centre horizontalement */
}

/* ============================= */
/* Navbar */
/* ============================= */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #4CAF50, #388E3C);
    padding: 1rem 2rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background 0.3s ease;
}

.nav-list {
    list-style: none;
    display: flex;
}

.nav-list li {
    margin: 0 15px;
    position: relative;
}

.nav-list a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    padding: 5px;
    transition: color 0.3s ease;
}

.nav-list a:hover {
    color: #FFD700;
}

.nav-list a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: white;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.nav-list a:hover::after {
    transform: scaleX(1);
}

/* ============================= */
/* Social Media Icons */
/* ============================= */
.social-icons {
    display: flex;
    align-items: center;
}

.social-icons a {
    margin-left: 10px;
}

.social-icons img {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.social-icons a:hover img {
    transform: scale(1.3);
    opacity: 0.8;
}

/* ============================= */
/* Banner */
/* ============================= */
.banner {
    position: relative;
    width: 100%;
    height: 25vh;
    background-image: url('images/banner.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
}

.banner-content {
    position: relative;
    z-index: 2;
}

.banner-content h1, .banner-content p {
    animation: fadeIn 1s ease forwards;
}

.banner-button {
    display: inline-block;
    padding: 15px 30px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.banner-button:hover {
    background-color: #45a049;
}

/* ============================= */
/* Service Cards */
/* ============================= */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    justify-items: center;
}

.service-card {
    background-color: white;
    padding: var(--card-padding);
    border-radius: var(--card-border-radius);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    cursor: pointer;
    width: 100%;
    max-width: 500px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s forwards;
}

.service-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    background-color: #DAF7A6;
}

.service-icon {
    font-size: 50px;
    color: var(--primary-color);
}

.service-label {
    margin-top: 10px;
    font-size: 18px;
    color: #555;
}

/* ============================= */
/* Button */
/* ============================= */
.back-button {
    margin-top: 30px;
    padding: 10px 20px;
    font-size: 16px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.back-button:hover {
    background-color: #45a049;
}

/* ============================= */
/* Footer */
/* ============================= */
.footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 2px 0;
    text-align: center;
}

.footer-content {
    max-width: 1500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ============================= */
/* Animations */
/* ============================= */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================= */
/* Responsive Styles */
/* ============================= */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
    }

    .banner-content h1 {
        font-size: 2.5em;
    }

    .service-card {
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .banner-content h1 {
        font-size: 2em;
    }

    .banner-button {
        padding: 10px 20px;
        font-size: 0.8em;
    }
}
