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

:root {
    --bg-dark: #1a1a2e;
    --bg-darker: #0f0f1a;
    --bg-card: #252540;
    --pink: #e91e8c;
    --pink-light: #ff4db2;
    --pink-glow: rgba(233, 30, 140, 0.3);
    --text-primary: #ffffff;
    --text-secondary: #d0d0e0;
    --text-muted: #b0b0c0;
    --border-subtle: rgba(255, 255, 255, 0.05);
    --nav-bg: rgba(15, 15, 26, 0.95);
    --font-main: 'Inter', sans-serif;
    --font-handwritten: 'Caveat', cursive;
    --transition-theme: background 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}

[data-theme="light"] {
    --bg-dark: #f5f5f8;
    --bg-darker: #ffffff;
    --bg-card: #ffffff;
    --text-primary: #1a1a2e;
    --text-secondary: #4a4a5a;
    --text-muted: #6a6a7a;
    --border-subtle: rgba(0, 0, 0, 0.08);
    --nav-bg: rgba(255, 255, 255, 0.95);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background: var(--bg-darker);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: var(--transition-theme);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===== THEME TOGGLE ===== */
.theme-toggle {
    position: fixed;
    top: 1.2rem;
    right: 6rem;
    z-index: 1001;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--border-subtle);
    background: var(--bg-card);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s, background 0.3s, border-color 0.3s;
}

.theme-toggle:hover {
    transform: scale(1.1);
    border-color: var(--pink);
}

.toggle-icon {
    font-size: 1.2rem;
    position: absolute;
    transition: opacity 0.3s, transform 0.3s;
}

.light-icon {
    opacity: 0;
    transform: rotate(-90deg);
}

[data-theme="light"] .dark-icon {
    opacity: 0;
    transform: rotate(90deg);
}

[data-theme="light"] .light-icon {
    opacity: 1;
    transform: rotate(0);
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: background 0.3s, backdrop-filter 0.3s;
}

.navbar.scrolled {
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--font-handwritten);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
}

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

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

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

.nav-cta {
    background: var(--pink);
    color: #ffffff !important;
    padding: 0.5rem 1.2rem;
    border-radius: 2rem;
    font-weight: 600 !important;
    transition: background 0.3s, transform 0.3s !important;
}

.nav-cta:hover {
    background: var(--pink-light);
    transform: translateY(-2px);
}

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

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: transform 0.3s, opacity 0.3s;
}

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-video-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-video-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 15, 26, 0.65);
    backdrop-filter: blur(2px);
}

[data-theme="light"] .hero-video-overlay {
    background: rgba(255, 255, 255, 0.55);
}

.hero-content {
    position: relative;
    text-align: center;
    padding: 2rem;
    z-index: 1;
}

.hero-date {
    font-size: 1.1rem;
    color: var(--pink-light);
    font-weight: 300;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.2s;
}

.hero-title {
    font-size: clamp(3rem, 10vw, 7rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.4s;
}

.title-new {
    font-family: var(--font-handwritten);
    color: var(--pink);
    font-size: 1.2em;
}

.title-images {
    font-family: var(--font-handwritten);
    color: var(--text-primary);
    font-size: 1.2em;
}

.title-festival {
    display: block;
    font-size: 0.35em;
    letter-spacing: 0.5em;
    text-transform: uppercase;
    color: var(--text-secondary);
    font-weight: 300;
}

.title-year {
    display: block;
    font-family: var(--font-handwritten);
    font-size: 0.5em;
    color: var(--pink-light);
}

.hero-tagline {
    font-size: 1.3rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 0.5rem;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.6s;
}

.hero-location {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.8s;
}

.hero-cta {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--pink);
    color: #ffffff;
    text-decoration: none;
    border-radius: 3rem;
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.3s, box-shadow 0.3s;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 1s;
}

.hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px var(--pink-glow);
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 1.2s;
    z-index: 1;
}

.hero-scroll span {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--pink), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.5; transform: scaleY(0.6); }
}

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

/* ===== SECTIONS COMMON ===== */
section {
    padding: 6rem 0;
    transition: var(--transition-theme);
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--pink-light);
}

