* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
  }

header {
    background-color: white;
    display: flex;
    justify-content: space-between; /* Espacement entre le logo et la navigation */
    align-items: center; /* Aligne les éléments au centre verticalement */
    height: 175px;
    padding: 10px 20px;
}

header .logo {
    flex-shrink: 0; /* Empêche le logo de se réduire */
}

/* Styles de base pour la navigation */
header nav {
    display: flex;
    justify-content: space-around; /* Répartir l'espace de manière égale */
    flex-grow: 1; /* Permet à la navigation de se développer */
}

header nav ul {
    list-style-type: none;
    display: flex;
    padding: 0;
    margin: 0;
}

header nav ul li {
    display: inline-block;
    padding: 0 80px; /* Espacement entre les éléments */
    white-space: nowrap; /* Empêche les éléments de se couper sur plusieurs lignes */
}

/* Style des liens */
header nav ul li a {
    color: #04234F;
    text-decoration: none;
    font-size: 20px;
    transition: color 0.3s, transform 0.3s;
}

/* Effet au survol des liens */
header nav ul li a:hover {
    color: black;
    transform: scale(1.1);
    font-size: 22px;
}

/* Menu Burger */
.burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.burger div {
    width: 30px;
    height: 3px;
    background-color: #04234F;
    margin: 5px;
    transition: all 0.3s ease;
}

.nav-links {
    display: flex;
}

/*pres*/

#hero {
    position: relative;
    width: 99.99%;
    height: 500px;
    aspect-ratio: 16 / 9; /* ✅ ratio vidéo responsive */
    overflow: hidden;
    color: #04234F;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

#hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.7;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 20px;
}

#hero h1 {
    font-size: 3em;
    font-weight: bold;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

#hero p {
    font-size: 1.5em;
    font-weight: bold;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-item {
    margin-bottom: 20px;
}

/*about*/

/*#about, #contact {
    padding: 40px;
    background-color: white;
}*/

#about {
    padding: 80px 20px;
    background-color: white;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Ombre douce autour de la section */
    position: relative; /* Pour un meilleur contrôle du positionnement */
}

.about-container {
    display: flex; /* Flexbox pour aligner le contenu en ligne */
    justify-content: space-between; /* Espacement égal entre texte et image */
    align-items: center; /* Centrer verticalement les éléments */
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px;
    background-color: white;
    border-radius: 10px;
}

.text-section {
    flex: 1; /* Le texte prend toute la largeur disponible */
    padding: 0 20px;
    text-align: left; /* Aligner le texte à gauche */
}

.image-section {
    flex: 1; /* L'image prend toute la largeur disponible */
    text-align: right; /* Centrer l'image à droite */
}

.image-section img {
    width: 110%; /* L'image prend 100% de la largeur du conteneur */
    height: 700px; /* Fixer une hauteur spécifique pour l'image */
    object-fit: cover; /* Force l'image à remplir l'espace sans garder ses proportions */
    border-radius: 10px; /* Coins arrondis pour l'image */
}

/* Centrer le titre et le placer en haut de la section */
#about h2 {
    font-size: 2.5em;
    color: #04234F;
    margin-bottom: 20px; /* Espacement en dessous du titre */
    font-weight: bold;
    letter-spacing: 2px;
    position: absolute; /* Position absolue pour placer le titre en haut de la section */
    top: 20px; /* Ajuste l'espacement du titre par rapport au haut de la section */
    left: 50%; /* Centrer horizontalement */
    transform: translateX(-50%); /* Ajuste le centrage pour qu'il soit parfait */
}

#about p {
    font-size: 1.2em;
    line-height: 1.8;
    color: black;
    margin-bottom: 20px;
    padding: 10px 0;
}

#about p:last-child {
    margin-bottom: 0;
}

.btn-container {
    text-align: center; /* centre le bouton */
    margin-top: 30px;   /* espace au-dessus */
}

.btn-partenaires {
    display: inline-block;
    background-color: #04234F;
    color: #fff;
    padding: 15px 40px;
    border-radius: 50px; /* arrondi "pilule" */
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-partenaires:hover {
    background-color: #166EBA; /* bleu plus clair au hover */
    transform: translateY(-2px);
}

/*Services*/

#nos-services {
    padding: 40px;
    background-color: #04234F;
    text-align: center;
    color: white;
}

