/* styles.css - Inspiré de la charte graphique UnivExpo (Affiche 28ème Édition) */

:root {
    --primary-blue: #0056b3;     /* Bleu foncé de l'en-tête et des titres */
    --light-blue: #0099ff;       /* Bleu ciel des vagues décoratives */
    --yellow-accent: #ffcc00;    /* Jaune vif de l'insigne 'Dورة 28' et des pastilles */
    --dark-text: #111111;        /* Texte principal presque noir */
    --light-bg: #fafafa;         /* Fond général de la page */
    --card-bg: #ffffff;          /* Fond des blocs et conteneurs */
    --border-color: #e3e8ee;     /* Couleur des bordures discrètes */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--light-bg);
    color: var(--dark-text);
    padding-top: 80px; /* Espace pour le menu fixe */
    line-height: 1.6;
}

/* --- Barre de Navigation Fixe --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 75px;
    background: var(--card-bg);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4%;
    z-index: 1000;
}

.navbar .logo {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary-blue);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.nav-links a {
    text-decoration: none;
    color: #444;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.nav-links a:hover, 
.nav-links a.active {
    color: var(--primary-blue);
    background-color: rgba(0, 86, 179, 0.05);
}

/* Indicateur visuel sous le lien actif inspiré du bandeau jaune */
.nav-links a.active {
    border-bottom: 3px solid var(--yellow-accent);
    border-radius: 5px 5px 0 0;
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: bold;
}

.lang-switch a {
    text-decoration: none;
    color: var(--primary-blue);
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.2s;
}

.lang-switch a:hover {
    background: var(--border-color);
}

/* --- Structure Globale --- */
.container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Support RTL via sélecteur d'attribut */
[dir="rtl"] .nav-links {
    flex-direction: row;
}

/* --- Design de l'Affiche (Hero Banner) --- */
.hero-banner {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #004085 100%);
    color: white;
    padding: 60px 40px;
    border-radius: 16px;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 86, 179, 0.15);
}

/* Simulation des vagues bleues et jaunes de l'affiche */
.hero-banner::before {
    content: "";
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: var(--yellow-accent);
    transform: rotate(45deg);
    opacity: 0.8;
    z-index: 1;
}

.hero-banner .edition-badge {
    position: relative;
    z-index: 2;
    background: var(--yellow-accent);
    color: #000;
    display: inline-block;
    padding: 8px 25px;
    font-weight: 900;
    font-size: 1.4rem;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.hero-banner h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.hero-badge-info {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(5px);
    padding: 10px 25px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 15px;
}

.hero-time {
    margin-top: 12px;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 1px;
}

/* --- Sections, Cartes & Grilles --- */
.section-title {
    font-size: 1.8rem;
    color: var(--primary-blue);
    margin-bottom: 25px;
    text-align: center;
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--light-blue);
    border-radius: 2px;
}

[dir="rtl"] .section-title::after {
    left: auto;
    right: 50%;
    transform: translateX(50%);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.card {
    background: var(--card-bg);
    padding: 30px 25px;
    border-radius: 12px;
    box-shadow: 0 5px 18px rgba(0,0,0,0.04);
    border: 1px solid var(--border-color);
    border-top: 5px solid var(--primary-blue);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 86, 179, 0.08);
}

/* Version de cartes pour les 4 espaces avec icônes colorées */
.card-space {
    text-align: center;
    border-top: 5px solid var(--light-blue);
}

.card-space .icon-wrapper {
    width: 70px;
    height: 70px;
    background: rgba(0, 153, 255, 0.1);
    color: var(--primary-blue);
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    border-radius: 50%;
    border: 2px dashed var(--light-blue);
}

.card-space h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: var(--primary-blue);
}

.card-space p {
    font-size: 0.95rem;
    color: #666;
}

/* Zone Prix / Récompense en bas de l'affiche */
.reward-zone {
    background: linear-gradient(90deg, #fff9e6 0%, #fff3cd 100%);
    border: 2px solid var(--yellow-accent);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    margin-top: 40px;
    font-weight: 700;
    color: #856404;
    font-size: 1.3rem;
    box-shadow: 0 4px 12px rgba(255, 204, 0, 0.15);
}

/* --- Pied de page (Footer) --- */
footer {
    background-color: #1a252f;
    color: #cbd5e1;
    text-align: center;
    padding: 30px 20px;
    margin-top: 60px;
    font-size: 0.9rem;
    border-top: 4px solid var(--primary-blue);
}

footer p {
    margin-bottom: 8px;
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .navbar {
        flex-direction: column;
        height: auto;
        padding: 15px;
        gap: 12px;
    }
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
    body {
        padding-top: 140px;
    }
    .hero-banner h1 {
        font-size: 2rem;
    }
}
