/* 🌿 Palette de couleurs ajustée */
:root {
    --fond-principal: #FAF9F6;
    --texte-principal: #333333;
    --accent-beige: #C4A484;
    --accent-vert: #A8B5A2;
    --nav-bleu: #E6B09D;
    --blanc: #FFFFFF;
}

/* 🌍 Styles globaux */
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--fond-principal);
    color: var(--texte-principal);
    margin: 0;
    padding: 0;
}

/* 📌 Header modernisé */
.header {
    background-color: var(--nav-bleu);
    padding: 20px;
    text-align: center;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.site-title {
    color: #333333;
    font-size: 2rem;
    font-weight: 600;
}

a {
    color: black;
    text-decoration: none;
} 

/* 📌 Navigation */
.nav-list {
    list-style: none;
    padding: 0;
    margin-top: 10px;
}

.nav-list li {
    display: inline;
    margin: 0 15px;
}

.nav-link {
    color: var(--blanc);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 400;
}

.nav-link:hover {
    color: var(--accent-vert);
}

/* 📌 Boutons */
.btn-primary {
    background-color: var(--accent-beige);
    color: var(--blanc);
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--accent-vert);
    color: var(--texte-principal);
}

/* 📌 Contenu principal */
.main-content {
    padding: 50px 20px;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

/* 📌 Grid de recettes */
.recipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.recipe-card {
    background-color: var(--blanc);
    border-radius: 10px;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.05);
    padding: 15px;
    text-align: center;
    transition: transform 0.3s ease;
}

.recipe-card:hover {
    transform: scale(1.05);
}

/* 📌 Images des recettes */
.recipe-img {
    width: 100%;
    border-radius: 10px;
    height: 150px;
    object-fit: cover;
}

/* 📌 Footer */
.footer {
    background-color: var(--nav-bleu);
    color: var(--blanc);
    text-align: center;
    padding: 20px;
    box-shadow: 0px -2px 10px rgba(0, 0, 0, 0.05);
}
.ingredient-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.ingredient-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.ingredient-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    transition: transform 0.2s;
    /* Hauteur fixe pour uniformiser les cartes */
    height: 250px;
    /* Flexbox pour organiser le contenu */
    display: flex;
    flex-direction: column;
}

.add-ingredient-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #f9f9f9;
    border: 2px dashed #ddd;
}

.add-ingredient-card img {
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
}

.ingredient-card h3 {
    /* Style pour le titre */
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
    /* Hauteur fixe pour la zone de titre */
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ingredient-card img {
    /* Styles pour l'image */
    max-width: 100%;
    max-height: 160px;
    border-radius: 8px;
    transition: transform 0.2s;
    object-fit: contain;
    /* Centrer l'image même si elle n'existe pas */
    margin: auto auto;
}

/* Réserve un espace pour l'image même si elle n'existe pas */
.ingredient-card:after {
    content: "";
    display: block;
    flex-grow: 1;
}

.ingredient-card:hover {
    transform: scale(1.05);
}

.ingredient-card img:hover {
    transform: scale(1.1);
}

.button-container {
    margin-top: 20px;
    text-align: center;
}

.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 10px 20px;
    color: #fff;
    background-color: #007bff;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    font-size: 16px;
}

.btn-secondary {
    background-color: #6c757d;
}

.btn-primary:hover, .btn-secondary:hover {
    background-color: #0056b3;
}

/* Barre de recherche  */
/* Barre de recherche */
form {
    position: relative;
    margin-bottom: 20px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.search-container {
    position: relative;
    width: 300px;
    max-width: 100%;
}

form input[type="text"] {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
}

form button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    background-color: var(--accent-beige);
    color: var(--blanc);
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

form button:hover {
    background-color: var(--accent-vert);
    color: var(--texte-principal);
}

.suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    z-index: 1000;
    text-align: left;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-top: 5px;
}

.suggestion-item {
    padding: 10px;
    cursor: pointer;
}

.suggestion-item:hover {
    background-color: var(--accent-beige);
    color: var(--blanc);
}

/* Styles pour la page de modification de la recette */
.recipe-edit-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background-color: var(--fond-principal);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.image-section {
    order: -1;  /* Place l'image en premier */
    margin-bottom: 2rem;
}

.recipe-edit-title {
    font-size: 2em;
    margin-bottom: 20px;
    color: var(--texte-principal);
}

