/* Variables CSS pour les couleurs personnalisables */
:root {
    --h1-color: #FFFFFF;
    --h2-color: #FFFFFF;
    --h3-color: #FFFFFF;
    --text-color: #FFFFFF;
    --text-hover-color: #004B3D;
    --background-color: #F8F9FA;
    --background-color2: #003B30;
    --navbar-color: #003B30;
    --footer-color: #1A1A1A;
    --navbar-text-color: #FFFFFF;
    --navbar-hover-color: #004B3D;
    --footer-text-color: #FFFFFF;
    --footer-hover-color: #CCCCCC;
    
    /* Nouvelles variables pour un design moderne */
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --primary-color: #667eea;
    --accent-color: #4facfe;
    --shadow-light: 0 2px 15px rgba(0,0,0,0.08);
    --shadow-medium: 0 5px 25px rgba(0,0,0,0.15);
    --shadow-heavy: 0 10px 40px rgba(0,0,0,0.2);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-secondary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Variables pour le nouveau système de thème */
    --header-bg: var(--navbar-color);
    --header-text: var(--navbar-text-color);
    --header-link: var(--navbar-text-color);
    --header-link-hover: var(--navbar-hover-color);
    --header-border: rgba(255, 255, 255, 0.1);
    --footer-bg: var(--footer-color);
    --footer-text: var(--footer-text-color);
    --footer-link: var(--footer-text-color);
    --footer-link-hover: var(--footer-hover-color);
    --footer-border: rgba(255, 255, 255, 0.1);
}

/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html.theme-loading body {
    opacity: 0;
    transition: opacity 0.2s ease-in;
}

body {
    font-family: var(--font-primary);
    line-height: 1.7;
    color: #333;
    background-color: var(--background-color);
    overflow-x: hidden;
}

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@supports (content-visibility: auto) {
    #about,
    #services,
    #artists,
    #events,
    #news,
    #contact,
    footer {
        content-visibility: auto;
        contain-intrinsic-size: 1000px;
    }
}

