/*Pages individuelles*/

/*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;
}

.latisserande{
  background-color:#EBF1F3;
  margin-top: 40px;
  padding:4%;
}
.img_tisserande{
   border: 2px solid #4a5568;
}

/*evenements*/

.right,.left{
  width:50%;
  max-height: 730px;
  border-right: 10px solid #ffffff;
}
.left{
   border-right: none;
   border-left: 10px solid #ffffff;
}
.img_eve{
  width: 40%;
  max-width: 500px;
  max-height:730px;
}

.evenements_indiv{
  margin-top:10rem;
}
.titre_evenements {
  margin-block-start: .3em;
  margin-block-end: .3em;
  font-weight: 600;
}
.bouton_evenements{
  padding: 10px 40px;
  min-width: 85px;
  font-size: 15px;
  font-weight: 600;
  background-color:#de3d3d ;
  color:white;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease;
}
.bouton_evenements:hover{
  background-color: transparent;
  color: black;
  border: 1px solid#de3d3d ;
}
.bouton_banquet{
  padding: 4px 6px;
  margin-bottom: 5px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid #de3d3d;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease;
}
.galerie_evenements{
  justify-content: space-between;
}
.galerie_li{
  font-size: .3rem;
}
/* calendrier evenements*/
.calendar-container {
    max-width: 800px;
    margin: 2rem auto;
    border-radius: 8px;
    box-shadow: 0 4px 6px #777777;
    padding: 1.2rem;
}
.calendar-header {
  align-self: center;
  font-weight: bold;
  min-width: 200px;
}
.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: 38px;
    min-width: 45px;
    padding: 3px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: all 0.2s ease;
}
.calendar-day:hover {
    background: #edf2f7;
    border-color:  #777777;
}

.lien-capsule {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
   
}
.badge-capsule,.calendar-day a {
  display: inline-block;
  padding: 4px 8px;  
  line-height: 15px;         
  color: #ffffff;              
  font-size: 0.80rem;
  font-weight: 600;
  border-radius: 9999px;       
  transition: background-color 0.2s ease, transform 0.2s ease;
}


/* 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;
  padding: 1%;
}

.tableau-deroulant th, .tableau-deroulant td {
  padding: 12px;
  border-bottom: 1px solid #ddd;
  text-align: left;
}
.tablederoulante td:first-child {
  width: 700px;
}
.ligne-principale {
  cursor: pointer;
  transition: background-color 0.2s;
  font-weight: 700;
  touch-action: manipulation;
   user-select: none;
  width:100%
}

.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:80px;
  font-size: 0.9em;
  color: black;
  overflow-x: auto;
  word-wrap: break-word;
}
.navclass {
  pointer-events: none;
}
.decalage {
  pointer-events: auto;
}
.hamburger {
  pointer-events: auto;
}

/*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;
}