/* ==========================================
   VARIABLES & RESET
   ========================================== */
:root {
    /* Charte graphique du festival */
    --primary-color: #DE7E02;
    --secondary-color: #E41205;
    --dark-bg: #0a0a0a;
    --dark-gray: #1a1a1a;
    --medium-gray: #3C3940;
    --light-gray: #4a4a50;
    --text-light: #ffffff;
    --text-gray: #cccccc;
    --accent-red: #E41205;
    --gradient-dark: linear-gradient(135deg, #0a0a0a 0%, #3C3940 100%);

    /* Fonts */
    --font-title: 'Calistoga', serif;
    --font-body: 'Oswald', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* ==========================================
   NAVIGATION
   ========================================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 2px solid var(--primary-color);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h2 {
    font-family: var(--font-title);
    color: var(--primary-color);
    font-size: 1.8rem;
    letter-spacing: 2px;
}

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

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: color 0.3s;
    letter-spacing: 1px;
}

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

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--text-light);
    margin: 5px;
    transition: all 0.3s ease;
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    padding-top: 80px;
    background: var(--dark-bg);
}

.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
}

.video-wrapper iframe,
.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
}

/* Bouton son vidéo */
.sound-toggle {
    position: absolute;
    bottom: 80px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    padding: 0.8rem 1.5rem;
    cursor: pointer;
    display: none;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s, opacity 0.3s;
    z-index: 10;
}

.sound-toggle:hover {
    background: rgba(222, 126, 2, 0.3);
    transform: scale(1.05);
}

.sound-icon {
    font-size: 1.5rem;
}

.sound-toggle .sound-on {
    display: none;
}

.sound-toggle.active .sound-off {
    display: none;
}

.sound-toggle.active .sound-on {
    display: inline;
}

.sound-text {
    color: var(--text-light);
    font-family: var(--font-body);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sound-toggle.active .sound-text {
    display: none;
}

/* ==========================================
   PRESENTATION SECTION
   ========================================== */
.presentation-section {
    background: var(--dark-bg);
    padding: 4rem 0;
}

.presentation-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.presentation-left {
    text-align: left;
}

.presentation-right {
    text-align: center;
}

.mascottes-wrapper {
    max-width: 350px;
    margin: 0 auto;
    overflow: hidden;
}

.mascottes-img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: -30px;
}

.mascottes-text {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-top: 1rem;
}

.mascottes-text a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.mascottes-text a:hover {
    color: var(--secondary-color);
}

.hero-title {
    font-family: var(--font-title);
    font-size: 5rem;
    color: var(--primary-color);
    text-shadow: 0 0 20px rgba(222, 126, 2, 0.5),
                 0 0 40px rgba(222, 126, 2, 0.3);
    margin-bottom: 1rem;
    letter-spacing: 5px;
    display: inline-block;
    white-space: nowrap;
}

.hero-title .letter {
    display: inline-block;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.hero-title:hover .letter {
    color: var(--secondary-color);
    text-shadow: 0 0 20px rgba(228, 18, 5, 0.5),
                 0 0 40px rgba(228, 18, 5, 0.3);
}

.hero-title .letter:nth-child(1) { transition-delay: 0s; }
.hero-title .letter:nth-child(2) { transition-delay: 0.03s; }
.hero-title .letter:nth-child(3) { transition-delay: 0.06s; }
.hero-title .letter:nth-child(4) { transition-delay: 0.09s; }
.hero-title .letter:nth-child(5) { transition-delay: 0.12s; }
.hero-title .letter:nth-child(6) { transition-delay: 0.15s; }
.hero-title .letter:nth-child(7) { transition-delay: 0.18s; }
.hero-title .letter:nth-child(8) { transition-delay: 0.21s; }
.hero-title .letter:nth-child(9) { transition-delay: 0.24s; }
.hero-title .letter:nth-child(10) { transition-delay: 0.27s; }
.hero-title .letter:nth-child(11) { transition-delay: 0.30s; }
.hero-title .letter:nth-child(12) { transition-delay: 0.33s; }
.hero-title .letter:nth-child(13) { transition-delay: 0.36s; }
.hero-title .letter:nth-child(14) { transition-delay: 0.39s; }
.hero-title .letter:nth-child(15) { transition-delay: 0.42s; }
.hero-title .letter:nth-child(16) { transition-delay: 0.45s; }
.hero-title .letter:nth-child(17) { transition-delay: 0.48s; }

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 3rem;
    background: var(--secondary-color);
    color: var(--text-light);
    text-decoration: none;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 1.1rem;
    letter-spacing: 2px;
    border: 3px solid var(--secondary-color);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.cta-button:hover {
    background: transparent;
    color: var(--secondary-color);
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(228, 18, 5, 0.5);
}

/* ==========================================
   SECTIONS COMMUNES
   ========================================== */
section {
    padding: 5rem 0;
}

.section-title {
    font-family: var(--font-title);
    font-size: 3rem;
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    position: relative;
}


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

.infos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.info-card {
    background: var(--medium-gray);
    padding: 2rem;
    text-align: center;
    border: 2px solid var(--light-gray);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(222, 126, 2, 0.1), transparent);
    transition: left 0.5s;
}

