/* 
 * CHEZ PÉPÉ - STYLE.CSS
 * Design: World-Class / Rustic Industrial / Modern Warm
 */

:root {
    /* --- PALETTE DE COULEURS --- */
    --bg-dark: #121212;
    --bg-card: #1e1e1e;
    --text-main: #f4f4f4;
    --text-muted: #aaaaaa;

    /* Accents */
    --primary: #e25822;
    /* Flame / Tomato Red */
    --primary-hover: #c0392b;
    --secondary: #f1c40f;
    /* Cheese / Gold */

    /* --- TYPOGRAPHIE --- */
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Lato', sans-serif;
    --font-display: 'Playfair Display', serif;

    /* --- ESPACEMENTS --- */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* --- BORDERS & SHADOWS --- */
    --radius-sm: 4px;
    --radius-md: 12px;
    --shadow-card: 0 10px 20px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 15px 30px rgba(226, 88, 34, 0.2);

    /* --- TRANSITIONS --- */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* --- RESET & BASE --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-sm);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- UTILITIES --- */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    text-transform: uppercase;
    border-radius: 50px;
    /* Pill shape */
    cursor: pointer;
    border: none;
    transition: var(--transition-medium);
    letter-spacing: 1px;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary), #ff7e5f);
    color: white;
    box-shadow: 0 4px 15px rgba(226, 88, 34, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(226, 88, 34, 0.6);
}

.btn-outline {
    border: 2px solid white;
    color: white;
    background: transparent;
}

.btn-outline:hover {
    background: white;
    color: var(--bg-dark);
    transform: translateY(-3px);
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

.section-title {
    font-family: var(--font-display);
    font-size: 3rem;
    text-align: center;
    margin-bottom: var(--spacing-lg);
    color: var(--primary);
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--secondary);
    margin: 10px auto 0;
}

.section-padding {
    padding: var(--spacing-lg) 0;
}

/* --- ANIMATIONS (SCROLL REVEAL) --- */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- HEADER & NAV --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(10px);
    /* Glassmorphism */
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

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

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px;
    transition: var(--transition-medium);
}

/* --- HERO SECTION --- */
#accueil {
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax simple */
    background-image: url('../assets/images/hero.png');
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(18, 18, 18, 1));
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-family: var(--font-display);
    font-size: 5rem;
    margin-bottom: 1rem;
    line-height: 1.1;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    color: #ddd;
    font-weight: 300;
    letter-spacing: 2px;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

/* --- FILTERS --- */
.menu-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-muted);
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    cursor: pointer;
    font-family: var(--font-heading);
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: scale(1.05);
}

/* --- MENU SECTION (GRID) --- */
.menu-category {
    margin-bottom: var(--spacing-xl);
}

.menu-category h3 {
    font-size: 2rem;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.category-desc {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-style: italic;
}

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

.menu-item {
    background-color: rgba(30, 30, 30, 0.6);
    backdrop-filter: blur(5px);
    padding: 2rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-medium);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: var(--primary);
    transform: scaleY(0);
    transition: transform 0.3s ease;
    transform-origin: bottom;
}

.menu-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    background-color: rgba(40, 40, 40, 0.8);
}

.menu-item:hover::before {
    transform: scaleY(1);
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.8rem;
}

.item-name {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: white;
}

.item-price {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary);
}

.item-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.menu-info-box {
    background-color: rgba(241, 196, 15, 0.1);
    border: 1px solid var(--secondary);
    color: var(--secondary);
    padding: 1rem;
    margin-top: 2rem;
    border-radius: var(--radius-sm);
    text-align: center;
}

/* --- MODAL (POPUP) --- */
.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    /* Black w/ opacity */
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: var(--bg-card);
    margin: auto;
    width: 90%;
    max-width: 800px;
    border-radius: var(--radius-md);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    position: relative;
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.modal.show .modal-content {
    transform: scale(1);
}

.close-modal {
    color: white;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--primary);
    text-decoration: none;
    cursor: pointer;
}

.modal-body {
    display: flex;
    flex-wrap: wrap;
}

.modal-image {
    flex: 1 1 400px;
    height: 300px;
    overflow: hidden;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-details {
    flex: 1 1 300px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#modal-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

#modal-desc {
    font-size: 1.1rem;
    color: #ccc;
    margin-bottom: 2rem;
}

.modal-price {
    font-size: 2rem;
    font-weight: bold;
    color: white;
    margin-bottom: 2rem;
}

/* --- FOOTER --- */
footer {
    background-color: #0a0a0a;
    padding: var(--spacing-lg) 0;
    border-top: 1px solid #333;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-col h4 {
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.footer-info p {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.map-container iframe {
    width: 100%;
    height: 200px;
    border: 0;
    border-radius: var(--radius-sm);
    filter: grayscale(100%) invert(92%) contrast(83%);
    /* Dark map style */
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        right: 0px;
        top: 60px;
        height: calc(100vh - 60px);
        background-color: var(--bg-dark);
        flex-direction: column;
        align-items: center;
        width: 100%;
        transform: translateX(100%);
        transition: transform 0.3s ease-in;
        padding-top: 2rem;
    }

    .nav-links.nav-active {
        transform: translateX(0%);
    }

    .burger {
        display: block;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .modal-body {
        flex-direction: column;
    }

    .modal-image {
        height: 200px;
    }
}