/*
Theme Name: Un peu d'airs
Theme URI: https://chorale-unpeudairs.eu
Author: Un peu d'airs
Description: Thème WordPress sur mesure pour le chœur mixte Un peu d'airs du Beausset.
Version: 1.0
Text Domain: unpeudairs
*/

/* ===== VARIABLES ===== */
:root {
    --primary-orange: #E8860C;
    --primary-gold: #F0C040;
    --accent-warm: #D4722A;
    --accent-sage: #A3B18A;
    --deep-charcoal: #1A1A2E;
    --bg-offwhite: #FAFAF8;
    --bg-warm: #F5F3EF;
    --text-body: #2D2D2D;
    --text-header: #1A1A2E;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Outfit', sans-serif; color: var(--text-body); background-color: var(--bg-offwhite); line-height: 1.6; }

/* ===== NAVIGATION ===== */
nav.site-nav { position: fixed; top: 0; left: 0; right: 0; background: #1A1A2E; z-index: 1000; padding: 1rem 2rem; display: flex; justify-content: space-between; align-items: center; transition: all 0.3s ease; border-bottom: 1px solid transparent; }
nav.site-nav.scrolled { backdrop-filter: blur(10px); border-bottom-color: rgba(232, 134, 12, 0.2); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); }
.nav-logo-section { display: flex; align-items: center; gap: 1rem; font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; font-weight: 600; color: white; text-decoration: none; }
.nav-logo-section svg { height: 40px; width: auto; }
.nav-links { display: flex; gap: 2rem; list-style: none; align-items: center; }
.nav-links a { color: white; text-decoration: none; font-size: 0.95rem; transition: color 0.3s ease; }
.nav-links a:hover { color: var(--primary-gold); }
.dropdown { position: relative; }
.dropdown-menu { position: absolute; top: 100%; left: 0; background: white; border: 1px solid #e0e0e0; border-radius: 8px; min-width: 200px; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all 0.3s ease; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); margin-top: 0.5rem; }
.dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu a { display: block; padding: 0.75rem 1.5rem; color: var(--text-body); text-decoration: none; transition: background 0.3s ease; }
.dropdown-menu a:hover { background: var(--bg-warm); color: var(--primary-orange); }
.nav-social { display: flex; gap: 1rem; align-items: center; }
.nav-social a { color: white; font-size: 1.1rem; transition: color 0.3s ease; }
.nav-social a:hover { color: var(--primary-gold); }

/* ===== HERO ===== */
.hero { height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; background: linear-gradient(135deg, var(--bg-warm) 0%, var(--bg-offwhite) 100%); padding: 2rem; text-align: center; margin-top: 60px; }
.hero svg { height: 150px; width: auto; margin-bottom: 2rem; animation: floatBalloon 4s ease-in-out infinite; }
@keyframes floatBalloon { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-20px); } }
.hero-title { font-family: 'Cormorant Garamond', serif; font-size: 4rem; font-weight: 700; color: var(--text-header); margin-bottom: 0.5rem; }
.hero-subtitle { font-size: 1.2rem; letter-spacing: 0.15em; color: var(--primary-orange); margin-bottom: 0.5rem; text-transform: uppercase; font-weight: 500; }
.hero-location { font-size: 1rem; color: var(--text-body); margin-bottom: 1.5rem; display: flex; align-items: center; justify-content: center; gap: 0.5rem; }
.hero-baseline { font-size: 1.1rem; color: var(--text-body); max-width: 600px; margin-bottom: 2.5rem; line-height: 1.8; }
.hero-ctas { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; }
.btn { padding: 0.9rem 2rem; font-size: 1rem; border: 2px solid; border-radius: 50px; cursor: pointer; transition: all 0.3s ease; font-family: 'Outfit', sans-serif; font-weight: 500; text-decoration: none; display: inline-block; }
.btn-filled { background: linear-gradient(135deg, var(--primary-orange), var(--primary-gold)); color: white; border-color: var(--primary-orange); }
.btn-filled:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(232, 134, 12, 0.3); }
.btn-outlined { background: transparent; color: var(--deep-charcoal); border-color: var(--deep-charcoal); }
.btn-outlined:hover { background: var(--deep-charcoal); color: white; transform: translateY(-2px); }