.recipe-edit-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 1.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--texte-principal);
}

.form-group input,
.form-group textarea {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
    font-size: 1em;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}



.recipe-edit-form .btn {
    width: fit-content;
    align-self: flex-start;
}

.recipe-edit-form .btn-secondary {
    background-color: var(--accent-vert);
}

.recipe-edit-form .btn-secondary:hover {
    background-color: var(--accent-beige);
    color: var(--texte-principal);
}

.show-more-container {
    display: flex;
    text-align: center;
    justify-content: center;
    margin-top: 20px;
}

#show-more-btn {
    background-color: var(--accent-beige);
    color: var(--blanc);
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
}

#show-more-btn:hover {
    background-color: var(--accent-vert);
    color: var(--texte-principal);
}

#hide-btn {
    background-color: var(--accent-beige);
    color: var(--blanc);
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
}

/* ------------------------------------------------------------------------- */


.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f0f0f0;
}

.form-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.form-container h2 {
    text-align: center;
    margin-bottom: 20px;
}

.form-container form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-container form .btn {
    width: fit-content;
    align-self: center;
}

.form-container form .btn-primary {
    background-color: #007bff;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.form-container form .btn-primary:hover {
    background-color: #0056b3;
}

/* 📌 Conteneur du formulaire de modification d'ingrédient */
.ingredient-edit-container {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Style responsive */
@media (max-width: 768px) {
    .ingredient-edit-container {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions button,
    .form-actions a {
        width: 100%;
    }
}

.ingredient-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* 📌 Titre du formulaire */
.ingredient-edit-title {
    font-size: 1.8rem;
    color: var(--texte-principal);
    margin-bottom: 10px;
}

/* 📌 Description du formulaire */
.ingredient-edit-description {
    font-size: 1rem;
    color: var(--texte-principal);
    margin-bottom: 20px;
}

/* 📌 Champs du formulaire */
.ingredient-edit-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
}

.ingredient-edit-form label {
    font-weight: 600;
    color: var(--texte-principal);
}

.ingredient-edit-form input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    width: 100%;
    box-sizing: border-box;
}

