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

body {
    font-family: 'Space Grotesk', system-ui, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(255, 122, 24, 0.14), transparent 30%),
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.14), transparent 28%),
        linear-gradient(180deg, #f7f7f8 0%, #efefef 100%);
    color: #1f2937;
    padding: 20px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    gap: 18px;
    margin-bottom: 40px;
    padding: 18px 22px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(14px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.brand-mark {
    font-family: 'Sora', 'Space Grotesk', sans-serif;
    font-size: 1.7rem;
    font-weight: 700;
    color: #111827;
    letter-spacing: -0.04em;
    padding: 10px 16px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255, 122, 24, 0.16), rgba(37, 99, 235, 0.12));
}

ul li { margin-bottom: 10px; list-style: none; }
nav ul li a { display: flex; text-decoration: none; color: #1f2937; font-weight: 700; }
nav ul li a.active {
    text-decoration: underline;
    text-decoration-color: #111827;
    text-decoration-thickness: 3px;
    text-underline-offset: 6px;
}
header nav ul li a { align-items: center; padding: 10px 16px; border-radius: 999px; }
header nav ul {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    margin: 0;
    border-radius: 999px;
    background: rgba(248, 250, 252, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    flex: 1;
    justify-content: space-between;
    flex-wrap: wrap;
}

.header-actions nav { flex: 1 1 auto; }

.search-form {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1.5px solid #d1d5db;
    border-radius: 12px;
    padding: 8px 12px;
    min-width: 260px;
    flex: 0 0 280px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
    margin-left: auto;
}

.search-input {
    border: none;
    outline: none;
    font-size: 1rem;
    background: transparent;
    padding: 4px 6px;
    width: 100%;
}

.search-input::placeholder { color: #9ca3af; }

main {
    min-width: 60vh;
    min-height: 80vh;
    margin: 30px;
    padding: 80px;
    background: rgba(231, 231, 231, 0.72);
    border-radius: 28px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}

.text-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 20px;
    margin-top: 40px;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#about,
#home,
#project {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
}

#home {
    margin-bottom: 30px;
    background: linear-gradient(145deg, #ffffff 0%, #fff4eb 100%);
    border-radius: 24px;
    box-shadow: 0 20px 45px rgba(255, 122, 24, 0.12);
    padding: 36px 24px;
}

#home h2 {
    font-family: 'Sora', 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    letter-spacing: -0.05em;
    margin-bottom: 14px;
}

#home > a {
    font-size: 1.05rem;
    font-weight: 500;
    color: #475569;
}

main img {
    max-width: 100%;
    border-radius: 24px;
}

footer {
    text-align: center;
    color: #999;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.social-footer {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 18px;
    margin-top: 20px;
}

.social-person {
    padding: 18px;
    background: #ffffff;
    border: 1px solid #e3e3e3;
    border-radius: 14px;
}

.social-person__name {
    margin: 0 0 12px;
    color: #333;
    font-weight: 700;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: #222;
    color: #fff;
}

.social-link svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
}

.social-link__fill {
    fill: currentColor;
    stroke: none;
}

.social-link:hover {
    background: #4d4d4d;
    transform: translateY(-2px);
}

p {
    margin: 8px;
    line-height: 1.6;
}

.text-main #project a h2,
.text-main #about a h2 {
    color: black;
}

a {
    text-decoration: none;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 28px;
}

.btn-main {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    padding: 14px 22px;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.01em;
    border: 1px solid transparent;
}

.btn-main--primary {
    color: #fff;
    background: linear-gradient(135deg, #ff7a18 0%, #ff4d6d 100%);
    box-shadow: 0 18px 30px rgba(255, 77, 109, 0.24);
}

.btn-main--secondary {
    color: #111827;
    background: rgba(255, 255, 255, 0.86);
    border-color: rgba(15, 23, 42, 0.1);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

/* ------------------ TRANSITIONS (état normal) ------------------ */

a {
    transition: background 200ms ease,
        box-shadow 200ms ease,
        border-radius 200ms ease,
        transform 200ms ease,
        color 200ms ease,
        border-color 200ms ease;
}

.text-main #project a h2,
.text-main #about a h2 {
    transition: all 300ms cubic-bezier(.4, 0, .2, 1);
    padding: 15px;

}

#home a {
    color: #334155;
}

#home a:hover {
    box-shadow: none;
    text-decoration: underline;
}

/* ------------------ HOVER ------------------ */

nav a:hover {
    background: linear-gradient(135deg, rgba(255, 122, 24, 0.14), rgba(37, 99, 235, 0.14));
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
    transform: translateY(-2px);
}

.btn-main:hover {
    text-decoration: none;
    transform: translateY(-3px);
}

.btn-main--primary:hover {
    box-shadow: 0 22px 36px rgba(255, 77, 109, 0.32);
}

.btn-main--secondary:hover {
    background: #ffffff;
    box-shadow: 0 18px 30px rgba(15, 23, 42, 0.12);
}

.text-main #project a:hover h2 {
    background: #fbfbfb;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.text-main #about a:hover h2 {
    background: #fbfbfb;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px) scale(1.02);
}

.game-block-main {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap:20px;
    padding: 20px;

    .game-block-main section {
        width: 100%;
        height: 180px;
        border-radius: 12px;
    }
}
.game-block-main section img {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    margin-right: 20px;
    transition: transform 0.3s ease;
}


.game-block-main section img:hover {
    transform: scale(1.05);
}

main .profile-box {
    display: block;
    flex-direction: column;
    background-color: rgb(143, 143, 143);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}








.profile-box img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

@media (max-width: 900px) {
    header {
        flex-direction: column;
        gap: 16px;
    }

    header nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    main {
        margin: 16px 0;
        padding: 32px 20px;
    }
}

@media (max-width: 640px) {
    body {
        padding: 14px;
    }

    .brand-mark {
        width: 100%;
        text-align: center;
    }

    header nav {
        width: 100%;
    }

    header nav ul {
        border-radius: 24px;
    }

    header nav ul li,
    header nav ul li a,
    .btn-main {
        width: 100%;
    }

    .hero-actions {
        width: 100%;
    }
}
