/* ================= RESET & FONTS ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@100;200;300;400;500;600;700;800;900&family=Oswald:wght@200;300;400;500;600;700&display=swap');

body {
    background: linear-gradient(to bottom, #1a1a1a, #0a0a0a);
    color: white;
}

/* ================= ANIMATIONS ================= */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes pulseLoopDark {
    0% {
        width: 10px;
        height: 10px;
        opacity: 0.6;
    }

    100% {
        width: 42px;
        height: 42px;
        opacity: 0;
    }
}

body *:not(header):not(header *) {
    animation: fadeUp 0.8s ease forwards;
}

/* ================= HEADER ================= */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4));
    backdrop-filter: blur(6px);
    z-index: 100;
}

.logo img {
    height: 130px;
    transition: transform 0.4s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

/* ================= BURGER & MENU ================= */
.hamburger {
    display: flex;
    width: 35px;
    height: 25px;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 101;
}

.hamburger span {
    height: 4px;
    background: white;
    border-radius: 10px;
    transition: 0.4s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.menu {
    position: absolute;
    top: 50%;
    right: 140px;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.menu.active {
    opacity: 1;
    pointer-events: all;
    gap: 50px;
}

.menu a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    letter-spacing: 1px;
    position: relative;
    opacity: 0;
    transition: all 0.3s ease;
}

.menu.active a {
    opacity: 1;
}

.menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.3), white);
    transition: 0.4s;
}

.menu a:hover::after {
    width: 100%;
}

/* ================= SPECS SECTION ================= */
.specs-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: black;
}

.keoimg1 {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
}

.specs-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.specs-label {
    color: #888;
    letter-spacing: 6px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    font-weight: 300;
}

.specs-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 700;
    letter-spacing: 8px;
}

.specs-title span {
    color: #888;
    font-weight: 300;
    letter-spacing: 10px;
}

.specs-stats {
    display: flex;
    gap: 80px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 60px;
}

.stat {
    color: silver;
    line-height: 1.5;
}

.stat strong {
    display: block;
    color: white;
    font-size: 1.2rem;
}

/* ================= PAGES COMMUNES ================= */
.credits-dark,
.founder-dark,
.ks-history-dark,
.purchase {
    background: linear-gradient(to bottom, #0a0a0a, #1a1a1a);
    color: white;
    min-height: 100vh;
    padding: 160px 0 120px;
}

.credits-main-title,
.founder-main-title,
.ks-main-title {
    text-align: center;
    color: #888;
    letter-spacing: 6px;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 80px;
}

.credits-content,
.founder-content,
.ks-content {
    width: 70%;
    max-width: 1100px;
    margin: auto;
}

.credits-subtitle,
.founder-subtitle,
.ks-subtitle {
    color: #fff;
    font-size: 1.6rem;
    font-weight: 300;
    letter-spacing: 2px;
    margin: 60px 0 20px;
    position: relative;
    display: inline-block;
}

.credits-content p,
.founder-content p,
.ks-content p {
    color: #aaa;
    font-size: 1rem;
    line-height: 1.9;
    margin-bottom: 30px;
    font-weight: 300;
    transition: color 0.4s ease;
}

.credits-content p:hover,
.founder-content p:hover,
.ks-content p:hover {
    color: white;
}

.credits-subtitle::after,
.founder-subtitle::after,
.ks-subtitle::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 0;
    height: 1px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.3), white);
    transition: 0.4s ease;
}

.credits-subtitle:hover::after,
.founder-subtitle:hover::after,
.ks-subtitle:hover::after {
    width: 100%;
}

.credits-links a,
.credits-email {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.credits-links a:hover,
.credits-email:hover {
    color: #888;
}

/* ================= MILESTONES ================= */
.milestones-dark {
    background: transparent;
    padding: 80px 0 120px;
}

.milestones-title-dark {
    text-align: center;
    color: #888;
    letter-spacing: 6px;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 100px;
}

.timeline {
    width: 80%;
    max-width: 1100px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 110px;
}

.timeline-item {
    display: flex;
    align-items: center;
    gap: 60px;
}

.year-dark {
    width: 120px;
    text-align: right;
    font-size: 2rem;
    font-weight: 300;
    color: #fff;
}

.line-dot {
    position: relative;
    width: 20px;
    height: 80px;
}

.dot-dark {
    position: absolute;
    top: 0;
    left: 25%;
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    transform: translateX(-50%);
}

.line-dark {
    position: absolute;
    top: 14px;
    left: 50%;
    width: 1px;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(-50%);
}

.timeline-text-dark {
    max-width: 520px;
    color: #aaa;
    line-height: 1.8;
    font-weight: 300;
    transition: color 0.4s ease;
}

.timeline-text-dark:hover {
    color: white;
}

/* ================= PURCHASE ================= */
.purchase-header {
    text-align: center;
    margin-bottom: 100px;
}

.purchase-label {
    color: #888;
    letter-spacing: 6px;
    font-size: 0.85rem;
    margin-bottom: 20px;
    font-weight: 300;
}

.purchase-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 300;
    letter-spacing: 8px;
}

