/* --- General Styles --- */
:root {
    --bg-cream: #FDF6EC;
    --text-dark: #333333;
    --text-light: #ffffff;
    --primary-accent: #ff1a27; 
    --highlight-color: #FFF2A8;

    /* Card Colors */
    --card-color-1: #D9867A; /* Terracotta Red */
    --card-color-2: #5A9C8D; /* Teal Green */
    --card-color-3: #D985B2; /* Magenta Pink */
    --card-color-4: #E59B58; /* Orange */
    --card-color-5: #6C87D9; /* Blue */
    --card-color-6: #927AD9; /* Purple */
    --card-color-7: #8FB97D; /* Light Green */

    /* Fonts */
    --font-main: 'Poppins', sans-serif;
    
    /* Navbar Height Variable */
    --navbar-height: 80px;
}


* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-cream);
    color: var(--text-dark);
    padding-top: var(--navbar-height); 
}

body.no-scroll {
    overflow: hidden;
}

.container {
    max-width: 1100px;
    margin: auto;
    overflow: visible; 
    padding: 0 2rem;
}

a {
    color: var(--primary-accent);
    text-decoration: none;
}

ul {
    list-style: none;
}

h1, h2, h3 {
    font-family: var(--font-main);
    font-weight: 900;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

h4 {
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.btn {
    display: inline-block;
    background: var(--text-light);
    color: var(--primary-accent);
    padding: 0.8rem 1.5rem;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.btn:hover {
    background: var(--highlight-color);
}

.content-section {
    padding: 2rem 0;
}

#bienvenue {
    padding: 0;
    margin-bottom: 120px; /* Increased margin to compensate for overlap */
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.content-section > .container {
    padding: 2rem 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    color: var(--text-light);
    margin: 0 auto;
}

/* Card background colors */
#bienvenue .container { background-color: var(--card-color-1); }
#de-nous .container { background-color: var(--card-color-2); }
#a-vous .container { background-color: var(--card-color-3); }
#medias .container { background-color: var(--card-color-4); }
#spectacle .container { background-color: var(--card-color-5); }
#references .container { background-color: var(--card-color-6); }
#concerts .container { background-color: var(--card-color-7); }
#contact .container { background-color: var(--card-color-1); }

/* Typography inside cards */
.content-section h1, .content-section h2, .content-section h3, .content-section h4, .content-section p, .content-section li, .content-section strong {
    color: var(--text-light);
}

.content-section a {
    color: var(--text-light);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 4px;
}
.content-section a:hover {
    text-decoration: none;
}


.row {
    display: flex;
    flex-wrap: wrap;
}

.col-md-6 {
    width: 50%;
    padding: 0 1rem;
}

.text-primary {
    color: var(--highlight-color) !important; /* Ensure highlight color is applied */
}


/* --- Header & Navbar --- */
#header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    background: var(--bg-cream);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: background 0.3s ease;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    height: var(--navbar-height);
}

.nav-logo img {
    height: 60px;
    width: auto;
}

.nav-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
}

.nav-item {
    margin: 0 1rem;
}

.nav-link {
    font-family: var(--font-main);
    font-weight: 700;
    color: var(--text-dark);
    text-transform: uppercase;
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-accent);
    background-color: transparent;
}

.social-icons-header a {
    color: var(--text-dark);
    margin-left: 1rem;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-icons-header a:hover {
    color: var(--primary-accent);
}

.nav-social-links {
    display: none;
}


.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--text-dark);
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    height: auto; 
    display: block;
    padding: 0 2rem; 
}

.hero-image {
    position: static; 
    width: 100%;
    height: auto;
    display: block;
    z-index: 1;
}

.hero-section .container {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 50%);
    width: 90%;
    max-width: 1100px;
    margin: 0;
    z-index: 2;
}

.hero-text {
    z-index: 1;
    text-align: center;
}

.hero-text h1 {
    font-family: var(--font-main);
    font-weight: 900;
    font-size: 2.3rem;
    text-shadow: none;
    color: #fff;
    text-align: center;
    margin: 0;
    line-height: 1.3;
}

.hero-text h1 .hero-phrase {
    display: inline-block;
}

.hero-text h1 .hero-phrase:not(:last-child) {
    margin-right: 1.5rem;
}

.hero-text h1 span {
    display: inline-block;
    animation: festive-colors 6s linear infinite;
    animation-delay: var(--delay);
    will-change: color, text-shadow;
}