.section-title.handwritten {
    font-family: var(--font-handwritten);
    font-size: 3.5rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* ===== ABOUT ===== */
.about {
    background: var(--bg-dark);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 3rem;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
}

.about-intro {
    font-size: 1.2rem !important;
    color: var(--text-primary) !important;
    font-weight: 300;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.stat {
    text-align: center;
    padding: 2rem 1rem;
    background: var(--bg-card);
    border-radius: 1rem;
    border: 1px solid rgba(233, 30, 140, 0.1);
    transition: transform 0.3s, border-color 0.3s, var(--transition-theme);
}

[data-theme="light"] .stat {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.stat:hover {
    transform: translateY(-5px);
    border-color: var(--pink);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--pink-light);
    font-family: var(--font-handwritten);
}

.stat-plus {
    font-size: 2rem;
    color: var(--pink-light);
    font-family: var(--font-handwritten);
}

.free-tag {
    font-size: 1.8rem !important;
}

.stat-label {
    display: block;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ===== PROGRAMME ===== */
.programme {
    background: var(--bg-darker);
}

.programme-showcase {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.showcase-video {
    border-radius: 1rem;
    overflow: hidden;
    aspect-ratio: 16/9;
    position: relative;
}

.showcase-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1rem;
}

.programme-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.programme-card {
    background: var(--bg-card);
    border-radius: 1.2rem;
    padding: 2.5rem 2rem;
    border: 1px solid var(--border-subtle);
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

[data-theme="light"] .programme-card {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.programme-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--pink), var(--pink-light));
    opacity: 0;
    transition: opacity 0.3s;
}

.programme-card:hover {
    transform: translateY(-5px);
    border-color: rgba(233, 30, 140, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.programme-card:hover::before {
    opacity: 1;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.2rem;
}

.programme-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
}

.programme-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.2rem;
}

.card-location {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--pink-light);
    background: rgba(233, 30, 140, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 1rem;
    font-weight: 500;
}

/* ===== COUP DE COEUR ===== */
.coup-de-coeur {
    background: var(--bg-dark);
    position: relative;
    overflow: hidden;
}

.coup-de-coeur::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(233, 30, 140, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.coeur-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
    margin-top: 3rem;
}

.coeur-frame {
    aspect-ratio: 4/3;
    background: var(--bg-card);
    border-radius: 1.2rem;
    border: 2px solid rgba(233, 30, 140, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.coeur-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
}

.coeur-text h3 {
    font-family: var(--font-handwritten);
    font-size: 2.2rem;
    color: var(--pink-light);
    margin-bottom: 0.5rem;
}

.coeur-artists {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.coeur-text p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.coeur-tags {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.tag {
    font-size: 0.8rem;
    padding: 0.4rem 1rem;
    background: rgba(233, 30, 140, 0.1);
    border: 1px solid rgba(233, 30, 140, 0.3);
    border-radius: 2rem;
    color: var(--pink-light);
}

/* Coup de coeur - reversed layout for Indulto */
.coeur-reverse {
    grid-template-columns: 1.2fr 1fr;
    margin-top: 5rem;
}

.coeur-reverse .coeur-visual {
    order: 2;
}

.coeur-reverse .coeur-text {
    order: 1;
}

/* Coup de coeur gallery */
.coeur-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.coeur-gallery-item {
    border-radius: 1rem;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.coeur-gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== LAUREATS ===== */
.laureats {
    background: var(--bg-darker);
}

.laureats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.laureat-card {
    background: var(--bg-card);
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid var(--border-subtle);
    transition: transform 0.3s;
}

[data-theme="light"] .laureat-card {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.laureat-card:hover {
    transform: translateY(-3px);
}

.laureat-prix {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--pink);
    font-weight: 600;
    display: block;
    margin-bottom: 0.8rem;
}

.laureat-card h4 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}

.laureat-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ===== GALLERY ===== */
.gallery {
    background: var(--bg-dark);
}

.gallery-uniform {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.gallery-item {
    border-radius: 1.2rem;
    overflow: hidden;
    position: relative;
    aspect-ratio: 16/9;
}

.gallery-item video,
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ===== INFOS ===== */
.infos {
    background: var(--bg-dark);
}

[data-theme="light"] .infos {
    background: var(--bg-darker);
}

.infos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.info-card {
    background: var(--bg-card);
    border-radius: 1.2rem;
    padding: 2.5rem 2rem;
    text-align: center;
    border: 1px solid var(--border-subtle);
    transition: var(--transition-theme);
}

[data-theme="light"] .info-card {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.info-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
}

.info-card p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.info-detail {
    color: var(--text-muted) !important;
    font-size: 0.85rem;
    margin-top: 1rem !important;
    font-style: italic;
}

/* ===== RESERVATION ===== */
.reservation {
    background: var(--bg-darker);
    text-align: center;
    position: relative;
    overflow: hidden;
}

[data-theme="light"] .reservation {
    background: var(--bg-dark);
}

.reservation::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 50%, rgba(233, 30, 140, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.reservation-content {
    position: relative;
}

.reservation-text {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.btn-reservation {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: var(--pink);
    color: #ffffff;
    text-decoration: none;
    border-radius: 3rem;
    font-weight: 700;
    font-size: 1.1rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-reservation:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px var(--pink-glow);
}

.reservation-socials {
    margin-top: 3rem;
}

.reservation-socials p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

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

.social-links a:hover {
    color: var(--pink-light);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--border-subtle);
    padding: 4rem 0 2rem;
}

[data-theme="light"] .footer {
    background: var(--bg-dark);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    font-family: var(--font-handwritten);
    font-size: 1.5rem;
    color: var(--text-primary);
    display: block;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links h4,
.footer-partners h4 {
    color: var(--text-primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.footer-links a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--pink-light);
}

.footer-partners p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.8;
}

.footer-bottom {
    border-top: 1px solid var(--border-subtle);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ===== SCROLL ANIMATIONS ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 968px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .programme-showcase {
        grid-template-columns: 1fr 1fr;
    }

    .programme-showcase .showcase-video:last-child {
        display: none;
    }

    .programme-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .coeur-content,
    .coeur-reverse {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .coeur-reverse .coeur-visual,
    .coeur-reverse .coeur-text {
        order: unset;
    }

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

    .laureats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-uniform {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .theme-toggle {
        right: 4.5rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--bg-dark);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.4s ease;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero-title {
        font-size: clamp(2.5rem, 12vw, 4rem);
    }

    .programme-showcase {
        grid-template-columns: 1fr;
    }

    .programme-showcase .showcase-video:last-child {
        display: block;
    }

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

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

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

    .section-title.handwritten {
        font-size: 2.5rem;
    }

    section {
        padding: 4rem 0;
    }

    .theme-toggle {
        right: 4rem;
        width: 38px;
        height: 38px;
    }
}
