/* Styles généraux */
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f0f4f8;
    color: #333;
    display: flex;
    flex-direction: column;
    height: 100vh; /* Utilisation de toute la hauteur de la page */
}

/* Header */
header {
    background-color: #0056b3;
    color: #fff;
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

header h1 {
    margin: 0;
    font-size: 2rem;
}

/* Navigation */
nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 10px 0 0;
}

nav ul li {
    display: inline;
}

nav ul li a {
    text-decoration: none;
    color: #fff;
    font-size: 1rem;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background 0.3s ease;
}

nav ul li a:hover {
    background-color: #004494;
}

/* Section des services avec défilement horizontal */
#services {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: auto;
    gap: 20px;
    padding: 20px;
}

#services .service-item {
    min-width: 200px;
    text-align: center;
    background-color: #fff;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#services img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Footer */
footer {
    background-color: #0056b3;
    color: #fff;
    text-align: center;
    padding: 10px 0;
    margin-top: auto; /* Ajoute un espacement au footer pour qu'il reste en bas */
}

footer p {
    margin: 0;
    font-size: 0.9rem;
}

/* Responsive design */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        gap: 10px;
    }

    header h1 {
        font-size: 1.5rem;
    }

    #services {
        flex-direction: column;
        gap: 15px;
    }

    #services .service-item {
        min-width: 100%;
    }
}

/* Section des services avec défilement horizontal */
#services {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: auto;
    gap: 20px;
    padding: 20px;
    margin-bottom: 40px; /* Pour éviter que le footer ne soit trop proche */
}

#services .service-item {
    min-width: 250px;
    max-width: 300px;
    text-align: center;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#services .service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

#services img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
}

#services h3 {
    font-size: 1.2rem;
    color: #0056b3;
    margin-bottom: 10px;
    font-weight: bold;
}

#services p {
    font-size: 1rem;
    color: #555;
    line-height: 1.5;
    padding: 0 10px;
}
