/* =========================================
   SYNAPSE.CSS - HGR Event Platform Theme
   Version: 1.0
   Author: TOTEM Technologies
   ================================********* */

/* -----------------------------------------
   1. VARIABLES & RESET
   ----------------------------------------- */
:root {
    /* Charte Graphique HGR */
    --primary: #0e4c92;        /* Bleu Institutionnel */
    --primary-dark: #052c55;   /* Bleu Nuit */
    --accent: #00d2ff;         /* Cyan Innovation */

    /* Couleurs Fonctionnelles */
    --urgent: #e53e3e;         /* Rouge Alerte */
    --live: #ff0000;           /* Rouge Live */

    /* Typographie & Fonds */
    --text-dark: #1a202c;
    --text-gray: #4a5568;
    --white: #ffffff;
    --bg-light: #f7fafc;
    --bg-section: #f0f4f8;     /* Fond section Vision */
    --bg-stats: #e6efff;       /* Fond section Stats */

    /* UI Elements */
    --radius: 16px;
    --top-bar-height: 44px;
    --shadow-soft: 0 10px 30px rgba(0,0,0,0.05);
    --shadow-hover: 0 20px 40px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--white);
    color: var(--text-dark);
    overflow-x: hidden;
    line-height: 1.6;
}

a { text-decoration: none; }
ul { list-style: none; }

/* -----------------------------------------
   2. ANIMATIONS (Keyframes)
   ----------------------------------------- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes livePulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7); transform: scale(1); }
    70% { box-shadow: 0 0 0 10px rgba(255, 0, 0, 0); transform: scale(1.05); }
    100% { box-shadow: 0 0 0 0 rgba(255, 0, 0, 0); transform: scale(1); }
}

@keyframes scaleIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* -----------------------------------------
   3. TOP ALERT BAR
   ----------------------------------------- */
.top-bar {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--top-bar-height);
    background: linear-gradient(90deg, #1a202c 0%, #2d3748 100%);
    color: var(--white);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    padding: 0 5%;
    gap: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.alert-badge {
    background: var(--urgent);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.live-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    color: var(--live);
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.8rem;
    animation: livePulse 2s infinite;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: var(--live);
    border-radius: 50%;
}

/* -----------------------------------------
   4. NAVBAR (Navigation Principale)
   ----------------------------------------- */
.navbar {
    position: fixed;
    top: var(--top-bar-height);
    width: 100%;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    padding: 10px 5%;
}

/* Logo HGR */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1001;
}

.logo-box {
    background: var(--white);
    width: 90px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    transition: var(--transition);
}



.logo-text h1 {
    font-size: 1.1rem;
    color: var(--white);
    font-weight: 800;
    line-height: 1.1;
    transition: var(--transition);
}


.navbar.scrolled .logo-text h1 { color: var(--primary); }
.navbar.scrolled .logo-text span { color: var(--text-gray); }

/* Menu Desktop */
.nav-wrapper {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--white);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: var(--transition);
    opacity: 0.9;
}

.nav-link:hover { opacity: 1; }

.navbar.scrolled .nav-link { color: var(--text-dark); }
.navbar.scrolled .nav-link:hover { color: var(--primary); }

/* Boutons d'action */
.nav-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.btn-login {
    color: var(--white);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 20px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50px;
    transition: var(--transition);
}

.navbar.scrolled .btn-login {
    color: var(--primary);
    border-color: rgba(14, 76, 146, 0.2);
}

.btn-register {
    background: var(--accent);
    color: #052c55;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 210, 255, 0.3);
}

.navbar.scrolled .btn-register {
    background: var(--primary);
    color: var(--white);
}

/* Hamburger Menu (Mobile) */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    border-radius: 3px;
    transition: 0.3s;
}

.navbar.scrolled .bar { background-color: var(--primary); }

/* -----------------------------------------
   5. HERO SECTION
   ----------------------------------------- */
.hero {
    position: relative;
    padding: 180px 5% 200px 5%;
    background: linear-gradient(135deg, #0e4c92 0%, #062b55 100%);
    color: var(--white);
    text-align: center;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    margin: 0 auto;
}

/* Bulles d'animation */
.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    animation: float 8s ease-in-out infinite;
    pointer-events: none;
}

.shape-1 { width: 300px; height: 300px; top: -50px; left: -50px; animation-duration: 12s; }
.shape-2 { width: 500px; height: 500px; bottom: -150px; right: -150px; animation-duration: 18s; animation-delay: 1s; }
.shape-3 { width: 100px; height: 100px; top: 20%; right: 20%; background: rgba(0, 210, 255, 0.1); animation-duration: 10s; animation-delay: 2s; }

.badge-edition {
    display: inline-block;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
    backdrop-filter: blur(5px);
    animation: fadeInUp 0.8s ease-out;
}

.hero h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero h1 span { color: var(--accent); }

