/* couleurs de base et enleve la marge par defaut du navigateur */
body {
    background-color: #1a1a1a;
    color: white; 
    font-family: Arial;
    margin: 0px;
}

/* la boite du haut avec la ligne rose */
header {
    background-color: rgb(50, 0, 102);
    padding: 20px;
    border-bottom: 4px solid magenta; 
}

/* flexbox pour le menu en haut */
nav ul {
    display: flex; 
    justify-content: center;
    list-style-type: none;
    padding-left: 0;
}

/* espace entre les liens */
nav li { margin-right: 20px; }

nav a {
    color: cyan; 
    text-decoration: none;
    font-weight: bold;
}

/* en passant la souris dessus */
nav a:hover { color: #ff00ff; }

h1 { color: magenta; text-align: center; }

main { padding: 20px; }

/* Page 1 (accueil)*/

/* grosse image avec filtre sombre par dessus */
.banniere {
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../img/fond-retro.jpg');
    background-size: cover;
    height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* effet 3d sur le titre */
.banniere h1 {
    font-size: 35px;
    color: magenta;
    text-shadow: 2px 2px black;
}

.presentation {
    display: grid; 
    grid-template-columns: 50% 50%; 
    gap: 20px;
}

/* centrer l'image */
.image-accueil img {
    width: 50%;
    border: 4px solid cyan;
    display: block;
}

/* bouton rose */
.bouton-action {
    background-color: magenta;
    color: white;
    padding: 10px;
    border-radius: 5px;
    text-decoration: none;
}

/* Page 2 (galerie)*/

/* grille de 3 colonnes pour les jeux */
.grille-consoles {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    padding: 20px 10%;
}

/* cadre autour des consoles */
.carte {
    border: 2px solid cyan;
    padding: 15px;
    background-color: black;
    text-align: center;
}

/* object fit pour pas que l'image soit ecrasée */
.carte img {
    width: 100%; 
    height: 200px;
    object-fit: cover;
}

/* l'overflow*/
.conteneur-tableau {
    width: 90%;
    margin: 20px auto;
    overflow-x: auto; /* point pour le tp */
}

/* style du tableau */
table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    border: 1px solid magenta;
    padding: 10px;
    text-align: center;
}

th { background-color: purple; color: white; }

/* espace pour la video */
.video-container {
    text-align: center;
    margin-top: 50px;
    margin-bottom: 50px;
}

/* Page 3 (Contact)*/
.photo-profil {
    float: left;
    margin-right: 20px;
    margin-bottom: 10px;
    border: 2px solid cyan;
    width: 150px;
}
    
 /* arret du float ici*/   
.clear-fix {
    clear: both;
}

/* citation */
blockquote {
    background-color: #222;
    border-left: 5px solid magenta;
    padding: 10px;
    font-style: italic;
}

/* boite du formulaire */
.boite-contact {
    background-color: black;
    border: 2px dashed purple;
    padding: 20px;
    margin-top: 40px;
}
    
/* display block pour mettre le texte au dessus des cases */
label { display: block; margin-top: 15px; color: cyan; }
input, textarea {
    width: 100%;
    display: block;
    margin-top: 5px;
    padding: 10px;
    background-color: #333;
    color: white;
    border: 1px solid magenta;
}

button {
    background-color: magenta;
    color: white;
    padding: 10px 20px;
    border: none;
    margin-top: 20px;
    cursor: pointer;
}

/* Footer commun*/
footer {
    background-color: black;
    text-align: center;
    padding: 15px;
    margin-top: 40px;
    border-top: 2px solid purple;
}

/* Responsive mobile*/
@media (max-width: 768px) {
    .presentation, .grille-consoles {
        grid-template-columns: 1fr; 
    }
    nav ul {
        flex-direction: column;
    }
    .photo-profil {
        float: none;
        display: block;
        margin: 0 auto;
    }
}