/* ========================================
   ROYAL MICKEY CLUB FALISOLLE - STYLES
   ======================================== */

/* Variables CSS */
:root {
    --primary-color: #0066cc;
    --secondary-color: #495057;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --border-color: #dee2e6;
    --shadow: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-lg: 0 4px 12px rgba(0,0,0,0.15);
}

/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   EN-TÊTE DU SITE PUBLIC
   ======================================== */

.site-header {
    background: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    gap: 2rem;
}

.nav-brand a {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex: 1;
}

.nav-link {
    padding: 0.75rem 1.25rem;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s;
    font-weight: 500;
}

.nav-link:hover {
    background: #f0f0f0;
    color: var(--primary-color);
}

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

.nav-dropdown {
    position: relative;
}

.dropdown-toggle::after {
    content: none;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 4px;
    padding: 0.5rem 0;
    z-index: 1000;
}

.nav-dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.25rem;
    color: #333;
    text-decoration: none;
    transition: background 0.2s;
}

.dropdown-menu a:hover {
    background: #f0f0f0;
}

.nav-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.user-badge {
    padding: 0.5rem 1rem;
    background: #f0f0f0;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: all 0.3s;
}

/* Mobile */
@media (max-width: 968px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }
    
    .main-nav.mobile-active .nav-menu {
        display: flex;
    }
    
    .nav-dropdown .dropdown-menu {
        position: static;
        box-shadow: none;
        padding-left: 1rem;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-actions {
        flex-wrap: wrap;
    }
}

/* ========================================
   SECTION DES ARTICLES
   ======================================== */

.articles-section {
    padding: 3rem 0;
}

.articles-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--dark-color);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.article-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.article-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-content {
    padding: 1.5rem;
}

.article-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.article-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.article-excerpt {
    color: #555;
    margin-bottom: 1rem;
    line-height: 1.7;
}

.no-articles {
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 8px;
    color: #666;
}

/* ========================================
   BOUTONS
   ======================================== */

.btn {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

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

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #3a3f44;
}

.btn-success {
    background-color: var(--success-color);
    color: white;
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
}

.btn-warning {
    background-color: var(--warning-color);
    color: #333;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid white;
    color: white;
}

.btn-outline:hover {
    background-color: white;
    color: var(--primary-color);
}

.btn-link {
    background: none;
    color: var(--primary-color);
    padding: 0.25rem 0;
    text-decoration: underline;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-sm {
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
}

/* ========================================
   MODAL
   ======================================== */

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 8px;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.modal-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
}

.close:hover {
    color: #000;
}

/* ========================================
   PIED DE PAGE
   ======================================== */

.site-footer {
    background-color: var(--dark-color);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

.site-footer p {
    margin: 0.5rem 0;
    opacity: 0.8;
}

/* ========================================
   PAGE DE CONNEXION
   ======================================== */

.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-color), #0052a3);
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-box {
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.login-header {
    background: var(--primary-color);
    color: white;
    padding: 2rem;
    text-align: center;
}

.login-header h1 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.login-form {
    padding: 2rem;
}

.login-footer {
    padding: 1rem 2rem;
    background-color: var(--light-color);
    text-align: center;
}

/* ========================================
   FORMULAIRES
   ======================================== */

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark-color);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="file"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.form-group small {
    display: block;
    margin-top: 0.5rem;
    color: #666;
    font-size: 0.875rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    cursor: pointer;
}

/* ========================================
   ALERTES
   ======================================== */

