/* Styles généraux : Réinitialisation et configuration globale */
* {
    margin: 0; /* Supprime les marges par défaut */
    padding: 0; /* Supprime les espacements internes par défaut */
    box-sizing: border-box; /* Inclut les bordures et padding dans la taille des éléments */
    font-family: 'Times New Roman', serif; /* Définit la police principale */
}

body {
    background-color: #f5f5f5; /* Fond gris clair pour l’ensemble du site */
    overflow-x: hidden; /* Empêche le défilement horizontal */
    scroll-behavior: smooth; /* Active le défilement fluide pour les ancres */
}

/* ---------------------------- HEADER ---------------------------- */
/* En-tête avec logo et menu de navigation */
.header {
    display: flex; /* Affiche les enfants en ligne */
    justify-content: space-between; /* Espace entre le logo et le menu */
    align-items: center; /* Aligne verticalement les éléments */
    padding: 20px; /* Ajoute du padding interne */
    background-color: rgba(0, 0, 0, 0.8); /* Fond semi-transparent noir */
    position: sticky; /* Reste en haut lors du défilement */
    top: 0; /* Fixé au sommet de la fenêtre */
    z-index: 1000; /* S’assure que le header reste au-dessus des autres éléments */
}

/* Logo cliquable */
.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px; /* Largeur du cercle */
    height: 80px; /* Hauteur du cercle */
    border-radius: 50%; /* Transforme en cercle */
    overflow: hidden; /* Cache ce qui dépasse du cercle */
    background-color: #ffffff; /* Fond blanc */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Ajoute une ombre douce */
    transition: transform 0.3s ease; /* Animation de zoom au survol */
}

.logo img {
    width: 100%; /* Remplit le cercle */
    height: auto; /* Préserve le ratio de l'image */
    object-fit: cover; /* Remplit le cercle sans déformer l'image */
}

/* ---------------------------- NAVIGATION ---------------------------- */
/* Menu de navigation */
.nav-bar ul {
    display: flex; /* Menu en ligne */
    list-style: none; /* Supprime les puces de la liste */
}

.nav-bar li {
    margin: 0 15px; /* Espace entre chaque lien */
}

.nav-bar a {
    text-decoration: none; /* Supprime le soulignement des liens */
    color: white; /* Couleur du texte des liens */
    font-size: 18px; /* Taille du texte */
    transition: color 0.3s; /* Animation de changement de couleur */
}

.nav-bar a:hover {
    color: #2bff00; /* Change la couleur en orange au survol */
}

/* Menu burger pour les écrans mobiles */
.burger {
    display: none; /* Caché par défaut */
    cursor: pointer; /* Curseur de clic */
    flex-direction: column; /* Affiche les lignes verticalement */
    gap: 5px; /* Espacement entre les lignes */
}

.burger .line {
    width: 25px; /* Largeur des lignes */
    height: 3px; /* Hauteur des lignes */
    background-color: white; /* Couleur des lignes */
}

/* ---------------------------- RESPONSIVE ---------------------------- */
/* Styles pour les écrans de moins de 768px */
@media (max-width: 768px) {
    .nav-bar ul {
        display: none; /* Cache le menu */
        flex-direction: column; /* Liste verticale */
        background-color: rgba(0, 0, 0, 0.9); /* Fond noir transparent */
        position: absolute; /* Positionné par rapport au parent */
        top: 70px; /* Sous le header */
        right: 0; /* Aligné à droite */
        width: 100%; /* Prend toute la largeur */
    }

    .nav-bar.nav-active ul {
        display: flex; /* Affiche le menu lors de l'activation */
    }

    .burger {
        display: flex; /* Affiche le menu burger */
    }
}

/* ---------------------------- SECTIONS ---------------------------- */
/* Sections générales du site */
section {
    padding: 50px; /* Espacement interne */
    text-align: center; /* Centre le texte */
}

h1, h2 {
    margin-bottom: 20px; /* Espacement sous les titres */
    color: #007009; /* Couleur des titres */
}

p {
    margin-bottom: 15px; /* Espacement sous les paragraphes */
}

/* ---------------------------- FORMULAIRES ---------------------------- */
/* Formulaires */
form {
    display: flex;
    flex-direction: column; /* Affiche les champs en colonne */
    max-width: 400px; /* Largeur maximale */
    margin: auto; /* Centre horizontalement */
    padding: 20px; /* Espacement interne */
    background-color: white; /* Fond blanc */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Ombre douce */
    border-radius: 8px; /* Coins arrondis */
}

input, textarea {
    margin-bottom: 15px; /* Espacement entre les champs */
    padding: 10px; /* Espacement interne */
    border: 1px solid #ddd; /* Bordure grise */
    border-radius: 5px; /* Coins arrondis */
}

