/* --- Global --- */
html, body {
    overflow-x: hidden;
    height: 100%;
    margin: 0;
    padding: 0;
}

#page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#page-wrapper main {
    flex: 1; /* rempli tout l'espace disponible */
}

body {
    background-color: rgba(128, 91, 58, 0.85);
    font-family: "Barlow", sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

ul {
    list-style: none; /* supprime les puces */
    padding: 0;       /* supprime le padding par défaut */
    margin: 0;        /* optionnel : supprime le margin par défaut */
}

/* Titres */
h1, h2, h3, h4, h5, h6 {
    font-family: "Averia Libre", system-ui;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Footer */
footer {
    background-color: #35322f;
}

form label {
    pointer-events: none; /* le label ne réagit plus au clic */
    cursor: default;      /* curseur normal */
}



.politique {
    margin-bottom: 0.2rem;
    font-size: 0.9rem;
}

/* Boutons génériques */
button {
    background-color: rgba(0,0,0,0.6);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}
button:hover {
    background-color: rgba(0,0,0,0.8);
}

/* Navbar container */
.navbar .container-fluid {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem;
}

/* Logo */
.navbar-brand img {
    width: 60px;
    height: 60px;
    transition: width 0.3s ease, height 0.3s ease;
}

/* Titre centré et fixe en mobile */
.navbar-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.2rem;
    color: white;
    white-space: nowrap;
    margin: 0;
    pointer-events: none;
    z-index: 1060;
}

/* Hamburger bouton */
.navbar-toggler {
    font-size: 1.2rem;
    padding: 0.5rem 0.7rem;
    border: none;
    z-index: 1061;
}

/* Hamburger icône */
.navbar-toggler-icon {
    width: 2rem;
    height: 2rem;
    background-size: 100% 100%;
}

/* Menu lien */
.navbar .nav-link {
    font-size: 0.9rem;
    white-space: nowrap;
    padding: 0.3rem 0.6rem;
}

/* Dropdown menu mobile - ouverture à gauche */
.dropdown-end-mobile .dropdown-menu {
    left: 0 !important;
    right: auto !important;
    top: 100%;
    min-width: 150px;
    background-color: rgba(128, 91, 58, 0.85) !important;
    box-shadow: none !important;
    z-index: 1050;
}

/* Dropdown items */
.dropdown-end-mobile .dropdown-item {
    font-size: 0.9rem;
    padding: 0.4rem 1rem;
    transition: background-color 0.3s ease;
}
.dropdown-item:hover {
    background-color: #5a3d1b !important;
}


/*Pour input ne pas etre le bordure en couleur bleue*/
input:focus,
textarea:focus,
select:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Mobile et tablette : menu déroulant */
@media (max-width: 991.98px) {
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        width: 250px;
        background-color: rgba(128, 91, 58, 0.85);
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        padding: 1rem 0;
        z-index: 1050;
    }
    .navbar-collapse.collapse:not(.show) {
        display: none;
    }
}

/* --- min-width: 481px --- */
@media (min-width: 481px) {
    .navbar-brand img {
        width: 80px;
        height: 80px;
    }
    .navbar-title {
        position: static;
        transform: none;
        font-size: 1.6rem;
        margin-left: 1rem;
        pointer-events: auto;
        z-index: auto;
    }
    .navbar-toggler {
        font-size: 1.5rem;
        padding: 0.8rem 1rem;
    }
    .navbar-toggler-icon {
        width: 2.5rem;
        height: 2.5rem;
    }
    .navbar .nav-link {
        font-size: 1rem;
        padding: initial;
    }
}

/* --- min-width: 769px (tablettes) --- */
@media (min-width: 769px) {
    .navbar-title {
        font-size: 2rem;
    }
    .navbar .nav-link {
        font-size: 1.1rem;
    }
    footer {
        padding: 1.5rem 0; /* plus d'espace vertical */
    }

    footer .d-flex {
        flex-wrap: wrap; /* autorise le retour à la ligne si besoin */
        gap: 1.5rem; /* espace entre les éléments */
    }

    footer .d-flex a,
    footer .d-flex p {
        font-size: 1.1rem; /* texte un peu plus grand */
    }
}

/* Plage entre 992px et 1199px : afficher hamburger */
@media (min-width: 992px) and (max-width: 1199px) {
    .navbar-collapse.collapse:not(.show) {
        display: none !important;
    }
    .navbar-toggler {
        display: block;
    }
    .navbar-brand img {
        max-height: 100px;
        height: auto;
        width: auto;
    }


}