/* ===== SECTIONS ===== */
section { padding: 4rem 2rem; max-width: 1200px; margin: 0 auto; }
.section-title { font-family: 'Cormorant Garamond', serif; font-size: 2.8rem; font-weight: 700; color: var(--text-header); text-align: center; margin-bottom: 0.5rem; position: relative; display: inline-block; width: 100%; }
.section-title::after { content: ''; height: 4px; width: 60px; background: linear-gradient(90deg, var(--primary-orange), var(--primary-gold)); position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); border-radius: 2px; }
.section-subtitle { text-align: center; color: var(--text-body); font-size: 1rem; margin-bottom: 3rem; margin-top: 1.5rem; }

/* ===== TIMELINE ===== */
#actualites { background: var(--bg-offwhite); }
.timeline { position: relative; padding: 2rem 0; }
.timeline::before { content: ''; position: absolute; left: 50%; transform: translateX(-50%); width: 4px; height: 100%; background: linear-gradient(180deg, var(--primary-gold), var(--primary-orange)); }
.timeline-card { margin-bottom: 3rem; position: relative; }
.timeline-card:nth-child(odd) { margin-left: 0; margin-right: auto; width: 45%; }
.timeline-card:nth-child(even) { margin-left: auto; margin-right: 0; width: 45%; }
.timeline-card:nth-child(even) .card-content { text-align: right; }
.timeline-dot { position: absolute; width: 20px; height: 20px; background: var(--primary-gold); border: 4px solid var(--bg-offwhite); border-radius: 50%; top: 1rem; transform: translateX(-50%); box-shadow: 0 0 0 4px var(--primary-orange); z-index: 2; }
.timeline-card:nth-child(odd) .timeline-dot { left: 111.11%; }
.timeline-card:nth-child(even) .timeline-dot { left: -11.11%; }
.card-content { background: white; padding: 2rem; border-radius: 12px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); transition: all 0.3s ease; }
.card-content:hover { transform: translateY(-5px); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12); }
.date-badge { display: inline-block; background: var(--primary-orange); color: white; padding: 0.4rem 1rem; border-radius: 20px; font-size: 0.85rem; font-weight: 500; margin-bottom: 0.8rem; }
.card-content h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; color: var(--text-header); margin-bottom: 0.5rem; }

