/* ════════════════════════════════════════════════════════
   GNOVEX - FIX NAVBAR + EVENTS MOBILE
   Corrections ciblées pour navigation et événements
   ════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    
    /* ═══════════════════════════════════════════════════
       NAVBAR - FIX COMPLET
       ═══════════════════════════════════════════════════ */
    
    /* Container navbar */
    .navbar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 9999 !important;
        background: rgba(255, 255, 255, 0.98) !important;
    }
    
    .nav-container {
        height: 60px !important;
        padding: 0 5% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
    }
    
    /* Logo */
    .logo {
        z-index: 10000 !important;
    }
    
    .logo-img {
        height: 32px !important;
    }
    
    /* Menu - caché par défaut */
    .nav-menu {
        position: fixed !important;
        top: 60px !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        
        padding: 30px 5% !important;
        gap: 10px !important;
        
        opacity: 0 !important;
        visibility: hidden !important;
        transform: translateY(-20px) !important;
        transition: all 0.3s ease !important;
        
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        
        z-index: 9998 !important;
    }
    
    /* Menu ouvert */
    .nav-menu.active {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
    }
    
    /* Items menu */
    .nav-menu li {
        width: 100% !important;
        list-style: none !important;
    }
    
    /* Liens navigation */
    .nav-link {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        padding: 15px 20px !important;
        font-size: 16px !important;
        text-align: center !important;
        border-radius: 8px !important;
        transition: all 0.3s ease !important;
    }
    
    .nav-link:hover {
        background: rgba(37, 176, 213, 0.1) !important;
    }
    
    .nav-link.active {
        background: linear-gradient(135deg, #41CE9F, #25B0D5) !important;
        color: white !important;
    }
    
    /* Cacher bouton CTA desktop */
    .nav-actions {
        display: none !important;
    }
    
    /* Afficher burger menu */
    .menu-toggle {
        display: flex !important;
        flex-direction: column !important;
        gap: 5px !important;
        background: none !important;
        border: none !important;
        cursor: pointer !important;
        padding: 8px !important;
        z-index: 10000 !important;
        position: relative !important;
    }
    
    .menu-toggle span {
        display: block !important;
        width: 25px !important;
        height: 3px !important;
        background: linear-gradient(90deg, #41CE9F, #25B0D5) !important;
        border-radius: 3px !important;
        transition: all 0.3s ease !important;
    }
    
    /* Animation burger -> X */
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px) !important;
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0 !important;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px) !important;
    }
    
    /* Bloquer scroll body quand menu ouvert */
    body.modal-open {
        overflow: hidden !important;
        position: fixed !important;
        width: 100% !important;
        height: 100vh !important;
    }
    
    
    /* ═══════════════════════════════════════════════════
       ÉVÉNEMENTS - FIX COMPLET
       ═══════════════════════════════════════════════════ */
    
    /* Section événements */
    .events-section {
        padding: 50px 5% !important;
    }
    
    /* Header */
    .events-header {
        margin-bottom: 40px !important;
        text-align: center !important;
    }
    
    .events-badge {
        font-size: 0.7rem !important;
        padding: 8px 16px !important;
    }
    
    .events-title {
        font-size: 2rem !important;
        margin-bottom: 15px !important;
    }
    
    .events-subtitle {
        font-size: 1rem !important;
    }
    
    /* Container carousel */
    .events-carousel-container {
        position: relative !important;
        margin-bottom: 40px !important;
    }
    
    .events-carousel-wrapper {
        position: relative !important;
        width: 100% !important;
        overflow: visible !important;
        min-height: auto !important;
    }
    
    .events-carousel-track {
        position: relative !important;
        width: 100% !important;
    }
    
    /* Cartes événements */
    .event-card {
        display: none !important;
        width: 100% !important;
        opacity: 0 !important;
        transition: opacity 0.5s ease !important;
    }
    
    .event-card.active {
        display: block !important;
        opacity: 1 !important;
        position: relative !important;
    }
    
    /* Item événement */
    .event-item {
        background: white !important;
        border-radius: 16px !important;
        overflow: hidden !important;
        border: 1px solid #e5e9f0 !important;
    }
    
    /* Contenu événement - EN COLONNE */
    .event-content {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
    }
    
    /* Logo événement */
    .event-logo {
        width: 100% !important;
        padding: 30px !important;
        text-align: center !important;
        background: #fafbfc !important;
        border-right: none !important;
        border-bottom: 2px solid #e5e9f0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .event-logo img {
        max-width: 150px !important;
        max-height: 80px !important;
        width: auto !important;
        height: auto !important;
        object-fit: contain !important;
    }
    
    /* Détails événement - EN COLONNE */
    .event-details {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
    }
    
    /* Carousel photos événement */
    .event-carousel {
        position: relative !important;
        width: 100% !important;
        background: #f8fafc !important;
        order: 1 !important;
    }
    
    .carousel-wrapper {
        position: relative !important;
        width: 100% !important;
        height: 280px !important;
        min-height: 280px !important;
        overflow: hidden !important;
    }
    
    .carousel-track {
        position: relative !important;
        width: 100% !important;
        height: 100% !important;
    }
    
    .carousel-slide {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        opacity: 0 !important;
        transition: opacity 0.5s ease !important;
        display: none !important;
    }
    
    .carousel-slide.active {
        opacity: 1 !important;
        display: block !important;
    }
    
    .carousel-slide img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
    
    /* Boutons carousel photos */
    .carousel-btn {
        position: absolute !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        width: 40px !important;
        height: 40px !important;
        background: rgba(255, 255, 255, 0.9) !important;
        border: 1px solid #e5e9f0 !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
        z-index: 10 !important;
        transition: all 0.3s ease !important;
    }
    
    .carousel-btn:hover {
        background: white !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
    }
    
    .carousel-btn svg {
        width: 18px !important;
        height: 18px !important;
        color: #0a0f1a !important;
    }
    
    .carousel-btn.prev {
        left: 15px !important;
    }
    
    .carousel-btn.next {
        right: 15px !important;
    }
    
    /* Info événement */
    .event-info {
        padding: 30px 20px !important;
        order: 2 !important;
    }
    
    .event-meta {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        margin-bottom: 15px !important;
    }
    
    .event-type {
        font-size: 0.85rem !important;
        padding: 6px 12px !important;
        display: inline-block !important;
        width: fit-content !important;
    }
    
    .event-location {
        font-size: 0.9rem !important;
    }
    
    .event-name {
        font-size: 1.4rem !important;
        margin-bottom: 15px !important;
        line-height: 1.3 !important;
    }
    
    .event-description {
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
        margin-bottom: 20px !important;
    }
    
    .event-highlights {
        list-style: none !important;
        padding: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
    }
    
    .event-highlights li {
        display: flex !important;
        align-items: flex-start !important;
        gap: 10px !important;
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
    }
    
    .event-highlights li::before {
        content: '✓' !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 22px !important;
        height: 22px !important;
        min-width: 22px !important;
        background: linear-gradient(135deg, #25B0D5, #41CE9F) !important;
        color: white !important;
        border-radius: 50% !important;
        font-size: 12px !important;
        font-weight: bold !important;
        margin-top: 2px !important;
    }
    
    /* Boutons navigation événements principaux */
    .events-nav-btn {
        position: absolute !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        width: 50px !important;
        height: 50px !important;
        background: white !important;
        border: 2px solid #e5e9f0 !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
        z-index: 100 !important;
        transition: all 0.3s ease !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
    }
    
    .events-nav-btn:hover {
        background: linear-gradient(135deg, #25B0D5, #41CE9F) !important;
        border-color: transparent !important;
        box-shadow: 0 6px 20px rgba(37, 176, 213, 0.3) !important;
    }
    
    .events-nav-btn:hover svg {
        color: white !important;
    }
    
    .events-nav-btn svg {
        width: 24px !important;
        height: 24px !important;
        color: #0a0f1a !important;
        transition: color 0.3s ease !important;
    }
    
    .events-nav-btn.prev-event {
        left: 10px !important;
    }
    
    .events-nav-btn.next-event {
        right: 10px !important;
    }
    
    /* Indicateurs événements */
    .events-indicators {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 10px !important;
        margin-top: 30px !important;
        flex-wrap: wrap !important;
    }
    
    .event-indicator {
        width: 12px !important;
        height: 12px !important;
        border-radius: 50% !important;
        background: #e5e9f0 !important;
        border: none !important;
        cursor: pointer !important;
        transition: all 0.3s ease !important;
        padding: 0 !important;
    }
    
    .event-indicator:hover {
        background: #cbd2db !important;
        transform: scale(1.2) !important;
    }
    
    .event-indicator.active {
        width: 40px !important;
        border-radius: 6px !important;
        background: linear-gradient(135deg, #25B0D5, #41CE9F) !important;
    }
    
    /* CTA événements */
    .events-cta {
        padding: 40px 25px !important;
        margin-top: 50px !important;
        text-align: center !important;
    }
    
    .cta-content {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 25px !important;
    }
    
    .cta-message {
        font-size: 1.1rem !important;
        line-height: 1.6 !important;
    }
    
    .cta-btn {
        width: 100% !important;
        max-width: 300px !important;
        padding: 16px 30px !important;
        font-size: 1rem !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 10px !important;
    }
}

/* ═══════════════════════════════════════════════════
   PETIT SMARTPHONE (≤480px)
   ═══════════════════════════════════════════════════ */

@media (max-width: 480px) {
    
    /* NAVBAR */
    .nav-container {
        padding: 0 4% !important;
    }
    
    .logo-img {
        height: 28px !important;
    }
    
    .nav-menu {
        padding: 20px 4% !important;
    }
    
    .nav-link {
        padding: 12px 15px !important;
        font-size: 15px !important;
    }
    
    /* ÉVÉNEMENTS */
    .events-title {
        font-size: 1.75rem !important;
    }
    
    .carousel-wrapper {
        height: 240px !important;
        min-height: 240px !important;
    }
    
    .event-logo {
        padding: 25px !important;
    }
    
    .event-logo img {
        max-width: 130px !important;
        max-height: 70px !important;
    }
    
    .event-info {
        padding: 25px 18px !important;
    }
    
    .event-name {
        font-size: 1.25rem !important;
    }
    
    .event-description {
        font-size: 0.9rem !important;
    }
    
    .event-highlights li {
        font-size: 0.85rem !important;
    }
    
    .events-nav-btn {
        width: 45px !important;
        height: 45px !important;
    }
    
    .events-nav-btn svg {
        width: 20px !important;
        height: 20px !important;
    }
    
    .carousel-btn {
        width: 36px !important;
        height: 36px !important;
    }
    
    .carousel-btn svg {
        width: 16px !important;
        height: 16px !important;
    }
    
    .cta-message {
        font-size: 1rem !important;
    }
}