.info-card:hover::before {
    left: 100%;
}

.info-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(222, 126, 2, 0.3);
}

.info-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

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

.info-value {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    white-space: nowrap;
}

.info-detail {
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* ==========================================
   LINEUP SECTION
   ========================================== */
.lineup-section {
    background: var(--dark-bg);
}

.lineup-teaser {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 3rem;
    font-style: italic;
}

.lineup-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.band-card {
    background: var(--medium-gray);
    border: 2px solid var(--light-gray);
    overflow: hidden;
    transition: all 0.3s;
    position: relative;
}

.band-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(222, 126, 2, 0.3);
}

.band-placeholder {
    padding: 4rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, var(--medium-gray) 0%, var(--dark-gray) 100%);
}

.band-number {
    font-size: 4rem;
    font-weight: bold;
    color: var(--light-gray);
    opacity: 0.3;
    margin-bottom: 1rem;
}

.band-placeholder p {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-gray);
    margin-bottom: 0.5rem;
}

.band-placeholder small {
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ==========================================
   BILLETERIE SECTION
   ========================================== */
.billeterie-section {
    background: var(--gradient-dark);
}

.billeterie-container {
    max-width: 900px;
    margin: 0 auto;
}

.billeterie-container iframe {
    border: 3px solid var(--primary-color);
    border-radius: 5px;
}

.iframe-placeholder {
    background: var(--medium-gray);
    padding: 4rem 2rem;
    text-align: center;
    border: 3px dashed var(--light-gray);
    border-radius: 5px;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.iframe-placeholder p {
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-gray);
    margin-bottom: 1rem;
}

.iframe-placeholder code {
    background: var(--dark-gray);
    padding: 1rem;
    border-radius: 5px;
    color: var(--primary-color);
    font-size: 0.9rem;
    max-width: 100%;
    word-break: break-all;
}

/* ==========================================
   FAQ SECTION
   ========================================== */
.faq-section {
    background: var(--dark-bg);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--medium-gray);
    margin-bottom: 1rem;
    border: 2px solid var(--light-gray);
    overflow: hidden;
    transition: all 0.3s;
}

.faq-item.active {
    border-color: var(--primary-color);
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-light);
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.faq-question:hover {
    color: var(--primary-color);
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--secondary-color);
    font-weight: bold;
    transition: transform 0.3s;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: var(--dark-gray);
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 1rem 1.5rem;
    color: var(--text-gray);
    line-height: 1.8;
}

.faq-answer p:first-child {
    padding-top: 1.5rem;
}

.faq-answer p:last-child {
    padding-bottom: 1.5rem;
}

.faq-answer a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.faq-answer a:hover {
    color: var(--secondary-color);
}

/* ==========================================
   GALERIE SECTION
   ========================================== */
.galerie-section {
    background: var(--gradient-dark);
}

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

.gallery-item {
    aspect-ratio: 1;
    overflow: hidden;
    border: 2px solid var(--light-gray);
    transition: all 0.3s;
    cursor: pointer;
}

.gallery-item:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(222, 126, 2, 0.3);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s, filter 0.3s;
    filter: grayscale(100%);
}

.gallery-item:hover img {
    transform: scale(1.1);
    filter: grayscale(0%);
}

.photo-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--medium-gray) 0%, var(--dark-gray) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
}

