/* Global styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ff4136, #dc2626);
    border-radius: 10px;
    border: 2px solid #1a1a1a;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ff5a4f, #ef4444);
}

::-webkit-scrollbar-corner {
    background: #1a1a1a;
}

/* Firefox scrollbar */
html {
    scrollbar-width: thin;
    scrollbar-color: #ff4136 #1a1a1a;
}

/* Ajout d'un conteneur de préchargement */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 65, 54, 0.3);
    border-radius: 50%;
    border-top: 4px solid #ff4136;
    animation: spin 1s linear infinite;
}

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

body {
    background-color: #000; /* Couleur de fond par défaut pendant le chargement */
    position: relative;
    opacity: 0; /* Commencer avec une opacité de 0 */
    transition: opacity 1s ease-in-out; /* Ajouter une transition pour l'opacité */
}

body.bg-loaded {
    background-image: url('/static/images/artwork.webp');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    opacity: 1; /* L'opacité passe à 1 quand l'image est chargée */
}

/* Media query pour désactiver le background fixe sur mobile */
@media (max-width: 768px) {
    body.bg-loaded {
        background-attachment: scroll; /* Remplacer fixed par scroll pour mobile */
    }
    
    body.bg-loaded::before {
        background-attachment: scroll; /* Assurer que le filtre de flou suit également */
    }
}

body.bg-loaded::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    filter: blur(5px);
    z-index: -1;
}

main, header, footer {
    position: relative;
    z-index: 1;
}

main::before, header::before, footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: -1;
}

/* Empêcher le défilement quand le menu mobile est ouvert */
body.no-scroll {
    overflow: hidden;
}

/* Sections */
.section {
    min-height: 50vh;
    padding: 6rem 2rem 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
}

.section-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Layout en deux colonnes */
.two-column-layout {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 2rem;
}

.left-section {
    width: 65%;
    margin-bottom: 0;
}

.right-section {
    width: 35%;
    margin-bottom: 0;
}

/* Style général pour tous les titres h2 */
h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    text-align: center;
    color: #ff4136; /* Couleur rouge par défaut */
    font-family: 'Sawarabi Mincho', serif;
}

/* Style amélioré pour le titre de la section Concerts */
#concerts h2, 
.concerts-section h2,
section[id="concerts"] h2 {
    color: #ffffff;
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: 8px;
    text-transform: uppercase;
    padding: 1.5rem 0;
    position: relative;
    display: inline-block;
    margin: 0 auto 3rem;
    
    /* Effet d'incrustation avec texture */
    background: linear-gradient(180deg, #ffffff 0%, #cccccc 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    text-shadow: 
        0px 2px 3px rgba(0, 0, 0, 0.6),
        0px 4px 6px rgba(0, 0, 0, 0.3);
    
    /* Bordure incandescente */
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(90deg, transparent, #ff4136, transparent);
    border-image-slice: 1;
}

/* Effet d'ornement */
#concerts h2::before, 
#concerts h2::after,
.concerts-section h2::before,
.concerts-section h2::after,
section[id="concerts"] h2::before,
section[id="concerts"] h2::after {
    content: "//";
    display: inline-block;
    position: relative;
    color: #ff4136;
    font-size: 1.8rem;
    vertical-align: middle;
    font-weight: 700;
    opacity: 0.8;
    margin: 0 1rem;
    text-shadow: 
        0 0 10px rgba(255, 65, 54, 0.5),
        0 0 20px rgba(255, 65, 54, 0.3);
    animation: glow 2s infinite alternate;
}

/* Container spécial pour le titre */
.section-header {
    text-align: center;
    position: relative;
    margin-bottom: 3rem;
    padding: 1rem 0;
    overflow: hidden;
}

/* Ligne décorative sous le titre */
.section-header::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 150px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 65, 54, 0.8), transparent);
}

/* Animation pour l'effet incandescent */
@keyframes glow {
    from {
        opacity: 0.6;
        text-shadow: 
            0 0 10px rgba(255, 65, 54, 0.5),
            0 0 20px rgba(255, 65, 54, 0.3);
    }
    to {
        opacity: 1;
        text-shadow: 
            0 0 12px rgba(255, 65, 54, 0.8),
            0 0 25px rgba(255, 65, 54, 0.5);
    }
}

/* Style du bouton toggle pour s'harmoniser avec le nouveau titre */
#toggle-concerts-button {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 65, 54, 0.5);
    color: #ffffff;
    padding: 0.7rem 1.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    font-weight: 500;
}

