/* --- DESIGN GLOBAL (MODERNE & DARK) --- */
:root {
    --primary: #0f172a;
    --secondary: #3b82f6;
    --accent: #f59e0b;
    --text: #f8fafc;
    --bg: #020617;
    --card-bg: rgba(30, 41, 59, 0.7);
    --border: rgba(255, 255, 255, 0.1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- NAVIGATION --- */
nav {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav .logo {
    color: var(--text);
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    background: linear-gradient(45deg, var(--secondary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

nav a {
    color: #94a3b8;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

nav a:hover, nav a.active {
    color: var(--secondary);
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent);
    transition: width 0.3s;
}

nav a:hover::after, nav a.active::after {
    width: 100%;
}

/* --- CONTENEUR --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

h1, h2 {
    text-align: center;
    color: var(--text);
    margin-bottom: 50px;
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

/* --- PAGE ACCUEIL (HERO) --- */
.hero {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.8)), url('https://images.unsplash.com/photo-1517245386807-bb43f82c33c4?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    text-align: center;
    padding: 120px 20px;
    border-radius: 20px;
    margin-bottom: 60px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero h1 {
    color: white;
    font-size: 4rem;
    margin-bottom: 20px;
    text-shadow: 0 0 30px rgba(255,255,255,0.2);
    animation: fadeInDown 1s ease;
}

.hero p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto 40px auto;
    color: #cbd5e1;
    animation: fadeInUp 1s ease 0.2s backwards;
}

.btn-cta {
    background: linear-gradient(90deg, var(--secondary), var(--accent));
    color: white;
    padding: 18px 40px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.2rem;
    transition: transform 0.3s, box-shadow 0.3s;
    display: inline-block;
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.4);
    animation: fadeInUp 1s ease 0.4s backwards;
}

.btn-cta:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(245, 158, 11, 0.5);
}

/* --- PAGE EFFECTIF (CARDS PREMIUM) --- */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.staff-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.staff-card:hover {
    transform: translateY(-15px);
    border-color: var(--secondary);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.staff-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

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

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

.staff-avatar {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border-radius: 50%;
    margin: 0 auto 15px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--secondary);
    border: 2px solid var(--border);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

.staff-role {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: bold;
    margin-bottom: 10px;
    display: block;
    color: var(--accent);
}

.staff-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

/* Couleurs spécifiques par rôle */
.role-dga { border-top: 4px solid #ef4444; }
.role-dgaa { border-top: 4px solid #8b5cf6; }
.role-recteur { border-top: 4px solid #f59e0b; }
.role-rh { border-top: 4px solid #10b981; } /* Vert pour RH */
.role-partenaire { border-top: 4px solid #ec4899; } /* Rose pour Partenaire */
.role-vacant { border-top: 4px solid #64748b; }

/* --- PAGE SERVICES --- */
.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: all 0.3s;
    position: relative;
}

.service-card:hover {
    background: rgba(30, 41, 59, 0.9);
    transform: translateY(-5px);
    border-color: var(--secondary);
}

.service-card h3 {
    margin-top: 0;
    color: var(--secondary);
    font-size: 1.5rem;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

/* --- FORMULAIRE --- */
.form-container {
    max-width: 700px;
    margin: 0 auto;
    background: var(--card-bg);
    padding: 50px;
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

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

label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text);
    font-size: 0.9rem;
}

input, select, textarea {
    width: 100%;
    padding: 15px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 1rem;
    color: white;
    transition: all 0.3s;
    box-sizing: border-box;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--secondary);
    outline: none;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
}

button[type="submit"] {
    width: 100%;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
    color: white;
    border: none;
    padding: 18px;
    font-size: 1.2rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(245, 158, 11, 0.4);
}

footer {
    text-align: center;
    padding: 40px;
    background: var(--primary);
    border-top: 1px solid var(--border);
    color: #94a3b8;
    margin-top: 60px;
}

/* --- ANIMATIONS --- */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

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