/* ===== RESET & BASE ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

@media (min-width: 769px) {
    html {
        scroll-snap-type: y proximity;
    }
}

body {
    font-family: 'Quicksand', sans-serif;
    line-height: 1.7;
    color: #2d3436;
    background: #0a1628;
    overflow-x: hidden;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: #b8d4c8;
    margin-top: 1.5rem;
    font-weight: 400;
}
h1 strong {        
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: #fff;
    text-shadow: 2px 2px 20px rgba(0,0,0,0.5);
    display: block;
}

h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: #1a5f4a;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    color: #2d7a5f;
}

p {
    font-size: clamp(1rem, 1.5vw, 1.1rem);
    margin-bottom: 1rem;
}

/* ===== NAVIGATION ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    transition: all 0.3s ease;
}

.nav.scrolled {
    padding: 0.5rem 2rem;
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #7dd3b0;
    text-decoration: none;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: #7dd3b0;
    margin: 3px 0;
    transition: 0.3s;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: #b8d4c8;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #7dd3b0;
    transition: width 0.3s;
}

.nav-menu a:hover {
    color: #7dd3b0;
}

.nav-menu a:hover::after {
    width: 100%;
}

/* ===== SECTIONS / SLIDES ===== */
.slide {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    scroll-snap-align: start;
}

@media (max-width: 768px) {
    .slide {
        min-height: auto;
        scroll-snap-align: none;
        padding: 80px 0 40px;
    }
    
    .slide:first-of-type {
        padding-top: 100px;
    }
}

.slide-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    padding: 2rem;
    text-align: center;
}

/* ===== PARALLAX LAYERS ===== */
.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background-size: cover;
    background-position: center;
    will-change: transform;
}

.parallax-character {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: contain;
    background-position: bottom left;
    background-repeat: no-repeat;
    will-change: transform;
    z-index: 5;
}

/* ===== SLIDE HERO ===== */
#hero {
    background: linear-gradient(135deg, #0a1628 0%, #1a3a2f 100%);
}

#hero .parallax-bg {
    background-image: url('images/01-home-fond.webp');
    opacity: 0.8;
}

#hero .parallax-character {
    background-image: url('images/01-home-personnages.webp');
    background-position: bottom left;
    opacity: 0;
    animation: fadeSlideUp 1.5s ease 0.5s forwards;
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
    background: rgba(10, 22, 40, 0.7);
    border-radius: 20px;
    backdrop-filter: blur(5px);
}



.hero-resume {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(125, 211, 176, 0.1);
    border-left: 4px solid #7dd3b0;
    border-radius: 0 10px 10px 0;
    text-align: left;
}

.hero-resume p {
    color: #d4e5dc;
    margin-bottom: 0.5rem;
}

/* ===== SLIDE SCENOGRAPHIE ===== */

