/**
 * Fichier: css/evenements.css
 * Ajouté le: 2026-01-21 06:23:36
 */

/* Styles pour la page des événements */

/* Hero section */
.events-hero {
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-family: 'Montserrat', sans-serif;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Animation texte */
.text-reveal {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

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

/* Section de filtres */
.events-filters {
    padding: 2rem 0;
    background-color: #f9f9f9;
    margin-bottom: 1rem;
}

.filters-form {
    width: 100%;
}

.filters-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: flex-end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 200px;
}

.filter-group label {
    font-weight: 500;
    font-size: 0.9rem;
    color: #555;
}

.filter-group select,
.filter-group input {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid #ddd;
    font-family: 'Poppins', sans-serif;
}

.filter-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.btn-primary {
    background-color: #4CAF50;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
    font-family: 'Poppins', sans-serif;
}

.btn-primary:hover {
    background-color: #388E3C;
}

.btn-secondary {
    background-color: #f1f1f1;
    color: #333;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
}

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

/* Section des événements */
.events-section {
    padding: 2rem 0 4rem;
}

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

/* Carte d'événement */
.event-card {
    background-color: #fff;
    border-radius: 0.8rem;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

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

.event-image {
    height: 200px;
    overflow: hidden;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.event-card:hover .event-image img {
    transform: scale(1.05);
}

.event-content {
    padding: 1.5rem;
}

.event-date {
    display: inline-block;
    background-color: #4CAF50;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.event-title {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: #333;
    font-family: 'Montserrat', sans-serif;
}

.event-description {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 0.9rem;
    min-height: 65px;
}

.event-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.event-location {
    color: #555;
    font-size: 0.9rem;
}

.event-location i {
    color: #4CAF50;
    margin-right: 0.4rem;
}

.btn-view {
    display: inline-block;
    background-color: #4CAF50;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: background-color 0.3s;
}

.btn-view:hover {
    background-color: #388E3C;
}

/* Événement terminé */
.event-card.ended::before {
    content: 'Terminé';
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    z-index: 1;
}

.event-card.ended .event-image {
    opacity: 0.7;
}

/* Message aucun résultat */
.no-results {
    text-align: center;
    padding: 3rem;
    background-color: #f9f9f9;
    border-radius: 0.8rem;
    margin-top: 2rem;
}

.no-results p {
    margin-bottom: 1.5rem;
    color: #555;
    font-size: 1.1rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 3rem;
    gap: 1rem;
}

.page-numbers {
    display: flex;
    gap: 0.5rem;
}

.page-number {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f1f1f1;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s;
}

.page-number:hover {
    background-color: #e0e0e0;
}

.page-number.current {
    background-color: #4CAF50;
    color: white;
}

.page-prev,
.page-next {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    background-color: #f1f1f1;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s;
}

.page-prev:hover,
.page-next:hover {
    background-color: #e0e0e0;
}

.page-prev.disabled,
.page-next.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.page-dots {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
}

/* Section calendrier */
.calendar-section {
    padding: 3rem 0;
    background-color: #f9f9f9;
}

.calendar-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-family: 'Montserrat', sans-serif;
    color: #333;
}

.calendar-section h2 i {
    color: #4CAF50;
    margin-right: 0.5rem;
}

.calendar-section h2 span {
    color: #4CAF50;
}

.calendar-container {
    background-color: #fff;
    border-radius: 0.8rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
}

.calendar-title {
    font-size: 1.2rem;
    color: #333;
    font-family: 'Montserrat', sans-serif;
}

.calendar-nav {
    display: flex;
    gap: 0.5rem;
}

.calendar-nav button {
    background-color: #f1f1f1;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s;
}

.calendar-nav button:hover {
    background-color: #e0e0e0;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    padding: 1rem;
}

.calendar-day-header {
    text-align: center;
    padding: 0.5rem;
    font-weight: 500;
    color: #555;
    font-size: 0.9rem;
}

.calendar-day {
    position: relative;
    height: 80px;
    border: 1px solid #f1f1f1;
    text-align: right;
    padding: 0.5rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.calendar-day:hover {
    background-color: #f9f9f9;
}

.calendar-day.other-month {
    opacity: 0.5;
}

.calendar-day.today {
    background-color: #e8f5e9;
    border-color: #4CAF50;
}

.day-number {
    font-size: 0.9rem;
    color: #333;
}

.calendar-day.has-events {
    border-color: #4CAF50;
}

.event-indicator {
    position: absolute;
    bottom: 0.5rem;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 0.7rem;
    color: #4CAF50;
    background-color: #e8f5e9;
    padding: 0.2rem;
    border-radius: 2rem;
}

/* Newsletter section */
.newsletter-section h2 {
    font-family: 'Montserrat', sans-serif;
    color: #333;
    margin-bottom: 1rem;
}

.newsletter-form input {
    font-family: 'Poppins', sans-serif;
}

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

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

/* Délai d'animation pour chaque carte */
.event-card:nth-child(1) { animation-delay: 0.1s; }
.event-card:nth-child(2) { animation-delay: 0.2s; }
.event-card:nth-child(3) { animation-delay: 0.3s; }
.event-card:nth-child(4) { animation-delay: 0.4s; }
.event-card:nth-child(5) { animation-delay: 0.5s; }
.event-card:nth-child(6) { animation-delay: 0.6s; }

/* Responsive */
@media (max-width: 768px) {
    .filters-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .events-grid {
        grid-template-columns: 1fr;
    }
    
    .event-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .btn-view {
        width: 100%;
        text-align: center;
    }
    
    .calendar-day {
        height: 60px;
    }
}
.hero-section.events-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.1)), url('../images/evenements-banner.jpg');
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    min-height: 400px; /* Hauteur minimale pour assurer une bonne visibilité */
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-section.events-hero .hero-content {
    width: 100%;
    max-width: 800px; /* Limite la largeur du contenu pour une meilleure lisibilité */
    text-align: center;
}
/* ======================= RÈGLES MOBILE OPTIMISÉES POUR LES ÉVÉNEMENTS ======================= */
/* À ajouter à la fin du fichier CSS des événements */

/* Optimisation globale pour petits écrans (320px - 480px) */
@media screen and (max-width: 480px) {
    /* Hero section - Mobile optimisé */
    .hero-section.events-hero {
        min-height: 250px;
        padding: 1.5rem 0.5rem;
        background-attachment: scroll; /* Améliore les performances sur mobile */
    }
    
    .hero-content {
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .hero-content h1 {
        font-size: 1.6rem;
        margin-bottom: 0.8rem;
        line-height: 1.3;
    }
    
    .hero-content p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
        line-height: 1.5;
    }
    
    /* Animation texte - Simplifiée pour mobile */
    .text-reveal {
        animation-duration: 0.5s; /* Plus rapide sur mobile */
    }
    
    /* Section de filtres - Mobile */
    .events-filters {
        padding: 1.5rem 0.5rem;
        margin-bottom: 0.5rem;
    }
    
    .filters-form {
        width: 100%;
    }
    
    .filters-container {
        flex-direction: column;
        align-items: stretch;
        gap: 0.8rem;
        justify-content: stretch;
    }
    
    .filter-group {
        width: 100%;
        min-width: auto;
        gap: 0.3rem;
    }
    
    .filter-group label {
        font-size: 0.85rem;
        font-weight: 600;
        color: #333;
    }
    
    .filter-group select,
    .filter-group input {
        padding: 0.7rem 0.8rem;
        border-radius: 8px;
        border: 2px solid #ddd;
        font-size: 0.9rem;
        min-height: 44px; /* Taille tactile recommandée */
        background-color: #fff;
        transition: all 0.3s ease;
    }
    
    .filter-group select:focus,
    .filter-group input:focus {
        border-color: #4CAF50;
        outline: none;
        box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
    }
    
    .filter-buttons {
        flex-direction: column;
        gap: 0.8rem;
        margin-top: 1rem;
        width: 100%;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        padding: 0.8rem 1.2rem;
        border-radius: 8px;
        font-size: 0.9rem;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        font-weight: 600;
        transition: all 0.3s ease;
    }
    
    .btn-primary {
        background-color: #4CAF50;
        border: 2px solid #4CAF50;
    }
    
    .btn-primary:hover {
        background-color: #388E3C;
        border-color: #388E3C;
        transform: translateY(-1px);
    }
    
    .btn-secondary {
        background-color: #fff;
        color: #4CAF50;
        border: 2px solid #4CAF50;
    }
    
    .btn-secondary:hover {
        background-color: #f1f8e9;
        border-color: #388E3C;
        color: #388E3C;
    }
    
    /* Section des événements - Mobile */
    .events-section {
        padding: 1.5rem 0.5rem 2rem;
    }
    
    .events-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 1.5rem;
    }
    
    /* Carte d'événement - Mobile optimisée */
    .event-card {
        border-radius: 12px;
        margin: 0 auto;
        max-width: 100%;
        width: 100%;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    
    .event-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    }
    
    .event-image {
        height: 160px;
    }
    
    .event-image img {
        transition: transform 0.3s ease; /* Réduit pour mobile */
    }
    
    .event-card:hover .event-image img {
        transform: scale(1.02); /* Moins prononcé sur mobile */
    }
    
    .event-content {
        padding: 1rem;
    }
    
    .event-date {
        padding: 0.4rem 0.8rem;
        border-radius: 20px;
        font-size: 0.75rem;
        margin-bottom: 0.8rem;
        font-weight: 600;
        background-color: #4CAF50;
        display: inline-flex;
        align-items: center;
        gap: 0.3rem;
    }
    
    .event-title {
        font-size: 1.1rem;
        margin-bottom: 0.6rem;
        line-height: 1.4;
        color: #333;
        text-align: center;
    }
    
    .event-description {
        font-size: 0.85rem;
        margin-bottom: 1rem;
        line-height: 1.5;
        min-height: auto;
        text-align: center;
        color: #555;
    }
    
    .event-footer {
        flex-direction: column;
        gap: 0.8rem;
        align-items: center;
        text-align: center;
        margin-top: 0.8rem;
    }
    
    .event-location {
        font-size: 0.8rem;
        color: #666;
        display: flex;
        align-items: center;
        gap: 0.3rem;
        justify-content: center;
    }
    
    .event-location i {
        color: #4CAF50;
        margin-right: 0.2rem;
        font-size: 0.9rem;
    }
    
    .btn-view {
        width: 100%;
        max-width: 200px;
        padding: 0.7rem 1rem;
        border-radius: 8px;
        font-size: 0.85rem;
        min-height: 40px;
        font-weight: 600;
        text-align: center;
        background-color: #4CAF50;
        transition: all 0.3s ease;
    }
    
    .btn-view:hover {
        background-color: #388E3C;
        transform: translateY(-1px);
    }
    
    /* Événement terminé - Mobile */
    .event-card.ended::before {
        top: 0.8rem;
        right: 0.8rem;
        padding: 0.3rem 0.6rem;
        font-size: 0.7rem;
        border-radius: 12px;
        font-weight: 600;
    }
    
    .event-card.ended .event-image {
        opacity: 0.6;
    }
    
    .event-card.ended {
        opacity: 0.8;
    }
    
    /* Message aucun résultat - Mobile */
    .no-results {
        padding: 2rem 1rem;
        border-radius: 12px;
        margin: 1rem 0.5rem;
        text-align: center;
    }
    
    .no-results p {
        font-size: 1rem;
        margin-bottom: 1rem;
        line-height: 1.5;
    }
    
    /* Pagination - Mobile optimisée */
    .pagination {
        margin-top: 2rem;
        gap: 0.5rem;
        flex-wrap: wrap;
        padding: 0 0.5rem;
    }
    
    .page-numbers {
        gap: 0.3rem;
        order: 2;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .page-number {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
        border-radius: 8px;
        min-width: 35px;
        flex-shrink: 0;
    }
    
    .page-number.current {
        background-color: #4CAF50;
        font-weight: 600;
    }
    
    .page-prev {
        order: 1;
        padding: 0.5rem 0.8rem;
        border-radius: 8px;
        font-size: 0.8rem;
        min-height: 35px;
    }
    
    .page-next {
        order: 3;
        padding: 0.5rem 0.8rem;
        border-radius: 8px;
        font-size: 0.8rem;
        min-height: 35px;
    }
    
    .page-prev,
    .page-next {
        flex-shrink: 0;
    }
    
    .page-dots {
        width: 35px;
        height: 35px;
        color: #999;
    }
    
    /* Section calendrier - Mobile */
    .calendar-section {
        padding: 2rem 0.5rem;
    }
    
    .calendar-section h2 {
        margin-bottom: 1.5rem;
        font-size: 1.3rem;
        text-align: center;
    }
    
    .calendar-section h2 i {
        margin-right: 0.3rem;
        font-size: 1.1rem;
    }
    
    .calendar-container {
        border-radius: 12px;
        max-width: 100%;
        margin: 0 0.5rem;
    }
    
    .calendar-header {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .calendar-title {
        font-size: 1.1rem;
        order: 1;
    }
    
    .calendar-nav {
        gap: 0.8rem;
        justify-content: center;
        order: 2;
    }
    
    .calendar-nav button {
        width: 32px;
        height: 32px;
        border-radius: 8px;
        font-size: 0.9rem;
        background-color: #f1f1f1;
    }
    
    .calendar-nav button:hover {
        background-color: #4CAF50;
        color: white;
    }
    
    .calendar-grid {
        padding: 0.5rem;
        gap: 1px;
    }
    
    .calendar-day-header {
        padding: 0.3rem;
        font-size: 0.8rem;
        font-weight: 600;
        background-color: #f9f9f9;
        text-align: center;
    }
    
    .calendar-day {
        height: 60px;
        border: 1px solid #f1f1f1;
        padding: 0.3rem;
        font-size: 0.8rem;
        background-color: #fff;
    }
    
    .calendar-day:hover {
        background-color: #f9f9f9;
    }
    
    .calendar-day.today {
        background-color: #e8f5e9;
        border-color: #4CAF50;
        font-weight: 600;
    }
    
    .calendar-day.has-events {
        border-color: #4CAF50;
        background-color: #f1f8e9;
    }
    
    .day-number {
        font-size: 0.8rem;
        font-weight: 500;
    }
    
    .event-indicator {
        bottom: 0.2rem;
        font-size: 0.6rem;
        padding: 0.1rem 0.3rem;
        border-radius: 8px;
        background-color: #4CAF50;
        color: white;
    }
    
    /* Newsletter section - Mobile */
    .newsletter-section {
        padding: 0 0.5rem;
    }
    
    .newsletter-section h2 {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
        text-align: center;
    }
    
    .newsletter-form {
        display: flex;
        flex-direction: column;
        gap: 0.8rem;
        max-width: 100%;
    }
    
    .newsletter-form input {
        padding: 0.7rem 0.8rem;
        border-radius: 8px;
        border: 2px solid #ddd;
        font-size: 0.9rem;
        min-height: 44px;
    }
    
    .newsletter-form input:focus {
        border-color: #4CAF50;
        outline: none;
        box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
    }
    
    .newsletter-form button {
        padding: 0.8rem 1.2rem;
        background-color: #4CAF50;
        color: white;
        border: none;
        border-radius: 8px;
        font-size: 0.9rem;
        min-height: 44px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .newsletter-form button:hover {
        background-color: #388E3C;
        transform: translateY(-1px);
    }
    
    /* Animations optimisées pour mobile */
    .to-animate {
        animation-duration: 0.4s; /* Plus rapide sur mobile */
    }
    
    /* Suppression des délais d'animation trop longs sur mobile */
    .event-card:nth-child(n) {
        animation-delay: 0s;
    }
    
    /* Améliorations tactiles */
    .btn-primary,
    .btn-secondary,
    .btn-view,
    .page-number,
    .page-prev,
    .page-next,
    .calendar-nav button,
    .calendar-day,
    .filter-group select,
    .filter-group input {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
    
    /* Optimisation des performances */
    .event-card,
    .calendar-day {
        will-change: transform;
    }
    
    /* États de focus améliorés pour l'accessibilité */
    .btn-primary:focus,
    .btn-secondary:focus,
    .btn-view:focus {
        outline: 3px solid rgba(76, 175, 80, 0.5);
        outline-offset: 2px;
    }
    
    .page-number:focus,
    .page-prev:focus,
    .page-next:focus {
        outline: 2px solid #4CAF50;
        outline-offset: 2px;
    }
}

/* Optimisation pour très petits écrans (jusqu'à 360px) */
@media screen and (max-width: 360px) {
    .hero-section.events-hero {
        min-height: 200px;
        padding: 1rem 0.3rem;
    }
    
    .hero-content h1 {
        font-size: 1.4rem;
    }
    
    .hero-content p {
        font-size: 0.9rem;
    }
    
    .events-filters {
        padding: 1rem 0.3rem;
    }
    
    .events-section {
        padding: 1rem 0.3rem 1.5rem;
    }
    
    .event-card {
        margin: 0;
    }
    
    .event-image {
        height: 140px;
    }
    
    .event-content {
        padding: 0.8rem;
    }
    
    .event-title {
        font-size: 1rem;
    }
    
    .event-description {
        font-size: 0.8rem;
    }
    
    .calendar-section {
        padding: 1.5rem 0.3rem;
    }
    
    .calendar-section h2 {
        font-size: 1.2rem;
    }
    
    .calendar-container {
        margin: 0 0.2rem;
    }
    
    .calendar-day {
        height: 50px;
        padding: 0.2rem;
    }
    
    .day-number {
        font-size: 0.7rem;
    }
    
    .event-indicator {
        font-size: 0.55rem;
        padding: 0.1rem 0.2rem;
    }
    
    .pagination {
        gap: 0.3rem;
        margin-top: 1.5rem;
    }
    
    .page-number {
        width: 30px;
        height: 30px;
        font-size: 0.75rem;
    }
    
    .page-prev,
    .page-next {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
    }
}

/* Optimisation pour écrans moyens en mode portrait (phablets) */
@media screen and (min-width: 481px) and (max-width: 768px) and (orientation: portrait) {
    .events-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .event-card {
        max-width: none;
    }
    
    .event-image {
        height: 140px;
    }
    
    .event-content {
        padding: 0.8rem;
    }
    
    .event-title {
        font-size: 1rem;
    }
    
    .event-description {
        font-size: 0.8rem;
        min-height: 60px;
    }
    
    .filters-container {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .filter-group {
        width: calc(50% - 0.4rem);
        min-width: calc(50% - 0.4rem);
    }
    
    .filter-buttons {
        flex-direction: row;
        width: 100%;
    }
    
    .btn-primary,
    .btn-secondary {
        width: calc(50% - 0.4rem);
    }
    
    .calendar-day {
        height: 70px;
    }
}

/* Optimisation pour mode paysage sur mobile */
@media screen and (max-width: 768px) and (orientation: landscape) {
    .hero-section.events-hero {
        min-height: 180px;
        padding: 1rem 0.5rem;
    }
    
    .hero-content h1 {
        font-size: 1.5rem;
    }
    
    .events-filters {
        padding: 1rem 0.5rem;
    }
    
    .filters-container {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .filter-group {
        width: calc(33.333% - 0.6rem);
        min-width: calc(33.333% - 0.6rem);
    }
    
    .events-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .calendar-section {
        padding: 1.5rem 0.5rem;
    }
    
    .calendar-header {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* Amélioration globale pour tous les mobiles */
@media screen and (max-width: 768px) {
    /* Optimisation du scroll */
    .events-section,
    .calendar-section {
        -webkit-overflow-scrolling: touch;
    }
    
    /* Amélioration des transitions pour mobile */
    .event-card,
    .btn-primary,
    .btn-secondary,
    .btn-view {
        transition-duration: 0.2s;
    }
    
    /* Suppression des effets coûteux sur mobile */
    .event-card:hover .event-image img {
        transform: none;
    }
    
    /* Optimisation des images pour mobile */
    .event-image img {
        image-rendering: auto;
        image-rendering: crisp-edges;
        image-rendering: -webkit-optimize-contrast;
    }
}