.purchase-title span {
    font-weight: 700;
    letter-spacing: 12px;
}

.purchase-subtitle {
    color: #aaa;
    font-size: 1rem;
    margin-top: 20px;
    font-weight: 300;
}

.purchase-content {
    width: 85%;
    max-width: 1200px;
    margin: auto;
    display: flex;
    gap: 80px;
    align-items: center;
}

.purchase-image {
    flex: 1;
}

.image {
    width: 700px;
    height: 900px;
    border-radius: 4px;
}

.purchase-details {
    flex: 1;
}

.price-label {
    color: #888;
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.price {
    font-size: 2.8rem;
    font-weight: 300;
    letter-spacing: 2px;
}

.price-note {
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 50px;
}

.features-title {
    color: #fff;
    font-size: 0.95rem;
    letter-spacing: 3px;
    margin-bottom: 30px;
    font-weight: 700;
}

.features {
    display: flex;
    gap: 60px;
    margin-bottom: 50px;
}

.features ul {
    list-style: none;
    color: #aaa;
}

.features li {
    margin-bottom: 18px;
    font-size: 0.9rem;
    font-weight: 300;
}

.purchase-btn {
    display: inline-block;
    padding: 16px 60px;
    border: 1.5px solid white;
    background: transparent;
    color: white;
    text-decoration: none;
    cursor: pointer;
    font-weight: 600;
    letter-spacing: 3px;
    font-size: 0.85rem;
    transition: all 0.4s ease;
}


.purchase-btn:hover {
    background: white;
    color: black;
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.15);
}

.bg-video {
    position: fixed;
    width: 100%;
    height: 100%;
    object-fit: cover;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

#bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bg-image-mobile {
    display: none;
    /* caché par défaut */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../img/Jesko2.jpg') center center / cover no-repeat;
    z-index: -1;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
    header {
        padding: 0 20px;
        height: 80px;
    }


    .bg-video {
        display: none;
        /* cacher la vidéo */
    }

    .bg-image-mobile {
        display: block;

    }


    .menu {
        position: fixed;
        inset: 0;
        background: black;
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: space-around;
        align-items: center;
        transform: translateX(100%);
        transition: transform 0.4s ease;
        z-index: 102;
    }

    .menu.active {
        transform: translateX(0);
        gap: 20px;
    }

    .menu a {
        font-size: 1.15rem;
    }

    .specs-title {
        font-size: 2.5rem;
    }

    .credits-dark,
    .founder-dark,
    .purchase {
        padding: 130px 0 80px;
    }

    .credits-content,
    .founder-content,
    .ks-content {
        width: 90%;
    }

    .credits-subtitle,
    .founder-subtitle,
    .ks-subtitle {
        font-size: 1.3rem;
        margin-top: 40px;
    }

    .timeline {
        width: 90%;
        gap: 80px;
    }

    .timeline-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 25px;
    }

    .year-dark {
        width: auto;
        text-align: left;
        font-size: 1.6rem;
    }

    .purchase-content {
        flex-direction: column;
        gap: 50px;
    }

    .image {
        width: 100%;
        height: auto;
        max-width: 700px;
    }

    .features {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .menu.active {
        gap: 20px;
    }

    .menu a {
        font-size: 1.05rem;
    }
}

/* Mobile video fix */
@media (max-width: 768px) {
    .specs-section {
        background: url('../img/Jesko2.jpg') center center / cover no-repeat;
    }
}

/* ================= FOOTER ================= */
footer {
    background: linear-gradient(to bottom, #0a0a0a, #1a1a1a);
    color: #aaa;
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer p {
    margin: 0;
    font-weight: 300;
}