@media (min-width:1000px) {    
    /* ===== SLIDE SCENOGRAPHIE ===== */
    #scenographie {
        background: linear-gradient(180deg, #e8f5f0 0%, #d4e8e0 100%);
    }


    #scenographie .slide-content{
        max-width: 1000px;

    }

    .scenographie-intro {
        margin-bottom: 2rem;
        padding: 1.5rem;
        background: rgba(255,255,255,0.9);
        border-radius: 15px;
        box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    }

    /* ===== ACCORDIONS ===== */
    .accordion {
        background-image: url('images/02-scenographie.webp');
        background-size: contain;
        background-repeat: no-repeat;
        background-color: #FFF;
        position: relative;
        padding: 0;
        top: 0;
        left: 0;
        width: 1000px;
        height: 562px;
        max-width:1000px !important;
    }
 
    .accordion-item {
        background: rgba(255,255,255,0.95);
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 4px 20px rgba(0,0,0,0.08);
        position: absolute;
        transform: translate(-50%, -50%) !important;
        width: 320px;
        animation:none !important;
        opacity:1 !important;
    }
    .accordion-item p {
        
        font-size: 14px !important;
    }

    #accordion-illustration {
        top: 74%;
    left: 47%;
    }
    #accordion-sonore {
        top: 25%;
        left: 17%;
    }
    #accordion-improvisation {
    top: 63%;
    left: 83%;
    }
    #accordion-video {
    top: 10%;
    left: 82%;
    }


    .accordion-item:nth-child(1) { animation-delay: 0.1s; }
    .accordion-item:nth-child(2) { animation-delay: 0.2s; }
    .accordion-item:nth-child(3) { animation-delay: 0.3s; }
    .accordion-item:nth-child(4) { animation-delay: 0.4s; }

    .accordion-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1.25rem 1.5rem;
        cursor: pointer;
        transition: background 0.3s;
    }

    .accordion-header:hover {
        background: rgba(125, 211, 176, 0.1);
    }

    .accordion-header h3 {
        margin: 0;
        display: flex;
        align-items: center;
        gap: 0.75rem;
        font-size: 18px;
    }

    .accordion-arrow {
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: transform 0.3s;
        color: #2d7a5f;
        font-size: 1.5rem;
    }

    .accordion-item.active .accordion-arrow {
        transform: rotate(90deg);
    }

    .accordion-body {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease, padding 0.4s ease;
    }

    .accordion-item.active .accordion-body {
        max-height: 500px;
    }

    .accordion-body-inner {
        padding: 0 1.5rem 1.5rem;
        color: #4a5568;
    }
    
}

#scenographie {
    background: linear-gradient(180deg, #e8f5f0 0%, #d4e8e0 100%);
}

#scenographie .parallax-bg {
    background-image: url('images/02-scenographie.webp');
    opacity: 0.15;
}

.scenographie-intro {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255,255,255,0.9);
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

/* ===== ACCORDIONS ===== */
.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    background: rgba(255,255,255,0.95);
    margin-bottom: 1rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    opacity: 0;
    transform: translateY(30px);
}
@media (max-width:1000px) {
    .accordion-item.visible {
        animation: fadeSlideUp 0.6s ease forwards;
    }
}


.accordion-item:nth-child(1) { animation-delay: 0.1s; }
.accordion-item:nth-child(2) { animation-delay: 0.2s; }
.accordion-item:nth-child(3) { animation-delay: 0.3s; }
.accordion-item:nth-child(4) { animation-delay: 0.4s; }

.accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    transition: background 0.3s;
}

.accordion-header:hover {
    background: rgba(125, 211, 176, 0.1);
}

.accordion-header h3 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.accordion-arrow {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
    color: #2d7a5f;
    font-size: 1.5rem;
}

.accordion-item.active .accordion-arrow {
    transform: rotate(90deg);
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.accordion-item.active .accordion-body {
    max-height: 500px;
}

.accordion-body-inner {
    padding: 0 1.5rem 1.5rem;
    color: #4a5568;
}

/* ===== SLIDE PEDAGOGIE ===== */
#pedagogie {
    background: linear-gradient(180deg, #fef9e7 0%, #fdf2d1 100%);
}

#pedagogie .parallax-bg {
    background-image: url('images/03-pedagogique-ou-arbre.webp');
}

.pedagogy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.pedagogy-card {
    background: rgba(255,255,255,0.95);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    opacity: 0;
    transform: translateY(50px);
    transition: transform 0.3s, box-shadow 0.3s;
}

.pedagogy-card.visible {
    animation: fadeSlideUp 0.6s ease forwards;
}

.pedagogy-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0,0,0,0.12);
}

.pedagogy-card h3 {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pedagogy-icon {
    font-size: 1.5rem;
}

/* ===== SLIDE ARBRE DE NOEL ===== */
#arbre-noel {
    background: linear-gradient(180deg, #1a3a2f 0%, #0f2a20 100%);
}

#arbre-noel .parallax-bg {
    background-image: url('images/03-pedagogique-ou-arbre.webp');
}

