/* ========================================
   INDEX PAGE STYLES
======================================== */

/* Hero Section */
.hero {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 60px 20px;
    position: relative;
    overflow: hidden;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: #56b0ff;
    text-shadow: 0 0 25px rgba(86, 176, 255, 0.5);
    margin-bottom: 15px;
    animation: glowPulse 2.5s ease-in-out infinite alternate;
}

.hero p {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    color: #b9d6f2;
    text-shadow: 0 0 8px rgba(185, 214, 242, 0.3);
}

@keyframes glowPulse {
    0% {
        text-shadow: 0 0 20px rgba(86, 176, 255, 0.4);
    }

    100% {
        text-shadow: 0 0 40px rgba(86, 176, 255, 0.7), 0 0 60px rgba(86, 176, 255, 0.4);
    }
}

/* Intro Section */
.intro-logo {
    display: block;
    margin: 0 auto 30px;
    width: 200px;
    filter: drop-shadow(0 0 20px rgba(86, 176, 255, 0.4));
    animation: logoGlow 3s ease-in-out infinite alternate;
}

@keyframes logoGlow {
    0% {
        filter: drop-shadow(0 0 20px rgba(86, 176, 255, 0.4));
    }

    100% {
        filter: drop-shadow(0 0 40px rgba(86, 176, 255, 0.7));
    }
}



/* Stats Section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 900px;
    margin: 40px auto;
}

.stat {
    background: rgba(14, 36, 53, 0.6);
    border: 1px solid rgba(86, 176, 255, 0.3);
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    backdrop-filter: blur(6px);
    transition: all 0.3s ease;
}

.stat:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 25px rgba(86, 176, 255, 0.4);
    border-color: rgba(86, 176, 255, 0.6);
}


/* Testimonials - Moved to global style.css */

/* ========================================
   TIMELINE (+ modales)
======================================== */


#timeline {
    padding: 80px 20px;
    text-align: center;
    overflow: hidden;
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::after {
    content: "";
    position: absolute;
    width: 4px;
    background: rgba(86, 176, 255, 0.6);
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleY(0);
    transform-origin: top;
    border-radius: 2px;
    transition: transform 1.5s ease-out;
}

.timeline.visible::after {
    transform: translateX(-50%) scaleY(1);
}

.event {
    padding: 20px 40px;
    position: relative;
    width: 50%;
    opacity: 0;
    transition: opacity 1s ease, transform 1s ease;
}

.event.left {
    left: 0;
    text-align: center;
    transform: translateX(-60px);
}

.event.right {
    left: 50%;
    text-align: center;
    transform: translateX(60px);
}

.event.visible {
    opacity: 1;
    transform: translateX(0);
    transition: all 0.8s ease-out;
}

