/* ============================================
   LA TABLE D'HUGO — Restaurant gastronomique
   Theme: Dark elegant, gold accents
   ============================================ */

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

:root {
    --bg: #0c0a08;
    --bg-card: #141210;
    --bg-warm: #1a1714;
    --border: #2a2520;
    --border-light: #3a332a;
    --text: #f5f0eb;
    --text-secondary: #a09080;
    --text-muted: #605545;
    --gold: #c8a97e;
    --gold-light: #e8d5b5;
    --gold-dark: #8a7050;
    --gold-glow: rgba(200, 169, 126, 0.1);
    --radius: 8px;
    --radius-lg: 16px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Inter', sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
}

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

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* --- Demo Banner --- */
.demo-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    padding: 10px 24px;
    background: rgba(200, 169, 126, 0.95);
    color: #0c0a08;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.demo-banner a {
    font-weight: 700;
    text-decoration: underline;
}

/* --- Nav --- */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all var(--transition);
}

.nav.scrolled {
    padding: 14px 0;
    background: rgba(12, 10, 8, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: 1140px; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--gold-light);
    letter-spacing: 0.02em;
}

.nav-links { display: flex; align-items: center; gap: 32px; }

.nav-link {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition);
    letter-spacing: 0.03em;
}

.nav-link:hover { color: var(--gold-light); }

.nav-link--cta {
    padding: 10px 24px;
    background: var(--gold);
    color: var(--bg) !important;
    border-radius: 4px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.nav-link--cta:hover { background: var(--gold-light); }

.nav-toggle {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 8px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--gold); border-radius: 2px; transition: all var(--transition); }

/* --- Buttons --- */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 16px 36px; font-family: var(--font); font-size: 0.85rem;
    font-weight: 600; cursor: pointer; transition: all var(--transition);
    border: none; text-transform: uppercase; letter-spacing: 0.1em;
}

.btn-primary {
    background: var(--gold);
    color: var(--bg);
}

.btn-primary:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(200, 169, 126, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--gold-light);
    border: 1px solid var(--gold-dark);
}

.btn-outline:hover {
    border-color: var(--gold);
    background: var(--gold-glow);
}

.btn-full { width: 100%; justify-content: center; border-radius: var(--radius); }

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg-img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    filter: brightness(0.3);
}

.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(12,10,8,0.4) 0%, rgba(12,10,8,0.8) 100%);
    z-index: 1;
}

.hero-content {
    position: relative; z-index: 2;
    text-align: center;
    padding: 0 24px;
}

.hero-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--gold);
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gold-dark);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto 40px;
    line-height: 1.7;
    font-weight: 300;
}

.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.hero-scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex; flex-direction: column; align-items: center; gap: 8px;
}

.hero-scroll-hint span {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--gold-dark);
}

.scroll-line {
    width: 1px; height: 50px;
    background: linear-gradient(to bottom, var(--gold-dark), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* --- Sections --- */
.section { padding: 120px 0; }

.section-header { text-align: center; margin-bottom: 64px; }

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--gold);
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.7;
}

/* --- Story --- */
.story { background: var(--bg); }

.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.story-images {
    position: relative;
}

.story-img img {
    border-radius: var(--radius-lg);
    object-fit: cover;
    width: 100%;
}

.story-img--main img {
    height: 500px;
}

.story-img--accent {
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 200px;
    border: 4px solid var(--bg);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.story-img--accent img {
    height: 240px;
    border-radius: calc(var(--radius-lg) - 4px);
}

.story-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--gold);
    color: var(--bg);
    padding: 20px;
    border-radius: 50%;
    width: 100px;
    height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 10px 40px rgba(200,169,126,0.3);
}

.badge-number {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
}

.badge-text {
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.2;
}

.story-content .section-tag { text-align: left; }
.story-content .section-title { text-align: left; }

.story-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

.story-stats {
    display: flex;
    gap: 40px;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.stat-value {
    display: block;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* --- Menu --- */
.menu { background: var(--bg-warm); }

.menu-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.menu-tab {
    padding: 12px 28px;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-family: var(--font);
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    border-radius: 4px;
}

.menu-tab:hover { border-color: var(--gold-dark); color: var(--gold-light); }
.menu-tab.active { background: var(--gold); color: var(--bg); border-color: var(--gold); }

.menu-panel {
    display: none;
    max-width: 650px;
    margin: 0 auto;
}

.menu-panel.active { display: block; }

.menu-price-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
}

.menu-name {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
}

.menu-price {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold);
}

