/*
#################################################
#   Configurations globales & réinitialisation   #
#################################################
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-color: #06070d;
    --surface-color: #111420;
    --accent-color: #ff3333;
    --accent-glow: rgba(255, 51, 51, 0.3);
    --text-color: #e2e8f0;
    --text-muted: #8b949e;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/*
#####################################
#   Arrière plan étoilé permanent   #
#####################################
*/

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(white, rgba(255, 255, 255, .15) 1px, transparent 30px),
                radial-gradient(white, rgba(255, 255, 255, .1) 2px, transparent 40px);
    background-size: 350px 350px, 550px 550px;
    background-position: 0 0, 40px 60px;
    z-index: -1;
    opacity: 0.3;
}

/*
#############################
#   En-tête & navigation    #
#############################
*/

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem; /* Changement : padding haut/bas géré par la hauteur fixe */
    border-bottom: 1px solid rgba(255, 51, 51, 0.1);
    background: rgba(6, 7, 13, 0.95);
    backdrop-filter: blur(8px);
    position: fixed;
    top: 0;
    width: 100%;
    height: 70px; 
    z-index: 100;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-color);
    text-shadow: 0 0 10px var(--accent-glow);
}

nav {
    display: flex;
    align-items: center;
    height: 100%; /* Permet aux éléments enfants de s'aligner sur toute la hauteur */
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    margin-left: 1.5rem;
    transition: color 0.3s;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

nav a:hover {
    color: var(--accent-color);
}

/*
#####################################
#   Bandeau Réseaux Sociaux         #
#####################################
*/

.social-bar {
    position: fixed;
    top: 70px; 
    left: 0;
    width: 100%;
    height: 35px;
    background: rgba(11, 20, 32, 0.85);
    border-bottom: 1px solid rgba(255, 51, 51, 0.2);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0 2rem;
    z-index: 99;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s ease;
}

.social-links a:hover {
    color: var(--accent-color);
    text-shadow: 0 0 8px var(--accent-glow);
}

/*
###############################################################
#   Système du menu déroulant (CORRIGÉ : Plus de coupure)     #
###############################################################
*/

.dropdown {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%; /* Occupe toute la hauteur du header pour stabiliser le survol */
}

.dropdown-trigger {
    cursor: pointer;
}

.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%; /* Démarre pile au pixel près sous le header */
    background: rgba(17, 20, 32, 0.95);
    border: 1px solid rgba(255, 51, 51, 0.3);
    border-top: 2px solid var(--accent-color);
    min-width: 220px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 200;
    border-radius: 0 0 4px 4px;
    padding: 0.5rem 0;
}

/* Pont invisible pour sécuriser la liaison avec le bandeau réseaux sociaux */
.dropdown::before {
    content: "";
    position: absolute;
    top: 100%;
    left: -50px;
    width: calc(100% + 50px);
    height: 40px; /* Couvre l'espace jusqu'au menu à travers la barre sociale */
    background: transparent;
    display: none;
    z-index: 150;
}

.dropdown:hover::before {
    display: block;
}

.dropdown-menu a {
    display: block;
    color: var(--text-color);
    padding: 0.7rem 1.5rem;
    margin: 0;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: all 0.2s ease;
    text-align: left;
}

