/* Reset + Body */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #F0F0F0;
    font-family: "Open Sans", sans-serif;
}

main {
    flex: 1;
}

/* --- Navigation header --- */

.nav-head {
    display: flex;
    align-items: center;
    padding: 0 18.75rem;
    background-color: #267240;
    height: 5.3125rem;
}

.logo {
    height: 3.75rem;
    border-radius: 50%;
}

.nav-head a, 
.menu-link {
    text-decoration: none;
    color: black;
    font-size: 1rem;
}

.nav-head a:hover, 
.menu-link:hover,
.footer-links a:hover {
    transform: scale(1.05);
}

.rechercher, 
.nav-links {
    display: flex;
    align-items: center;
}

.loupe {
    height: 1.875rem;
}

.nav-links {
    width: 100%;
    justify-content: flex-end;
    gap: 40%;
}

#menu {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* Menu déroulant */
#menu-img {
    width: 4.6875rem;
    cursor: pointer;
}

#menu-box {
    position: absolute;
    top: 5.3125rem;
    right: 18.75rem;
    width: 10rem;
    padding: 0.625rem;
    background-color: white;
    border-radius: 0.625rem;
    box-shadow: 0 0.25rem 0.625rem rgba(0,0,0,0.15);
    z-index: 1;
}

.hidden {
    display: none;
}

.menu-link {
    padding: 0.25rem;
    display: flex;
    justify-content: space-between;
}

.caret-right {
    width: 1.25rem;
    transform: rotate(-90deg);
}

/* --- Barre de recherche --- */
.nav-bar {
    background-color: white;
    width: 60%;
    height: 3.75rem;
    display: flex;
    border-radius: 1rem;
    box-shadow: 0 0.25rem 0.625rem rgba(0,0,0,0.1); 
    margin: 0 auto;
    border: 1px solid #ccc;
}

.nav-choix {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0 0.6rem; 
}

.nav-choix input {
    width: 100%;
    font-size: 1rem;
    height: 2.5rem;
    border: none;
    padding-left: 0.6rem;
    border-radius: 0.6rem;
    font-family: "Open Sans", sans-serif;
}

.nav-choix input:hover {
    background-color: #e7e7e7;
}

#btnNav {
    flex: 1;
    font-family: "Open Sans", sans-serif;
    font-size: 1.125rem; 
    background-color: #267240;
    color: white;
    border: none;
    border-radius: 0 1rem 1rem 0; 
    cursor: pointer;
    transition: background 0.3s;
}

#btnNav:hover {
    background-color: #1f5d34;
}

.icon {
    width: 1.25rem; 
    height: 1.25rem;
    margin-right: 0.5rem; 
}

.separateur {
    width: 2px; 
    height: 2.5rem; 
    background-color: #7E7E7E;
    margin-left: 1rem;
}

.separateurFiltres {
    width: 90%;
    height: 0.2rem;
    background-color: #F0F0F0;
}

/* Bouton */
.button {
    font-family: "Montserrat", sans-serif;
    width: 9rem;
    height: 2.5rem;
    background-color: #267240;
    border: #267240;
    color: white;
    border-radius: 1.25rem;
    font-size: 1rem;
    cursor: pointer;
}

.button:hover {
    background-color: #155f2f;
    transition-duration: 0.5s;
}

/* --- Footer --- */
.footer-links {
    background-color: #267240;
    height: 5.3125rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12.5rem;
    padding: 0 3.125rem;
}

.footer-links a {
    text-decoration: none;
    color: black;
    font-size: clamp(0.75rem, 5vw, 1rem)
}

.footer-links p {
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.logo-footer {
    width: 1.875rem;
    height: 1.875rem;
    border-radius: 50%;
}

/* Titre */
.gros-titre {
    font-family: "Montserrat", sans-serif;
    font-size: clamp(1.25rem, 5vw, 2.375rem);
    margin: 4rem auto 5rem;
    text-align: center;
    text-decoration: underline;
    text-decoration-color: #267240;
    text-underline-offset: 1rem;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .nav-head { padding: 0 9.375rem; }
    .nav-bar { width: 75%; padding-left: 0.625rem; }
    #menu-box { right: 9.375rem; }
    .footer-links { gap: 9.375rem; }
}

@media (max-width: 768px) {
    .nav-head { padding: 0 2.5rem; }
    #menu-box { right: 2.5rem; }

    .nav-bar {
        flex-direction: column;
        width: 60%;
        height: 18.75rem; 
        padding: 0;
    }

    #btnNav { border-radius: 0 0 1rem 1rem; }
    .separateur { display: none; }
    .nav-choix { padding: 0.625rem; }

    .footer-links { gap: 3.125rem; }
}

@media (max-width: 426px) {
    .nav-head {
        padding: 0 1.25rem;
        justify-content: space-between;
    }

    .nav-links {
        width: auto;
        gap: 3.125rem;
    }

    .nav-head a { font-size: 0.875rem; }
    #menu-box { right: 1.25rem; }
    .nav-bar { width: 80%; }

    .footer-links,
    .footer-links p,
    .footer-links a {
        font-size: 0.75rem;
    }

    .footer-links { gap: 1.5rem; }
}
