﻿/* Calendrier des Événements - Styles optimisés */

/* Header du calendrier */
.calendar-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 4rem 0 3rem;
    position: relative;
    overflow: hidden;
}

.calendar-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

.calendar-title {
    position: relative;
    z-index: 2;
}

.calendar-title h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.calendar-title p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.calendar-days {
    /* Optimiser le rendu de la grille */
    contain: layout style paint;
}

.calendar-day {
    /* Optimiser le rendu des cellules individuelles */
    contain: layout style;
}

/* Optimisations supplémentaires pour le scroll et les interactions */
* {
    /* Améliorer les performances de scroll */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    /* Optimiser le scroll */
    overflow-x: hidden;
    scroll-behavior: auto; /* Pas de smooth scroll qui peut causer du lag */
}

/* Désactiver les animations sur les appareils lents */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.event-title-cell strong {
    color: var(--primary-color);
    font-weight: 600;
}

.badge-member {
    background: #17a2b8;
    color: white;
    font-size: 0.7rem;
    padding: 0.125rem 0.375rem;
    border-radius: 0.625rem;
    margin-left: 0.5rem;
}

.event-date-cell {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.event-date-cell small {
    color: #6c757d;
    font-size: 0.8rem;
}

.badge-category {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.75rem;
    text-transform: capitalize;
}

.badge-general { background: #6c757d; color: white; }
.badge-voyage { background: #007bff; color: white; }
.badge-retraite { background: #28a745; color: white; }
.badge-activite { background: #fd7e14; color: white; }

.badge-status {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.75rem;
    text-transform: capitalize;
}

.badge-draft { background: #ffc107; color: #212529; }
.badge-published { background: #28a745; color: white; }
.badge-cancelled { background: #dc3545; color: white; }
.badge-registered { background: #17a2b8; color: white; }

.registrations-cell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.registrations-cell strong {
    color: var(--primary-color);
}

.actions-cell {
    display: flex;
    gap: 0.25rem;
    justify-content: center;
}

.btn-link {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    text-decoration: underline;
    font-size: 0.9rem;
}

.btn-link:hover {
    color: var(--primary-dark);
}

.large-modal .modal-content {
    max-width: 50rem;
    width: 90%;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: normal;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.registrations-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 0.375rem;
}

.admin-notification {
    position: fixed;
    top: 1.25rem;
    right: 1.25rem;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 0.25rem 1.25rem rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 18.75rem;
    /* Suppression de l'animation slideIn pour les performances */
}

.admin-notification.success {
    background: #d4edda;
    color: #155724;
    border: 0.0625rem solid #c3e6cb;
}

.admin-notification.error {
    background: #f8d7da;
    color: #721c24;
    border: 0.0625rem solid #f5c6cb;
}

.admin-notification button {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: inherit;
    padding: 0;
    width: 20.25rem;
    height: 20.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive pour l'administration */
@media (max-width: 48rem) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .large-modal .modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    .registrations-actions {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .actions-cell {
        flex-direction: column;
    }
    
    .event-date-cell,
    .registrations-cell {
        text-align: center;
    }
    
    .admin-notification {
        left: 0.625rem;
        right: 0.625rem;
        min-width: 0;
    }
}

/* Styles pour la page "Mes Événements" */
.tabs-section {
    background: #f8f9fa;
    padding: 1rem 0;
    border-bottom: 0.0625rem solid #dee2e6;
}

.tabs-navigation {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.tab-btn {
    background: white;
    color: #6c757d;
    border: 0.0625rem solid #dee2e6;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    /* Suppression de la transition pour éviter le lag */
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tab-btn:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
}

.tab-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.tab-content-section {
    padding: 2rem 0;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(21.875rem, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.event-card {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 0.125rem 0.625rem rgba(0, 0, 0, 0.08);
    overflow: hidden;
    /* Suppression de la transition pour éviter le lag */
}

.event-card:hover {
    /* Suppression du transform coûteux */
    box-shadow: 0 0.25rem 10.3125rem rgba(0, 0, 0, 0.15);
}

.event-card.registered-upcoming {
    border-left: 0.25rem solid #28a745;
}

.event-card.registered-past {
    border-left: 0.25rem solid #6c757d;
    opacity: 0.8;
}

.event-card.available {
    border-left: 0.25rem solid #007bff;
}

.event-card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 0.0625rem solid #dee2e6;
}

.event-category {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #495057;
    font-size: 0.9rem;
    font-weight: 500;
}

.category-icon {
    font-size: 1.1rem;
}

.event-status {
    background: rgba(255, 255, 255, 0.9);
    padding: 0.25rem 0.75rem;
    border-radius: 1.25rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: #495057;
}

.event-card-body {
    padding: 1.5rem;
}

.event-title {
    margin: 0 0 1rem 0;
    font-size: 1.25rem;
    color: #2c5aa0;
    font-weight: 600;
}

.event-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.event-meta > div {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6c757d;
    font-size: 0.9rem;
}

.meta-icon {
    width: 1rem;
    text-align: center;
}

.event-description {
    margin-bottom: 1rem;
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.5;
}

.participants-info {
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 0.375rem;
    text-align: center;
}

.participants-count {
    font-weight: 500;
    color: #495057;
}

.unlimited {
    color: #28a745;
    font-weight: 500;
}

.event-card-footer {
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    border-top: 0.0625rem solid #dee2e6;
}

.event-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.no-events {
    text-align: center;
    padding: 3rem 1rem;
}

.no-events-content {
    max-width: 25rem;
    margin: 0 auto;
}

.no-events-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-events h3 {
    color: #495057;
    margin-bottom: 0.5rem;
}

.no-events p {
    color: #6c757d;
    margin-bottom: 1.5rem;
}

/* Search section pour l'onglet disponible */
.search-section {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
}

.search-container {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.search-box {
    flex: 1;
    min-width: 15.625rem;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 0.0625rem solid #dee2e6;
    border-radius: 0.375rem;
    font-size: 0.9rem;
}

.search-btn {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    color: #6c757d;
}

.filters select {
    padding: 0.75rem 1rem;
    border: 0.0625rem solid #dee2e6;
    border-radius: 0.375rem;
    background: white;
    font-size: 0.9rem;
    min-width: 15rem;
}

/* Notifications */
.notification {
    position: fixed;
    top: 1.25rem;
    right: 1.25rem;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 0.25rem 1.25rem rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 18.75rem;
    /* Suppression de l'animation slideIn pour les performances */
}

.notification-success {
    background: #d4edda;
    color: #155724;
    border: 0.0625rem solid #c3e6cb;
}

.notification-error {
    background: #f8d7da;
    color: #721c24;
    border: 0.0625rem solid #f5c6cb;
}

.notification button {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: inherit;
    padding: 0;
    width: 20.25rem;
    height: 20.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Animation slideIn supprimée pour les performances */

/* Responsive pour la page mes événements */
@media (max-width: 48rem) {
    .tabs-navigation {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        flex: 1;
        min-width: 0;
        justify-content: center;
    }
    
    .events-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .event-card-header {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .event-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .search-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        min-width: 0;
    }
    
    .filters select {
        min-width: 0;
    }
    
    .notification {
        left: 0.625rem;
        right: 0.625rem;
        min-width: 0;
    }
}

/* Styles pour les inscriptions aux événements */
.event-registration {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 0.0625rem solid #e5e5e5;
}

.registration-notice {
    background: #f8f9fa;
    border: 0.0625rem solid #dee2e6;
    border-radius: 0.5rem;
    padding: 1rem;
    text-align: center;
}

.registration-notice p {
    margin: 0 0 1rem 0;
    color: #6c757d;
}

.auth-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.registration-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.registration-status {
    padding: 0.75rem;
    border-radius: 0.375rem;
    text-align: center;
    font-weight: 500;
}

.registration-full {
    padding: 0.75rem;
    border-radius: 0.375rem;
    text-align: center;
    background: #fff3cd;
    border: 0.0625rem solid #ffeaa7;
}

.text-success {
    color: #28a745;
}

.text-warning {
    color: #ffc107;
}

.text-danger {
    color: #dc3545;
}

/* Boutons d'inscription */
.btn-success {
    background: #28a745;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    /* Suppression de la transition pour éviter le lag */
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-success:hover {
    background: #218838;
    /* Suppression du transform coûteux */
}

.btn-warning {
    background: #ffc107;
    color: #212529;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    /* Suppression de la transition pour éviter le lag */
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-warning:hover {
    background: #e0a800;
    /* Suppression du transform coûteux */
}

/* Indicateurs d'état */
.event-item.user-registered {
    border-left: 0.25rem solid #28a745;
}

.event-item.event-full {
    opacity: 0.7;
}

.event-item.event-full .event-title::after {
    content: " (Complet)";
    color: #ffc107;
    font-size: 0.8em;
    font-weight: normal;
}

/* Responsive pour les inscriptions */
@media (max-width: 48rem) {
    .auth-actions {
        flex-direction: column;
    }
    
    .registration-actions {
        align-items: stretch;
    }
    
    .btn-success, 
    .btn-warning {
        width: 100%;
        justify-content: center;
    }
}

/* Styles pour le calendrier d'événements */

.event-calendar {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.12);
    overflow: hidden;
    margin: 1rem auto;
    max-width: 60%;
    width: 60%;
    backdrop-filter: blur(0.625rem);
    border: 0.0625rem solid rgba(255, 255, 255, 0.2);
}

/* Amélioration des animations */
/* Suppression des keyframes slideInUp pour les performances */

/* Amélioration des hover effects - suppression des transforms */
.btn-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    /* Suppression du transform */
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.2);
}

.btn-add-event:hover {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    /* Suppression du transform */
    box-shadow: 0 0.375rem 1.25rem rgba(40, 167, 69, 0.4);
}

/* Section calendrier sur la page dédiée */
.page-hero {
    padding: 2rem 0 1rem 0;
    text-align: center;
}

.page-hero h1 {
    margin-bottom: 0.5rem;
    color: var(--primary-color, #2c5aa0);
}

.page-hero p {
    margin-bottom: 0;
    color: #6c757d;
    font-size: 1.1rem;
}

.calendar-section {
    padding: 1rem 0 2rem 0;
}

.calendar-section .container {
    max-width: 75rem;
}

.calendar-container {
    width: 100%;
    display: flex;
    justify-content: center;
}

/* Responsive pour le calendrier */
@media (max-width: 48rem) {
    .event-calendar {
        width: 95%;
        max-width: 95%;
        margin: 1rem auto;
    }
}

/* Header du calendrier */
.calendar-header {
    background: linear-gradient(135deg, var(--primary-color, #2c5aa0) 0%, var(--primary-dark, #1e3d6f) 100%);
    color: white;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.calendar-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-nav {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    /* Suppression de la transition */
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    /* Suppression du transform */
}

.calendar-title h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    text-transform: capitalize;
}

.view-controls {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    overflow: hidden;
}

.btn-view {
    background: transparent;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    /* Suppression de la transition */
    font-size: 0.9rem;
}

.btn-view:hover, .btn-view.active {
    background: rgba(255, 255, 255, 0.2);
}

.calendar-actions {
    display: flex;
    gap: 0.75rem;
}

.btn-today, .btn-add-event {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 0.5rem;
    cursor: pointer;
    /* Suppression de la transition pour éviter le lag */
    font-weight: 500;
}

.btn-add-event {
    background: #28a745;
}

.btn-today:hover {
    background: rgba(255, 255, 255, 0.3);
}

.btn-add-event:hover {
    background: #218838;
    /* Suppression du transform coûteux */
}

/* Body du calendrier */
.calendar-body {
    display: flex;
    min-height: 37.5rem;
}

.calendar-sidebar {
    width: 25rem;
    background: #f8f9fa;
    border-right: 0.0625rem solid #e1e8ed;
    padding: 1.5rem;
    order: 1;
}

.calendar-grid {
    flex: 1;
    padding: 0;
    order: 2;
}

/* Vue mois */
.calendar-month {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #f8f9fa;
    border-bottom: 0.0625rem solid #e1e8ed;
}

.weekday {
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.0.3125rem;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-template-rows: repeat(6, 1fr);
    flex: 1;
}

.calendar-day {
    border: 0.0625rem solid #e1e8ed;
    padding: 0.5rem;
    min-height: 7.5rem;
    cursor: pointer;
    /* Suppression de la transition pour éviter le lag */
    position: relative;
    display: flex;
    flex-direction: column;
    background: white;
    overflow: visible; /* Permettre le débordement pour les événements multi-jours */
}

.calendar-day:hover {
    background: #f8f9fa;
    /* Suppression de la box-shadow animée */
    z-index: 2; /* S'assurer que le hover soit au-dessus */
}

.calendar-day.today {
    background: linear-gradient(135deg, #e3f2fd 0%, #f1f8e9 100%);
    border-color: var(--primary-color, #2c5aa0);
    font-weight: 600;
}

.calendar-day.other-month {
    background: #fafafa;
    color: #bbb;
}

.calendar-day.other-month .day-number {
    color: #ccc;
}

.day-number {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    z-index: 10;
}

.today .day-number {
    color: var(--primary-color, #2c5aa0);
}

.day-events {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    overflow: visible; /* Permettre le débordement pour les événements multi-jours */
    position: relative;
    z-index: 1;
}

/* Styles pour événements sur une seule journée */
.single-day-event {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    margin-bottom: 0.0625rem;
    cursor: pointer;
    /* Suppression de la transition pour éviter le lag */
    display: flex;
    flex-direction: column;
    min-height: 1.25rem;
    box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.2);
}

.single-day-event:hover {
    /* Suppression des transformations coûteuses */
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.3);
}

/* Styles pour événements multi-jours */
.multi-day-event {
    color: white;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    margin-bottom: 0.125rem;
    cursor: pointer;
    /* Suppression de la transition pour éviter le lag */
    display: flex;
    align-items: center;
    min-height: 20.25rem;
    box-shadow: 0 0.0625rem 0.25rem rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: visible;
    border: none;
}

.multi-day-event:hover {
    /* Suppression des transformations coûteuses */
    box-shadow: 0 0.125rem 0.375rem rgba(0, 0, 0, 0.3);
}

/* Styles pour les différentes positions des événements multi-jours */
.multi-day-event.event-start {
    border-radius: 0.375rem 0px 0px 0.375rem;
    padding-left: 0.625rem;
    margin-right: -0.0625rem;
}

.multi-day-event.event-middle {
    border-radius: 0px;
    padding-left: 0.375rem;
    padding-right: 0.375rem;
    margin-left: -0.0625rem;
    margin-right: -0.0625rem;
}

.multi-day-event.event-end {
    border-radius: 0px 0.375rem 0.375rem 0px;
    padding-right: 0.625rem;
    margin-left: -0.0625rem;
}

/* Continuité visuelle - barre qui s'étend entre les cellules */
.multi-day-event.event-start::after {
    content: '';
    position: absolute;
    right: -0.0625rem;
    top: 0;
    bottom: 0;
    width: 0.125rem;
    background: inherit;
    z-index: 1;
}

.multi-day-event.event-middle::before,
.multi-day-event.event-middle::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 0.125rem;
    background: inherit;
    z-index: 1;
}

.multi-day-event.event-middle::before {
    left: -0.0625rem;
}

.multi-day-event.event-middle::after {
    right: -0.0625rem;
}

.multi-day-event.event-end::before {
    content: '';
    position: absolute;
    left: -0.0625rem;
    top: 0;
    bottom: 0;
    width: 0.125rem;
    background: inherit;
    z-index: 1;
}

.event-content {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
}

.event-title {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.event-time {
    font-size: 0.7rem;
    opacity: 0.9;
    font-weight: 400;
    flex-shrink: 0;
}

/* Couleurs améliorées pour les catégories */
.event-general, .single-day-event.event-general {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.event-voyage, .single-day-event.event-voyage {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.event-retraite, .single-day-event.event-retraite {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.event-activite, .single-day-event.event-activite {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.calendar-day:hover {
    background: #f8f9fa;
}

.calendar-day.selected {
    background: rgba(44, 90, 160, 0.1);
    border-color: var(--primary-color, #2c5aa0);
}

.calendar-day.other-month {
    background: #f8f9fa;
    color: #adb5bd;
}

.calendar-day.today {
    background: rgba(40, 167, 69, 0.1);
    border-color: #28a745;
    font-weight: bold;
}

.calendar-day.today .day-number {
    color: #28a745;
    font-weight: 700;
}

.day-number {
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.day-events {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    overflow: hidden;
}

.event-item {
    background: var(--primary-color, #2c5aa0);
    color: white;
    padding: 0.125rem 0.25rem;
    border-radius: 0.1875rem;
    font-size: 0.7rem;
    cursor: pointer;
    /* Suppression de la transition */
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    line-height: 1.2;
}

.event-item:hover {
    /* Suppression du transform */
    box-shadow: 0 0.125rem 0.3125rem rgba(0, 0, 0, 0.2);
}

/* Couleurs par catégorie */
.event-general { background: #6c757d; }
.event-voyage { background: #007bff; }
.event-retraite { background: #28a745; }
.event-activite { background: #fd7e14; }

.event-time {
    font-size: 0.6rem;
    opacity: 0.9;
}

/* Vue semaine */
.calendar-week {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.week-header {
    display: grid;
    grid-template-columns: 5rem repeat(7, 1fr);
    border-bottom: 0.125rem solid #e1e8ed;
    background: #f8f9fa;
}

.time-column {
    border-right: 0.0625rem solid #e1e8ed;
}

.week-day {
    padding: 1rem 0.5rem;
    text-align: center;
    border-right: 0.0625rem solid #e1e8ed;
}

.week-day.today {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
    font-weight: bold;
}

.day-name {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #6c757d;
    font-weight: 600;
}

.day-date {
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 0.25rem;
}

.week-grid {
    flex: 1;
    overflow-y: auto;
}

.hour-row {
    display: grid;
    grid-template-columns: 5rem repeat(7, 1fr);
    min-height: 3.75rem;
    border-bottom: 0.0625rem solid #f0f0f0;
}

.time-label {
    padding: 0.5rem;
    font-size: 0.8rem;
    color: #6c757d;
    text-align: right;
    border-right: 0.0625rem solid #e1e8ed;
    background: #fafafa;
}

.hour-cell {
    border-right: 0.0625rem solid #f0f0f0;
    position: relative;
    padding: 0.125rem;
}

.hour-cell:hover {
    background: rgba(44, 90, 160, 0.05);
}

.event-block {
    background: var(--primary-color, #2c5aa0);
    color: white;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.8rem;
    cursor: pointer;
    margin-bottom: 0.125rem;
    /* Suppression de la transition */
}

.event-block:hover {
    /* Suppression du transform */
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.15);
}

/* Vue jour */
.calendar-day-view {
    padding: 2rem;
}

.day-header {
    margin-bottom: 2rem;
    text-align: center;
}

.day-header h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin: 0;
    text-transform: capitalize;
}

.no-events {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 3rem;
    background: #f8f9fa;
    border-radius: 0.5rem;
    border: 0.125rem dashed #dee2e6;
}

.day-events-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.event-card {
    background: white;
    border: 0.0625rem solid #e1e8ed;
    border-radius: 0.75rem;
    padding: 1.5rem;
    cursor: pointer;
    /* Suppression de la transition */
    border-left: 0.25rem solid var(--primary-color, #2c5aa0);
}

.event-card:hover {
    /* Suppression du transform */
    box-shadow: 0 0.5rem 20.3125rem rgba(0, 0, 0, 0.1);
}

.event-card.event-voyage { border-left-color: #007bff; }
.event-card.event-retraite { border-left-color: #28a745; }
.event-card.event-activite { border-left-color: #fd7e14; }

.event-card .event-time {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color, #2c5aa0);
    margin-bottom: 0.5rem;
}

.event-card h4 {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
    font-size: 1.3rem;
}

.event-card p {
    color: #6c757d;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.event-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: #6c757d;
}

/* Sidebar */
.calendar-sidebar {
    display: flex;
    flex-direction: column;
}

.calendar-legend {
    margin-bottom: 2rem;
    order: 1;
    background: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.1);
    border: 0.0625rem solid #e1e8ed;
}

.upcoming-events {
    order: 2;
}

.upcoming-events h3,
.calendar-legend h4 {
    margin: 0 0 1rem 0;
    color: #2c3e50;
    font-size: 1.2rem;
    font-weight: 600;
    border-bottom: 0.125rem solid var(--primary-color, #2c5aa0);
    padding-bottom: 0.5rem;
}

.upcoming-list {
    margin-bottom: 2rem;
}

.upcoming-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    cursor: pointer;
    /* Suppression de la transition pour éviter le lag */
    margin-bottom: 0.5rem;
}

.upcoming-item:hover {
    background: white;
    /* Suppression de la box-shadow animée */
}

.upcoming-date {
    background: var(--primary-color, #2c5aa0);
    color: white;
    padding: 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    min-width: 3.125rem;
}

.upcoming-info {
    flex: 1;
}

.upcoming-title {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.upcoming-time {
    font-size: 0.8rem;
    color: #6c757d;
}

.upcoming-category {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--primary-color, #2c5aa0);
}

.no-upcoming {
    color: #6c757d;
    font-style: italic;
    text-align: center;
    padding: 1rem;
}

/* Légende */
.legend-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    padding: 0.5rem;
    border-radius: 0.375rem;
    /* Suppression de la transition pour éviter le lag */
}

.legend-item:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.legend-color {
    width: 1.125rem;
    height: 1.125rem;
    border-radius: 0.25rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.legend-color.event-general {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.legend-color.event-voyage {
    background: linear-gradient(135deg, #667eea 0%, #667eea 100%);
}

.legend-color.event-retraite {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.legend-color.event-activite {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

/* Modal pour les événements */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(0.3125rem);
    /* Suppression de toute animation */
    opacity: 1;
}

/* Suppression des keyframes pour éliminer toutes les animations */

.event-modal {
    background: white;
    border-radius: 0.75rem;
    max-width: 37.5rem;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 1.25rem 2.5rem rgba(0, 0, 0, 0.15);
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color, #2c5aa0) 0%, var(--primary-dark, #1e3d6f) 100%);
    color: white;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    opacity: 0.8;
    /* Suppression de la transition */
}
}

.modal-close:hover {
    opacity: 1;
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    padding: 1.5rem 2rem;
    border-top: 0.0625rem solid #e1e8ed;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* Détails d'événement */
.event-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.detail-item strong {
    color: #2c3e50;
    font-weight: 600;
}

.description-content {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 0.5rem;
    line-height: 1.6;
    color: #6c757d;
}

/* Formulaire d'événement */
.event-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(9.375rem, 1fr));
    gap: 1rem;
}

.form-group label {
    font-weight: 600;
    color: #2c3e50;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem;
    border: 0.125rem solid #e1e8ed;
    border-radius: 0.5rem;
    font-size: 1rem;
    /* Suppression de la transition */
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color, #2c5aa0);
}

/* Boutons */
.btn-primary, .btn-secondary, .btn-danger {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    /* Suppression de la transition */
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--primary-color, #2c5aa0);
    color: white;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark, #1e3d6f);
    /* Suppression du transform */
}

.btn-secondary:hover {
    background: #5a6268;
    /* Suppression du transform */
}

.btn-danger:hover {
    background: #c82333;
    /* Suppression du transform */
}

/* Responsive Design */
@media (max-width: 64rem) {
    .calendar-body {
        flex-direction: column;
    }
    
    .calendar-sidebar {
        width: 100%;
        border-left: none;
        border-top: 0.0625rem solid #e1e8ed;
    }
    
    .calendar-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .calendar-controls {
        justify-content: center;
    }
    
    .calendar-actions {
        justify-content: center;
    }
}

@media (max-width: 48rem) {
    .event-calendar {
        margin: 1rem 0;
        border-radius: 0;
    }
    
    .calendar-header {
        padding: 1rem;
    }
    
    .calendar-body {
        flex-direction: column;
    }
    
    .calendar-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 0.0625rem solid #e1e8ed;
        padding: 1rem;
        order: 1;
    }
    
    .calendar-grid {
        order: 2;
    }
    
    .calendar-day {
        min-height: 5rem;
        padding: 0.25rem;
    }
    
    .day-number {
        font-size: 0.8rem;
    }
    
    .event-item {
        font-size: 0.6rem;
        padding: 0.0625rem 0.1875rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .week-header {
        grid-template-columns: 3.75rem repeat(7, 1fr);
    }
    
    .hour-row {
        grid-template-columns: 3.75rem repeat(7, 1fr);
        min-height: 2.5rem;
    }
}

@media (max-width: 45rem) {
    .view-controls {
        width: 100%;
        justify-content: space-around;
    }
    
    .btn-view {
        flex: 1;
        padding: 0.5rem;
    }
    
    .calendar-title h2 {
        font-size: 1.2rem;
        text-align: center;
    }
    
    .event-modal {
        width: 95%;
        margin: 1rem;
    }
}

/* Toutes les animations supprimées pour éliminer le lag */
