/* ============================================
   LA MEUTE - Mobile Optimizations V2
   Breakpoints: 
   - Mobile: < 640px
   - Tablet: 640px - 1024px
   - Desktop: > 1024px
   ============================================ */

/* ============================================
   MOBILE NAVIGATION
   ============================================ */
@media (max-width: 1024px) {
    .nav-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--color-charcoal);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: var(--space-xl);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-base);
        z-index: 1000;
    }
    
    .nav-links.active {
        opacity: 1;
        visibility: visible;
    }
    
    .nav-link {
        font-size: 1.5rem;
        opacity: 0;
        transform: translateY(20px);
        transition: all var(--transition-base);
    }
    
    .nav-links.active .nav-link {
        opacity: 1;
        transform: translateY(0);
    }
    
    .nav-links.active .nav-link:nth-child(1) { transition-delay: 0.1s; }
    .nav-links.active .nav-link:nth-child(2) { transition-delay: 0.15s; }
    .nav-links.active .nav-link:nth-child(3) { transition-delay: 0.2s; }
    .nav-links.active .nav-link:nth-child(4) { transition-delay: 0.25s; }
    .nav-links.active .nav-link:nth-child(5) { transition-delay: 0.3s; }
    .nav-links.active .nav-link:nth-child(6) { transition-delay: 0.35s; }
    .nav-links.active .nav-link:nth-child(7) { transition-delay: 0.4s; }
}

/* ============================================
   SMART NAVBAR - Hide on scroll down
   ============================================ */
.navbar.nav-hidden {
    transform: translateY(-100%);
}

.navbar.nav-visible {
    transform: translateY(0);
}

/* ============================================
   TABLET ADJUSTMENTS
   ============================================ */
