/* Polices */
body,
html {
    height: 100%;
    margin: 0;
    font-family: "Rajdhani", sans-serif;
    color: #ffffff;
    background-color: black;
    font-size: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;

}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background-color: rgba(0, 0, 0, 0.8);
    border-bottom: 2px solid rgb(61, 65, 255);
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
}

.titre {
    text-decoration: none;
    color: #5078FF;
    font-weight: 700;
    font-family: "Audiowide", sans-serif;
    text-shadow:
        0 0 5px #3C4E99,
        0 0 15px #5078FF,
        0 0 30px #85AFFF;
}

@keyframes neon-glow {
    0%, 100% {
        text-shadow: 
            0 0 5px #5078FF, 
            0 0 15px #85AFFF, 
            0 0 25px #5078FF;
    }
    50% {
        text-shadow: 
            0 0 10px #85AFFF, 
            0 0 25px #5078FF, 
            0 0 50px #85AFFF;
    }
}

.navigation a {
    font-family: 'Orbitron', sans-serif;
    font-size: 18px;
    color: white;
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-weight: 600;
    margin-right: 20px;
    transition: all 0.3s ease;
}

.navigation a:hover {
    text-shadow: 
        0 0 5px #5078FF, 
        0 0 10px #85AFFF, 
        0 0 15px #5078FF;
    color: #85AFFF;
    border-bottom: 2px solid #5078FF;
}

.navigation a.active {
    text-shadow: 
        0 0 5px #5078FF, 
        0 0 15px #85AFFF;
    color: #85AFFF;
    border-bottom: 2px solid #5078FF;
}

.utilisateur a {
    padding: 10px 15px;
    margin-inline-start: 10px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    font-size: 16px;
    border-radius: 15px;
    cursor: pointer;
    background-color: rgba(80, 120, 255, 0.1);
    color: #5078FF;
    border: 2px solid #3C4E99;
    box-shadow: 
        0 0 5px #3C4E99,
        0 0 15px #5078FF;
    transition: all 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.utilisateur a:hover {
    color: #85AFFF;
    border-color: #5078FF;
    box-shadow: 
        0 0 10px #3C4E99, 
        0 0 20px #5078FF, 
        0 0 30px #85AFFF;
    transform: scale(1.1);
}

/* Main Box */
.box {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.lien {
    text-decoration: none;
    color: white;
}

.voiture {
    text-align: center;
    background-color: rgba(37, 37, 37, 0.7);
    border: 1px solid #252525;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(99, 99, 99, 0.7);
    transition: transform 0.3s ease-in-out;
}

.voiture:hover {
    transform: scale(1.05);
}

.voiture h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.voiture img {
    width: 100%;
    height: auto;
    max-height: 150px;
    object-fit: cover;
    margin-bottom: 10px;
    border-radius: 8px;
}

.voiture .blue {
    color: rgb(6, 67, 198);
}

footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 50px;
    padding-bottom: 10px;
    position: relative;
    bottom: 0;
    width: 100%;
}

footer p {
    font-size: small;
}

footer i {
    padding: 8px 8px;
}


@media screen and (max-width: 768px) {
    .box {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 10px;
    }

    .voiture {
        height: auto;
        padding: 10px;
    }

    .titre {
        font-size: 20px; /* Réduction de la taille du titre */
        padding: 0 0;
    }

    .navigation a {
        font-size: 12px; /* Réduction des liens */
    }

    .utilisateur a {
        font-size: 12px; /* Réduction des boutons */
    }
    
    body {
        font-size: 20px; /* Réduit légèrement la taille globale */
    }

    header h1 {
        font-size: 1.8em;
    }

    footer p {
        font-size: 0.9em;
    }
}


/* Réduction des polices pour mobiles */
@media screen and (max-width: 480px) {

    .box {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        max-width: 300px;
    }

.header {
        display: flex;
        flex-direction: column; /* Réorganise en colonne */
        align-items: center; /* Centre les éléments horizontalement */
        gap: 20px; /* Ajoute de l'espace entre les sections */
    }

    body {
        font-size: 18px; /* Encore plus petit pour mobiles */
    }

    header h1 {
        font-size: 1.5em;
    }
    
    .navigation a {
        font-size: 12px;
    }

    .utilisateur a {
        font-size: 12px;
    }

    footer p {
        font-size: 0.8em;
    }

}