/* ========================================
   INDEX PAGE STYLES
======================================== */

/* Hero Section */
.hero {
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 28px 20px 22px;
    position: relative;
    overflow: visible;
    background-image:
      radial-gradient(ellipse 52% 78% at 16% 42%, rgba(0, 229, 255, 0.36), transparent 58%),
      radial-gradient(ellipse 52% 78% at 84% 50%, rgba(255, 46, 230, 0.3), transparent 58%),
      linear-gradient(180deg, #05070e 0%, #0a1020 100%);
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: #f2f7ff;
    text-shadow:
      0 2px 10px rgba(0, 0, 0, 0.85),
      0 0 28px rgba(0, 0, 0, 0.55),
      0 0 40px rgba(0, 229, 255, 0.55),
      0 0 64px rgba(255, 46, 230, 0.4);
    margin-bottom: 15px;
    animation: glowPulse 2.5s ease-in-out infinite alternate;
}

.hero p {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    color: #e8f1fb;
    text-shadow:
      0 1px 8px rgba(0, 0, 0, 0.85),
      0 0 18px rgba(0, 0, 0, 0.45);
}

@keyframes glowPulse {
    0% {
        text-shadow:
          0 2px 10px rgba(0, 0, 0, 0.85),
          0 0 28px rgba(0, 0, 0, 0.55),
          0 0 32px rgba(0, 229, 255, 0.4),
          0 0 44px rgba(255, 46, 230, 0.28);
    }

    100% {
        text-shadow:
          0 2px 10px rgba(0, 0, 0, 0.85),
          0 0 28px rgba(0, 0, 0, 0.55),
          0 0 56px rgba(0, 229, 255, 0.65),
          0 0 72px rgba(255, 46, 230, 0.48);
    }
}

#news-hub[hidden],
.hub-column[hidden] {
  display: none !important;
}
.worlds {
  max-width: 1100px;
  margin: 0 auto;
}

.worlds > p {
  max-width: 42rem;
  margin: 0 auto 36px;
  color: #c5d3e4;
}

.worlds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 22px;
}

.world-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: 24px 22px 22px;
  border-radius: 16px;
  color: inherit;
  min-height: 100%;
  background:
    linear-gradient(rgba(10, 16, 32, 0.92), rgba(10, 16, 32, 0.92)) padding-box,
    linear-gradient(120deg, var(--color-accent), var(--color-accent-2)) border-box;
  border: 1px solid transparent;
  box-shadow: 0 0 18px rgba(0, 212, 255, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.world-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 22px var(--glow-cyan), 0 0 28px var(--glow-magenta);
}

/* La carte est alignée à gauche (align-items: flex-start) : le kicker héritait
   du text-align: center de la section et flottait au milieu. */
.world-card .world-kicker {
  text-align: left;
}

.world-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  padding: 5px;
  border-radius: 12px;
  object-fit: contain;
  background: rgba(0, 229, 255, 0.06);
  border: 1px solid rgba(0, 229, 255, 0.16);
}

.world-card:nth-child(2) .world-kicker {
  color: var(--color-magenta);
}

.world-card:nth-child(3) .world-kicker {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.world-card:nth-child(4) .world-kicker {
  color: var(--color-magenta);
}

.worlds-all {
  margin: 28px 0 0;
  text-align: center;
}

.worlds-all a {
  color: var(--color-cyan);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 229, 255, 0.35);
}

.worlds-all a:hover {
  color: #fff;
  border-bottom-color: var(--color-magenta);
  text-shadow: 0 0 12px rgba(0, 229, 255, 0.4);
}

.world-card h3 {
  margin-bottom: 10px;
  color: #fff;
}

.world-card p:not(.world-kicker) {
  text-align: left;
  color: #c5d3e4;
  line-height: 1.5;
}

@media (max-width: 860px) {
  .worlds-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }
}


