/* --- GLOBAL CONFIGURATION --- */
/* 1. D'abord, on charge la police (Indispensable) */
@font-face {
    font-family: 'Coolvetica'; 
    /* Mettez ici le nom EXACT de votre fichier de police */
    /* Si c'est un .ttf, changez format('opentype') en format('truetype') */
    src: url('coolvetica-it.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

/* 2. Ensuite, on modifie le body */
body {
    margin: 0;
    padding: 0;
    /* Primary Color (Dark Navy) */
    background-color: #0A1A2F; 
    
    /* On applique Coolvetica ici. Si elle ne charge pas, ça reviendra à Segoe UI */
    font-family: 'Coolvetica', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    
    color: #e0e0e0;
    overflow-x: hidden;
}

/* --- NAVIGATION & DROPDOWN MENU --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 70px;
    /* Adjusted to match Primary Color with transparency */
    background: rgba(255, 255, 255, 0.9); 
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    box-sizing: border-box;
    z-index: 1000;
    border-bottom: 1px solid #333;
}

.logo img {
            height: 50px; /* Ajusté pour s'intégrer dans la navbar de 70px */
            width: auto;
            object-fit: contain;
        }

/* Hamburger Button */
.hamburger-menu {
    cursor: pointer;
    z-index: 1002;
}

.hamburger-menu .bar {
    width: 30px;
    height: 3px;
    background-color: rgb(0, 0, 0);
    margin: 6px 0;
    transition: 0.4s;
}

/* Animation */
.hamburger-menu.toggle .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
    /* Secondary Color */
    background-color: #5BC0EB; 
}
.hamburger-menu.toggle .bar:nth-child(2) {
    opacity: 0;
}
.hamburger-menu.toggle .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
    /* Secondary Color */
    background-color: #5BC0EB; 
}

/* Fullscreen Menu */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: #050e1a; /* Slightly darker than body */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.5s ease-in-out;
    z-index: 1001;
}

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

.nav-links {
    list-style: none;
    text-align: center;
    padding: 0;
}

.nav-links li {
    margin: 30px 0;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 2rem;
    font-weight: bold;
    text-transform: uppercase;
    transition: 0.3s;
}

.nav-links a:hover {
    /* Secondary Color */
    color: #5BC0EB; 
    letter-spacing: 2px;
}

/* Login Link */
.login-link {
    /* Secondary Color Border */
    border: 2px solid #5BC0EB; 
    padding: 10px 30px;
    border-radius: 50px;
}
.login-link:hover {
    /* Secondary Color Background */
    background-color: #5BC0EB; 
    color: #0A1A2F !important; /* Dark Text for contrast */
}

/* --- HERO SECTION --- */
.hero-section {
    background-image: linear-gradient(rgba(10, 26, 47, 0.7), rgba(10, 26, 47, 0.7)), url('https://wallpapercave.com/wp/wp4918177.jpg');
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    /* Secondary Color */
    border-bottom: 4px solid #5BC0EB; 
    margin-top: 0;
}

.hero-section h1 {
    font-size: 4rem;
    margin-bottom: 10px;
    /* Secondary Color Glow */
    text-shadow: 0 0 20px rgba(91, 192, 235, 0.6); 
    color: white;
    text-transform: uppercase;
}

.hero-section p {
    font-size: 1.5rem;
    color: #aebbf2;
    font-weight: 300;
}

.cta-button {
    margin-top: 30px;
    padding: 15px 50px;
    /* Secondary Color */
    background-color: #5BC0EB; 
    color: #0A1A2F; /* Dark text for better contrast */
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    transition: 0.3s;
    /* Secondary Color Shadow */
    box-shadow: 0 0 15px rgba(91, 192, 235, 0.4); 
    border: 1px solid #5BC0EB;
    display: inline-block;
}

.cta-button:hover {
    background: transparent;
    color: #5BC0EB;
    box-shadow: 0 0 25px rgba(91, 192, 235, 0.8);
}

/* --- TITLES --- */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin: 80px 0 40px 0;
    color: white;
    position: relative;
    text-transform: uppercase;
}
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    /* Secondary Color */
    background: #5BC0EB; 
    margin: 10px auto;
}