.event .content {
    background: #0e2435;
    color: #dce3ec;
    border: 1px solid rgba(86, 176, 255, 0.25);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 0 12px rgba(86, 176, 255, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.event .content:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 0 25px var(--lw-glow, rgba(86, 176, 255, 0.5));
}

.event.left::before,
.event.right::before {
    content: "";
    position: absolute;
    top: 24px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #56b0ff;
    border: 3px solid #0b1d2a;
    box-shadow: 0 0 10px rgba(86, 176, 255, 0.6);
}

.event.left::before {
    right: -10px;
}

.event.right::before {
    left: -10px;
}

.event.right .content {
    margin-left: 30px;
}

.event.left .content {
    margin-right: 30px;
}

.event .modal-info {
    display: none !important;
    visibility: hidden;
}


/* Modale timeline (unifiée) */
.timeline-modal {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    z-index: 99990;
}

.timeline-modal.active {
    opacity: 1;
    pointer-events: all;
}

.timeline-modal .modal-box {
    background: rgba(10, 25, 45, 0.92);
    border: 1px solid var(--lw-border, rgba(86, 176, 255, 0.3));
    border-radius: 16px;
    max-width: 640px;
    width: 90%;
    padding: 32px;
    text-align: center;
    color: var(--lw-text, #dce3ec);
    box-shadow: 0 0 30px var(--lw-glow, rgba(86, 176, 255, 0.3));
    animation: zoomIn 0.4s ease forwards;
}

.timeline-modal .modal-box h3 {
    font-size: 26px;
    margin-bottom: 18px;
    color: var(--lw-cyan, #56b0ff);
    text-shadow: 0 0 12px rgba(86, 176, 255, 0.6);
}

.timeline-modal .modal-content p {
    margin: 10px 0;
    line-height: 1.6;
    font-size: 16px;
    color: #dce3ec;
}

.glass-btn {
    display: inline-block;
    margin-top: 25px;
    padding: 10px 22px;
    font-weight: 600;
    font-size: 15px;
    color: #fff;
    background: rgba(0, 255, 255, 0.08);
    border: 1px solid rgba(0, 255, 255, 0.4);
    border-radius: 10px;
    backdrop-filter: blur(8px);
    box-shadow: 0 0 12px rgba(0, 255, 255, 0.35);
    cursor: pointer;
    transition: all 0.3s ease;
}

.glass-btn:hover {
    background: rgba(0, 255, 255, 0.15);
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.55);
    transform: scale(1.05);
}

.modal-img-box {
    position: relative;
    margin-bottom: 20px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 0 25px rgba(86, 176, 255, 0.25);
    animation: holoAppear 0.6s ease forwards;
}

.modal-img-box img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 14px;
    filter: brightness(0.95) saturate(1.2);
    transition: transform 0.4s ease, filter 0.4s ease;
}

.modal-img-box:hover img {
    transform: scale(1.05);
    filter: brightness(1.1) saturate(1.3);
}


.event .see-more {
    margin-top: 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--lw-cyan, #56b0ff);
    text-shadow: 0 0 8px rgba(86, 176, 255, 0.6);
    cursor: pointer;
    opacity: 0.8;
    transition: all 0.3s ease;
    user-select: none;
    pointer-events: none !important;
}

.event .see-more:hover {
    opacity: 1;
    transform: scale(1.08);
    text-shadow: 0 0 15px var(--lw-glow, rgba(86, 176, 255, 0.5));
}

.event .see-more::before {
    content: "✦";
    margin-right: 6px;
    font-size: 12px;
    opacity: 0.7;
    animation: twinkleStar 1.8s infinite ease-in-out alternate;
}

@keyframes twinkleStar {
    from {
        opacity: 0.5;
        filter: blur(0px);
    }

    to {
        opacity: 1;
        filter: blur(1px);
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes holoAppear {
    from {
        transform: scale(0.9);
        opacity: 0;
        filter: brightness(0.6) blur(4px);
    }

    to {
        transform: scale(1);
        opacity: 1;
        filter: brightness(1) blur(0);
    }
}



/* ========================================
    ACTUALITÉS
======================================== */
#actus {
    padding: 40px 20px 20px;
}

#actus h2 {
    color: #56b0ff;
    margin-bottom: 20px;
}

.actus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    max-width: 980px;
    margin: 0 auto;
}

