/* =============================================
   HALLOWEEN PREMIUM - HAUT DE GAMME
   Pour restaurants gastronomiques
   Design élégant et subtil
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Lato:wght@300;400;700&display=swap');

:root {
    /* Palette Sophistiquée Halloween */
    --noir-profond: #0a0a0a;
    --noir-chaud: #1a1614;
    --gris-charbon: #2a2826;
    --or-antique: #c9a961;
    --or-pale: #d4b982;
    --orange-brule: #d4772a; /* HALLOWEEN : Orange brûlé subtil */
    --cuivre: #b87333; /* HALLOWEEN : Cuivre */
    --bordeaux: #4a1a1a;
    --bordeaux-leger: #5a2424;
    --blanc-casse: #f8f5f0;
    --creme: #f2ede4;
    
    /* Typographie */
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Lato', -apple-system, sans-serif;
    
    /* Espacements */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    
    /* Transitions */
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-medium: all 0.3s ease;
}

/* Masquer toutes les pages (.menu-tabs) par défaut pour éviter l'affichage simultané au chargement */
.menu-tabs { display: none; }

/* =============================================
   BASE
   ============================================= */

body {
    font-family: var(--font-sans) !important;
    background: linear-gradient(180deg, 
        var(--noir-chaud) 0%,
        var(--noir-profond) 100%) !important;
    color: var(--blanc-casse) !important;
    font-weight: 300;
    letter-spacing: 0.3px;
    line-height: 1.8;
    position: relative;
}

/* HALLOWEEN : VRAIE toile d'araignée réaliste dans les coins */
body::before {
    content: '';
    position: fixed;
    top: 0;
    right: 0;
    width: 250px;
    height: 250px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 300'%3E%3Cg stroke='%23d4772a' stroke-width='1' stroke-linecap='round' fill='none' opacity='0.45'%3E%3C!-- Rayons --%3E%3Cline x1='150' y1='0' x2='150' y2='300'/%3E%3Cline x1='0' y1='150' x2='300' y2='150'/%3E%3Cline x1='30' y1='30' x2='270' y2='270'/%3E%3Cline x1='270' y1='30' x2='30' y2='270'/%3E%3Cline x1='150' y1='0' x2='0' y2='150'/%3E%3Cline x1='150' y1='0' x2='300' y2='150'/%3E%3Cline x1='0' y1='150' x2='150' y2='300'/%3E%3Cline x1='300' y1='150' x2='150' y2='300'/%3E%3C/g%3E%3Cg stroke='%23d4772a' stroke-width='0.9' stroke-linecap='round' opacity='0.35' stroke-dasharray='1.2 3.5'%3E%3Ccircle cx='150' cy='150' r='20'/%3E%3Ccircle cx='150' cy='150' r='50'/%3E%3Ccircle cx='150' cy='150' r='80'/%3E%3Ccircle cx='150' cy='150' r='110'/%3E%3Ccircle cx='150' cy='150' r='140'/%3E%3C/g%3E%3Cg stroke='%23c9a961' stroke-width='0.6' stroke-linecap='round' opacity='0.25' stroke-dasharray='0.8 2.8'%3E%3Ccircle cx='150' cy='150' r='35'/%3E%3Ccircle cx='150' cy='150' r='95'/%3E%3C/g%3E%3Ccircle cx='150' cy='150' r='3' fill='%23c9a961' opacity='0.6'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
    opacity: 0.5;
    z-index: 1;
    animation: cobweb-sway 8s ease-in-out infinite;
}

html::after {
    content: '';
    position: fixed;
    bottom: 0;
    left: 0;
    width: 220px;
    height: 220px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 300'%3E%3Cg stroke='%23d4772a' stroke-width='1' stroke-linecap='round' fill='none' opacity='0.45'%3E%3Cline x1='150' y1='0' x2='150' y2='300'/%3E%3Cline x1='0' y1='150' x2='300' y2='150'/%3E%3Cline x1='30' y1='30' x2='270' y2='270'/%3E%3Cline x1='270' y1='30' x2='30' y2='270'/%3E%3C/g%3E%3Cg stroke='%23d4772a' stroke-width='0.9' stroke-linecap='round' opacity='0.35' stroke-dasharray='1.2 3.5'%3E%3Ccircle cx='150' cy='150' r='25'/%3E%3Ccircle cx='150' cy='150' r='60'/%3E%3Ccircle cx='150' cy='150' r='95'/%3E%3Ccircle cx='150' cy='150' r='130'/%3E%3C/g%3E%3Ccircle cx='150' cy='150' r='3' fill='%23c9a961' opacity='0.6'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
    opacity: 0.45;
    z-index: 1;
    animation: cobweb-sway 10s ease-in-out infinite reverse;
}

