/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Playfair+Display:wght@400;700&display=swap');

/* Variables */
:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #f43f5e;
    --text-color: #1f2937;
    --light-bg: #f8fafc;
    --card-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
}

/* Base Styles */
body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
    background-color: #f5f5f5;
}

h1, h2, h3, h4, h5 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

/* Navbar Styling */
.navbar {
    padding: 0.5rem 1rem;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    margin-right: 2rem;
}

.navbar-brand img {
    height: 60px;
    transition: transform 0.3s ease;
}

.navbar-brand img:hover {
    transform: scale(1.1);
}

.nav-link {
    font-weight: 500;
    position: relative;
    padding: 0.5rem 1.2rem !important;
    transition: var(--transition);
    color: var(--text-color) !important;
    margin: 0 0.2rem;
    border-radius: 5px;
}

.nav-link:hover {
    background-color: rgba(99, 102, 241, 0.1);
}

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

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

/* Hero Section */
#accueil {
    padding: 0;
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: #000;
    overflow: hidden;
}

#accueil::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background-image: url('./images/Jul\ Detp\ L\'ovni.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

#accueil::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 2;
}

#accueil .container {
    position: relative;
    z-index: 3;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    align-items: center;
}

#accueil .hero-content {
    width: 50%;
    margin-left: auto;
    padding: 2rem;
}

#accueil h1 {
    font-size: 4.5rem;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    color: #fff;
    text-align: right;
}

#accueil p {
    font-size: 1.8rem;
    margin-bottom: 3rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    color: #fff;
    text-align: right;
}

#accueil .btn {
    padding: 1rem 3rem;
    font-size: 1.2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.9);
    color: #000;
    border: none;
    display: block;
    margin-left: auto;
}

#accueil .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    background-color: #fff;
}

/* Event Cards */
.card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    margin-bottom: 2rem;
    transform: translateY(0);
    animation: cardAppear 0.8s ease forwards;
    opacity: 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

@keyframes cardAppear {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card:nth-child(1) { animation-delay: 0.2s; }
.card:nth-child(2) { animation-delay: 0.4s; }
.card:nth-child(3) { animation-delay: 0.6s; }

.card:hover {
    transform: translateY(-15px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.card-img-top {
    height: 250px;
    object-fit: cover;
    transition: all 0.5s ease;
}

.card:hover .card-img-top {
    transform: scale(1.1);
}

.card-body {
    padding: 2rem;
}

.card-title {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.card-text {
    color: #666;
    margin-bottom: 1.5rem;
}

/* Reservation Form */
.reservation {
    background: white;
    border-radius: 20px;
    padding: 3rem !important;
    margin: 4rem 0;
    animation: slideIn 1s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.form-control, .form-select {
    padding: 1rem;
    border-radius: 10px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--primary-color);
    border: none;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
}

/* Contact Section */
#contact {
    background: white;
    border-radius: 20px;
    margin: 4rem 0;
    padding: 3rem !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

#contact .btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 50px;
    padding: 1rem 2.5rem;
    transition: all 0.3s ease;
    font-weight: 600;
}

#contact .btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
}

/* Footer */
footer {
    background: #1f2937 !important;
    padding: 2rem 0 !important;
    margin-top: 4rem;
}

footer a {
    text-decoration: none;
    transition: var(--transition);
    color: var(--primary-color) !important;
}

footer a:hover {
    color: white !important;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    #accueil::before,
    #accueil::after {
        width: 100%;
    }
    
    #accueil .hero-content {
        width: 100%;
        margin-left: 0;
        background: rgba(0, 0, 0, 0.7);
        padding: 2rem;
    }
    
    #accueil h1 {
        font-size: 3rem;
        text-align: center;
    }
    
    #accueil p {
        font-size: 1.4rem;
        text-align: center;
    }
    
    #accueil .btn {
        margin: 0 auto;
    }
    
    .reservation {
        padding: 2rem !important;
        margin: 2rem 0;
    }
    
    .card {
        margin-bottom: 1.5rem;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
    
    .nav-link {
        padding: 0.5rem !important;
    }
}

@media (max-width: 576px) {
    #accueil h1 {
        font-size: 2rem;
    }
    
    .card-img-top {
        height: 200px;
    }
    
    .reservation {
        padding: 1.5rem !important;
    }
    
    .btn {
        width: 100%;
    }
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: rgba(255, 255, 255, 0.95);
        padding: 1rem;
        border-radius: 10px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
    
    .nav-link {
        padding: 0.8rem 1rem !important;
        margin: 0.2rem 0;
    }
}

/* Loading Animation */
.loading {
    position: relative;
    width: 40px;
    height: 40px;
    margin: 0 auto;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 4px solid var(--primary-color);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Ajustement du main pour la section hero */
main {
    overflow-x: hidden;
    position: relative;
}

/* Ajustement des sections suivantes */
#evenements, #reservation, #contact {
    padding-left: 15px;
    padding-right: 15px;
}

/* Styles pour les cadres de dates */
.date-frame {
    height: 250px;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.date-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.date-content {
    text-align: center;
    color: white;
    z-index: 1;
    transform: scale(1);
    transition: transform 0.3s ease;
}

.date-content h3 {
    font-size: 4rem;
    font-weight: bold;
    margin: 0;
    line-height: 1;
}

.date-content p {
    font-size: 1.5rem;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.card:hover .date-content {
    transform: scale(1.1);
}

/* Animation d'apparition des cartes */
.card {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card:nth-child(1) { animation-delay: 0.2s; }
.card:nth-child(2) { animation-delay: 0.4s; }
.card:nth-child(3) { animation-delay: 0.6s; }
