/*
Theme Name: L'Abysse
Theme URI: https://labysse.fr
Author: L'Abysse
Author URI: https://labysse.fr
Description: Thème WordPress personnalisé pour L'Abysse - Architecture du Désir. Thème FSE (Full Site Editing) avec support complet de l'éditeur de blocs Gutenberg.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: labysse
Tags: full-site-editing, block-patterns, dark-mode, custom-colors

L'Abysse WordPress Theme, Copyright 2024
*/

/* ========================================
   VARIABLES CSS
   ======================================== */
:root {
    --neon-red: #ff0022;
    --dark-bg: #050505;
    --grid-color: #1a1a1a;
    --text-light: #d4d4d4;
    --text-muted: #9ca3af;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-light);
    overflow-x: hidden;
    cursor: crosshair;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6,
.heading-font {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ========================================
   BACKGROUND GRID ANIMÉ
   ======================================== */
.bg-grid {
    background-image: 
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: center top;
    animation: grid-move 120s linear infinite;
}

@keyframes grid-move {
    0% { background-position: 0 0; }
    100% { background-position: 50px 50px; }
}

/* ========================================
   EFFET STROBOSCOPIQUE
   ======================================== */
@keyframes strobe {
    0% { opacity: 1; text-shadow: 0 0 0 transparent; color: white; }
    25% { opacity: 0.8; text-shadow: 2px 2px 0px var(--neon-red); color: #ffcccc; }
    50% { opacity: 1; text-shadow: -2px -2px 0px cyan; color: white; }
    75% { opacity: 0.1; text-shadow: none; color: black; }
    100% { opacity: 1; text-shadow: 0 0 10px var(--neon-red); color: var(--neon-red); }
}

.strobe-hover:hover {
    animation: strobe 0.1s infinite;
}

/* ========================================
   ANIMATION REVEAL AU SCROLL
   ======================================== */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
    filter: blur(5px);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

/* ========================================
   BOUTON GLITCH
   ======================================== */
.btn-glitch {
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    display: inline-block;
    padding: 1rem 2.5rem;
    border: none;
    background: white;
    color: black;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
}

.btn-glitch:hover {
    background-color: var(--neon-red);
    color: white;
    box-shadow: 0 0 20px var(--neon-red);
    letter-spacing: 0.2em;
}

.btn-glitch::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: 0.5s;
}

.btn-glitch:hover::before {
    left: 100%;
}

/* Variante outline */
.btn-outline {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
}

.btn-outline:hover {
    border-color: var(--neon-red);
    color: var(--neon-red);
    background: transparent;
    box-shadow: none;
}

/* ========================================
   EFFET IMAGE NOISE
   ======================================== */
.img-noise {
    filter: grayscale(100%) contrast(120%);
    transition: all 0.5s ease;
}

.group:hover .img-noise,
.img-noise:hover {
    filter: grayscale(0%) contrast(100%) sepia(50%) hue-rotate(-30deg) saturate(200%);
    transform: scale(1.02);
}

/* ========================================
   SCROLLBAR PERSONNALISÉE
   ======================================== */
::-webkit-scrollbar {
    width: 5px;
    background: #000;
}

::-webkit-scrollbar-thumb {
    background: #333;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--neon-red);
}

/* ========================================
   NAVIGATION
   ======================================== */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 50;
    background: rgba(0,0,0,0.95);
    border-bottom: 1px solid #1f1f1f;
    backdrop-filter: blur(12px);
}

.nav-link {
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-light);
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--neon-red);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero-section {
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 10;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.4;
    z-index: 0;
    filter: grayscale(100%) contrast(125%);
}

.hero-content {
    position: relative;
    z-index: 20;
    text-align: center;
    padding: 2rem;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 8rem);
    font-weight: bold;
    color: white;
    margin-bottom: 2rem;
    line-height: 1.1;
}

.hero-subtitle {
    color: var(--neon-red);
    font-size: 0.75rem;
    font-weight: bold;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ========================================
   CARDS & BOXES
   ======================================== */
.card-dark {
    background: #0a0a0a;
    border: 1px solid #1f1f1f;
    padding: 2rem;
    transition: all 0.5s;
}

.card-dark:hover {
    border-color: var(--neon-red);
}

.card-dark .icon {
    width: 2.5rem;
    height: 2.5rem;
    color: white;
    margin-bottom: 1.5rem;
    transition: color 0.3s;
}

.card-dark:hover .icon {
    color: var(--neon-red);
}

/* ========================================
   SECTION STYLING
   ======================================== */
.section-title {
    font-size: clamp(2rem, 5vw, 4rem);
    color: white;
    margin-bottom: 1.5rem;
}

.section-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.section-divider .line {
    flex-grow: 1;
    height: 1px;
    background: var(--neon-red);
}

/* ========================================
   EVENT CARDS
   ======================================== */
.event-card {
    background: #0a0a0a;
    border: 1px solid #1f1f1f;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: border-color 0.3s;
}

@media (min-width: 768px) {
    .event-card {
        flex-direction: row;
    }
}

.event-card:hover {
    border-color: var(--neon-red);
}

.event-date {
    width: 6rem;
    color: var(--neon-red);
    font-weight: bold;
    font-size: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-right: 1px solid #1f1f1f;
    padding-right: 1.5rem;
}

.event-date .day {
    font-size: 2.5rem;
}

/* ========================================
   TESTIMONIALS
   ======================================== */
.testimonial {
    background: #111;
    padding: 1.5rem;
    border: 1px solid #1a1a1a;
    font-style: italic;
    color: #9ca3af;
    font-size: 0.875rem;
}

.testimonial-meta {
    display: block;
    text-align: right;
    margin-top: 1rem;
    font-size: 0.75rem;
    color: #4b5563;
}

/* ========================================
   FORMS
   ======================================== */
.form-input {
    width: 100%;
    background: #0a0a0a;
    border: none;
    border-bottom: 1px solid #374151;
    padding: 1rem;
    color: white;
    transition: all 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: var(--neon-red);
    background: #111;
}

.form-textarea {
    width: 100%;
    background: #0a0a0a;
    border: 1px solid #1f1f1f;
    padding: 1.5rem;
    color: white;
    font-size: 0.875rem;
    font-weight: 300;
    line-height: 1.75;
    resize: vertical;
    min-height: 150px;
}

.form-textarea:focus {
    outline: none;
    border-color: var(--neon-red);
    background: #111;
}

.form-label {
    display: block;
    font-size: 0.75rem;
    color: var(--neon-red);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.form-select {
    width: 100%;
    background: #0a0a0a;
    border: none;
    border-bottom: 1px solid #374151;
    padding: 1rem;
    color: #d1d5db;
    appearance: none;
    border-radius: 0;
}

.form-select:focus {
    outline: none;
    border-color: var(--neon-red);
    background: #111;
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
    background: black;
    border-top: 1px solid #1a1a1a;
    padding: 3rem 0;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.text-neon { color: var(--neon-red); }
.bg-dark { background-color: var(--dark-bg); }
.bg-darker { background-color: #0a0a0a; }

/* Container */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Spacing */
.section-padding {
    padding: 6rem 0;
}

.pt-nav {
    padding-top: 6rem;
}

/* ========================================
   WORDPRESS BLOCKS OVERRIDE
   ======================================== */
.wp-block-group {
    margin: 0;
}

.wp-block-columns {
    margin-bottom: 0;
}

.wp-block-button__link {
    border-radius: 0;
}

/* Ensure WordPress admin bar doesn't break fixed header */
.admin-bar .site-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px;
    }
}
