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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: "Inter", sans-serif;
    color: #171717;
    background:
        radial-gradient(circle at top left, rgba(255, 122, 162, 0.35), transparent 35%),
        radial-gradient(circle at top right, rgba(92, 225, 230, 0.35), transparent 35%),
        linear-gradient(135deg, #fff8fb, #f6f7ff);
    overflow-x: hidden;
}

/* Header */

.navbar {
    width: 100%;
    padding: 35px 8% 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    padding: 14px 28px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.75);
    color: #222;
    font-size: clamp(26px, 5vw, 58px);
    font-weight: 800;
    letter-spacing: -2px;
    box-shadow: 0 20px 60px rgba(80, 80, 140, 0.12);
    backdrop-filter: blur(18px);
}

/* Page principale */

.hero {
    min-height: calc(100vh - 130px);
    padding: 50px 8% 60px;
    display: grid;
    grid-template-columns: 1fr 430px;
    align-items: center;
    gap: 70px;
}

.hero-content {
    max-width: 680px;
}

.subtitle {
    display: inline-block;
    margin-bottom: 20px;
    padding: 10px 18px;
    border-radius: 999px;
    background: #171717;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

h1 {
    margin-bottom: 24px;
    font-size: clamp(48px, 8vw, 96px);
    line-height: 0.95;
    letter-spacing: -5px;
    color: #171717;
}

.description {
    max-width: 520px;
    color: #5f5f6e;
    font-size: 18px;
    line-height: 1.8;
}

/* Carte */

.card {
    position: relative;
    padding: 32px;
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 30px 90px rgba(80, 80, 140, 0.18);
    backdrop-filter: blur(20px);
    overflow: hidden;
}

.card::before {
    content: "";
    position: absolute;
    width: 190px;
    height: 190px;
    top: -75px;
    right: -75px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff7aa2, #ffcf5a);
}

.card::after {
    content: "";
    position: absolute;
    width: 140px;
    height: 140px;
    bottom: -60px;
    left: -60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #5ce1e6, #8b5cf6);
}

.badge {
    position: relative;
    z-index: 2;
    display: inline-block;
    margin-bottom: 28px;
    padding: 9px 15px;
    border-radius: 999px;
    background: #f1f2ff;
    color: #6d5dfc;
    font-size: 13px;
    font-weight: 700;
}

.card h2 {
    position: relative;
    z-index: 2;
    margin-bottom: 10px;
    font-size: 34px;
    letter-spacing: -1px;
}

.card-text {
    position: relative;
    z-index: 2;
    margin-bottom: 24px;
    color: #686878;
    line-height: 1.6;
}

/* Liens exercices */

.exercise-links {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 13px;
}

.exercise-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-radius: 20px;
    text-decoration: none;
    color: #171717;
    background: #ffffff;
    border: 1px solid #eeeeff;
    box-shadow: 0 10px 30px rgba(80, 80, 140, 0.08);
    transition: 0.25s ease;
}

.exercise-card span {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #ff7aa2, #ffcf5a);
    color: #fff;
    font-weight: 800;
    font-size: 14px;
}

.exercise-card:nth-child(2) span {
    background: linear-gradient(135deg, #5ce1e6, #6d5dfc);
}

.exercise-card:nth-child(3) span {
    background: linear-gradient(135deg, #8b5cf6, #ff7aa2);
}

.exercise-card:nth-child(4) span {
    background: linear-gradient(135deg, #ffcf5a, #ff7aa2);
}

.exercise-card:nth-child(5) span {
    background: linear-gradient(135deg, #6d5dfc, #5ce1e6);
}

.exercise-card:nth-child(6) span {
    background: linear-gradient(135deg, #00c9a7, #6d5dfc);
}

.exercise-card:nth-child(7) span {
    background: linear-gradient(135deg, #ff7aa2, #8b5cf6);
}

.exercise-card p {
    font-size: 16px;
    font-weight: 700;
}

.exercise-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 45px rgba(80, 80, 140, 0.18);
    border-color: #d9d7ff;
}

.exercise-card:hover p {
    color: #6d5dfc;
}

/* Footer */

footer {
    padding: 25px;
    text-align: center;
    color: #77778a;
    font-size: 14px;
}

/* Responsive */

@media (max-width: 950px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 45px;
        text-align: center;
    }

    .hero-content {
        margin: 0 auto;
    }

    .description {
        margin: 0 auto;
    }

    .card {
        max-width: 520px;
        width: 100%;
        margin: 0 auto;
        text-align: left;
    }

    h1 {
        letter-spacing: -3px;
    }
}

@media (max-width: 520px) {
    .navbar {
        padding-top: 25px;
    }

    .logo {
        letter-spacing: -1px;
        text-align: center;
    }

    .hero {
        padding: 35px 5% 45px;
    }

    h1 {
        font-size: 48px;
    }

    .card {
        padding: 24px;
        border-radius: 26px;
    }

    .exercise-card {
        padding: 13px;
    }
}