#arbre-noel .slide-content {
    max-width: 1000px;
}

#arbre-noel h2 {
    color: #2a483c;
}

#arbre-noel p {
    color: #373938;
}

.noel-box {
    background: rgba(255,255,255,0.1);
    padding: 2rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(125, 211, 176, 0.3);
}

.livre-promo {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.livre-promo img {
    width: 150px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    transition: transform 0.3s;
}

.livre-promo img:hover {
    transform: scale(1.05) rotate(-2deg);
}

/* ===== SLIDE EQUIPE ===== */
#equipe {
    background: linear-gradient(180deg, #fef3e2 0%, #fde5c8 100%);
    padding: 100px 0;
}

#equipe .parallax-bg {
    background-image: url('images/04-equipe-fond.webp');
}

#equipe .parallax-arbre {
    background-image: url('images/04-equipe-arbre.webp');
    background-size: cover;
    background-position: bottom center;
    opacity: 0.9;
    z-index: 2;
}

#equipe h2 {
    color: #8b4513;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem;
}

.team-card {
    background: rgba(255,255,255,0.95);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0,0,0,0.1);
    opacity: 0;
    transform: translateY(50px) scale(0.95);
}

.team-card.visible {
    animation: fadeScaleUp 0.8s ease forwards;
}

.team-card:nth-child(1) { animation-delay: 0.1s; }
.team-card:nth-child(2) { animation-delay: 0.3s; }
.team-card:nth-child(3) { animation-delay: 0.5s; }

.team-photo {
    width: 100%;
    height: 280px;
    object-fit: cover;
    filter: grayscale(20%);
    transition: filter 0.3s, transform 0.3s;
}

.team-card:hover .team-photo {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.team-info {
    padding: 1.5rem;
}

.team-info h3 {
    margin-bottom: 0.5rem;
    color: #7a3d12;
}

.team-role {
    color: #d97706;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.team-socials {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.team-socials a {
    color: #b45309;
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s, transform 0.3s;
}

.team-socials a:hover {
    color: #92400e;
    transform: translateY(-2px);
}

/* ===== SLIDE FORMULES ===== */
#formules {
    background: linear-gradient(180deg, #f0f7f4 0%, #e0efe8 100%);
}

#formules .parallax-bg {
    background-image: url('images/05-formules-fond.webp');
}

.formules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.formule-card {
    background: #fff;
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 15px 50px rgba(0,0,0,0.1);
    border: 2px solid transparent;
    transition: all 0.3s;
    opacity: 0;
    transform: translateY(50px);
}

.formule-card.visible {
    animation: fadeSlideUp 0.6s ease forwards;
}

.formule-card:nth-child(1) { animation-delay: 0.2s; }
.formule-card:nth-child(2) { animation-delay: 0.4s; }

.formule-card:hover {
    border-color: #7dd3b0;
    transform: translateY(-10px);
}

.formule-card.featured {
    background: linear-gradient(135deg, #1a5f4a 0%, #2d7a5f 100%);
    color: #fff;
}

.formule-card.featured h3 {
    color: #7dd3b0;
}

.formule-card.featured p {
    color: #d4e5dc;
}

.formule-title {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.formule-subtitle {
    color: #7dd3b0;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

/* ===== SLIDE CONTACT ===== */
#contact {
    background: linear-gradient(180deg, #0a1628 0%, #1a3a2f 100%);
}

#contact .parallax-bg {
    background-image: url('images/06-contact-fond.webp');
    opacity: 0.25;
}

#contact h2 {
    color: #7dd3b0;
}

#contact p {
    color: #d4e5dc;
}

.contact-box {
    background: rgba(255,255,255,0.05);
    padding: 2.5rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(125, 211, 176, 0.2);
    max-width: 800px;
    margin: 0 auto;
}

