/* Import des polices depuis Google Fonts - Rajout de polices modernes */
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@300;400;500;600;700&family=Orbitron:wght@400;500;600;700;800;900&family=Exo+2:wght@100;200;300;400;500;600;700&display=swap');

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

/* Variables globales avec palette de couleurs sombre et spatiale */
:root {
    --primary-color: #00a6ed; /* Bleu clair spatial */
    --secondary-color: #0074a3; /* Bleu profond */
    --accent-color: #e74c3c; /* Rouge accent similaire à RSI */
    --neutral-accent: #ffcd45; /* Jaune/or pour accents spéciaux */
    
    --text-color: #eaeaea; /* Texte clair sur fond sombre */
    --text-muted: #a0a0a0; /* Texte atténué */
    
    --dark-bg-1: #0b0f14; /* Fond très sombre - presque noir */
    --dark-bg-2: #131c25; /* Fond sombre secondaire */
    --dark-bg-3: #1a2633; /* Fond un peu moins sombre pour contraste */
    
    --card-bg: rgba(19, 28, 37, 0.7); /* Fond semi-transparent pour les cartes */
    
    --glow-color: rgba(0, 166, 237, 0.5); /* Effet de lueur */
    
    --font-heading: 'Orbitron', sans-serif; /* Police futuriste pour titres */
    --font-subheading: 'Rajdhani', sans-serif; /* Police tech pour sous-titres */
    --font-body: 'Exo 2', sans-serif; /* Police principale pour le corps */
    
    --grid-gap: 1.5rem;
    --border-radius: 3px;
    --transition-speed: 0.3s;
}

/* Styles de base */
body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--dark-bg-1);
    background-image: url("../assets/images/Carrack-Airlock-Terminus_f.png");
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-blend-mode: color-burn;
    position: relative;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(11, 15, 20, 0.85);
    z-index: -1;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed) ease, text-shadow var(--transition-speed) ease;
}

a:hover {
    color: var(--neutral-accent);
    text-shadow: 0 0 8px var(--glow-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Header avec design inspiré de RSI */
.header {
    background-color: rgba(11, 15, 20, 0.9);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 166, 237, 0.2);
}

.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
}

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

/* Logo avec effet lumineux */
.logo-container {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    transition: transform var(--transition-speed) ease;
}

.logo-container:hover {
    transform: scale(1.05);
}

.logo {
    max-width: 180px;
    height: auto;
    display: block;
    filter: drop-shadow(0 0 5px var(--glow-color));
}

/* Menu de navigation avec styles technologiques */
.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-family: var(--font-subheading);
    font-weight: 500;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.5rem 0;
    position: relative;
    font-size: 0.95rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -3px;
    left: 0;
    background-color: var(--primary-color);
    box-shadow: 0 0 6px var(--glow-color);
    transition: width var(--transition-speed) ease;
}

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

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

/* Section hero avec esthétique sci-fi */
.hero {
    background: linear-gradient(135deg, rgba(11, 15, 20, 0.85), rgba(19, 28, 37, 0.75)), 
                url("../assets/images/Female-portrait-stars_f.png") no-repeat center/cover;
    color: white;
    padding: 8rem 0;
    text-align: center;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--primary-color), transparent);
    box-shadow: 0 0 15px var(--glow-color);
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.hero-logo {
    max-width: 280px;
    height: auto;
    filter: drop-shadow(0 0 10px var(--glow-color));
    animation: pulse 3s infinite;
}

@keyframes pulse {
    0% {
        filter: drop-shadow(0 0 5px var(--glow-color));
    }
    50% {
        filter: drop-shadow(0 0 15px var(--glow-color));
    }
    100% {
        filter: drop-shadow(0 0 5px var(--glow-color));
    }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(120deg, var(--text-color), var(--primary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0px 2px 10px rgba(0, 166, 237, 0.3);
}

.hero-subtitle {
    font-family: var(--font-subheading);
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.btn {
    font-family: var(--font-subheading);
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 2px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-speed) ease;
    border: 1px solid rgba(255,255,255,0.1);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.7s ease;
}

.btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 166, 237, 0.4);
    color: white;
}

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

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Sections de contenu avec style spatial */
.section {
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(11, 15, 20, 0.7);
    z-index: -1;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--text-color);
}

.section-subtitle {
    font-family: var(--font-subheading);
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-muted);
}

/* Cartes pour les caractéristiques avec effet holographique */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--grid-gap);
}

.feature-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 2rem;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    border: 1px solid rgba(0, 166, 237, 0.1);
    position: relative;
    overflow: hidden;
    z-index: 1;
    backdrop-filter: blur(5px);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(0, 166, 237, 0.03), transparent);
    z-index: -1;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 166, 237, 0.15);
    border-color: rgba(0, 166, 237, 0.3);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    text-align: center;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
    color: var(--text-color);
}

.feature-card p {
    color: var(--text-muted);
    font-size: 1rem;
    text-align: center;
}

/* Section CTA avec fond dynamique */
.cta-section {
    background: linear-gradient(135deg, rgba(0, 116, 163, 0.8), rgba(11, 15, 20, 0.9)),
                url("../assets/images/daymar.png") no-repeat center/cover;
    color: white;
    text-align: center;
    padding: 6rem 0;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Footer avec design futuriste */
.footer {
    background-color: var(--dark-bg-1);
    color: var(--text-color);
    padding: 4rem 0 2rem;
    position: relative;
    border-top: 1px solid rgba(0, 166, 237, 0.2);
}

.footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--primary-color), transparent);
    opacity: 0.6;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-logo {
    max-width: 150px;
    height: auto;
    margin-bottom: 1rem;
    filter: brightness(1.2) drop-shadow(0 0 5px var(--glow-color));
}

.footer-col p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-title {
    font-family: var(--font-subheading);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
    color: var(--text-color);
}

.footer-title::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    box-shadow: 0 0 6px var(--primary-color);
}

.footer-links {
    list-style: none;
}

.footer-link {
    margin-bottom: 0.8rem;
    opacity: 0.8;
    transition: opacity var(--transition-speed) ease;
}

.footer-link:hover {
    opacity: 1;
}

.footer-link a {
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: color var(--transition-speed) ease, padding-left var(--transition-speed) ease;
}

.footer-link a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.copyright {
    margin-top: 3rem;
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.85rem;
    opacity: 0.7;
}

/* Grille pour afficher les systèmes, planètes ou lunes */
.entity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--grid-gap);
    margin: 2rem 0;
}

.entity-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    border: 1px solid rgba(0, 166, 237, 0.1);
}

.entity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 166, 237, 0.2);
}

.entity-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid rgba(0, 166, 237, 0.2);
}

.entity-content {
    padding: 1.5rem;
}

.entity-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.entity-type {
    display: inline-block;
    background-color: rgba(0, 166, 237, 0.2);
    color: var(--primary-color);
    padding: 0.2rem 0.6rem;
    border-radius: 3px;
    font-size: 0.8rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.entity-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.entity-meta {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    font-size: 0.9rem;
}

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

/* Responsive design */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .logo-container {
        margin: 0 auto;
    }
    
    .nav {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 80%;
    }
}

@media (max-width: 500px) {
    .hero {
        padding: 4rem 0;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .entity-grid {
        grid-template-columns: 1fr;
    }
}
