/* Variables & Reset */
:root {
    --primary-color: #0f172a; /* Dark Blue */
    --secondary-color: #D4AF37; /* Gold */
    --text-color: #333;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
    background-color: rgb(216, 240, 255);
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center { text-align: center; }
.text-white { color: var(--white); }
.gold { color: var(--secondary-color); }
.bg-light { background-color: var(--light-bg); }
.bg-dark { background-color: var(--primary-color); }
.mt-4 { margin-top: 2rem; }
.mt-2 { margin-top: 0.5rem; }
.mb-4 { margin-bottom: 2rem; }

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--white);
    border: 2px solid var(--secondary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--secondary-color);
}

.section {
    padding: 80px 0;
}

.section-header h2 {
    font-size: 2.5rem;
    /* color: var(--primary-color); */
}

.divider {
    height: 4px;
    width: 80px;
    background-color: var(--secondary-color);
    margin: 15px auto 40px;
}

.divider.bg-gold { background-color: var(--secondary-color); }

/* Navbar */
.navbar {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: 80px;
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    font-weight: 600;
    color: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--secondary-color);
}

.btn-nav {
    background-color: var(--primary-color);
    color: var(--white) !important;
    padding: 10px 25px;
    border-radius: 30px;
}

.btn-nav:hover {
    background-color: var(--secondary-color);
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    width: 220px;
    border-radius: 5px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    padding: 10px 0;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: var(--text-color);
    font-size: 0.9rem;
}

.dropdown-menu li a:hover {
    background-color: var(--light-bg);
    color: var(--secondary-color);
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--primary-color);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    height: 100vh;
    background-image: url('img/couverture.jpeg');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    margin-top: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.7);
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 0 20px;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 10px;
    line-height: 1.2;
}

.subtitle {
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: 300;
}

.tagline {
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.img-rounded {
    border-radius: 10px;
    width: 100%;
}

.shadow-lg {
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* Video Placeholder */
.video-placeholder {
    margin-top: 20px;
    background-color: #eee;
    height: 200px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #666;
    cursor: pointer;
    transition: var(--transition);
}

.video-placeholder:hover {
    background-color: #ddd;
    color: var(--primary-color);
}

.video-placeholder i {
    font-size: 3rem;
    margin-bottom: 10px;
}

/* Video Container */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    margin-top: 20px;
    background-color: #000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

/* Carousel Wrapper with Title */
.carousel-wrapper {
    margin-bottom: 40px;
}

.carousel-title-box {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e293b 100%);
    padding: 25px 30px;
    border-radius: 10px 10px 0 0;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.carousel-main-title {
    color: var(--secondary-color);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.carousel-subtitle {
    color: rgba(255,255,255,0.9);
    font-size: 1rem;
    font-weight: 400;
    margin: 0;
    font-style: italic;
}

/* Carousel Styles */
.carousel-container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 0 0 10px 10px;
    background-color: #e0e0e0; /* Fallback color */
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 0;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-caption {
    position: absolute;
    bottom: 60px;
    left: 20px;
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 2;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background-color: var(--secondary-color);
}

.prev-btn { left: 15px; }
.next-btn { right: 15px; }

.carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 2;
}

.indicator {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

.indicator.active {
    background-color: var(--secondary-color);
}

/* Feature List */
.feature-list li {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.feature-list i {
    font-size: 2rem;
    background-color: rgba(212, 175, 55, 0.1);
    padding: 15px;
    border-radius: 50%;
    height: fit-content;
}

/* Speakers */
.speakers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.speaker-card {
    background-color: rgba(255,255,255,0.05);
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.1);
}

.speaker-card:hover {
    transform: translateY(-10px);
    background-color: rgba(255,255,255,0.1);
}

.speaker-img {
    height: 300px;
    overflow: hidden;
}

.speaker-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.speaker-card:hover .speaker-img img {
    transform: scale(1.05);
}

.speaker-info {
    padding: 20px;
}

.speaker-info h3 {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-bottom: 5px;
}

/* Enjeux */
.enjeux-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.enjeu-card {
    background-color: var(--white);
    padding: 30px 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: var(--transition);
    border-bottom: 4px solid transparent;
}

.enjeu-card:hover {
    transform: translateY(-5px);
    border-bottom-color: var(--secondary-color);
}

.enjeu-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.enjeu-card h4 {
    margin-bottom: 15px;
}

.quote {
    font-style: italic;
    font-size: 1.1rem;
    color: #666;
    max-width: 800px;
    margin: 40px auto 0;
    border-left: 4px solid var(--secondary-color);
    padding-left: 20px;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--secondary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item.left { left: 0; }
.timeline-item.right { left: 50%; }

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: var(--white);
    border: 4px solid var(--primary-color);
    top: 20px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item.right::after {
    left: -10px;
}

.timeline-content {
    padding: 20px;
    background-color: var(--white);
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.timeline-content h3 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.timeline-content .date {
    color: var(--secondary-color);
    font-weight: bold;
    margin-bottom: 15px;
}

.timeline-content ul li {
    margin-bottom: 8px;
    font-size: 0.9rem;
}

/* CTA Section */
.cta-section {
    background-image: url('/images/Event.jpg');
    background-size: cover;
    background-attachment: fixed;
    position: relative;
    padding: 100px 0;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.85);
}

.relative { position: relative; }
.z-10 { z-index: 10; }

/* Footer */
.footer {
    background-color: #0a0f1c;
    color: #ccc;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo h3 {
    color: var(--white);
    margin-bottom: 10px;
}

.footer-links h4, .footer-social h4 {
    color: var(--white);
    margin-bottom: 20px;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a:hover {
    color: var(--secondary-color);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
}

/* Animations */
.fade-in, .fade-in-left, .fade-in-right, .fade-in-up {
    opacity: 0;
    transition: all 1s ease;
}

.fade-in.visible { opacity: 1; }
.fade-in-left { transform: translateX(-50px); }
.fade-in-right { transform: translateX(50px); }
.fade-in-up { transform: translateY(50px); }

.fade-in-left.visible, .fade-in-right.visible, .fade-in-up.visible {
    opacity: 1;
    transform: translate(0);
}

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    
    .menu-toggle { display: block; }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }
    
    .nav-menu.active { left: 0; }
    
    .dropdown-menu {
        position: static;
        box-shadow: none;
        display: none;
        background-color: #f9f9f9;
    }
    
    .dropdown.active .dropdown-menu { display: block; opacity: 1; visibility: visible; transform: none; }
    
    .grid-2 { grid-template-columns: 1fr; }
    
    .reverse-mobile { display: flex; flex-direction: column-reverse; }
    
    .timeline::after { left: 31px; }
    
    .timeline-item { width: 100%; padding-left: 70px; padding-right: 25px; }
    
    .timeline-item::after { left: 21px; }
    
    .timeline-item.right { left: 0; }
    
    .carousel-container { height: 250px; }
    
    .carousel-main-title { font-size: 1.4rem; }
    .carousel-subtitle { font-size: 0.9rem; }
}