/* Typography moderne */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation moderne */
.navbar {
    background: var(--header-bg, rgba(0, 59, 48, 0.95)) !important;
    color: var(--header-text, #FFFFFF) !important;
    backdrop-filter: blur(20px);
    transition: var(--transition);
    padding: 1rem 0;
    box-shadow: var(--shadow-light);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar.scrolled {
    background: rgba(0, 59, 48, 0.98) !important;
    padding: 0.5rem 0;
    box-shadow: var(--shadow-medium);
}

.navbar-brand {
    font-family: var(--font-secondary);
    font-weight: 800;
    font-size: 1.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-brand img {
    max-height: 45px;
    filter: brightness(1.2);
}

.navbar-nav .nav-link {
    color: var(--header-link, var(--navbar-text-color)) !important;
    font-weight: 500;
    font-size: 0.95rem;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem !important;
    border-radius: 25px;
    transition: var(--transition);
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--navbar-hover-color) !important;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: var(--transition);
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
    width: 80%;
}

/* Hero Section moderne */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Permettre de surcharger le background via JavaScript */
.hero-section[data-custom-bg="true"] {
    background: transparent !important;
    background-image: none !important;
    background-color: transparent !important;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.hero-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: brightness(0.7);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--hero-overlay-bg, linear-gradient(135deg, rgba(102, 126, 234, 0.8) 0%, rgba(118, 75, 162, 0.8) 100%));
    z-index: 2;
    opacity: var(--hero-overlay-opacity, 1);
    display: var(--hero-overlay-display, block);
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    min-height: clamp(420px, 55vh, 640px);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 2rem;
    font-size: 0.9rem;
    font-weight: 500;
    min-height: 2.6rem;
}

.hero-badge i {
    color: #ffd700;
    animation: pulse 2s infinite;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
    min-height: 2.8em;
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    font-weight: 400;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    min-height: 4.0em;
}

/* Empêcher la déformation des images (mobile) */
@media (max-width: 768px) {
    .service-image,
    .event-image,
    .news-image {
        width: 100% !important;
        height: 180px !important;
        object-fit: cover !important;
        object-position: center center !important;
        display: block;
    }
    .artist-photo {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
}

@media (max-width: 576px) {
    .service-image,
    .event-image,
    .news-image {
        height: 160px !important;
    }
    .artist-photo-wrap {
        width: 96px;
        height: 96px;
    }
    .artist-photo {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
}

/* Désactiver badge / CTA / statistiques du hero */
.hero-badge,
.hero-buttons,
.hero-stats {
    display: none !important;
}

.hero-buttons {
    margin-bottom: 3rem;
    min-height: 4rem;
}

.hero-buttons .btn {
    padding: 1rem 2.5rem;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.hero-buttons .btn-primary {
    background: var(--primary-gradient);
    border: none;
    box-shadow: var(--shadow-medium);
}

.hero-buttons .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-heavy);
}

.hero-buttons .btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.hero-buttons .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
    min-height: 5rem;
}

.stat-item {
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-item p {
    font-size: 0.9rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.scroll-down {
    display: block;
    width: 50px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    text-align: center;
    line-height: 46px;
    color: white;
    text-decoration: none;
    transition: var(--transition);
    animation: bounce 2s infinite;
}

.scroll-down:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

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

/* Sections modernes */
.section-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-align: center;
    position: relative;
    /* Utiliser la couleur h2 du thème au lieu du gradient fixe */
    color: var(--h2-color, var(--text-color, #000000)) !important;
    /* Supprimer le gradient transparent pour que le texte soit visible */
    -webkit-text-fill-color: var(--h2-color, var(--text-color, #000000)) !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    /* Utiliser la couleur h2 ou primary pour la ligne */
    background: var(--h2-color, var(--primary-color, #667eea));
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted-color, var(--text-color, #666666));
    text-align: center;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.py-5 {
    padding: 6rem 0;
}

.bg-light {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    position: relative;
}

.bg-light::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23000" opacity="0.02"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

/* About Section */
.about-video {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.about-video video {
    width: 100%;
    height: auto;
}

/* Services Cards modernes */
.service-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    height: 100%;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: var(--transition);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.service-icon {
    font-size: 3.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    display: block;
    transition: var(--transition);
}

.service-image-container {
    margin-bottom: 1.5rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

.service-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
    transition: var(--transition);
}

.service-card:hover .service-image {
    transform: scale(1.05);
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #333;
    font-family: var(--font-secondary);
}

.service-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 1rem;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 25px;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.service-price:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.service-actions {
    text-align: center;
}

.service-actions .btn {
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.service-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.service-tags {
    margin-bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.service-tags .tag {
    background: var(--primary-gradient);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}


.service-description {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-size: 0.95rem;
}


/* Events Cards */
.event-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.event-card:hover {
    transform: translateY(-5px);
}

.event-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center center;
    aspect-ratio: 16/9;
}

.event-content {
    padding: 1.5rem;
}

.event-title {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--h3-color);
}

.event-description {
    color: #666;
    margin-bottom: 1rem;
}

.event-date {
    color: inherit;
    font-weight: bold;
}

/* News Cards */
.news-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

/* Artist Cards */
.artist-card {
    background: var(--surface-color, var(--card-bg, #ffffff));
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
    height: 100%;
    color: var(--text-color, var(--card-text, #111827));
    border: 1px solid var(--border-color, rgba(255,255,255,0.12));
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
    background-clip: padding-box;
    min-height: 520px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.artistsSwiper .swiper-slide {
    display: flex;
    justify-content: center;
}

.artist-category-title {
    font-weight: 700;
    margin: 2rem 0 1rem;
    text-align: center;
}

.artist-category-section {
    margin-bottom: 2.5rem;
}

.artist-card:hover {
    transform: translateY(-5px);
}

.artist-photo-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--border-color, #f1f1f1);
    margin-left: auto;
    margin-right: auto;
}

.artist-photo {
    width: 100%;
    height: 100%;
    border-radius: 0;
    object-fit: cover;
}

.artist-card img.artist-photo {
    max-width: 100%;
    max-height: 100%;
}

.artist-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--h3-color);
}

.artist-bio {
    color: var(--text-muted-color, #666);
    margin-bottom: 1rem;
}

.artist-platforms {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.75rem;
}

.artist-platform-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #0f0f0f;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.15);
}

.artist-actions .btn {
    border-radius: 20px;
}

@media (max-width: 768px) {
    .artist-card {
        padding: 1.25rem;
    }
    .artist-photo {
        width: 110px;
        height: 110px;
    }
    .artist-name {
        font-size: 1.1rem;
    }
    .artist-bio {
        font-size: 0.95rem;
    }
}

@media (max-width: 576px) {
    .artist-card {
        padding: 1rem;
    }
    .artist-photo {
        width: 96px;
        height: 96px;
    }
    .artist-platforms {
        gap: 0.35rem;
    }
    .artist-platform-link {
        width: 32px;
        height: 32px;
    }
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center center;
    aspect-ratio: 16/9;
}

/* Forcer l'affichage correct des images d'actualités */
.news-card .news-image,
.newsSwiper .news-image {
    width: 100% !important;
    height: 200px !important;
    object-fit: cover !important;
    object-position: center center !important;
    display: block;
}

.news-content {
    padding: 1.5rem;
}

@media (max-width: 768px) {
    .news-card .news-image,
    .newsSwiper .news-image {
        height: 180px !important;
    }
}

@media (max-width: 576px) {
    .news-card .news-image,
    .newsSwiper .news-image {
        height: 160px !important;
    }
}

.news-title {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--h3-color);
}

.news-excerpt {
    color: #666;
    margin-bottom: 1rem;
}

.news-date {
    color: #999;
    font-size: 0.9rem;
}

/* Contact Form */
.form-control {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
    transition: border-color 0.3s ease;
    background: #ffffff !important;
    color: #111111 !important;
}

.form-control::placeholder {
    color: #6b7280;
}

.form-control:focus {
    border-color: var(--navbar-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 59, 0.25);
}

/* Buttons */
.btn-primary {
    background-color: var(--navbar-color);
    border-color: var(--navbar-color);
    border-radius: 25px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--text-hover-color);
    border-color: var(--text-hover-color);
    transform: translateY(-2px);
}

/* Footer */
footer {
    background-color: var(--footer-bg, var(--footer-color));
    color: var(--footer-text, var(--footer-text-color));
    border-top: 1px solid var(--footer-border, rgba(255, 255, 255, 0.1));
}

footer a {
    color: var(--footer-link, var(--footer-text-color));
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--footer-link-hover, var(--footer-hover-color));
}

.social-links a,
.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--footer-link, var(--footer-text));
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover,
.social-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--footer-link-hover, var(--primary-color));
    transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .py-5 {
        padding: 2rem 0;
    }
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Loading states */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--navbar-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Alert messages */
.alert {
    border-radius: 10px;
    border: none;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

/* ========================================
   OPTIMISATIONS MOBILES
   ======================================== */

/* Media queries pour mobile */
@media (max-width: 768px) {
    /* Typography mobile */
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
        min-height: 3.2em;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
        min-height: 4.4em;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    /* Navigation mobile */
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem !important;
        margin: 0.25rem 0;
        border-radius: 8px;
    }
    
    /* Hero section mobile */
    .hero-section {
        height: 100vh;
        padding: 2rem 0;
    }
    
    .hero-content {
        padding: 0 1rem;
        min-height: clamp(520px, 70vh, 700px);
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        min-height: 8rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        margin: 0;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
        margin-top: 2rem;
        min-height: 10rem;
    }
    
    .stat-item h3 {
        font-size: 2rem;
    }
    
    /* Sections mobile */
    .py-5 {
        padding: 3rem 0;
    }
    
    /* Cards mobile */
    .service-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .service-icon {
        font-size: 2.5rem;
    }
    
    .service-title {
        font-size: 1.3rem;
    }
    
    /* Event cards mobile */
    .event-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .event-date {
        font-size: 0.9rem;
    }
    
    .event-title {
        font-size: 1.2rem;
    }
    
    /* News cards mobile */
    .news-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .news-title {
        font-size: 1.2rem;
    }
    
    /* Contact form mobile */
    .contact-form {
        padding: 1.5rem;
    }
    
    .form-control {
        font-size: 16px; /* Évite le zoom sur iOS */
    }
    
    /* Footer mobile */
    footer {
        padding: 2rem 0 1rem;
        text-align: center;
    }
    
    footer .row > div {
        margin-bottom: 2rem;
    }
    
    .social-links {
        justify-content: center;
        margin-top: 1rem;
    }
    
    /* Utilitaires mobile */
    .text-center-mobile {
        text-align: center;
    }
    
    .mb-mobile-3 {
        margin-bottom: 1rem;
    }
    
    .px-mobile-2 {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Tablettes */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-stats {
        gap: 2rem;
    }
    
    .service-card {
        padding: 2rem;
    }
    
    .py-5 {
        padding: 4rem 0;
    }
}

/* Très petits écrans */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .service-card,
    .event-card,
    .news-card {
        padding: 1rem;
    }
    
    .hero-buttons .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .stat-item h3 {
        font-size: 1.8rem;
    }
    
    .stat-item p {
        font-size: 0.8rem;
    }
}

/* Orientation paysage mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        height: auto;
        min-height: 100vh;
        padding: 2rem 0;
    }
    
    .hero-stats {
        flex-direction: row;
        gap: 1rem;
        margin-top: 1rem;
    }
    
    .stat-item h3 {
        font-size: 1.5rem;
    }
}

/* Améliorations de performance mobile */
@media (max-width: 768px) {
    /* Désactiver les animations coûteuses sur mobile */
    .service-card:hover,
    .event-card:hover,
    .news-card:hover {
        transform: none;
    }
    
    /* Optimiser les transitions */
    * {
        transition: none !important;
        animation: none !important;
    }
    
    /* Garder seulement les transitions essentielles */
    .btn,
    .nav-link,
    .form-control {
        transition: all 0.2s ease !important;
    }
}

/* Mode sombre pour mobile */
@media (max-width: 768px) and (prefers-color-scheme: dark) {
    .service-card,
    .event-card,
    .news-card {
        background: #2d3748;
        color: #e2e8f0;
        border-color: #4a5568;
    }
    
    .form-control {
        background: #2d3748;
        border-color: #4a5568;
        color: #e2e8f0;
    }
    
    .form-control:focus {
        background: #2d3748;
        border-color: #667eea;
        color: #e2e8f0;
    }
}

/* Améliorations d'accessibilité mobile */
@media (max-width: 768px) {
    /* Augmenter la taille des zones tactiles */
    .btn,
    .nav-link,
    .form-control {
        min-height: 44px;
    }
    
    /* Améliorer le contraste */
    .text-muted {
        color: #6c757d !important;
    }
    
    /* Espacement pour les doigts */
    .btn + .btn {
        margin-left: 0.5rem;
    }
    
    /* Focus visible */
    .btn:focus,
    .nav-link:focus,
    .form-control:focus {
        outline: 2px solid #667eea;
        outline-offset: 2px;
    }
}

/* Slides Swiper de services : même gabarit que artistes */
.mySwiper, .servicesSwiper { min-height: 560px; padding: 8px 0; }
.mySwiper .swiper-wrapper, .servicesSwiper .swiper-wrapper { align-items: stretch; }
.mySwiper .swiper-slide, .servicesSwiper .swiper-slide { display: flex; align-items: stretch; /* largeur gérée par Swiper */ }
.mySwiper .service-card, .servicesSwiper .service-card {
  min-height: 520px;
  max-width: 360px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
  border-radius: 15px;
}
.mySwiper .service-image, .servicesSwiper .service-image { height: 200px; width: 100%; object-fit: cover; border-radius: 12px; }
.mySwiper .service-title, .servicesSwiper .service-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 3rem; }
.mySwiper .service-description, .servicesSwiper .service-description { flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; }
.mySwiper .service-tags, .servicesSwiper .service-tags { max-height: 2rem; overflow: hidden; }
.mySwiper .service-actions, .servicesSwiper .service-actions { margin-top: auto; }

/* Optimisations performance Swiper/services */
:root {
    --primary-color: #5b6bff;
    --secondary-color: #7b2cff;
    --bg-color: #ffffff;
    --text-color: #111827;
    --accent-color: #ff8a00;
    --button-radius: 10px;
}

/* Propager le thème vers Bootstrap et éléments clés */
:root {
    --bs-primary: var(--primary-color);
}

body { background-color: var(--bg-color); color: var(--text-color); }

.btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    border-radius: var(--button-radius) !important;
}
.btn-primary:hover { filter: brightness(0.95); }

.btn-outline-primary {
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    border-radius: var(--button-radius) !important;
}
.btn-outline-primary:hover {
    background-color: var(--primary-color) !important;
    color: #fff !important;
}

#mainNav.navbar .nav-link:hover,
#mainNav.navbar .nav-link.active {
    color: var(--primary-color) !important;
}

/* Header colors from theme */
#mainNav {
    background-color: var(--header-bg, var(--navbar-bg, #0d0f13)) !important;
}
#mainNav .navbar-nav .nav-link { 
    color: var(--header-link, var(--header-text, var(--navbar-text, #ffffff))) !important; 
}
#mainNav .navbar-nav .nav-link:hover {
    color: var(--header-link-hover, var(--primary-color)) !important;
}

h1, .h1 { 
    color: var(--h1-color, var(--text-color, #000000)) !important; 
}
h2, .h2 { 
    color: var(--h2-color, var(--text-color, #000000)) !important; 
}
h3, .h3 { 
    color: var(--h3-color, var(--text-color, #000000)) !important; 
}

.section-title { 
    color: var(--h2-color, var(--text-color, #000000)) !important; 
    -webkit-text-fill-color: var(--h2-color, var(--text-color, #000000)) !important;
}

/* Sections background */
#services, #events, #news { 
    background-color: var(--bg-color, var(--section-bg, #f8f9fb)); 
}

/* Cards theme */
.service-card, .event-card, .news-card {
    background-color: var(--surface-color, var(--card-bg, #ffffff));
    color: var(--text-color, var(--card-text, #111827));
    border: 1px solid var(--border-color, var(--card-border, #e5e7eb));
    border-radius: var(--border-radius, var(--button-radius, 10px));
}

/* Secondary and outline buttons */
.btn-secondary {
    background-color: var(--btn-secondary, #6c757d) !important;
    border-color: var(--btn-secondary, #6c757d) !important;
    border-radius: var(--button-radius) !important;
}
.btn-outline-secondary {
    color: var(--btn-secondary, #6c757d) !important;
    border-color: var(--btn-secondary, #6c757d) !important;
    border-radius: var(--button-radius) !important;
}
.btn-outline-primary { color: var(--btn-outline, var(--primary-color)) !important; border-color: var(--btn-outline, var(--primary-color)) !important; }
.swiper-wrapper {
    will-change: transform;
}

.swiper .swiper-button-prev,
.swiper .swiper-button-next {
    color: #ffffff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    z-index: 5;
    display: flex !important;
    align-items: center;
    justify-content: center;
    opacity: 1 !important;
    pointer-events: auto;
}

.swiper .swiper-button-prev::after,
.swiper .swiper-button-next::after {
    font-size: 18px;
    font-weight: 700;
}

.swiper .swiper-button-prev:hover,
.swiper .swiper-button-next:hover {
    background: rgba(0, 0, 0, 0.55);
}

.swiper-slide {
    backface-visibility: hidden;
    transform: translateZ(0);
    will-change: transform;
}

/* Pagination (indicateur de swipe) */
.swiper .swiper-pagination {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    margin: 0;
    text-align: center;
    z-index: 6;
}

/* Pagination artistes : placer entre carte et bouton "Voir tous" */
.artistsSwiper .swiper-pagination {
    position: relative;
    bottom: auto;
    margin-top: 16px;
    margin-bottom: 10px;
}

/* Pagination événements : descendre un peu plus */
.eventsSwiper .swiper-pagination {
    bottom: -12px;
}

/* Pagination actualités : garantir affichage sous le module */
.newsSwiper .swiper-pagination {
    bottom: -12px;
}

.swiper .swiper-pagination-bullet {
    width: 64px;
    height: 64px;
    background: transparent;
    opacity: 1;
    margin: 0 12px !important;
    position: relative;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
}

.swiper .swiper-pagination-bullet::before {
    content: '';
    position: absolute;
    top: -10px;
    right: -10px;
    bottom: -10px;
    left: -10px;
    border-radius: 50%;
}

.swiper .swiper-pagination-bullet::after {
    content: '';
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@media (max-width: 768px) {
    .swiper .swiper-pagination-bullet {
        width: 72px;
        height: 72px;
        margin: 0 14px !important;
    }
    .swiper .swiper-pagination-bullet::before {
        top: -16px;
        right: -16px;
        bottom: -16px;
        left: -16px;
    }
}

.swiper .swiper-pagination-bullet-active {
    background: transparent;
}

.swiper .swiper-pagination-bullet-active::after {
    background: #ffffff;
}

.artistsSwiper,
.servicesSwiper,
.eventsSwiper,
.newsSwiper {
    padding-bottom: 28px;
}

.service-card {
    backface-visibility: hidden;
    transform: translateZ(0);
    will-change: transform;
}

.service-image {
    width: 100%;
    height: auto;
    image-rendering: auto;
}

/* Uniformisation des blocs services (hauteur/largeur cohérentes) */
.mySwiper .swiper-slide,
.servicesSwiper .swiper-slide {
    display: flex;
    align-items: stretch;
    box-sizing: border-box;
    justify-content: center;
}

.mySwiper .swiper-slide > *,
.servicesSwiper .swiper-slide > * {
    width: 100%;
}

/* Harmoniser le style des cartes (comme Artistes) */
.servicesSwiper .service-card,
.eventsSwiper .event-card,
.newsSwiper .news-card {
    background: var(--surface-color, var(--card-bg, #1f1f1f));
    color: var(--text-color, #ffffff);
    border: 1px solid var(--border-color, rgba(255,255,255,0.12));
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.35);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 520px;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
}

/* Images rectangulaires pour Services/Events/News */
.servicesSwiper .service-image,
.eventsSwiper .event-image,
.newsSwiper .news-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1rem;
}

/* Harmoniser le texte */
.servicesSwiper .service-title,
.eventsSwiper .event-title,
.newsSwiper .news-title {
    color: #ffffff;
}

.servicesSwiper .service-description,
.eventsSwiper .event-description,
.newsSwiper .news-excerpt {
    color: rgba(255,255,255,0.8);
}

.service-card {
    height: 420px; /* hauteur fixe pour uniformiser */
    min-height: 420px;
    display: flex;
    flex-direction: column;
}

/* Image de hauteur fixe et recadrage propre */
.service-image-container {
    height: 160px;
    overflow: hidden;
    border-radius: 10px;
}

.service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Le contenu sous l'image prend l'espace restant */
.service-title, .service-description, .service-tags, .service-price {
    margin-top: 8px;
}

.service-actions {
    margin-top: auto; /* pousse les actions en bas pour aligner les cartes */
}

/* Ajustements responsives si nécessaire */
@media (max-width: 767.98px) {
    .service-card { height: 400px; min-height: 400px; }
    .service-image-container { height: 150px; }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
    .service-card { height: 410px; min-height: 410px; }
    .service-image-container { height: 155px; }
}

/* Lisibilité des textes dans les cartes services */
.service-card .service-title,
.service-card .service-description,
.service-card .service-tags,
.service-card .service-price {
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* Autoriser plus de lignes pour éviter la coupe agressive */
.service-card .service-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3; /* titre sur 3 lignes max */
}

.service-card .service-description {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 6; /* description plus lisible */
}

.service-card .service-tags {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

/* Un peu plus d’espace interne si nécessaire */
.service-card {
    padding: 12px;
}

/* Positionnement latéral des flèches du carrousel (hors des cartes) */
.mySwiper,
.servicesSwiper,
.artistsSwiper,
.eventsSwiper,
.newsSwiper {
    position: relative;
    overflow: visible;   /* permet d'afficher les flèches en marge */
}

.mySwiper .swiper-button-prev,
.mySwiper .swiper-button-next,
.servicesSwiper .swiper-button-prev,
.servicesSwiper .swiper-button-next,
.artistsSwiper .swiper-button-prev,
.artistsSwiper .swiper-button-next,
.eventsSwiper .swiper-button-prev,
.eventsSwiper .swiper-button-next,
.newsSwiper .swiper-button-prev,
.newsSwiper .swiper-button-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 44px;
    height: 44px;
}

/* Place les flèches franchement dans la marge (en dehors de la zone des cartes) */
.mySwiper .swiper-button-prev,
.servicesSwiper .swiper-button-prev,
.artistsSwiper .swiper-button-prev,
.eventsSwiper .swiper-button-prev,
.newsSwiper .swiper-button-prev { left: 8px; }
.mySwiper .swiper-button-next,
.servicesSwiper .swiper-button-next,
.artistsSwiper .swiper-button-next,
.eventsSwiper .swiper-button-next,
.newsSwiper .swiper-button-next { right: 8px; }

/* Ajustements responsives pour petits écrans */
@media (max-width: 767.98px) {
    .mySwiper .swiper-button-prev,
    .servicesSwiper .swiper-button-prev,
    .artistsSwiper .swiper-button-prev,
    .eventsSwiper .swiper-button-prev,
    .newsSwiper .swiper-button-prev { left: 8px; }
    .mySwiper .swiper-button-next,
    .servicesSwiper .swiper-button-next,
    .artistsSwiper .swiper-button-next,
    .eventsSwiper .swiper-button-next,
    .newsSwiper .swiper-button-next { right: 8px; }
}

/* Styles flèches latérales pour événements et actualités */
.eventsSwiper, .newsSwiper { position: relative; overflow: visible; }
.eventsSwiper .swiper-button-prev,
.eventsSwiper .swiper-button-next,
.newsSwiper .swiper-button-prev,
.newsSwiper .swiper-button-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 44px;
    height: 44px;
}
.eventsSwiper .swiper-button-prev { left: -48px; }
.eventsSwiper .swiper-button-next { right: -48px; }
.newsSwiper .swiper-button-prev { left: -48px; }
.newsSwiper .swiper-button-next { right: -48px; }
.artistsSwiper .swiper-button-prev { left: -48px; }
.artistsSwiper .swiper-button-next { right: -48px; }
.servicesSwiper .swiper-button-prev { left: -48px; }
.servicesSwiper .swiper-button-next { right: -48px; }

@media (max-width: 767.98px) {
    .eventsSwiper .swiper-button-prev { left: -36px; }
    .eventsSwiper .swiper-button-next { right: -36px; }
    .newsSwiper .swiper-button-prev { left: -36px; }
    .newsSwiper .swiper-button-next { right: -36px; }
    .artistsSwiper .swiper-button-prev { left: -36px; }
    .artistsSwiper .swiper-button-next { right: -36px; }
    .servicesSwiper .swiper-button-prev { left: -36px; }
    .servicesSwiper .swiper-button-next { right: -36px; }
}

/* Uniformisation cartes pour événements/actualités si on réutilise .service-card */
.eventsSwiper .service-card,
.newsSwiper .service-card { height: 420px; min-height: 420px; display: flex; flex-direction: column; }
.eventsSwiper .service-image-container,
.newsSwiper .service-image-container { height: 160px; overflow: hidden; border-radius: 10px; }
.eventsSwiper .service-image,
.newsSwiper .service-image { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Désactiver les flèches sur tous les modules */
.swiper .swiper-button-prev,
.swiper .swiper-button-next {
    display: none !important;
}
