:root {
    --bg-steel: #2e3238;
    --bg-metal: #1d1e22;
    --text-main: #f0f4f8;
    --accent-red: #ff3366;
    --retro-green: #39ff14;
    --accent-yellow: #ffcc00;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background-color: #000;
    color: #fff;
    overflow: hidden; /* Prevent scrolling on desktop */
}

/* AGE GATE */
.age-gate {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: #111;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    transition: opacity 0.5s ease-in-out;
}
.age-gate.hidden {
    opacity: 0;
    pointer-events: none;
}
.age-logo {
    max-width: 300px;
    margin-bottom: 3rem;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.2));
}
.age-buttons {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}
.age-buttons button {
    padding: 1rem 3rem;
    font-size: 1.5rem;
    font-weight: 800;
    font-family: 'Press Start 2P', cursive;
    cursor: pointer;
    border: 4px solid var(--accent-yellow);
    background: transparent;
    color: #fff;
    transition: all 0.2s;
    box-shadow: 4px 4px 0px var(--accent-red);
}
.age-buttons button:hover {
    background: var(--accent-yellow);
    color: #000;
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px var(--accent-red);
}


/* MAIN LAYOUT */
.hero-clone {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh; height: 100dvh;
    background-color: #1a1a1a;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.95) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main-logo {
    max-width: 400px;
    width: 100%;
    margin-bottom: 2rem;
}

.magic-logo {
    filter: invert(1);
    mix-blend-mode: screen;
}

.slogan {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.5;
    text-shadow: 0 4px 6px rgba(0,0,0,0.9);
    max-width: 650px;
}

/* SOCIAL FOOTER */
.social-footer {
    position: absolute;
    bottom: calc(2.5rem + env(safe-area-inset-bottom, 0px));
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 2.5rem;
    z-index: 100;
}

.social-footer a {
    color: #fff;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0.6;
    display: flex;
    background: rgba(255,255,255,0.05);
    padding: 12px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.1);
}

.social-footer a:hover {
    color: var(--accent-yellow);
    opacity: 1;
    transform: translateY(-5px) scale(1.1);
    background: rgba(0,0,0,0.8);
    border-color: var(--accent-yellow);
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.social-footer svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.social-footer a[title="TikTok"] svg {
    fill: currentColor;
    stroke: none;
    /* Effet Glitch officiel TikTok */
    filter: drop-shadow(2px 2px 0 #fe2c55) drop-shadow(-2px -2px 0 #25f4ee);
}

/* MENU TOGGLE */
.menu-toggle {
    position: fixed;
    top: 2rem; left: 2rem;
    cursor: pointer;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s;
}
.menu-toggle:hover {
    transform: scale(1.1);
}

/* LEFT SIDEBAR */
.sidebar {
    position: fixed;
    top: 0; left: -420px;
    width: 400px;
    height: 100vh;
    background-color: rgba(20, 20, 25, 0.98);
    border-right: 4px solid var(--accent-yellow);
    box-shadow: 10px 0 30px rgba(0,0,0,0.8);
    display: flex;
    flex-direction: column;
    z-index: 999;
    transition: left 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    backdrop-filter: blur(10px);
}
.sidebar.open {
    left: 0;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem;
    border-bottom: 2px solid #333;
}
.sidebar-title {
    font-family: 'Press Start 2P', cursive;
    font-size: 1.2rem;
    color: #fff;
}

.close-menu {
    font-size: 2.5rem;
    cursor: pointer;
    color: var(--accent-red);
    transition: color 0.2s;
}
.close-menu:hover {
    color: #fff;
}

.menu-nav {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.menu-category {
    background: #111;
    border: 2px solid #444;
    padding: 1.2rem;
    border-radius: 8px;
    font-family: 'VT323', monospace;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.menu-category:hover {
    border-color: var(--accent-yellow);
    background: #222;
    transform: translateX(5px);
}

.submenu {
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    padding-left: 1rem;
    margin-bottom: 1rem;
}
.submenu.open {
    display: flex;
}

.beer-item {
    display: flex;
    align-items: center;
    background: #1a1a1a;
    border-radius: 8px;
    padding: 0.5rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    border: 1px solid #333;
}
.beer-item:hover {
    background: #2a2a2a;
    border-color: #666;
    transform: translateX(5px);
}

.beer-thumb {
    width: 60px;
    height: 80px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-right: 1rem;
    border-radius: 4px;
}

.beer-name {
    font-size: 1rem;
    font-weight: 700;
}

/* SEPARATE SCROLLBARS */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-thumb { background: #555; border-radius: 4px; }


/* MODALS */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.9);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
}

.modal.active {
    display: flex;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: #16161a;
    width: 1000px;
    max-width: 95%;
    height: 700px;
    max-height: 90vh;
    border-radius: 20px;
    display: flex;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
    border: 2px solid #555;
    overflow: hidden;
}

/* Catalog Page (Full Screen overrides) */
.catalog-page {
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    border-radius: 0;
    border: none;
    flex-direction: column;
    padding: 2rem 4rem;
    overflow-y: auto;
    background: #0d0d10; /* Darker background for catalog */
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 3rem;
    width: 100%;
    margin-top: 2rem;
    padding-bottom: 5rem;
}

.catalog-card {
    background: #1a1a20;
    border: 3px solid #333;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    flex-direction: column;
}

.catalog-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-yellow);
    box-shadow: 0 15px 30px rgba(255, 204, 0, 0.15);
}

.catalog-img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-bottom: 3px solid #333;
    transition: transform 0.3s, border-color 0.3s;
    display: block;
}

