html {
    scroll-behavior: smooth;
}


body, h1, h2, h3, p {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    
}

body {
    background-color: #f5f5f5;
}

header{
    width: 90%;
    max-width: 90vw;
}

/* Navigation */
.navbar {
    display: flex;
    width: 100%;
    max-width: 100%;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0px;
    background: white;
    position: fixed;
    top: 0;
    left: 0;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.navbar .logo {
    font-size: 20px;
    font-weight: bold;
    padding-left: 50px;
    width: 150px;
}

.navbar ul {
    list-style: none;
    display: flex;
}

.navbar ul li {
    margin: 0 20px;
}

.navbar ul li a {
    text-decoration: none;
    color: black;
}

.btn-contact {
    padding: 10px 50px;
    margin-right: 50px;
    border: 2px solid black;
    text-decoration: none;
    color: black;
}

.btn-contact:hover {
    pointer-events: none;
    cursor: not-allowed;
}

#background-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 105vh;
    object-fit: cover;
    z-index: -1; /* Derriï¿½re tout le contenu */
}


/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-content {
    background: rgba(0, 0, 0, 0.6);
    padding: 20px;
    border-radius: 5px;
    color: white;
}

.hero h1 {
    font-size: 50px;
}

.btn-green {
    background: green;
    color: white;
    padding: 10px 20px;
    display: inline-block;
    text-decoration: none;
    margin-top: 10px;
}

/* Section Services */
.services {
    padding: 50px;
    text-align: center;
    background: white;
}

.services-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.service-card {
    background: white;
    padding: 20px;
    width: 300px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    transition: transform 0.3s ease-in-out;
}

.service-card:hover {
    transform: scale(1.05);
    cursor: pointer;
}

.service-card img {
    width: 15%;
    border-radius: 5px;
}

.service-card h3 {
    color: green;
    margin-top: 10px;
}

/* Section Contact */
.contact {
    padding: 60px 10%;
    background: #f5f5f5;
}

.contact-container {
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

/* Formulaire */
.contact-form {
    width: 55%;
    background: white;
    padding: 40px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.contact-form h3 {
    color: #28a745; /* Vert */
    font-size: 14px;
    text-transform: uppercase;
    font-weight: bold;
}

.contact-form h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

.contact-form label {
    font-weight: bold;
    display: block;
    margin-top: 10px;
}

.contact-form input, 
.contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

.contact-form textarea {
    resize: none;
}

/* Consentement */
.consent {
    display: flex;
    flex: 0.5;
    align-items: center;
    margin-top: 15px;
    font-size: 14px;
}

.consent input {
    flex: 1;
    
}

/* Bouton Submit */
.btn-submit {
    background: #28a745; /* Vert */
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    margin-top: 15px;
}

.btn-submit:hover {
    background: #218838; /* Vert plus foncï¿½ */
}

/* Bloc d'informations */
.contact-info {
    width: 40%;
    background: white;
    padding: 40px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.contact-info h3 {
    font-size: 18px;
    margin-top: 20px;
}

.contact-info p {
    font-size: 16px;
    margin: 5px 0;
}

.contact-info a {
    color: #007bff;
    text-decoration: none;
}

#map {
    height: 300px; /* Hauteur ajustable selon ton besoin */
    width: 100%;
    border-radius: 8px;
}

/* La modale est cachï¿½e par dï¿½faut */
.modal {
    display: none; /* Cachï¿½ au dï¿½part */
    position: fixed; /* Reste en place mï¿½me au scroll */
    z-index: 1000; /* Passe devant tout le reste */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5); /* Fond semi-transparent */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Contenu de la modale */
.modal-content {
    background: white;
    padding: 20px;
    width: 50%;
    max-width: 650px;
    text-align: center;
    border-radius: 8px;
    position: relative;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.3s ease-in-out;
}

/* Animation d'apparition */
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* Bouton de fermeture */
.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 25px;
    cursor: pointer;
}

/* Image du service dans la modale */
#modal-image {
    width: 100%;
    max-height: 300px;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* Bouton d'action */
#modal-button {
    background: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
}

#modal-button:hover {
    background: #218838;
}


@media (max-width: 1024px) {
    

    .navbar {
        display: flex;
        justify-content: center; /* Centre les éléments */
        align-items: center;
        
    }

    .logo{
        
        height: auto;
        display: block;
        margin: 0 auto; /* Centre correctement */
        object-fit: contain;
        
        
    }
    
    .navbar ul {
        display: none; 
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 60px;
        left: 0;
        background: white;
        padding: 10px;
        box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
    }

    
    .navbar ul.show {
        display: flex;
    }

    .navbar ul li {
        margin: 10px 0;
        text-align: center;
    }
    
    .btn-contact {
        
        display: none;
    }

    
    .menu-toggle {
        display: block;
        font-size: 25px;
        cursor: pointer;
        padding-right: 20px;
    }

    .hero {
        height: 60vh;
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .hero-content{
        display: none;
    }

    .hero h1 {
        font-size: 25px; 
        transform: translateY(-8vh);
        color: rgb(15, 40, 120);
    }
    
    .services-container {
        flex-direction: column;
        align-items: center;
    }

    .service-card {
        width: 85%; 
    }

    
    
    .contact{
        padding: 60px 0px;
        width: 78%;
    }
    
    .contact-container {
        width: 100%;
        flex-direction: column;
        
        gap: 20px;
    }

    .contact-form, .contact-info {
        width: 100%; 
    }


    .btn-green, .btn-submit {
        font-size: 14px; 
        padding: 10px 15px; 
    }
    
    #background-video {
        
        width: 100vw;
        height: 100%;
        object-fit: contain; /* Ajuste la vidéo pour qu'elle couvre l'écran sans déformation */
        position: absolute; /* S'assure qu'elle reste derrière le contenu */
        top: 0;
        left: 0;
    }

    .modal-content {
        background: white;
        padding: 20px;
        width: 80%;
        max-width: 650px;
        
    }
}


@media (min-width: 1025px) {
    .menu-toggle {
        display: none;
    }

    h1{
        display: none;
    }

    
}