@font-face {
    font-family: "Awo";
    src: url(../fonts/Audiowide-Regular.woff2);
}

@font-face {
    font-family: "italicTitles";
    src: url(../fonts/Exo2-BlackItalic.woff2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Awo', sans-serif;
}

body {
    background-color: #0a0a0a;
    color: white;
    overflow-x: hidden;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
    backdrop-filter: blur(10px);
    background-color: rgba(0,0,0,0.3);
    z-index: 100;
}

header a {
    text-decoration: none;
    color: white;
    padding: 8px 15px;
    border-radius: 8px;
    transition: background 0.3s;
}

header a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #DFE7FF;
    position: relative;
    text-align: center;
    padding: 120px 20px 50px;

    background-image: url(../images/bg-title.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.hero h1 {
    font-size: clamp(3rem, 10vw, 5rem);
    line-height: 0.8;
    margin-bottom: 20px;
    font-family: "italicTitles", sans-serif;
}

.hero button {
    padding: 15px 40px;
    border: none;
    border-radius: 25px;
    background: linear-gradient(
        150deg,
        #6349B7,
        #AE56D7
    );
    color: white;
    font-size: clamp(1rem, 3vw, 1.2rem);
    cursor: pointer;
    transition: 0.3s;
    white-space: nowrap;
}

.hero button:hover {
    background: linear-gradient(
        300deg,
        #6349B7,
        #AE56D7
    );
}

/* Défis Section */
.defis {
    padding: 80px 30px;
    text-align: center;
    background-color: #DFE7FF;
    color: #1e1e1e;
}

.defis h2 {
    font-size: clamp(1.5rem, 5vw, 2rem);
    margin-bottom: 50px;
    text-decoration: underline;
}

.features {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature {
    width: 250px;
    text-align: center;
    flex: 1 1 250px;
    max-width: 300px;
}

.feature img {
    width: 60px;
    margin-bottom: 15px;
}

.feature h3 {
    margin-bottom: 10px;
    font-size: clamp(1rem, 3vw, 1.2rem);
}

.feature p {
    font-size: clamp(0.875rem, 2.5vw, 1rem);
}

/* Discord Section */
.discord {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 80px 30px;
    text-align: center;
    background-color: #1e1e1e;
    position: relative;
    gap: 30px;
    flex-wrap: wrap;
}

.discord img.avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 15px;
    object-fit: cover;
    transition: border 0.3s;
}

.discord img.avatar:hover {
    border: 5px solid #fff;
    cursor: pointer;
}

.discord p {
    font-weight: bold;
    font-size: clamp(0.875rem, 2.5vw, 1rem);
}

.discord a {
    cursor: default;
}

.discord div {
    padding: 0 10px;
}

/* Media Queries */

/* Tablettes et petits écrans */
@media screen and (max-width: 768px) {
    header {
        padding: 15px 30px;
        flex-wrap: wrap;
    }

    header .logo {
        font-size: 1.2rem;
    }

    header nav {
        display: flex;
        gap: 10px;
    }

    header a {
        padding: 6px 12px;
        font-size: 0.9rem;
    }

    .hero {
        padding: 100px 20px 40px;
    }

    .hero h1 {
        margin-bottom: 30px;
    }

    .hero button {
        padding: 12px 30px;
    }

    .defis {
        padding: 60px 20px;
    }

    .defis h2 {
        margin-bottom: 40px;
    }

    .features {
        gap: 30px;
    }

    .feature {
        width: 100%;
        max-width: 350px;
    }

    .discord {
        padding: 60px 20px;
        gap: 40px;
    }

    .discord img.avatar {
        width: 70px;
        height: 70px;
    }
}

/* Mobiles */
@media screen and (max-width: 480px) {
    header {
        padding: 12px 20px;
    }

    header .logo {
        font-size: 1rem;
    }

    header a {
        padding: 5px 10px;
        font-size: 0.85rem;
    }

    .hero {
        padding: 90px 15px 30px;
    }

    .hero button {
        padding: 10px 25px;
        width: auto;
        max-width: 90%;
    }

    .defis {
        padding: 50px 15px;
    }

    .features {
        gap: 25px;
    }

    .feature {
        padding: 0 10px;
    }

    .feature img {
        width: 50px;
    }

    .discord {
        padding: 50px 15px;
        gap: 30px;
    }

    .discord img.avatar {
        width: 60px;
        height: 60px;
    }

    .discord img.avatar:hover {
        border: 3px solid #fff;
    }
}

/* Très petits écrans */
@media screen and (max-width: 360px) {
    header {
        padding: 10px 15px;
    }

    .hero h1 {
        line-height: 0.9;
    }

    .discord {
        flex-direction: column;
    }
}