﻿/* ======================== */
/*      SLIDER WRAPPER      */
/* ======================== */
.fullpage-wrapper {
    height: 50vh; /* réduit de 50% */
    width: 100%;
    overflow: hidden;
    position: relative;
}

.slides-container {
    height: 100%;
    width: 100%;
    transition: transform .9s cubic-bezier(.7,.1,.3,1);
}

/* ======================== */
/*      COMMON SLIDES       */
/* ======================== */
.fullpage-screen {
    height: 50vh; /* réduit de 50% */
    width: 100vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 46px 6vw;
    box-sizing: border-box;
    text-align: center;

    color: #fff;
    position: relative;
    overflow: hidden;
}

.text {
    opacity: 0;
    transform: translateY(70px);
    transition: opacity 1s ease, transform 1s ease;
    white-space: pre-line;
    font-size: 1.5rem;
    line-height: 1.8;
    max-width: 820px;
    letter-spacing: .02em;
}

    .text.visible {
        opacity: 1;
        transform: none;
    }

/* ==== ARROW NAVIGATION ==== */
.arrows {
    position: absolute;
    right: 32px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 24px;
    z-index: 10;
}

.arrow-btn {
    background: rgba(255,255,255,.25);
    border: none;
    color: #fff;
    width: 46px;
    height: 46px;
    font-size: 1.4rem;
    border-radius: 50%;
    cursor: pointer;
    transition: background .3s, transform .25s ease;
    box-shadow: 0 0 0 1px rgba(255,255,255,.3) inset;
    user-select: none;
}

    .arrow-btn:hover {
        background: rgba(255,255,255,.5);
        transform: scale(1.08);
    }

    .arrow-btn:disabled {
        background: rgba(255,255,255,.15);
        cursor: not-allowed;
        transform: none;
    }

/* ======================== */
/*     INDIVIDUAL SCREENS   */
/* ======================== */
/* Screen 1 */
.screen-1 .appear-right {
    transform: translateX(80px) translateY(70px);
}

    .screen-1 .appear-right.visible {
        transform: none;
    }

/* Screen 2 — line-by-line */
.screen-2 .line-by-line span {
    display: block;
    opacity: 0;
    transform: translateY(28px);
}

.screen-2 .line-by-line.visible span {
    opacity: 1;
    transform: none;
}

    .screen-2 .line-by-line.visible span:nth-child(1) {
        transition: opacity .6s .15s, transform .6s .15s;
    }

    .screen-2 .line-by-line.visible span:nth-child(2) {
        transition: opacity .6s .35s, transform .6s .35s;
    }

    .screen-2 .line-by-line.visible span:nth-child(3) {
        transition: opacity .6s .55s, transform .6s .55s;
    }

    .screen-2 .line-by-line.visible span:nth-child(4) {
        transition: opacity .6s .75s, transform .6s .75s;
    }

/* Screen 3 */
.screen-3 .delay-fade.visible {
    transition-delay: 0.4s;
}

/* Screen 4 — split background */
.screen-4 {
    background: linear-gradient(90deg, #000 50%, #fff 50%);
}

    .screen-4 .split-lines {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

        .screen-4 .split-lines .left {
            align-self: flex-start;
            text-align: left;
            padding-left: 8vw;
            color: #fff;
            font-weight: 500;
        }

        .screen-4 .split-lines .right {
            align-self: flex-end;
            text-align: right;
            padding-right: 8vw;
            color: #000;
            font-weight: 500;
        }

    .screen-4 .arrow-btn {
        background: rgba(0,0,0,.18);
        color: #000;
        box-shadow: 0 0 0 1px rgba(0,0,0,.35) inset;
    }

        .screen-4 .arrow-btn:hover {
            background: rgba(0,0,0,.3);
        }

/* Screen 5 */
.screen-5 .text { /* uses default .text */
}

/* Screen 6 — zoom box */
.screen-6 .box-img {
    width: 80%;
    max-width: 530px;
    margin-top: 34px;
    border-radius: 10px;
    opacity: 0;
    transform: scale(.88);
    box-shadow: 0 8px 22px rgba(0,0,0,.45);
    transition: transform 2.7s ease, opacity 1.4s ease;
}

.screen-6.show .box-img {
    opacity: 1;
    transform: scale(1);
}

/* Screen 7 — text fade */
.screen-7 .text.visible {
    animation: fadeAway var(--disappear-str) forwards cubic-bezier(.4,0,.2,1);
}

/* Screen 8 — logo fade */
.screen-8 .large-text {
    font-size: 2.2rem;
    font-weight: 600;
    opacity: 1 !important;
    transform: none !important;
}

.screen-8 .logo {
    position: absolute;
    bottom: 56px;
    font-size: 2.3rem;
    font-weight: 600;
    letter-spacing: 2px;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,.45));
}

.screen-8.show .logo {
    animation: fadeInLogo var(--logo-dur-str) forwards var(--logo-delay-str) cubic-bezier(.4,0,.2,1);
}

/* ======================== */
/*        KEYFRAMES         */
/* ======================== */
@keyframes fadeAway {
    to {
        opacity: 0;
        transform: translateY(-90px) scale(.85);
    }
}

@keyframes fadeInLogo {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ======================== */
/*   FADE-IN/OUT ANIMATIONS  */
/* ======================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOutDown {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(50px);
    }
}

/* Initial state for JS-triggered animations */
.animated {
    opacity: 0;
    transition: opacity 0.5s, transform 0.5s;
}

    .animated.visible {
        animation: fadeInUp 0.5s forwards;
    }

    .animated.hidden {
        animation: fadeOutDown 0.5s forwards;
    }

/* ======================== */
/*      RESPONSIVE QS       */
/* ======================== */
@media (max-width: 1024px) {
    .overlay-content h1 {
        font-size: 2rem;
    }

    .text {
        font-size: 1.3rem;
        line-height: 1.6;
    }

    .fullpage-screen {
        padding: 32px 4vw;
    }
}

@media (max-width: 768px) {
    .arrows {
        right: 16px;
        top: auto;
        bottom: 16px;
        transform: none;
        flex-direction: row;
        gap: 16px;
    }

    .arrow-btn {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .overlay-content h1 {
        font-size: 1.8rem;
    }

    .overlay-content .btn {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }

    .screen-4 .split-lines .left,
    .screen-4 .split-lines .right {
        padding-left: 4vw;
        padding-right: 4vw;
    }
}

@media (max-width: 480px) {
    .overlay-content h1 {
        font-size: 1.5rem;
    }

    .text {
        font-size: 1.1rem;
    }

    .arrow-btn {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
}
