/* RESET */

html,
body {
    margin: 0;
    min-height: 100%;
}

* {
    box-sizing: border-box;
}

body {
    display: flex;
    flex-direction: column;
    font-family: Arial, Helvetica, sans-serif;
    background: #1f1f1f;
    color: white;
}


/* BACKGROUND */

.background {
    position: absolute;
    inset: 0;
    background-image: url(../img/BG-HOME.jpg);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    filter: blur(8px);
    z-index: 0;
}


/* HEADER */

header {
    background-color: rgb(43, 78, 87);
    width: 100%;
}

.contenu-header ul {
    list-style: none;
    margin: 0;
    padding: 8px 20px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.contenu-header .HomeButton {
    margin-right: auto;
}

.contenu-header ul li a {
    display: block;
    padding: 10px 12px;
    background-color: rgba(21, 109, 110, 0.2);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    text-transform: uppercase;
    transition: background-color 0.3s;
    font-size: 0.95rem;
}

.contenu-header ul li a:hover {
    background-color: rgba(255, 255, 255, 0.4);
}


/* MAIN */

main {
    position: relative;
    flex: 1;
    display: flex;
    justify-content: center;
    padding: 40px 20px;
    overflow: hidden;
    isolation: isolate;
}


/* CONTENU PRINCIPAL */

.contenu-main {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1400px;
    min-height: 760px;
}


/* TEXTE CENTRE */

.texte-centre {
    width: min(800px, 90vw);
    margin: 0 auto;
    text-align: center;
    color: white;
}

.texte-centre h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin: 0 0 20px 0;
}

.texte-centre p {
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    line-height: 1.6;
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    text-align: center;
    color: #f1f1f1;
    margin: 0;
}


/* CHAMPIONS GAUCHE */

.champ {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.YONE,
.ZERI,
.APHELIOS {
    position: absolute;
}

.YONE img,
.ZERI img,
.APHELIOS img {
    display: block;
    border-radius: 50%;
    object-fit: cover;
}

.YONE img {
    width: clamp(120px, 14vw, 210px);
    height: clamp(120px, 14vw, 210px);
}

.ZERI img {
    width: clamp(110px, 13vw, 190px);
    height: clamp(110px, 13vw, 190px);
}

.APHELIOS img {
    width: clamp(100px, 12vw, 170px);
    height: clamp(100px, 12vw, 170px);
}

.YONE {
    top: 10%;
    left: 14%;
}

.ZERI {
    top: 40%;
    left: 9%;
}

.APHELIOS {
    top: 70%;
    left: 14%;
}


/* BLOC PROFIL DROITE */

.profil-card {
    position: absolute;
    top: 10%;
    left: 75%;
    width: clamp(260px, 32vw, 480px);
    aspect-ratio: 1 / 1;
    z-index: 2;
}

.profil-border {
    width: 100%;
    height: 100%;
    display: block;
}

.profil-khazix {
    position: absolute;
    top: 26.9%;
    right: 31.5%;
    width: 37.5%;
    height: 37.5%;
    border-radius: 50%;
}

.profil-name {
    position: absolute;
    bottom: 14%;
    left: 29%;
    font-size: clamp(1rem, 2vw, 1.9rem);
    font-weight: bold;
    color: white;
    white-space: nowrap;
}


/* FOOTER */

footer {
    flex-shrink: 0;
    width: 100%;
    background-color: rgb(23, 78, 78);
    border-top: 1px dashed #000;
    padding: 12px 0;
}

.footer-service h3 {
    font-size: 20px;
    text-align: center;
    margin: 0 0 15px 0;
    color: white;
}

.footer-service ul.Bonus {
    list-style: none;
    margin: 0;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.footer-service ul.Bonus a {
    color: white;
    text-decoration: none;
}

.footer-service ul.Bonus a:hover {
    text-decoration: underline;
}


/* TABLETTE */

@media (max-width: 1300px) {

    main {
        overflow: visible;
    }

    .champ {
        display: none;
    }

    .contenu-main {
        min-height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .texte-centre {
        order: 1;
        width: min(800px, 92vw);
    }

    .profil-card {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
        order: 2;
        margin: 10px auto 0 auto;
    }
}


/* MOBILE */

@media (max-width: 950px) {

    main {
        padding: 30px 15px;
        overflow: visible;
    }

    .contenu-main {
        min-height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }

    .texte-centre {
        width: min(800px, 94vw);
        order: 1;
    }

    .profil-card {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
        order: 2;
        margin: 10px auto 0 auto;
    }
}


@media (max-width: 600px) {

    header {
        min-height: auto;
    }

    .contenu-header ul {
        justify-content: center;
        padding: 8px;
        gap: 6px;
    }

    .contenu-header .HomeButton {
        margin-right: 0;
    }

    .contenu-header ul li a {
        padding: 6px 8px;
        font-size: 0.65rem;
    }

    .texte-centre {
        width: 94vw;
    }

    .texte-centre h1 {
        font-size: 2rem;
        margin-top: 0;
    }

    .texte-centre p {
        font-size: 0.9rem;
        line-height: 1.5;
        padding: 12px;
    }

    .profil-card {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
        order: 2;
        margin: 10px auto 0 auto;
    }

    .profil-name {
        font-size: 0.85rem;
    }

    footer {
        padding: 10px 0;
    }

    .footer-service h3 {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .footer-service ul.Bonus {
        gap: 14px;
        padding: 0 10px;
    }

    .footer-service ul.Bonus a {
        font-size: 0.75rem;
    }
}