@keyframes festive-colors {
  0%, 100% {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
  }
  50% {
    color: var(--highlight-color);
    text-shadow: 0 0 12px var(--highlight-color), 0 0 15px var(--highlight-color);
  }
}


/* --- Section Specific Styles --- */

#de-nous .section-image, #a-vous .section-image {
    height: 350px;
    background-size: contain; 
    background-position: center;
    background-repeat: no-repeat; 
    margin: 2rem 0;
    border-radius: 10px;
    position: relative;
}

#de-nous .section-image {
    background-image: url('../media/quartetAnim1.jpg');
}

#de-nous .section-image::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: url('../media/quartetAnim2.jpg');
    background-size: contain; 
    background-position: center;
    background-repeat: no-repeat; 
    border-radius: 10px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    will-change: opacity;
}

#de-nous .section-image.fade-in::before {
    opacity: 1;
}

#a-vous .formulas {
    list-style: disc;
    padding-left: 2rem;
    margin: 2rem 0;
}

#a-vous .formulas li {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

#medias .media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

#medias .media-item h4 {
    color: var(--text-light);
    border-bottom: 2px solid var(--text-light);
    padding-bottom: 0.5rem;
    display: inline-block;
}

#medias .media-item iframe {
    width: 100%;
    height: 315px;
    border-radius: 10px;
    margin-bottom: 1rem;
    border: 0;
}

/* --- Spectacle Section --- */
#spectacle .section-subtitle {
    text-align: center;
}

#spectacle .video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin: 2rem auto;
    border-radius: 10px;
}

#spectacle .video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.flyer-carousel-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 2rem auto;
}

.flyer-carousel-container {
    position: relative;
    max-width: 500px;
    overflow: hidden;
    border-radius: 10px;
}

.flyer-carousel-slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.flyer-slide {
    min-width: 100%;
    transition: opacity 0.5s ease;
}

/* --- References & Testimonials Section --- */
.text-center {
    text-align: center;
}

/* Generic Carousel Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    padding: 0;
    cursor: pointer;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease;
    z-index: 10;
}

.carousel-btn:hover {
    background-color: var(--primary-accent);
}

/* Flyer Carousel Buttons */
.flyer-carousel-wrapper .carousel-btn {
    position: static;
    transform: none;
    flex-shrink: 0;
}

/* References Carousel */
.references-carousel-container {
    position: relative;
    margin-top: 2rem;
}

.references-slider-wrapper {
    overflow: hidden;
    margin: 0 50px; /* Space for arrows */
}

.references-slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.reference-item {
    flex-shrink: 0;
    width: calc(100% / 3);
    padding: 1rem;
    box-sizing: border-box;
}

.reference-item img {
    width: 100%;
    height: 100px;
    object-fit: contain;
    filter: grayscale(10%) brightness(1);
    transition: all 0.3s ease;
    background-color: var(--text-light);
    border-radius: 8px;
    padding: 10px;
}

.reference-item img:hover {
    filter: grayscale(0) brightness(1);
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255,255,255,0.5);
}

.references-carousel-container .prev-reference { left: 0; }
.references-carousel-container .next-reference { right: 0; }

/* Testimonial Carousel */
.testimonial-carousel-container {
    position: relative;
}

.testimonial-slider-wrapper {
    overflow: hidden;
    margin: 0 60px;
}

.testimonial-slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.testimonial {
    background: rgba(0, 0, 0, 0.15);
    padding: 2rem;
    border-radius: 10px;
    border-left: 5px solid var(--text-light);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-shrink: 0;
    margin: 0 1rem;
    width: calc(50% - 2rem);
}

.testimonial p {
    font-style: italic;
    flex-grow: 1;
}

.testimonial span {
    display: block;
    text-align: right;
    margin-top: 1rem;
    font-weight: bold;
    color: var(--highlight-color);
}

.testimonial-carousel-container .prev-testimonial { left: 10px; }
.testimonial-carousel-container .next-testimonial { right: 10px; }

/* --- Concerts Section --- */
#concerts .concert-list ul {
    list-style: none;
    padding: 0;
}

#concerts .concert-list li {
    background: rgba(0, 0, 0, 0.15);
    margin-bottom: 0.5rem;
    padding: 1rem;
    border-radius: 5px;
}

#concerts .concert-list li strong {
    color: var(--highlight-color);
    margin-right: 1rem;
}

/* --- Contact Section --- */
#contact .row {
    align-items: center;
}

