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

/* BODY + BACKGROUND IMAGE */
body {
    font-family: 'Segoe UI', sans-serif;
    color: #ffffff;

    /* ton image de fond */
    background: url("../img/background.jpg") no-repeat center center fixed;
    background-size: cover;
}

/* overlay sombre pour lisibilité */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-color: rgba(13, 17, 23, 0.75);
    z-index: -1;
}

/* =========================
   SCROLLBAR PERSONNALISÉE
========================= */

/* largeur de la scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

/* fond de la scrollbar (track) */
::-webkit-scrollbar-track {
    background: #0d1117;
}

/* barre qui bouge (thumb) */
::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #5a7df0, #7f5af0, #ff4ecd);
    border-radius: 20px;

    box-shadow: 0 0 10px rgba(127, 90, 240, 0.4);
}

/* hover sur la barre */
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #58a6ff, #7f5af0, #ff4ecd);
}

main {
    min-height: 200vh;
}

/* =========================
   NAVBAR
========================= */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 20px 50px;

    background-color: rgba(22, 27, 34, 0);
    border-bottom: 1px solid rgba(255, 255, 255, 0);
}

/* LOGO */
.logo {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 1px;
}

/* NAV LINKS */
.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    color: #c9d1d9;

    padding: 10px 18px;
    border-radius: 12px;

    transition: 0.3s ease;
    border: 1px solid transparent;
}

.nav-links a:hover {
    color: #58a6ff;
    border: 1px solid #58a6ff;
    background-color: rgba(88, 166, 255, 0.1);
    box-shadow: 0 0 10px rgba(88, 166, 255, 0.3);
    transform: translateY(-2px);
}

.download-btn {
    gap: 10px;
}

