@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap");

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body, html {
    height: 100%;
}

.header {
    position: fixed;
    top: 0;
    height: 100px;
    right: 0;
    left: 0;
    width: 100%;
    padding: 0px 50px;
    display: flex;
    justify-content: flex-end;
    /* Align items to the right */
    align-items: center;
    z-index: 50;
    background-color: transparent;
    transition: background-color 0.3s ease;
    /* Transition pour l'animation */
}

.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 300px;
    z-index: 999;
    background-color: rgb(255, 255, 255);
    backdrop-filter: blur(10px);
    box-shadow: -10px 0 10px rgba(0, 0, 0, 0.1);
    display: none;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

.sidebar a {
    font-size: 18px;
    color: rgb(0, 0, 0);
    font-weight: 500;
    margin-top: 20px;
    margin-left: 20px;
    text-decoration: none;
}

.sidebar a i {
    margin-right: 4px;
}

.sidebar a:hover {
    font-size: 20px;
}

.navbar-button {
    background-color: rgb(49, 170, 111);
    margin-left: 20px;
    color: #fff;
    border: none;
    border-radius: 100px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.navbar-button i {
    margin-right: 8px;
}

.navbar-button:hover {
    background-color: rgb(40, 140, 90);
}

.scrolled {
    background-color: rgba(255, 255, 255, 1);
    z-index: 1000;
    /* Fond blanc plein lors du scroll */
}

.scrolled .nav a {
    color: #000;
    /* Change text color to black when scrolled */
}

.scrolled .nav a::before {
    background-color: #000000;
    /* Change text color to black when scrolled */
}

.logo {
    flex: 1;
    /* Optional: Adjust as needed */
}

.logo img {
    max-height: 150px;
    /* Adjust the max-height to desired size */
    width: auto;
    /* Maintain aspect ratio */
}

.menu-toggle {
    display: none;
    /* Cacher le bouton par défaut */
    cursor: pointer;
    font-size: 24px;
    background-color: transparent;
    border: none;
    outline: none;
}

.menu-toggle2 {
    display: none;
    /* Cacher le bouton par défaut */
    cursor: pointer;
    font-size: 24px;
    margin-left: 20px;
    margin-top: 10px;
    background-color: transparent;
    border: none;
    outline: none;
}

.nav a {
    position: relative;
    font-size: 18px;
    color: rgb(0, 0, 0);
    font-weight: 500;
    text-decoration: none;
    margin-left: 40px;
    transition: color 0.3s ease;
}

.nav a i {
    margin-right: 4px;
}

.nav a:hover {
    color: rgb(40, 140, 90);
}

.nav-button {
    background-color: rgb(49, 170, 111);
    color: #fff;
    border: none;
    border-radius: 100px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.nav-button i {
    margin-right: 8px;
}

.nav-button:hover {
    background-color: rgb(40, 140, 90);
}

.nav {
    position: relative;
}

.solo {
    display: none;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 120%;
    left: 15%;
    background-color: rgb(255, 255, 255);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    border-radius: 15px;
    /* Ensure all corners are rounded */
    z-index: 1000;
    min-width: 150px;
    overflow: hidden;
}

.dropdown-menu a {
    color: #000000;
    padding: 5px 20px;
    right: 20%;
    text-decoration: none;
    display: block;
    font-size: 14px;
    font-weight: 400;
    text-wrap: nowrap;
}

.last {
    margin-bottom: 10px;
}

.dropdown-menu .dropdown-title-first {
    background-color: rgb(255, 255, 255);
    color: rgb(42, 147, 96);
    padding: 5px 10px;
    margin-top: 10px;
    font-size: 15px;
    display: block;
    font-weight: 700;
}

.dropdown-menu .dropdown-title {
    background-color: rgb(255, 255, 255);
    color: rgb(42, 147, 96);
    padding: 5px 10px;
    font-size: 15px;
    display: block;
    font-weight: 700;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.imgintro {
    position: relative;
    margin-top: 100px;
	background-color: rgb(49, 170, 111);
    width: 50%;
	margin-left: 500px;
    height: 10vh;
	border-radius: 5px;
    display: flex;
    justify-content: center; /* Centrer horizontalement */
    align-items: center;    /* Centrer verticalement */
    text-align: center;     /* Centrer le texte à l'intérieur */
	background-position: center;
}

.imgintro h2 {
    position: relative;
    margin: 0; /* Supprimer les marges par défaut */
    color: rgb(255, 255, 255); /* Ajouter une couleur pour que le texte soit visible */
    font-size: 25px;
    font-weight: 350;
    z-index: 2; /* Assurez-vous que le texte est devant le pseudo-élément */
}

/* contact */
.contact-form-section {
    display: flex;
    justify-content: space-between;
    width: 80%;
    margin: 2rem auto;
    padding: 2rem;
    border-radius: 8px;
    background-color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.litemail {
    display: none;
}

.contact-content {
    display: flex;
    width: 100%;
}

.form-container {
    width: 55%;
    padding-right: 2rem;
}

.contact-info {
    width: 40%;
    padding-left: 2rem;
    border-left: 2px solid #ddd;
}

.contact-form-section h2 {
    text-align: center;
    margin-bottom: 1rem;
    color: rgb(40, 140, 90);
}

.contact-form {
    display: flex;
    text-align: left;
    flex-wrap: wrap;
    justify-content: space-between;
}

.contact-form label {
    flex: 1 1 100%;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.contact-form input,
.contact-form textarea {
    flex: 1 1 48%;
    margin-bottom: 1.5rem;
    font-size: 16px;
    color: #262626;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: calc(48% - 1rem);
}

.contact-form textarea {
    width: calc(100% - 1rem);
    flex: 1 1 100%;
}

.contact-form button {
    flex: 1 1 100%;
    padding: 1rem;
    border: none;
    border-radius: 4px;
    background-color: rgb(40, 140, 90);
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.contact-form button:hover {
    background-color: rgb(31, 110, 71);
}

.contact-info {
    margin-left: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info p {
    margin-bottom: 1rem;
    line-height: 1.5;
}

.contact-info strong {
    color: rgb(40, 140, 90);
}

.footer {
    background-color: #3d3d3d;
    color: #ffffff;
    padding: 20px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    padding: 20px;
}

.footer-section {
    flex: 1;
    margin: 10px;
}

.footer-content img {
    width: 250px;
}

.footer-section.logo img {
    max-width: 100px;
    margin-bottom: 10px;
}

.footer2 {
    background-color: #000000;
    padding: 20px;
    text-align: center; /* Centre le texte dans le footer */
    color: #fff; /* Couleur du texte */
}


@media (max-width: 1200px) {
    .nav {
        display: none; /* Cache le menu horizontal sur les petits écrans */
    }

    .menu-toggle {
        display: block; /* Affiche le bouton de menu hamburger */
    }

    .menu-toggle2 {
        display: block; /* Affiche le bouton de menu hamburger */
    }

    .sidebar {
        display: none; /* Cache le menu latéral par défaut */
    }

    .sidebar.active {
        display: flex; /* Affiche le menu latéral lorsqu'il est activé */
        transition: transform 0.3s ease; /* Ajoute une transition */
    }

    .imgintro {
        margin-left: 250px;
    }

    .imgintro h2 {
        margin: 20px;
    }
}

@media(max-width: 450px) {

    .nav {
        display: none; /* Cache le menu horizontal sur les petits écrans */
    }

    .menu-toggle {
        display: block; /* Affiche le bouton de menu hamburger */
    }

    .menu-toggle2 {
        display: block; /* Affiche le bouton de menu hamburger */
    }

    .sidebar {
        display: none; /* Cache le menu latéral par défaut */
    }

    .sidebar.active {
        display: flex; /* Affiche le menu latéral lorsqu'il est activé */
        transition: transform 0.3s ease; /* Ajoute une transition */
    }

    .imgintro {
        margin-left: 110px;
    }

    .imgintro h2 {
        font-size: 14px;
        font-weight: 600;
        margin: 0px;
    }

    .litemail {
        display: table-column;
    }
    
    .bigemail {
        display: none;
    }
    
    .contact-form-section {
        display: flex;
        justify-content: space-between;
        width: 80%;
        margin: 2rem auto;
        padding: 2rem;
        border-radius: 8px;
        background-color: #ffffff;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    }
    
    .contact-content {
        display: flex;
        width: 100%;
    }
    
    .form-container {
        width: 55%;
        padding-right: 2rem;
    }
    
    .contact-info {
        width: 40%;
        padding-left: 1rem;
        border-left: 2px solid #ddd;
    }
    
    .contact-form-section h2 {
        text-align: center;
        margin-bottom: 1rem;
        color: rgb(40, 140, 90);
    }
    
    .contact-form {
        display: flex;
        text-align: left;
        flex-wrap: wrap;
        justify-content: space-between;
    }
    
    .contact-form label {
        flex: 1 1 100%;
        margin-bottom: 0.5rem;
        font-weight: bold;
    }
    
    .contact-form input,
    .contact-form textarea {
        flex: 1 1 48%;
        margin-bottom: 1.5rem;
        font-size: 16px;
        color: #262626;
        padding: 1rem;
        border: 1px solid #ddd;
        border-radius: 4px;
        width: calc(48% - 1rem);
    }
    
    .contact-form textarea {
        width: calc(100% - 1rem);
        flex: 1 1 100%;
    }
    
    .contact-form button {
        flex: 1 1 100%;
        padding: 1rem;
        border: none;
        border-radius: 4px;
        background-color: rgb(40, 140, 90);
        color: white;
        font-size: 1rem;
        cursor: pointer;
        transition: background-color 0.3s;
    }
    
    .contact-form button:hover {
        background-color: rgb(31, 110, 71);
    }
    
    .contact-info {
        margin-left: 2rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .contact-info h2 {
        font-size: 19px;
    }
    
    .contact-info p {
        margin-bottom: 0.5rem;
        line-height: 1.5;
    }
    
    .contact-info strong {
        color: rgb(40, 140, 90);
    }
}