#toggle-concerts-button:hover {
    background-color: rgba(255, 65, 54, 0.2);
    border-color: #ff4136;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

#toggle-concerts-button::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.5s ease;
}

#toggle-concerts-button:hover::after {
    left: 100%;
}

h3 {
    font-size: 1.8rem;
    margin: 1.5rem 0;
    letter-spacing: 2px;
    color: #ddd;
    text-align: center;
}

/* Video section */
#video-section {
    padding-top: 150px; /* Ajuster selon le nouveau header */
}

.video-container {
    width: 100%;
    max-width: 800px;
    aspect-ratio: 16/9;
    margin: 0 auto;
}

.video-note {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 1rem;
    color: #ddd; /* Lighter color for better contrast */
    font-family: 'Sawarabi Mincho', serif; /* Matching the site's typography */
    letter-spacing: 0.5px;
    line-height: 1.5;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.video-note a {
    color: #ff4136; /* Red color to match site's accent color */
    text-decoration: none;
    transition: color 0.3s ease;
}

.video-note a:hover {
    color: #e03026; /* Darker red on hover */
    text-decoration: underline;
}

/* Social media section */
.social-icons, .streaming-icons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin: 1.5rem 0;
}

.social-icon {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
}

.social-icon:hover {
    transform: scale(1.2);
}

/* Partners section */
.partners-logos {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
}

.partners-logos img {
    height: 60px;
    object-fit: contain;
    filter: grayscale(40%);
    transition: filter 0.3s ease, transform 0.3s ease;
}

.partners-logos img:hover {
    filter: grayscale(0%);
    transform: scale(1.1);
}

/* Footer */
footer {
    background-color: rgba(0, 0, 0, 0.8);
    padding: 2rem 1rem;
    position: relative;
}

.footer-content {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-item {
    color: #aaa;
    font-size: 0.9rem;
}

.footer-item a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-item a:hover {
    color: #ff4136;
}

.scroll-top-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #ff4136;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 99;
}

.scroll-top-button.visible {
    opacity: 1;
}

/* YouTube placeholder styles */
.youtube-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(20, 20, 20, 0.9) 100%);
    border: 2px solid rgba(255, 65, 54, 0.3);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.youtube-placeholder:hover {
    border-color: rgba(255, 65, 54, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.youtube-placeholder::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: all 0.8s ease;
}

.youtube-placeholder:hover::before {
    left: 100%;
}

.placeholder-content {
    text-align: center;
    padding: 2rem;
    color: #ffffff;
    font-family: 'Sawarabi Mincho', serif;
    position: relative;
    z-index: 2;
}

.placeholder-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
    line-height: 1.6;
    color: #dddddd;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.cookie-btn {
    background: linear-gradient(135deg, #ff4136 0%, #e03026 100%);
    border: none;
    color: #ffffff;
    padding: 0.8rem 2rem;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(255, 65, 54, 0.3);
    font-family: 'Sawarabi Mincho', serif;
}

.cookie-btn:hover {
    background: linear-gradient(135deg, #e03026 0%, #cc2b20 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 65, 54, 0.4);
}

.cookie-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(255, 65, 54, 0.3);
}

.cookie-btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.5s ease;
}

.cookie-btn:hover::after {
    left: 100%;
}

/* Responsive adjustments for YouTube placeholders */
@media (max-width: 768px) {
    .placeholder-content {
        padding: 1.5rem;
    }
    
    .placeholder-content p {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .cookie-btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .placeholder-content {
        padding: 1rem;
    }
    
    .placeholder-content p {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    .cookie-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
        letter-spacing: 0.5px;
    }
}
@media (max-width: 768px) {
    .two-column-layout {
        flex-direction: column;
        gap: 3rem;
    }
    
    .left-section,
    .right-section {
        width: 100%;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    /* Styles spécifiques pour le titre CONCERTS sur mobile */
    #concerts h2, 
    .concerts-section h2,
    section[id="concerts"] h2 {
        font-size: 2.2rem;
        letter-spacing: 4px; /* Réduire l'espacement des lettres */
        padding: 1rem 0.5rem; /* Réduire le padding horizontal */
        margin: 0 auto 2rem; /* Réduire la marge inférieure */
    }
    
    /* Réduire la taille des ornements sur mobile */
    #concerts h2::before, 
    #concerts h2::after,
    .concerts-section h2::before,
    .concerts-section h2::after,
    section[id="concerts"] h2::before,
    section[id="concerts"] h2::after {
        font-size: 1.4rem;
        margin: 0 0.5rem; /* Réduire les marges des ornements */
    }
    
    .section {
        padding: 5rem 1rem 2rem;
    }
    
    #video-section {
        padding-top: 120px;
    }
    
    /* Réduire l'espacement de la section concerts */
    #concerts.section {
        padding-top: 0; /* Supprimer l'espacement au-dessus des concerts */
    }
    
    /* Supprimer le margin-bottom de la section vidéo */
    #video-section {
        margin-bottom: 0;
    }
    
    /* Ajuster l'espacement du header de section */
    .section-header {
        margin-bottom: 2rem; /* Réduire la marge inférieure */
        padding: 0.5rem 0; /* Réduire le padding */
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    #video-section {
        padding-top: 140px;
    }
}

