body {
    background-color: rgb(208, 211, 204);
    font-family: "Poppins", serif;
}

.logo {
    width: 3em;
    border-radius: 50%;
    margin-right: 10px;
}

/* Navigation */
.nav-item:hover {
    font-weight: bold;
    font-size: 1rem;
}

.btn {
    border: 1px solid;
    color: black;
}

.btn:hover {
    font-weight: bold;
    background: rgb(168, 164, 164);
    color: white;
}

/* Barre de recherche */
.delice {
    font-family: "Dancing Script", cursive;
    text-shadow: rgba(12, 1, 1, 0.5) 6px 3px 6px;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
}

.shadow {
    text-shadow: rgba(15, 1, 1, 0.5) 6px 3px 6px;
}

.recherche {
    font-size: 1.5rem;
    font-weight: bold;
    padding: 0.7rem;
}

.main {
    border: 1px solid;
    border-radius: 10px;
}

/* Carousel */
.carousel-item img {
    object-fit: cover;
    /* Pour couvrir entièrement la zone disponible */
    width: 100%;
    height: 600px;
    /* max-height: 60vh; */
    /* Limite la hauteur à 60% de la hauteur de la fenêtre */
}

.stat-card {
    color: #fff;
    text-align: center;
    padding: 15px;
    -webkit-box-shadow: -7px 8px 38px -8px rgba(0, 0, 0, 0.8);
    box-shadow: -7px 8px 38px -8px rgba(0, 0, 0, 0.8);
}

/* Formulaire */
.formulaire-ajout-recette {
    border: 1px solid #ccc;
    border-radius: 20px;
    padding: 20px;
    margin: 0 auto;
    margin-top: 20px;
}

.dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    border: none;
    background-color: transparent;
    box-shadow: none;
}

/* Applique le style placeholder pour tous les champs avec placeholder */
input::placeholder,
textarea::placeholder,
.placeholder {
    color: rgba(0, 0, 0, 0.5);
    font-size: 0.9em;
}

/* Detail-recette */
.photo-card {
    width: 100% !important;
    height: 200px;
    object-fit: cover;
}

.carte {
    -webkit-box-shadow: -7px 8px 38px -8px rgba(0, 0, 0, 0.8);
    box-shadow: -7px 8px 38px -8px rgba(0, 0, 0, 0.8);
    transition: transform 0.3s ease-in-out;
}

.carte:hover {
    transform: scale(1.05);
}

.interaction {
    font-size: 10px;
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    margin-bottom: 0;
    color: #e45f4e;
}

.interaction-detail {
    display: flex;
    justify-content: space-evenly;
}

.temps-personne {
    font-size: 17px;
    display: flex;
    justify-content: space-evenly;
}

.special p {
    font-size: 12px;
}

.special span {
    color: #e45f4e;
    font-weight: bold;
}

/* Formulaire d'inscription/ connexion */
.formulaire-connexion {
    /* background-color: #f5f5f5; */
    border: 1px solid #ccc;
    border-radius: 20px;
    padding: 20px;
    margin: 0 auto;
    margin-top: 20px;
    -webkit-box-shadow: -7px 8px 38px -8px rgba(0, 0, 0, 0.8);
    box-shadow: -7px 8px 38px -8px rgba(0, 0, 0, 0.8);
    font-family: Arial, sans-serif;
}

/* Ingredient */
.ingredient-row {
    margin-bottom: 1rem;
}

.btn-delete {
    font-size: 10px;
}

.btn-delete:hover {
    color: #c82333;
}

.form-select,
.form-control {
    border-radius: 5px;
}

/* footer */
.social-media {
    border: 0;
    font-size: 16px;
    border-radius: 14px;
    font-weight: 600;
    color: #2e2323;
    -webkit-box-shadow: -7px 8px 38px -8px rgba(0, 0, 0, 0.8);
    box-shadow: -7px 8px 38px -8px rgba(0, 0, 0, 0.8);
}

.float-right {
    float: right;
}

a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.mobile-fixed-top {
    position: static;
}

/* .sidebar {
    background: #e03b3b;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    overflow-y: auto;
    border-right: 1px solid #7e5a5a;
    z-index: 100;
} */

/* .sidebar a {
    color: #141010;
    text-decoration: none;
} */


.menu-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1050;
    border-top: 1px solid #444;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.2);
}

.menu-bottom ul li {
    flex: 1;
    text-align: center;
    font-size: 0.9rem;
}

.menu-bottom i {
    font-size: 1.2rem;
}

@media (max-width: 576px) {
    .carousel-item img {
        height: 200px;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 0 !important;
    }

    .carousel-item img {
        height: 300px;
    }

    .navbar-collapse {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .navbar-nav {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: left;
        width: 100%;
        gap: 10px;
    }

    .navbar-nav .nav-item {
        width: 40%;
    }

    .navbar-nav .nav-link {
        width: 100%;
        padding: 10px 20px;
    }

    .dropdown-menu .dropdown-item {
        text-align: left;
    }

    /* Correction pour aligner les sections gauche et droite */
    .me-auto,
    .ms-auto {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        /* Centre les deux sections */
    }

    .photo-card {
        width: 100% !important;
        height: 80px;
        object-fit: cover;
    }

    /* .delice {
        display: none;
    } */

    main,
    .contenu,
    .recettes {
        padding-bottom: 50px;
    }

    .categories-scroll-wrapper {
        white-space: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        background-color: #f8f9fa;
        border-bottom: 1px solid #ddd;
        scrollbar-width: none;
        /* pour Firefox */
    }

    .categories-scroll-wrapper::-webkit-scrollbar {
        display: none;
        /* pour Chrome/Safari */
    }

    .categorie-item {
        display: inline-block;
        background-color: #ffffff;
        padding: 6px 14px;
        border-radius: 20px;
        border: 1px solid #ccc;
        font-size: 0.85rem;
        color: #333;
        white-space: nowrap;
        transition: all 0.3s ease;
    }

    .categorie-item:hover,
    .categorie-item.active {
        background-color: #343a40;
        color: #fff;
        border-color: #343a40;
    }
}

@media (max-width: 991.98px) {
    .mobile-fixed-top {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1030;
        width: 100%;
    }

    body {
        padding-top: 70px;
        /* ajuste selon la hauteur de ta navbar */
    }
}