/* Styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #f5f3e7;
    background: linear-gradient(135deg, #042926 0%, #031f1c 25%, #0d3c39 50%, #042926 75%, #031f1c 100%);
    background-size: 400% 400%;
    animation: gradientShift 20s ease infinite;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #e3c879, transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(227, 200, 121, 0.8), transparent),
        radial-gradient(1px 1px at 90px 40px, #f0e0b5, transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(240, 224, 181, 0.6), transparent),
        radial-gradient(2px 2px at 160px 30px, #e3c879, transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: twinkle 4s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 1;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes twinkle {
    0% { opacity: 0.3; }
    100% { opacity: 0.8; }
}

header {
    background-color: rgba(4, 41, 38, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #f5f3e7;
    text-align: center;
    padding: 1.5rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    position: relative;
    z-index: 3;
    border-bottom: 1px solid rgba(227, 200, 121, 0.2);
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.subtitle {
    font-size: 1.35rem;
    color: #e3c879;
    margin-top: 0.5em;
    margin-bottom: 1.2em;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 6px rgba(0,0,0,0.13);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

nav a:hover {
    background-color: rgba(255,255,255,0.1);
}

main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 0;
    position: relative;
    z-index: 2;
}

.event-section {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    margin-bottom: 2rem;
    overflow: hidden;
}

.event-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.4);
    z-index: 1;
}

.event-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
    max-width: 800px;
}

.event-section h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif; /* Exemple de police pour les titres */
}

.event-section p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
}

.event-section a {
    display: inline-block;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.event-date {
    color: #e3c879;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.7rem;
    letter-spacing: 1px;
    text-shadow: 0 1px 6px rgba(0,0,0,0.18);
    display: block;
}

/* Thème Pleine Lune */
.pleine-lune-theme {
    background:
        radial-gradient(circle at 60% 40%, rgba(227,200,121,0.18) 0%, rgba(4,41,38,0.85) 60%, #031f1c 100%),
        url('https://www.transparenttextures.com/patterns/stardust.png') repeat;
    background-color: #042926;
}

.pleine-lune-theme .event-section::before {
    background-color: rgba(47,79,79,0.6);
}

.pleine-lune-theme a {
    background-color: #6a8d8d;
    color: white;
}

.pleine-lune-theme a:hover {
    background-color: #8fb3b3;
    transform: translateY(-3px);
}

/* Thème Tajalli */
.tajalli-theme {
    background-image: url('tajalli/images/hero_tajalli_nouveau.png'); /* Image de fond Tajalli */
    background-color: #daa520; /* Couleur dominante Tajalli */
}

.tajalli-theme .event-section::before {
    background-color: rgba(218,165,32,0.6);
}

.tajalli-theme a {
    background-color: #2f5f5f;
    color: white;
}

.tajalli-theme a:hover {
    background-color: #4a7c7c;
    transform: translateY(-3px);
}

/* Thème Ihtizaz */
.ihtizaz-theme {
    background-image: url('ihtizaz/images/banniere_ihtizaz_maoka.webp'); /* Image de fond Ihtizaz */
    background-color: #4b0082; /* Couleur dominante Ihtizaz */
}

.ihtizaz-theme .event-section::before {
    background-color: rgba(75,0,130,0.6);
}

.ihtizaz-theme a {
    background-color: #8a2be2;
    color: white;
}

.ihtizaz-theme a:hover {
    background-color: #9932cc;
    transform: translateY(-3px);
}

/* Thème Jam Session */
.jam-session-theme {
    background-image: url('jam-session/images/banner jam session.jpg'); /* Image de fond Jam Session */
    background-color: #1a1a2e; /* Couleur dominante Jam Session */
}

.jam-session-theme .event-section::before {
    background-color: rgba(233, 69, 96, 0.6);
}

.jam-session-theme a {
    background: linear-gradient(135deg, #e94560 0%, #0f3460 50%, #533a71 100%);
    color: white;
    border: none;
}

.jam-session-theme a:hover {
    background: linear-gradient(135deg, #ff5577 0%, #1a5577 50%, #6a4788 100%);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(233, 69, 96, 0.4);
}

footer {
    background-color: rgba(4, 41, 38, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #f5f3e7;
    text-align: center;
    padding: 1rem 0;
    margin-top: 2rem;
    position: relative;
    z-index: 3;
    border-top: 1px solid rgba(227, 200, 121, 0.2);
}

.dev-credit {
    font-size: 0.95rem;
    color: #e3c879;
    margin-top: 0.3em;
    letter-spacing: 0.5px;
}
.dev-credit a {
    color: #e3c879;
    text-decoration: underline dotted;
    transition: color 0.2s;
}
.dev-credit a:hover {
    color: #f5e6c0;
}

.maoka-credit {
    font-size: 1rem;
    color: #f5e6c0;
    margin-top: 0.2em;
    margin-bottom: 0.2em;
    letter-spacing: 0.5px;
}
.maoka-credit a {
    color: #e3c879;
    text-decoration: underline;
    transition: color 0.2s;
}
.maoka-credit a:hover {
    color: #fffbe6;
}

.contact-access-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2.5rem 0 1.2rem 0;
    background: none;
}
.contact-access-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 38px;
    background: linear-gradient(90deg, #e3c879 0%, #f5e6c0 100%);
    color: #042926;
    font-size: 1.18rem;
    font-weight: 700;
    border: none;
    border-radius: 32px;
    box-shadow: 0 2px 12px rgba(227,200,121,0.13);
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: background 0.2s, color 0.2s, transform 0.15s;
    cursor: pointer;
}
.contact-access-btn:hover {
    background: linear-gradient(90deg, #f5e6c0 0%, #e3c879 100%);
    color: #031f1c;
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 4px 18px rgba(227,200,121,0.22);
}
.contact-icon {
    font-size: 1.3em;
    margin-right: 4px;
}

/* Responsive Design */
/* Tablette - Breakpoint intermédiaire */
@media (max-width: 1024px) {
    main {
        max-width: 100%;
        padding: 1.5rem 0;
    }
    
    .event-section {
        min-height: 350px;
        margin-bottom: 1.5rem;
    }
    
    .event-section h2 {
        font-size: 3rem;
    }
    
    .event-section p {
        font-size: 1.2rem;
    }
    
    .event-section a {
        padding: 14px 28px;
        min-height: 44px; /* Amélioration accessibilité */
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Mobile - Breakpoint principal */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    
    nav ul {
        flex-direction: column;
        gap: 1rem;
    }
    
    nav a {
        padding: 0.75rem 1.5rem;
        min-height: 44px; /* Amélioration accessibilité */
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .event-section {
        min-height: 300px;
        background-attachment: scroll; /* Désactiver parallax sur mobile */
    }
    
    .event-section h2 {
        font-size: 2.5rem;
    }
    
    .event-section p {
        font-size: 1.1rem;
    }
    
    .event-section a {
        padding: 12px 25px;
        min-height: 44px;
        font-size: 1rem;
    }
}

/* Petit mobile - Breakpoint fin */
@media (max-width: 480px) {
    header h1 {
        font-size: 1.8rem;
    }
    
    .event-section h2 {
        font-size: 2rem;
    }
    
    .event-section p {
        font-size: 1rem;
    }
    
    .event-section a {
        padding: 10px 20px;
        font-size: 0.9rem;
        min-height: 44px;
    }
}

/* Très petit écran - Breakpoint extrême */
@media (max-width: 360px) {
    header h1 {
        font-size: 1.6rem;
    }
    
    .event-section h2 {
        font-size: 1.8rem;
    }
    
    .event-section a {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}

