/* Variables CSS */
:root {
    --bg-main: #0A0F1E; 
    --bg-secondary: #000000; 
    --accent-gold: #D4AF37; 
    --btn-purple: #6A1B9A; 
    --btn-purple-hover: #8E24AA;
    --text-light: #FFFFFF;
    --text-muted: #CCCCCC;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; 
}

body {
    background-color: var(--bg-main);
    color: var(--text-light);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--accent-gold);
}

a {
    text-decoration: none;
    color: var(--text-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* En-tête pour les pages internes */
.page-header {
    padding: 140px 20px 60px;
    text-align: center;
    background: linear-gradient(to bottom, rgba(10,15,30,0.8), var(--bg-main));
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.page-header p {
    color: var(--text-muted);
    font-size: 1.2rem;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
}

/* Étoiles */
.stars {
    color: var(--accent-gold);
    font-size: 1.5rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
    display: block;
}

.stars-small {
    font-size: 1.2rem;
}

/* Boutons */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--btn-purple);
    color: var(--text-light);
}

.btn-primary:hover {
    background-color: var(--btn-purple-hover);
    transform: scale(1.05);
}

.btn-secondary {
    background-color: transparent;
    color: var(--accent-gold);
    border: 1px solid var(--accent-gold);
}

.btn-secondary:hover {
    background-color: var(--accent-gold);
    color: var(--bg-main);
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(10, 15, 30, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo-img {
    max-height: 60px;
    width: auto;
    transition: transform 0.3s ease;
    display: block;
}

.logo-img:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 25px;
}

.nav-links a {
    font-size: 1rem;
    transition: color 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--accent-gold);
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--accent-gold);
    transition: all 0.3s ease;
}

/* Hero Section */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: url('https://via.placeholder.com/1920x1080/0A0F1E/0A0F1E?text=Fond+Magie') center/cover no-repeat;
    padding: 100px 20px 60px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10,15,30,0.7), rgba(10,15,30,1));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
    line-height: 1.2;
}

.slogan {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.stats-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
    border-top: 1px solid rgba(212, 175, 55, 0.3);
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    padding: 20px 0;
}

.stat-item strong {
    display: block;
    font-size: 2rem;
    color: var(--accent-gold);
}

.stat-item span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.hero-video {
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* About / Mon Histoire Section (Home) */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-image img {
    width: 100%;
    max-width: 400px;
    height: auto;
    margin: 0 auto;
    display: block;
    border: 2px solid var(--accent-gold);
    border-radius: 8px;
}

.timeline {
    margin-top: 30px;
    border-left: 2px solid var(--btn-purple);
    padding-left: 20px;
}

.timeline-item {
    margin-bottom: 20px;
    cursor: pointer;
}

.timeline-title {
    font-size: 1.2rem;
    color: var(--text-light);
    position: relative;
}

.timeline-title::before {
    content: '';
    position: absolute;
    left: -27px;
    top: 5px;
    width: 12px;
    height: 12px;
    background-color: var(--accent-gold);
    border-radius: 50%;
}

.timeline-content {
    display: none;
    color: var(--text-muted);
    margin-top: 5px;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

@media (min-width: 768px) and (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.service-card {
    background-color: var(--bg-main);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.1);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-gold);
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    display: block;
}

.service-card:nth-child(1) img { object-position: center 30%; } 
.service-card:nth-child(2) img { object-position: center 20%; } 
.service-card:nth-child(3) img { object-position: center 40%; } 
.service-card:nth-child(4) img { object-position: center 50%; } 

.service-card h3 { margin-bottom: 10px; }

.service-card p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 0.9rem;
    flex-grow: 1;
}

/* Événements Grid */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.event-card {
    background: var(--bg-secondary);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.event-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(106, 27, 154, 0.3);
    border-color: var(--accent-gold);
}

.event-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border: none;
}

.event-content {
    padding: 25px;
    flex-grow: 1;
}

.event-content h3 {
    margin-bottom: 10px;
    color: var(--accent-gold);
}

.event-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Contact Form */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: var(--accent-gold);
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px;
    background-color: var(--bg-secondary);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--text-light);
    border-radius: 4px;
    font-family: var(--font-body);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
}

.contact-info p {
    margin-bottom: 10px;
}

.map-container {
    margin-top: 20px;
}

/* Footer */
footer {
    background-color: var(--bg-secondary);
    text-align: center;
    padding: 30px 20px;
    position: relative;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    margin-top: 60px;
}

.social-links {
    margin-bottom: 15px;
}

.social-links a {
    color: var(--accent-gold);
    margin: 0 10px;
}

#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--btn-purple);
    color: white;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
    cursor: pointer;
    display: none;
    z-index: 999;
}

/* Modals */
.modal {
    display: none; 
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background-color: var(--bg-main);
    padding: 40px 20px;
    border: 1px solid var(--accent-gold);
    border-radius: 8px;
    max-width: 600px;
    width: 100%;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    color: var(--text-muted);
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
}

/* Animations Scroll */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design Globale */
@media (max-width: 768px) {
    .hamburger { display: block; z-index: 1001; }
    .logo-img { max-height: 50px; }

    #nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: var(--bg-main);
        flex-direction: column;
        justify-content: center;
        transition: right 0.3s ease-in-out;
        border-left: 1px solid var(--accent-gold);
    }

    #nav-menu.active { right: 0; }
    .nav-links { flex-direction: column; gap: 30px; }
    .hero-content h1 { font-size: 2.2rem; }
    .page-header h1 { font-size: 2rem; }
    .stats-row { gap: 20px; padding: 15px 0; }
    .stat-item { width: 40%; }
    .about-grid, .contact-grid { grid-template-columns: 1fr; }
    .hero-video iframe { height: 200px; }
    .container { padding: 60px 15px; }
    .services-grid { grid-template-columns: 1fr; }
}

/* --- SECTION COLLABORATIONS STARS MODIFIÉE --- */
.stars-grid {
    display: grid;
    /* Colonnes légèrement plus fines pour s'adapter au ratio vertical */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.stars-grid .star-card {
    background: var(--bg-secondary);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 360px; /* Évite que la carte s'étire de façon moche */
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.stars-grid .star-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(106, 27, 154, 0.3);
}

/* Nouveau Wrapper pour les Shorts (taille intermédiaire) */
.video-wrapper {
    position: relative;
    width: 100%;
    height: 400px; /* Taille parfaite pour desktop : pas trop petit, pas énorme */
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.video-wrapper iframe {
    height: 100%;
    aspect-ratio: 9 / 16;
    border: none;
}

.stars-grid .event-content {
    padding: 20px;
    text-align: center;
    flex-grow: 1;
}

.stars-grid h3 {
    margin-bottom: 12px;
    font-size: 1.4rem;
    color: var(--accent-gold);
}

.stars-grid p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Responsive spécifiquement pour la grille des stars */
@media (max-width: 768px) {
    .stars-grid {
        grid-template-columns: 1fr; /* 1 seule colonne sur mobile */
        gap: 25px;
    }
    
    .video-wrapper {
        height: 320px; /* Taille mobile confortable */
    }
}