/* Ajouter ces styles pour les colonnes */
.three-column-container {
    display: flex;
    flex-direction: row;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 2rem;
    gap: 2rem;
}

.column-section {
    flex: 1;
    min-height: auto;
    padding: 2rem 1rem;
    margin-bottom: 0;
}

.column-section h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

/* Ajuster les tailles des icons pour qu'elles s'adaptent aux colonnes */
.social-icons, .streaming-icons, .partners-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.partners-logos img {
    height: 45px;
    margin-bottom: 1rem;
}

/* Supprimer cette classe qui n'est plus nécessaire */
.streaming-title {
    display: none;
}

/* Ajustement pour l'espacement après la section contact */
#contact {
    margin-bottom: 2rem;  /* Ajoute un espacement avant les trois colonnes */
}

/* Ajustement pour les trois colonnes */
.three-column-container {
    margin-bottom: 0;  /* Réduit l'espacement après les trois colonnes */
}

/* Ajouter cette règle spécifique pour le contact */
#contact.section {
    min-height: auto; /* Annule le min-height de 50vh défini pour .section */
    padding-bottom: 0; /* Supprime le padding en bas */
}

/* Ajustjust responsive */
@media (max-width: 768px) {
    .three-column-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .column-section {
        padding: 2rem 1rem;
    }
}

/* Style pour tablettes */
@media (min-width: 769px) and (max-width: 1024px) {
    .column-section h2 {
        font-size: 1.5rem;
    }
    
    .partners-logos img {
        height: 40px;
    }
}

/* Utility class */
.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* Announcement Banner */
.announcement-banner {
    background-color: #8b0000; /* Dark red color */
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    text-align: center;
    /* Ces propriétés permettent à la bannière de s'adapter à la longueur du texte */
    display: inline-block;
    max-width: 90%; /* Limitation pour éviter que la bannière prenne toute la largeur de l'écran */
    min-width: 200px; /* Largeur minimale pour l'esthétique */
    width: auto;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.announcement-banner p {
    margin: 0;
    font-family: 'Sawarabi Mincho', serif;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 1.1rem;
}

/* Style pour les liens dans la bannière d'annonce */
.announcement-banner a {
    color: inherit; /* Hérite la couleur du texte parent */
    text-decoration: underline; /* Garde le soulignement */
    transition: opacity 0.3s ease; /* Animation subtile au survol */
}

.announcement-banner a:hover {
    opacity: 0.8; /* Légère transparence au survol pour l'effet de feedback */
    color: inherit; /* Maintient la couleur héritée même au survol */
}

/* Make the banner responsive */
@media (max-width: 768px) {
    .announcement-banner {
        padding: 0.8rem 1rem;
        margin-bottom: 1.5rem;
    }
    
    .announcement-banner p {
        font-size: 0.9rem;
    }
}

/* Spotify Players Section */
#spotify-players {
    padding: 1.5rem 1rem 0.5rem 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-top: 2rem; /* Ajouter une marge pour séparer de la section contact */
}

#spotify-players h2 {
    color: #ff4136;
    font-family: 'Sawarabi Mincho', serif;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.spotify-players-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.spotify-players-container iframe {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
}

/* Responsive design for Spotify players */
@media (max-width: 1200px) {
    .spotify-players-container {
        gap: 1.5rem;
    }
    
    .spotify-players-container iframe {
        width: 45%;
        min-width: 280px;
    }
}

@media (max-width: 768px) {
    #spotify-players {
        padding: 2rem 0.5rem 1rem 0.5rem; /* Augmenter le padding-top pour éviter la superposition */
        margin-top: 1rem; /* Réduire la marge sur mobile */
    }
    
    #spotify-players h2 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .spotify-players-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .spotify-players-container iframe {
        width: 100%;
        min-width: unset;
        max-width: 100%;
    }
}