@keyframes cobweb-sway {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(2deg); }
}

/* HALLOWEEN : Araignée suspendue à un FIL texturé (thread) */
#app::before {
    content: '';
    position: fixed;
    top: 0;
    right: calc(50% + 60px);
    width: 2px;
    height: 0;
    background:
        repeating-linear-gradient(180deg,
            rgba(201,169,97,0.85) 0px,
            rgba(201,169,97,0.85) 6px,
            rgba(212,119,42,0.6) 6px,
            rgba(212,119,42,0.6) 9px,
            rgba(255,255,255,0.5) 9px,
            rgba(255,255,255,0.5) 10px
        );
    filter: drop-shadow(0 0 2px rgba(212,119,42,0.5));
    z-index: 998;
    pointer-events: none;
    animation: thread-grow 15s ease-in-out infinite;
}

#app::after {
    content: '🕷';
    position: fixed;
    top: -30px;
    right: calc(50% + 54px);
    font-size: 1.6rem;
    filter: grayscale(100%) brightness(1.3);
    opacity: 0;
    z-index: 999;
    pointer-events: none;
    animation: spider-descend 15s ease-in-out infinite, spider-sway 4s ease-in-out infinite;
}

@keyframes thread-grow {
    0% { height: 0; right: calc(50% + 60px); opacity: 0; }
    10% { height: 10vh; opacity: 1; }
    50% { height: 40vh; right: calc(50% + 58px); }
    90% { height: 10vh; opacity: 1; }
    100% { height: 0; right: calc(50% + 60px); opacity: 0; }
}

@keyframes spider-descend {
    0% { top: -30px; opacity: 0; }
    10% { top: 10vh; opacity: 0.8; }
    50% { top: 40vh; opacity: 0.9; }
    90% { top: 10vh; opacity: 0.8; }
    100% { top: -30px; opacity: 0; }
}

@keyframes spider-sway {
    0%, 100% { transform: translateX(0) rotate(-3deg); }
    50% { transform: translateX(6px) rotate(3deg); }
}

#main-container {
    margin: 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
}

/* =============================================
   HEADER - Élégant et sobre
   ============================================= */

.navbar-halloween {
    background: 
        linear-gradient(90deg,
            transparent 0%,
            rgba(212, 119, 42, 0.05) 10%,
            rgba(212, 119, 42, 0.1) 50%,
            rgba(212, 119, 42, 0.05) 90%,
            transparent 100%
        ),
        linear-gradient(180deg,
            rgba(74, 26, 26, 0.4) 0%,
            rgba(26, 22, 20, 0.98) 50%,
            rgba(10, 10, 10, 0.98) 100%) !important;
    border-bottom: 2px solid var(--orange-brule);
    box-shadow: 
        0 2px 20px rgba(0, 0, 0, 0.7),
        0 0 40px rgba(212, 119, 42, 0.2),
        inset 0 -1px 0 rgba(212, 119, 42, 0.3);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

/* Séparateur navbar avec lune */
.navbar-separator {
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.navbar-moon {
    color: var(--orange-brule);
    font-size: 0.9rem;
    opacity: 0.8;
    filter: drop-shadow(0 0 8px var(--orange-brule));
    display: inline-block;
    animation: moon-glow 3s ease-in-out infinite;
}

@keyframes moon-glow {
    0%, 100% { 
        filter: drop-shadow(0 0 8px var(--orange-brule));
        opacity: 0.7;
    }
    50% { 
        filter: drop-shadow(0 0 15px var(--orange-brule));
        opacity: 1;
    }
}

.halloween-brand {
    font-family: var(--font-serif) !important;
    color: var(--or-antique) !important;
    font-size: 1.8rem !important;
    font-weight: 600 !important;
    letter-spacing: 2px !important;
    text-transform: uppercase;
    text-shadow: 0 2px 8px rgba(201, 169, 97, 0.3);
}

.navbar-halloween .navbar-brand img {
    filter: brightness(1.1) contrast(1.1);
}

/* =============================================
   NAVBAR BOTTOM - Or subtil
   ============================================= */

.navbar-halloween-bottom {
    background: 
        /* texture douce */
        repeating-linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.25) 0px,
            rgba(0, 0, 0, 0.25) 40px,
            transparent 41px,
            transparent 80px
        ),
        /* dégradé plus dense pour lisibilité */
        linear-gradient(180deg,
            rgba(212, 119, 42, 0.55) 0%,
            rgba(184, 115, 51, 0.55) 50%,
            rgba(74, 26, 26, 0.65) 100%) !important;
    border-top: 2px solid var(--orange-brule) !important;
    box-shadow: 
        0 -6px 24px rgba(0, 0, 0, 0.9),
        0 0 40px rgba(212, 119, 42, 0.5),
        inset 0 1px 0 rgba(212, 119, 42, 0.25),
        inset 0 -2px 22px rgba(0, 0, 0, 0.55) !important;
    padding: 0.7rem 0 !important;
    position: relative;
}

