/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0a0e1a;
    --secondary: #1a1f35;
    --accent: #6c5ce7;
    --accent-light: #a29bfe;
    --accent-glow: #6c5ce780;
    --text: #e8e8f0;
    --text-muted: #9a9ab0;
    --card-bg: #141a2b;
    --border: #2a2f4a;
    --success: #00b894;
    --danger: #ff6b6b;
    --warning: #fdcb6e;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background: var(--primary);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

/* ===== HEADER ===== */
header {
    background: var(--secondary);
    border-bottom: 2px solid var(--accent);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(26, 31, 53, 0.92);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo h1 {
    font-family: 'Orbitron', monospace;
    font-size: 1.8rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 2px;
}

.logo .subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 4px;
    display: block;
    margin-top: -4px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
}

nav ul li a {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
    border-bottom-color: var(--accent);
    color: var(--accent-light);
}

nav ul li a.nav-admin {
    color: var(--accent-light);
    background: rgba(108, 92, 231, 0.15);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    border-bottom: none;
}

nav ul li a.nav-candidat {
    color: var(--success);
    background: rgba(0, 184, 148, 0.15);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    border-bottom: none;
}

/* ===== HERO ===== */
.hero {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 4rem 2rem;
    background: radial-gradient(ellipse at 30% 30%, #1a1f35 0%, var(--primary) 70%);
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.hero-content h2 {
    font-family: 'Orbitron', monospace;
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #fff, var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content .tagline {
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    padding: 0.9rem 2.8rem;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 0 30px var(--accent-glow);
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 50px var(--accent-glow);
    background: #7c6df0;
}

.hero-stats {
    display: flex;
    gap: 4rem;
    margin-top: 3rem;
}

.hero-stats .stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-stats .number {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-light);
}

.hero-stats .label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ===== SECTIONS ===== */
.section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.section-title {
    font-family: 'Orbitron', monospace;
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 2.5rem;
    color: var(--text);
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: var(--accent);
    margin: 0.5rem auto 0;
}

/* ===== POSTES ===== */
.postes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.poste-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.8rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.poste-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.poste-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 10px 40px rgba(108, 92, 231, 0.15);
}

.poste-card:hover::before {
    opacity: 1;
}

.poste-card .badge {
    display: inline-block;
    padding: 0.2rem 0.8rem;
    background: var(--accent);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 20px;
    letter-spacing: 1px;
}

.poste-card h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.2rem;
    margin: 0.8rem 0 0.3rem;
}

.poste-card .specialite {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.poste-card .description {
    margin: 0.8rem 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.poste-card .postuler-btn {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: transparent;
    color: var(--accent-light);
    border: 1px solid var(--accent);
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.poste-card .postuler-btn:hover {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 0 20px var(--accent-glow);
}

/* ===== FORMULAIRE ===== */
.candidature-section {
    background: var(--secondary);
    border-radius: 20px;
    margin-top: 2rem;
}

.candidature-form {
    max-width: 700px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    background: var(--primary);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.submit-btn {
    display: block;
    width: 100%;
    padding: 1rem;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Rajdhani', sans-serif;
}

.submit-btn:hover {
    background: #7c6df0;
    box-shadow: 0 0 40px var(--accent-glow);
}

.form-message {
    margin-top: 1.5rem;
    text-align: center;
    font-weight: 600;
    padding: 0.8rem;
    border-radius: 8px;
}

.form-message.success {
    color: var(--success);
    border: 1px solid var(--success);
    background: rgba(0, 184, 148, 0.1);
}

.form-message.error {
    color: var(--danger);
    border: 1px solid var(--danger);
    background: rgba(255, 107, 107, 0.1);
}

/* ===== CONTACT ===== */
.contact-section {
    text-align: center;
}

.contact-info {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    max-width: 500px;
    margin: 0 auto;
}

.contact-info p {
    margin: 0.8rem 0;
    color: var(--text-muted);
}

.contact-info strong {
    color: var(--text);
}

/* ===== FOOTER ===== */
footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        text-align: center;
    }
    nav ul {
        justify-content: center;
        gap: 0.8rem;
    }
    .hero-content h2 {
        font-size: 2.5rem;
    }
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .postes-grid {
        grid-template-columns: 1fr;
    }
    .section {
        padding: 2rem 1rem;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.4rem;
    }
    .hero-content h2 {
        font-size: 1.8rem;
    }
    .cta-button {
        padding: 0.7rem 1.8rem;
        font-size: 1rem;
    }
}