/* ===========================
   ENSEMBLES CULTURAL CENTER CSS 
   Design unique inspiré centres culturels modernes
   =========================== */

/* === SKIP LINK === */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #000000;
    color: #D4A574;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 2000;
    font-size: 14px;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 6px;
}


/* === ENSEMBLE SECTIONS === */
.ensemble-section {
    min-height: 100vh;
    padding: 8rem 0;
    position: relative;
}

.maitrise-theme {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.ardito-theme {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    color: #f5f5f0;
}

.adastra-theme {
    background: linear-gradient(135deg, #f1f3f4 0%, #dee2e6 100%);
    color: #2c3e50;
}

.sierrenade-theme {
    background: linear-gradient(135deg, #212529 0%, #343a40 100%);
    color: #f5f5f0;
}

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

/* === LAYOUT UNIQUE === */
.ensemble-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
    min-height: 80vh;
    margin-bottom: 2rem;
}

.ensemble-layout.reverse {
    grid-template-columns: 1fr 2fr;
    direction: rtl;
}

.ensemble-layout.reverse > * {
    direction: ltr;
}

/* === CONTENT ZONE === */
.content-zone {
    padding: 2rem 0;
}

.formation-type {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #D4A574;
    margin-bottom: 1rem;
    font-weight: 600;
}

.formation-name {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 400;
    margin: 0 0 1rem 0;
    line-height: 1.1;
}

.maitrise-theme .formation-name,
.adastra-theme .formation-name {
    color: #1a1a1a;
}

/* CORRECTION CONTRASTE - Section Maîtrise */
.maitrise-theme .formation-tagline {
    color: #4a4a4a !important;
    opacity: 0.9;
}

.maitrise-theme .main-description {
    color: #2d2d2d !important;
}

.maitrise-theme .special-highlight h3,
.maitrise-theme .liturgy-highlight h3 {
    color: #1a1a1a !important;
    font-weight: 700;
}

.maitrise-theme .special-highlight p,
.maitrise-theme .liturgy-highlight p {
    color: #000000 !important;
    font-weight: 600;
}

/* Correction contraste vignette informations Maîtrise */
.maitrise-theme .contact-type {
    color: #1a1a1a !important;
    font-weight: 700;
}

.maitrise-theme .contact-value {
    color: #000000 !important;
    font-weight: 500;
}

/* CORRECTION CONTRASTE - Section Ad Astra (même problème fond clair) */
.adastra-theme .formation-tagline {
    color: #4a4a4a !important;
    opacity: 0.9;
}

.adastra-theme .main-description {
    color: #2d2d2d !important;
}

.adastra-theme .special-highlight h3,
.adastra-theme .liturgy-highlight h3,
.adastra-theme .philosophy-block h3,
.adastra-theme .repertoire-focus h3,
.adastra-theme .recent-program h3 {
    color: #1a1a1a !important;
    font-weight: 700;
}

.adastra-theme .special-highlight p,
.adastra-theme .liturgy-highlight p,
.adastra-theme .philosophy-block p,
.adastra-theme .repertoire-focus p,
.adastra-theme .recent-program p {
    color: #000000 !important;
    font-weight: 600;
}

.adastra-theme .contact-type {
    color: #1a1a1a !important;
    font-weight: 700;
}

.adastra-theme .contact-value {
    color: #000000 !important;
    font-weight: 500;
}

/* Correction guillemets qui cachent le texte Ad Astra */
.adastra-theme .quote {
    position: relative;
    z-index: 10;
    padding-left: 1rem;
}

.adastra-theme .quote::before,
.adastra-theme .quote::after {
    display: none !important;
}

/* Alternative si les guillemets sont inlines */
.adastra-theme .philosophy-block .quote {
    text-indent: 0 !important;
    margin-left: 0 !important;
}

.ardito-theme .formation-name,
.sierrenade-theme .formation-name {
    color: #D4A574;
}

.formation-tagline {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 3rem;
    opacity: 0.8;
}

/* === DESCRIPTION RICH === */
.description-rich {
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
}

.main-description {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 3rem;
    line-height: 1.8;
}

/* === FORMATIONS SHOWCASE === */
.formations-showcase {
    margin: 3rem 0;
}

.formation-highlight {
    background: rgba(255, 255, 255, 0.8);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border-left: 4px solid #D4A574;
    backdrop-filter: blur(5px);
}

.ardito-theme .formation-highlight,
.sierrenade-theme .formation-highlight {
    background: rgba(245, 245, 240, 0.12);
    border-left: 4px solid #D4A574;
    backdrop-filter: blur(5px);
}

.adastra-theme .formation-highlight {
    background: rgba(255, 255, 255, 0.9);
    border-left: 4px solid #D4A574;
}

.formation-highlight h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    color: #D4A574;
}

.formation-highlight p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
}

