/*
Theme Name: La Confrérie
Theme URI: https://laconfrerie-escapegame.fr
Description: Thème custom pour La Confrérie Escape Game
Version: 1.0.0
Author: La Confrérie
Text Domain: laconferie
*/

/* ===== CSS Variables ===== */

:root {
    --font-heading: 'Cinzel', ui-serif, Georgia, Cambria, 'Times New Roman', Times, serif;
    --font-body: 'Inter', ui-sans-serif, system-ui, sans-serif;
    --font-mono: 'Fira Code', ui-monospace, SFMono-Regular, monospace;

    --color-bg-primary: #000000;
    --color-bg-secondary: #0a0a0a;
    --color-bg-card: #141414;
    --color-bg-elevated: #1a1a1a;

    --color-text-primary: #FCFBFB;
    --color-text-secondary: #9B9B9B;
    --color-text-muted: #666666;

    --color-gold: #EEB56A;
    --color-gold-light: #f5cb8a;
    --color-gold-dark: #c4944a;

    --color-blood: #5F0A0B;
    --color-blood-light: #7a1415;

    --color-border: #222222;
    --color-border-gold: rgba(238, 181, 106, 0.3);
    --color-glow-gold: rgba(238, 181, 106, 0.15);
}

/* ===== Keyframes ===== */

@keyframes dust-float {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

@keyframes mist-drift {
    0%, 100% { transform: translateX(-10%) scaleX(1.1); opacity: 0.3; }
    50% { transform: translateX(10%) scaleX(1); opacity: 0.5; }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(238, 181, 106, 0.1); }
    50% { box-shadow: 0 0 40px rgba(238, 181, 106, 0.25); }
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
    75% { opacity: 0.95; }
}

/* ===== Base ===== */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

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

::selection {
    background-color: var(--color-gold);
    color: var(--color-bg-primary);
}

::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: var(--color-gold-dark);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-gold);
}

h1, h2, h3 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

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

/* ===== Layout ===== */

.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.site-main {
    min-height: 100vh;
}

/* ===== Components — Buttons ===== */

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #EEB56A 0%, #c4944a 100%);
    color: #000;
    box-shadow: 0 4px 15px rgba(238, 181, 106, 0.3);
}
.btn-primary:hover {
    box-shadow: 0 6px 25px rgba(238, 181, 106, 0.5);
    filter: brightness(1.1);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--color-gold);
    font-weight: 600;
    border-radius: 0.5rem;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--color-gold);
    position: relative;
    overflow: hidden;
}
.btn-secondary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--color-gold);
    transform: translateX(-101%);
    transition: transform 0.4s ease;
}
.btn-secondary:hover::before {
    transform: translateX(0);
}
.btn-secondary:hover {
    color: #000;
}
.btn-secondary span {
    position: relative;
    z-index: 1;
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--color-text-secondary);
    transition: color 0.2s ease;
}
.btn-ghost:hover {
    color: var(--color-gold);
}

/* ===== Components — Card ===== */

.card {
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 0.75rem;
    transition: all 0.5s ease;
    will-change: transform;
}
.card:hover {
    border-color: rgba(238, 181, 106, 0.3);
    box-shadow: 0 8px 40px rgba(238, 181, 106, 0.08), 0 0 0 1px rgba(238, 181, 106, 0.1);
}

/* ===== Components — Section Title ===== */

.section-title {
    font-size: 1.875rem;
    font-family: var(--font-heading);
    color: var(--color-text-primary);
    text-align: center;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-shadow: 0 0 40px rgba(238, 181, 106, 0.1);
}

/* ===== Components — Effects ===== */

.gold-glow {
    box-shadow: 0 0 30px var(--color-glow-gold);
    animation: pulse-glow 3s ease-in-out infinite;
}

.shimmer-text {
    background: linear-gradient(
        110deg,
        #EEB56A 0%,
        #f5cb8a 20%,
        #FCFBFB 40%,
        #f5cb8a 60%,
        #EEB56A 80%,
        #c4944a 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 4s linear infinite;
}

/* ===== Components — Reveal Animations ===== */

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal-scale.visible {
    opacity: 1;
    transform: scale(1);
}

/* ===== Components — Decorative ===== */

.dust-particle {
    position: absolute;
    bottom: -10px;
    border-radius: 50%;
    background: radial-gradient(circle, #EEB56A, transparent);
    animation: dust-float 6s ease-in-out infinite;
    pointer-events: none;
}

.mist-layer {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 80%, rgba(95, 10, 11, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(238, 181, 106, 0.05) 0%, transparent 60%);
    animation: mist-drift 20s ease-in-out infinite;
    pointer-events: none;
}

.vignette {
    position: relative;
}
.vignette::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.6) 100%);
    pointer-events: none;
}

.blood-accent {
    position: relative;
}
.blood-accent::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    margin: 16px auto 0;
    background: linear-gradient(90deg, transparent, #5F0A0B, #7a1415, #5F0A0B, transparent);
    border-radius: 2px;
}

.divider-ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 3rem 0;
    color: var(--color-gold-dark);
    font-size: 0.75rem;
    letter-spacing: 0.3em;
}
.divider-ornament::before,
.divider-ornament::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-border), transparent);
}

