/* HEADER ANNUAIRE */

.header-annuaire{margin-top: 60px;height: 100px;position:relative;}

.header-annuaire h1{
	width:100%;
	font-size: 44px;
    display: inline-block;
    font-family: 'Oswald', sans-serif;
	text-align:left;
	text-transform:uppercase;
}

.back-annuaire-alpha{
	position:absolute;
	top:0;
	right:0;
	width:50px;height:50px;
	background-image:url('../img/icon-alpha.svg');
	background-repeat:no-repeat;
	background-size:50px 50px;
	background-position:center center;
	transition: all 0.4s ease 0s;
}
.back-annuaire-alpha:hover{background-image:url('../img/icon-alpha-hover.svg');transition: all 0.4s ease 0s;}


/* ANNUAIRE ALPHA */

.letter-title{
    display: flex;
    width: 100%;
    justify-content: center;
    padding:20px 0px;
}


/* FILTRES ANNUAIRE */

#filtres-annuaire{
    margin-bottom: 40px;
}

#filtre-form{
    display:flex;
    justify-content: space-between;
}

#filtre-form-inputs{
    display:flex;
    justify-content: space-between;
}


.filtre-item{
    display: flex;
    flex-direction: column;
    margin-right:15px;

}

.filtre-item label{
    width:100%;
    color: #EF5E04;
    font-size:13px;
    text-transform:uppercase;
    height:20px;
}

.btn-filtre{
    display: flex;
    width: fit-content;
    text-transform: uppercase;
    text-align: center;
    border-radius: 100px;
    background-color: #EF5E04;
    color: #FFF;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 1px;
    transition: all 0.4s ease 0s;
    border:none;
    padding:5px 20px;
    cursor:pointer;
    margin-top: 24px;
}



/* --- BOUTON TOGGLE FILTRES --- */

/* Bouton toggle */
#toggle-filtres {
    display: none;
    width: 100%;
    background: #EF5E04;
    color: #fff;
    border: none;
    padding: 12px 16px;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 5px;
}

#toggle-filtres:hover { background: #d74f00; }

/* Flèche animée */
#toggle-filtres .toggle-arrow {
    display: inline-block;
    transition: transform 0.3s ease;
}
#toggle-filtres[aria-expanded="true"] .toggle-arrow {
    transform: rotate(180deg);
}

#filtres-conteneur {
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    max-height: none; /* desktop visible par défaut */
}

#filtres-conteneur.closed {
    max-height: 0;
    padding: 0;
}



/* CONTAINER ANNNUAIRE ======================================= */


.container-annuaire{max-width:1400px;margin:0 auto;}

.annuaire-grid{
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin-top:20px;
    padding-bottom:60px;
}
.annuaire-card{
    display: block;
    text-align: center;
    text-decoration: none;
    color: inherit;
    border: 1px solid #ccc;
    border-radius: 6px;
    transition: transform 0.2s;
    padding-bottom:20px;
    overflow:hidden;
}

.annuaire-card:hover { transform: translateY(-5px);text-decoration:none; }
.annuaire-card .avatar { width:100%;height:215px;margin-bottom:10px; }
.annuaire-card .avatar img{width:100%;height:100%;object-fit: cover;}

