/* Variables CSS */
:root {
    --primary-color: #800000;
    --secondary-color: #DAA520;
    --accent-color: #800000;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --bg-light: #f8f9fa;
}

.text-primary {
    color: var(--secondary-color) !important;
}

/* Styles généraux */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

.section-title {
    position: relative;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: var(--primary-color);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--secondary-color);
}

/* Navigation */
.navbar {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    transition: all 0.3s ease;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: white !important;
}

.navbar-nav .nav-link {
    color: white !important;
    font-weight: 500;
    margin: 0 10px;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--secondary-color) !important;
    transform: translateY(-2px);
}

/* Section Hero */
.hero-section {
    min-height: 70vh;
    height: 70vh;
    padding: 0;
    background: url('../../img/banniere-berger.jpg') no-repeat center center;
    background-size: cover;
    background-position: center center;
    background-attachment: scroll;
    display: flex;
    align-items: flex-end;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #111111;
    opacity: 0.3;
}

.hero-section h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    animation: fadeInUp 1s ease-out;
}

.hero-section .lead {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-section .btn {
    animation: fadeInUp 1s ease-out 0.6s both;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.hero-section .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.hero-buttons {
    margin-bottom: 3rem;
    padding: 2rem 0;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
}

/* Menu Section */
#menu {
    background: white;
}

/* Galerie de photos du menu */
.menu-gallery {
    padding-top: 2rem;
}

.menu-gallery .sticky-top {
    top: 100px;
}

.carousel-img {
    height: 300px;
    object-fit: cover;
    border-radius: 15px;
}

#menuCarousel {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.carousel-control-prev,
.carousel-control-next {
    width: 15%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(139, 69, 19, 0.8);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    padding: 8px;
}

.carousel-indicators {
    margin-bottom: 0.5rem;
}

.carousel-indicators button {
    background-color: var(--primary-color);
    border-radius: 50%;
    width: 12px;
    height: 12px;
    margin: 0 3px;
}

.carousel-indicators .active {
    background-color: var(--secondary-color);
}

.menu-item {
    background: white;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border-left: 4px solid var(--secondary-color);
}

.menu-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.menu-item h5 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.menu-item p {
    color: var(--text-light);
    margin-bottom: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.price {
    color: var(--secondary-color);
    font-weight: 700;
    white-space: nowrap;
}

/* Section À Propos */
#about {
    background: var(--bg-light);
}

.about-image img {
    border-radius: 15px;
    transition: all 0.3s ease;
}

.about-image img:hover {
    transform: scale(1.02);
}

.feature-icon {
    background: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.feature-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Section Contact */
.contact-info {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.contact-info:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.contact-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
}

.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    overflow: hidden;
}

.card-title {
    color: var(--primary-color);
    font-weight: 600;
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--text-dark) 0%, #1a1a1a 100%);
}

.social-links a {
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--secondary-color) !important;
    transform: translateY(-3px);
}

/* Fallback pour l'icône TripAdvisor si elle ne charge pas */
.social-links a[title="TripAdvisor"] i.fa-tripadvisor::before {
    content: "★";
    font-family: Arial, sans-serif;
    font-style: normal;
    font-weight: bold;
}

/* Alternative : utiliser une icône de voyage */
.social-links .tripadvisor-fallback::before {
    content: "✈";
    font-family: Arial, sans-serif;
    font-size: 1.2em;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        min-height: 60vh;
        height: 60vh;
        background-attachment: scroll;
        background-position: center center;
    }
    
    .hero-buttons {
        margin-bottom: 2rem;
        padding: 1.5rem 0;
    }
    
    .menu-gallery {
        margin-top: 3rem;
        padding-top: 0;
    }
    
    .menu-gallery .sticky-top {
        position: relative !important;
        top: auto !important;
    }
    
    .carousel-img {
        height: 250px;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .menu-item {
        padding: 1rem;
    }
    
    .contact-info {
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        min-height: 50vh;
        height: 50vh;
        background-position: center center;
    }
    
    .hero-buttons {
        margin-bottom: 1.5rem;
        padding: 1rem 0;
    }
    
    .carousel-img {
        height: 200px;
    }
    
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 30px;
        height: 30px;
        padding: 6px;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .btn {
        display: block;
        margin: 0.5rem 0;
        width: 100%;
    }
    
    .menu-item .d-flex {
        flex-direction: column;
    }
    
    .price {
        text-align: right;
        margin-top: 0.5rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Navbar scroll effect */
.navbar.scrolled {
    backdrop-filter: blur(10px);
    padding: 0.5rem 0;
}

/* Loading animation */
.loading {
    opacity: 0;
    animation: fadeIn 0.6s ease-in-out forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}