.hero-context {
    font-size: 1.3rem;
    margin: 0 auto 40px auto;
    opacity: 0.95;
    font-weight: 300;
    border-left: 4px solid var(--accent);
    padding-left: 20px;
    text-align: left;
    display: inline-block;
    background: rgba(0,0,0,0.1);
    padding: 15px 20px;
    border-radius: 0 10px 10px 0;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.hero-context strong {
    font-weight: 600;
    color: var(--white);
    display: block;
    margin-top: 5px;
}

/* -----------------------------------------
   6. INFO BAR (Dates & Lieu)
   ----------------------------------------- */
.info-bar-container {
    position: relative;
    margin-top: -100px;
    padding: 0 5%;
    z-index: 10;
}

.info-bar {
    background: var(--white);
    border-radius: 20px;
    padding: 30px 50px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out 0.6s backwards;
}

.info-item { display: flex; align-items: center; gap: 15px; }

.info-icon {
    width: 50px;
    height: 50px;
    background: #e6f7ff;
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.info-text h3 {
    font-size: 0.9rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.info-text p {
    font-size: 1.1rem;
    color: var(--primary);
    font-weight: 700;
}

.divider {
    width: 1px;
    height: 50px;
    background: #eee;
}

/* -----------------------------------------
   7. THEMES SECTION
   ----------------------------------------- */
.themes-section {
    padding: 120px 5% 80px 5%;
    text-align: center;
    background: var(--white);
}

.section-header {
    margin-bottom: 60px;
    position: relative;
    display: inline-block;
}

.section-header h2 {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 10px;
    font-weight: 700;
}

.section-header::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent);
    margin: 0 auto;
    border-radius: 2px;
}

.section-header p {
    color: var(--text-gray);
    font-size: 1.1rem;
    margin-top: 15px;
}

.themes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.theme-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px 30px;
    text-align: left;
    transition: var(--transition);
    border-bottom: 4px solid transparent;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    border: 1px solid #f0f0f0;
}

.theme-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}

.card-icon {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    flex-shrink: 0;
}

.theme-card h3 {
    font-size: 1.15rem;
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 15px;
}

/* Couleurs spécifiques aux Thèmes */
.icon-urg { background: #fff5f5; color: #e53e3e; }
.icon-inov { background: #f0fff4; color: #38a169; }
.icon-prev { background: #ebf8ff; color: #3182ce; }

/* Bordures colorées (nth-child correspond à l'ordre dans la grid) */
.theme-card:nth-child(1) { border-bottom-color: #e53e3e; }
.theme-card:nth-child(2) { border-bottom-color: #38a169; }
.theme-card:nth-child(3) { border-bottom-color: #3182ce; }

/* -----------------------------------------
   8. VISION / ABOUT SECTION
   ----------------------------------------- */
.about-section {
    padding: 80px 5%;
    background: var(--bg-section);
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text h2 {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 25px;
    font-weight: 700;
    line-height: 1.2;
}

.about-text p {
    color: var(--text-gray);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 25px;
}

.about-image { position: relative; }

.about-img-placeholder {
    width: 100%;
    height: 450px;
    background: #ccc;
    border-radius: 20px;
    background-size: cover;
    background-position: center;
    box-shadow: -20px 20px 0px rgba(14, 76, 146, 0.1);
}

.img-overlay {
    position: absolute;
    bottom: 40px;
    right: -40px;
    background: var(--white);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    max-width: 280px;
    border-left: 5px solid var(--accent);
    animation: float 6s ease-in-out infinite;
}

.quote-icon {
    font-size: 2.5rem;
    color: var(--primary);
    opacity: 0.2;
    position: absolute;
    top: 15px;
    left: 15px;
}

.quote-text {
    font-size: 0.95rem;
    font-style: italic;
    color: var(--text-dark);
    position: relative;
    z-index: 2;
    line-height: 1.6;
    font-weight: 500;
}

/* -----------------------------------------
   9. STATS SECTION
   ----------------------------------------- */
.stats-section {
    background-color: var(--bg-stats);
    padding: 80px 5%;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.stat-item {
    opacity: 0;
    animation: scaleIn 0.8s ease-out forwards;
}

/* Délais d'animation */
.stat-item:nth-child(1) { animation-delay: 0.2s; }
.stat-item:nth-child(2) { animation-delay: 0.4s; }
.stat-item:nth-child(3) { animation-delay: 0.6s; }
.stat-item:nth-child(4) { animation-delay: 0.8s; }

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    display: block;
    line-height: 1;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-gray);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* -----------------------------------------
   10. FOOTER (Branding TOTEM/SYNAPSE)
   ----------------------------------------- */
.totem-footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.6);
    padding: 40px 5%;
    text-align: center;
    font-size: 0.9rem;
}

.totem-branding {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255,255,255,0.05);
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 15px;
    transition: var(--transition);
}

.totem-branding:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--accent);
}

.totem-name {
    color: var(--accent);
    font-weight: 800;
    letter-spacing: 1px;
    font-size: 1rem;
}

/* -----------------------------------------
   11. RESPONSIVE MEDIA QUERIES
   ----------------------------------------- */
@media (max-width: 992px) {
    /* Navbar Mobile Logic */
    .hamburger { display: flex; }

    .nav-wrapper {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 30px 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);

        /* Caché par défaut */
        transform: translateY(-20px);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s ease;
    }

    .nav-wrapper.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-links {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .nav-link { color: var(--text-dark); }

    .nav-buttons {
        flex-direction: column;
        gap: 15px;
        width: 80%;
    }

    .btn-login {
        color: var(--primary);
        border-color: var(--primary);
        width: 100%;
        text-align: center;
    }

    .btn-register {
        width: 100%;
        text-align: center;
    }

    /* Ajustements Sections */
    .info-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .divider { display: none; }

    .about-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image { margin: 20px 0 60px 0; }

    .img-overlay {
        right: 0;
        bottom: -30px;
    }

    .top-bar {
        font-size: 0.75rem;
        justify-content: space-between;
        padding: 0 15px;
    }

    /* Live Button compact */
    .live-btn span:nth-child(2) { display: none; }
    .live-btn::after { content: "LIVE"; margin-left: 5px;}

    .hero h1 { font-size: 2rem; }
}

/* Couleur du lien actif */
.nav-link.active {
    color: #0e4c92 !important; /* Couleur Indigo (Primary) */
    font-weight: bold;
    /* Optionnel : Ajoute une petite ligne en dessous */
    border-bottom: 2px solid #0e4c92;
}

/* Assure-toi que le hover reste joli */
.nav-link:hover {
    color: #0e4c92;
}
