@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Poppins;
}
body {
    min-height: 100vh;
	display: grid;
	grid-template-rows: auto 1fr auto;
}
img {
    max-width: 100%;
    height: auto;
}

/* Header */
header {
    background-color: white;
    color: black;
    display: flex;
    align-items: center;
    box-shadow: 0 5px 10px rgba(165, 165, 165, 0.5); 
    height: 6rem;
    position: relative; 
    z-index: 1;
}
#navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 95%;
    margin: 0 auto;
    position: relative;
    z-index: 1; 

}
#navigation_links {
    display: flex;
    flex-direction: row;
    list-style: none;
    margin-left: auto;
}
#navigation_links a {
    margin-right: 2rem;
    color: black;
}
#navigation_links a:hover {
    color: rgb(0, 149, 0);
    transition: color 0.3s ease;
}
.phone_number {
    pointer-events: none;
}
.brand_name {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}
.brand_name img {
    max-height: 100%; 
    height: 80px; 
    object-fit: contain; 
}
.nav_link {
    text-decoration: none;
    color: white;
    margin-right: 10px;
}
.divider {
    margin-right: 10px;
    border-right: 1px solid rgb(0, 0, 0);
}
.burger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    margin-left: 1rem;
}
.burger-menu div {
    width: 25px;
    height: 3px;
    background-color: black;
    margin: 4px 0;
    transition: background-color 0.3s ease;
}
.contact_link{
    color: green!important;
}

@media (max-width: 1024px) {
    .burger-menu{
        display: flex;
    }
    .divider {
        display: none;
    }
    #navbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%; 
        margin: 0;
        position: relative;
    }
    #navigation_links {
        display: flex;
        flex-direction: column;
        align-items: center;
        font-weight: 500;
        background-color: white;
        position: absolute; 
        top: 4rem; 
        left: 0; 
        width: 100%; 
        height: 100vh;
        padding: 1rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        opacity: 0;
        max-height: 0;
        overflow: hidden;
        transform: translateY(-10px); 
        transition: max-height 0.6s ease, opacity 0.6s ease, transform 0.6s ease; 
        z-index: 3000; 
        padding-top: 4rem;
    }
    #navigation_links a {
        margin-bottom: 2rem;
        font-size: 1.2rem;
    }
    #navbar.active #navigation_links {
        opacity: 1;
        max-height: 100vh; 
    }
    .burger-menu.active div {
        background-color: green;
    }
    .brand_name {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
    body.menu-active {
        overflow: hidden; /* Désactiver le défilement */
    }
}
@media (min-width: 1024px) {
    .brand_name {
        position: static;
        transform: none;
    }
    body.menu-active {
        overflow: auto;
    }
}

/* Main */
main {
    display: flex;
    align-items: center;
    text-align: justify;
    width: 80%;
    margin: auto;
    padding: 6rem 0;
}
.contact_text {
    flex: 1;
}
.contact_text h1{
    font-size: 2rem;
    margin-bottom: 2rem;
    width: 60vh;
}
.contact_zone {
    margin: 2rem 0;
}
.contact_email {
    margin: 2rem 0;
}
.bold {
    font-weight: bold;
}

/* Formulaire */
.form-container {
    display: flex;
    justify-content: center;
    text-align: center;
    flex: 1;
}
.form-row{
    display: flex;
}
.form-group {
    display: flex;
    flex-direction: column;
    text-align: justify;
    margin: 0.6rem 2rem;
}
.form-group input{
    border: none;
    padding: 8px;
    border-bottom: 1px solid rgb(0, 0, 0);
}
.form-group textarea{
    border: none;
    padding: 10px;
    border-bottom: 1px solid rgb(0, 0, 0);
    height: 80px;
    resize: none;
}
.form-group input:focus, .form-group textarea:focus{
    outline:none;
}
.form-container button{
    background-color: green;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
.form-container button:hover{
    background-color: rgba(0, 149, 0, 0.844);
}

/* Footer */
.footer_mentions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer_mentions li {
    list-style: none; 
}
.footer_mentions a{
    color: white; 
    text-decoration: none; 
    list-style: none;
    margin: 1px 0;
}
.footer_mentions a:hover {
    color: green;
    transition: color 0.4s ease;
}

/* Bot */
.bot_footer {
    background-color: black;
    color: white;
    font-weight: bold;
    font-size: 0.8rem;
    padding : 10px 40px;
}
#map {
    margin-top: 5rem;
    height: 300px; 
    width: 100%;  
    border-radius: 5px;
}
.icon {
    color: green
}

/* Responsive adjustments for smartphones (768px and below) */
@media (max-width: 1024px) {
    main {
        display: flex;
        flex-direction: column;
        width: 90%;
    }
    .contact_text {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        margin-bottom: 1.5rem;
        width: 100%;
    }
    .contact_text h1 {
        font-size: 1.6rem;
        width: 250px;
    }
    .contact_zone {
        margin: 1rem 0;
    }
    .contact_email, .contact_adress, .contact_phone {
        margin: 1rem 0;
    }
    .form-container {
        flex-direction: column;
        width: 100%;
        margin-bottom: 2rem;
    }
    .form-row {
        flex-direction: column;
        width: 100%;
    }
    .form-group {
        margin: 0.5rem 0;
    }
    .form-container button {
        width: 100%;
        margin-top: 1rem;
    }
    #map {
        height: 200px;
    }
    .footer_mentions {
        flex-direction: column;
        align-items: center;
        font-size: 0.8rem;
    }
    .footer_mentions li {
        margin: 0.2rem 0;
    }
}

/* Style général pour les notifications */
#notifications {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}
.notification {
    background-color: #333;
    color: #fff;
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 10px;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}
.notification.success {
    background-color: #28a745; 
}
.notification.error {
    background-color: #dc3545; 
}