body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    /* Supprimez ou mettez à jour l'URL_DE_VOTRE_IMAGE_DE_FOND.jpg si vous utilisez l'image générée ou une autre */
    background-image: url('back.jpg'); /* Assurez-vous que ce chemin est correct */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    text-align: center;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    max-width: 900px; /* Largeur maximale pour le conteneur */
    width: 100%;
    box-sizing: border-box; /* Inclut le padding et la bordure dans la largeur totale */
}

h1 {
    color: #00bfff;
    margin-bottom: 10px;
}

p {
    margin-bottom: 30px;
    font-size: 1.1em;
    color: #e0e0e0;
}

.grid-container {
    display: grid;
    /* Par défaut, 2 colonnes pour les grands écrans */
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 10px; /* Un peu de padding à l'intérieur de la grille */
}

.site-box {
    background-color: rgba(0, 50, 100, 0.7);
    border: 1px solid #00bfff;
    border-radius: 8px;
    padding: 20px;
    text-decoration: none;
    color: #00bfff;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 150px;
    box-sizing: border-box; /* S'assure que le padding ne déborde pas */
}

/* 1ère box */
.grid-container a:nth-child(1) {
    background-image: url("images/training.jpg");
    background-size: cover;      /* couvre 100% largeur/hauteur */
    background-position: center; /* centre l’image */
    background-repeat: no-repeat; /* évite la répétition */

}

/* 2ème box */
.grid-container a:nth-child(2) {
    background-image: url("images/easydash.jpg");
     background-size: cover;      /* couvre 100% largeur/hauteur */
    background-position: center; /* centre l’image */
    background-repeat: no-repeat; /* évite la répétition */

}

/* 3ème box */
.grid-container a:nth-child(3) {
    background-image: url("images/oneclicktune.jpg");
     background-size: cover;      /* couvre 100% largeur/hauteur */
    background-position: center; /* centre l’image */
    background-repeat: no-repeat; /* évite la répétition */

}

/* 4ème box */
.grid-container a:nth-child(4) {
    background-image: url("images/tools.jpg");
     background-size: cover;      /* couvre 100% largeur/hauteur */
    background-position: center; /* centre l’image */
    background-repeat: no-repeat; /* évite la répétition */

}

.site-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 191, 255, 0.4);
    background-color: rgba(0, 80, 160, 0.8);
}

.site-box h2 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #e0e0e0;
}

.site-box p {
    font-size: 0.9em;
    color: #b0e0e6;
    margin-bottom: 0;
}

/* Media Queries pour l'adaptabilité */

/* Pour les tablettes (ex: écrans plus petits que 768px) */
@media (max-width: 768px) {
    .grid-container {
        /* Passe à 1 colonne pour les tablettes */
        grid-template-columns: 1fr;
    }

    .container {
        margin: 20px; /* Ajoute un peu de marge sur les côtés pour les petits écrans */
    }
}

/* Pour les téléphones mobiles (ex: écrans plus petits que 480px) */
@media (max-width: 480px) {
    h1 {
        font-size: 1.8em;
    }
    p {
        font-size: 1em;
    }
    .site-box {
        min-height: 120px; /* Réduit un peu la hauteur des boîtes */
        padding: 15px;
    }
    .site-box h2 {
        font-size: 1.2em;
    }


}
html, body {
    height: 100%;       /* toute la hauteur de la fenêtre */
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
}

.container {
    flex: 1; /* prend tout l’espace restant au-dessus du footer */
}

footer {
    width: 100%;
    padding: 15px;
    text-align: center;
    font-size: 14px;
    color: #fff;
    background-color: #222;
    margin-top: auto;   /* colle le footer en bas */
}

footer a {
    color: #25D366; /* vert WhatsApp */
    text-decoration: none;
    font-weight: bold;
}
footer a:hover {
    text-decoration: underline;
}
h2 {
    color: white;
    text-shadow: 
        -1px -1px 2px black,
         1px -1px 2px black,
        -1px  1px 2px black,
         1px  1px 2px black;
}
a {
    color: white;
    text-shadow: 
        -1px -1px 2px black,
         1px -1px 2px black,
        -1px  1px 2px black,
         1px  1px 2px black;
}
