/* ==========================================
   MATTYLAK - CARTE DES PLATS
   VERSION AVEC PRIX PAR VIANDE
   ========================================== */

/* Bandeau informatif */
.info-banner {
    background: linear-gradient(135deg, #263782 0%, #1e2a5e 100%);
    color: white;
    padding: 20px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    border-top: 4px solid #DF1019;
    border-bottom: 4px solid #DF1019;
}

.info-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.info-banner-content i {
    font-size: 2rem;
    color: white;
}

.info-banner-content p {
    font-size: 1.1rem;
    margin: 0;
    color: white;
}

.info-banner-content strong {
    color: #FFD700;
}

.info-banner-content a {
    color: #FFD700;
    text-decoration: underline;
    font-weight: bold;
    transition: all 0.3s ease;
}

.info-banner-content a:hover {
    color: white;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* Header page carte */
.page-header-carte {
    background: linear-gradient(135deg, #263782 0%, #1a2654 100%);
    padding: 60px 20px 40px;
    text-align: center;
    color: white;
}

.page-header-carte h1 {
    color: white;
    font-size: 2.5em;
    margin-bottom: 10px;
}

.page-header-carte p {
    font-size: 1.2em;
    opacity: 0.9;
}

/* Section filtres */
.filtres-section {
    padding: 30px 20px;
    background: #f8f9fa;
}

.filtres-section h2 {
    text-align: center;
    color: #263782;
    margin-bottom: 20px;
}

.filtre-recherche {
    max-width: 600px;
    margin: 0 auto 20px;
}

.filtre-recherche input {
    width: 100%;
    padding: 15px 20px;
    font-size: 1.1rem;
    border: 2px solid #263782;
    border-radius: 50px;
    outline: none;
    transition: all 0.3s ease;
}

.filtre-recherche input:focus {
    border-color: #DF1019;
    box-shadow: 0 0 10px rgba(223, 16, 25, 0.3);
}

/* AccordÃ©ons filtres */
.filtres-accordeon {
    max-width: 800px;
    margin: 0 auto 20px;
}

.accordeon-item {
    background: white;
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.accordeon-header {
    width: 100%;
    padding: 15px 20px;
    background: white;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    color: #263782;
    transition: all 0.3s ease;
}

.accordeon-header:hover {
    background: #f8f9fa;
}

.accordeon-header span {
    display: flex;
    align-items: center;
    gap: 10px;
}

.accordeon-icon {
    transition: transform 0.3s ease;
}

.accordeon-header.active .accordeon-icon {
    transform: rotate(180deg);
}

.accordeon-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 20px;
}

.accordeon-content.active {
    max-height: 500px;
    padding: 15px 20px;
}

/* Boutons catÃ©gories */
.filtre-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.filtre-btn {
    padding: 10px 25px;
    background: white;
    color: #263782;
    border: 2px solid #263782;
    border-radius: 25px;
    font-family: 'Londrina Solid', cursive;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filtre-btn:hover {
    background: #263782;
    color: white;
    transform: translateY(-2px);
}

.filtre-btn.active {
    background: #DF1019;
    color: white;
    border-color: #DF1019;
}

/* Checkboxes */
.filtre-checkboxes {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.filtre-checkboxes label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.filtre-checkboxes label:hover {
    border-color: #263782;
    background: #fff;
}

.filtre-checkboxes input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.filtre-checkboxes input[type="checkbox"]:checked + label,
.filtre-checkboxes label:has(input[type="checkbox"]:checked) {
    background: #263782;
    color: white;
    border-color: #263782;
}

/* Bouton reset */
.btn-reset {
    display: block;
    margin: 20px auto 0;
    padding: 12px 30px;
    background: #DF1019;
    color: white;
    border: none;
    border-radius: 25px;
    font-family: 'Londrina Solid', cursive;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-reset:hover {
    background: #b00d15;
    transform: scale(1.05);
}

/* Compteur rÃ©sultats */
.resultats-section {
    padding: 20px;
    text-align: center;
    background: white;
}

#resultatsCompteur {
    font-size: 1.3rem;
    color: #263782;
    font-weight: bold;
}

#resultatsCompteur i {
    color: #4CAF50;
    margin-right: 10px;
}

/* Grille des plats */
.plats-section {
    padding: 40px 20px 80px;
    background: white;
}

.plats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Carte plat */
.plat-card {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    background: white;
}

.plat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(38, 55, 130, 0.3);
}

.plat-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

/* Nom du plat sous la photo */
.plat-nom {
    padding: 15px;
    background: white;
    text-align: center;
}

.plat-nom h3 {
    color: #263782;
    font-size: 1.3rem;
    margin: 0;
    font-family: 'Londrina Solid', cursive;
}

/* Overlay au survol */
.plat-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(38, 55, 130, 0.96);
    color: white;
    opacity: 0;
    transition: opacity 0.4s ease;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-y: auto;
}

.plat-card:hover .plat-overlay {
    opacity: 1;
}

/* Cacher les badges (Best-seller, Signature, Nouveau) au survol */
.plat-card:hover .badge-best-seller,
.plat-card:hover .badge-signature,
.plat-card:hover .badge-nouveau {
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* ==========================================
   OPTION C : Badges viandes avec prix intÃ©grÃ©s
   ========================================== */

.plat-viandes-prix {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 12px;
}

.badge-viande-prix {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: white;
    color: #263782;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.badge-viande-prix strong {
    color: #DF1019;
    font-family: 'Londrina Solid', cursive;
    font-size: 1rem;
    margin-left: 2px;
}

.badge-viande-prix:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* IngrÃ©dients au milieu (espace prÃ©servÃ©) */
.plat-ingredients {
    background: rgba(255, 255, 255, 0.1);
    padding: 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.5;
    text-align: center;
    flex: 1;
    overflow-y: auto;
    margin: 8px 0;
}

/* Infos en bas (piquant + allergÃ¨nes) */
.plat-infos-bottom {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.badge-piquant {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
}

.plat-allergenes {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
}

.badge-allergene {
    background: rgba(255, 107, 107, 0.3);
    color: white;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.badge-allergene.badge-ok {
    background: rgba(76, 175, 80, 0.3);
}

/* Badges Best-seller, Signature, Nouveau */
.badge-best-seller {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #FFD700;
    color: #263782;
    padding: 6px 12px;
    border-radius: 15px;
    font-weight: bold;
    font-size: 0.8rem;
    z-index: 10;
    transition: opacity 0.3s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
}

.badge-signature {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #DF1019;
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-weight: bold;
    font-size: 0.8rem;
    z-index: 10;
    transition: opacity 0.3s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
}

.badge-nouveau {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #4CAF50;
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-weight: bold;
    font-size: 0.8rem;
    z-index: 10;
    transition: opacity 0.3s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
}

/* Message aucun rÃ©sultat */
.no-results {
    text-align: center;
    padding: 80px 20px;
    color: #666;
}

.no-results i {
    font-size: 5rem;
    color: #263782;
    margin-bottom: 20px;
}

.no-results h3 {
    font-size: 2rem;
    color: #263782;
    margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .plats-grid {
        grid-template-columns: 1fr;
    }
    
    .info-banner-content {
        flex-direction: column;
    }
    
    .filtre-buttons,
    .filtre-checkboxes {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filtre-btn {
        width: 100%;
    }
    
    .page-header-carte h1 {
        font-size: 2rem;
    }
    
    .plat-card img {
        height: 250px;
    }
    
    .badge-viande-prix {
        font-size: 0.8rem;
        padding: 5px 10px;
    }
    
    .badge-viande-prix strong {
        font-size: 0.9rem;
    }
}
