/* ===== Variables & Reset ===== */
:root {
    --primary: #8c85ff;
    --primary-dark: #673de6;
    --primary-light: #ebe4ff;
    --secondary: #d5dfff;
    --accent: #5025d1;
    --dark: #1F1346;
    --dark-2: #2f1c6a;
    --gray-900: #2b2b3a;
    --gray-700: #727586;
    --gray-200: #e9ecef;
    --gray-100: #f2f3f6;
    --white: #ffffff;
    --danger: #fc5185;
    --success: #00b090;
    --font: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --max-width: 1100px;
    --radius: 12px;
    --shadow: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 25px rgba(0,0,0,0.12);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    color: var(--gray-900);
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    color: var(--primary-dark);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Header / Nav ===== */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent);
}

.logo span {
    color: var(--gray-900);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: var(--gray-700);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

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

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
}

.burger span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--gray-900);
    border-radius: 3px;
    transition: transform 0.3s, opacity 0.3s;
}

/* ===== Hero ===== */
.hero {
    position: relative;
    height: 90vh;
    min-height: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 0;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 15px rgba(0,0,0,0.2);
    animation: fadeInUp 0.8s ease-out;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.92;
    margin-bottom: 35px;
    font-weight: 300;
    animation: fadeInUp 0.8s ease-out 0.15s both;
}

.hero .btn {
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

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

.btn {
    display: inline-block;
    padding: 14px 36px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    cursor: pointer;
    border: none;
    letter-spacing: 0.02em;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(140,133,255,0.3);
}

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

.btn-primary:hover {
    background: var(--accent);
    color: var(--white);
}

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

.btn-outline:hover {
    background: var(--white);
    color: var(--primary);
}

/* ===== Sections ===== */
section {
    padding: 80px 0;
}

section:nth-child(even) {
    background: var(--gray-100);
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--gray-900);
}

.section-subtitle {
    text-align: center;
    color: var(--gray-700);
    margin-bottom: 50px;
    font-size: 1.1rem;
}

/* ===== About ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text p {
    margin-bottom: 15px;
    color: var(--gray-700);
}

.about-img img {
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* ===== Actions (cards) ===== */
.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.card-body {
    padding: 25px;
}

.card-body h3 {
    margin-bottom: 10px;
    color: var(--gray-900);
}

.card-body p {
    color: var(--gray-700);
    font-size: 0.95rem;
}

.card-schedule {
    margin-top: 12px;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
}

/* ===== Galerie ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.gallery-grid img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius);
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-grid img:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-hover);
}

/* ===== Événements (liste) ===== */
.events-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.event-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.event-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.event-card-body {
    padding: 25px;
}

.event-card-body .date {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.event-card-body h3 {
    margin-bottom: 10px;
}

.event-card-body h3 a {
    color: var(--gray-900);
}

.event-card-body h3 a:hover {
    color: var(--primary);
}

.event-card-body p {
    color: var(--gray-700);
    font-size: 0.95rem;
}

/* ===== Page événement (détail) ===== */
.event-header {
    background: var(--gray-100);
    padding: 50px 0 40px;
    text-align: center;
}

.event-header h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    color: var(--gray-900);
}

.event-header .date {
    font-size: 1.1rem;
    color: var(--gray-700);
}

.event-content {
    padding: 50px 0;
}

.event-content .text {
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
    color: var(--gray-700);
    text-align: center;
}

.event-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.event-gallery img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius);
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.event-gallery img:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-hover);
}

/* ===== Contact ===== */
.contact-info {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-info p {
    color: var(--gray-700);
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.contact-info .email-link {
    font-size: 1.2rem;
    font-weight: 600;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 25px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--accent);
    font-size: 1.2rem;
    font-weight: 600;
    transition: background 0.2s, transform 0.2s, color 0.2s;
}

.social-links a:hover {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.1);
}

/* ===== Footer ===== */
.footer {
    background: var(--primary-light);
    color: var(--gray-700);
    padding: 40px 0 25px;
    text-align: center;
}

.footer p {
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.footer a {
    color: var(--accent);
}

.footer .copyright {
    margin-top: 20px;
    font-size: 0.85rem;
    opacity: 0.5;
}

/* ===== Lightbox ===== */
.lightbox {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.9);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 5px;
}

/* ===== Breadcrumb ===== */
.breadcrumb {
    padding: 15px 0;
    font-size: 0.9rem;
    color: var(--gray-700);
}

.breadcrumb a {
    color: var(--primary);
}

.breadcrumb span {
    margin: 0 8px;
    opacity: 0.5;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .burger {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }

    .nav-links.open {
        display: flex;
    }

    .hero {
        height: 80vh;
        min-height: 450px;
    }

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

    .hero p {
        font-size: 1.05rem;
    }

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

    .cards {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .events-list {
        grid-template-columns: 1fr;
    }

    .event-gallery {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 1.6rem;
    }
}
