/*
Theme Name: Bureau401 Games
Theme URI: https://bureau401games.fr
Author: Bureau401
Description: Thème WordPress sur mesure pour Bureau401 Games - Escape Game
Version: 1.0.0
Text Domain: bureau401
*/

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --noir: #0a0a0a;
    --noir-leger: #111111;
    --gris-fonce: #1a1a1a;
    --gris: #2a2a2a;
    --gris-moyen: #888888;
    --blanc: #f0f0f0;
    --jaune-danger: #f5a623;
    --jaune-vif: #ffd600;
    --vert-nucleaire: #39ff14;
    --rouge-alerte: #ff1744;
    --orange: #ff6d00;
    --font-titre: 'Oswald', sans-serif;
    --font-corps: 'Roboto', sans-serif;
    --font-mono: 'Share Tech Mono', monospace;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-corps);
    background-color: var(--noir);
    color: var(--blanc);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: var(--jaune-danger);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--vert-nucleaire);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4 {
    font-family: var(--font-titre);
    text-transform: uppercase;
    letter-spacing: 2px;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.3rem; }

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.95);
    border-bottom: 1px solid var(--gris);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.site-header.scrolled {
    background: rgba(10, 10, 10, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.site-logo {
    font-family: var(--font-titre);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--blanc);
    text-transform: uppercase;
    letter-spacing: 3px;
}

.site-logo span {
    color: var(--jaune-danger);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    color: var(--blanc);
    font-family: var(--font-titre);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    padding: 5px 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--jaune-danger);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a:hover {
    color: var(--jaune-danger);
}

/* Mobile menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--blanc);
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--noir) 0%, #0d1f0d 50%, var(--noir) 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(57, 255, 20, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(245, 166, 35, 0.05) 0%, transparent 50%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    border: 1px solid var(--jaune-danger);
    color: var(--jaune-danger);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 30px;
    animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
    0%, 100% { border-color: var(--jaune-danger); }
    50% { border-color: var(--vert-nucleaire); }
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero h1 .accent {
    color: var(--vert-nucleaire);
    text-shadow: 0 0 30px rgba(57, 255, 20, 0.3);
}

.hero-subtitle {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: var(--gris-moyen);
    margin-bottom: 40px;
    line-height: 1.8;
}

/* Scanline effect */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.03) 2px,
        rgba(0, 0, 0, 0.03) 4px
    );
    pointer-events: none;
    z-index: 3;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-block;
    padding: 15px 40px;
    font-family: var(--font-titre);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--jaune-danger);
    color: var(--noir);
}

.btn-primary:hover {
    background: var(--jaune-vif);
    color: var(--noir);
    box-shadow: 0 0 30px rgba(245, 166, 35, 0.4);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--blanc);
    border: 2px solid var(--blanc);
}

.btn-outline:hover {
    background: var(--blanc);
    color: var(--noir);
}

.btn-danger {
    background: var(--rouge-alerte);
    color: var(--blanc);
}

.btn-danger:hover {
    box-shadow: 0 0 30px rgba(255, 23, 68, 0.4);
    transform: translateY(-2px);
    color: var(--blanc);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   SECTIONS
   ============================================ */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    margin-bottom: 15px;
}

.section-header h2 .accent {
    color: var(--jaune-danger);
}

.section-divider {
    width: 60px;
    height: 3px;
    background: var(--jaune-danger);
    margin: 0 auto 20px;
}

.section-header p {
    color: var(--gris-moyen);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   ROOM CARDS
   ============================================ */
.rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.room-card {
    background: var(--gris-fonce);
    border: 1px solid var(--gris);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.room-card:hover {
    transform: translateY(-5px);
    border-color: var(--jaune-danger);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.room-card-image {
    height: 250px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.room-card-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(transparent, var(--gris-fonce));
}

.room-status {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 15px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    z-index: 1;
}

.room-status.disponible {
    background: var(--vert-nucleaire);
    color: var(--noir);
}

.room-status.bientot {
    background: var(--jaune-danger);
    color: var(--noir);
}

.room-status.a-venir {
    background: var(--gris-moyen);
    color: var(--noir);
}

.room-card-content {
    padding: 30px;
}

.room-card-content h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.room-card-content p {
    color: var(--gris-moyen);
    margin-bottom: 20px;
    line-height: 1.7;
}

.room-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--gris);
}

.room-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--gris-moyen);
}

.room-meta-item .icon {
    color: var(--jaune-danger);
    font-size: 1.1rem;
}

.room-difficulty {
    display: flex;
    gap: 4px;
}

.room-difficulty .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gris);
}

.room-difficulty .dot.filled {
    background: var(--jaune-danger);
}

/* ============================================
   ROOM DETAIL PAGE
   ============================================ */
.room-hero {
    height: 60vh;
    min-height: 400px;
    display: flex;
    align-items: flex-end;
    position: relative;
    background-size: cover;
    background-position: center;
    background-color: var(--gris-fonce);
}

.room-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 30%, var(--noir) 100%);
}

.room-hero-content {
    position: relative;
    z-index: 2;
    padding: 40px 0;
    width: 100%;
}

.room-detail-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    padding: 60px 0;
}

.room-description h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--jaune-danger);
}

.room-description p {
    margin-bottom: 20px;
    color: var(--gris-moyen);
    line-height: 1.8;
}

