/* Réinitialisation des styles par défaut */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Corps de la page */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f9f9f9; /* Fond plus clair */
    color: #333;
    line-height: 1.6;
    padding-top: 160px; /* Pour éviter le chevauchement avec la top-bar */
}

/* Styles de la top-bar */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to right, #006400, #000000);
    color: white;
    z-index: 1001;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100px; /* Hauteur augmentée */
}

/* Logo de l'entreprise */
.top-bar .main-logo {
    height: 80px;
    width: auto;
}

/* Nom de l'entreprise */
.top-bar .company-name {
    font-size: 2em;
    font-weight: bold;
    margin: 0;
    text-align: center;
    flex-grow: 1;
    letter-spacing: 1px;
}

/* Informations de contact (téléphone et site web) */
.top-bar .contact-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 1.8em;
    margin-left: 20px;
}

.top-bar .contact-info p {
    margin: 3px 0;
    font-weight: 400;
}

/* Logos d'entreprise */
.top-bar .company-logos {
    display: flex;
    align-items: center;
}

.top-bar .company-logos .logo {
    height: 80px;
    width: auto; /* Uniformiser la taille */
    margin-left: 10px;
}

/* Menu de navigation */
nav.menu {
    position: fixed;
    top: 100px; /* Placer le menu sous la top-bar */
    left: 0;
    width: 100%;
    background-color: #333;
    color: white;
    z-index: 1000;
    padding: 5px 0;
    height: 60px;
}

/* Liste des éléments du menu */
nav.menu ul {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
    height: 100%;
}

/* Style des éléments du menu */
nav.menu ul li {
    margin: 0 15px;
    position: relative;
}

/* Liens dans le menu */
nav.menu ul li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    text-transform: uppercase;
    padding: 0 15px;
    line-height: 60px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

nav.menu ul li a:hover {
    background-color: #007BFF;
    border-radius: 5px;
    transform: scale(1.05); /* Effet de zoom au survol */
}

/* Section bannière */
.banner {
    position: relative;
    text-align: center;
    color: white;
    padding: 0; /* Supprimer le padding pour ne pas avoir de décalage */
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('your-banner-image.jpg') no-repeat center center/cover;
}

/* Diaporama */
.banner .slideshow-container {
    max-width: 100%;
    margin: auto;
    position: relative;
    width: 100%; /* Assure que le diaporama prend toute la largeur */
    height: 500px; /* Taille fixe pour la hauteur du diaporama */
}

.banner .mySlides {
    display: none;
    width: 100%; /* La largeur prend toute la taille du conteneur */
    height: 500px; /* La hauteur est fixée à 500px */
}

.banner .mySlides img {
    width: 100%; /* Garder une largeur uniforme de 100% */
    height: 100%; /* Forcer la hauteur à 100% de la hauteur du conteneur */
    object-fit: cover; /* Recadrer les images pour remplir le conteneur sans distorsion */
}

/* Texte sur le diaporama */
.banner .banner-text {
    position: absolute;
    top: 50%; /* Placer le texte au centre verticalement */
    left: 50%; /* Centrer horizontalement */
    transform: translate(-50%, -50%); /* Ajuster pour un véritable centrage */
    text-align: center;
    width: 100%; /* Assurer que le texte occupe toute la largeur */
}

.banner .banner-text h1 {
    font-size: 4em; /* Augmenter la taille du texte */
    margin: 0;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7); /* Ajouter un effet d'ombre pour le rendre plus lisible */
    color: white;
}

.banner .banner-text p {
    font-size: 2.5em; /* Augmenter la taille du texte pour le paragraphe */
    margin: 20px 0;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7); /* Ajouter une ombre pour une meilleure lisibilité */
    color: white;
}

/* Bouton dans la bannière */
.btn {
    display: inline-block;
    padding: 20px 40px;
    background-color: #006400; /* Vert foncé */
    color: white;
    font-size: 1.5em;
    font-weight: bold;
    text-decoration: none;
    border-radius: 30px;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn:hover {
    background-color: #004d00; /* Vert plus foncé au survol */
    transform: scale(1.1); /* Agrandir au survol */
}

/* Section À propos */
#apropos {
    padding: 80px 20px;
    text-align: center;
    background-color: #f4f4f4;
}

#apropos h2 {
    font-size: 2.5em;
    margin-bottom: 30px;
    font-weight: bold;
}

#apropos p {
    font-size: 1.2em;
    line-height: 1.8;
    margin-bottom: 30px;
    max-width: 900px;
    margin: 0 auto;
}

/* Section des services */
#services {
    padding: 80px 20px;
    text-align: center;
    background-color: #e2e2e2;
}

#services h2 {
    font-size: 2.5em;
    margin-bottom: 30px;
    font-weight: bold;
}

.services-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.service {
    flex: 1;
    min-width: 280px;
    max-width: 320px;
    text-align: center;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.service img {
    max-width: 100%;
    height: 200px;
    object-fit: cover; /* Uniformisation de la taille des images */
    border-radius: 8px;
}

.service p {
    font-size: 1.1em;
    margin-top: 15px;
}

/* Section Galerie */
#galerie {
    padding: 80px 20px;
    text-align: center;
    background-color: #f4f4f4;
}

#galerie h2 {
    font-size: 2.5em;
    margin-bottom: 30px;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.gallery .thumbnail {
    width: 100%;
    max-width: 300px;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery .thumbnail:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.gallery-btn-container {
    margin-top: 30px;
}

.gallery-btn-container .btn-gallery {
    background-color: #007BFF;
    color: white;
    padding: 12px 24px;
    font-size: 18px;
    text-decoration: none;
    border-radius: 30px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.gallery-btn-container .btn-gallery:hover {
    background-color: darkblue;
    transform: translateY(-3px); /* Effet de survol */
}

/* Section Contact */
#contact {
    position: relative;
    padding: 80px 20px;
    background-color: #f4f4f4;
}

#contact::before {
    content: '';
    position: absolute;
    top: -100px; /* Ajuste cette valeur selon la hauteur de ta barre de navigation */
    left: 0;
    width: 100%;
    height: 100px; /* La hauteur de ta barre de navigation */
    background: transparent;
}

#contact h2 {
    font-size: 2.5em;
    margin-bottom: 30px;
    font-weight: bold;
}

form label {
    display: block;
    text-align: left;
    font-weight: bold;
    margin-top: 10px;
}

form input, form textarea, form button {
    width: 100%;
    margin: 10px 0;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1.1em;
}

form textarea {
    height: 150px;
    resize: vertical;
}

form button {
    background: #28a745;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1.2em;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

form button:hover {
    background: #218838;
    transform: translateY(-3px); /* Effet de survol */
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    padding: 30px 20px;
    text-align: center;
    margin-top: 40px; /* Ajouter un peu de marge pour éviter le chevauchement avec la dernière section */
}

footer .social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

footer .social-links a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #E4405F; /* Couleur Instagram */
    font-size: 1.5em;
    font-weight: bold;
}

footer .social-links i {
    margin-right: 10px;
    font-size: 1.8em;
}

footer .social-links a:hover {
    color: #C13584; /* Effet au survol */
}
