/* Styles de base pour les mobiles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

h1 {
    color: yellow;
}

header {
    background-color: #006699;
    text-align: center;
    padding: 1em;
    position: fixed;
    height: 4em;
    width: 100%;
    top: 0;
    z-index: 1000;
}

footer {
    background-color: #006699;
    color: white;
    text-align: center;
    padding: 1em;
    position: fixed;
    width: 100%;
    bottom: 0;
}

.grille_5 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1em;
    margin-top: 4em;
    padding: 1em;
}

.col_1, .col_2, .col_3, .col_4, .col_5, .col_6 {
    background-color: #eff;
    border: 1px solid #00f;
    padding: 1em;
    position: relative;
    overflow: hidden;
    max-height: 3em; /* Ajustez cette valeur selon la taille du titre */
    transition: max-height 0.3s ease;
}

.col_1 h2, .col_2 h2, .col_3 h2, .col_4 h2, .col_5 h2, .col_6 h2 {
    margin: 0;
    padding: 0;
}

.col_1:hover, .col_2:hover, .col_3:hover, .col_4:hover, .col_5:hover, .col_6:hover {
    max-height: 1000px; /* Une valeur suffisamment grande pour afficher tout le contenu */
}

/* Media Queries pour les tablettes et plus grands écrans */
@media (min-width: 600px) {
    .grille_5 {
        grid-template-columns: 1fr 1fr;
    }

    .col_1, .col_2, .col_3, .col_4, .col_5, .col_6 {
        max-height: none;
    }
}

@media (min-width: 900px) {
    .grille_5 {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .col_1, .col_2, .col_3, .col_4, .col_5, .col_6 {
        max-height: none;
    }
}

@media (min-width: 1200px) {
    .grille_5 {
        grid-template-columns: repeat(6, 1fr);
    }

    .col_1, .col_2, .col_3, .col_4, .col_5, .col_6 {
        max-height: none;
    }
}