.img-zoom {
    overflow: hidden;
}
.img-zoom img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.img-zoom:hover img {
    transform: scale(1.08);
}

.star-gold {
    color: #EEB56A;
    text-shadow: 0 0 8px rgba(238, 181, 106, 0.4);
}

/* ===== Header ===== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    background-color: transparent;
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
    padding: 1rem 0;
}
.site-header.scrolled {
    background-color: rgba(0, 0, 0, 0.85);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

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

.site-header .logo {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.site-header .desktop-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.site-header nav a {
    color: var(--color-text-primary);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.5rem 0.75rem;
    transition: color 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
}
.site-header nav a:hover,
.site-header nav a.active {
    color: var(--color-gold);
}

/* ===== Mobile Menu ===== */

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-gold);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background-color: rgba(10, 10, 10, 0.98);
    z-index: 100;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 5rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.mobile-menu.open {
    transform: translateX(0);
}

.mobile-menu a {
    display: block;
    color: var(--color-text-secondary);
    font-family: var(--font-heading);
    font-size: 1.125rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-border);
    transition: color 0.3s ease;
}
.mobile-menu a:hover {
    color: var(--color-gold);
}

.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
.mobile-menu-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* ===== Footer ===== */

.site-footer {
    background-color: var(--color-bg-secondary);
    border-top: 1px solid var(--color-border);
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

.site-footer .footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.site-footer h4 {
    font-family: var(--font-heading);
    color: var(--color-gold);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
}

.site-footer a {
    color: var(--color-text-secondary);
    font-size: 0.875rem;
    transition: color 0.3s ease;
    display: block;
    padding: 0.25rem 0;
}
.site-footer a:hover {
    color: var(--color-gold);
}

.footer-heading {
    font-family: var(--font-heading);
    color: var(--color-gold);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.footer-links a {
    text-decoration: none;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    color: var(--color-text-secondary);
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-social a:hover {
    border-color: var(--color-gold);
    color: var(--color-gold);
}

.site-footer .footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
    color: var(--color-text-muted);
    font-size: 0.8125rem;
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a {
    color: var(--color-text-muted);
    font-size: 0.8125rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--color-gold);
}

/* ===== Page-specific — Hero ===== */

.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: 2rem 1.5rem;
}

.hero-section .hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-section .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.7) 100%);
}

.hero-section .hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-section p {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== Page-specific — Scenario Card ===== */

.scenario-card {
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.5s ease;
}
.scenario-card:hover {
    border-color: var(--color-border-gold);
    box-shadow: 0 8px 40px rgba(238, 181, 106, 0.08);
    transform: translateY(-4px);
}

.scenario-card .scenario-image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}
.scenario-card .scenario-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.scenario-card:hover .scenario-image img {
    transform: scale(1.08);
}

.scenario-card .scenario-body {
    padding: 1.5rem;
}
.scenario-card .scenario-body h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--color-gold);
}
.scenario-card .scenario-body p {
    color: var(--color-text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* ===== Page-specific — FAQ ===== */

.faq-item {
    border-bottom: 1px solid var(--color-border);
    padding: 1.25rem 0;
}

.faq-item summary,
.faq-item .faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-primary);
    transition: color 0.3s ease;
    list-style: none;
}
.faq-item summary:hover,
.faq-item .faq-question:hover {
    color: var(--color-gold);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item .faq-answer {
    padding-top: 1rem;
    color: var(--color-text-secondary);
    font-size: 0.9375rem;
    line-height: 1.7;
}

/* ===== Page-specific — Avis Card ===== */

.avis-card {
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: all 0.5s ease;
}
.avis-card:hover {
    border-color: var(--color-border-gold);
}

.avis-card .avis-stars {
    margin-bottom: 0.75rem;
}

.avis-card .avis-text {
    color: var(--color-text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
    font-style: italic;
    margin-bottom: 1rem;
}

.avis-card .avis-author {
    color: var(--color-text-muted);
    font-size: 0.8125rem;
}

/* ===== Page-specific — Contact Form ===== */

.contact-form {
    max-width: 640px;
    margin: 0 auto;
}

.contact-form label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-secondary);
    margin-bottom: 0.5rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: 0.5rem;
    color: var(--color-text-primary);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    margin-bottom: 1.25rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px var(--color-glow-gold);
}

.contact-form textarea {
    min-height: 140px;
    resize: vertical;
}

/* ===== Responsive ===== */

@media (min-width: 768px) {
    .section-title {
        font-size: 2.25rem;
    }

    .hero-section h1 {
        font-size: 3.5rem;
    }

    .container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

@media (min-width: 1024px) {
    .section-title {
        font-size: 3rem;
    }

    .hero-section h1 {
        font-size: 4.5rem;
    }
}

@media (max-width: 767px) {
    .mobile-menu-toggle {
        display: block;
    }

    .site-header .desktop-nav {
        display: none;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section p {
        font-size: 1rem;
    }

    .site-footer .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Utilities ===== */

.text-gold {
    color: var(--color-gold);
}

.text-muted {
    color: var(--color-text-muted);
}

.font-heading {
    font-family: var(--font-heading);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
