/*
Theme Name: GOLWOS
Theme URI: https://golwos.fr
Author: Brasserie GOLWOS + Claude
Description: Thème sur-mesure pour la Brasserie GOLWOS. Reprend l'identité rétro/geek (Press Start 2P, VT323, thème sombre) avec une structure de pages classique pilotée par des types de contenu (Bières, Événements, Points de vente).
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
Text Domain: golwos
*/

: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: #0d0d10;
    color: #fff;
}

/* La page d'accueil (landing plein écran) ne défile pas */
body.golwos-landing {
    overflow: hidden;
    background-color: #000;
}

a { color: var(--accent-yellow); }

/* =========================================================
   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);
}

/* =========================================================
   LANDING / HERO
   ========================================================= */
.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;
    filter: drop-shadow(2px 2px 0 #fe2c55) drop-shadow(-2px -2px 0 #25f4ee);
}

/* =========================================================
   MENU TOGGLE + SIDEBAR
   ========================================================= */
.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;
    background: none;
    border: none;
}
.menu-toggle:hover { transform: scale(1.1); }
.menu-toggle img { width: 50px; border-radius: 8px; }
.menu-toggle span {
    display: block;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.6rem;
    margin-top: 0.5rem;
    text-align: center;
    color: #fff;
}

.sidebar {
    position: fixed;
    top: 0; left: -420px;
    width: 400px;
    max-width: 88vw;
    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;
    background: none;
    border: none;
    line-height: 1;
}
.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;
    color: #fff;
    text-decoration: none;
}
.menu-category:hover {
    border-color: var(--accent-yellow);
    background: #222;
    transform: translateX(5px);
    color: #fff;
}

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

/* =========================================================
   PAGE INTERNE (structure classique)
   ========================================================= */
.page-shell {
    min-height: 100vh;
    padding: 6rem 2rem 5rem;
    max-width: 1200px;
    margin: 0 auto;
}
.site-topbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 70px;
    background: rgba(13,13,16,0.95);
    border-bottom: 3px solid var(--accent-yellow);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 1.5rem;
    z-index: 200;
    backdrop-filter: blur(8px);
}
.topbar-toggle {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: transform 0.2s;
}
.topbar-toggle:hover { transform: scale(1.05); }
.topbar-toggle img { width: 44px; border-radius: 6px; }
.topbar-toggle span {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.8rem;
    color: var(--accent-yellow);
}

.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;
}
.retro-subtitle {
    font-family: 'VT323', monospace;
    font-size: 2rem;
    color: var(--retro-green);
    margin-bottom: 1rem;
    margin-top: 1rem;
    text-transform: uppercase;
}
.page-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'VT323', monospace;
    font-size: 1.3rem;
    color: var(--retro-green);
    text-decoration: none;
    margin-bottom: 1.5rem;
}
.page-back:hover { color: #fff; }

/* =========================================================
   CATALOGUE BIÈRES
   ========================================================= */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 3rem;
    width: 100%;
    margin-top: 2rem;
    padding-bottom: 3rem;
}
.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;
    text-decoration: none;
}
.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;
}

/* =========================================================
   FICHE BIÈRE (single)
   ========================================================= */
