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

:root {
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --transition-smooth: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    /* Warm Premium Palette */
    --accent: #cfa86e;
    /* Warm Gold */
    --bg-base: #14110f;
    /* Very dark warm brown/black */
    --card-bg: rgba(20, 17, 15, 0.5);
    --text-main: #f9f6f0;
    --text-dim: #b8b3a9;

    /* Dynamic Weather Overlay */
    --weather-overlay: rgba(20, 17, 15, 0.85);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background: var(--bg-base);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Stunning Hero Background */
.hero-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('assets/hero.png');
    background-size: cover;
    background-position: center;
    z-index: -2;
    transform: scale(1.05);
    animation: slowZoom 20s infinite alternate;
}

@keyframes slowZoom {
    from {
        transform: scale(1.0);
    }

    to {
        transform: scale(1.05);
    }
}

.dynamic-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--weather-overlay);
    backdrop-filter: blur(6px);
    z-index: -1;
    transition: background 1.5s ease;
}

.glass {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(207, 168, 110, 0.15);
    border-radius: 12px;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 600;
}

h1,
.hero-title {
    font-size: 4.5rem;
    letter-spacing: 0.02em;
    margin-bottom: 0.5rem;
    line-height: 1.1;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

h2:not(.hero-title) {
    font-size: 3rem;
    margin-bottom: 4rem;
    position: relative;
    display: inline-block;
    color: var(--text-main);
}

h2:not(.hero-title)::after {
    content: '';
    position: absolute;
    bottom: -1.2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--accent);
    box-shadow: 0 0 10px rgba(207, 168, 110, 0.4);
}

.terroir-badge {
    display: inline-block;
    padding: 6px 20px;
    background: rgba(20, 17, 15, 0.6);
    color: var(--accent);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    border: 1px solid var(--accent);
    border-radius: 4px;
    margin-bottom: 2rem;
    backdrop-filter: blur(4px);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

header {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
    gap: 2rem;
    padding: 4rem 0;
}

.menu-card {
    transition: var(--transition-smooth);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: row;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(207, 168, 110, 0.1);
    height: 100%;
}

.menu-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
}

.img-container {
    overflow: hidden;
    width: 160px;
    min-width: 160px;
    height: 100%;
    background: #1a1a1a;
}

.menu-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.menu-card:hover .menu-card-img {
    transform: scale(1.05);
}

.menu-card-content {
    padding: 1.5rem 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.menu-card h3 {
    font-size: 1.6rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.price {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--accent);
    margin-top: 0.5rem;
    text-align: right;
}

/* Social Links Footer */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.social-icon {
    color: var(--text-dim);
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icon:hover {
    color: var(--accent);
    transform: translateY(-3px);
}

.social-icon svg {
    width: 30px;
    height: 30px;
    fill: currentColor;
}

/* Floating Address Card */
.floating-address {
    position: fixed;
    top: 50%;
    left: 30px;
    transform: translateY(-50%);
    z-index: 1000;
    padding: 20px;
    min-width: 250px;
    animation: slideInLeft 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(207, 168, 110, 0.3);
    pointer-events: all;
    transition: var(--transition-smooth);
}

.tel-link {
    transition: var(--transition-smooth);
}

.tel-link:hover {
    transform: translateX(5px);
    filter: brightness(1.2);
}

.floating-address:hover {
    transform: translateY(calc(-50% - 5px));
    border-color: var(--accent);
    background: rgba(20, 17, 15, 0.95);
}

.floating-address.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-50%) translateX(-20px);
}

.floating-address h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: var(--text-main);
}

.floating-address p {
    color: var(--text-dim);
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Menu Section Styling */
.menu-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.menu-header h2 {
    margin-bottom: 2.5rem;
    /* Espace pour le trait doré */
    font-size: 3.5rem;
    display: block;
    /* Pour que le centrage soit parfait */
}

.menu-subtitle {
    color: var(--text-dim);
    font-style: italic;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 3.5rem;
    opacity: 0.9;
    letter-spacing: 0.02em;
}

.menu-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 3.5rem;
    padding: 0 2rem;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(207, 168, 110, 0.3);
    color: var(--text-dim);
    padding: 10px 24px;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.03em;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--accent);
    color: #14110f;
    border-color: var(--accent);
    box-shadow: 0 10px 20px rgba(207, 168, 110, 0.2);
    transform: translateY(-2px);
}