.maitrise-theme .formation-highlight p,
.adastra-theme .formation-highlight p {
    color: #2c3e50;
}

.ardito-theme .formation-highlight p,
.sierrenade-theme .formation-highlight p {
    color: #f5f5f0;
}

/* === SPECIAL HIGHLIGHT === */
.special-highlight,
.philosophy-block,
.repertoire-focus,
.recent-program,
.director-profile,
.repertoire-diversity,
.collaboration-highlights,
.repertoire-approach {
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.1) 0%, rgba(212, 165, 116, 0.05) 100%);
    padding: 2.5rem;
    border-radius: 15px;
    margin: 3rem 0;
    border: 1px solid rgba(212, 165, 116, 0.2);
}

.special-highlight h3,
.philosophy-block h3,
.repertoire-focus h3,
.recent-program h3,
.director-profile h3,
.repertoire-diversity h3,
.collaboration-highlights h3,
.repertoire-approach h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 1.5rem 0;
    color: #D4A574;
}

.quote {
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.7;
    margin: 0;
    padding-left: 2rem;
    border-left: 3px solid #D4A574;
}

/* === PROJECTS TIMELINE === */
.projects-timeline {
    margin: 3rem 0;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2.5rem;
    position: relative;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #D4A574;
    margin-right: 2rem;
    margin-top: 0.3rem;
    flex-shrink: 0;
    position: relative;
}

.timeline-item.current .timeline-marker {
    background: #D4A574;
    box-shadow: 0 0 20px rgba(212, 165, 116, 0.6);
}

.timeline-item.current .timeline-marker::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #D4A574;
    background: transparent;
}

.timeline-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    color: #D4A574;
}

.timeline-content p {
    margin: 0;
    line-height: 1.6;
}

.ardito-theme .timeline-content p,
.sierrenade-theme .timeline-content p {
    color: #e8e8e8;
}

.maitrise-theme .timeline-content p,
.adastra-theme .timeline-content p {
    color: #2c3e50;
}

/* === REPERTOIRE DETAILS === */
.repertoire-details {
    margin-top: 1.5rem;
}

.repertoire-details p {
    margin: 0.8rem 0;
    padding-left: 1rem;
    border-left: 2px solid rgba(212, 165, 116, 0.3);
}