/* 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(0, 229, 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: linear-gradient(160deg, rgba(14, 36, 53, 0.95), rgba(8, 22, 38, 0.98));
    color: #dce3ec;
    border: 1px solid rgba(0, 229, 255, 0.25);
    border-radius: 14px;
    padding: 22px 20px 18px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25), 0 0 12px rgba(0, 229, 255, 0.12);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.event .content::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(0, 229, 255, 0.08), transparent 60%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.event .content:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35), 0 0 28px var(--lw-glow, rgba(0, 229, 255, 0.35));
    border-color: rgba(0, 229, 255, 0.45);
}

.event .content:hover::after {
    opacity: 1;
}

.event-summary {
    font-size: 14px;
    line-height: 1.5;
    color: #a8b8c8;
    margin: 8px 0 4px;
}

.event.left::before,
.event.right::before {
    content: "";
    position: absolute;
    top: 24px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--color-cyan);
    border: 3px solid var(--color-bg);
    box-shadow: 0 0 10px rgba(0, 229, 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;
}

.event-year {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--color-cyan);
    background: rgba(0, 229, 255, 0.12);
    border: 1px solid rgba(0, 229, 255, 0.35);
    border-radius: 999px;
    padding: 4px 12px;
    margin-bottom: 10px;
    text-shadow: 0 0 8px rgba(0, 229, 255, 0.4);
}


/* Modale timeline (unifiée) */
.timeline-modal {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99990;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.timeline-modal.active {
    pointer-events: all;
}

.timeline-modal.show {
    opacity: 1;
}

body.timeline-modal-open {
    overflow: hidden;
}

.timeline-modal .modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 8, 20, 0.72);
    backdrop-filter: blur(14px);
}

.timeline-modal .modal-box {
    position: relative;
    background: linear-gradient(155deg, rgba(12, 30, 52, 0.98), rgba(6, 14, 28, 0.99));
    border: 1px solid var(--lw-border, rgba(0, 229, 255, 0.35));
    border-radius: 22px;
    max-width: 820px;
    width: 94%;
    max-height: 88vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 0;
    text-align: left;
    color: var(--lw-text, #dce3ec);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 40px var(--lw-glow, rgba(0, 229, 255, 0.2)), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transform: scale(0.94) translateY(16px);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 1;
}

.timeline-modal.show .modal-box {
    transform: scale(1) translateY(0);
}

.timeline-modal .modal-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 0;
    min-height: 280px;
}

.timeline-modal .modal-layout.text-only {
    grid-template-columns: 1fr;
}

.timeline-modal .modal-layout.text-only .modal-body {
    padding: 32px 28px 20px;
}

.timeline-modal .modal-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.timeline-modal .modal-content a {
    color: var(--color-cyan);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.timeline-modal .modal-content strong {
    color: #e8f0f8;
}

.timeline-modal .modal-visual {
    background: rgba(0, 0, 0, 0.25);
    border-right: 1px solid rgba(0, 229, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.timeline-modal .modal-visual-img {
    width: 100%;
    height: 100%;
    min-height: 220px;
}

.timeline-modal .modal-visual-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.timeline-modal .modal-visual-year {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.15), transparent 70%);
}

.timeline-modal .modal-visual-year span {
    font-size: 42px;
    font-weight: 800;
    color: var(--color-cyan);
    text-shadow: 0 0 24px rgba(0, 229, 255, 0.5);
    letter-spacing: 0.05em;
}

.timeline-modal .modal-body {
    padding: 28px 28px 20px;
    overflow-y: auto;
}

.timeline-modal .modal-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.4), transparent);
    margin: 14px 0 18px;
}

.timeline-modal .modal-footer {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    padding: 14px 20px 18px;
    border-top: 1px solid rgba(0, 229, 255, 0.12);
    background: rgba(0, 0, 0, 0.2);
}

.timeline-modal .modal-nav {
    padding: 8px 14px;
    background: rgba(0, 229, 255, 0.08);
    border: 1px solid rgba(0, 229, 255, 0.25);
    border-radius: 8px;
    color: var(--color-cyan);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.timeline-modal .modal-nav:hover:not([disabled]) {
    background: rgba(0, 229, 255, 0.18);
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.25);
}