.room-scenario-steps {
    list-style: none;
    margin: 30px 0;
}

.room-scenario-steps li {
    padding: 15px 20px;
    border-left: 3px solid var(--gris);
    margin-bottom: 10px;
    background: var(--gris-fonce);
    transition: all 0.3s ease;
    position: relative;
    padding-left: 50px;
}

.room-scenario-steps li::before {
    content: attr(data-step);
    position: absolute;
    left: 15px;
    font-family: var(--font-mono);
    color: var(--jaune-danger);
    font-weight: bold;
}

.room-scenario-steps li:hover {
    border-left-color: var(--jaune-danger);
}

.room-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

.room-info-box {
    background: var(--gris-fonce);
    border: 1px solid var(--gris);
    padding: 30px;
}

.room-info-box h3 {
    margin-bottom: 25px;
    font-size: 1.3rem;
    color: var(--jaune-danger);
}

.room-info-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--gris);
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.room-info-item:last-of-type {
    border-bottom: none;
}

.room-info-item .label {
    color: var(--gris-moyen);
}

.room-info-item .value {
    color: var(--blanc);
    font-weight: bold;
}

.room-book-btn {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 25px;
    padding: 18px;
}

/* ============================================
   ABOUT / CONCEPT SECTION
   ============================================ */
.about-section {
    background: var(--gris-fonce);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.about-item {
    text-align: center;
    padding: 40px 30px;
    border: 1px solid var(--gris);
    transition: all 0.3s ease;
}

.about-item:hover {
    border-color: var(--jaune-danger);
}

.about-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.about-item h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.about-item p {
    color: var(--gris-moyen);
    font-size: 0.95rem;
}

/* ============================================
   BOOKING / AMELIA SECTION
   ============================================ */
.booking-section {
    background: var(--noir-leger);
}

.booking-wrapper {
    max-width: 900px;
    margin: 0 auto;
    background: var(--gris-fonce);
    border: 1px solid var(--gris);
    padding: 40px;
}

/* Amelia plugin overrides for dark theme */
.booking-wrapper .amelia-app-booking {
    --amelia-font-family: var(--font-corps) !important;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.contact-info-item .icon-box {
    width: 50px;
    height: 50px;
    background: var(--gris-fonce);
    border: 1px solid var(--gris);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.contact-info-item h4 {
    font-size: 1rem;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.contact-info-item p {
    color: var(--gris-moyen);
    font-size: 0.95rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    background: var(--gris-fonce);
    border: 1px solid var(--gris);
    color: var(--blanc);
    font-family: var(--font-corps);
    font-size: 1rem;
    margin-bottom: 15px;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--jaune-danger);
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--noir);
    border-top: 1px solid var(--gris);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .site-logo {
    margin-bottom: 15px;
    display: inline-block;
}

.footer-brand p {
    color: var(--gris-moyen);
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-links h4,
.footer-contact h4 {
    color: var(--jaune-danger);
    margin-bottom: 20px;
    font-size: 1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--gris-moyen);
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--jaune-danger);
}

.footer-contact p {
    color: var(--gris-moyen);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--gris);
    color: var(--gris-moyen);
    font-size: 0.85rem;
}

/* ============================================
   WARNING BANNER
   ============================================ */
.warning-banner {
    background: repeating-linear-gradient(
        45deg,
        var(--noir),
        var(--noir) 10px,
        var(--gris-fonce) 10px,
        var(--gris-fonce) 20px
    );
    border-top: 3px solid var(--jaune-danger);
    border-bottom: 3px solid var(--jaune-danger);
    padding: 15px;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--jaune-danger);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Glitch effect for hero title */
@keyframes glitch {
    0%, 100% { text-shadow: none; }
    20% { text-shadow: -2px 0 var(--vert-nucleaire), 2px 0 var(--rouge-alerte); }
    40% { text-shadow: 2px 0 var(--vert-nucleaire), -2px 0 var(--rouge-alerte); }
    60% { text-shadow: -1px 0 var(--rouge-alerte), 1px 0 var(--vert-nucleaire); }
    80% { text-shadow: 1px 0 var(--rouge-alerte), -1px 0 var(--vert-nucleaire); }
}

.glitch-text:hover {
    animation: glitch 0.3s ease;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 968px) {
    h1 { font-size: 2.5rem; }
    .hero h1 { font-size: 3rem; }
    .rooms-grid { grid-template-columns: 1fr; }
    .about-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .room-detail-content { grid-template-columns: 1fr; }

    .room-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--noir);
        flex-direction: column;
        padding: 20px;
        border-bottom: 1px solid var(--gris);
    }

    .nav-menu.active {
        display: flex;
    }

    .menu-toggle {
        display: flex;
    }

    .hero h1 { font-size: 2.2rem; }
    .hero-subtitle { font-size: 0.95rem; }
    section { padding: 60px 0; }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* ============================================
   WORDPRESS SPECIFIC
   ============================================ */
.wp-block-image img {
    max-width: 100%;
    height: auto;
}

.aligncenter {
    text-align: center;
}

.alignleft {
    float: left;
    margin-right: 20px;
}

.alignright {
    float: right;
    margin-left: 20px;
}

/* Page template: full width */
.page-template-full-width .site-content {
    max-width: 100%;
    padding: 0;
}

/* Screen reader text */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}