@media (max-width: 1024px) {
    .container {
        padding: 0 var(--space-lg);
    }
    
    section {
        padding: var(--space-3xl) 0;
    }
    
    /* About Grid */
    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    
    .about-image {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Contact Grid */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    
    .contact-info {
        padding-right: 0;
    }
    
    /* Events Grid */
    .events-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Coaching Grid - 2 columns on tablet */
    .coaching-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .coaching-card.highlighted {
        transform: none;
    }
    
    /* Testimonials */
    .testimonial-card {
        flex: 0 0 calc(50% - var(--space-md));
    }
    
    /* Blog Grid */
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   MOBILE STYLES
   ============================================ */
@media (max-width: 640px) {
    /* Force display of AOS elements on mobile */
    [data-aos] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    
    :root {
        --space-3xl: 3rem;
        --space-4xl: 4rem;
    }
    
    .container {
        padding: 0 var(--space-md);
    }
    
    section {
        padding: var(--space-2xl) 0;
    }
    
    .section-header {
        margin-bottom: var(--space-xl);
    }
    
    /* Hero Mobile */
    .hero {
        min-height: 100svh;
    }
    
    .hero-content {
        padding: var(--space-md);
    }
    
    .hero-title-main {
        font-size: 2.5rem;
        letter-spacing: 0.1em;
    }
    
    .hero-title-sub {
        font-size: 0.8rem;
        letter-spacing: 0.15em;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: var(--space-md);
    }
    
    .hero-cta {
        flex-direction: column;
        width: 100%;
        gap: var(--space-sm);
    }
    
    .hero-cta .btn {
        width: 100%;
        padding: 0.7rem 1.25rem !important;
        font-size: 0.8rem !important;
        min-height: 42px !important;
        letter-spacing: 0.08em;
    }
    
    /* Countdown Mobile */
    .countdown-section {
        padding: var(--space-lg) 0;
    }
    
    #countdown {
        gap: var(--space-md);
    }
    
    .countdown-item {
        min-width: 70px;
    }
    
    .countdown-number {
        font-size: 2rem;
    }
    
    .countdown-label {
        font-size: 0.65rem;
    }
    
    /* About Mobile */
    .about-image::before {
        display: none;
    }
    
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-sm);
    }
    
    .stat-item {
        padding: var(--space-sm);
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.6rem;
    }
    
    .about-social {
        flex-direction: column;
    }
    
    .social-link {
        justify-content: center;
    }
    
    /* ============================================
       EVENTS MOBILE - Carrousel Horizontal
       ============================================ */
    .events-section .container {
        overflow: visible;
    }
    
    .events-grid {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto;
        overflow-y: visible;
        scroll-snap-type: x mandatory;
        gap: var(--space-md);
        padding-bottom: var(--space-md);
        margin: 0 calc(var(--space-md) * -1);
        padding-left: var(--space-md);
        padding-right: var(--space-md);
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        min-height: 400px;
    }
    
    .events-grid::-webkit-scrollbar {
        display: none;
    }
    
    .events-grid .event-card {
        flex: 0 0 85%;
        scroll-snap-align: center;
        min-width: 280px;
        max-width: 85vw;
        height: auto;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .event-card-image {
        height: 160px;
    }
    
    .event-card-content {
        padding: var(--space-lg);
    }
    
    .event-card-title {
        font-size: 1.25rem;
    }
    
    .event-card-footer {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-sm);
    }
    
    .event-card-footer .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Carousel Indicators */
    .carousel-indicators {
        display: flex;
        justify-content: center;
        gap: var(--space-sm);
        margin-top: var(--space-md);
    }
    
    .carousel-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: rgba(0,0,0,0.2);
        border: none;
        padding: 0;
        cursor: pointer;
        transition: var(--transition-base);
    }
    
    .carousel-dot.active {
        background: var(--color-ochre);
        width: 24px;
        border-radius: var(--radius-full);
    }
    
    /* ============================================
       COACHING MOBILE - Format Accordéon Compact
       ============================================ */
    .coaching-grid {
        display: flex;
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .coaching-card {
        padding: 0;
        background: rgba(255,255,255,0.03);
        border: 1px solid rgba(255,255,255,0.1);
        overflow: hidden;
    }
    
    .coaching-card.highlighted::before {
        right: var(--space-md);
    }
    
    /* Coaching Card Header - Always Visible */
    .coaching-card-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: var(--space-lg);
        border-bottom: none;
        margin-bottom: 0;
        cursor: pointer;
        transition: var(--transition-base);
    }
    
    .coaching-card-header:hover {
        background: rgba(255,255,255,0.05);
    }
    
    .coaching-header-left {
        display: flex;
        align-items: center;
        gap: var(--space-md);
        text-align: left;
    }
    
    .coaching-card-header .coaching-card-title {
        font-size: 1.1rem;
        margin-bottom: 0;
    }
    
    .coaching-card-header .coaching-card-price {
        font-size: 1.5rem;
    }
    
    .coaching-card-header .coaching-card-duration {
        display: none;
    }
    
    .coaching-toggle-icon {
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(217, 119, 6, 0.2);
        border-radius: var(--radius-full);
        transition: var(--transition-base);
        flex-shrink: 0;
    }
    
    .coaching-toggle-icon::before {
        content: '+';
        font-size: 1.25rem;
        color: var(--color-ochre);
        font-weight: 300;
    }
    
    .coaching-card.expanded .coaching-toggle-icon {
        background: var(--color-ochre);
    }
    
    .coaching-card.expanded .coaching-toggle-icon::before {
        content: '−';
        color: var(--color-white);
    }
    
    /* Coaching Card Body - Expandable */
    .coaching-card-body {
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--transition-slow);
    }
    
    .coaching-card.expanded .coaching-card-body {
        max-height: 800px;
    }
    
    .coaching-card-body-content {
        padding: 0 var(--space-lg) var(--space-lg);
    }
    
    .coaching-card-duration-mobile {
        font-size: 0.875rem;
        color: var(--color-sand);
        margin-bottom: var(--space-md);
        display: block;
    }
    
    .coaching-card-description {
        margin-bottom: var(--space-md);
    }
    
    .coaching-card-features {
        margin-bottom: var(--space-lg);
    }
    
    .coaching-card-features li {
        padding: var(--space-xs) 0;
        font-size: 0.8rem;
    }
    
    /* Alternative: Coaching Swipeable Cards */
    .coaching-grid.swipeable {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: var(--space-md);
        padding-bottom: var(--space-md);
        margin: 0 calc(var(--space-md) * -1);
        padding-left: var(--space-md);
        padding-right: var(--space-md);
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .coaching-grid.swipeable::-webkit-scrollbar {
        display: none;
    }
    
    .coaching-grid.swipeable .coaching-card {
        flex: 0 0 85%;
        scroll-snap-align: center;
        min-width: 280px;
        padding: var(--space-xl);
    }
    
    .coaching-grid.swipeable .coaching-card-header {
        display: block;
        text-align: center;
        padding: 0;
        padding-bottom: var(--space-lg);
        border-bottom: 1px solid rgba(255,255,255,0.1);
        margin-bottom: var(--space-lg);
        cursor: default;
    }
    
    .coaching-grid.swipeable .coaching-header-left {
        flex-direction: column;
        text-align: center;
    }
    
    .coaching-grid.swipeable .coaching-toggle-icon {
        display: none;
    }
    
    .coaching-grid.swipeable .coaching-card-body {
        max-height: none;
        overflow: visible;
    }
    
    .coaching-grid.swipeable .coaching-card-body-content {
        padding: 0;
    }
    
    /* ============================================
       TESTIMONIALS MOBILE - Carrousel
       ============================================ */
    .testimonials-track {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: var(--space-md);
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .testimonials-track::-webkit-scrollbar {
        display: none;
    }
    
    .testimonial-card {
        flex: 0 0 90%;
        scroll-snap-align: center;
        min-width: 280px;
    }
    
    .testimonial-card {
        padding: var(--space-lg);
    }
    
    .testimonial-quote {
        font-size: 0.9rem;
    }
    
    .testimonial-quote::before {
        font-size: 3rem;
        top: -10px;
    }
    
    /* ============================================
       APP SECTION MOBILE
       ============================================ */
    .app-downloads {
        flex-direction: column;
        align-items: center;
    }
    
    .app-download-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    /* ============================================
       FAQ MOBILE
       ============================================ */
    .faq-question {
        padding: var(--space-lg) 0;
        font-size: 1rem;
    }
    
    .faq-answer-content {
        font-size: 0.9rem;
    }
    
    /* ============================================
       GALLERY MOBILE
       ============================================ */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-sm);
    }
    
    .gallery-item {
        aspect-ratio: 1;
    }
    
    /* ============================================
       BLOG MOBILE - Plus compact
       ============================================ */
    .blog-section .container {
        overflow: visible;
    }
    
    .blog-grid {
        display: grid !important;
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .blog-card {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .blog-card-image {
        height: 140px;
    }
    
    .blog-card-content {
        padding: var(--space-md);
    }
    
    .blog-card-meta {
        font-size: 0.7rem;
        margin-bottom: var(--space-xs);
    }
    
    .blog-card-title {
        font-size: 0.95rem;
        margin-bottom: var(--space-xs);
    }
    
    .blog-card-excerpt {
        font-size: 0.8rem;
        line-height: 1.5;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    /* ============================================
       CONTACT MOBILE
       ============================================ */
    .contact-form-wrapper {
        padding: var(--space-lg);
    }
    
    .contact-item {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-sm);
    }
    
    /* ============================================
       FOOTER MOBILE
       ============================================ */
    .footer {
        padding: var(--space-2xl) 0 var(--space-lg);
    }
    
    .footer-social {
        flex-direction: column;
        width: 100%;
    }
    
    .footer-social-link {
        justify-content: center;
    }
    
    /* ============================================
       MODALS MOBILE
       ============================================ */
    .modal {
        padding: var(--space-sm);
        align-items: flex-end;
    }
    
    .modal-content {
        max-height: 90vh;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        padding: var(--space-lg);
    }
    
    .modal-large {
        max-width: 100%;
    }
    
    /* ============================================
       LIGHTBOX MOBILE
       ============================================ */
    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    .lightbox-prev {
        left: var(--space-sm);
    }
    
    .lightbox-next {
        right: var(--space-sm);
    }
    
    .lightbox-close {
        top: var(--space-sm);
        right: var(--space-sm);
    }
    
    /* ============================================
       SCROLL TO TOP MOBILE
       ============================================ */
    .scroll-top {
        bottom: var(--space-lg);
        right: var(--space-lg);
        width: 44px;
        height: 44px;
    }
    
    /* ============================================
       BUTTONS MOBILE - Touch-friendly mais compact
       ============================================ */
    .btn {
        min-height: 42px;
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
    
    .btn-large {
        padding: 0.7rem 1.25rem;
        font-size: 0.85rem;
    }
}

/* ============================================
   VERY SMALL SCREENS (< 360px)
   ============================================ */
@media (max-width: 360px) {
    .hero-title-main {
        font-size: 2.5rem;
    }
    
    .countdown-item {
        min-width: 60px;
    }
    
    .countdown-number {
        font-size: 1.75rem;
    }
    
    .stat-number {
        font-size: 1.25rem;
    }
    
    .events-grid .event-card,
    .coaching-grid.swipeable .coaching-card,
    .testimonial-card {
        flex: 0 0 95%;
    }
}

/* ============================================
   LANDSCAPE MOBILE
   ============================================ */
@media (max-width: 896px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: var(--space-4xl) 0 var(--space-2xl);
    }
    
    .hero-title-main {
        font-size: 2.5rem;
    }
    
    .hero-cta {
        flex-direction: row;
    }
    
    .hero-cta .btn {
        width: auto;
    }
}

/* ============================================
   TOUCH DEVICE OPTIMIZATIONS
   ============================================ */
@media (hover: none) and (pointer: coarse) {
    /* Disable hover effects on touch devices */
    .btn:hover::before {
        display: none;
    }
    
    .event-card:hover {
        transform: none;
    }
    
    .coaching-card:hover {
        transform: none;
        background: rgba(255,255,255,0.05);
    }
    
    /* Active states for touch */
    .btn:active {
        transform: scale(0.98);
    }
    
    .event-card:active {
        transform: scale(0.99);
    }
    
    /* Improve scroll containers */
    .events-grid,
    .coaching-grid.swipeable,
    .testimonials-track {
        scroll-behavior: smooth;
        overscroll-behavior-x: contain;
    }
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .loader-bar::after {
        animation: none;
    }
}

/* ============================================
   DARK MODE SUPPORT
   ============================================ */
@media (prefers-color-scheme: dark) {
    /* Optional dark mode adjustments */
}

/* ============================================
   HIGH CONTRAST MODE
   ============================================ */
@media (prefers-contrast: high) {
    :root {
        --color-ochre: #FF8C00;
        --color-sand: #FFF8E7;
    }
    
    .btn-primary {
        border: 2px solid var(--color-white);
    }
    
    .coaching-card {
        border-width: 2px;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .navbar,
    .loader,
    .scroll-top,
    .modal,
    .lightbox {
        display: none !important;
    }
    
    section {
        page-break-inside: avoid;
    }
    
    .hero {
        min-height: auto;
        padding: 2rem 0;
    }
}


/* ============================================
   CORRECTIFS CSS - LA MEUTE
   À ajouter à mobile-optimizations.css
   ============================================ */

/* ============================================
   CORRECTIF 1 : Blog Cards Cliquables
   ============================================ */
.blog-card {
    cursor: pointer !important;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

    .blog-card:active {
        transform: translateY(-2px);
    }

/* ============================================
   CORRECTIF 2 : Coaching Prix Mobile
   ============================================ */
@media (max-width: 768px) {
    .coaching-card-header {
        padding-bottom: 1rem !important;
        margin-bottom: 1rem !important;
    }

    .coaching-card-price {
        margin-top: 0.75rem !important;
        margin-bottom: 0.5rem !important;
        font-size: 1.5rem !important;
    }

    /* Espacer le bouton + du prix */
    .coaching-card-toggle {
        margin-top: 0.75rem !important;
    }

    /* Version repliée */
    .coaching-card:not(.expanded) .coaching-card-header {
        padding-bottom: 1.5rem !important;
    }
}

/* ============================================
   CORRECTIF 3 : Modals Plus Compactes
   ============================================ */

/* Modal compacte - Général */
.modal-compact-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.modal-compact-title {
    font-size: 1.5rem !important;
    margin-bottom: 1rem !important;
    line-height: 1.3;
}

.modal-compact-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.modal-compact-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

    .modal-compact-meta-item svg {
        width: 18px;
        height: 18px;
        color: #D97706;
    }

.modal-compact-description {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    max-height: 300px;
    overflow-y: auto;
}

    .modal-compact-description h2,
    .modal-compact-description h3 {
        font-size: 1.1rem;
        margin: 1rem 0 0.5rem 0;
    }

    .modal-compact-description p {
        margin-bottom: 0.75rem;
    }

    .modal-compact-description ul,
    .modal-compact-description ol {
        margin-left: 1.5rem;
        margin-bottom: 0.75rem;
    }

.modal-compact-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    border-top: 1px solid #e2e8f0;
    padding-top: 1rem;
}

.modal-btn-compact {
    flex: 1;
    min-width: 120px;
    padding: 0.65rem 1rem !important;
    font-size: 0.9rem !important;
    border-radius: 6px;
    text-decoration: none;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

.modal-btn-primary {
    background: #D97706;
    color: white;
}

    .modal-btn-primary:hover {
        background: #92400E;
    }

.modal-btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #e5e7eb;
}

    .modal-btn-secondary:hover {
        background: #e5e7eb;
    }

/* Réduire la taille du modal content */
.modal-content {
    padding: 1.5rem !important;
    max-width: 600px !important;
}

/* Mobile */
@media (max-width: 768px) {
    .modal-compact-image {
        height: 150px;
    }

    .modal-compact-title {
        font-size: 1.3rem !important;
    }

    .modal-compact-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .modal-compact-description {
        font-size: 0.9rem;
        max-height: 250px;
    }

    .modal-compact-actions {
        flex-direction: column;
    }

    .modal-btn-compact {
        width: 100%;
        min-width: auto;
    }

    .modal-content {
        width: 95% !important;
        padding: 1.25rem !important;
        max-height: 85vh;
    }
}

/* ============================================
   CORRECTIF 4 : Modal Blog
   ============================================ */
.modal-blog-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.modal-blog-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: center;
}

.modal-blog-category {
    background: #D97706;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.modal-blog-date {
    color: #666;
    font-size: 0.85rem;
}

.modal-blog-title {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.modal-blog-content {
    font-size: 0.95rem;
    line-height: 1.8;
    max-height: 350px;
    overflow-y: auto;
}

    .modal-blog-content h2,
    .modal-blog-content h3 {
        font-size: 1.2rem;
        margin: 1.25rem 0 0.75rem 0;
    }

    .modal-blog-content p {
        margin-bottom: 1rem;
    }

    .modal-blog-content img {
        max-width: 100%;
        border-radius: 8px;
        margin: 1rem 0;
    }

@media (max-width: 768px) {
    .modal-blog-image {
        height: 160px;
    }

    .modal-blog-title {
        font-size: 1.3rem;
    }

    .modal-blog-content {
        font-size: 0.9rem;
        max-height: 300px;
    }
}

/* ============================================
   AMÉLIORATION : Modal Close Button
   ============================================ */
.modal-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 36px !important;
    height: 36px !important;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

    .modal-close:hover {
        background: #fee2e2;
        color: #dc2626;
    }

@media (max-width: 768px) {
    .modal-close {
        width: 32px !important;
        height: 32px !important;
        top: 0.25rem;
        right: 0.25rem;
    }
}



/* ============================================
   CORRECTIF : Bouton "En savoir plus" Mobile
   À ajouter à mobile-optimizations.css
   ============================================ */

/* Assurer que le bouton est cliquable sur mobile */
@media (max-width: 768px) {

    /* Event card - Assurer que tout est cliquable */
    .event-card {
        pointer-events: auto !important;
        touch-action: manipulation;
    }

    .event-card-footer {
        pointer-events: auto !important;
        position: relative;
        z-index: 10;
    }

        .event-card-footer .btn {
            pointer-events: auto !important;
            touch-action: manipulation;
            -webkit-tap-highlight-color: rgba(217, 119, 6, 0.3);
            cursor: pointer;
            position: relative;
            z-index: 20;
        }

        /* Augmenter la zone de clic sur mobile */
        .event-card-footer .btn {
            padding: 1rem 1.5rem !important;
            font-size: 1rem !important;
            min-height: 48px; /* Taille minimale recommandée pour touch */
            display: flex;
            align-items: center;
            justify-content: center;
        }

    /* Empêcher les conflits avec les overlays */
    .event-card::before,
    .event-card::after {
        pointer-events: none !important;
    }

    /* S'assurer qu'il n'y a pas de z-index négatif */
    .event-card > * {
        position: relative;
        z-index: 1;
    }
}

/* Alternative : Rendre toute la carte cliquable sur mobile */
@media (max-width: 768px) {
    .event-card-mobile-wrapper {
        cursor: pointer;
    }

    /* Désactiver le hover sur mobile pour éviter les conflits */
    .event-card:hover {
        transform: none;
    }

    /* Active state pour feedback tactile */
    .event-card:active {
        transform: scale(0.98);
        opacity: 0.95;
    }

    .event-card-footer .btn:active {
        transform: scale(0.95);
    }
}

/* Debug : Vérifier que le bouton est visible */
@media (max-width: 768px) {
    .event-card-footer .btn {
        /* Bordure visible pour debug (à retirer après test) */
        /* border: 2px solid red !important; */
    }
}