/* ================================================================
   QiLuna - Stylesheet Intégrale (RANGÉE & RESPECTÉE)
   Palette: Rose Poudré (#D48B97) & Chocolat Sombre (#1A1616)
================================================================ */

:root {
    --primary-logo: #3f0000;
    --primary-bright: #D48B97; 
    --bg-dark: #1A1616;      
    --card-bg: #241E1E;      
    --text-main: #F5F0F0;    
    --text-muted: #B5A4A4;   
    --header-h: 75px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 1. BASE & RESET */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.7;
    font-size: 18px;
    overflow-x: hidden;
}
h1, h2, h3, h4 { 
    font-family: 'Fraunces', serif; 
    font-weight: 600;
    letter-spacing: -0.02em; 
}
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.section-padding { padding: 100px 0; }

/* 2. HEADER & NAVIGATION */
.main-header {
    height: var(--header-h);
    display: flex;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 9999;
    background: rgba(26, 22, 22, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent; 
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.header-scrolled {
    background: rgba(26, 22, 22, 0.98);
    border-bottom: 1px solid rgba(212, 139, 151, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}
.header-flex { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.logo img { height: 48px; width: auto; transition: opacity 0.3s ease; }
.nav-menu ul { display: flex; list-style: none; gap: 2.5rem; align-items: center; }
.nav-menu a { text-decoration: none; color: var(--text-main); font-size: 1rem; font-weight: 500; transition: var(--transition); position: relative; }
.nav-menu a:hover { color: var(--primary-bright); }
.btn-cta { background: var(--primary-bright); padding: 0.7rem 1.5rem; border-radius: 4px; font-weight: 600 !important; color: white !important; }
.burger { display: none; font-size: 2.5rem; cursor: pointer; color: var(--primary-bright); z-index: 10001; }

/* 3. HERO SECTION */
.hero {
    height: 80vh;
    background: url('images/hero.webp') center/cover no-repeat;
    display: flex; align-items: center; justify-content: center; text-align: center; position: relative;
}
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to bottom, rgba(26,22,22,0.1), rgba(26,22,22,1)); }
.hero-content { position: relative; z-index: 10; padding: 0 1rem; }
.hero-content h1 { 
    font-family: 'Fraunces', serif;
    font-size: 6.5rem; 
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: 1rem; 
    letter-spacing: -0.03em;
    color: var(--text-main);
}
.hero-content p { font-size: 1.2rem; font-weight: 300; letter-spacing: 4px; text-transform: uppercase; opacity: 0.9; }

/* 4. SECTIONS COMMUNES */
.section-title { font-size: 3.2rem; text-align: center; margin-bottom: 4rem; color: var(--primary-bright); }
.section-intro { text-align: center; max-width: 900px; margin: -2rem auto 5rem; font-size: 1.3rem; color: var(--text-muted); }
.welcome-section { padding-top: 120px; }
.welcome-card {
    background: var(--card-bg); padding: 5rem 2.5rem; border-radius: 20px;
    border-top: 4px solid var(--primary-bright); text-align: center;
}

/* 5. SERVICES & PLANNING */
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.service-card { 
    background: var(--card-bg); padding: 5rem 3rem; border-radius: 20px; text-align: center; 
    transition: var(--transition); display: flex; flex-direction: column; align-items: center;
}
.service-card:hover { transform: translateY(-10px); background: #2E2727; }
.card-icon { font-size: 4rem; color: var(--primary-bright); margin-bottom: 1.5rem; }
.service-card h3 { font-size: 2.2rem; margin-bottom: 1.5rem; color: var(--primary-bright); }
.service-card p { font-size: 1.15rem; color: var(--text-main); line-height: 1.8; max-width: 450px; }

.planning-section { background: #151111; padding: 100px 0; }
.schedule-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.day-column { background: var(--card-bg); padding: 35px; border-radius: 12px; display: flex; flex-direction: column; }
.day-column.highlighted { border: 1px solid rgba(212, 139, 151, 0.4); background: rgba(212, 139, 151, 0.03); }
.day-name { color: var(--primary-bright); margin-bottom: 2rem; font-size: 2.2rem; border-bottom: 1px solid #3E3333; padding-bottom: 10px; }
.class-item { margin-bottom: 40px; }
.time { font-size: 0.95rem; color: var(--primary-bright); font-weight: 700; display: block; margin-bottom: 8px; }
.class-item h4 { font-size: 1.4rem; margin-bottom: 5px; color: #fff; }
.teacher { font-size: 1.05rem; color: var(--text-muted); }
.teacher a { color: var(--text-main); text-decoration: none; border-bottom: 1px solid rgba(212, 139, 151, 0.3); transition: var(--transition); }
.teacher a:hover { color: var(--primary-bright); border-color: var(--primary-bright); }
.btn-mini { margin-top: auto; font-size: 0.9rem; color: var(--primary-bright); text-decoration: none; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }

/* 6. TARIFS & CONDITIONS */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 40px; margin-bottom: 80px; }
.price-card { background: var(--card-bg); padding: 4rem 3rem; border-radius: 20px; border: 1px solid rgba(212, 139, 151, 0.1); display: flex; flex-direction: column; min-height: 700px; }
.price-header { text-align: center; margin-bottom: 2.5rem; }
.price-header .amount { font-size: 2.8rem; font-weight: 800; color: var(--primary-bright); }
.card-content { flex-grow: 1; }
.features { list-style: none; margin-top: 1rem; }
.features li { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; font-size: 1.1rem; }
.features ion-icon { color: var(--primary-bright); font-size: 1.4rem; }
.price-row-stack { padding: 1.2rem 0; border-bottom: 1px solid #3E3333; }
.price-row-stack:last-child { border-bottom: none; }
.row-main { display: flex; justify-content: space-between; align-items: center; font-weight: 600; }
.row-main strong { color: var(--primary-bright); font-size: 1.2rem; }
.row-details { font-size: 0.9rem; color: var(--text-muted); }
.row-promo, .row-info { font-size: 0.85rem; color: var(--primary-bright); font-style: italic; margin-top: 4px; }
.staff-mention { color: var(--primary-bright); font-style: italic; text-align: center; padding: 12px; background: rgba(212, 139, 151, 0.05); border-radius: 8px; margin-bottom: 1rem; }
.btn-price { display: block; text-align: center; text-decoration: none; color: #fff; padding: 1.2rem; border: 1px solid var(--primary-bright); border-radius: 6px; font-weight: 600; margin-top: 2rem; transition: var(--transition); }
.btn-price:hover { background: var(--primary-bright); }

.conditions-box { 
    background: rgba(212, 139, 151, 0.05); border: 1px solid rgba(212, 139, 151, 0.15); 
    padding: 4rem; border-radius: 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 50px; margin-bottom: 100px; 
}
.condition-item { display: flex; gap: 25px; align-items: flex-start; }
.condition-item ion-icon { font-size: 3.5rem; color: var(--primary-bright); flex-shrink: 0; line-height: 1; }
.condition-item h4 { font-size: 1.5rem; margin-bottom: 12px; color: #fff; }

.amenities { text-align: center; border-top: 1px solid #3E3333; padding-top: 80px; margin-top: 50px; }
.amenities-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 40px 60px; margin-top: 50px; }
.amenity { display: flex; align-items: center; gap: 15px; font-weight: 500; }
.amenity ion-icon { font-size: 2.5rem; color: var(--primary-bright); }

/* 7. GALERIE */
.gallery-section { background: #151111; }
.image-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 50px; }
.gallery-item { overflow: hidden; border-radius: 15px; position: relative; background: var(--card-bg); }
.gallery-item-main { grid-column: span 2; height: 450px; }
.gallery-item:not(.gallery-item-main) { height: 300px; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(15%); transition: transform 0.8s cubic-bezier(0.2, 1, 0.3, 1), filter 0.5s ease; }
.gallery-item:hover img { filter: grayscale(0%); transform: scale(1.06); }

/* 8. CONTACT & ACCÈS */
.contact-grid-dual { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; min-height: 500px; }
.contact-card-main { background: var(--card-bg); padding: 3rem; border-radius: 20px; border: 1px solid rgba(212, 139, 151, 0.1); display: flex; flex-direction: column; justify-content: center; }
.contact-card-main h3 { font-family: 'Fraunces', serif; color: var(--primary-bright); font-size: 2.2rem; margin-bottom: 2rem; }
.info-group { margin-bottom: 2rem; }
.contact-item { display: flex; align-items: flex-start; gap: 20px; margin-bottom: 20px; }
.contact-item ion-icon { font-size: 1.8rem; color: var(--primary-bright); flex-shrink: 0; }
.contact-item p, .contact-item a, .contact-item span { color: var(--text-main); text-decoration: none; font-size: 1.1rem; line-height: 1.5; transition: var(--transition); }
.contact-item a:hover { color: var(--primary-bright); }
.contact-card-map { border-radius: 20px; overflow: hidden; box-shadow: 0 15px 45px rgba(0,0,0,0.4); border: 1px solid rgba(212, 139, 151, 0.1); }
.contact-card-map iframe { display: block; filter: grayscale(0.2) contrast(1.1); }
.location-hint { display: block; font-size: 0.9rem; color: var(--text-muted); margin-top: 4px; line-height: 1.4; font-style: italic; opacity: 0.85; font-weight: 400; }
.contact-card-main .location-hint { padding-left: 10px; border-left: 1px solid rgba(212, 139, 151, 0.3); margin-left: 2px; }

/* 9. EVENEMENTS BANNER */
.events-banner { background-color: #d8b4b4; padding: 100px 0; text-align: center; margin: 40px 0; }
.events-banner h2 { color: #3e2723; font-size: 2.8rem; margin-bottom: 25px; }
.events-banner p { color: #4e342e; max-width: 800px; margin: 0 auto 45px; font-size: 1.2rem; line-height: 1.7; }
.events-buttons { display: flex; justify-content: center; gap: 25px; flex-wrap: wrap; }
.btn-event { 
    display: flex; align-items: center; gap: 12px; padding: 18px 35px; border-radius: 50px; font-weight: 600; 
    text-decoration: none; transition: all 0.3s ease; font-size: 1.05rem; color: #ffffff; 
    background-color: #5d4037; box-shadow: 0 4px 15px rgba(0,0,0,0.1); 
}
.btn-event:hover { background-color: #3e2723; box-shadow: 0 10px 25px rgba(0,0,0,0.2); color: #fbe9e7; }
.btn-event ion-icon { font-size: 1.5rem; }
.btn-info-contact { 
    display: inline-block; margin-top: 12px; padding: 8px 15px; background: transparent; 
    border: 1px solid var(--primary-bright); color: var(--primary-bright); border-radius: 5px; 
    font-size: 0.85rem; text-decoration: none; font-weight: 500; transition: 0.3s; 
}
.btn-info-contact:hover { background: var(--primary-bright); color: white; }

/* 10. FOOTER */
.main-footer { padding: 80px 0 40px; background: #151111; border-top: 1px solid #3E3333; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.5fr 1.5fr; gap: 60px; margin-bottom: 60px; }
.footer-column h4 { font-family: 'Fraunces', serif; color: var(--primary-bright); font-size: 1.4rem; margin-bottom: 1.5rem; }
.footer-logo { font-family: 'Fraunces', serif; font-size: 2.5rem; font-weight: 700; color: var(--text-main); margin-bottom: 1rem; }
.brand p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }
.footer-column ul { list-style: none; }
.footer-column ul li { margin-bottom: 10px; }
.footer-column a { color: var(--text-muted); text-decoration: none; transition: var(--transition); font-size: 1rem; }
.footer-column a:hover { color: var(--primary-bright); padding-left: 5px; }
.social-links { display: flex; gap: 20px; margin-top: 1.5rem; }
.social-links ion-icon { font-size: 1.8rem; color: var(--text-muted); transition: var(--transition); }
.social-links a:hover ion-icon { color: var(--primary-bright); transform: translateY(-3px); }
.footer-bottom { padding-top: 40px; border-top: 1px solid #3E3333; text-align: center; }
.footer-bottom .copyright { font-size: 0.85rem; color: #665555; }
.footer-btn { 
    display: inline-block; margin-top: 1rem; text-align: center; width: 100%; background: transparent; 
    color: var(--primary-bright); border: 1px solid var(--primary-bright); padding: 0.8rem 1.2rem; 
    border-radius: 4px; text-decoration: none; font-weight: 600; font-size: 0.9rem; transition: var(--transition); 
}
.footer-btn:hover { background: var(--primary-bright); color: #fff; }

/* 11. SOUS-PAGES & FAQ */
.subpage-header {
    width: 100%; min-height: 400px; display: flex; flex-direction: column; justify-content: center; align-items: center;
    padding-top: 90px; padding-left: 20px; padding-right: 20px; background-color: #1F1A1A;
    background-image: radial-gradient(circle at top right, rgba(212, 139, 151, 0.05), transparent);
    border-bottom: 1px solid rgba(212, 139, 151, 0.2); text-align: center; margin-bottom: 60px;
}
.subpage-header h1 { font-size: 4rem; color: var(--primary-bright); margin-bottom: 1rem; line-height: 1.1; }
.subpage-header p { font-size: 1.2rem; color: var(--text-muted); max-width: 750px; margin: 0 auto; }

.faq-container { max-width: 850px; margin: 0 auto 100px; }
.faq-group { margin-bottom: 50px; }
.faq-group h3 { 
    color: var(--primary-bright); margin-bottom: 25px; font-size: 1.8rem; 
    border-bottom: 1px solid rgba(212, 139, 151, 0.1); padding-bottom: 10px;
}
details.faq-item { background: var(--card-bg); margin-bottom: 15px; border-radius: 12px; border: 1px solid rgba(212, 139, 151, 0.1); transition: var(--transition); }
details.faq-item summary { 
    padding: 22px 28px; list-style: none; cursor: pointer; font-weight: 600; font-size: 1.15rem; 
    display: flex; justify-content: space-between; align-items: center; color: var(--text-main); 
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after { content: '+'; font-size: 1.6rem; color: var(--primary-bright); transition: transform 0.3s ease; }
details.faq-item[open] { border-color: var(--primary-bright); }
details.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-answer { padding: 0 28px 28px; color: var(--text-muted); line-height: 1.8; }

/* 12. ÉQUIPE (PEOPLE) */
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; margin-bottom: 100px; }
.team-member-card {
    background: var(--card-bg); border-radius: 12px; border: 1px solid rgba(212, 139, 151, 0.1);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2); overflow: hidden; display: flex; flex-direction: column;
    transition: var(--transition); max-width: 600px; margin: 0 auto; width: 100%;
}
.team-member-card:hover { transform: translateY(-8px); box-shadow: 0 10px 35px rgba(0, 0, 0, 0.3); border-color: var(--primary-bright); }
.member-image { width: 100%; height: 350px; overflow: hidden; position: relative; }
.member-image img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(20%); transition: 0.6s ease; }
.team-member-card:hover .member-image img { transform: scale(1.05); filter: grayscale(0%); }
.member-content { padding: 35px; display: flex; flex-direction: column; flex-grow: 1; }
.member-content h3 { font-size: 2rem; color: var(--primary-bright); margin-bottom: 10px; }
.member-content .role { font-size: 1.2rem; color: var(--text-muted); margin-bottom: 25px; text-transform: uppercase; letter-spacing: 1px; }
.member-content p { font-size: 1.05rem; color: var(--text-main); margin-bottom: 30px; flex-grow: 1; }
.member-links { display: flex; flex-wrap: wrap; gap: 20px; margin-top: auto; padding-top: 25px; border-top: 1px solid rgba(212, 139, 151, 0.1); }
.member-links ion-icon { font-size: 2rem; color: var(--text-muted); transition: var(--transition); }
.member-links a:hover ion-icon { color: var(--primary-bright); transform: translateY(-3px); }

/* 13. FORMULAIRE CONTACT */
.contact-form-section { max-width: 800px; margin: 60px auto 100px; background: var(--card-bg); padding: 40px; border-radius: 15px; border: 1px solid rgba(212, 139, 151, 0.1); }
.form-group { margin-bottom: 25px; }
.form-group label { display: block; margin-bottom: 8px; color: var(--primary-bright); font-weight: 500; font-size: 0.95rem; }
.form-group input, .form-group textarea { width: 100%; padding: 15px; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(212, 139, 151, 0.2); border-radius: 8px; color: var(--text-main); transition: var(--transition); }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary-bright); background: rgba(212, 139, 151, 0.05); }
.btn-submit { width: 100%; padding: 18px; background: var(--primary-bright); color: white; border: none; border-radius: 8px; font-weight: 600; cursor: pointer; transition: var(--transition); text-transform: uppercase; letter-spacing: 1px; }


/* ================================================================
   14. RESPONSIVE (REGROUPÉ & OPTIMISÉ)
================================================================ */

/* --- LARGE TABLET / DESKTOP SMALL --- */
@media (max-width: 1100px) {
    .schedule-grid { grid-template-columns: repeat(2, 1fr); }
}

/* --- BREAKPOINT 1024px (BURGER ACTIVATION) --- */
@media (max-width: 1024px) {
    .hero-content h1 { font-size: 5rem; }
    .header-flex { display: flex; justify-content: space-between; align-items: center; height: 100%; }
    .burger { display: flex; align-items: center; justify-content: center; cursor: pointer; transform: translateY(3px); }
    .burger ion-icon { font-size: 2.5rem; display: block; }
    
    .nav-menu { 
        position: fixed; top: 0; right: -100%; width: 100%; height: 100vh; 
        background: var(--bg-dark); padding: 120px 2rem; transition: 0.5s; z-index: 10000; 
    }
    .nav-menu.active { right: 0; }
    .nav-menu ul { flex-direction: column; gap: 3rem; }
}

/* --- TABLETS PORTRAIT --- */
@media (max-width: 992px) {
    .pricing-grid, .services-grid, .team-grid, .contact-grid-dual { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
    .team-member-card { max-width: 100%; }
    .member-image { height: 300px; }
    .member-content { padding: 25px; }
}

/* --- MOBILE --- */
@media (max-width: 768px) {
    .hero-content h1 { font-size: 3.5rem; }
    .subpage-header { min-height: 320px; padding-top: 80px; }
    .subpage-header h1 { font-size: 2.8rem; }
    .image-gallery { grid-template-columns: 1fr; }
    .gallery-item-main, .gallery-item { grid-column: span 1; height: 250px; }
    .contact-form-section { padding: 25px; margin: 40px 15px; }
    details.faq-item summary { font-size: 1rem; padding: 18px 22px; }

    /* Planning Mobile */
    .schedule-grid { display: flex; flex-direction: column; gap: 20px; }
    .day-column { width: 100%; margin-bottom: 10px; }
    .day-column.highlighted { transform: none !important; margin-top: 20px; }
    .class-item { padding: 15px; }

    /* Conditions Box Mobile */
    .conditions-box { grid-template-columns: 1fr; gap: 30px; }
    .condition-item { flex-direction: column; align-items: center; text-align: center; padding: 0 15px; }
    .condition-item ion-icon { font-size: 2.5rem; margin-bottom: 10px; margin-right: 0; }
    
    /* GOOGLE MAP Mobile */
    .contact-card-map { height: 400px; order: 2; }
    .contact-card-map iframe { height: 100% !important; width: 100% !important; }
    .contact-grid-dual { gap: 20px; }
}

/* --- SMALL MOBILE --- */
@media (max-width: 600px) {
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .social-links { justify-content: center; }
}