.actus-card {
    background: #0e2435;
    border: 1px solid rgba(86, 176, 255, .15);
    border-radius: 14px;
    padding: 18px;
    text-align: left;
    box-shadow: 0 0 12px rgba(86, 176, 255, .18);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.actus-card:hover {
    transform: translateY(-4px);
    background: #0f2940;
    box-shadow: 0 0 22px rgba(86, 176, 255, .28);
}

.actus-card h3 {
    color: #dce3ec;
    margin-bottom: 8px;
    font-size: 18px;
}

.actus-card p {
    font-size: 15.5px;
    line-height: 1.5;
    opacity: .9;
}

.actus-card .date {
    display: inline-block;
    margin-top: 10px;
    opacity: 1;
    pointer-events: all;
}

.timeline-modal .modal-box {
    background: rgba(10, 25, 45, 0.92);
    border: 1px solid var(--lw-border, rgba(86, 176, 255, 0.3));
    border-radius: 16px;
    max-width: 640px;
    width: 90%;
    padding: 32px;
    text-align: center;
    color: var(--lw-text, #dce3ec);
    box-shadow: 0 0 30px var(--lw-glow, rgba(86, 176, 255, 0.3));
    animation: zoomIn 0.4s ease forwards;
}

.timeline-modal .modal-box h3 {
    font-size: 26px;
    margin-bottom: 18px;
    color: var(--lw-cyan, #56b0ff);
    text-shadow: 0 0 12px rgba(86, 176, 255, 0.6);
}

.timeline-modal .modal-content p {
    margin: 10px 0;
    line-height: 1.6;
    font-size: 16px;
    color: #dce3ec;
}

.glass-btn {
    display: inline-block;
    margin-top: 25px;
    padding: 10px 22px;
    font-weight: 600;
    font-size: 15px;
    color: #fff;
    background: rgba(0, 255, 255, 0.08);
    border: 1px solid rgba(0, 255, 255, 0.4);
    border-radius: 10px;
    backdrop-filter: blur(8px);
    box-shadow: 0 0 12px rgba(0, 255, 255, 0.35);
    cursor: pointer;
    transition: all 0.3s ease;
}

.glass-btn:hover {
    background: rgba(0, 255, 255, 0.15);
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.55);
    transform: scale(1.05);
}

.modal-img-box {
    position: relative;
    margin-bottom: 20px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 0 25px rgba(86, 176, 255, 0.25);
    animation: holoAppear 0.6s ease forwards;
}

.modal-img-box img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 14px;
    filter: brightness(0.95) saturate(1.2);
    transition: transform 0.4s ease, filter 0.4s ease;
}

.modal-img-box:hover img {
    transform: scale(1.05);
    filter: brightness(1.1) saturate(1.3);
}


.event .see-more {
    margin-top: 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--lw-cyan, #56b0ff);
    text-shadow: 0 0 8px rgba(86, 176, 255, 0.6);
    cursor: pointer;
    opacity: 0.8;
    transition: all 0.3s ease;
    user-select: none;
    pointer-events: none !important;
}

.event .see-more:hover {
    opacity: 1;
    transform: scale(1.08);
    text-shadow: 0 0 15px var(--lw-glow, rgba(86, 176, 255, 0.5));
}

.event .see-more::before {
    content: "✦";
    margin-right: 6px;
    font-size: 12px;
    opacity: 0.7;
    animation: twinkleStar 1.8s infinite ease-in-out alternate;
}

@keyframes twinkleStar {
    from {
        opacity: 0.5;
        filter: blur(0px);
    }

    to {
        opacity: 1;
        filter: blur(1px);
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes holoAppear {
    from {
        transform: scale(0.9);
        opacity: 0;
        filter: brightness(0.6) blur(4px);
    }

    to {
        transform: scale(1);
        opacity: 1;
        filter: brightness(1) blur(0);
    }
}



/* ========================================
    ACTUALITÉS
======================================== */
#actus {
    padding: 40px 20px 20px;
}

#actus h2 {
    color: #56b0ff;
    margin-bottom: 20px;
}

.actus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    max-width: 980px;
    margin: 0 auto;
}

.actus-card {
    background: #0e2435;
    border: 1px solid rgba(86, 176, 255, .15);
    border-radius: 14px;
    padding: 18px;
    text-align: left;
    box-shadow: 0 0 12px rgba(86, 176, 255, .18);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.actus-card:hover {
    transform: translateY(-4px);
    background: #0f2940;
    box-shadow: 0 0 22px rgba(86, 176, 255, .28);
}

.actus-card h3 {
    color: #dce3ec;
    margin-bottom: 8px;
    font-size: 18px;
}

.actus-card p {
    font-size: 15.5px;
    line-height: 1.5;
    opacity: .9;
}

.actus-card .date {
    display: inline-block;
    margin-top: 10px;
    font-size: 13px;
    color: #bfe1ff;
    background: rgba(86, 176, 255, .10);
    border: 1px solid rgba(86, 176, 255, .25);
    padding: 4px 10px;
    border-radius: 999px;
}

/* ========================================
   RESPONSIVE TIMELINE
======================================== */
@media (max-width: 768px) {
    .timeline::after {
        left: 31px;
    }

    .event {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .event.right {
        left: 0;
    }

    .event.left,
    .event.right {
        text-align: left;
    }

    .event.left::before,
    .event.right::before {
        left: 21px;
    }

    .event.right .content,
    .event.left .content {
        margin-left: 0;
        margin-right: 0;
    }

    /* Reset transforms for mobile to avoid layout issues */
    .event.left {
        transform: translateX(0);
    }

    .event.right {
        transform: translateX(0);
    }
}