.catalog-card:hover .catalog-img {
    transform: scale(1.05);
    border-color: var(--accent-yellow);
}

.catalog-name {
    font-family: 'Press Start 2P', cursive;
    font-size: 1.1rem;
    color: #fff;
    text-align: center;
    padding: 1.5rem;
    background: #111;
    z-index: 10;
    line-height: 1.5;
}

/* Modals that are just text (About, Brewery) */
.text-modal {
    overflow-y: auto;
    display: block;
    border: 4px solid var(--accent-yellow);
    box-shadow: 8px 8px 0px #000;
    border-radius: 0;
}

.text-modal-body {
    padding: 4rem;
}

.modal-header-title {
    font-family: 'Press Start 2P', cursive;
    font-size: 1.8rem;
    color: var(--accent-yellow);
    margin-bottom: 2.5rem;
    border-bottom: 4px dashed #333;
    padding-bottom: 1rem;
    text-align: center;
}

.creators-layout {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

.dm-photo {
    width: 300px;
    border: 6px solid #fff;
    box-shadow: 10px 10px 0px var(--accent-red);
    image-rendering: auto;
    background: #000;
}

.creators-desc p, .brewery-desc p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #e0e0e0;
}

.retro-subtitle {
    font-family: 'VT323', monospace;
    font-size: 2rem;
    color: var(--retro-green);
    margin-bottom: 1rem;
    margin-top: 1rem;
    text-transform: uppercase;
}

.brewery-desc ul {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}
.brewery-desc li {
    font-size: 1.1rem;
    color: #ccc;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

/* Beer View Modal */
.modal-split {
    display: flex;
    width: 100%;
    height: 100%;
}
.modal-left {
    flex: 1.5;
    background: #0a0a0c;
    display: flex;
    padding: 1rem;
    position: relative;
    overflow: hidden;
    border-radius: 20px 0 0 20px;
}
.modal-image-blur {
    position: absolute;
    top: -10%; left: -10%;
    width: 120%; height: 120%;
    background-size: cover;
    background-position: center;
    filter: blur(35px);
    opacity: 0.9;
    z-index: 1;
}
.modal-image {
    width: 100%;
    height: 100%;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.05); /* Slight bump for maximum visual impact */
    position: relative;
    z-index: 2;
}
.modal-right {
    flex: 1;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
}
.modal-right h2 {
    font-size: 2.8rem;
    color: #E4DBCB;
    font-weight: 800;
}
.modal-right h3 {
    font-size: 1.1rem;
    color: #888;
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
}
.modal-right p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #ccc;
}
.modal-desc-content {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #ccc;
}
.modal-desc-content p {
    margin-bottom: 1rem;
}
.modal-desc-content strong {
    color: #E4DBCB;
}
.modal-desc-content em {
    color: var(--accent-yellow);
    font-style: italic;
}

