/* Styles personnalisés pour le Gestionnaire de Repas */

/* Badges spéciaux */
.vegetarian-badge {
    background-color: #28a745 !important;
    color: white;
}

.vegan-badge {
    background-color: #20c997 !important;
    color: white;
}

.cost-badge {
    background-color: #007bff;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-weight: 500;
}

/* Étoiles de difficulté */
.difficulty-stars {
    color: #ffc107;
}

.difficulty-stars i {
    margin-right: 0.1rem;
}

/* Cartes de recettes */
.recipe-card {
    transition: transform 0.2s ease-in-out;
}

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

/* Filtres */
.filter-section {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
}

/* Liste de courses */
.shopping-item {
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.shopping-item:hover {
    background-color: #f8f9fa;
    border-left-color: #007bff;
}

.shopping-item.completed {
    opacity: 0.6;
    background-color: #d4edda;
}

.shopping-checkbox:checked ~ * .item-name {
    text-decoration: line-through;
    color: #6c757d;
}

/* Animations */
.checked-animation {
    background-color: #d4edda !important;
    border-left-color: #28a745 !important;
    animation: pulse 0.3s ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* Calendrier */
.calendar-table {
    table-layout: fixed;
}

.calendar-table th,
.calendar-table td {
    width: 14.28%; /* 100% / 7 jours */
    vertical-align: top;
    height: 250px;
    padding: 0.5rem;
}

.day-header {
    text-align: center;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.meal-header {
    background-color: #f8f9fa;
    padding: 0.25rem 0.5rem;
    margin: -0.5rem -0.5rem 0.5rem -0.5rem;
    font-weight: 600;
    font-size: 0.85rem;
    border-bottom: 1px solid #dee2e6;
}

.lunch-row .meal-header {
    background-color: #fff8e1;
    color: #f57c00;
}

.dinner-row .meal-header {
    background-color: #e8f4f8;
    color: #455a64;
}

.meal-content {
    height: calc(100% - 2rem);
    overflow-y: auto;
    padding: 0.25rem;
}

.meal-content.empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: calc(100% - 2rem);
}

.meal-item {
    margin-bottom: 0.5rem;
    padding: 0.25rem;
    border-radius: 4px;
    font-size: 0.85rem;
}

.meal-item.starter {
    background-color: #e8f5e8;
    border-left: 3px solid #28a745;
}

.meal-item.main {
    background-color: #e3f2fd;
    border-left: 3px solid #2196f3;
}

.meal-item.dessert {
    background-color: #fce4ec;
    border-left: 3px solid #e91e63;
}

/* Statistiques */
.info-card {
    padding: 0.75rem;
    border-radius: 0.375rem;
    background-color: #f8f9fa;
    margin-bottom: 0.5rem;
}

.cost-category {
    padding: 1rem;
    border-radius: 0.375rem;
    background-color: #f8f9fa;
    margin-bottom: 1rem;
    text-align: center;
}

.cost-category i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.record-item {
    padding: 0.75rem;
    border-left: 4px solid #e9ecef;
    background-color: #f8f9fa;
    border-radius: 0.25rem;
    margin-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .calendar-table {
        font-size: 0.8rem;
    }
    
    .calendar-table th,
    .calendar-table td {
        height: 200px;
    }
    
    .meal-item {
        font-size: 0.75rem;
        margin-bottom: 0.25rem;
    }
    
    .btn-group .btn {
        font-size: 0.875rem;
        padding: 0.375rem 0.5rem;
    }
}

/* Impression */
@media print {
    .btn, .btn-group, nav, footer, .no-print {
        display: none !important;
    }
    
    .card {
        border: 1px solid #000 !important;
        box-shadow: none !important;
        break-inside: avoid;
        margin-bottom: 1rem;
    }
    
    .shopping-item {
        break-inside: avoid;
        margin-bottom: 0.5rem;
    }
    
    @page {
        margin: 1cm;
        size: A4;
    }
}

/* Utilitaires */
.text-decoration-none:hover {
    text-decoration: none !important;
}

.cursor-pointer {
    cursor: pointer;
}

/* === MES AJOUTS === */
body, html {
    height: 100%;
    margin: 0;
    padding: 0;
    color:#3C3529;
}

main.container {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

/* Classe utilitaire pour centrer les cartes de formulaire */
.form-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 80vh; /* Ajusté pour laisser de l'espace au header/footer */
    padding-top: 5vh;
}
/* Conteneur du diaporama */
.slideshow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2; /* sous tout le contenu */
    overflow: hidden;
}

.slideshow div {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: slideShow 30s infinite;
}

/* Images de fond */
.slideshow div:nth-child(1) {
    background-image: url('/edp/static/img/cuisine1.jpg');
    animation-delay: 0s;
}
.slideshow div:nth-child(2) {
    background-image: url('/edp/static/img/cuisine2.jpg');
    animation-delay: 6s;
}
.slideshow div:nth-child(3) {
    background-image: url('/edp/static/img/cuisine3.jpg');
    animation-delay: 12s;
}
.slideshow div:nth-child(4) {
    background-image: url('/edp/static/img/cuisine4.jpg');
    animation-delay: 18s;
}
.slideshow div:nth-child(5) {
    background-image: url('/edp/static/img/cuisine5.jpg');
    animation-delay: 24s;
}

/* Animation */
@keyframes slideShow {
    0% { opacity: 0; }
    5% { opacity: 1; }
    25% { opacity: 1; }
    30% { opacity: 0; }
    100% { opacity: 0; }
}

/* --- VOILE SEMI-TRANSPARENT --- */
.slideshow::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 250, 245, 0.55); /* blanc chaud transparent */
    backdrop-filter: blur(2px); /* léger flou pour lisibilité */
    z-index: 1;
}

/* Position du contenu par-dessus */
main, .card, .navbar {
    position: relative;
    z-index: 10;
}

/* === STYLISATION DU CONTENU === */

/* Carte */
.card {
    background-color: rgba(255, 255, 255, 0.92);
    border: 1px solid #E9DFD2; /* crème clair */
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
}

/* Navbar */
.navbar {
    background-color: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(6px);
    border-bottom: 1px solid #E9DFD2;
}

<<<<<<< HEAD
.navbar .nav-link, 
=======
.navbar .nav-link,
>>>>>>> 8528a40582bd1921380e07c2ee4369d832996709
.navbar .navbar-brand {
    color: #5B5147 !important;
    font-weight: 500;
}

.navbar .nav-link:hover {
    color: #C97A57 !important; /* accent terracotta */
}

/* Bouton principal */
.btn-primary {
    background-color: #C97A57;
    border-color: #C97A57;
    color: white;
    font-weight: 600;
    transition: all 0.2s ease-in-out;
}

.btn-primary:hover {
    background-color: #B36A48;
    border-color: #B36A48;
}

/* Liens */
a {
    color: #C97A57;
}

a:hover {
    color: #B36A48;
}

/* Label et texte formulaire */
label {
    color: #5B5147;
    font-weight: 500;
}


/* Largeur par défaut : mobile/tablette */
.col-md-6 > .card {
    width: 100%;
    max-width: 500px;  /* largeur max sur petits écrans */
}

/* Largeur plus grande sur PC */
@media (min-width: 992px) {  /* écrans larges (PC) */
    .col-md-6 > .card {
        min-width: 500px;  /* largeur plus large sur PC */
    }
}
