:root {
    --bg-dark: #070707;
    --bg-card: #141414;
    --bg-soft: #1c1c1c;
    --gold: #CBA135;
    --gold-soft: #E0C878;
    --gold-strong: #D4AF37;
    --brown: #5C3A21;
    --brown-soft: #8B5E3C;
    --text-main: #f8f5f0;
    --text-muted: #b0a79a;
    --border-soft: rgba(255, 255, 255, 0.06);
    --radius-lg: 18px;
    --radius-xl: 24px;
    --shadow-soft: 0 20px 40px rgba(0, 0, 0, 0.5);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #131313 0, #050505 55%, #000 100%);
    color: var(--text-main);
    line-height: 1.6;
}

/* ---------- Layout ---------- */

.container {
    width: min(1120px, 100% - 2.5rem);
    margin-inline: auto;
}

.section {
    padding: 4rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-header h1,
.section-header h2 {
    font-family: "Playfair Display", serif;
    font-size: clamp(2rem, 3vw, 2.6rem);
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--text-muted);
}

/* ---------- Header / Nav ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.7));
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 0;
}

.logo {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-family: "Playfair Display", serif;
    font-size: 1.25rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold);
}

.logo-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    font-size: 0.95rem;
}

.main-nav a {
    color: var(--text-main);
    text-decoration: none;
    position: relative;
    padding-bottom: 0.15rem;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.2rem;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), var(--brown-soft));
    transition: width 0.2s ease-out;
}

.main-nav a:hover::after {
    width: 100%;
}

.btn-nav {
    padding: 0.45rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--gold);
    background: radial-gradient(circle at top left, rgba(219, 180, 70, 0.4), rgba(32, 24, 9, 0.1));
    box-shadow: 0 0 0 1px rgba(219, 180, 70, 0.1);
}

/* Burger mobile */
.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border-soft);
    color: var(--text-main);
    border-radius: 999px;
    padding: 0.4rem 0.7rem;
}

/* ---------- Hero ---------- */

.hero {
    position: relative;
    min-height: 75vh;
    display: flex;
    align-items: center;
    color: var(--text-main);
    background-image:
        linear-gradient(to bottom right, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.4)),
        url("../img/hero-salle.jpg");
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(203, 161, 53, 0.25), transparent 55%);
    opacity: 0.9;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 4rem 0;
}

.hero-text {
    max-width: 580px;
}

.hero h1 {
    font-family: "Playfair Display", serif;
    font-size: clamp(2.4rem, 4vw, 3.2rem);
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero p {
    color: var(--text-muted);
    margin-bottom: 1.75rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

/* ---------- Buttons ---------- */

.btn-primary,
.btn-secondary,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.6rem;
    border-radius: 999px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.95rem;
    transition: transform 0.15s ease-out, box-shadow 0.15s ease-out, background 0.15s ease-out;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold), var(--gold-strong));
    color: #000;
    box-shadow: 0 14px 35px rgba(212, 175, 55, 0.4);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 45px rgba(212, 175, 55, 0.55);
}

.btn-secondary {
    background: transparent;
    color: var(--gold-soft);
    border: 1px solid rgba(212, 175, 55, 0.6);
}

.btn-secondary:hover {
    background: rgba(212, 175, 55, 0.08);
}

.btn-ghost {
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-main);
}

.btn-ghost:hover {
    background: rgba(0, 0, 0, 0.8);
}

.full-width {
    width: 100%;
}

/* ---------- About section ---------- */

.about {
    background: radial-gradient(circle at top, rgba(203, 161, 53, 0.08), #050505 55%);
}

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    gap: 3rem;
    align-items: flex-start;
}

.about h2 {
    font-family: "Playfair Display", serif;
    font-size: clamp(1.8rem, 3vw, 2.2rem);
    margin-bottom: 1rem;
}

.about p {
    color: var(--text-muted);
}

.about-highlight {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.about-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1.2rem 1.3rem;
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-soft);
}

.about-card h3 {
    margin-top: 0;
    margin-bottom: 0.4rem;
}

.about-card p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ---------- Menu preview ---------- */

.section-menu-preview {
    background: #050505;
}

