/*
 * ===============================================
 * Feuille de Style d'Impression - VERSION DÉFINITIVE
 * ===============================================
 */

@page {
    size: A4;
    margin: 1.5cm;
}

body {
    background: #FFFFFF !important;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 10pt;
}

* {
    color: #000 !important;
    text-shadow: none !important;
    box-shadow: none !important;
}

h1, h2, h3 {
    text-align: center;
    page-break-after: avoid;
}
h1 { font-size: 18pt; margin-bottom: 20px;}
h2 { font-size: 14pt; margin-top: 20px; }

/* --- Éléments à cacher --- */
header, .navbar, .btn, .wine-tabs, .d-print-none {
    display: none !important;
}

/* --- CORRECTION POUR FORCER L'AFFICHAGE DES TITRES DE SECTION (Vins Rouges, etc.) --- */
/* Cette règle est plus spécifique et gagnera le conflit avec les classes de Bootstrap */
.d-none.d-print-block {
    display: block !important;
}
h2.d-print-block {
    border-top: 2px solid #000;
    padding-top: 20px;
    margin-top: 30px;
}


/* --- CORRECTION POUR LE FOOTER --- */
footer {
    display: block !important;
    position: static !important; /* S'affiche à la fin du flux de contenu */
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 10px;
    margin-top: 30px;
    font-size: 8pt;
    background: transparent !important;
    width: 100%;
    page-break-before: auto;
}
/* On s'assure que tout le contenu du footer est visible */
footer p {
    display: block !important;
}
/* On cache UNIQUEMENT la ligne de copyright */
footer p:first-child { 
    display: none !important;
}

/* --- MISE EN PAGE DES CARTES --- */
.container {
    background: none !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

.row {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 20px;
}
.col-lg-6 {
    width: 48% !important;
    padding: 0 !important;
    page-break-inside: avoid;
}

.menu-section {
    border: 1px solid #000;
    padding: 15px;
    margin-bottom: 20px;
    page-break-inside: avoid;
}

.menu-title, .wine-category-title {
    font-size: 14pt;
    border-bottom: 1px solid #000;
    margin-bottom: 10px;
    padding-bottom: 5px;
}

/* --- CORRECTION POUR AFFICHER TOUS LES VINS --- */
/* Force l'affichage de tout le contenu des onglets en un seul flux */
.tab-content, .tab-pane {
    display: block !important;
}

/* --- STYLES DES ITEMS --- */
.tapas-item, .wine-item, .menu-item {
    padding: 5px 0;
    border-bottom: 1px dotted #ccc;
    page-break-inside: avoid;
}
.tapas-item:last-child, .wine-item:last-child, .menu-item:last-child {
    border-bottom: none;
}
.tapas-price, .wine-details, .menu-title .price {
    white-space: nowrap;
}

/* On cache les icônes décoratives à l'impression, elles prennent de la place */
.menu-title::before, .wine-category-title::before {
    display: none;
}