#nos-services h2 {
    font-size: 3em; 
    font-weight: bold; 
    color: white; 
    margin-bottom: 40px; 
    letter-spacing: 4px; 
    text-align: center; 
}

.services-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.service-item {
    width: 22%; 
    text-align: center;
    transition: all 0.3s ease; 
    background-color: white; 
    border-radius: 10px; 
    padding: 20px;
    color: black; 
    cursor: pointer; 
}

.service-item:hover {
    background-color: #489CB1; 
    color: white; 
}

.service-item:hover h3, 
.service-item:hover p {
    color: white; 
}

.service-item img {
    width: 80px; /* Augmenter la taille des icônes */
    height: 80px; /* Hauteur correspondante */
    object-fit: cover; /* Garde le bon ratio d'image */
    margin-bottom: 15px; /* Un peu plus d'espace sous l'icône */
    border-radius: 50%; /* Icônes circulaires */
    transition: transform 0.3s ease; /* Effet de transition pour un léger zoom au survol */
}

.service-item img:hover {
    transform: scale(1.1); /* Agrandissement de l'icône au survol */
}
.service-item h3 {
    color: #04234F;
    font-size: 1.2em;
}

.service-item p {
    color: black;
}

#maison {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
}

#maison img {
    max-width: 100%;
    height: auto;
    width: 700px; /* Tu peux ajuster selon la taille souhaitée */
}

/*formulaire*/ 

form input, form textarea {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
}

#contact {
    background-color: white;
    padding: 60px 20px;
    text-align: center;
}

.contact-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

#contact h2 {
    text-align: center;
    color: #04234F;
    font-size: 2.5em;
    margin-bottom: 30px;
}

form label {
    display: block;
    margin: 10px 0 5px;
    font-weight: bold;
    color: black;
}

form input, form textarea {
    width: 50%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid black;
    border-radius: 25px;
    font-size: 1em;
}

form button {
    width: 10%;
    padding: 10px;
    background-color: #04234F;
    color: white;
    font-size: 1.1em;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: block; 
    margin-left: auto;
    margin-right: auto; 
}

form button:hover {
    background-color: #489CB1;
}

#footer-principal {
    background-color: #04234F;
    color: white;
    padding: 40px 0;
    text-align: center;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.footer-section {
    width: 30%;
    padding: 10px;
    margin: 10px;
}

.footer-section h3 {
    font-size: 1.2em;
    margin-bottom: 10px;
}

.footer-section p, .footer-section ul {
    font-size: 1em;
    color: white;
}

.footer-section ul {
    list-style-type: none;
    padding: 0;
}

.footer-section ul li a {
    text-decoration: none;
    color: white;
    display: block;
    margin: 5px 0;
}

.footer-section ul li a:hover {
    color: black;
}

footer p {
    margin-top: 20px;
    font-size: 0.9em;
    color: white;
}
/* Responsive */
/* 🔧 Fix mobile (max 768px) */
@media (max-width: 768px) {

    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        /* ❌ Ne pas forcer width ici */
    }

    header {
        height: auto;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    header .logo img {
        max-width: 150px; /* ✅ Limite la taille du logo */
        height: auto;
    }

    header nav {
        width: 100%;
        justify-content: center;
    }

    header nav ul {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    header nav ul li {
        padding: 10px 0;
    }
    #hero {
        position: relative;
        z-index: 1;
    }
    #hero h1 {
    font-size: 2em;
  }

  #hero p {
    font-size: 1.1em;
  }
    .burger {
        display: flex;
        flex-direction: column;
        cursor: pointer;
        position: absolute;
        top: 20px;
        right: 20px;
        z-index: 10;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        position: absolute;
        top: 100px;
        left: 0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 9999; 
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        padding: 15px 0;
    }
    
    #about .about-container {
        flex-direction: column;
    }

    .image-section img {
        width: 100%;
        height: auto;
    }

    .service-item {
        width: 100%;
    }

    form input, form textarea {
        width: 100%;
    }

    form button {
        width: 100%;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
    }

    .footer-section {
        width: 90%;
        text-align: center;
    }
}

.logo img {
    max-width: 150px;
    height: auto;
}

@media (max-width: 768px) {
    .logo img {
        max-width: 100px;
    }
}

@media screen and (max-width: 480px) {
  #hero h1 {
    font-size: 2em;
  }

  #hero p {
    font-size: 1em;
  }
}


