/**
 * Theme: Valentine Romantic - Soirée Saint-Valentin Élégante
 * Inspiration: Design rouge passion avec ornements dorés et cœurs
 * Architecture: Système universel 60-30-10
 */

/* ============================================
   VARIABLES UNIVERSELLES
   ============================================ */
:root {
    /* Couleurs de base du thème */
    --valentine-deep-red: #8b1a3a;
    --valentine-rose: #e91e63;
    --valentine-gold: #d4af37;
    --valentine-cream: #fff5f8;
    --valentine-white: #ffffff;
    --valentine-text-light: rgba(255, 255, 255, 0.95);
    --valentine-text-desc: rgba(255, 255, 255, 0.80);
    
    /* Les variables --color-primary/secondary/accent sont injectées dynamiquement */
}

/* ============================================
   BODY & BACKGROUND
   ============================================ */
body {
    background: var(--color-primary, var(--valentine-deep-red)) !important;
    font-family: 'Lato', sans-serif;
    color: var(--valentine-text-light) !important;
    margin: 0;
    padding: 0;
    position: relative;
    overflow-x: hidden;
}

/* Force TOUS les textes à être blancs par défaut */
.valentine-romantic-container,
.valentine-romantic-container *,
.menu-header-valentine,
.menu-header-valentine * {
    color: var(--valentine-text-light) !important;
}

/* Exceptions pour les éléments spécifiques */
.dish-price,
.menu-title-main,
.menu-date-badge {
    color: var(--valentine-gold) !important;
}

/* Cœurs flottants décoratifs dans les coins */
body::before,
body::after {
    content: '';
    position: fixed;
    width: 300px;
    height: 300px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 88.9 C-6.25 44.45 12.5 6.67 50 28.9 C87.5 6.67 106.25 44.45 50 88.9Z' fill='%23d4af37' opacity='0.15'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.12;
    pointer-events: none;
    z-index: 1;
}

body::before {
    top: -50px;
    left: -50px;
    transform: rotate(-15deg);
}

body::after {
    bottom: -50px;
    right: -50px;
    transform: rotate(15deg) scaleX(-1);
}

/* Petits cœurs flottants animés */
@keyframes floatHeart {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.15;
    }
    50% {
        transform: translateY(-20px) rotate(10deg);
        opacity: 0.25;
    }
}

/* ============================================
   NAVBAR TOP - Minimaliste
   ============================================ */
.navbar-valentine-romantic {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 1.5rem 0;
    position: relative;
    z-index: 100;
}

.navbar-valentine-romantic .navbar-brand {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    color: var(--valentine-gold) !important;
    font-weight: 400;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.navbar-valentine-romantic .navbar-brand img {
    max-height: 60px;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

/* ============================================
   BOTTOM NAVIGATION - Discrète
   ============================================ */
.navbar-valentine-romantic-bottom {
    background: rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.3);
    padding: 0.75rem 1rem;
    z-index: 1040;
}

.navbar-valentine-romantic-bottom .navbar-brand {
    color: var(--valentine-gold) !important;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.navbar-valentine-romantic-bottom .navbar-toggler {
    border-color: var(--valentine-gold) !important;
    color: var(--valentine-gold) !important;
}

.navbar-valentine-romantic-bottom .navbar-toggler i {
    color: var(--valentine-gold) !important;
    font-size: 1.2rem;
}

.valentine-romantic-nav-link {
    color: var(--valentine-text-light) !important;
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    font-size: 0.9rem;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
    border-radius: 6px;
    background: transparent;
    border: 1px solid transparent;
}

.valentine-romantic-nav-link:hover,
.valentine-romantic-nav-link.active {
    background: rgba(212, 175, 55, 0.15) !important;
    border-color: var(--valentine-gold);
    color: var(--valentine-gold) !important;
}

/* Swipe indicator */
.navbar-valentine-romantic-bottom .swipe-indicator {
    color: var(--valentine-gold) !important;
}

/* Sélecteur de langues dans la bottom navbar */
.navbar-valentine-romantic-bottom .language-selector-dropdown,
.navbar-valentine-romantic-bottom .dropdown-menu.language-selector-dropdown {
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(212, 175, 55, 0.5);
    border-radius: 12px;
    padding: 0.25rem 0;
}

.navbar-valentine-romantic-bottom .language-selector-dropdown a,
.navbar-valentine-romantic-bottom .language-selector-dropdown .dropdown-item {
    color: var(--valentine-text-light) !important;
    font-family: 'Lato', sans-serif;
    font-size: 0.85rem;
    padding: 0.35rem 0.9rem;
}

.navbar-valentine-romantic-bottom .language-selector-dropdown .dropdown-item.active,
.navbar-valentine-romantic-bottom .language-selector-dropdown .dropdown-item:active,
.navbar-valentine-romantic-bottom .language-selector-dropdown .dropdown-item:hover {
    background: rgba(212, 175, 55, 0.2);
    color: var(--valentine-gold) !important;
}

.navbar-valentine-romantic-bottom .language-selector-dropdown .dropdown-item + .dropdown-item {
    border-top: 1px solid rgba(212, 175, 55, 0.3);
}

/* ============================================
   HEADER PRINCIPAL - "Saint-Valentin"
   ============================================ */
.menu-header-valentine {
    text-align: center;
    padding: 3rem 1.5rem 2rem;
    position: relative;
    z-index: 10;
    min-height: calc(100vh - 140px); /* occupe l'écran de garde */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.menu-title-main {
    font-family: 'Great Vibes', cursive; /* Police script romantique */
    font-size: 4.5rem;
    color: var(--valentine-gold);
    margin: 0 0 0.5rem 0;
    font-weight: 400;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.menu-subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    color: var(--valentine-text-light);
    margin: 0 0 1.5rem 0;
    font-weight: 300;
    letter-spacing: 3px;
}

.menu-date-badge {
    display: inline-block;
    padding: 0.75rem 2rem;
    border: 2px solid var(--valentine-gold);
    border-radius: 30px;
    font-family: 'Lato', sans-serif;
    font-size: 0.95rem;
    color: var(--valentine-gold);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.menu-word {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    color: var(--valentine-text-light);
    letter-spacing: 6px;
    text-transform: uppercase;
    margin: 2rem 0 1.5rem 0;
    font-weight: 300;
}

/* Indicateur de scroll (ligne + flèche) */
.scroll-indicator {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}

.scroll-line {
    width: 72px;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.9);
}

.scroll-arrow {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    animation: scrollBounce 1.6s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); opacity: 0.7; }
    50% { transform: translateY(6px); opacity: 1; }
}

/* ============================================
   CONTAINER PRINCIPAL
   ============================================ */
.valentine-romantic-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1.5rem 2rem;
    position: relative;
    z-index: 10;
}

