/*
#################################################
#   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;

    /* RECONSTRUCTION FORCE-STICKY FOOTER */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/*
#####################################
#   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;
}

/*
#####################
#   header & nav    #
#####################
*/

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    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;
    background: linear-gradient(to right, #fff, var(--text-muted));
    -webkit-background-clip: text;
    background-clip: text; /* Résout le warning de l'image_4464a5.png */
    -webkit-text-fill-color: transparent;
    color: var(--text-color);
    text-shadow: 0 0 10px var(--accent-glow);
}

nav {
    display: flex;
    align-items: center;
    height: 100%;
}

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);
}

/*
#################################
#   dropdown (menu déroulant)   #
#################################
*/

.dropdown {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}

.dropdown-trigger {
    cursor: pointer;
}

.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    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;
}

.dropdown::before {
    content: "";
    position: absolute;
    top: 100%;
    left: -50px;
    width: calc(100% + 50px);
    height: 40px;
    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;
}

/*
#################
#   social-bar  #
#################
*/

.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;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.social-links a i {
    font-size: 0.95rem;
    transition: transform 0.2s ease, color 0.2s ease;
}

.social-links a:hover {
    color: var(--text-color);
}

.social-links a:hover i {
    color: var(--accent-color);
    transform: scale(1.15);
    text-shadow: 0 0 8px var(--accent-glow);
}

/* Gestion de l'icône native RSI préservée */
.social-links a .social-icon-native {
    height: 16px;
    width: 16px;
    object-fit: contain;
    border-radius: 3px;
    display: inline-block;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.social-links a:hover .social-icon-native {
    transform: scale(1.15);
    filter: drop-shadow(0 0 5px var(--accent-color));
}

.social-links a:hover span {
    color: var(--accent-color);
    text-shadow: 0 0 8px var(--accent-glow);
}

/*
#############################################
#   Structure de page & composants généraux #
#############################################
*/

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    flex: 1;
}

.secondary-page-container {
    padding-top: 11rem !important;
    flex: 1;
}

/*
#########################
#   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;
}

/*
#############################
#   sticky-scroll-container #
#############################
*/

.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: #FFFFFF; }
.scrolling-word.w-2 { --w-color: #FFFFFF; }
.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); }
}

/*
#####################
#   section hero    #
#####################
*/

.hero {
    position: relative;
    min-height: 75vh; /* CADRE PLUS GRAND : Augmente la hauteur de la section à 75% de l'écran (ajustez à 80vh ou 100vh selon vos goûts) */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 6rem 2rem; /* Donne de l'espace interne supplémentaire en haut et en bas */
    
    /* GESTION DE L'IMAGE DE FOND */
    background-image: 
        linear-gradient(to bottom, rgba(6, 7, 13, 0.4), rgba(6, 7, 13, 0.85)), /* Dégradé sombre pour préserver le contraste du texte */
        url('../imgs/tears.png'); /* Votre image insérée ici */
    
    background-size: cover;      /* L'image s'ajuste dynamiquement pour remplir tout l'espace sans se déformer */
    background-position: center;  /* Centre l'image verticalement et horizontalement */
    background-repeat: no-repeat;
    
    /* Optionnel : L'effet parallaxe se marie à la perfection avec l'espace de Star Citizen */
    background-attachment: fixed;
}

.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;
}

/*
#########################
#   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);
}

/*
#########################
#   section divisions   #
#########################
*/

.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;
}

/*
#############
#   Footer  #
#############
*/

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;
    width: 100%;
}

/*
#####################
#   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;
    }
}