/* ===== HISTOIRE ===== */
#histoire { background: white; }
.histoire-container { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.histoire-text h2 { font-family: 'Cormorant Garamond', serif; font-size: 2rem; color: var(--text-header); margin-bottom: 1rem; }
.histoire-text p { margin-bottom: 1rem; color: var(--text-body); line-height: 1.8; }
.staff-svg { width: 100%; max-width: 400px; }

/* ===== CHORISTES ===== */
#choristes { background: var(--bg-offwhite); }
.group-photo-container { width: 100%; height: 300px; border-radius: 12px; overflow: hidden; margin-bottom: 2rem; }
.group-photo-container img { width: 100%; height: 100%; object-fit: cover; }
.group-photo-placeholder { width: 100%; height: 200px; background: linear-gradient(135deg, var(--primary-orange), var(--primary-gold)); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 2rem; color: white; font-size: 1rem; }
.group-photo-placeholder i { font-size: 3rem; margin-right: 1rem; }
.category-heading { font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; font-weight: 600; color: var(--text-header); margin-top: 2.5rem; margin-bottom: 1.5rem; padding-bottom: 0.8rem; border-bottom: 3px solid var(--primary-orange); }
.choristes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1.5rem; margin-bottom: 2rem; }
.choriste-card { background: white; border-radius: 12px; padding: 1.5rem; text-align: center; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); transition: all 0.3s ease; }
.choriste-card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12); }
.choriste-photo { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; margin: 0 auto 1rem; display: block; }
.choriste-initials { width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 1.2rem; color: white; margin: 0 auto 1rem; }
.choriste-card.soprano .choriste-initials { background: #FF6B6B; }
.choriste-card.alto .choriste-initials { background: #4ECDC4; }
.choriste-card.tenor .choriste-initials { background: #45B7D1; }
.choriste-card.basse .choriste-initials { background: #96CEB4; }
.choriste-card.direction .choriste-initials { background: var(--primary-orange); }
.choriste-card.musicien .choriste-initials { background: var(--primary-gold); }
.choriste-name { font-weight: 600; color: var(--text-header); margin-bottom: 0.3rem; }
.choriste-part { font-size: 0.85rem; color: var(--text-body); }

/* ===== REPERTOIRE ===== */
#repertoire { background: white; }
.repertoire-table { width: 100%; border-collapse: collapse; background: white; margin: 0 auto; table-layout: auto; border-radius: 12px; overflow: hidden; }
.repertoire-table th { background: var(--primary-orange); color: white; padding: 1rem; text-align: left; font-weight: 600; }
.repertoire-table td { padding: 1rem; border-bottom: 1px solid #eee; }
.repertoire-table tbody tr:nth-child(even) { background: var(--bg-offwhite); }
.repertoire-table tbody tr:hover { background: #f0f0f0; }
.filter-buttons { display: flex; gap: 1rem; justify-content: center; margin-bottom: 2rem; flex-wrap: wrap; }
.filter-btn { padding: 0.6rem 1.2rem; border: 2px solid var(--primary-orange); background: white; color: var(--primary-orange); border-radius: 25px; cursor: pointer; font-weight: 500; transition: all 0.3s ease; }
.filter-btn.active { background: var(--primary-orange); color: white; }
.filter-btn:hover { background: var(--primary-orange); color: white; }
.genre-badge { display: inline-block; padding: 0.3rem 0.8rem; border-radius: 15px; font-size: 0.8rem; font-weight: 500; color: white; }
.genre-classique { background: #8B7355; }
.genre-gospel { background: #4A4E69; }
.genre-variete { background: #C9184A; }
.genre-monde { background: #2A9D8F; }

/* ===== GALERIE ===== */
#galerie { background: var(--bg-offwhite); }
.gallery-tabs { display: flex; gap: 1rem; justify-content: center; margin-bottom: 2rem; }
.tab-btn { padding: 0.8rem 2rem; border: 2px solid var(--text-body); background: white; color: var(--text-body); border-radius: 25px; cursor: pointer; font-weight: 500; transition: all 0.3s ease; }
.tab-btn.active { background: var(--primary-orange); color: white; border-color: var(--primary-orange); }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.5rem; }
.gallery-card { background: linear-gradient(135deg, var(--primary-orange), var(--primary-gold)); border-radius: 12px; overflow: hidden; height: 250px; display: flex; align-items: center; justify-content: center; color: white; position: relative; cursor: pointer; transition: all 0.3s ease; }
.gallery-card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); }
.gallery-card img { width: 100%; height: 100%; object-fit: cover; }
.gallery-card i { font-size: 3rem; margin-right: 1rem; }
.gallery-card.video { background: linear-gradient(135deg, #4A4E69, #2A3555); }
.video-play { position: absolute; width: 60px; height: 60px; background: rgba(255, 255, 255, 0.9); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: #4A4E69; }
.gallery-card-title { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(0, 0, 0, 0.7); padding: 1rem; color: white; font-size: 0.95rem; }
.tab-content { display: none; }
.tab-content.active { display: block; }
.lightbox-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.9); display: flex; align-items: center; justify-content: center; z-index: 3000; }
.lightbox-content { position: relative; max-width: 90%; max-height: 90%; }
.lightbox-image { max-width: 100%; max-height: 80vh; object-fit: contain; }
.lightbox-close { position: absolute; top: -40px; right: 0; color: white; font-size: 2rem; cursor: pointer; }
.lightbox-title { color: white; text-align: center; margin-top: 1rem; font-size: 1rem; }

/* ===== CONTACT ===== */
#contact { background: white; }
.contact-container { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-top: 2rem; }
.contact-info { background: var(--bg-warm); padding: 2rem; border-radius: 12px; }
.contact-info h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; color: var(--text-header); margin-bottom: 1rem; }
.contact-item { display: flex; gap: 1rem; margin-bottom: 1.5rem; }
.contact-item i { color: var(--primary-orange); font-size: 1.3rem; min-width: 30px; }
.contact-item p { color: var(--text-body); line-height: 1.6; }
.contact-form { display: flex; flex-direction: column; gap: 1.5rem; }
.form-group { display: flex; flex-direction: column; }
.form-group label { font-weight: 500; color: var(--text-header); margin-bottom: 0.5rem; }
.form-group input, .form-group select, .form-group textarea { padding: 0.8rem; border: 2px solid #e0e0e0; border-radius: 8px; font-family: 'Outfit', sans-serif; font-size: 0.95rem; transition: border-color 0.3s ease; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--primary-orange); }
.form-group textarea { resize: vertical; min-height: 120px; }

/* ===== FLOATING CTA ===== */
.floating-cta { position: fixed; bottom: 2rem; right: 2rem; display: flex; flex-direction: column; gap: 1rem; opacity: 0; visibility: hidden; transform: translateY(20px); transition: all 0.3s ease; z-index: 500; }
.floating-cta.active { opacity: 1; visibility: visible; transform: translateY(0); }
.floating-cta .btn { padding: 0.7rem 1.5rem; font-size: 0.9rem; white-space: nowrap; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); }

/* ===== FOOTER ===== */
footer.site-footer { background: var(--deep-charcoal); color: white; padding: 3rem 2rem; margin-top: 4rem; }
.footer-content { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-bottom: 2rem; }
.footer-section h4 { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; margin-bottom: 1rem; color: var(--primary-gold); }
.footer-section ul { list-style: none; }
.footer-section ul li { margin-bottom: 0.5rem; }
.footer-section a { color: #ccc; text-decoration: none; transition: color 0.3s ease; }
.footer-section a:hover { color: var(--primary-gold); }
.footer-social { display: flex; gap: 1.5rem; }
.footer-social a { font-size: 1.5rem; }
.footer-bottom { text-align: center; padding-top: 2rem; border-top: 1px solid rgba(255, 255, 255, 0.1); color: #999; font-size: 0.9rem; }

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

/* ===== VIDEO MODAL ===== */
.video-modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.8); display: flex; align-items: center; justify-content: center; z-index: 3000; }
.video-modal { background: white; border-radius: 12px; padding: 1rem; max-width: 700px; width: 95%; position: relative; }
.video-modal .close-btn { position: absolute; top: -30px; right: 0; color: white; font-size: 2rem; cursor: pointer; background: none; border: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-links, .nav-social { display: none; }
    .hero { margin-top: 60px; padding: 1.5rem; }
    .hero-title { font-size: 2.5rem; }
    .hero-ctas { flex-direction: column; width: 100%; }
    .btn { width: 100%; }
    .timeline::before { left: 20px; }
    .timeline-card:nth-child(odd), .timeline-card:nth-child(even) { width: calc(100% - 50px); margin-left: 50px !important; margin-right: 0 !important; }
    .timeline-card:nth-child(even) .card-content { text-align: left; }
    .timeline-card:nth-child(odd) .timeline-dot, .timeline-card:nth-child(even) .timeline-dot { left: -30px; }
    .histoire-container { grid-template-columns: 1fr; }
    .histoire-text h2 { font-size: 1.5rem; }
    .contact-container { grid-template-columns: 1fr; }
    .floating-cta { bottom: 1rem; right: 1rem; flex-direction: row; gap: 0.5rem; }
    .floating-cta .btn { padding: 0.6rem 1rem; font-size: 0.8rem; }
    .footer-content { grid-template-columns: 1fr; }
}
