

.container {
    margin-top: 150px;
    display: flex;
    flex-wrap: wrap; /* Permet de passer en colonne sur petits écrans */
    gap: 10px; /* Espacement entre les divs */
    padding: 10px;
    padding-left: 0px;
    padding-right: 0px;
}

.div1 {

  /*  flex: ;  Les deux div prennent une part égale de l'espace */
    box-sizing: border-box;
}


.titre {
    position: relative;
    width: 100%;
    height: 80px;
    background-color: darkviolet;
    color: white;
}
.titre  h1{
   padding-left: 12px;
   padding-top: 15px;
}

/* Style pour le tableau  text-align: center;*/
 table {
    width: 100%;
    border-collapse: collapse; /* Enlève les espaces entre les cellules */
    border-spacing: 0; /* Supprime les espaces entre les cellules */
    table-layout: fixed; /* Assure une largeur uniforme des colonnes */
}

td {
    
    width: auto;
    height: 250px;
    border: 1px solid green;
    text-align: center;
}

td  img {
    cursor: pointer;
    width: 100%; /* Rendre les images responsives */
    height: 100%;
    display: block; /* Éviter les espaces blancs sous les images */
    border-radius: 5px;
   
}

.thumbnail {
    width: 100%;
    height: 100%;
    cursor: pointer;
    border-radius: 5px;
    transition: transform 0.3s;
}

.thumbnail:hover {
    transform: scale(1.1);
}

/* Style pour div1 et div2 */

.div1 {
    padding: 10px;
    background-color: #f4f4f4;
    border: 1px solid #ddd;
    border-radius: 5px;
}


/* Style de la modale */
.modal {
    display: none; /* Cachée par défaut */
    position: fixed;
    z-index: 1000;
    width: 55%;
    height: 90%;
   /* background-color: rgba(0, 0, 0, 0.0);  Fond semi-transparent noir */
}

.modal-content {
   
    padding-top: 30px;
    margin-left: 200px;
    padding-bottom: 20px;
    display: block;
    width: 80%; /* Limiter la largeur pour garder un espace autour */
    height: 80%; /* Limiter la hauteur */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.0);
}

.close {
    position: relative;
    margin-right: -80px;
    margin-top: 20px;
    height: 6px;
    width: 60px;
    float: right;
    color: red;
    font-size: 48px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1; /* Au-dessus de l'image */
}

.close:hover,
.close:focus {

    color: red;
    text-decoration: none;
    cursor: pointer;
}

.abone{

    position: absolute;
    bottom: 0px;
    height: 60px;
    width: 250px;
    right: -35px;
}


/* Comportement responsive */

@media (max-width: 500px) {
    .container {
        flex-direction: column; /* Passe en colonne sur petits écrans */
    }

     .div1 {
      margin-top: 80px;  /* flex: none; Div1 et Div2 prennent la largeur complète */
    }

td {
    
    width: 100%;
    height: 150px;
    border: 1px solid green;
    text-align: center;
}

td  img {
    cursor: pointer;
    width: 100%; /* Rendre les images responsives */
    height: 100%;
    display: block; /* Éviter les espaces blancs sous les images */
    border-radius: 5px;
   
}

/* Style de la modale */
.modal {
    display: none; /* Cachée par défaut */
    position: fixed;
    z-index: 1000;
    width: 80%;
    height: 300px;
   /* background-color: rgba(0, 0, 0, 0.0);  Fond semi-transparent noir */
}

.modal-content {

    padding-top: 30px;
    margin: 0;
    display: block;
    width: 110%; /* Limiter la largeur pour garder un espace autour */
    height: 100%; /* Limiter la hauteur */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.0);
}

.close {
    position: relative;
    margin-right: -40px;
    margin-top: 20px;
    height: 6px;
    width: 40px;
    float: right;
    color: red;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1; /* Au-dessus de l'image */
}

.close:hover,
.close:focus {

    color: red;
    text-decoration: none;
    cursor: pointer;
}



.titre {
    font-size: 15px;
    position: relative;
    width: 100%;
    height: auto;
    background-color: darkviolet;
    color: white;
}

.abone{
    left: 20px;
    top: 80px;
    font-size: 12px;
    height: 60px;
    width: 250px;
    display: block;
}


}
