/* ================================================================
   PILOTLEAGUE - STYLES PRINCIPAUX
   ================================================================ */

/* ============================================
   VARIABLES CSS
   ============================================ */

:root {
    /* Couleurs OR/GOLD - Signature PilotLeague */
    --accent-gold: #f5a623;
    --accent-gold-light: #ffc857;
    --gradient-gold: linear-gradient(135deg, #f5a623 0%, #ffc857 100%);
    
    /* Couleurs de fond */
    --bg-primary: #0d1117;
    --bg-secondary: #161b22;
    --bg-card: #21262d;
    --bg-hover: #30363d;
    
    /* Texte */
    --text-primary: #f0f6fc;
    --text-secondary: #8b949e;
    --text-muted: #6e7681;
    
    /* Bordures */
    --border: #30363d;
    
    /* Effets */
    --shadow-glow: 0 0 30px rgba(245, 166, 35, 0.15);
    --shadow-glow-strong: 0 0 60px rgba(245, 166, 35, 0.25);
    
    /* Autres couleurs */
    --blue: #58a6ff;
    --green: #3fb950;
    --red: #f85149;
    --purple: #a371f7;
}

/* ============================================
   RESET & BASE
   ============================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    min-height: 100vh;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

/* Effet de fond subtil */
.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(245, 166, 35, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    text-align: center;
    z-index: 1;
    animation: fadeInUp 1s ease-out;
}

/* ============================================
   LOGO ICON
   ============================================ */

.logo-icon {
    width: 120px;
    height: 120px;
    border-radius: 24px;
    margin: 0 auto 32px;
    box-shadow: var(--shadow-glow-strong);
    animation: float 3s ease-in-out infinite;
    object-fit: contain;
}

/* ============================================
   LOGO HERO - Version Landing Page
   Style: PILOT (blanc) + LEAGUE (or)
   ============================================ */

.logo-hero {
    font-family: 'Outfit', -apple-system, sans-serif;
    font-size: 64px;
    font-weight: 800;
    letter-spacing: -2px;
    color: var(--text-primary); /* Blanc pour PILOT */
    margin-bottom: 16px;
}

/* LEAGUE en dégradé or */
.logo-hero span {
    background: linear-gradient(135deg, #f5a623 0%, #ffc857 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   TAGLINE
   ============================================ */

.tagline {
    font-size: 20px;
    font-weight: 400;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .logo-hero {
        font-size: 48px;
        letter-spacing: -1.5px;
    }
    
    .logo-icon {
        width: 100px;
        height: 100px;
        border-radius: 20px;
        margin-bottom: 24px;
    }
    
    .tagline {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .logo-hero {
        font-size: 36px;
        letter-spacing: -1px;
    }
    
    .logo-icon {
        width: 80px;
        height: 80px;
        border-radius: 16px;
    }
    
    .tagline {
        font-size: 16px;
    }
}

/* ============================================
   CTA BUTTON
   ============================================ */

.cta-button {
    display: inline-block;
    margin-top: 32px;
    padding: 16px 40px;
    background: linear-gradient(135deg, #f5a623 0%, #ffc857 100%);
    color: #0d1117;
    font-family: 'Outfit', -apple-system, sans-serif;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(245, 166, 35, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(245, 166, 35, 0.4);
}

.cta-button:active {
    transform: translateY(-1px);
}

/* ============================================
   BETA PAGE STYLES
   ============================================ */

.back-link {
    display: inline-block;
    margin-bottom: 24px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.back-link:hover {
    color: var(--accent-gold);
}

.logo-icon-small {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    margin-bottom: 24px;
}

.page-title {
    font-family: 'Outfit', -apple-system, sans-serif;
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -1px;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.page-title span {
    background: linear-gradient(135deg, #f5a623 0%, #ffc857 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   BETA FORM
   ============================================ */

.beta-form {
    margin-top: 32px;
    width: 100%;
    max-width: 400px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group input {
    width: 100%;
    padding: 16px 20px;
    font-family: 'Outfit', -apple-system, sans-serif;
    font-size: 16px;
    color: var(--text-primary);
    background-color: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: 12px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.form-group input:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 4px rgba(245, 166, 35, 0.1);
}

.beta-form .cta-button {
    width: 100%;
    margin-top: 8px;
}

/* ============================================
   MESSAGES
   ============================================ */

.message {
    margin-top: 24px;
    padding: 16px 20px;
    border-radius: 12px;
    font-size: 15px;
    max-width: 400px;
}

.success-message {
    background-color: rgba(63, 185, 80, 0.15);
    border: 1px solid var(--green);
    color: var(--green);
}

.error-message {
    background-color: rgba(248, 81, 73, 0.15);
    border: 1px solid var(--red);
    color: var(--red);
}

.footer-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.footer-row .back-link {
    margin-bottom: 0;
}

.footer-row .privacy-note {
    margin-top: 0;
}

.privacy-note {
    font-size: 13px;
    color: var(--text-muted);
}

/* Responsive Beta Page */
@media (max-width: 768px) {
    .page-title {
        font-size: 36px;
    }
    
    .beta-form {
        max-width: 100%;
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 28px;
    }
    
    .cta-button {
        padding: 14px 32px;
        font-size: 16px;
    }
}

/* ============================================
   LANGUAGE SELECTOR
   ============================================ */

.language-selector {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.lang-toggle:hover {
    background-color: var(--bg-hover);
    border-color: var(--accent-gold);
}

.lang-arrow {
    font-size: 10px;
    color: var(--text-muted);
    transition: transform 0.2s;
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 160px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.lang-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    background: none;
    border: none;
    border-radius: 8px;
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.lang-option:hover {
    background-color: var(--bg-hover);
}

.lang-option.active {
    background-color: rgba(245, 166, 35, 0.15);
    color: var(--accent-gold);
}

.lang-flag {
    font-size: 18px;
}

.lang-flag-img {
    width: 24px;
    height: 18px;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.lang-name {
    flex: 1;
    text-align: left;
}

/* Responsive Language Selector */
@media (max-width: 480px) {
    .language-selector {
        top: 10px;
        right: 10px;
    }
    
    .lang-toggle {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .lang-dropdown {
        min-width: 140px;
    }
}

/* ============================================
   LIENS LÉGAUX (Footer)
   ============================================ */

.hero-footer {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
}

.legal-link {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.3s ease;
}

.legal-link:hover {
    color: #d4af37;
}

.legal-separator {
    color: rgba(255, 255, 255, 0.3);
}

.legal-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    font-size: 0.85rem;
}
