body {
    font-family: Arial, sans-serif;
    text-align: center;
    margin: 0;
    padding: 0;
    background-color: white;
}

.header {
    display: flex;
    justify-content: space-between; /* Aligne le titre à gauche et le logo à droite */
    align-items: center; /* Centre verticalement */
    padding: 10px 20px;
    background-color: white;
    border-bottom: 3px solid #ffec00;
}

.header h1 {
    margin: 0;
    font-size: 24px; /* Taille du texte */
    font-weight: bold;
    text-align: left;
}

.logo {
    height: 50px; /* Ajuste la taille */
    margin-left: auto; /* Pousse le logo à droite */
}
.container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 220px; /* Taille uniforme des boutons */
    height: 80px; /* Ajusté pour éviter l'écrasement */
    padding: 10px;
    border-radius: 25px;
    background-color: #cccccc;
    text-decoration: none;
    color: black;
    border: 2px solid yellow;
    overflow: hidden;
}

.box.has-image {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.box.folder {
    border: 2px solid #f7c82b; /* Couleur spécifique aux dossiers */
}

.text-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
    text-align: left;
    padding-left: 10px;
}

.box h2 {
    margin: 0;
    font-size: 16px;
    font-weight: bold;
}

.box p {
    margin: 2px 0 0 0;
    font-size: 12px;
    color: black;
}

.box img {
    height: 80%; /* 80% de la hauteur du bouton */
    aspect-ratio: 1; /* Assure un cercle */
    border-radius: 50%;
    object-fit: cover; /* Évite les déformations */
    margin-right: 5px; /* Espacement entre l'image et le texte */
}

/* Styles pour les boutons Retour et Accueil */
.back-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.back-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 120px; /* Taille réduite */
    height: 40px; /* Taille réduite */
    margin: 20px auto; /* Centre automatiquement */
    padding: 5px;
    border: 2px solid #b3b3b3; /* Bordure grise */
    border-radius: 20px;
    background-color: #cccccc;
    text-decoration: none;
    color: black;
    font-weight: bold;
    font-size: 12px; /* Texte plus petit */
}

.back-btn img {
    height: 60%; /* Taille réduite */
    width: auto;
    aspect-ratio: 1;

}

.back-btn.return-home {
    border: 2px solid #4CAF50; /* Bordure verte pour retour à l'accueil */
}

@media screen and (max-width: 768px) {
    iframe {
        width: 100vw; /* 100% de la largeur de l'écran */
        max-width: 100vw;
        height: auto;
        aspect-ratio: 16 / 9; /* Ratio 16:9 pour éviter le rognage */
    }
}
.footer {
    display: flex;
    justify-content: center; /* Aligne le titre à gauche et le logo à droite */
    align-items: center; /* Centre verticalement */
    padding: 10px 20px;
    background-color: white;
    border-top: 3px solid #ffec00;
    position: fixed;
    bottom: 0;
    width: 100%;
}

.footer h1 {
    margin: 0;
    font-size: 18px; /* Taille du texte */
    font-weight: bold;
    text-align: center;
}