.photo-placeholder p {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.photo-placeholder small {
    color: var(--light-gray);
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    text-align: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border: 3px solid var(--primary-color);
}

.lightbox-caption {
    color: var(--text-light);
    font-family: var(--font-title);
    font-size: 1.5rem;
    margin-top: 1rem;
    color: var(--primary-color);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    font-size: 2.5rem;
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: var(--secondary-color);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    color: var(--text-light);
    cursor: pointer;
    padding: 1rem;
    transition: color 0.3s;
    user-select: none;
}

.lightbox-nav:hover {
    color: var(--primary-color);
}

.lightbox-prev {
    left: -60px;
}

.lightbox-next {
    right: -60px;
}

.lightbox-counter {
    color: var(--text-gray);
    font-size: 1rem;
    margin-top: 0.5rem;
}

/* ==========================================
   PRESSE SECTION
   ========================================== */
.presse-section {
    background: var(--dark-bg);
}

.presse-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.presse-item {
    background: var(--medium-gray);
    padding: 2rem;
    border: 2px solid var(--light-gray);
    transition: all 0.3s;
}

.presse-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.presse-item blockquote {
    font-family: var(--font-title);
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    font-style: italic;
}

.presse-item blockquote::before {
    content: '"';
    color: var(--secondary-color);
}

.presse-item blockquote::after {
    content: '"';
    color: var(--secondary-color);
}

.presse-item cite {
    display: block;
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.presse-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.presse-link:hover {
    color: var(--secondary-color);
}

/* ==========================================
   SPONSORS SECTION
   ========================================== */
.sponsors-section {
    background: var(--gradient-dark);
    overflow: hidden;
}

.sponsors-carousel {
    overflow: hidden;
    position: relative;
}

.sponsors-track {
    display: flex;
    animation: scroll 20s linear infinite;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.sponsor-item {
    flex: 0 0 200px;
    height: 100px;
    margin: 0 2rem;
    background: var(--medium-gray);
    border: 2px solid var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.sponsor-item:hover {
    border-color: var(--primary-color);
}

.sponsor-item span {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.sponsor-item img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter 0.3s;
}

.sponsor-item:hover img {
    filter: grayscale(0%);
}

.sponsor-cta {
    text-align: center;
    margin-top: 2rem;
    padding-bottom: 1rem;
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background: var(--dark-gray);
    padding: 3rem 0 1rem;
    border-top: 2px solid var(--primary-color);
}

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

.footer-section {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-section h3,
.footer-section h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-family: var(--font-title);
}

.footer-section p {
    color: var(--text-gray);
}

.footer-section p a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section p a:hover {
    color: var(--primary-color);
}

.footer-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-right {
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-mascottes {
    max-width: 180px;
    height: auto;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.social-links a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s;
}

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

.social-icons {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
}

.social-icons a {
    color: var(--text-gray);
    transition: color 0.3s, transform 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icons a:hover {
    color: var(--primary-color);
    transform: scale(1.2);
}

.social-icons svg {
    width: 28px;
    height: 28px;
}

.footer-links {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

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

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

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

.footer-association {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.footer-copyright {
    font-size: 0.8rem;
    opacity: 0.7;
}

.footer-legal-links {
    margin-bottom: 1rem;
}

.footer-legal-links a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s;
}

.footer-legal-links a:hover {
    color: var(--primary-color);
}

.footer-legal-links span {
    margin: 0 0.5rem;
    color: var(--light-gray);
}

.footer-bottom a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-bottom a:hover {
    color: var(--primary-color);
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media screen and (max-width: 768px) {
    .sound-toggle {
        bottom: 70px;
        right: 10px;
        padding: 0.6rem 1rem;
    }

    .sound-text {
        font-size: 0.75rem;
    }

    .sound-icon {
        font-size: 1.2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-right {
        order: -1;
    }

    .footer-mascottes {
        max-width: 120px;
    }

    .presentation-section {
        padding: 2rem 0;
    }

    .nav-links {
        position: fixed;
        right: -100%;
        height: 100vh;
        top: 0;
        background: var(--dark-gray);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        transition: right 0.3s ease;
        padding: 2rem;
    }

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

    .burger {
        display: block;
        z-index: 1001;
    }

    .burger.active .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .burger.active .line2 {
        opacity: 0;
    }

    .burger.active .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .hero-title {
        font-size: 3rem;
        white-space: normal;
        letter-spacing: 3px;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

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

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

    .info-value {
        font-size: 1.4rem;
    }

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

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

    .presentation-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .presentation-left {
        text-align: center;
    }

    .mascottes-wrapper {
        max-width: 250px;
    }

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

    .lightbox-nav {
        font-size: 2rem;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .sponsor-item {
        flex: 0 0 150px;
        height: 80px;
        margin: 0 1rem;
    }
}

@media screen and (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
        letter-spacing: 2px;
    }

    .presentation-section {
        padding: 1.5rem 0;
    }

    .cta-button {
        padding: 0.8rem 2rem;
        font-size: 0.9rem;
    }

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

    .info-value {
        font-size: 1.2rem;
    }

    .faq-question {
        font-size: 0.95rem;
        padding: 1rem;
    }

    .presse-item blockquote {
        font-size: 1.1rem;
    }
}