#contact .contact-form input,
#contact .contact-form textarea,
#contact .newsletter-form input {
    width: 100%;
    padding: 1.2rem;
    margin-bottom: 1rem;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.15);
    color: var(--text-light);
}

#contact .newsletter-form {
    display: flex;
}

#contact .newsletter-form input {
    flex-grow: 1;
    margin-right: 1rem;
    margin-bottom: 0;
}

#contact .social-icons-footer a {
    color: var(--text-light);
    font-size: 2rem;
    margin-right: 1.5rem;
    transition: color 0.3s ease;
}

#contact .social-icons-footer a:hover {
    opacity: 0.8;
}

/* --- Footer --- */
#footer {
    text-align: center;
    padding: 2rem;
    background: transparent;
}

/* Tooltip Style */
#logo-tooltip {
    display: none;
    position: absolute;
    padding: 8px 12px;
    background-color: var(--text-dark);
    border: 1px solid var(--primary-accent);
    color: var(--text-light);
    border-radius: 6px;
    font-family: var(--font-main);
    font-size: 0.9rem;
    z-index: 9999;
    pointer-events: none;
    white-space: nowrap;
    transition: opacity 0.2s ease;
}


/* --- Responsive Styles --- */
@media (max-width: 1340px) {    
    .hamburger {
        display: block;
    }

    .hamburger.active .bar {
        background-color: var(--text-dark); /* Hamburger color change */
    }
    
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .social-icons-header {
        display: none;
    }

    .nav-menu {
        position: fixed;
        right: -100%; /* Start off-screen */
        top: 0;
        width: 100%; height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background-color: var(--bg-cream);
        transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    }

    .nav-menu.active {
        right: 0; /* Slide in */
    }
    
    .nav-item {
        padding: 0;
        width: 100%;
        text-align: center;
    }

    .nav-link {
        font-family: var(--font-main);
        font-size: 2rem;
        font-weight: 700;
        color: var(--text-dark);
        text-transform: uppercase;
        padding: 0.5rem 0;
        display: inline-block;
        position: relative;
        transition: color 0.3s ease;
    }
    
    .nav-link:hover {
        color: var(--primary-accent);
    }

    .nav-menu .nav-link.active {
        color: var(--primary-accent);
    }

    .nav-social-links {
        display: block;
        position: absolute;
        bottom: 5%;
        left: 50%;
        transform: translateX(-50%);
    }

    .nav-social-links a {
        color: var(--text-dark);
        font-size: 1.5rem;
        margin: 0 1rem;
        transition: color 0.3s ease;
    }
    .nav-social-links a:hover {
        color: var(--primary-accent);
    }
    
    .col-md-6 {
        width: 100%;
        padding: 0;
    }
    
    .col-md-6:last-child {
        margin-top: 2rem;
    }
    
    .hero-text h1 {
        font-size: 1.5rem;
    }
    
    #de-nous .section-image,
    #a-vous .section-image {
        height: 30vh;
    }

    h2 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    h3 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .reference-item {
        width: calc(100% / 2);
    }
}

@media (max-width: 768px) {
    #bienvenue.hero-section {
        padding: 0; 
        margin-bottom: 2rem; 
    }
    .hero-section .container {
        position: relative;
        transform: none;
        width: 90%;
        margin: -25px auto 0 auto;
        border-radius: 20px;
    }
    
    .hero-text h1 {
        font-size: 1.1rem;
        white-space: nowrap;
    }

    .hero-section .container {
        left: 0px;
        padding: 1rem 1rem;
    }

    .testimonial {
        width: calc(100% - 2rem);
    }
    .testimonial-slider-wrapper {
        margin: 0 50px;
    }
    .references-slider-wrapper {
        margin: 0 45px;
    }
    .nav-link {
        font-size: 1.8rem;
    }
}


@media (max-width: 576px) {
    :root {
        --navbar-height: 70px;
    }

    .navbar {
        height: var(--navbar-height);
    }
    .nav-menu {
        top: 0;
        height: 100%;
    }

    .content-section > .container {
        padding: 1.5rem 1rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .hero-text h1 {
        font-size: 0.6rem;
    }
    
    .hero-section .container {
        left: 0px;
        padding: 1rem 1rem;
    }

    #contact .newsletter-form {
        flex-direction: column;
    }

    #contact .newsletter-form input {
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .reference-item {
        width: 100%;
    }

    .references-slider-wrapper {
        margin: 0 45px;
    }
}