/* main */
.reveal {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
    transition: all 0.7s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

body {
    overflow-x: hidden;
    background: radial-gradient(circle at 20% 20%, rgba(30, 80, 160, 0.25), transparent 40%),
    radial-gradient(circle at 80% 30%, rgba(10, 40, 120, 0.25), transparent 45%),
    radial-gradient(circle at 50% 80%, rgba(20, 60, 140, 0.15), transparent 50%),
    #0a0a0a;
}

/* ✅ PLEXUS FULLSCREEN */
#plexus-canvas {
    position: absolute; /* au lieu de absolute */
    inset: 0;
    width: 100vw;
    height: 115vh;
    z-index: -10;
    pointer-events: none;
}

/* button fleche up, bas droite */


#scrollTopBtn {
    position: fixed;

    bottom: 30px;
    right: 30px;

    width: 55px;
    height: 55px;

    border-radius: 18px;

    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.10);

    backdrop-filter: blur(14px);

    color: white;
    font-size: 22px;
    font-weight: bold;

    cursor: pointer;

    z-index: 9999;

    opacity: 0;
    visibility: hidden;

    transform: rotate(90deg);

    transition: opacity 0.3s ease,
    transform 0.3s ease,
    visibility 0.3s;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35),
    inset 0 0 20px rgba(255, 255, 255, 0.03);
}

#scrollTopBtn.show {
    opacity: 1;
    visibility: visible;
    transform: rotate(90deg);

}

#scrollTopBtn:hover {
    background: rgba(255, 255, 255, 0.10);
    transform: rotate(90deg);

}

/*video mp4 debut*/


/* CONTAINER VIDEO */
#video-container {
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 100vh;

    overflow: hidden;

    z-index: -10;
}

/* VIDEO */
#bg-video {
    width: 100%;
    height: 100%;

    object-fit: cover;

    opacity: 0.3;

    pointer-events: none;

    filter: brightness(0.45) contrast(1.05);

    /* FADE BAS */
    -webkit-mask-image: linear-gradient(
            to bottom,
            rgba(0, 0, 0, 1) 0%,
            rgba(0, 0, 0, 1) 70%,
            rgba(0, 0, 0, 0.7) 82%,
            rgba(0, 0, 0, 0.3) 92%,
            transparent 100%
    );

    mask-image: linear-gradient(
            to bottom,
            rgba(0, 0, 0, 1) 0%,
            rgba(0, 0, 0, 1) 70%,
            rgba(0, 0, 0, 0.7) 82%,
            rgba(0, 0, 0, 0.3) 92%,
            transparent 100%
    );
}

/*carousel des technos*/
.carousel-wrap {
    overflow: hidden;
    width: 100%;
    padding: 1.5rem 0;
    position: relative;

    -webkit-mask-image: linear-gradient(
            to right,
            transparent 0%,
            black 12%,
            black 88%,
            transparent 100%
    );

    mask-image: linear-gradient(
            to right,
            transparent 0%,
            black 12%,
            black 88%,
            transparent 100%
    );
}

.track {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: slide 28s linear infinite;
}

.track:hover {
    animation-play-state: paused;
}

.chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    flex-shrink: 0;
}

.chip img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.chip span {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

@keyframes slide {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* presentation card*/

.about-wrapper {
    position: relative;
    width: 100%;
    height: 620px;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-card {
    position: absolute;
    width: min(720px, 90%);
    padding: 2rem;
    border-radius: 1.5rem;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(14px);

    transition:
            transform .55s cubic-bezier(.22,1,.36,1),
            opacity .55s ease,
            filter .55s ease;

    will-change: transform;
}

/* CENTER */
.about-card.center {
    transform: translateX(0) scale(1);
    opacity: 1;
    z-index: 20;
    filter: blur(0px);
}

/* LEFT */
.about-card.left {
    transform: translateX(-58%) scale(.88);
    opacity: .22;
    z-index: 10;
    filter: blur(1px);
}

/* RIGHT */
.about-card.right {
    transform: translateX(58%) scale(.88);
    opacity: .22;
    z-index: 10;
    filter: blur(1px);
}

.about-btn {
    padding: .7rem 1.3rem;
    border-radius: 1rem;
    font-size: .9rem;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
    color: rgb(163 163 163);

    transition: all .3s ease;
}

.about-btn.active {
    background: rgba(59,130,246,.12);
    border-color: rgba(59,130,246,.22);
    color: rgb(96 165 250);
    box-shadow: 0 0 20px rgba(59,130,246,.12);
}

.icon-box {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: .9rem;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(59,130,246,.08);
    border: 1px solid rgba(59,130,246,.15);
}

.separator {
    width: 100%;
    height: 1px;
    background: rgba(255,255,255,.05);
}

.timeline-item {
    display: flex;
    gap: .8rem;
    align-items: flex-start;
}

.dot {
    width: .5rem;
    height: .5rem;
    margin-top: .45rem;
    border-radius: 999px;

    background: rgba(96,165,250,.8);
    box-shadow: 0 0 10px rgba(96,165,250,.4);

    flex-shrink: 0;
}

.timeline-title {
    font-size: .75rem;
    margin-bottom: .25rem;
    color: rgba(96,165,250,.7);
}

.timeline-text {
    font-size: .92rem;
    line-height: 1.7;
    color: rgb(163 163 163);
}

.tag {
    font-size: .75rem;
    padding: .32rem .65rem;
    border-radius: .6rem;

    background: rgba(59,130,246,.08);
    border: 1px solid rgba(59,130,246,.15);
    color: rgb(96 165 250);
}

@media (max-width: 900px) {

    .about-wrapper {
        height: auto;
        min-height: 650px;
    }

    .about-card.left,
    .about-card.right {
        opacity: 0;
        pointer-events: none;
        transform: scale(.92);
    }

    .about-card.center {
        position: relative;
    }
}

/*footer*/

.footer-social {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 1rem;

    color: rgb(163 163 163);

    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.06);

    transition: all .3s ease;
}

.footer-social:hover {
    transform: translateY(-3px);
    color: rgb(96 165 250);

    border-color: rgba(59,130,246,.3);
    background: rgba(59,130,246,.08);

    box-shadow: 0 0 25px rgba(59,130,246,.15);
}

.footer-link {
    color: rgb(163 163 163);
    transition: all .25s ease;
    width: fit-content;
}

.footer-link:hover {
    color: white;
    transform: translateX(4px);
}

.footer-tag {
    font-size: .75rem;
    padding: .4rem .7rem;

    border-radius: .7rem;

    background: rgba(59,130,246,.08);
    border: 1px solid rgba(59,130,246,.12);

    color: rgb(96 165 250);
}