/* ============================================
   EVENTS SECTION - GNOVEX CAROUSEL
   Design: Premium avec Carrousel d'Événements
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.events-section {
    position: relative;
    padding: 140px 5% 140px;
    background: linear-gradient(180deg, #fafbfc 0%, #ffffff 100%);
    overflow: hidden;
}

.events-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(65, 206, 159, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.events-container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 1;
}

/* ============= EN-TÊTE ============= */
.events-header {
    text-align: center;
    margin-bottom: 90px;
}

.events-badge {
    display: inline-block;
    padding: 10px 24px;
    background: linear-gradient(135deg, #25B0D5, #41CE9F);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 30px;
    margin-bottom: 28px;
    box-shadow: 0 4px 16px rgba(37, 176, 213, 0.15);
}

.events-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #0a0f1a;
    margin-bottom: 28px;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

.events-subtitle {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #5a6a7d;
    max-width: 800px;
    margin: 0 auto;
    font-weight: 400;
}

/* ============= CARROUSEL PRINCIPAL ============= */
.events-carousel-container {
    position: relative;
    margin-bottom: 100px;
}

.events-carousel-wrapper {
    position: relative;
    overflow: hidden;
    min-height: 600px;
}

.events-carousel-track {
    position: relative;
    width: 100%;
}

.event-card {
    min-width: 100%;
    flex-shrink: 0;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.7s ease, transform 0.7s ease;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    pointer-events: none;
}

.event-card.active {
    opacity: 1;
    transform: scale(1);
    position: relative;
    pointer-events: auto;
}

/* ============= CARTE ÉVÉNEMENT ============= */
.event-item {
    background: #ffffff;
    border-radius: 24px;
    border: 2px solid #f0f3f7;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(10, 15, 26, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.event-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 56px rgba(10, 15, 26, 0.1);
    border-color: #e5e9f0;
}

.event-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 0;
}

/* ============= LOGO ÉVÉNEMENT ============= */
.event-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
    background: linear-gradient(135deg, #fafbfc 0%, #ffffff 100%);
    border-right: 2px solid #f0f3f7;
}

.event-logo img {
    max-width: 200px;
    max-height: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(20%);
    transition: all 0.4s ease;
}

.event-item:hover .event-logo img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* ============= DÉTAILS ÉVÉNEMENT ============= */
.event-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

/* ============= CAROUSEL PHOTOS ============= */
.event-carousel {
  position: relative;
  z-index: 5;
}

.carousel-track {
  position: relative;
}

.carousel-slide {
  display: none;
}

.carousel-slide.active {
  display: block;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  cursor: pointer;
}

.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }

.event-carousel {
    position: relative;
    background: #f8fafc;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 450px;
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.carousel-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Boutons carousel photos - SANS DOTS */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #e5e9f0;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(8px);
}