/* --- CAREER SECTION --- */
.ranks-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}
.rank-card {
    background: #13243a; /* Slightly lighter navy for cards */
    border-left: 5px solid #234063;
    margin-bottom: 20px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: 0.3s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.rank-card:hover {
    transform: translateX(10px);
    /* Secondary Color */
    border-left-color: #5BC0EB; 
    background: #172d47;
}
.rank-info h3 { margin: 0 0 5px 0; color: white; }
.rank-info span { color: #888; font-size: 0.9rem; text-transform: uppercase; }
.rank-details { text-align: right; color: #bbb; }
/* Secondary Color */
.rank-details strong { color: #5BC0EB; } 

/* --- FLEET SECTION --- */
.fleet-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}
.fleet-card {
    background: #13243a;
    border-radius: 8px;
    overflow: hidden;
    width: 350px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
    /* Secondary Color */
    border-bottom: 3px solid #5BC0EB; 
}
.fleet-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid #234063;
}
.fleet-info { padding: 20px; }
.fleet-info h3 { color: white; text-align: center; margin-bottom: 15px; margin-top:0;}
.spec-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.spec-table td { padding: 8px 0; border-bottom: 1px solid #234063; color: #ccc; }
.spec-table td:last-child { text-align: right; font-weight: bold; color: #fff; }

/* --- REQUIREMENTS SECTION --- */
.requirements-wrapper {
    max-width: 800px;
    margin: 60px auto;
    background-color: #13243a;
    border-radius: 6px;
    border: 1px solid #234063;
    overflow: hidden;
}
.req-header {
    /* Secondary Color */
    color: #5BC0EB; 
    padding: 15px 25px;
    font-size: 1.5rem;
    font-weight: bold;
    border-bottom: 1px solid #234063;
}
.req-body { padding: 25px; background-color: #172d47; }
.req-intro {
    color: #bbb; margin-bottom: 25px; font-style: italic;
    /* Secondary Color */
    border-left: 3px solid #5BC0EB; 
    padding-left: 15px;
}
.req-list { list-style: none; padding: 0; margin: 0; }
.req-list li {
    padding: 12px 0; border-bottom: 1px solid #234063;
    display: flex; align-items: center;
}
/* Secondary Color */
.checkmark { color: #5BC0EB; font-weight: bold; margin-right: 15px; font-size: 1.2rem; }

/* --- GOOGLE FORM --- */
.google-form-wrapper {
    max-width: 800px;
    margin: 40px auto;
    background-color: #13243a;
    border: 1px solid #234063;
    border-radius: 6px;
    overflow: hidden;
}
.form-header {
    background-color: #050e1a;
    padding: 15px;
    text-align: center;
    /* Secondary Color */
    border-bottom: 2px solid #5BC0EB; 
}
.form-header h3 { color: white; margin: 0; }
.form-container { background-color: white; }
iframe { display: block; border: none; }

/* --- HUB & FOOTER --- */
.hub-section {
    margin-top: 60px;
    background-image: linear-gradient(rgba(10, 26, 47, 0.3), rgba(10, 26, 47, 0.9)), url('https://upload.wikimedia.org/wikipedia/commons/f/fc/Copenhagen_airport_from_air.jpg'); 
    background-size: cover;
    background-position: center;
    height: 400px;
    display: flex; align-items: flex-end; padding: 40px;
    /* Secondary Color */
    border-top: 2px solid #5BC0EB; 
}
.hub-section2 {
    margin-top: 60px;
    background-image: linear-gradient(rgba(10, 26, 47, 0.3), rgba(10, 26, 47, 0.9)), url('https://vinci-airports.com/wp-content/uploads/2024/07/Aeroport-Lyon-Saint-Exupery.png'); 
    background-size: cover;
    background-position: center;
    height: 400px;
    display: flex; align-items: flex-end; padding: 40px;
    /* Secondary Color */
    border-top: 2px solid #5BC0EB; 
}
.hub-content {
    background: rgba(10, 26, 47, 0.8);
    /* Secondary Color */
    padding: 30px; border-left: 4px solid #5BC0EB; 
    max-width: 600px; backdrop-filter: blur(5px);
}
.hub-content h2 { color: white; margin-top:0; }
.hub-content p { color: #ddd; margin: 0; }
.footer {
    text-align: center; padding: 40px;
    background: #050e1a; color: #555; font-size: 0.8rem;
}
/* --- NEWSKY LIVE OPS SECTION --- */
.newsky-section {
    max-width: 1000px;
    margin: 60px auto;
    padding: 0 20px;
}

.newsky-container {
    background: #13243a;
    border: 1px solid #234063;
    border-radius: 8px;
    overflow: hidden;
    /* Pop! Airways Secondary Color Border */
    border-top: 4px solid #5BC0EB;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.newsky-header {
    background: #050e1a;
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #234063;
}

.newsky-logo {
    height: 30px;
    filter: brightness(0) invert(1); /* Rend le logo blanc */
}

.newsky-header span {
    font-size: 0.8rem;
    color: #5BC0EB;
    font-weight: bold;
    letter-spacing: 1px;
}

.flight-board {
    padding: 25px;
    min-height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: radial-gradient(#172d47 1px, transparent 1px);
    background-size: 20px 20px;
}

#flights-table {
    width: 100%;
    border-collapse: collapse;
    color: #e0e0e0;
}

#flights-table th {
    text-align: left;
    color: #888;
    font-size: 0.8rem;
    border-bottom: 2px solid #5BC0EB;
    padding-bottom: 10px;
}

#flights-table td {
    padding: 15px 0;
    border-bottom: 1px solid #234063;
}

.status-badge {
    background-color: rgba(91, 192, 235, 0.2);
    color: #5BC0EB;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    border: 1px solid #5BC0EB;
}

#loading-status {
    color: #aaa;
    font-style: italic;
    animation: pulse 1.5s infinite;
}

.newsky-actions {
    padding: 20px;
    text-align: center;
    background: #0d1f35;
    border-top: 1px solid #234063;
}

.small-btn {
    padding: 10px 30px;
    font-size: 0.9rem;
    margin-top: 0; /* Override previous margin */
}

@keyframes pulse {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}
/* --- ROUTES SECTION --- */
.routes-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.route-region-card {
    background: #13243a;
    border: 1px solid #234063;
    border-radius: 8px;
    padding: 25px;
    width: 300px; /* Standard width */
    flex-grow: 1;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    border-top: 4px solid #5BC0EB; /* Pop! Secondary Color */
    transition: transform 0.3s;
}

.route-region-card:hover {
    transform: translateY(-5px);
}

/* Make the Europe card wider to fit 2 columns */
.wide-card {
    min-width: 350px; 
    flex-grow: 2;
}

.region-header {
    border-bottom: 2px solid #234063;
    padding-bottom: 15px;
    margin-bottom: 20px;
    text-align: center;
}

.region-header h3 {
    color: #fff;
    margin: 0;
    font-size: 1.4rem;
    letter-spacing: 1px;
}

.region-header span {
    color: #5BC0EB;
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: bold;
}

.sub-region {
    color: #888;
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-top: 20px;
    margin-bottom: 10px;
    border-bottom: 1px solid #234063;
    display: inline-block;
}

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

.dest-list li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(35, 64, 99, 0.5);
    color: #e0e0e0;
    font-size: 1rem;
    display: flex;
    justify-content: space-between;
}

.dest-list li:last-child {
    border-bottom: none;
}

/* 2 Column layout for long lists (Europe) */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
}

.icao {
    color: #5BC0EB;
    font-weight: bold;
    font-size: 0.85rem;
    background: rgba(91, 192, 235, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
}



/* --- PAGE 404 (ERROR) --- */

/* Appliqué uniquement au body de la page 404 pour empêcher le scroll */
.page-404 {
    overflow: hidden;
    margin: 0;
}

.error-section {
    height: 100vh;
    width: 100%;
    /* On reprend l'image de fond du thème */
    background-image: linear-gradient(rgba(10, 26, 47, 0.9), rgba(10, 26, 47, 0.8)), url('https://wallpapercave.com/wp/wp4918177.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

.top-logo {
    position: absolute;
    top: 30px;
    width: 150px;
    opacity: 0.8;
}

.error-code {
    font-size: 10rem;
    font-weight: bold;
    line-height: 1;
    margin: 0;
    color: #5BC0EB; /* Cyan Pop! Airways */
    text-shadow: 0 0 30px rgba(91, 192, 235, 0.6);
    position: relative;
    animation: float 3s ease-in-out infinite;
}

.error-message {
    font-size: 2rem;
    text-transform: uppercase;
    margin-top: 10px;
    letter-spacing: 3px;
    color: white;
}

.funny-text {
    color: #aebbf2;
    font-size: 1.2rem;
    font-style: italic;
    margin: 20px 0 40px 0;
    border-left: 3px solid #5BC0EB;
    padding-left: 15px;
    display: inline-block;
}

/* Animation flottante */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}
/* --- STAFF SECTION UPDATE --- */

.staff-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Conteneur spécial pour les 2 CEOs */
.exec-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px; /* Espace entre les deux chefs */
    margin-bottom: 40px; /* Espace avant le reste de l'équipe */
    width: 100%;
}

/* Conteneur pour le reste du staff */
.staff-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    width: 100%;
}

.staff-card {
    background: #13243a;
    border: 1px solid #234063;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    width: 250px;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.staff-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
    border-color: #5BC0EB;
}

/* Style spécifique pour les CEOs (Un peu plus imposant) */
.main-admin {
    width: 280px; /* Légèrement plus large que le staff normal */
    border-top: 4px solid #5BC0EB; /* La barre Cyan en haut */
    background: linear-gradient(180deg, #172d47 0%, #13243a 100%);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.staff-img-box img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #234063;
    margin-bottom: 15px;
    transition: 0.3s;
}

.staff-card:hover .staff-img-box img {
    border-color: #5BC0EB;
}

.staff-info h3 {
    margin: 5px 0;
    color: white;
    font-size: 1.2rem;
}

.staff-info p {
    font-size: 0.85rem;
    color: #888;
    margin-top: 10px;
}

.role-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.1);
    color: #bbb;
    margin-top: 5px;
}

/* Badge Cyan Brillant pour les CEOs */
.role-badge.ceo {
    background: #5BC0EB;
    color: #0A1A2F;
    box-shadow: 0 0 10px rgba(91, 192, 235, 0.4);
}
/* --- CONTACT SECTION --- */

.contact-wrapper {
    display: flex;
    justify-content: center;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto 60px auto;
    padding: 0 20px;
    flex-wrap: wrap; /* Wraps on mobile */
}

.contact-box {
    background: #13243a;
    border: 1px solid #234063;
    border-radius: 12px;
    padding: 40px 30px;
    flex: 1;
    min-width: 300px; /* Prevents becoming too small */
    text-align: center;
    transition: transform 0.3s, border-color 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.contact-box:hover {
    transform: translateY(-5px);
    border-color: #5BC0EB;
}

.icon-header {
    margin-bottom: 20px;
}

.contact-box h3 {
    color: white;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-box p {
    color: #aebbf2;
    font-size: 0.95rem;
    margin-bottom: 30px;
    line-height: 1.5;
}

/* Button Styles */
.contact-btn {
    display: inline-block;
    padding: 12px 35px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    transition: 0.3s;
    text-transform: uppercase;
    font-size: 0.9rem;
}

/* Discord Specific Style */
.btn-discord {
    background-color: #5865F2; /* Official Discord Color */
    color: white;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.4);
}

.btn-discord:hover {
    background-color: #4752c4;
    transform: scale(1.05);
}

/* Email Specific Style */
.btn-email {
    background-color: transparent;
    border: 2px solid #5BC0EB;
    color: #5BC0EB;
}

.btn-email:hover {
    background-color: #5BC0EB;
    color: #0A1A2F;
    box-shadow: 0 0 15px rgba(91, 192, 235, 0.6);
}

/* Special styling for the Discord box to make it pop */
.discord-box {
    border-top: 4px solid #5865F2;
}

.email-box {
    border-top: 4px solid #5BC0EB;
}