
:root {
    --color1: #101012;
    --color2: #fafafa;
    --color3: #ff0000;
    --color4: #05ff76;
    --color5: #ffea00;
    --color6: #5efffe;
    --color7: #a0a0a0;
}

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

body {
    min-height: 100vh;
    background-color: var(--color1);
}

nav {
    display: flex;
    justify-content: space-between;
    background-color: #101012;
    text-transform: uppercase;
    align-items: center;
    padding: 10px 10px 10px 10px;
    position: relative;
    width: 100%;

    /* Petit espace autour du logo */
}

nav::after {
    content: "";
    position: absolute;
    background: #ffffff;
    height: 1px;
    width: 99%;
    bottom: -1px;
    opacity: 0.2;
    overflow: hidden;
}

/* Police d'écriture */
nav h1 {
    font-size: 24px;
    font-family: "Bebas Neue", sans-serif;
    color: #fafafa;
}

/* Groupe des liens texte */
.nav-links {
    display: flex;
    gap: 50px;
}

/* Style des liens, ici retire ceux mis automatiquement */
.nav-links a {
    text-decoration: none;
    color: inherit;
}

/* Lien actif en rouge */
.nav-links a.active h1 {
    color: #ff0000;
}

/* Effet de survol permettant de changer de couleur le texte en passant dessus */
.nav-links a:not(.active):hover h1 {
    color: #ff0000;
    opacity: 0.8;
}

/* Groupe des icônes sociales */
.social-icons {
    display: flex;
    gap: 50px;
    padding: 0 10px;
}

/* Effet de survol : le logo devient un peu transparent */
.social-icons a:hover img {
    opacity: 0.7;
}

header {
    background-color: var(--color1);
    text-align: center;
    color: #fafafa;
    padding: 20px;
}

header p {
    margin: 11px 0;
    font-family: "Inter";
    color: var(--color7);
    margin: 0 auto;
    width: 500px;
}

header h1 {
    font-family: "Bebas Neue" , sans-serif;
    font-size: 90px;
    margin-top: 10px;
    z-index: 1;
}

button {
    width: 220px;
    background-color: var(--color3);
    font-family: "Bebas Neue", sans-serif;
    font-size: 17px;
    font-weight: bold;
    color: var(--color1);
    padding: 12px 0;
    margin: 11px 0;
    text-transform: uppercase;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

button::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    transition: 0.5s ease-in-out;
    background-color: var(--color2);
    opacity: 30%;
    z-index: -1;
}

button:hover::before {
    width: 100%;
}

.main {
    margin-bottom: 50px;
}

.grid {
    display: grid;
    width: 100%;
    margin: 0 auto;
    margin-top: 29px;
    align-content:space-between;
    align-items: center ; 
    justify-content : center;
}

.bloc {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap:50px;
}

.bloc img {
    width: 400px;
    border-radius: 8px;
}

.bloc p {
    color: var(--color7);
    width: 400px;
    margin-top: 5px;
    text-align: justify;
    font-family:"Inter" , sans-serif;
    /* 👈 Texte justifié */
}

.titre-redoutable {
    color: var(--color4);
  	font-family: "Bebas Neue", sans-serif;
    font-size: 32px;
}

.titre-extraction {
    color: var(--color5);
   	font-family: "Bebas Neue", sans-serif;
    font-size: 32px;
}

.titre-nocturne {
    color: var(--color6);
   	font-family: "Bebas Neue", sans-serif;
    font-size: 32px;
}

/*FOOTER */
footer {
    padding: 40px 0 20px;
    background-color: #101012;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* LOGOS */
.footer-logos {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 25px;
    margin-bottom: 25px;
    border-bottom: 1px solid #a0a0a0;
    position: relative;
}

/* Groupe gauche - 3 premiers logos - collés à gauche */
.footer-logos>img:nth-child(1) {
    position: absolute;
    left: 0;
}

.footer-logos>img:nth-child(2) {
    position: absolute;
    left: 48px;
}

.footer-logos>img:nth-child(3) {
    position: absolute;
    left: 96px;
}

/* Logo central ARC Raiders */
.footer-logo-arcraiders {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

/* Groupe droite - 3 derniers logos - collés à droite */
.footer-logos a:nth-child(5) {
    position: absolute;
    right: 136px;
}

.footer-logos a:nth-child(6) {
    position: absolute;
    right: 68px;
}

.footer-logos a:nth-child(7) {
    position: absolute;
    right: 0;
}

/* Styles généraux des logos */
.footer-logo {
    width: auto;
    object-fit: contain;
    transition: opacity 0.3s ease, transform 0.3s ease;
    cursor: pointer;
    display: block;
}

/* Tailles - Logo enlist.resist agrandi */
.footer-logos>img:nth-child(1),
.footer-logos>img:nth-child(2) {
    height: 40px;
}

.footer-logos>img:nth-child(3) {
    height: 70px;
}

.footer-logo-arcraiders {
    height: 120px;
}

.footer-logos a:nth-child(5) img,
.footer-logos a:nth-child(6) img,
.footer-logos a:nth-child(7) img {
    height: 40px;
}

/* Effet hover */
.footer-logo:hover {
    opacity: 0.8;
    transform: scale(1.05);
}


/* COPYRIGHT */
.footer-copyright {
    text-align: center;
    margin-bottom: 15px;
    padding: 0 20px;
}

.footer-copyright p {
    font-size: 11px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* LIENS */
.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    padding-bottom: 10px;
}

.footer-links a {
    color: #888;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ffffff;
}

/* === RESPONSIVE TABLETTE === */
@media (max-width: 1024px) {
    nav h1 {
        font-size: 20px;
    }

    header h1 {
        font-size: 70px;
        /* Titre plus petit (était 90px) */
    }

    .social-icons img {
        width: auto;
        height: 40px;
    }

    .grid {
        width: 80%;
        gap: 40px;
    }

    .bloc {
        gap: 20px;
    }

    .bloc p {
        max-width: 400px;
        width: 100%;
        font-size: 15px;
        text-align: justify;
        /* 👈 Texte justifié */
    }

    .bloc img {
        width: 100%;
        max-width: 350px;
    }

    .titre-redoutable,
    .titre-extraction,
    .titre-nocturne {
        font-size: 28px;
        /* Titres plus petits (étaient 32px) */
    }

    .footer-container {
        padding: 0 30px;
    }

    .footer-logos {
        padding-bottom: 20px;
        margin-bottom: 20px;
        min-height: 120px;
    }

    /* Groupe gauche tablette */
    .footer-logos>img:nth-child(1) {
        left: 0;
    }

    .footer-logos>img:nth-child(2) {
        left: 43px;
    }

    .footer-logos>img:nth-child(3) {
        left: 86px;
    }

    .footer-logo-arcraiders {
        left: 50%;
        transform: translateX(-50%);
    }

    /* Groupe droite tablette */
    .footer-logos a:nth-child(5) {
        right: 122px;
    }

    .footer-logos a:nth-child(6) {
        right: 61px;
    }

    .footer-logos a:nth-child(7) {
        right: 0;
    }

    .footer-logos>img:nth-child(1),
    .footer-logos>img:nth-child(2) {
        height: 35px;
    }

    .footer-logos>img:nth-child(3) {
        height: 60px;
    }

    .footer-logo-arcraiders {
        height: 100px;
    }

    .footer-logos a:nth-child(5) img,
    .footer-logos a:nth-child(6) img,
    .footer-logos a:nth-child(7) img {
        height: 35px;
    }

    .footer-links a {
        font-size: 13px;
        gap: 20px;
    }
}