.close-btn {
    position: absolute;
    top: 1.2rem; right: 2rem;
    font-size: 3rem;
    color: #aaa;
    cursor: pointer;
    z-index: 100;
}

@media (max-width: 900px) {
    .creators-layout {
        flex-direction: column;
        align-items: center;
    }
    .modal-split {
        flex-direction: column;
    }
    .text-modal-body {
        padding: 2rem;
    }

    /* Events and Find Us Mobile overrides */
    .event-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.2rem;
    }
    .event-date {
        width: 80px !important;
        height: 80px !important;
    }
    .event-date .day {
        font-size: 1rem !important;
    }
    .event-date .month {
        font-size: 0.5rem !important;
    }
    .find-us-layout {
        grid-template-columns: 1fr !important;
        gap: 2.5rem !important;
    }
    .partner-group ul {
        grid-template-columns: 1fr !important;
    }

    /* Catalog (nos bières) mobile */
    .catalog-page {
        padding: 2rem 1rem;
    }
    .catalog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        justify-items: center;
    }
    .catalog-card {
        width: 100%;
        max-width: 360px;
    }
}

/* UPCOMING EVENTS STYLES */
.events-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 1.5rem;
}

.event-card {
    display: flex;
    gap: 2rem;
    background: #1a1a20;
    border: 3px solid #333;
    padding: 1.5rem;
    border-radius: 12px;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.event-card:hover {
    border-color: var(--accent-yellow);
    box-shadow: 0 5px 20px rgba(255, 204, 0, 0.1);
    transform: translateY(-2px);
}

.event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    background: var(--accent-yellow);
    color: #000;
    border: 4px solid #fff;
    box-shadow: 4px 4px 0px var(--accent-red);
    font-family: 'Press Start 2P', cursive;
    text-align: center;
    flex-shrink: 0;
}

.event-date .day {
    font-size: 1.2rem;
    font-weight: 800;
}

.event-date .month {
    font-size: 0.6rem;
    font-weight: bold;
    margin-top: 0.2rem;
}

.event-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.event-title {
    font-family: 'Press Start 2P', cursive;
    font-size: 1rem;
    color: #fff;
    line-height: 1.4;
}

.event-meta {
    font-family: 'VT323', monospace;
    font-size: 1.4rem;
    color: var(--retro-green);
}

.event-info {
    font-size: 1rem;
    color: #ccc;
    line-height: 1.6;
}

.event-info ul {
    list-style: none;
    margin-top: 0.5rem;
    padding-left: 0;
}

.event-info li {
    font-size: 0.95rem;
    color: #e0e0e0;
    margin-bottom: 0.2rem;
}

.event-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-yellow);
    text-decoration: none;
    font-weight: bold;
    margin-top: 0.5rem;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.event-link:hover {
    color: #fff;
}

.fb-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* OÙ NOUS TROUVER STYLES */
.find-us-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 1.5rem;
}

.find-us-left, .find-us-right {
    display: flex;
    flex-direction: column;
}

.brewery-loc-desc {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #ccc;
}

.brewery-address-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: #1a1a20;
    border: 3px solid #333;
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 2rem;
    box-shadow: 4px 4px 0px var(--accent-red);
}

.address-icon {
    font-size: 2rem;
}

.address-text {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #fff;
}

.partner-group h4 {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.9rem;
    color: var(--retro-green);
    margin-bottom: 1rem;
    border-bottom: 2px solid #333;
    padding-bottom: 0.5rem;
}

.partner-group ul {
    list-style: none;
    padding-left: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}

.partner-group li {
    font-size: 1rem;
    color: #e0e0e0;
    position: relative;
    padding-left: 1.2rem;
    line-height: 1.4;
    margin-bottom: 1.2rem;
}

.partner-group li::before {
    content: "▶";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent-yellow);
    font-size: 0.75rem;
}
