/* Variables globales révisées */
:root {
    --bleu-nuit: #0f1a3d;
    --bleu-nuit-clair: #1a237e;
    --blanc-or: #ffffff;
    --blanc-or-fonce: #f5f5f5;
    --text-color: #2d3748;
    --text-light: #f8fafc;
    --background-color: #f8fafc;
    --border-radius: 0.5rem;
    --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --section-spacing: 5rem;
    --transition: all 0.3s ease;
}

/* Reset et styles de base */
body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    background-color: #f7f7f7;
    background-image:
        url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23e6e6e6' fill-opacity='0.2' fill-rule='evenodd'/%3E%3C/svg%3E"),
        linear-gradient(to bottom, #ffffff, #f5f5f5);
    line-height: 1.6;
}

/* Boutons révisés */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--blanc-or-fonce);
    border: none;
    color: var(--bleu-nuit);
    box-shadow: 0 4px 15px rgba(230, 184, 0, 0.3);
}

.btn-primary:hover {
    background-color: var(--blanc-or);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
}

.btn-outline-primary {
    color: var(--blanc-or);
    border-color: var(--blanc-or);
}

.btn-outline-primary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--blanc-or);
}

/* Section Dividers */
.section-divider {
    height: 2px;
    background: linear-gradient(to right, transparent, var(--blanc-or), transparent);
    margin: var(--section-spacing) 0;
    opacity: 0.3;
}

/* Page Header amélioré */
.page-header {
    background: linear-gradient(135deg, var(--bleu-nuit), var(--bleu-nuit-clair));
    color: white;
    padding: 3rem 0;
    margin-bottom: 2rem;
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/images/logo.png');
    opacity: 0.1;
}

.page-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--blanc-or);
    margin: 0;
}

/* Cartes et boîtes */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-img-top {
    height: 240px;
    object-fit: cover;
}

.card-title {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--bleu-nuit);
}

/* Footer amélioré */
.footer {
    background-color: var(--bleu-nuit);
    color: white;
    padding: 5rem 0 2rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    right: 0;
    height: 100px;
    background: var(--bleu-nuit);
}

.footer h5 {
    color: var(--blanc-or);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: flex;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
    color: white;
}

.social-links a:hover {
    background: var(--blanc-or);
    color: var(--bleu-nuit) !important;
    transform: translateY(-3px);
}

/* Styles spécifiques aux événements */
.event-date {
    background: var(--blanc-or);
    color: var(--bleu-nuit);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    display: inline-block;
    font-weight: 700;
}

.event-price {
    color: var(--blanc-or-fonce);
    font-weight: 700;
}

/* Tableaux */
.table thead th {
    background-color: var(--bleu-nuit);
    color: white;
}

/* Formulaires */
.form-control:focus {
    border-color: var(--blanc-or);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

/* Alertes */
.alert-warning {
    background-color: rgba(255, 255, 255, 0.2);
    border-left: 4px solid var(--blanc-or);
}

/* Responsive */
@media (max-width: 768px) {
    .navbar-nav {
        padding: 1rem;
        background-color: var(--bleu-nuit);
        border-radius: var(--border-radius);
        margin-top: 1rem;
    }

    .page-header {
        padding: 2rem 0;
    }

    .section-title {
        font-size: 2rem;
    }
}

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

.animate-fade-in {
    animation: fadeInUp 0.5s ease-out forwards;
}

/* Utilitaires */
.text-gradient {
    background: linear-gradient(135deg, var(--blanc-or), var(--blanc-or-fonce));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bg-bleu-nuit {
    background-color: var(--bleu-nuit);
}

.text-blanc-or {
    color: var(--blanc-or);
}

/* Styles pour les boutons de navigation */
.step-navigation .btn {
    color: #fff !important;
    text-decoration: none;
}

.step-navigation .btn-outline-secondary {
    border-color: #fff;
}

.step-navigation .btn-outline-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Style pour le calendrier Flatpickr */
.flatpickr-calendar {
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.flatpickr-day.selected {
    background: #ffd700 !important;
    border-color: #ffd700 !important;
    color: #000 !important;
}

.flatpickr-day:hover {
    background: rgba(255, 255, 255, 0.2) !important;
}

/* === Overrides globaux pour pages événements (past, promotions, direct-events) === */
/* Icônes des boutons de vue en blanc lorsque le bouton est actif (fond bleu) */
.view-btn.active i {
    color: #ffffff !important;
}

/* Assurer que les badges sur fond bleu gardent un texte blanc pour la lisibilité */
.badge[style*="var(--bleu-nuit)"] {
    color: #ffffff !important;
}
.badge[style*="var(--bleu-nuit-clair)"] {
    color: #ffffff !important;
}

/* Cas génériques Bootstrap si utilisés */
.badge.bg-primary,
.badge.bg-info,
.badge.bg-dark {
    color: #ffffff !important;
}

/* Tickets désactivés pour événements passés */
.tickets-disabled {
    position: relative;
}
.tickets-disabled .tickets-list,
.tickets-disabled .tickets-total,
.tickets-disabled .tickets-actions {
    filter: grayscale(1);
    opacity: 0.6;
    pointer-events: none;
}