.timeline-modal .modal-nav[disabled] {
    opacity: 0.35;
    cursor: not-allowed;
}

.timeline-modal .modal-nav.prev { justify-self: start; }
.timeline-modal .modal-nav.next { justify-self: end; }

.timeline-modal .modal-footer .close-btn {
    margin-top: 0;
}

.timeline-modal .modal-box h3 {
    font-size: 24px;
    margin-bottom: 0;
    color: var(--lw-cyan, var(--color-cyan));
    text-shadow: 0 0 12px rgba(0, 229, 255, 0.4);
    padding-right: 24px;
    line-height: 1.3;
}

.timeline-modal .modal-content {
    font-size: 15px;
    line-height: 1.75;
    color: #c5d3e0;
    text-align: left;
}

.timeline-modal .modal-content p {
    margin: 0 0 12px;
}

.timeline-modal .modal-close-x {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(0, 229, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
    color: #dce3ec;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s ease;
}

.timeline-modal .modal-close-x:hover {
    background: rgba(255, 80, 80, 0.2);
    border-color: rgba(255, 80, 80, 0.4);
    color: #fff;
}

.timeline-modal .modal-year-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-cyan);
    border: 1px solid rgba(0, 229, 255, 0.4);
    border-radius: 999px;
    padding: 4px 12px;
    margin-bottom: 10px;
}

@media (max-width: 640px) {
    .timeline-modal .modal-layout,
    .timeline-modal .modal-layout.no-image {
        grid-template-columns: 1fr;
    }

    .timeline-modal .modal-visual {
        min-height: 140px;
        border-right: none;
        border-bottom: 1px solid rgba(0, 229, 255, 0.15);
    }

    .timeline-modal .modal-footer {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .timeline-modal .modal-nav.prev,
    .timeline-modal .modal-nav.next {
        justify-self: center;
    }
}

.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(0, 229, 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 {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--lw-cyan, var(--color-cyan));
    opacity: 0.85;
    transition: all 0.3s ease;
    user-select: none;
    pointer-events: none !important;
}

.event .content:hover .see-more {
    opacity: 1;
    transform: translateX(4px);
    text-shadow: 0 0 12px rgba(0, 229, 255, 0.5);
}

.event .see-more::before {
    display: none;
}

@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: var(--color-cyan);
    margin-bottom: 20px;
}

.actus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 18px;
    max-width: 980px;
    margin: 0 auto;
}

.actus-card {
    background: var(--color-bg-elevated);
    border: 1px solid rgba(0, 229, 255, .15);
    border-radius: 14px;
    padding: 18px;
    text-align: left;
    box-shadow: 0 0 12px rgba(0, 229, 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(0, 229, 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(0, 229, 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(0, 229, 255, 0.3));
    animation: zoomIn 0.4s ease forwards;
}

.timeline-modal .modal-box h3 {
    font-size: 26px;
    margin-bottom: 18px;
    color: var(--lw-cyan, var(--color-cyan));
    text-shadow: 0 0 12px rgba(0, 229, 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(0, 229, 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 {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--lw-cyan, var(--color-cyan));
    opacity: 0.85;
    transition: all 0.3s ease;
    user-select: none;
    pointer-events: none !important;
}

.event .content:hover .see-more {
    opacity: 1;
    transform: translateX(4px);
    text-shadow: 0 0 12px rgba(0, 229, 255, 0.5);
}

.event .see-more::before {
    display: none;
}

@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: var(--color-cyan);
    margin-bottom: 20px;
}

.actus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 18px;
    max-width: 980px;
    margin: 0 auto;
}

.actus-card {
    background: var(--color-bg-elevated);
    border: 1px solid rgba(0, 229, 255, .15);
    border-radius: 14px;
    padding: 18px;
    text-align: left;
    box-shadow: 0 0 12px rgba(0, 229, 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(0, 229, 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(0, 229, 255, .10);
    border: 1px solid rgba(0, 229, 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);
    }
}