/*Pages individuelles*/
/*evenements*/
.calend{
  margin-top: 40px;
}
.right,.left{
  width:50%;
  border-right: 10px solid #ffffff;
}
.left{
   border-right: none;
   border-left: 10px solid #ffffff;
}
.img_eve{
  width: 40%;
  max-width: 500px;
  max-height:680px;
}
.tailleimg{
  width:800px
}
/*domaines associés, qui?*/
.text{
  font-size: 20px;
  padding-bottom:18px;
}
.acuhuangdi p:nth-child(1), .domaine2 p:nth-child(3), .domaine3 p:nth-child(1),.qui p:nth-child(4) {
  border-left: 6px solid #f22613;
  margin-left:50px;
  padding-left: 20px;
}
.diptyque_spe{
   max-width: 1700px;
   margin: 0 auto;
}
.spe_gauche{
  width:30%;
  position: sticky;
  top:16px;
  align-self: start;
  z-index: 100;
}

.encadres{
  border:4px solid #EBF1F3;
  margin: 3%;
}
.spe_droite{
  width:70%;

}
.img_domaines{
  align-self: center;
}
.acuhuangdi table{
  background-color: #EBF1F3;
  font-size: x-large;
}
img[src$='#taillehuangdi'] {
width: 300px;
height: auto;
}
.acuhuangdi{
  width: 100%;
}
/*boutique*/
.img_rochat{
  float: left; 
  margin-right: 35px; 
  margin-bottom: 10px;
}
.pourcentrer{
  justify-self: center;
  place-items: center;
}
.img_mentions{
  place-items: center;
}
.tablederoulante td:first-child {
  width: 700px;
}
.latisserande{
  background-color:#EBF1F3;
  margin-top: 80px;
  width: 100vw;
  padding:4% 10%;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}
.img_tisserande{
   border: 3px solid #4a5568;
}

/*evenements*/
.evenements_indiv{
  margin-top:10rem;
}
/* calendrier*/
.calendar-container {
    max-width: 600px;
    margin: 2rem auto;
    border-radius: 8px;
    box-shadow: 0 4px 6px #777777;
    padding: 1.2rem;
}
.calendar-header {
 align-self: center;
    font-weight: bold;
}
.nav-btn{
  font-size: 20px;
  margin: 3%;
  border-radius: 30%;
}
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    
    gap: 6px;
}
.calendar-day-name {
    text-align: center;
    font-weight: 600;
    padding: 0.5rem 0;
}

/* --- Style d'une case de jour --- */
.calendar-day {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    min-height: 50px;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: all 0.2s ease;
  

}
.calendar-day:hover {
    background: #edf2f7;
    border-color:  #777777;
}

/* Numéro du jour dans la case */
.day-number {
    font-weight: bold;
    color: #4a5568;
    margin-bottom: 0.5rem;
}

/* Case vide (pour les jours du mois précédent/suivant) */
.calendar-day.empty {
    background: transparent;
    border: none;
    pointer-events: none;
}

/* --- Style d'un événement à l'intérieur d'une case --- */
.calendar-event {
    display: block;
    max-width: 100%;
    min-width: 0;
    overflow-wrap: break-word;
    overflow: hidden;
}

.calendar-event:hover {
    background: #c5ced8;
}

/*modale pDF*/

.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}
.modal-content {
  position: relative;
  width: 80%;
  height: 85%;
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.modal-close {
  position: absolute;
  top: -10px;
  right: 10px;
  font-size: 35px;
  cursor: pointer;
}
.modal-close:hover { color: black; }

/*deroulant*/
.tableau-deroulant {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.tableau-deroulant th, .tableau-deroulant td {
  padding: 12px;
  border-bottom: 1px solid #ddd;
  text-align: left;
}

/* Style de la ligne cliquable */
.ligne-principale {
  cursor: pointer;
  transition: background-color 0.2s;
}

.ligne-principale:hover,.ligne-principale.active  {
  background-color: #EBF1F3;
}

.fleche {
  display: inline-block;
  transition: transform 0.2s ease;
}
.ligne-details {
  display: none;
  background-color: #fafafa;
}
.details-contenu {
  margin-left: 110px;
  font-size: 0.9em;
  color: black;
}
/*footer*/
.container_footer {
  padding: 2%;
}

/*annuaire adhérents AFA*/

.filtres-annuaire{
  margin-bottom: 2rem;
}

.rechercheprofessionnel{
  padding: 1% 2%;
  min-width: 300px;
}
.boutons-categories{
  margin-top: 1rem;
}

.btn-filtre {
  padding: 0.4rem 0.9rem;
  margin: 0 0.3rem 0.3rem 0;
  border: 1px solid #ccc;
  background: #f5f5f5;
  border-radius: 15px;
  cursor: pointer;
  font-size: 20px;
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
  }

.btn-filtre.actif {
  background: #222;
  color: #fff;
  border-color: #222;
  }

/*annuaire*/
  .grid_annuaire{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  grid-auto-rows: minmax(0, 1fr); 
  }
.carte-annuaire{
  aspect-ratio: 1 / 1; 
  overflow: hidden; 
  
}
.carte-annuaire p{
font-size: 15px;
    margin-block-start: 0.2em;
    margin-block-end: 1em;
}
.aucunresultat{
  display: none;
  color: red;
  font-size: 20px;
}