.dropdown-menu a:hover {
    background: rgba(255, 51, 51, 0.1);
    color: var(--accent-color);
    padding-left: 1.8rem;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

/*
#############################################
#   Structure de page & composants généraux #
#############################################
*/

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.secondary-page-container {
    padding-top: 11rem !important;
}

/*
#########################
#   Sections standards  #
#########################
*/

.about-section {
    background: rgba(17, 20, 32, 0.6);
    border: 1px solid rgba(255, 51, 51, 0.1);
    padding: 3rem;
    border-radius: 4px;
    margin-bottom: 4rem;
}

.about-section h2 {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.about-section h3 {
    color: #fff;
    margin: 2rem 0 0.5rem 0;
    text-transform: uppercase;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

/*
#########################
#   Bouton principal    #
#########################
*/

.btn-join {
    display: inline-block;
    background: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px var(--accent-glow);
    text-decoration: none;
}

.btn-join:hover {
    background: var(--accent-color);
    color: #000;
    box-shadow: 0 0 25px var(--accent-color);
}

footer {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: #04050a;
}

/*
#################################
#   Page d'accueil (index.html) #
#################################
*/

.sticky-scroll-container {
    height: 350vh;
    position: relative;
    background-color: var(--bg-color);
}

.sticky-wrapper {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.intro-logo {
    position: absolute;
    max-width: 600px;
    width: 75%;
    height: auto;
    opacity: 0.08;
    z-index: 1;
    pointer-events: none;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.05));
    transition: opacity 0.5s ease;
}

.words-stack {
    position: relative;
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.scrolling-word {
    position: absolute;
    font-size: 6rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 12px;
    color: #fff;
    opacity: 0;
    transform: scale(0.4);
    transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
    filter: blur(15px);
    pointer-events: none;
    white-space: nowrap;
    padding-left: 12px;
}

.scrolling-word.w-1 { --w-color: #ff3333; }
.scrolling-word.w-2 { --w-color: #ff8800; }
.scrolling-word.w-3 { --w-color: #ffffff; }

.scrolling-word.active {
    opacity: 1;
    transform: scale(1);
    filter: blur(0px);
    color: var(--w-color);
    text-shadow: 0 0 40px var(--w-color);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    animation: pulse 2s infinite;
    z-index: 2;
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(5px); }
}

.hero {
    text-align: center;
    padding: 14rem 2rem 6rem 2rem;
    max-width: 800px;
    margin: 0 auto;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-logo {
    max-width: 250px;
    width: 50%;
    height: auto;
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 25px rgba(255, 51, 51, 0.25));
}

.hero h1 {
    font-size: 4rem;
    text-transform: uppercase;
    letter-spacing: 6px;
    margin-bottom: 1.5rem;
    color: #fff;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

.hero p {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.divisions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin: 3rem 0 5rem 0;
}

.card {
    background: var(--surface-color);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-top: 3px solid var(--accent-color);
    padding: 2.5rem 2rem;
    border-radius: 4px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.7);
}

.card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.5rem;
}

/*
#########################################
#   Page notre histoire (story.html)    #
#########################################
*/

.page-title {
    text-align: center;
    margin-bottom: 4rem;
}

.page-title h1 {
    font-size: 3rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: #fff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
    margin-bottom: 1rem;
}

.page-title p {
    color: var(--accent-color);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.history-section h2 {
    color: #fff;
    font-size: 1.6rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 51, 51, 0.2);
    padding-bottom: 0.5rem;
}

.history-section p {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    text-align: justify;
}

.propaganda-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    margin: 2rem 0;
    background: rgba(255, 51, 51, 0.03);
    border-left: 4px solid var(--accent-color);
}

.propaganda-img {
    max-width: 100%;
    height: auto;
    max-height: 550px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.quote-container {
    padding: 1.5rem;
    margin: 1.5rem 0;
    background: rgba(255, 51, 51, 0.02);
    border-left: 3px solid var(--text-muted);
    font-style: italic;
}

.quote-container p {
    font-size: 1rem;
    color: #cbd5e1;
    margin: 0;
    text-align: left;
}

.btn-back {
    display: inline-block;
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--text-muted);
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    margin-top: 2rem;
}

.btn-back:hover {
    color: #fff;
    border-color: #fff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

/*
#########################
#   Design Mobile       #
#########################
*/

@media (max-width: 768px) {
    body {
        scroll-behavior: auto;
    }

    header {
        flex-direction: column;
        gap: 1rem;
        position: static;
        height: auto;
    }

    .social-bar {
        position: static;
        justify-content: center;
        height: auto;
        padding: 0.5rem;
    }

    .secondary-page-container {
        padding-top: 2rem !important;
    }

    nav {
        flex-direction: column;
        width: 100%;
        gap: 0.8rem;
    }

    nav a {
        margin-left: 0;
    }

    .dropdown {
        display: block;
        width: 100%;
        text-align: center;
        height: auto;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.02);
        border: none;
        border-left: 2px solid var(--accent-color);
        margin-top: 0.5rem;
        width: 100%;
    }

    .dropdown-menu a {
        text-align: center;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .scrolling-word {
        font-size: 3rem;
        letter-spacing: 6px;
    }

    .about-section, .history-section {
        padding: 1.5rem;
    }

    .intro-logo {
        max-width: 250px;
    }

    .page-title h1 {
        font-size: 2rem;
    }
}