/* 📌 Bouton du formulaire */
.ingredient-edit-form .btn-primary {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    background-color: var(--accent-beige);
    color: var(--blanc);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.ingredient-edit-form .btn-primary:hover {
    background-color: var(--accent-vert);
    color: var(--texte-principal);
}

.recipe-launch-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 20px;
    background-color: var(--blanc);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.recipe-launch-title {
    font-size: 24px;
    color: var(--texte-principal);
    margin-bottom: 20px;
}

.recipe-launch-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.recipe-launch-form .form-group {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.recipe-launch-form label {
    font-weight: 600;
    margin-bottom: 5px;
}

.recipe-launch-form input,
.recipe-launch-form select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    width: 100%;
}

.recipe-launch-form button {
    background-color: var(--accent-beige);
    color: var(--blanc);
    padding: 12px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.recipe-launch-form button:hover {
    background-color: var(--accent-vert);
    color: var(--texte-principal);
}

.profile-container {
    position: absolute;
    top: 20px;
    right: 20px;
}

.profile-pic {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-beige);
    cursor: pointer;
    transition: transform 0.2s;
}

.profile-pic:hover {
    transform: scale(1.05);
}


.profile-menu {
    display: none;
    position: absolute;
    right: 0;
    background-color: white;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    overflow: hidden;
    z-index: 1;
}

.profile-menu a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.profile-menu a:hover {
    background-color: var(--accent-vert);
    color: white;
}

.profile-menu.show {
    display: block;
}

/* account manage  */

.account-manage-container {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.profile-header {
    position: relative;
    width: fit-content;
    margin: 0 auto 2rem;
}

.current-profile-pic {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
}

.info-section {
    margin-top: 2rem;
}

.info-group {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

.info-group label {
    display: block;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.info-value {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.info-value span {
    font-size: 1.1rem;
    color: var(--texte-principal);
}

.read-only {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

.btn-edit {
    background: none;
    border: none;
    color: var(--accent-vert);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.btn-edit:hover {
    background-color: rgba(0,0,0,0.05);
}

/* Styles pour les modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
}

.modal-content {
    background-color: white;
    width: 90%;
    max-width: 400px;
    margin: 15% auto;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Styles pour les messages */
.messages {
    list-style: none;
    padding: 0;
    margin-bottom: 1rem;
}

.message {
    padding: 1rem;
    margin-bottom: 0.5rem;
    border-radius: 4px;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
}

/* Styles pour le formulaire de mot de passe */
.password-change-container {
    max-width: 500px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.password-change-container h2 {
    margin-bottom: 1.5rem;
    color: var(--texte-principal);
}

.btn-secondary:hover {
    background-color: #5a6268;
}


/* Style pour recipe_form.html */
.recipe-form-container {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.form-title {
    color: var(--texte-principal);
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--accent-beige);
}

.recipe-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.recipe-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.recipe-form label {
    font-size: 1.1rem;
    color: var(--texte-principal);
    font-weight: 500;
}

.recipe-form input[type="text"],
.recipe-form input[type="number"] {
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.recipe-form textarea {
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    min-height: 200px;
    font-size: 1rem;
    line-height: 1.5;
    resize: vertical;
    transition: all 0.3s ease;
}

.recipe-form input:focus,
.recipe-form textarea:focus {
    border-color: var(--accent-vert);
    outline: none;
    box-shadow: 0 0 0 3px rgba(168, 181, 162, 0.2);
}

.form-errors {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    padding-left: 0.5rem;
    border-left: 3px solid #dc3545;
}

.form-actions {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}



@media (max-width: 768px) {
    .recipe-form-container {
        margin: 1rem;
        padding: 1.5rem;
    }
}

.image-preview-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.current-image {
    max-width: 200px;
    height: 200px;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Style pour le label personnalisé */
.image-upload-label {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: var(--accent-beige);
    color: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.image-upload-label:hover {
    background-color: var(--accent-vert);
    transform: translateY(-2px);
}

.image-upload-label i {
    margin-right: 0.5rem;
}

/* Cacher l'input file par défaut */
.recipe-edit-form input[type="file"] {
    display: none;
}

.button-container .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    font-weight: 500;
}

.recipe-detail-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.recipe-image {
    width: 100%;
    height: 100%;
    max-height: 400px;
    object-fit: contain;  /* Ajout de cette ligne */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Style responsive pour les écrans plus petits */
@media (max-width: 768px) {
    .recipe-image {
        width: 100%;
        border-radius: 8px;
    }
}

.recipe-header {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.recipe-image-container {
    display: flex;
    flex-shrink: 0;
    width: 150px;
    height: 150px;
    align-items: center;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border: 3px solid var(--accent-vert);
}

.recipe-header h1 {
    flex-grow: 1;
    margin-right: 2rem;
    font-size: 2rem;
    color: var(--texte-principal);
}

@media (max-width: 768px) {
    .recipe-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .recipe-header h1 {
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .recipe-image-container {
        width: 120px;
        height: 120px;
    }
}

.recipe-info {
    background-color: var(--fond-principal);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.recipe-info p {
    margin: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.recipe-section {
    margin: 2rem 0;
}

.recipe-section h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--texte-principal);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-beige);
}

.btn-action {
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    border: none;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    min-width: 160px;
}

.btn-action.primary {
    background-color: var(--accent-vert);
    color: white;
}

.btn-action.secondary {
    background-color: var(--accent-beige);
    color: white;
}

.btn-action.publish {
    background-color: var(--accent-vert);
    color: white;
}

.btn-action.unpublish {
    background-color: var(--accent-beige);
    color: white;
}

.btn-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Style responsive */
@media (max-width: 768px) {
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-action {
        width: 100%;
        max-width: 300px;
    }
}

/* 🎨 Style unifié des boutons */
.btn-action,
.btn-primary,
.btn-secondary,
.btn-publish,
.btn-unpublish {
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    border: none;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    min-width: 160px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Variantes de couleur */
.btn-action.primary,
.btn-primary,
.btn-publish {
    background-color: var(--accent-vert);
    color: white;
}

.btn-action.secondary,
.btn-secondary,
.btn-unpublish {
    background-color: var(--accent-beige);
    color: white;
}

.btn-action.tertiary {
    background-color: var(--fond-principal);
    color: var(--texte-principal);
    border: 2px solid var(--accent-beige);
}

/* Effet de survol commun */
.btn-action:hover,
.btn-primary:hover,
.btn-secondary:hover,
.btn-publish:hover,
.btn-unpublish:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Effets de survol spécifiques */
.btn-action.primary:hover,
.btn-primary:hover,
.btn-publish:hover {
    background-color: #97a391;
}

.btn-action.secondary:hover,
.btn-secondary:hover,
.btn-unpublish:hover {
    background-color: #b39376;
}

.btn-action.tertiary:hover {
    background-color: var(--accent-beige);
    color: white;
}

/* Conteneur des boutons */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

/* Style responsive */
@media (max-width: 768px) {
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-action,
    .btn-primary,
    .btn-secondary,
    .btn-publish,
    .btn-unpublish {
        width: 100%;
        max-width: 300px;
    }
}

.action-buttons a,
.action-buttons button,
.action-buttons .btn-primary,
.action-buttons .btn-secondary {
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    border: none;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
    min-width: 160px;
    justify-content: center;
}

.action-buttons .btn-primary {
    background-color: var(--accent-beige);
    color: white;
    box-shadow: 0 2px 4px rgba(196, 164, 132, 0.2);
}

.action-buttons .btn-primary:hover {
    background-color: var(--accent-vert);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(168, 181, 162, 0.3);
}

/* Style pour les boutons secondaires */
.action-buttons .btn-secondary {
    background-color: var(--fond-principal);
    color: var(--texte-principal);
    border: 2px solid var(--accent-beige);
}

.action-buttons .btn-secondary:hover {
    background-color: var(--accent-beige);
    color: white;
    transform: translateY(-2px);
}



/* Responsive design */
@media (max-width: 768px) {
    .action-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .action-buttons a,
    .action-buttons button {
        width: 100%;
        min-width: auto;
    }
}

.action-buttons a:hover {
    transform: translateY(-2px);
}

@media (min-width: 768px) {
    .action-buttons {
        flex-direction: row;
        justify-content: center;
    }

    .action-buttons a {
        width: auto;
    }
}

.ingredient-detail-container {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: var(--blanc);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.ingredient-header {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.ingredient-image-container {
    flex-shrink: 0;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    border: 3px solid var(--accent-vert);
}

.ingredient-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ingredient-header h1 {
    flex-grow: 1;
    margin-right: 2rem;
    font-size: 2rem;
    color: var(--texte-principal);
}

.ingredient-info {
    background-color: var(--fond-principal);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 0;
    font-size: 1.1rem;
}

.info-item i {
    color: var(--accent-beige);
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .ingredient-header {
        flex-direction: column;
        text-align: center;
    }

    .ingredient-header h1 {
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .ingredient-image-container {
        width: 120px;
        height: 120px;
    }
}

/* Masquer complètement les éléments liés au fichier */
.hidden-file-input,
.clearable-file-input,
input[type="file"],
.clearablefileinput {
    display: none !important;
}

/* Masquer les paragraphes dans le formulaire d'image */
.image-preview-container p {
    display: none !important;
}

/* Masquer la case à cocher "Clear" */
.image-preview-container input[type="checkbox"] {
    display: none !important;
}

.image-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.image-delete-label {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.image-delete-label:hover {
    background-color: #c82333;
    transform: translateY(-2px);
}

.filter-section {
    margin-bottom: 2rem;
}

.filter-form {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.filter-options {
    display: flex;
    gap: 1rem;
}



.recipe-meta {
    font-size: 0.9rem;
    color: var(--texte-secondaire);
    margin-top: 0.5rem;
}


/* Style pour les select de type et saison */
.recipe-form select {
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    background-color: white;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
    padding-right: 2.5rem;
    transition: all 0.3s ease;
}

.recipe-form select:focus {
    border-color: var(--accent-vert);
    outline: none;
    box-shadow: 0 0 0 3px rgba(168, 181, 162, 0.2);
}

.recipe-form select:hover {
    border-color: var(--accent-beige);
}

/* Style pour les options dans les select */
.recipe-form select option {
    padding: 0.5rem;
    font-size: 1rem;
}

/* Style responsive */
@media (max-width: 768px) {
    .recipe-form select {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
}

/* Section Recettes Publiques */
.public-recipes-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.public-header {
    text-align: center;
    margin-bottom: 3rem;
}

.public-header h1 {
    font-size: 2.5rem;
    color: var(--texte-principal);
    margin-bottom: 0.5rem;
}

.subtitle {
    color: var(--texte-secondaire);
    font-size: 1.1rem;
}

/* Recherche et Filtres */
.search-and-filters {
    background-color: var(--fond-principal);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.search-section {
    margin-bottom: 1.5rem;
}

.search-wrapper {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--texte-secondaire);
}

#recipe-search {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid var(--accent-beige);
    border-radius: 8px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

#recipe-search:focus {
    border-color: var(--accent-vert);
    box-shadow: 0 0 0 3px rgba(168, 181, 162, 0.2);
    outline: none;
}

.filters-bar {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.filter-group i {
    color: var(--accent-beige);
}

.filter-select {
    border: none;
    padding: 0.5rem;
    font-size: 1rem;
    color: var(--texte-principal);
    cursor: pointer;
    background: transparent;
}

.filter-select:focus {
    outline: none;
}

/* Grille de recettes */
.public-recipes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}



.public-recipe-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.recipe-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.recipe-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.public-recipe-card:hover .recipe-overlay {
    opacity: 1;
}

.btn-view {
    background-color: var(--accent-beige);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.3s ease;
}

.btn-view:hover {
    transform: scale(1.05);
    background-color: var(--accent-vert);
}

.recipe-content h3 {
    margin: 0 0 1rem;
    font-size: 1.2rem;
    color: var(--texte-principal);
}

.recipe-tags {
    display: flex;
    gap: 0.5rem;
}

.tag {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.tag.type {
    background-color: var(--accent-beige);
    color: white;
}

.tag.season {
    background-color: var(--accent-vert);
    color: white;
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    background: var(--fond-principal);
    border-radius: 12px;
    color: var(--texte-secondaire);
}

.no-results i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--accent-beige);
}

@media (max-width: 768px) {
    .public-header h1 {
        font-size: 2rem;
    }

    .filters-bar {
        flex-direction: column;
    }

    .filter-group {
        width: 100%;
    }

    .filter-select {
        width: 100%;
    }
}

/* Style pour la publiction  */
.recipe-actions {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.btn-publish, .btn-unpublish {
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-publish {
    background-color: var(--accent-vert);
    color: white;
}

.btn-unpublish {
    background-color: var(--accent-beige);
    color: white;
}

.btn-publish:hover, .btn-unpublish:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.publish-form {
    display: inline-block;
}

/* Badge pour les recettes publiques */
.public-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: var(--accent-vert);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* En-tête de la carte avec info auteur */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.author-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.author-photo {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-vert);
}

.author-name {
    font-size: 0.9rem;
    color: var(--texte-principal);
    font-weight: 500;
}

.publish-date {
    font-size: 0.8rem;
    color: var(--texte-secondaire);
}

/* Image de la recette */
.recipe-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.recipe-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.public-recipe-card:hover .recipe-main-image {
    transform: scale(1.05);
}

/* Contenu de la recette */
.recipe-content {
    padding: 1rem;
}

.recipe-content h3 {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
    color: var(--texte-principal);
}

.recipe-meta {
    display: flex;
    gap: 1rem;
    margin: 0.5rem 0;
    color: var(--texte-secondaire);
    font-size: 0.85rem;
}


.public-recipe-card:hover .recipe-overlay {
    opacity: 1;
}


.public-recipe-card {
    background-color: var(--blanc);
    border: 1px solid #e0e0e0;  /* Ajout de la bordure */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    margin-bottom: 1rem;  /* Ajout de marge en bas */
}

/* Style responsive */
@media (max-width: 768px) {
    .card-header {
        padding: 0.5rem;
    }

    .author-photo {
        width: 20px;
        height: 20px;
    }

    .author-name, .publish-date {
        font-size: 0.8rem;
    }
}


/* Style du bouton Like */
.btn-action.like {
    background-color: #fff;
    color: var(--accent-beige);
    border: 2px solid var(--accent-beige);
    transition: all 0.3s ease;
}

.btn-action.like.liked {
    background-color: var(--accent-beige);
    color: white;
}

.btn-action.like:hover {
    background-color: var(--accent-beige);
    color: white;
    transform: translateY(-2px);
}

/* Style des stats de la recette */
.recipe-stats {
    display: flex;
    gap: 2rem;
    margin: 1rem 0;
    font-size: 1.1rem;
    color: var(--texte-secondaire);
}

.recipe-stats i {
    color: var(--accent-beige);
}

.likes i {
    color: var(--accent-beige);
}

.likes.liked i {
    color: white;
}

/* Ajouter dans votre fichier CSS */
.photo-upload-container {
    text-align: center;
    padding: 1rem;
}

.photo-preview {
    width: 150px;
    height: 150px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--accent-beige);
}

.photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.custom-file-upload {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    cursor: pointer;
    background-color: var(--accent-vert);
    color: white;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.custom-file-upload:hover {
    background-color: var(--accent-beige);
}

#photo-input {
    display: none;
}

.modal-buttons {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Style de la page de résultat de lancement */
.launch-result-container {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: var(--blanc);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.launch-header {
    text-align: center;
    margin-bottom: 3rem;
}

.launch-header h1 {
    font-size: 2.5rem;
    color: var(--texte-principal);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--accent-beige);
}

.recipe-image-container {
    max-width: 500px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.recipe-main-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.recipe-main-image:hover {
    transform: scale(1.05);
}

.ingredients-section {
    margin: 3rem 0;
}

.ingredients-section h2 {
    font-size: 1.8rem;
    color: var(--texte-principal);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ingredients-section h2 i {
    color: var(--accent-beige);
}

.ingredient-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.ingredient-card {
    background-color: var(--fond-principal);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.ingredient-card:hover {
    transform: translateY(-5px);
}

.ingredient-image {
    height: 150px;
    overflow: hidden;
}

.ingredient-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ingredient-card:hover .ingredient-image img {
    transform: scale(1.1);
}

.ingredient-content {
    padding: 1.5rem;
}

.ingredient-content h3 {
    font-size: 1.2rem;
    color: var(--texte-principal);
    margin-bottom: 0.5rem;
}

.quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--texte-secondaire);
    font-size: 1.1rem;
}

.quantity i {
    color: var(--accent-beige);
}

/* Style responsive */
@media (max-width: 768px) {
    .launch-result-container {
        margin: 1rem;
        padding: 1rem;
    }

    .launch-header h1 {
        font-size: 2rem;
    }

    .recipe-main-image {
        height: 200px;
    }

    .ingredient-grid {
        grid-template-columns: 1fr;
    }
}

/* Styles pour la grille d'ingrédients compacte */
.ingredients-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

.compact-ingredient-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.compact-ingredient-card {
    background-color: var(--blanc);
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 0.5rem;
    text-align: center;
    transition: transform 0.2s;
    height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.compact-ingredient-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.ingredient-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 0.5rem;
}

.ingredient-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.compact-ingredient-card h3 {
    font-size: 0.8rem;
    margin: 0;
    color: var(--texte-principal);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
}

/* Styles pour les filtres de catégories */
.categories-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
    justify-content: center;
}

.category-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--accent-beige);
    border-radius: 20px;
    background: none;
    color: var(--texte-principal);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.category-btn:hover,
.category-btn.active {
    background-color: var(--accent-beige);
    color: white;
}

/* Style spécial pour la carte d'ajout */
.add-ingredient-card {
    border: 2px dashed #e0e0e0;
    background-color: var(--fond-principal);
}

.add-ingredient-card .ingredient-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-ingredient-card i {
    font-size: 1.5rem;
    color: var(--accent-beige);
}


.info-item span {
    color: var(--texte-principal);
}

/* Style responsive */
@media (max-width: 768px) {
    .info-item {
        font-size: 1rem;
    }
}

/* Styles pour la grille de recettes compacte */
.recipes-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.recipes-page h1 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--texte-principal);
}

.compact-recipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.compact-recipe-card {
    background-color: var(--blanc);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.recipe-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 0.5rem;
}

.recipe-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.compact-recipe-card h3 {
    font-size: 0.9rem;
    margin: 0;
    color: var(--texte-principal);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
}

.recipe-season {
    font-size: 0.8rem;
    color: var(--texte-secondaire);
    margin-top: 0.25rem;
}

.add-recipe-card {
    border: 2px dashed #e0e0e0;
    background-color: var(--fond-principal);
}

.add-recipe-card:hover {
    background-color: var(--blanc);
    border-color: var(--accent-beige);
}

.add-recipe-card i {
    font-size: 1.5rem;
    color: var(--accent-beige);
}

/* Style hover */
.compact-recipe-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Style pour le formulaire de menu */
.menu-form {
    max-width: 500px;
    margin: 0 auto;
}



.form-group input {
    width: 100%;
    padding: 0.8rem;
    font-size: 1rem;
    border: 1px solid var(--accent-beige);
    border-radius: 8px;
    background-color: var(--blanc);
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-vert);
    box-shadow: 0 0 0 2px rgba(168, 181, 162, 0.2);
}

.menu-recipes {
    margin: 2rem 0;
    padding: 1rem;
    background-color: var(--fond-principal);
    border-radius: 8px;
}

.menu-recipes h3 {
    color: var(--texte-principal);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    text-align: center;
}

.recipes-preview {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.recipe-preview-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem;
    background-color: var(--blanc);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.recipe-preview-item:hover {
    transform: translateX(5px);
    background-color: rgba(196, 164, 132, 0.05);
}

.recipe-preview-link {
    color: var(--accent-vert);
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.recipe-preview-link:hover {
    color: var(--accent-beige);
    background-color: rgba(168, 181, 162, 0.1);
}

.no-recipes {
    text-align: center;
    color: var(--texte-secondaire);
    font-style: italic;
    padding: 1rem;
}



/* Style raffiné pour la page de détail du menu */
.menu-detail-container {
    max-width: 800px;
    margin: 3rem auto;
    padding: 2rem;
    background-color: var(--fond-principal);
    border-radius: 12px;
}

.menu-decorative-border {
    position: relative;
    padding: 2rem;
    background-color: var(--blanc);
    border: 2px solid var(--accent-beige);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.menu-decorative-border::before {
    content: '';
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    right: 0.5rem;
    bottom: 0.5rem;
    border: 1px solid var(--accent-beige);
    border-radius: 4px;
    pointer-events: none;
}

.menu-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.menu-header-decoration {
    font-size: 2rem;
    color: var(--accent-beige);
    margin-bottom: 1rem;
}

.menu-title {
    font-size: 2.5rem;
    color: var(--texte-principal);
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
    letter-spacing: 2px;
}

.menu-meta {
    color: var(--texte-secondaire);
    font-size: 0.9rem;
    font-style: italic;
}

.menu-separator {
    color: var(--accent-beige);
    font-size: 1.2rem;
    margin: 2rem 0;
    text-align: center;
    letter-spacing: 1rem;
}

.menu-section {
    margin: 2rem 0;
    padding: 0 1rem;
}

.section-title {
    font-size: 1.5rem;
    color: var(--accent-beige);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.title-decoration {
    color: var(--accent-vert);
    font-size: 1rem;
}

.menu-recipes-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.menu-recipe-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px dotted var(--accent-beige);
    transition: all 0.3s ease;
}

.menu-recipe-item:hover {
    background-color: rgba(196, 164, 132, 0.05);
    transform: translateX(5px);
}

.recipe-name {
    font-size: 1.2rem;
    color: var(--texte-principal);
    font-family: 'Inter', sans-serif;
}

.recipe-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: var(--texte-secondaire);
}

.recipe-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-style: italic;
}

.recipe-link {
    color: var(--accent-vert);
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 50%;
}

.recipe-link:hover {
    color: var(--accent-beige);
    background-color: rgba(168, 181, 162, 0.1);
}

.menu-footer {
    margin-top: 3rem;
    text-align: center;
}

.menu-actions {
    justify-content: space-around;
    display: flex;
    margin-top: 2rem;
}

/* Style responsive */
@media (max-width: 768px) {
    .menu-detail-container {
        margin: 1rem;
        padding: 1rem;
    }

    .menu-decorative-border {
        padding: 1rem;
    }

    .menu-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .recipe-name {
        font-size: 1.1rem;
    }
}

/* Style pour le calendrier des menus */
.calendar-container {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 2rem;
    background-color: var(--blanc);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.calendar-header {
    text-align: center;
    margin-bottom: 2rem;
}

.calendar-title {
    font-size: 2.5rem;
    color: var(--texte-principal);
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
    letter-spacing: 2px;
}

.calendar-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: var(--fond-principal);
    border-radius: 8px;
}

.btn-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    color: var(--texte-principal);
    background-color: var(--blanc);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-nav:hover {
    background-color: var(--accent-beige);
    color: var(--blanc);
}

.current-period {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--texte-principal);
}

.calendar-grid {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background-color: var(--accent-beige);
    color: var(--blanc);
}

.weekday {
    padding: 1rem;
    text-align: center;
    font-weight: 600;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background-color: var(--accent-beige);
    border: 1px solid var(--accent-beige);
}

.calendar-day {
    background-color: var(--blanc);
    min-height: 120px;
    max-height: 200px;
    padding: 0.5rem;
    position: relative;
    display: flex;
    flex-direction: column;
    -ms-overflow-style: -ms-autohiding-scrollbar; /* Pour Edge */
    scrollbar-width: thin;                        /* Pour Firefox */
    overflow: auto;
}

.day-header {
    font-size: 1rem;
    color: var(--texte-principal);
    margin-bottom: 0.3rem;
    position: sticky;
    top: 0;
    background-color: var(--blanc);
    padding: 0.2rem 0;
    z-index: 1;
}

.today {
    background-color: rgba(168, 181, 162, 0.1);
}

.other-month {
    background-color: var(--fond-principal);
    color: var(--texte-secondaire);
}

.day-menus {
    flex-grow: 1;
    overflow-y: auto;
    margin-bottom: 1.5rem; /* Espace pour le bouton d'ajout */
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background-color: var(--fond-principal);
    border-radius: 4px;
    text-decoration: none;
    color: var(--texte-principal);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.menu-item:hover {
    background-color: var(--accent-beige);
    color: var(--blanc);
}

.btn-add-menu {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--accent-vert);
    color: var(--blanc);
    border-radius: 50%;
    text-decoration: none;
    font-size: 0.8rem;
    opacity: 0;
    transition: all 0.3s ease;
}

.calendar-day:hover .btn-add-menu {
    opacity: 1;
}

.calendar-legend {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    padding: 1rem;
    background-color: var(--fond-principal);
    border-radius: 8px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.legend-color.today {
    background-color: rgba(168, 181, 162, 0.1);
    border: 1px solid var(--accent-vert);
}

.legend-color.has-menu {
    background-color: var(--accent-beige);
}

/* Personnalisation de la barre de défilement */
/* Style pour la barre de défilement */
.calendar-day::-webkit-scrollbar {
    width: 0;  /* Cache par défaut */
    transition: width 0.3s ease;
}

/* Affichage de la barre au survol */
.calendar-day:hover::-webkit-scrollbar {
    width: 4px;  /* Montre au survol */
}

.calendar-day:hover::-webkit-scrollbar-track {
    background: var(--fond-principal);
    border-radius: 4px;
}

.calendar-day:hover::-webkit-scrollbar-thumb {
    background: var(--accent-beige);
    border-radius: 4px;
}



/* Style responsive */
@media (max-width: 768px) {
    .calendar-container {
        margin: 1rem;
        padding: 1rem;
    }

    .calendar-title {
        font-size: 2rem;
    }

    .btn-nav {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .weekday {
        padding: 0.5rem;
        font-size: 0.9rem;
    }

    .calendar-day {
        min-height: 100px;
    }

    .menu-item {
        font-size: 0.8rem;
    }
}

/* Style pour le modal */


.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-header h2 {
    color: var(--texte-principal);
    font-size: 1.5rem;
    margin: 0;
}

.close {
    font-size: 1.5rem;
    color: var(--texte-secondaire);
    cursor: pointer;
    padding: 0.5rem;
}

.close:hover {
    color: var(--texte-principal);
}

.modal-body {
    margin-bottom: 1.5rem;
}

.modal-body p {
    color: var(--texte-principal);
    font-size: 1.1rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.btn-danger {
    background-color: #dc3545;
    color: var(--blanc);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    background-color: #c82333;
    transform: translateY(-2px);
}


.menu-item-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.btn-delete-small {
    background: none;
    border: none;
    color: var(--texte-secondaire);
    cursor: pointer;
    padding: 0.2rem;
    font-size: 0.9rem;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-delete-small:hover {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.menu-item {
    flex-grow: 1;
}

/* Style pour le modal dans le calendrier */
.calendar-container .modal {
    z-index: 1100;
}

.calendar-container .modal-content {
    background-color: var(--blanc);
    border-radius: 12px;
    max-width: 400px;
}