:root {
    /* Couleurs imposées */
    --primary: #3a7188;
    --secondary: #663b70;
    --accent: #c24752;
    --highlight: #e7b74c;
    
    /* Thème Sombre (Défaut) */
    --bg: #0f172a;
    --bg-alt: #1e293b;
    --text: #f8fafc;
    --glass: rgba(255, 255, 255, 0.05);
    --border: rgba(255, 255, 255, 0.1);
}

[data-theme="light"] {
    --bg: #f1f5f9;
    --bg-alt: #ffffff;
    --text: #0f172a;
    --glass: rgba(0, 0, 0, 0.05);
    --border: rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    transition: background 0.3s, color 0.3s;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: var(--bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    width: 80px; /* Logo agrandi */
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.main-title {
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: 0.3s;
}

.nav-links a:hover { color: var(--highlight); }

/* Theme Toggle Button */
#theme-toggle {
    background: var(--glass);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

[data-theme="dark"] #sun-icon { display: block; }
[data-theme="dark"] #moon-icon { display: none; }
[data-theme="light"] #sun-icon { display: none; }
[data-theme="light"] #moon-icon { display: block; }

/* Sections */
.section { padding: 100px 8%; }
.alt-bg { background-color: var(--bg-alt); }

.section-title {
    font-size: 2.5rem;
    margin-bottom: 50px;
    text-align: center;
}

/* Hero */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: white;
}

.hero-btns {
    margin-top: 30px; /* espace entre le texte et les boutons */
    display: flex;
    gap: 20px; /* espace entre les deux boutons */
    justify-content: center;
}

.text-accent { color: var(--highlight); }

/* Manifestations (Affiches A4) */
.manifestations-grid {
    display: flex;
    justify-content: center;
}

.event-card {
    background: var(--bg);
    border-radius: 20px;
    overflow: hidden;
    max-width: 400px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.poster-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1.4142; /* Ratio A4 */
    background: #eee;
    overflow: hidden;
}

.event-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.poster-overlay {
    position: absolute;
    top:0; left:0; width:100%; height:100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.3s;
}

.poster-container:hover .poster-overlay { opacity: 1; }

.event-info { padding: 20px; }
.event-info i { vertical-align: middle; margin-right: 8px; color: var(--primary); }

/* Team Cards */
.team-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 5 colonnes fixes */
    gap: 20px;
}

.team-card {
    background: var(--glass);
    padding: 30px;
    border-radius: 15px;
    border-top: 5px solid var(--color);
    text-align: center;
}

/* Actus */
.actu-card {
    background: var(--glass);
    padding: 30px;
    border-radius: 20px;
    border-left: 5px solid var(--highlight);
}

/* Buttons */
.btn {
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: 0.3s;
}

.btn-primary { background: var(--accent); color: white; border: none; }
.btn-outline { border: 2px solid white; color: white; }

/* Animations */
.reveal { opacity: 0; transform: translateY(30px); transition: 0.8s; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* Mobile */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .logo-img { width: 60px; height: 60px; }
    .section-title { font-size: 1.8rem; }
}