.menu-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.menu-preview-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1.4rem 1.5rem;
    border: 1px solid var(--border-soft);
}

.menu-preview-card h3 {
    margin: 0.4rem 0 0.5rem;
    font-family: "Playfair Display", serif;
}

.menu-preview-card p {
    margin: 0;
    color: var(--text-muted);
}

.tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: rgba(203, 161, 53, 0.12);
    color: var(--gold-soft);
}

/* Section actions */

.section-actions {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

/* ---------- Location ---------- */

.section-location {
    background: radial-gradient(circle at top, rgba(92, 58, 33, 0.45), #050505 65%);
}

.location-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    gap: 2.5rem;
    align-items: center;
}

.location-grid h2 {
    font-family: "Playfair Display", serif;
}

.location-info {
    color: var(--text-muted);
}

.map-placeholder {
    position: relative;
    border-radius: var(--radius-xl);
    border: 1px dashed rgba(255, 255, 255, 0.15);
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    background: radial-gradient(circle at top, rgba(0, 0, 0, 0.4), #050505);
}

/* ---------- Réservation ---------- */

.section-reservation {
    background: #050505;
}

.reservation-grid {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 3fr);
    gap: 2.5rem;
}

.reservation-info {
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
    color: var(--text-muted);
}

.reservation-info li + li {
    margin-top: 0.3rem;
}

.reservation-form {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 1.8rem 1.7rem;
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-soft);
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 1rem;
}

.form-row-inline {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

label {
    font-size: 0.9rem;
}

input,
textarea {
    background: var(--bg-soft);
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.7rem 0.9rem;
    font: inherit;
    color: var(--text-main);
    outline: none;
}

textarea {
    border-radius: 14px;
    resize: vertical;
    min-height: 120px;
}

/* ---------- Menu table ---------- */

.section-menu {
    background: radial-gradient(circle at top, rgba(203, 161, 53, 0.08), #050505 65%);
}

.menu-table-wrapper {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 1.8rem 1.7rem 2rem;
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-soft);
}

.menu-table-meta {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.menu-date {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.menu-table {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
}

.menu-column h2 {
    font-family: "Playfair Display", serif;
    margin-top: 0;
    margin-bottom: 1rem;
}

.menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.menu-item-header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.4rem 0.75rem;
    align-items: baseline;
}

.menu-item-type {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold-soft);
}

.menu-item-name {
    font-family: "Playfair Display", serif;
}

.menu-item-price {
    font-weight: 500;
}

.menu-item-description {
    margin: 0.25rem 0 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.menu-note {
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: right;
}

/* ---------- Flash messages ---------- */

.flash-container {
    padding-top: 1rem;
}

.flash {
    padding: 0.8rem 1rem;
    border-radius: 999px;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.flash-success {
    background: rgba(0, 128, 0, 0.2);
    border: 1px solid rgba(0, 255, 0, 0.3);
}

.flash-error {
    background: rgba(128, 0, 0, 0.25);
    border: 1px solid rgba(255, 70, 70, 0.4);
}

/* ---------- Footer ---------- */

.site-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding: 2.5rem 0 1.5rem;
    background: #020202;
    margin-top: 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    font-size: 0.9rem;
}

.footer-grid h3,
.footer-grid h4 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.footer-grid p {
    margin: 0;
    color: var(--text-muted);
}

.footer-bottom {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ---------- Erreur ---------- */

.section-error {
    padding: 6rem 0;
    text-align: center;
}

/* ---------- Responsive ---------- */

@media (max-width: 800px) {
    .header-inner {
        gap: 1rem;
    }

    .main-nav {
        position: absolute;
        inset-inline: 0;
        top: 100%;
        flex-direction: column;
        background: rgba(0, 0, 0, 0.96);
        padding: 1rem 1.25rem 1.25rem;
        transform-origin: top;
        transform: scaleY(0);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.15s ease-out, opacity 0.15s ease-out;
    }

    .main-nav.open {
        transform: scaleY(1);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .about-grid,
    .location-grid,
    .reservation-grid,
    .menu-table {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero {
        min-height: 65vh;
    }

    .reservation-form {
        margin-top: 1.5rem;
    }
}

@media (max-width: 500px) {
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
}