/* Premium Buttons */
.btn-premium {
    display: inline-block;
    padding: 14px 34px;
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border-radius: 50px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-premium:hover {
    background: var(--accent);
    color: var(--bg-base);
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(207, 168, 110, 0.4);
}

.btn-premium:active {
    transform: scale(0.98);
}

/* Badge Signature Premium */
.tag-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, rgba(207, 168, 110, 0.9) 0%, rgba(150, 115, 60, 0.9) 100%);
    color: #14110f;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    pointer-events: none;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.modal-content {
    background: linear-gradient(145deg, rgba(30, 27, 25, 0.95), rgba(20, 17, 15, 0.98));
    border: 1px solid rgba(207, 168, 110, 0.3);
    padding: 3rem;
    border-radius: 20px;
    width: 90%;
    max-width: 650px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    text-align: center;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    color: var(--text-dim);
    font-size: 2.5rem;
    cursor: pointer;
}

.formula-detail-section {
    margin-bottom: 2.5rem;
}

.formula-detail-section h4 {
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(207, 168, 110, 0.1);
    padding-bottom: 0.5rem;
    width: 100%;
}

.formula-item {
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.formula-item-img {
    width: 120px;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(207, 168, 110, 0.2);
    flex-shrink: 0;
}

.formula-item-text {
    flex-grow: 1;
    text-align: center;
    /* Centrage des titres et descriptions demandé par l'utilisateur */
}

.formula-item strong {
    display: block;
    color: var(--text-main);
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 0.3rem;
}

.formula-item span {
    color: var(--text-dim);
    font-size: 0.9rem;
    font-style: italic;
}

.formula-or {
    color: var(--accent);
    font-family: var(--font-heading);
    font-style: italic;
    margin: 1rem 0;
    opacity: 0.6;
}

/* Infos Pratiques */
.info-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding: 6rem 0;
    align-items: center;
}

.google-review-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2.5rem;
    backdrop-filter: blur(10px);
}

.stars {
    color: #fbbc04;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.score {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--text-main);
}

.map-container {
    width: 100%;
    height: 350px;
    border-radius: 16px;
    overflow: hidden;
    background: #2a2a2a;
    background-image: url('assets/hero.png');
    background-size: cover;
    background-position: center;
}

/* Responsive */
@media (max-width: 768px) {
    .floating-address {
        display: none;
    }

    .menu-header h2 {
        font-size: 2.2rem;
    }

    .menu-subtitle {
        font-size: 1.1rem;
    }

    .menu-grid {
        grid-template-columns: 1fr;
    }

    .menu-card {
        flex-direction: column;
    }

    .img-container {
        width: 100%;
        height: 200px;
    }

    .info-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .formula-item {
        flex-direction: column;
        align-items: center;
        /* Centrage sur mobile */
        text-align: center;
    }

    .formula-item-img {
        width: 100%;
        height: 180px;
    }

    .modal-content {
        padding: 2rem 1.5rem;
    }

    .floating-reserve-container {
        bottom: 1rem;
    }

    .floating-reserve-container .btn-premium {
        padding: 12px 28px;
        font-size: 0.85rem;
    }

    h1 {
        font-size: 3rem;
    }
}

/* Bouton flottant de réservation */
.floating-reserve-container {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1500;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: floatIn 0.8s ease-out 1s both;
}

.floating-reserve-container .btn-premium {
    padding: 16px 40px;
    font-size: 1rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(20, 17, 15, 0.85);
    border: 2px solid var(--accent);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(207, 168, 110, 0.15);
}

.floating-reserve-container .btn-premium:hover {
    background: var(--accent);
    color: #14110f;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6), 0 0 50px rgba(207, 168, 110, 0.3);
}

@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}