/* Custom CSS pour Royal Mickey Club Falisolle avec Bootstrap 5 */

:root {
    --rmcf-primary: #0066cc;
    --rmcf-secondary: #495057;
    --rmcf-accent: #28a745;
}

/* Hero Banner */
.hero-banner {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 300px;
    position: relative;
}

.hero-overlay {
    background: rgba(0, 102, 204, 0.8);
    backdrop-filter: blur(5px);
}

/* Cards personnalisés */
.article-card {
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}

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

.article-card img {
    height: 200px;
    object-fit: cover;
}

/* Badge type article */
.badge-interne {
    background-color: #dc3545;
}

.badge-externe {
    background-color: #28a745;
}

/* Calendrier */
.calendar-day {
    min-height: 120px;
    vertical-align: top;
}

.calendar-day.today {
    background-color: #e7f3ff !important;
}

.event-badge {
    font-size: 0.75rem;
    display: block;
    margin-bottom: 0.25rem;
    padding: 0.25rem;
    background: var(--rmcf-primary);
    color: white;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: background 0.2s;
}

.event-badge:hover {
    background: #0052a3;
}

/* Membres / Comité */
.member-card {
    transition: transform 0.3s;
}

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

.member-avatar {
    width: 150px;
    height: 150px;
    object-fit: cover;
}

.default-avatar {
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 3rem;
    font-weight: bold;
    border-radius: 50%;
}

/* Galerie */
.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 0.5rem;
    height: 250px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

/* Admin sidebar */
.admin-sidebar {
    min-height: calc(100vh - 56px);
    background: #f8f9fa;
}

.admin-sidebar .nav-link {
    color: #495057;
    padding: 0.75rem 1rem;
    border-radius: 0.25rem;
    margin-bottom: 0.25rem;
}

.admin-sidebar .nav-link:hover {
    background: #e9ecef;
}

.admin-sidebar .nav-link.active {
    background: var(--rmcf-primary);
    color: white;
}

/* Login page */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-card {
    max-width: 450px;
    margin: 0 auto;
}

/* Profil */
.profile-avatar-large {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border: 4px solid var(--rmcf-primary);
}

.default-avatar-large {
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 5rem;
    font-weight: bold;
}

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

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

/* Responsive */
@media (max-width: 768px) {
    .hero-banner {
        min-height: 200px;
    }
    
    .calendar-day {
        min-height: 80px;
        font-size: 0.875rem;
    }
    
    .gallery-item {
        height: 200px;
    }
}

/* Dark mode pour admin */
.admin-page {
    background: #f8f9fa;
}

/* Badges personnalisés */
.badge-match {
    background-color: #17a2b8;
}

.badge-entrainement {
    background-color: #28a745;
}

.badge-reunion {
    background-color: #ffc107;
    color: #000;
}

.badge-autre {
    background-color: #6c757d;
}

/* Amélioration des tables */
.table-hover tbody tr:hover {
    background-color: #f8f9fa;
}

/* Stats cards */
.stat-card {
    border-left: 4px solid var(--rmcf-primary);
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateX(5px);
}

/* Boutons personnalisés */
.btn-primary {
    background-color: var(--rmcf-primary);
    border-color: var(--rmcf-primary);
}

.btn-primary:hover {
    background-color: #0052a3;
    border-color: #0052a3;
}

/* Scrollbar personnalisée */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--rmcf-primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0052a3;
}