/* =========================
   HERO SECTION
========================= */
.hero {
    text-align: center;
    padding: 100px 20px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.hero p {
    color: #8b949e;
    margin-bottom: 40px;
}

/* =========================
   DOWNLOAD CARD
========================= */
.download-card {
    background-color: #161b22;
    padding: 25px;
    border-radius: 16px;

    width: fit-content;
    margin: 0 auto;

    text-align: center;

    border: 1px solid rgba(255,255,255,0.1);

    transition: 0.3s ease;
}

.download-card:hover {
    border-color: rgba(88, 166, 255, 0.4);
    transform: translateY(-2px);
}

/* BOUTON PRINCIPAL */
.download-btn {
    display: inline-block;

    padding: 15px 28px;
    border-radius: 12px;

    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;

    color: white;

    background: linear-gradient(135deg, #5a7df0, #4e77ff, #58a6ff);

    transition: all 0.3s ease;

    box-shadow: 0 8px 20px rgba(90, 112, 240, 0.35);
}

/* =========================
   NAVBAR BUTTON (STYLE DOWNLOAD)
========================= */

.nav-btn {
    color: white !important;

    background: linear-gradient(135deg, #5a7df0, #4e77ff, #58a6ff);

    border: none;
    border-radius: 12px;

    padding: 10px 20px;

    box-shadow: 0 8px 20px rgba(90, 112, 240, 0.35);

    transition: all 0.3s ease;
}

/* hover */
.nav-btn:hover {
    transform: translateY(-2px) scale(1.02);

    box-shadow:
        0 12px 30px rgba(90, 112, 240, 0.6),
        0 0 15px rgba(81, 78, 255, 0.4),
        0 0 20px rgba(88, 166, 255, 0.4);

    background: linear-gradient(135deg, #5a7df0, #7f5af0, #58a6ff);
}

.download-btn:hover {
    transform: translateY(-3px) scale(1.02);

    box-shadow:
        0 12px 30px rgba(90, 112, 240, 0.6),
        0 0 15px rgba(81, 78, 255, 0.4),
        0 0 20px rgba(88, 166, 255, 0.4);
}

/* TEXTE SOUS BOUTON */
.subtext {
    margin-top: 12px;
    font-size: 0.9rem;
    color: #8b949e;
}

/* =========================
   FEATURES SECTION
========================= */

.features {
    display: flex;
    justify-content: center;
    gap: 20px;

    margin: 80px auto;
    width: 80%;
    max-width: 1100px;

    flex-wrap: wrap;
}

/* CARD BASE */
.feature-card {
    flex: 1;
    min-width: 250px;

    padding: 25px;
    border-radius: 16px;

    background-color: rgba(22, 27, 34, 0.35);
    border: 1px solid rgba(255,255,255,0.1);

    backdrop-filter: blur(6px);

    transition: 0.3s ease;

    text-align: left;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(88, 166, 255, 0.4);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.feature-card h2 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.feature-card p {
    color: #8b949e;
    line-height: 1.5;
}

/* HIGHLIGHT */
.feature-highlight {
    text-align: center;
    background: linear-gradient(
        135deg,
        rgba(90, 125, 240, 0.2),
        rgba(127, 90, 240, 0.2),
        rgba(255, 78, 205, 0.2)
    );
}

.feature-highlight img {
    width: 45px;
    height: 45px;
    margin-bottom: 10px;
}

/* =========================
   FLÈCHE (CORRIGÉE)
========================= */

.scroll-arrow {
    width: 100%;
    display: flex;
    justify-content: center;

    margin-top: 10px;
    margin-bottom: 40px;
}

.scroll-arrow span {
    font-size: 2rem;
    color: #58a6ff;

    animation: bounce 1.5s infinite;
    cursor: pointer;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.7;
    }
    50% {
        transform: translateY(10px);
        opacity: 1;
    }
}

/* =========================
   FEATURE SPLIT (AJOUT)
========================= */

.feature-split {
    display: flex;
    justify-content: space-between;
    align-items: center;

    width: 80%;
    max-width: 1100px;

    margin: 60px auto 80px auto;

    gap: 40px;
}

.feature-left {
    flex: 1;
    display: flex;
    justify-content: flex-start;
}

.feature-card-mini {
    background-color: rgba(22, 27, 34, 0.35);
    border: 1px solid rgba(255,255,255,0.1);

    padding: 25px;
    border-radius: 16px;

    backdrop-filter: blur(6px);

    max-width: 420px;
}

.feature-card-mini h2 {
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.feature-card-mini p {
    color: #8b949e;
    line-height: 1.6;
}

.feature-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.feature-right img {
    width: 100%;
    max-width: 700px;

    border-radius: 12px;

    object-fit: cover;

    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

/* =========================
   GROSSE FEATURE CARD
========================= */

.big-feature {
    display: flex;
    justify-content: space-between;
    align-items: center;

    width: 80%;
    max-width: 1100px;

    margin: 60px auto 100px auto;

    padding: 40px;

    background: rgba(22, 27, 34, 0.4);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 18px;

    backdrop-filter: blur(8px);

    gap: 40px;

    transition: 0.3s ease;
}

.big-feature:hover {
    transform: translateY(-5px);
    border-color: rgba(88, 166, 255, 0.4);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

/* GAUCHE (TEXT + LOGO) */
.big-feature-left {
    flex: 1;
}

.big-feature-left img {
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
}

.big-feature-left h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.big-feature-left p {
    color: #8b949e;
    line-height: 1.6;
}

/* DROITE (IMAGE PREVIEW) */
.big-feature-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.big-feature-right img {
    width: 100%;
    max-width: 50px;

    border-radius: 12px;

    object-fit: cover;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0);

    transition: 0.3s ease;
}

.big-feature-right img:hover {
    transform: scale(1.03);
    box-shadow: 0 0 25px rgba(127, 90, 240, 0.4);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .big-feature {
        flex-direction: column;
        text-align: center;
    }

    .big-feature-right {
        justify-content: center;
    }

    .big-feature-right img {
        max-width: 100%;
    }
}

/* =========================
   IMAGES DANS FEATURE CARD (ESPACÉES)
========================= */

.feature-card-images {
    display: grid;
    grid-template-columns: repeat(5, 1fr);

    gap: 60px; /* 🔥 plus d’espace entre images */

    margin-top: 10px;
}

/* IMAGES */
.feature-card-images img {
    width: 100%;
    height: 85px; /* 🔥 un peu plus grand = plus respirant */

    object-fit: cover;

    border-radius: 20px;

    border: 1px solid rgba(255,255,255,0.1);

    transition: 0.3s ease;

    filter: brightness(0.95);
}

/* HOVER */
.feature-card-images img:hover {
    transform: scale(1.07);

    border-color: rgba(88, 166, 255, 0.6);

    box-shadow:
        0 0 18px rgba(127, 90, 240, 0.35),
        0 10px 25px rgba(0,0,0,0.35);

    filter: brightness(1.08);
}

/* RESPONSIVE GLOBAL */
@media (max-width: 768px) {

    .navbar {
        flex-direction: column;
        gap: 10px;
        padding: 15px 20px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .features {
        flex-direction: column;
        align-items: center;
    }

    .feature-card {
        width: 100%;
    }

    .feature-split {
        flex-direction: column;
        text-align: center;
    }

    .feature-left,
    .feature-right {
        justify-content: center;
    }

    .feature-card-mini {
        max-width: 100%;
    }

    .feature-right img {
        max-width: 100%;
    }
}