@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700;900&family=Courier+Prime:wght@400;700&family=Outfit:wght@300;400;700&display=swap');

:root {
    --color-bg: #050505;
    --color-primary: #1a3a1a;
    --color-primary-dark: #0f1f0f;
    --color-accent: #e5c100;
    /* Gold polished */
    --color-accent-glow: rgba(229, 193, 0, 0.4);
    --color-text: #e0e0e0;
    --color-text-muted: #a0a0a0;
    --color-danger: #ff4d4d;

    --font-heading: 'Cinzel', serif;
    --font-body: 'Outfit', sans-serif;
    --font-mono: 'Courier Prime', monospace;

    --glass-bg: rgba(20, 20, 20, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: blur(12px);
}

html {
    scroll-behavior: smooth;
}

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

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

/* Typography Overrides */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

/* Utilities */
.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;
}

/* Glassmorphism Card Utils */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    border-radius: 8px;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 40px;
    display: grid;
    grid-template-columns: 100px 1fr 100px;
    align-items: center;
    z-index: 1000;
    transition: background 0.3s, padding 0.3s;
}

nav.scrolled {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    padding: 10px 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-brand img {
    height: 60px;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
    transition: transform 0.3s;
}

.nav-brand img:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 40px;
    justify-content: center;
}

.nav-links a {
    color: #fff;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-accent);
    transition: width 0.3s;
    box-shadow: 0 0 8px var(--color-accent);
}

.nav-links a:hover {
    color: var(--color-accent);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Mobile Nav */
.mobile-menu-btn {
    display: none;
    color: #fff;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

@media (max-width: 768px) {
    nav {
        display: flex;
        justify-content: space-between;
        padding: 15px 20px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: #0a0a0a;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border-left: 1px solid #222;
        gap: 30px;
    }

    .nav-links.active {
        right: 0;
    }

    .mobile-menu-btn {
        display: block;
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 40px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    font-size: 14px;
}

.btn-primary {
    background: transparent;
    color: #fff;
    border: 1px solid var(--color-accent);
    box-shadow: 0 0 15px rgba(229, 193, 0, 0.1);
}

.btn-primary:hover {
    background: var(--color-accent);
    color: #000;
    box-shadow: 0 0 30px var(--color-accent-glow);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

/* Common Layouts */
.section {
    min-height: 100vh;
    padding: 100px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.text-center {
    text-align: center;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-40 {
    margin-bottom: 40px;
}

/* Footer */
footer {
    background: #020202;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 60px 20px;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-links a:hover {
    color: var(--color-accent);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes blink {

    0%,
    95%,
    100% {
        opacity: 1;
    }

    97% {
        opacity: 0;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Particles */
.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    pointer-events: none;
}

/* Scroll Animation Class */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, visibility;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Game Flow / Timeline */
.flow-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 800px;
    margin: 50px auto;
    position: relative;
}

.flow-step {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    position: relative;
}

.flow-number {
    width: 50px;
    height: 50px;
    background: var(--color-accent);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: bold;
    flex-shrink: 0;
    box-shadow: 0 0 15px var(--color-accent-glow);
}

.flow-content {
    background: rgba(255, 255, 255, 0.03);
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    flex: 1;
}

/* Role Cards */
.roles-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.role-card {
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.8), rgba(10, 10, 10, 0.9));
    border: 1px solid rgba(229, 193, 0, 0.2);
    padding: 30px;
    text-align: center;
    transition: all 0.4s ease;
    cursor: pointer;
}

.role-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.role-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
}

/* Press Quotes */
.press-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.press-quote {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: #888;
    border-left: 2px solid var(--color-accent);
    padding-left: 20px;
    text-align: left;
}


.press-source {
    margin-top: 15px;
    color: var(--color-accent);
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
}

/* Back Link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--color-accent);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    margin-bottom: 30px;
    transition: transform 0.3s ease;
    z-index: 100;
    position: relative;
}

.back-link:hover {
    transform: translateX(-5px);
    color: #fff;
}

/* Hero Legal */
.hero-legal {
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    background: linear-gradient(to bottom, #000, var(--color-bg));
    position: relative;
    overflow: hidden;
}

.hero-legal h1 {
    z-index: 20;
    position: relative;
}
/* --- RÉGLAGE PERSONNALISÉ DU TITRE --- */
#titre-jeu-fixe {
    font-family: var(--font-heading); /* Utilise la police Cinzel du site */
    color: var(--color-accent) !important; /* Couleur dorée comme tes boutons */
    font-size: 14px !important; /* <<< MODIFIE CE CHIFFRE POUR LA TAILLE */
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin: 80px 0 20px 0; /* 80px pour passer sous la barre de navigation */
    display: block;
    width: 100%;
}
/* --- FIX FINAL : AFFICHAGE DES IMAGES DANS LE MODAL --- */

/* 1. On force l'opacité à 1 pour tout ce qui est dans le modal */
#dossier-modal .slide, 
#dossier-modal .slide-visual, 
#dossier-modal .evidence-img {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important; /* Annule le décalage de 30px du fade-in */
}

/* 2. On s'assure que le conteneur ne cache pas l'image */
.slide-visual {
    width: 100%;
    height: 70vh; /* Ajuste la hauteur pour laisser de la place au texte */
    display: flex !important;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.03); /* Optionnel : léger fond pour voir la zone */
}

.evidence-img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain; /* Garde les proportions de l'image */
    border: 3px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 3px rgba(0,0,0,0.8);
}

/* 3. On remonte les boutons pour qu'ils ne soient pas masqués */
.close-btn, .fullscreen-btn {
    z-index: 10010 !important;
}