button {
    background-color: #ff6347; /* Fond rouge orangé */
    color: white; /* Texte blanc */
    border: none; /* Pas de bordure */
    padding: 10px; /* Espacement interne */
    border-radius: 5px; /* Coins arrondis */
    cursor: pointer; /* Curseur de clic */
    transition: background-color 0.3s; /* Animation de couleur */
}

button:hover {
    background-color: hsl(146, 8%, 62%); /* Fond orange au survol */
}

/* ---------------------------- HERO SECTION ---------------------------- */
/* Section Hero avec vidéo de fond */
#hero {
    position: relative; /* Position par rapport au parent */
    height: 100vh; /* Hauteur de la fenêtre */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Cache le contenu débordant */
}

#background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%; /* Vidéo pleine largeur */
    height: 100%; /* Vidéo pleine hauteur */
    object-fit: cover; /* Remplit sans déformer */
    z-index: -1; /* Derrière le contenu */
}

/* Contenu de la section Hero */
.hero-content {
    text-align: center; /* Centre le texte */
    color: white; /* Texte blanc */
    z-index: 1; /* Devant la vidéo */
}

.hero-content .highlight {
    color: #ff6347; /* Texte orange */
    text-decoration: underline; /* Soulignement */
}

/* Bouton CTA (Call-to-Action) */
.cta-button {
    background-color: #ff6347;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #ffa500;
    transform: scale(1.1); /* Zoom léger */
}

/* ---------------------------- CAROUSEL ---------------------------- */
.carousel {
    display: flex;
    gap: 10px; /* Espace entre les images */
    justify-content: center;
    padding: 20px 0;
}

.carousel img {
    width: 300px;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.carousel img:hover {
    transform: scale(1.1); /* Zoom au survol */
}

/* ---------------------------- FOOTER ---------------------------- */
/* Pied de page */
.footer {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    background-color: #000; /* Fond noir */
    color: white; /* Texte blanc */
}

.footer a {
    text-decoration: none; /* Pas de soulignement */
    color: white;
}

.footer a:hover {
    color: #ffa500; /* Orange au survol */
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icons img {
    width: 40px;
    transition: transform 0.3s ease;
}

.social-icons img:hover {
    transform: scale(1.2); /* Zoom au survol */
}


/* Conteneur principal des services */
.services-content {
    display: flex; /* Affiche les boîtes en ligne */
    gap: 20px; /* Espace entre chaque boîte */
    justify-content: center; /* Centre les boîtes horizontalement */
    padding: 40px 0; /* Ajoute un espacement vertical */
    flex-wrap: wrap; /* Permet aux boîtes de passer à la ligne si nécessaire */
}

/* Boîte de service */
.service-box {
    width: 300px; /* Largeur fixe pour chaque boîte */
    text-align: center; /* Centre le texte et les images */
    padding: 15px;
    background-color: white; /* Fond blanc */
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1); /* Ombre douce */
    border-radius: 10px; /* Coins arrondis */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Animation au survol */
}

/* Effet au survol de la boîte */
.service-box:hover {
    transform: scale(1.05); /* Zoom léger au survol */
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2); /* Ombre plus marquée */
}

/* Images dans les boîtes de service */
.service-box img {
    width: 100%; /* Image adaptée à la largeur de la boîte */
    height: 200px; /* Hauteur uniforme pour toutes les images */
    object-fit: cover; /* Remplit sans déformer l’image */
    border-radius: 8px; /* Coins légèrement arrondis */
    margin-bottom: 10px; /* Espace sous l’image */
}

/* Titres et paragraphes */
.service-box h3 {
    font-size: 1.5rem; /* Taille du titre */
    margin-bottom: 10px; /* Espace sous le titre */
    color: #333; /* Couleur du texte */
}

.service-box p {
    font-size: 1rem; /* Taille du texte */
    color: #666; /* Couleur du texte secondaire */
}








/* Section Nos Services */
.services-section {
    padding: 50px;
    background-color: #f8f8f8; /* Fond léger */
    text-align: center;
}

.services-section h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #33dd6c;
}

.service-box {
    display: inline-block;
    width: 300px;
    margin: 15px;
    padding: 15px;
    background-color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
    vertical-align: top;
}

.service-box img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

.service-box h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #466d52;
}

.service-box p {
    font-size: 1rem;
    color: #665454;
    line-height: 1.5;
}

.service-box:hover {
    transform: scale(1.05); /* Zoom au survol */
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2); /* Ombre plus marquée */
}


/* Introduction de la section Nos Services */
.services-introo {
    max-width: 800px; /* Largeur maximale de l'intro */
    margin: 0 auto 40px auto; /* Centre horizontalement avec espace en bas */
    line-height: 1.8; /* Améliore la lisibilité du texte */
    font-size: 1.2rem; /* Texte légèrement agrandi */
    color: #444; /* Couleur du texte */
}

.services-introo h3 {
    margin-top: 20px;
    font-size: 1.6rem;
    color: #333;
}