.tech-specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    text-align: left;
}

.spec-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.spec-icon {
    font-size: 1.5rem;
    color: #7dd3b0;
}

.spec-text strong {
    color: #7dd3b0;
    display: block;
    margin-bottom: 0.25rem;
}

.spec-text span {
    color: #b8d4c8;
    font-size: 0.95rem;
}

.cta-button {
    display: inline-block;
    margin-top: 2rem;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #7dd3b0 0%, #5cb896 100%);
    color: #0a1628;
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s;
    box-shadow: 0 5px 20px rgba(125, 211, 176, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(125, 211, 176, 0.4);
}

/* ===== FOOTER ===== */
.footer {
    background: #0a1628;
    padding: 2rem;
    text-align: center;
    color: #6b7c8a;
    font-size: 0.9rem;
}

.footer a {
    color: #7dd3b0;
    text-decoration: none;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeScaleUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: #0a1628;
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        transition: right 0.3s ease;
        box-shadow: -5px 0 30px rgba(0,0,0,0.3);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .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);
    }
    
    /* Désactivation du parallax sur mobile pour fluidité */
    .parallax-bg,
    .parallax-character,
    .parallax-arbre {
        position: absolute;
        transform: none !important;
    }
    
    .hero-content {
        padding: 1.5rem;
        margin: 1rem;
        background: rgba(10, 22, 40, 0.85);
    }
    
    .hero-resume {
        padding: 1rem;
        margin-top: 1.5rem;
    }
    
    .slide-content {
        padding: 1.5rem;
    }
    
    /* Section Scénographie mobile */
    .scenographie-intro {
        margin-bottom: 1.5rem;
        padding: 1rem;
    }
    
    .accordion {
        max-width: 100%;
    }
    
    .accordion-item {
        margin-bottom: 0.75rem;
    }
    
    /* Section Pédagogie mobile */
    .pedagogy-grid {
        gap: 1rem;
    }
    
    .pedagogy-card {
        padding: 1.5rem;
    }
    
    /* Section Arbre de Noël mobile */
    .noel-box {
        padding: 1.5rem;
    }
    
    .livre-promo {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .livre-promo > div {
        text-align: center !important;
    }
    
    /* Section Équipe mobile */
    #equipe {
        padding: 60px 0;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .team-photo {
        height: 220px;
    }
    
    .team-info {
        padding: 1.25rem;
    }
    
    /* Section Formules mobile */
    .formules-grid {
        gap: 1.5rem;
    }
    
    .formule-card {
        padding: 1.5rem;
    }
    
    /* Section Contact mobile */
    .contact-box {
        padding: 1.5rem;
    }
    
    .tech-specs {
        gap: 1rem;
    }
    
    .cta-button {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
    
    .parallax-character {
        background-size: 80%;
        background-position: bottom center;
    }
    
    /* Titres plus compacts sur mobile */
    h2 {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }
    
    h3 {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .nav {
        padding: 0.75rem 1rem;
    }
    
    .slide-content {
        padding: 1rem;
    }
    
    .accordion-header {
        padding: 1rem;
    }
    
    .accordion-header h3 {
        font-size: 0.95rem;
    }
    
    .tech-specs {
        grid-template-columns: 1fr;
    }
    
    h1 strong {
        font-size: 1.6rem;
    }
    
    h1 {
        font-size: 0.95rem;
    }
    
    h2 {
        font-size: 1.4rem;
    }
    
    .hero-content {
        padding: 1rem;
    }
    
    .hero-resume {
        padding: 0.875rem;
    }
    
    .hero-resume p {
        font-size: 0.9rem;
    }
    
    .pedagogy-card,
    .formule-card,
    .noel-box,
    .contact-box {
        padding: 1.25rem;
    }
    
    .team-photo {
        height: 180px;
    }
    
    .livre-promo img {
        width: 120px;
    }
}