/* Liens navbar bas: pas de bleu Bootstrap */
.navbar-halloween-bottom .nav-link,
.navbar-halloween-bottom a {
    color: var(--or-pale) !important;
    text-decoration: none !important;
}
.navbar-halloween-bottom .nav-link:hover,
.navbar-halloween-bottom a:hover {
    color: var(--orange-brule) !important;
}

.navbar-halloween-bottom::before {
    content: '✦';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--orange-brule);
    font-size: 0.8rem;
    opacity: 0.8;
    filter: drop-shadow(0 0 6px var(--orange-brule));
    animation: star-pulse 2s ease-in-out infinite;
}

@keyframes star-pulse {
    0%, 100% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.2); }
}

/* Navigation Links */
.halloween-nav-link {
    color: var(--or-pale) !important;
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: 0.95rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: var(--transition-medium);
    padding: 0.6rem 1.2rem;
    border-bottom: 2px solid transparent;
    position: relative;
}

.halloween-nav-link:hover {
    color: var(--orange-brule) !important;
    border-bottom-color: var(--orange-brule);
    background: rgba(212, 119, 42, 0.1);
    text-shadow: 0 0 10px rgba(212, 119, 42, 0.5);
}

.halloween-menu-title {
    color: var(--orange-brule) !important;
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 1.5px;
    text-shadow: 0 0 15px rgba(212, 119, 42, 0.6);
}

/* Icône menu */
.menu-icon {
    color: var(--orange-brule);
    font-size: 1.1rem;
    filter: drop-shadow(0 0 6px var(--orange-brule));
    animation: icon-rotate 4s linear infinite;
}

@keyframes icon-rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.menu-text {
    display: inline-block;
}

/* Séparateurs dans les liens nav */
.nav-separator {
    color: var(--orange-brule);
    font-size: 0.5rem;
    opacity: 0.5;
    margin-right: 0.5rem;
    vertical-align: middle;
}

.halloween-nav-link:hover .nav-separator {
    opacity: 1;
}

/* Toggler custom */
.navbar-toggler-icon-custom {
    color: var(--or-pale);
    width: 24px;
    height: 24px;
}

.navbar-toggler:hover .navbar-toggler-icon-custom {
    color: var(--orange-brule);
}

