/* ============================
   Fichier : whats-next.css
   Auteur : lyunabi
   Description : Styles pour la section What's Next avec timeline verticale
   ============================ */

/* ============================================ */
/* SECTION WHAT'S NEXT */
/* ============================================ */

.section-whats-next {
    width: 100%;
    padding: 80px 5%;
    background-color: white;
    position: relative;
    overflow: hidden;
}

.whats-next-container {
    max-width: 1352px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 1;
}

.whats-next-container h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    font-family: var(--font-title);
    border-left: 4px solid #FF84F7;
    padding-left: 20px;
    color: black;
}

.subtitle-next {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #666;
    margin-bottom: 60px;
    padding-left: 24px;
    line-height: 1.5;
}

/* ============================================ */
/* TIMELINE */
/* ============================================ */

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

/* Ligne verticale centrale */
.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #FF84F7, #FFB8FA);
    transform: translateX(-50%);
}

/* ============================================ */
/* TIMELINE ITEMS */
/* ============================================ */

.timeline-item {
    position: relative;
    margin-bottom: 80px;
    display: flex;
    align-items: center;
    gap: 40px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

/* Alternance gauche/droite */
.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

/* ============================================ */
/* TIMELINE ICON */
/* ============================================ */

.timeline-icon {
    position: relative;
    width: 100px;
    height: 100px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #FFB8FA;
    flex-shrink: 0;
    z-index: 2;
    transition: all 0.4s ease;
    animation: float 3s ease-in-out infinite;
}

.timeline-icon img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.timeline-item:hover .timeline-icon {
    transform: scale(1.1) translateY(-5px);
    border-color: #FF84F7;
}

/* Badge pour l'objectif ultime */
.icon-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: linear-gradient(135deg, #FF84F7, #FFB8FA);
    color: white;
    font-family: 'Pixelify Sans', sans-serif;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(255, 132, 247, 0.3);
    letter-spacing: 0.5px;
}

/* ============================================ */
/* TIMELINE CONTENT */
/* ============================================ */

.timeline-content {
    flex: 1;
    background: white;
    padding: 30px 35px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.timeline-item:hover .timeline-content {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 132, 247, 0.2);
}

.timeline-date {
    display: inline-block;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    font-weight: 900;
    color: white;
    background: #1E1E1E;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.timeline-content h3 {
    font-family: 'Pixelify Sans', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #1E1E1E;
    margin-bottom: 12px;
    text-transform: lowercase;
}

.timeline-content p {
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: #666;
    margin: 0;
}

/* ============================================ */
/* TIMELINE ULTIMATE (objectif ultime) */
/* ============================================ */

.timeline-ultimate .timeline-icon {
    border-width: 5px;
    border-color: #FF84F7;
    background: linear-gradient(135deg, #fff, #fef5fe);
    animation: float 3s ease-in-out infinite, pulse-border 2s ease-in-out infinite;
}

@keyframes pulse-border {
    0%, 100% {
        box-shadow: 0 10px 30px rgba(255, 132, 247, 0.2);
    }
    50% {
        box-shadow: 0 10px 40px rgba(255, 132, 247, 0.4);
    }
}

.timeline-ultimate .timeline-content {
    background: linear-gradient(135deg, #fff 0%, #fef5fe 100%);
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
}

.timeline-ultimate .timeline-content::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 20px;
    padding: 3px;
    background: linear-gradient(90deg, #FF84F7 0%, #FFB8FA 25%, #FF84F7 50%, #FFB8FA 75%, #FF84F7 100%);
    background-size: 300% 100%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    filter: brightness(1.2);
}

.timeline-ultimate:hover .timeline-content::before {
    opacity: 1;
    animation: border-rotate 4s linear infinite;
}

@keyframes border-rotate {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 300% 0%;
    }
}

.timeline-ultimate .timeline-content h3 {
    color: #FF84F7;
}

/* ============================================ */
/* ANIMATION FLOAT */
/* ============================================ */

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* ============================================ */
/* RESPONSIVE TABLETTE (768px - 1024px) */
/* ============================================ */

@media (max-width: 1024px) {
    .section-whats-next {
        padding: 60px 4%;
    }

    .whats-next-container h2 {
        font-size: 28px;
        margin-bottom: 10px;
    }

    .subtitle-next {
        font-size: 15px;
        margin-bottom: 50px;
    }

    .timeline {
        max-width: 700px;
        padding: 30px 0;
    }

    .timeline-item {
        margin-bottom: 60px;
        gap: 30px;
    }

    .timeline-icon {
        width: 85px;
        height: 85px;
    }

    .timeline-icon img {
        width: 42px;
        height: 42px;
    }

    .timeline-content {
        padding: 25px 30px;
    }

    .timeline-content h3 {
        font-size: 22px;
    }

    .timeline-content p {
        font-size: 14px;
    }
}

/* ============================================ */
/* RESPONSIVE MOBILE (< 768px) */
/* ============================================ */

@media (max-width: 768px) {
    .section-whats-next {
        padding: 40px 20px;
    }

    .whats-next-container h2 {
        font-size: 24px;
        margin-bottom: 5px;
        padding-left: 15px;
        border-left-width: 3px;
    }

    .subtitle-next {
        font-size: 14px;
        margin-bottom: 40px;
        padding-left: 18px;
    }

    /* Timeline simplifiée en mobile */
    .timeline::before {
        left: 40px;
    }

    .timeline-item {
        flex-direction: row !important;
        gap: 20px;
        margin-bottom: 50px;
        padding-left: 0;
    }

    .timeline-item:nth-child(even) {
        flex-direction: row !important;
    }

    .timeline-icon {
        width: 70px;
        height: 70px;
        border-width: 3px;
    }

    .timeline-icon img {
        width: 35px;
        height: 35px;
    }

    .timeline-content {
        padding: 20px 25px;
        flex: 1;
    }

    .timeline-content::before {
        display: none;
    }

    .timeline-item:nth-child(odd) .timeline-content::before,
    .timeline-item:nth-child(even) .timeline-content::before {
        display: none;
    }

    .timeline-date {
        font-size: 12px;
        padding: 5px 12px;
        margin-bottom: 12px;
    }

    .timeline-content h3 {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .timeline-content p {
        font-size: 14px;
        line-height: 1.6;
    }

    .icon-badge {
        font-size: 9px;
        padding: 3px 8px;
    }

    .timeline-ultimate .timeline-icon {
        border-width: 4px;
    }
}

/* ============================================ */
/* RESPONSIVE TRÈS PETIT MOBILE (< 480px) */
/* ============================================ */

@media (max-width: 480px) {
    .section-whats-next {
        padding: 30px 15px;
    }

    .whats-next-container h2 {
        font-size: 20px;
        padding-left: 12px;
    }

    .subtitle-next {
        font-size: 13px;
        margin-bottom: 30px;
        padding-left: 15px;
    }

    .timeline::before {
        left: 32px;
    }

    .timeline-item {
        margin-bottom: 40px;
        gap: 15px;
    }

    .timeline-icon {
        width: 60px;
        height: 60px;
    }

    .timeline-icon img {
        width: 30px;
        height: 30px;
    }

    .timeline-content {
        padding: 18px 20px;
    }

    .timeline-date {
        font-size: 11px;
        padding: 4px 10px;
    }

    .timeline-content h3 {
        font-size: 18px;
        margin-bottom: 8px;
    }

    .timeline-content p {
        font-size: 13px;
    }

    .icon-badge {
        font-size: 8px;
        padding: 3px 7px;
        top: -8px;
        right: -8px;
    }
}
