body, html {
    margin: 0;
    padding: 0;
  
}



.menu {
    position: fixed;
    top: 0;
}

a {
    text-decoration: none;
}

/* Titre provisoires */
.titre {
    text-align: center;
	height:100px;
    margin: 1px;
    background-color: red;
    border-radius: 10px;
    color: white;
    overflow: hidden;
    padding: 20px;
    
   
}


main {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    margin-top: 10px; /* Espace pour le header */
    margin-bottom: 60px; /* Espace pour le footer */
    box-sizing: border-box;
    height: calc(100vh - 50px); /* Ajuste la hauteur en fonction du header et footer */
}

.div1 {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    height: auto;
    padding: 20px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
    gap: 20px;
    border: 0px solid black;
    border-radius: 10px;
}

.carroussel {
    width: 30%;
    height: 250px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carroussel img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 10px;
}

.CadreCentre {
    width: 60%;
    animation: pulse 3s infinite;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
    background-color: #f9f9f9;
    text-align: center;
}

/* Animation pulse */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
        background-color: #f9f9f9;
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 20px rgba(0, 0, 0, 1);
        background-color: #fffbe6; /* un léger jaune pâle */
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
        background-color: #f9f9f9;
    }
}

.event-content {
    margin: auto;
}

.CadreCentre.exposition-annonce {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
	color:black;
}

.CadreCentre.exposition-annonce img {
    max-width: 100px;
    height: auto;
    margin-left: 20px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
    border-radius: 10px;
}

.CadreCentre h2 {
    margin: 5px;
}

.CadreCentre a {
    text-decoration: none;
    color: black;
}

.cadre {
    padding: 30px 20px;
    max-width: 100%;
    margin: 10px auto;
    border: 0px solid black;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
    border-radius: 10px;
}

.cadre p {
    text-align: justify;
}

.jaune {
    background: #ffff66;
}

.vert {
    background: #ccffcc;
}

.bleu {
    background: #cceeff;
}

.image-accueil {
    display: block;
    margin: 0 auto 15px auto;
    max-width: 250px;
}

.social-media {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.social-media a img {
    width: 60px;
    height: 60px;
}
.event-content strong {
  font-size: 1.5em;
  font-style: italic;
}
@media (max-width: 768px) {
  
  /* Libère le header fixe si tu en as un */
  .menu {
    position: static;
    width: 100%;
  }

  .titre {
    padding: 20px;
	
	font-size:0.7em;
    box-sizing: border-box;
    background-color: blue;
    height: auto; /* plus de height fixe */
    overflow: visible;
  }

  main {
    margin: 0;
	
    padding: 10px;
    box-sizing: border-box;
    min-height: auto; /* supprime les contraintes de hauteur */
    height: auto; /* laisser le contenu définir la hauteur */
    overflow: visible; /* important pour laisser tout passer */
    display: block; /* optionnel pour forcer un comportement fluide */
  }


  .div1 {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    width: 100%;
    padding: 10px;
  }

  .CadreCentre,
  .cadre,
  .carroussel {
    width: 100%;
    margin:10px auto;
    padding: 10px;
    box-sizing: border-box;
  }

  .carroussel {
    height: auto; /* pour que ça s’adapte à l’image */
  }

  .carroussel img {
    max-width: 100%;
    height: auto;
    display: block;
  }

  .CadreCentre.exposition-annonce img {
    display: none;
  }

  .TitreCadre {
    font-size: 1.2em;
    margin-bottom: 10px;
    font-weight: 600;
    line-height: 1.2em;
  }

  .image-accueil {
    max-width: 80%;
    margin: 0 auto 10px auto;
    float: none;
  }

}