.menu-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
}

.menu-items { display: flex; flex-direction: column; gap: 0; }

.menu-item { padding: 20px 0; }

.menu-item h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.menu-item p {
    font-size: 0.88rem;
    color: var(--text-muted);
    font-style: italic;
}

.menu-divider {
    height: 1px;
    background: var(--border);
    opacity: 0.5;
}

/* --- Featured --- */
.featured {
    position: relative;
    padding: 160px 0;
    overflow: hidden;
}

.featured-bg {
    position: absolute; inset: 0;
}

.featured-bg img {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: brightness(0.25);
}

.featured-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to right, rgba(12,10,8,0.95) 0%, rgba(12,10,8,0.5) 100%);
}

.featured-content { position: relative; z-index: 1; }

.featured-text {
    max-width: 540px;
}

.featured-text p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 32px;
}

.featured-details { display: flex; flex-direction: column; gap: 16px; }

.featured-detail {
    display: flex; align-items: center; gap: 12px;
    font-size: 0.92rem;
    color: var(--text-secondary);
}

.featured-detail svg { color: var(--gold); flex-shrink: 0; }

/* --- Gallery --- */
.gallery { background: var(--bg); }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 250px;
    gap: 16px;
}

.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.gallery-item::after {
    content: '';
    position: absolute; inset: 0;
    background: rgba(12,10,8,0.2);
    transition: all var(--transition);
}

.gallery-item:hover::after { background: transparent; }
.gallery-item:hover img { transform: scale(1.05); }

.gallery-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item--tall { grid-row: span 2; }
.gallery-item--wide { grid-column: span 2; }

/* --- Avis --- */
.avis { background: var(--bg-warm); }

.avis-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.avis-card {
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
}

.avis-card:hover {
    border-color: var(--border-light);
    transform: translateY(-4px);
}

.avis-stars {
    color: var(--gold);
    font-size: 1.1rem;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.avis-text {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 20px;
}

.avis-author strong {
    display: block;
    font-size: 0.9rem;
}

.avis-author span {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* --- Reservation --- */
.reservation { background: var(--bg); }

.reservation-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.reservation-info p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
}

.reservation-contact { display: flex; flex-direction: column; gap: 20px; }

.contact-item {
    display: flex; align-items: center; gap: 16px;
}

.contact-item svg { color: var(--gold); flex-shrink: 0; }
.contact-item strong { display: block; font-size: 0.9rem; }
.contact-item span { font-size: 0.85rem; color: var(--text-secondary); }

.reservation-form {
    display: flex; flex-direction: column; gap: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 0.92rem;
    color: var(--text);
    transition: all var(--transition);
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-glow);
}

.form-group select { cursor: pointer; }
.form-group select option { background: var(--bg-card); }
.form-group textarea { resize: vertical; }

/* --- Footer --- */
.footer {
    background: var(--bg-warm);
    border-top: 1px solid var(--border);
    padding: 64px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 64px;
    margin-bottom: 48px;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gold-light);
    display: block;
    margin-bottom: 12px;
}

.footer-brand p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.footer-col h4 {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold-dark);
    margin-bottom: 16px;
}

.footer-col p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 32px;
    border-top: 1px solid var(--border);
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .nav-links {
        position: fixed; top: 0; right: -100%; width: 280px; height: 100vh;
        flex-direction: column; background: rgba(12,10,8,0.98); backdrop-filter: blur(20px);
        padding: 100px 40px; gap: 24px; transition: right var(--transition);
        border-left: 1px solid var(--border);
    }
    .nav-links.active { right: 0; }
    .nav-toggle { display: flex; }
    .nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .nav-toggle.active span:nth-child(2) { opacity: 0; }
    .nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
    .story-grid, .reservation-grid { grid-template-columns: 1fr; gap: 48px; }
    .story-img--accent { position: relative; bottom: auto; right: auto; width: 150px; margin-top: -60px; }
    .avis-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 200px; }
    .gallery-item--tall { grid-row: span 1; }
    .gallery-item--wide { grid-column: span 1; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
    .hero-title { font-size: 2.5rem; }
    .hero-actions { flex-direction: column; align-items: center; }
    .story-stats { gap: 24px; flex-wrap: wrap; }
    .featured { padding: 100px 0; }
}