.annuaire-card .member-info h3 {display:flex;justify-content:center;align-items:center;text-align:center;width:90%;margin:0 auto;font-size: 16px;color:#EF5E04;font-weight:bold;height:40px;letter-spacing: 1px;}
.annuaire-card .member-info .um-member-activity { display:flex;justify-content:center;align-items:center;width:90%;margin:0 auto; font-size: 14px; color:#434E64;text-align:center;height: 30px;}
.annuaire-card .member-info .um-member-role{display:flex;justify-content:center;align-items:center;text-align:center;font-size:10px;width:90%;margin:0 auto;color:#EF5E04;height:20px;}



.pagination-annuaire {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 40px 0 80px;

}
.pagination-annuaire .page-link {
  padding: 8px 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  text-decoration: none;
  color:#434E64;
}
.pagination-annuaire .page-link.active {
  background:#434E64;
  color: #fff;
  font-weight: 600;
}



.message-annuaire{
    color: #EF5E04;
    text-align:center;
    font-weight:bold;
    margin-bottom:30px;
    font-size:18px;
}


.message-none{
    font-size:21px;
    grid-column: 1 / -1;
    text-align: center;
    font-weight: bold;
}




/*====================================================================*/

@media screen and (max-width: 1024px) {
    #toggle-filtres {
        display: flex;
    }
    #filtres-conteneur {
        background: #f9f9f9;
        padding: 0 10px;
    }
}


/*====================================================================*/

@media screen and (min-width:1201px) and (max-width:1400px){

    .container-annuaire{width:94%;max-width:94%;margin:0 auto;}
    .annuaire-grid{width:100%;margin:0 auto;grid-template-columns: repeat(5, 1fr);gap: 20px;margin-top:20px;}
 
}


/*====================================================================*/

@media screen and (min-width:1025px) and (max-width:1200px){

    .container-annuaire{width:94%;max-width:94%;margin:0 auto;}
    .annuaire-grid{grid-template-columns: repeat(5, 1fr);gap: 20px;margin-top:20px;}

    #filtres-annuaire{width:100%;}

    #filtres-conteneur{padding:30px;}

    #filtre-form-inputs{
        width:80%;
        flex-wrap:wrap;
        justify-content:center;
        margin:0 auto;
    }
    #filtre-form-inputs .filtre-item{
        margin:8px auto;
        width:100%;
        max-width:100%;
        box-sizing:border-box;
    }

    #filtre-form-inputs .filtre-item input,
    #filtre-form-inputs .filtre-item select{
        width: 100% !important;
        max-width: 100%;
        box-sizing: border-box;
    }

    .filtre-item-submit{width:20%;align-items:flex-end;justify-content: center;}
    .btn-filtre{margin-top: 0;}
}

/*====================================================================*/
@media screen and (min-width:769px) and (max-width:1024px){

  .container-annuaire{max-width:94%;margin:0 auto;}
  .annuaire-grid{grid-template-columns: repeat(4, 1fr);gap: 20px;margin-top:20px;}

  #filtres-annuaire{width:100%;border:1px solid #d74f00;}
  #filtres-conteneur{padding:30px;}

  #filtre-form-inputs{
    width:70%;
    flex-direction:column;
    justify-content:flex-start;
    margin:0 auto;
  }
  #filtre-form-inputs .filtre-item{
    margin:8px auto;
    width:100%;
    max-width:100%;
    box-sizing:border-box;
  }
  #filtre-form-inputs .filtre-item input,
  #filtre-form-inputs .filtre-item select{
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
  }

  .filtre-item-submit{width:30%;align-items:flex-end;justify-content:center;}
  .btn-filtre{margin-top:0;}
}

/*====================================================================*/
@media screen and (max-width:768px){

    .container-annuaire{max-width:94%;margin:0 auto;}
    .annuaire-grid{grid-template-columns: repeat(2, 1fr);gap: 20px;margin-top:20px;}

    #filtres-annuaire{width:100%;border:1px solid #d74f00;background:#f1f1f1;border-radius: 5px;}
    #filtres-conteneur{padding:30px;}

    #filtre-form{flex-direction:column;}
    #filtre-form-inputs{
        width:90%;
        margin:0 auto;
        flex-direction:column;
        justify-content:flex-start;
    }

    #filtre-form-inputs .filtre-item{
        margin:8px auto;
        width:100%;
        max-width:100%;
        box-sizing:border-box;
    }

    #filtre-form-inputs .filtre-item input,
    #filtre-form-inputs .filtre-item select{
        width: 100% !important;
        max-width: 100%;
        box-sizing: border-box;
    }

    .filtre-item-submit{
        width:100%;
        align-items:center;
        justify-content:center;
        margin-top:30px;
    }

    .btn-filtre{margin-top:0;}

    .select2-container {
        width: 100% !important;
        max-width: 100%;
    }
}