.alert {
    padding: 1rem 1.5rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.alert-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.alert-error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.alert-warning {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
}

.alert-info {
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

.alert ul {
    margin: 0.5rem 0 0 1.5rem;
}

/* ========================================
   ESPACE ADMINISTRATION
   ======================================== */

.admin-page {
    background-color: #f0f2f5;
}

.admin-header {
    background: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.admin-header .header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    flex-wrap: wrap;
    gap: 1rem;
}

.admin-header h1 {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.admin-nav {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.user-info {
    padding: 0.5rem 1rem;
    background-color: var(--light-color);
    border-radius: 4px;
    font-size: 0.875rem;
}

/* Layout de l'administration */
.admin-layout {
    display: flex;
    min-height: calc(100vh - 80px);
}

.admin-sidebar {
    width: 250px;
    background: white;
    box-shadow: var(--shadow);
    padding: 2rem 0;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    color: var(--dark-color);
    text-decoration: none;
    transition: all 0.3s;
}

.sidebar-nav a:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
}

.sidebar-nav a.active {
    background-color: var(--primary-color);
    color: white;
    border-left: 4px solid #0052a3;
}

.sidebar-nav .icon {
    font-size: 1.25rem;
}

.admin-content {
    flex: 1;
    padding: 2rem;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.content-header h2 {
    font-size: 1.75rem;
    color: var(--dark-color);
}

/* ========================================
   STATISTIQUES (DASHBOARD)
   ======================================== */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #666;
    font-size: 0.875rem;
}

.stat-success .stat-value {
    color: var(--success-color);
}

.stat-warning .stat-value {
    color: var(--warning-color);
}

.stat-info .stat-value {
    color: var(--info-color);
}

.dashboard-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.dashboard-section {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.dashboard-section h3 {
    margin-bottom: 1rem;
    color: var(--dark-color);
}

/* ========================================
   TABLEAUX
   ======================================== */

.table-responsive {
    overflow-x: auto;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    background-color: var(--light-color);
    font-weight: 600;
    color: var(--dark-color);
}

.data-table tbody tr:hover {
    background-color: #f8f9fa;
}

.data-table .actions {
    display: flex;
    gap: 0.5rem;
}

/* ========================================
   BADGES
   ======================================== */

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-success {
    background-color: #d4edda;
    color: #155724;
}

.badge-warning {
    background-color: #fff3cd;
    color: #856404;
}

.badge-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

.badge-secondary {
    background-color: #e2e3e5;
    color: #383d41;
}

/* ========================================
   FORMULAIRE D'ARTICLE
   ======================================== */

.article-form {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.current-image {
    margin-bottom: 1rem;
    padding: 1rem;
    background-color: var(--light-color);
    border-radius: 4px;
}

.current-image img {
    display: block;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

/* ========================================
   GESTION DES UTILISATEURS
   ======================================== */

.user-form {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.user-form h3 {
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.current-user {
    background-color: #e7f3ff !important;
}

.empty-state {
    background: white;
    padding: 3rem;
    border-radius: 8px;
    text-align: center;
    color: #666;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .site-header .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-layout {
        flex-direction: column;
    }
    
    .admin-sidebar {
        width: 100%;
    }
    
    .sidebar-nav {
        display: flex;
        overflow-x: auto;
    }
    
    .sidebar-nav a {
        white-space: nowrap;
    }
    
    .content-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        margin: 10% 10px;
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .site-header h1 {
        font-size: 1.5rem;
    }
    
    .tagline {
        font-size: 1rem;
    }
    
    .article-content h3 {
        font-size: 1.25rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}

/* ========================================
   ESPACE MEMBRE - STYLES ADDITIONNELS
   ======================================== */

.membre-nav {
    background: white;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.membre-nav a {
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: #333;
    border-radius: 4px;
    transition: all 0.3s;
}

.membre-nav a:hover {
    background: #f0f0f0;
}

.membre-nav a.active {
    background: var(--primary-color);
    color: white;
}

.logout-link {
    color: var(--danger-color) !important;
}

.membre-welcome {
    text-align: center;
    padding: 2rem 0;
}

.quick-actions {
    margin: 2rem 0;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.action-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.action-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.membre-section {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

/* Profil */
.profile-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.profile-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 2rem;
    text-align: center;
}

.profile-photo-large {
    width: 200px;
    height: 200px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--primary-color);
}

.profile-photo-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.profile-stats {
    margin: 2rem 0;
    text-align: left;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
}

.stat-label {
    font-weight: 500;
    color: #666;
}

.stat-value {
    color: #333;
}

.profile-section {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.input-disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

.current-image-small {
    margin: 1rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 4px;
}

.current-image-small img {
    max-width: 150px;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

/* Annuaire */
.search-section-large {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin: 2rem 0;
}

.search-form-large {
    max-width: 600px;
    margin: 0 auto;
}

.search-input-group {
    display: flex;
    gap: 1rem;
}

.search-input-large {
    flex: 1;
    padding: 1rem;
    font-size: 1.1rem;
    border: 2px solid #ddd;
    border-radius: 4px;
}

.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.member-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}

.member-photo {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f0f0f0;
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-info {
    padding: 1.5rem;
}

.member-contact {
    margin: 1rem 0;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

.contact-icon {
    font-size: 1.2rem;
}

.member-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.annuaire-help {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.help-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.help-card ol {
    margin: 1rem 0 0 1.5rem;
}

/* Calendrier */
.calendar-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.calendar-filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 2rem 0;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    border: 2px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.calendar-month {
    margin: 3rem 0;
}

.month-title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--primary-color);
}

.events-timeline {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.event-timeline-item {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.event-date-badge {
    flex-shrink: 0;
    width: 80px;
    text-align: center;
    background: var(--primary-color);
    color: white;
    padding: 1rem;
    border-radius: 8px;
}

.event-date-badge .day {
    display: block;
    font-size: 2rem;
    font-weight: bold;
}

.event-date-badge .weekday {
    display: block;
    font-size: 0.875rem;
    text-transform: uppercase;
}

.event-card-full {
    flex: 1;
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.event-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.event-type-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-match {
    background: #d1ecf1;
    color: #0c5460;
}

.badge-entrainement {
    background: #d4edda;
    color: #155724;
}

.badge-reunion {
    background: #fff3cd;
    color: #856404;
}

.badge-autre {
    background: #e2e3e5;
    color: #383d41;
}

.event-meta {
    display: flex;
    gap: 2rem;
    margin: 1rem 0;
    color: #666;
}

.event-description {
    margin: 1rem 0;
    line-height: 1.6;
}

.event-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Galerie */
.gallery-stats-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.gallery-grid-masonry {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.gallery-item-masonry {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s;
    aspect-ratio: 1;
}

.gallery-item-masonry:hover {
    transform: scale(1.02);
}

.gallery-item-masonry img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

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

.gallery-info h4 {
    margin: 0 0 0.5rem 0;
    color: white;
}

.modal-gallery {
    max-width: 90vw;
    max-height: 90vh;
}

.gallery-modal-image {
    text-align: center;
    margin-bottom: 1.5rem;
}

.gallery-modal-image img {
    max-width: 100%;
    max-height: 60vh;
    border-radius: 4px;
}

.gallery-modal-info {
    padding: 1rem;
}

.photo-description {
    margin: 1rem 0;
    line-height: 1.6;
}

.photo-meta {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
    color: #666;
    font-size: 0.9rem;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 1rem;
    font-size: 2rem;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.3s;
}

.gallery-nav:hover {
    background: rgba(0,0,0,0.8);
}

.gallery-prev {
    left: 1rem;
}

.gallery-next {
    right: 1rem;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
}

.pagination-info {
    padding: 0.5rem 1rem;
}

/* Admin gallery */
.admin-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.admin-gallery-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
}

.admin-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.8);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.admin-gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-item-info h4 {
    margin: 0 0 0.5rem 0;
    color: white;
}

.gallery-item-actions {
    display: flex;
    gap: 0.5rem;
}

.images-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.preview-item {
    text-align: center;
}

.preview-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
}

.preview-item p {
    margin: 0.5rem 0;
    font-size: 0.875rem;
    color: #666;
}

.checkbox-label-block {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-label-block input[type="checkbox"] {
    margin-top: 0.25rem;
}

.current-pdf {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 4px;
    margin-bottom: 1rem;
}

/* Responsive membre */
@media (max-width: 968px) {
    .profile-layout {
        grid-template-columns: 1fr;
    }
    
    .calendar-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .event-timeline-item {
        flex-direction: column;
    }
    
    .event-date-badge {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .membre-nav {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .search-input-group {
        flex-direction: column;
    }
    
    .members-grid {
        grid-template-columns: 1fr;
    }
    
    .actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .calendar-stats {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   CALENDRIER PUBLIC
   ======================================== */

.calendar-table {
    width: 100%;
    background: white;
}

.calendar-table th {
    background: var(--primary-color);
    color: white;
    padding: 1rem;
    text-align: center;
    font-weight: 600;
}

.calendar-day {
    height: 120px;
    vertical-align: top;
    padding: 0.5rem;
    position: relative;
    border: 1px solid #dee2e6;
}

.calendar-day.empty {
    background: #f8f9fa;
}

.calendar-day.today {
    background: #e7f3ff;
    border: 2px solid var(--primary-color);
}

.day-number {
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.day-events {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.event-badge {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: background 0.2s;
}

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

.event-badge small {
    font-size: 0.65rem;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .calendar-day {
        height: 80px;
        font-size: 0.75rem;
    }
    
    .day-number {
        font-size: 0.9rem;
    }
    
    .event-badge {
        font-size: 0.65rem;
        padding: 0.2rem 0.4rem;
    }
}