/* Dropdown icon */
.dropdown-icon {
    color: var(--orange-brule);
    font-size: 0.6rem;
    margin-right: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.halloween-dropdown-item:hover .dropdown-icon {
    opacity: 0.8;
}

/* =============================================
   SECTIONS - Spacing généreux
   ============================================= */

.section-area {
    margin: 0 !important;
    background: linear-gradient(180deg,
        rgba(26, 22, 20, 0.6) 0%,
        rgba(10, 10, 10, 0.4) 100%);
    border: none;
    border-bottom: 1px solid rgba(201, 169, 97, 0.15);
    /* compacter verticalement */
    padding: var(--spacing-md) var(--spacing-sm);
    position: relative;
}

.section-area::before {
    display: none;
}

.section-area::after {
    display: none;
}

/* HALLOWEEN : Petite araignée suspendue élégante */
.section-area:first-of-type::before {
    content: '🕷';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.2rem;
    opacity: 0.3;
    filter: grayscale(100%) brightness(1.5);
    display: block;
    animation: spider-swing 3s ease-in-out infinite;
}

@keyframes spider-swing {
    0%, 100% { transform: translateX(-50%) rotate(-3deg); }
    50% { transform: translateX(-50%) rotate(3deg); }
}

/* =============================================
   TITRES - Typographie raffinée
   ============================================= */

.section-label {
    font-family: var(--font-serif) !important;
    background: linear-gradient(90deg, 
        var(--or-antique), 
        var(--orange-brule), 
        var(--or-antique));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.2rem !important;
    font-weight: 600 !important;
    letter-spacing: 3px !important;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: var(--spacing-lg) !important;
    padding-bottom: var(--spacing-sm);
    position: relative;
    display: block;
    filter: drop-shadow(0 2px 10px rgba(212, 119, 42, 0.3));
}

/* Suppression des émojis */
.section-label::before,
.section-label::after {
    display: none !important;
}

/* HALLOWEEN : Séparateur avec petits symboles */
.section-label::before {
    content: '❖' !important;
    position: absolute;
    left: calc(50% - 100px);
    top: 50%;
    transform: translateY(-50%);
    color: var(--orange-brule);
    font-size: 0.6rem;
    opacity: 0.5;
    display: block !important;
}

.section-label::after {
    content: '❖' !important;
    position: absolute;
    right: calc(50% - 100px);
    top: 50%;
    transform: translateY(-50%);
    color: var(--orange-brule);
    font-size: 0.6rem;
    opacity: 0.5;
    display: block !important;
}

/* Textes intro/outro */
.intro-text {
    text-align: center;
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--creme);
    font-size: 1rem;
    margin-bottom: var(--spacing-md);
    opacity: 0.85;
    line-height: 1.7;
}

.outro-text {
    text-align: center;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: var(--creme);
    opacity: 0.7;
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-sm);
    border-top: 1px solid rgba(201, 169, 97, 0.1);
    line-height: 1.7;
}

/* =============================================
   ITEMS MENU - Sophistiqués
   ============================================= */

.dishes-table {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    border-collapse: separate;
    /* interlignage vertical réduit */
    border-spacing: 0 var(--spacing-sm);
}

/* Répartition colonnes pour donner plus de largeur aux titres */
.dishes-table td:first-child { width: 80%; }
.dishes-table td:last-child { width: 20%; }

.dishes-table tr {
    background: rgba(42, 40, 38, 0.3);
    border-left: 2px solid transparent;
    transition: var(--transition-slow);
}

.dishes-table tr:hover {
    background: rgba(201, 169, 97, 0.08);
    border-left-color: var(--or-antique);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.3),
        inset 0 0 40px rgba(201, 169, 97, 0.05);
}

.dish-label {
    font-family: var(--font-serif);
    color: var(--or-pale) !important;
    font-weight: 500;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    padding: var(--spacing-sm) var(--spacing-sm) var(--spacing-xs) !important;
    transition: var(--transition-medium);
    position: relative;
    line-height: 1.5;
    word-break: normal;
    overflow-wrap: anywhere;
}

/* HALLOWEEN : Petite étoile au hover */
.dishes-table tr:hover .dish-label::before {
    content: '✦';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--orange-brule);
    font-size: 0.7rem;
    opacity: 0.6;
    display: inline-block;
    animation: star-glow 1.5s ease-in-out infinite;
}

@keyframes star-glow {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

/* Suppression crâne */
.dish-label::before,
.dish-label::after {
    display: none !important;
}

.dish-description {
    font-family: var(--font-sans);
    color: var(--creme) !important;
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.6;
    padding: var(--spacing-xs) var(--spacing-sm) var(--spacing-sm) !important;
    opacity: 0.85;
}

.dish-price {
    font-family: var(--font-serif);
    color: var(--or-antique) !important;
    font-weight: 600;
    font-size: 1.2rem;
    padding: var(--spacing-sm) var(--spacing-sm) !important;
    text-align: right;
    white-space: nowrap;
}

/* Séparateur subtil entre plats */
table td {
    border: none !important;
    vertical-align: top;
}

/* =============================================
   DROPDOWN - Élégant
   ============================================= */

.halloween-dropdown {
    background: linear-gradient(180deg,
        rgba(26, 22, 20, 0.98) 0%,
        rgba(10, 10, 10, 0.98) 100%);
    border: 1px solid var(--or-antique);
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.8),
        0 0 20px rgba(201, 169, 97, 0.2);
    border-radius: 4px;
    backdrop-filter: blur(10px);
}