/* ============================================
   SECTIONS
   ============================================ */
.menu-section {
    margin-bottom: 3rem;
    background: rgba(0, 0, 0, 0.25) !important;
    border-radius: 6px;
    padding: 1.75rem 1.5rem 1.5rem;
}

.menu-section + .menu-section {
    margin-top: 1rem;
}

.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    color: var(--valentine-white) !important;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 0.75rem;
}

/* Petit cœur décoratif après le titre */
.section-title::after {
    content: ' 💕';
    font-size: 0.8em;
}

.section-description {
    font-family: 'Lato', sans-serif;
    font-size: 0.95rem;
    color: var(--valentine-text-desc) !important;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.section-intro-text {
    font-family: 'Lato', sans-serif;
    font-size: 0.95rem;
    color: var(--valentine-text-light) !important;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.section-outro-text {
    font-family: 'Lato', sans-serif;
    font-size: 0.9rem;
    color: var(--valentine-text-desc) !important;
    line-height: 1.5;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.15);
    font-style: italic;
}

/* ============================================
   PLATS
   ============================================ */
/* On garde la structure générique du composant dish ; seules les couleurs viennent du thème */
.dishes-table {
    width: 100%;
    margin-bottom: 0;
}

.dishes-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dishes-table tbody tr:last-child {
    border-bottom: none;
}

.dishes-table td {
    padding: 1rem 0;
    vertical-align: top;
    border: none;
}

.dishes-table .dish-label span {
    color: var(--valentine-gold);
    font-weight: 600;
    font-size: 1.05rem;
}

.dishes-table .dish-description {
    color: var(--valentine-white) !important;
    margin-top: 0.35rem;
}

/* Forcer TOUS les éléments dans la description à être blancs */
.dishes-table .dish-description,
.dishes-table .dish-description * {
    color: var(--valentine-white) !important;
}

.dishes-table .dish-price {
    color: var(--valentine-text-light);
    font-weight: 600;
}

/* ============================================
   WISHLIST BUTTONS - Cœurs romantiques
   ============================================ */
.wishlist-button,
.btn-wishlist {
    color: var(--valentine-gold) !important;
    transition: all 0.3s ease;
}

.wishlist-button:hover,
.btn-wishlist:hover {
    transform: scale(1.2);
    color: #ff6b9d !important;
}

.wishlist-button.active,
.btn-wishlist.active {
    color: #ff4081 !important;
}

/* ============================================
   FOOTER MESSAGE - Bande romantique
   ============================================ */
.valentine-footer {
    background: var(--valentine-cream);
    text-align: center;
    padding: 2rem 1.5rem;
    margin-top: 5rem;
    position: relative;
    z-index: 10;
    clear: both;
    width: 100%;
}

.valentine-footer-message {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    color: var(--color-primary, var(--valentine-deep-red));
    font-weight: 400;
    letter-spacing: 2px;
    margin: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .menu-title-main {
        font-size: 3rem;
    }
    
    .menu-subtitle {
        font-size: 1.4rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .dish-name {
        font-size: 0.95rem;
    }
    
    .valentine-footer-message {
        font-size: 1.6rem;
    }
    
    body::before,
    body::after {
        width: 200px;
        height: 200px;
    }
}

@media (max-width: 480px) {
    .menu-title-main {
        font-size: 2.5rem;
    }
    
    .dish-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .dish-price {
        margin-left: 0;
        margin-top: 0.5rem;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    body::before,
    body::after {
        display: none;
    }
    
    .navbar-valentine-romantic,
    .navbar-valentine-romantic-bottom {
        display: none !important;
    }
}