.repertoire-categories {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.category {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    border-left: 4px solid #D4A574;
    backdrop-filter: blur(3px);
}

.ardito-theme .category,
.sierrenade-theme .category {
    background: rgba(245, 245, 240, 0.1);
    backdrop-filter: blur(5px);
}

.adastra-theme .category {
    background: rgba(255, 255, 255, 0.8);
}

.category strong {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: #D4A574;
    display: block;
    margin-bottom: 0.8rem;
}

.category p {
    margin: 0;
    line-height: 1.6;
}

.maitrise-theme .category p,
.adastra-theme .category p {
    color: #2c3e50;
}

.ardito-theme .category p,
.sierrenade-theme .category p {
    color: #e8e8e8;
}

/* === TEXTE PRINCIPAL THEMES SOMBRES === */
.ardito-theme .main-description,
.sierrenade-theme .main-description {
    color: #f5f5f0;
}

.ardito-theme .description-rich p,
.sierrenade-theme .description-rich p {
    color: #e8e8e8;
}

.ardito-theme .description-rich h3,
.sierrenade-theme .description-rich h3 {
    color: #D4A574;
}

.ardito-theme .quote,
.sierrenade-theme .quote {
    color: #f0f0f0;
    font-style: italic;
}

.ardito-theme .repertoire-details p,
.sierrenade-theme .repertoire-details p {
    color: #e8e8e8;
}

/* === VISUAL ZONE === */
.visual-zone {
    position: -webkit-sticky;
    position: sticky;
    top: 2rem;
    height: fit-content;
    align-self: start;
}

/* === LOGO SHOWCASE === */
.logo-showcase {
    position: relative;
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.ardito-theme .logo-showcase,
.sierrenade-theme .logo-showcase {
    background: rgba(26, 26, 26, 0.9);
    backdrop-filter: blur(10px);
}

/* Ad Astra logo - keep encadrement but logo file needs editing */
.adastra-theme .logo-showcase {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.ensemble-logo {
    max-width: 100%;
    height: auto;
    max-height: 180px;
    object-fit: contain;
    transition: transform 0.3s ease;
    display: block;
    margin: 0 auto;
}

.ensemble-logo:hover {
    transform: scale(1.05);
}

.logo-caption {
    text-align: center;
    font-size: 1rem;
    color: #666666;
    margin-top: 1rem;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
}

.ardito-theme .logo-caption,
.sierrenade-theme .logo-caption {
    color: rgba(245, 245, 240, 0.8);
}

/* === IMAGE SHOWCASE (pour autres sections) === */
.image-showcase {
    position: relative;
    margin-bottom: 2rem;
}

.showcase-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.showcase-image:hover {
    transform: translateY(-5px);
}

.image-caption {
    text-align: center;
    font-size: 0.9rem;
    color: rgba(0, 0, 0, 0.6);
    margin-top: 1rem;
    font-style: italic;
}

.ardito-theme .image-caption,
.sierrenade-theme .image-caption {
    color: rgba(245, 245, 240, 0.7);
}

/* === CONTACT CARDS === */
.contact-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-card.dark {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.contact-header {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: #D4A574;
    margin-bottom: 1.5rem;
    text-align: center;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-type {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    color: #666666;
}

.contact-card.dark .contact-type {
    color: rgba(245, 245, 240, 0.7);
}

.contact-value {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    line-height: 1.4;
}

.contact-value a {
    color: #D4A574;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-value a:hover {
    color: #c19660;
}

/* === CONTACT GLOBAL === */
.contact-global {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 6rem 0;
}

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

.contact-content {
    text-align: center;
}

.contact-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 1.5rem 0;
}

.contact-description {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555555;
    margin: 0 0 3rem 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-actions {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-primary,
.contact-secondary {
    display: inline-flex;
    align-items: center;
    padding: 1.2rem 2.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-primary {
    background: linear-gradient(135deg, #D4A574, #c19660);
    color: #0a0a0a;
}

.contact-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(212, 165, 116, 0.4);
}

.contact-secondary {
    background: transparent;
    color: #1a1a1a;
    border: 2px solid #1a1a1a;
}

.contact-secondary:hover {
    background: #1a1a1a;
    color: #ffffff;
}

/* === RESPONSIVE === */
@media (max-width: 1200px) {
    .ensemble-layout {
        gap: 4rem;
    }
}

@media (max-width: 1024px) {
    
    .ensemble-layout,
    .ensemble-layout.reverse {
        grid-template-columns: 1fr;
        gap: 3rem;
        direction: ltr;
        margin-bottom: 1rem;
    }
    
    .visual-zone {
        position: static;
        order: -1;
        align-self: auto;
    }
    
    .showcase-image {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .ensemble-section {
        padding: 4rem 0;
    }
    
    .formation-name {
        font-size: 2.5rem;
    }
    
    .formations-showcase,
    .special-highlight,
    .philosophy-block,
    .repertoire-focus,
    .recent-program,
    .director-profile,
    .repertoire-diversity,
    .collaboration-highlights,
    .repertoire-approach {
        padding: 1.5rem;
        margin: 2rem 0;
    }
    
    .contact-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-navigation {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .section-container {
        padding: 0 1rem;
    }
    
    .showcase-image {
        height: 250px;
    }
    
    .contact-card {
        padding: 1.5rem;
    }
}

/* === HERO VIDEO SYSTEM === */
.hero-video {
    position: relative;
    height: 100vh;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #1a1a1a !important;
    z-index: 1;
}

.hero-video::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #1a1a1a !important;
    z-index: -1;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: #1a1a1a !important;
}

.video-background video,
.video-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.3) 0%,
        rgba(0,0,0,0.5) 50%,
        rgba(26,26,26,0.9) 100%
    );
    z-index: 1;
}

.hero-content-video {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 0 2rem;
    animation: fadeInUp 1.5s ease;
}

.hero-video .hero-content-video * {
    position: relative;
    z-index: 3;
}

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

.hero-title-video {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: #F5F5F0;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle-video {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: #D4A574;
    margin-bottom: 3rem;
    font-style: italic;
}

.hero-navigation-video {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.nav-dot-video {
    position: relative;
    width: 44px;
    height: 44px;
    border: 2px solid rgba(212, 165, 116, 0.9);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.nav-dot-video::before {
    content: '';
    width: 12px;
    height: 12px;
    background: rgba(212, 165, 116, 0.7);
    border: none;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.nav-dot-video:hover::before {
    background: #D4A574;
}

.nav-dot-video:hover {
    background: rgba(212, 165, 116, 0.1);
    transform: scale(1.1);
}

.dot-label-video {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.85rem;
    color: #F5F5F0;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-dot-video:hover .dot-label-video {
    opacity: 1;
}

/* === SCROLL INDICATOR === */
.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    z-index: 2;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

.scroll-indicator svg {
    width: 30px;
    height: 30px;
    stroke: #D4A574;
    stroke-width: 2;
    fill: none;
}