.carousel-btn:hover {
    background: #ffffff;
    border-color: #25B0D5;
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn svg {
    color: #0a0f1a;
    transition: color 0.3s ease;
}

.carousel-btn:hover svg {
    color: #25B0D5;
}

.carousel-btn.prev {
    left: 20px;
}

.carousel-btn.next {
    right: 20px;
}

/* ============= INFO ÉVÉNEMENT ============= */
.event-info {
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.event-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.event-type {
    display: inline-flex;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(37, 176, 213, 0.08), rgba(65, 206, 159, 0.08));
    color: #25B0D5;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 8px;
}

.event-location {
    font-size: 0.9375rem;
    color: #5a6a7d;
    font-weight: 600;
}

.event-name {
    font-size: 1.875rem;
    font-weight: 800;
    color: #0a0f1a;
    margin-bottom: 20px;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.event-description {
    font-size: 1rem;
    line-height: 1.8;
    color: #5a6a7d;
    margin-bottom: 28px;
}

.event-highlights {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.event-highlights li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.9375rem;
    color: #334155;
    line-height: 1.6;
    font-weight: 500;
}

.event-highlights li::before {
    content: '✓';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: linear-gradient(135deg, #25B0D5, #41CE9F);
    color: #ffffff;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ============= BOUTONS NAVIGATION CARROUSEL PRINCIPAL ============= */
.events-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 2px solid #f0f3f7;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 20;
    box-shadow: 0 4px 20px rgba(10, 15, 26, 0.08);
}

.events-nav-btn:hover {
    background: linear-gradient(135deg, #25B0D5, #41CE9F);
    border-color: transparent;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 28px rgba(37, 176, 213, 0.25);
}

.events-nav-btn svg {
    color: #0a0f1a;
    transition: color 0.3s ease;
}

.events-nav-btn:hover svg {
    color: #ffffff;
}

.events-nav-btn.prev-event {
    left: -32px;
}

.events-nav-btn.next-event {
    right: -32px;
}

/* ============= INDICATEURS CARROUSEL PRINCIPAL ============= */
.events-indicators {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 48px;
}

.event-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e5e9f0;
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.event-indicator:hover {
    background: #cbd2db;
    transform: scale(1.2);
}

.event-indicator.active {
    width: 40px;
    border-radius: 6px;
    background: linear-gradient(135deg, #25B0D5, #41CE9F);
}

/* ============= CTA FINAL ============= */
.events-cta {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding: 60px 48px;
    background: linear-gradient(135deg, rgba(37, 176, 213, 0.04), rgba(65, 206, 159, 0.04));
    border-radius: 24px;
    border: 2px solid #f0f3f7;
}

.cta-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.cta-message {
    font-size: 1.25rem;
    line-height: 1.8;
    color: #334155;
    font-weight: 500;
    margin: 0;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 36px;
    background: linear-gradient(135deg, #25B0D5, #41CE9F);
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 24px rgba(37, 176, 213, 0.25);
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(37, 176, 213, 0.35);
}

.cta-btn svg {
    transition: transform 0.3s ease;
}

.cta-btn:hover svg {
    transform: translateX(4px);
}

/* ============= RESPONSIVE ============= */
@media (max-width: 1200px) {
    .events-nav-btn.prev-event {
        left: 10px;
    }

    .events-nav-btn.next-event {
        right: 10px;
    }

    .event-content {
        grid-template-columns: 250px 1fr;
    }

    .event-logo {
        padding: 36px;
    }

    .event-details {
        grid-template-columns: 1fr;
    }

    .event-info {
        padding: 36px;
    }
    
    .events-carousel-wrapper {
        min-height: 700px;
    }
}

@media (max-width: 768px) {
    .events-section {
        padding: 100px 5% 100px;
    }

    .events-section::before {
        width: 400px;
        height: 400px;
    }

    .events-header {
        margin-bottom: 70px;
    }

    .events-badge {
        font-size: 0.7rem;
        padding: 8px 20px;
    }

    .events-title {
        font-size: 2.5rem;
    }

    .events-subtitle {
        font-size: 1rem;
    }

    .events-carousel-container {
        margin-bottom: 80px;
    }

    .events-nav-btn {
        width: 52px;
        height: 52px;
    }

    .events-nav-btn svg {
        width: 24px;
        height: 24px;
    }

    .event-content {
        grid-template-columns: 1fr;
    }

    .event-logo {
        padding: 32px;
        border-right: none;
        border-bottom: 2px solid #f0f3f7;
    }

    .event-logo img {
        max-width: 160px;
        max-height: 100px;
    }

    .carousel-wrapper {
        min-height: 320px;
    }

    .event-info {
        padding: 32px 24px;
    }

    .event-name {
        font-size: 1.5rem;
    }

    .events-cta {
        padding: 40px 32px;
    }

    .cta-message {
        font-size: 1.125rem;
    }

    .cta-btn {
        width: 100%;
        justify-content: center;
    }
    
    .events-carousel-wrapper {
        min-height: 850px;
    }
}

@media (max-width: 480px) {
    .events-section {
        padding: 80px 5% 80px;
    }

    .events-title {
        font-size: 2rem;
    }

    .events-badge {
        font-size: 0.65rem;
        padding: 7px 18px;
    }

    .events-nav-btn {
        width: 44px;
        height: 44px;
    }

    .events-nav-btn svg {
        width: 20px;
        height: 20px;
    }

    .events-nav-btn.prev-event {
        left: 5px;
    }

    .events-nav-btn.next-event {
        right: 5px;
    }

    .event-info {
        padding: 24px 20px;
    }

    .event-name {
        font-size: 1.25rem;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
    }

    .carousel-btn svg {
        width: 16px;
        height: 16px;
    }

    .carousel-btn.prev {
        left: 12px;
    }

    .carousel-btn.next {
        right: 12px;
    }

    .events-cta {
        padding: 32px 24px;
    }

    .cta-message {
        font-size: 1rem;
    }
    
    .events-carousel-wrapper {
        min-height: 900px;
    }
}