.halloween-dropdown-item {
    font-family: var(--font-sans);
    color: var(--creme);
    font-weight: 400;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    padding: 0.8rem 1.5rem;
    border-left: 2px solid transparent;
    transition: var(--transition-medium);
}

/* Badge */
.badge-halloween {
    background: linear-gradient(135deg, var(--bordeaux), var(--bordeaux-leger)) !important;
    color: var(--blanc-casse) !important;
    font-weight: 600;
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    border: 1px solid var(--orange-brule);
    box-shadow: 0 0 10px rgba(212, 119, 42, 0.4);
}

.halloween-dropdown-item:hover {
    background: rgba(201, 169, 97, 0.1);
    color: var(--or-pale);
    border-left-color: var(--or-antique);
    transform: translateX(3px);
}

/* =============================================
   BADGES & ICONS
   ============================================= */

.badge-halloween {
    background: var(--bordeaux) !important;
    color: var(--blanc-casse) !important;
    font-weight: 600;
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
    border-radius: 3px;
}

.halloween-icon {
    display: none; /* Suppression émojis */
}

/* Wishlist heart */
.fa-heart {
    color: var(--orange-brule) !important;
    filter: drop-shadow(0 2px 4px rgba(212, 119, 42, 0.5));
    transition: all 0.3s ease;
}

.halloween-nav-link:hover .fa-heart {
    transform: scale(1.2);
    filter: drop-shadow(0 0 10px rgba(212, 119, 42, 0.8));
}

/* Swipe indicator */
.swipe-indicator {
    color: var(--or-pale) !important;
    position: relative;
    z-index: 10;
    opacity: 0.6;
}

.swipe-indicator i {
    animation: swipe-hint 2s ease-in-out infinite;
}

@keyframes swipe-hint {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}

/* =============================================
   Dish options - contraste renforcé (premium)
   ============================================= */
.dish-options {
    color: var(--creme) !important;
    border-left: 2px dotted var(--or-antique);
    margin-left: var(--spacing-sm);
    padding-left: calc(var(--spacing-xs) + 2px);
}

.dish-options, .dish-options * {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}

.dish-options .option,
.dish-options .extra,
.dish-options .supplement,
.dish-options li,
.dish-options span {
    color: var(--blanc-casse) !important;
}

.dish-options a { color: var(--orange-brule) !important; text-decoration: none; }
.dish-options a:hover { color: var(--or-antique) !important; }

.dish-options .price,
.dish-options .supplement-amount {
    color: var(--or-antique) !important;
    font-weight: 600;
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 768px) {
    .section-label {
        font-size: 1.8rem !important;
        letter-spacing: 2px !important;
    }
    
    .section-area {
        padding: var(--spacing-md) var(--spacing-sm);
    }
    
    .halloween-brand {
        font-size: 1.4rem !important;
    }
    
    .dish-label {
        font-size: 1rem;
    }
    
    .dish-description {
        font-size: 0.85rem;
    }
    
    .dish-price {
        font-size: 1.1rem;
    }
}

/* =============================================
   ANIMATIONS SUBTILES
   ============================================= */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-area {
    animation: fadeInUp 0.6s ease-out;
}

/* Glow subtil au hover */
.dishes-table tr:hover .dish-label {
    text-shadow: 0 0 15px rgba(201, 169, 97, 0.3);
}

.dishes-table tr:hover .dish-price {
    text-shadow: 0 0 15px rgba(201, 169, 97, 0.4);
}

/* =============================================
   DÉTAILS RAFFINÉS
   ============================================= */

/* HALLOWEEN : Séparateur entre sections avec lune */
.section-area + .section-area::before {
    content: '☾';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--orange-brule);
    font-size: 1rem;
    opacity: 0.5;
    filter: drop-shadow(0 0 8px var(--orange-brule));
    display: block;
}

/* Print styles */
@media print {
    body {
        background: white !important;
        color: black !important;
    }
    
    .navbar-halloween,
    .navbar-halloween-bottom {
        display: none;
    }
    
    .section-area {
        page-break-inside: avoid;
        border: 1px solid #ccc;
    }
}