.beer-single {
    display: flex;
    gap: 3rem;
    background: #16161a;
    border: 2px solid #555;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
}
.beer-single-left {
    flex: 1.5;
    background: #0a0a0c;
    display: flex;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    min-height: 480px;
}
.beer-single-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;
}
.beer-single-img {
    width: 100%;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    z-index: 2;
}
.beer-single-right {
    flex: 1;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.beer-single-right h1 {
    font-size: 2.8rem;
    color: #E4DBCB;
    font-weight: 800;
}
.beer-single-style {
    font-size: 1.1rem;
    color: #888;
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
}
.beer-single-desc {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #ccc;
}
.beer-single-desc p { margin-bottom: 1rem; }
.beer-single-desc strong { color: #E4DBCB; }
.beer-single-desc em { color: var(--accent-yellow); font-style: italic; }
.beer-artist {
    margin-top: 1.5rem;
    font-size: 0.95rem;
    color: #888;
}
.beer-artist a { color: var(--accent-yellow); text-decoration: none; font-weight: bold; }

/* =========================================================
   ÉVÉNEMENTS
   ========================================================= */
.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; }
.past-events-title { margin-top: 3.5rem; opacity: 0.85; }
.event-card.event-past { opacity: 0.55; filter: grayscale(60%); }
.event-card.event-past:hover {
    opacity: 1; filter: grayscale(0%);
    border-color: #555; box-shadow: none;
}
.event-card.event-past .event-date { background: #888; box-shadow: 4px 4px 0px #444; }

/* =========================================================
   QUI SOMMES-NOUS / BRASSERIE (pages texte)
   ========================================================= */
.creators-layout { display: flex; gap: 3rem; align-items: flex-start; }
.creators-photos {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    flex: 0 0 380px;
    max-width: 100%;
}
.creators-desc { flex: 1; min-width: 0; }
.dm-photo {
    width: 100%;
    border: 6px solid #fff;
    box-shadow: 10px 10px 0px var(--accent-red);
    background: #000;
    object-fit: cover;
}
.creators-desc p, .brewery-desc p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #e0e0e0;
    margin-bottom: 1rem;
}
.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; }
.wp-page-content p { font-size: 1.1rem; line-height: 1.8; color: #e0e0e0; margin-bottom: 1rem; }
.wp-page-content h2, .wp-page-content h3 { color: var(--retro-green); font-family: 'VT323', monospace; margin: 1.5rem 0 1rem; }
.wp-page-content strong { color: var(--accent-yellow); }

/* =========================================================
   OÙ NOUS TROUVER
   ========================================================= */
.golwos-map {
    width: 100%;
    height: 460px;
    margin-top: 1.5rem;
    border: 3px solid #333;
    border-radius: 12px;
    overflow: hidden;
    z-index: 1;
}
.golwos-map-hint {
    font-family: 'VT323', monospace;
    font-size: 1.1rem;
    color: #888;
    margin-top: 0.6rem;
    margin-bottom: 1rem;
}
.golwos-map .leaflet-popup-content {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #1a1a1a;
}
.golwos-map .leaflet-popup-content a { color: #c0392b; font-weight: bold; text-decoration: none; }
.golwos-map .leaflet-container { background: #0d0d10; }
/* Marqueur pastille logo GOLWOS */
.golwos-pin { background: none; border: none; }
.golwos-pin .gp-box {
    display: block;
    width: 42px;
    height: 42px;
    border: 2px solid #1d1e22;
    border-radius: 10px;
    background-color: #e9e4d3;
    background-size: cover;
    background-position: center;
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.3);
}
.golwos-pin .gp-tip {
    display: block;
    width: 0;
    height: 0;
    margin: -1px auto 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 9px solid #1d1e22;
}
.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);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    text-decoration: none;
    color: inherit;
}
.brewery-address-card:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0px var(--accent-red); }
.address-icon { font-size: 2rem; }
.address-text { font-size: 1.05rem; line-height: 1.6; color: #fff; }
.partner-group { margin-top: 1.5rem; }
.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: "\25B6";
    position: absolute;
    left: 0; top: 0;
    color: var(--accent-yellow);
    font-size: 0.75rem;
}
.partner-addr { color: #888; font-size: 0.8rem; display: block; margin: 0.2rem 0; text-decoration: none; }
.partner-tag { color: var(--accent-yellow); font-size: 0.8rem; font-weight: bold; }
/* Réseaux sociaux en version "inline" (page contact) */
.contact-social {
    position: static;
    transform: none;
    left: auto;
    bottom: auto;
    justify-content: flex-start;
    gap: 1.2rem;
    margin-top: 1rem;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
    .creators-layout { flex-direction: column; align-items: center; }
    .creators-photos { flex: none; width: 100%; max-width: 420px; }
    .beer-single { flex-direction: column; }
    .find-us-layout { grid-template-columns: 1fr; gap: 2.5rem; }
    .partner-group ul { grid-template-columns: 1fr; }
    .event-card { flex-direction: column; align-items: flex-start; gap: 1.2rem; }
    .catalog-grid { grid-template-columns: 1fr; gap: 1.5rem; justify-items: center; }
    .catalog-card { width: 100%; max-width: 360px; }
    .page-shell { padding: 5.5rem 1rem 4rem; }
    .modal-header-title { font-size: 1.3rem; }
}
