/* --- annuaire.css --- */

/* 1) Conteneur : grille responsive en 3 colonnes minimum */
.annuaire-membres-shortcode {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* 2) Chaque carte de membre */

.member-item:hover {
  /* Légère remontée */
  transform: translateY(-4px);
  /* Ombre accrue */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}


/* 3) Photo : cercle parfait */
.member-photo {
  width: 100%;
  max-width: 180px;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: block;
}

/* 4) Nom + prénom (titre) */
.member-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: #3a3a3a;
  margin: 0 0 0.5rem;
}

/* 5) Corps (texte court) */
.member-corps {
  font-size: 0.95rem;
  color: #666;
  margin: 0;
  line-height: 1.4;
}

.annuaire-header {
  text-align: left;
  margin: 0 0 1rem;     /* plus de place en bas, plus compacte au-dessus */
  padding-left: 1rem;   /* on rapproche du bord */
}

.annuaire-subtitle {
  font-size: 1.5rem;    /* plus gros que 1rem, moins qu’un h3 par défaut */
  font-weight: 600;
  color: #2f5d3c;       /* vert principal */
  margin: 0;            /* on annule tout écart */
  line-height: 1.2;
}

.annuaire-title {
  font-size: 2.8rem;    /* vraiment imposant */
  font-weight: 700;
  color: black;       /* jaune principal */
  margin: 0;            /* on annule tout écart */
  line-height: 1.1;
  font-size: clamp(1.6rem, 5vw, 3rem);
}


/* Formulaire aligné à droite et compact */
.annuaire-search-form {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.3rem;        /* espace réduit entre éléments */
  margin: 1rem;       /* tu peux ajuster si besoin */
}

/* Champ de recherche tout petit */
.annuaire-search-input {
  flex: 0 0 auto;     /* empêche l’étirement */
  width: 150px;       /* passé de 100px à 120px */
  max-width: 190px;   /* idem */
  padding: 0.25rem 0.4rem;
  font-size: 0.85rem;
  border: 1px solid #2f5d3c;
  border-radius: 3px;
}

/* Bouton Rechercher plus petit ET en vert */
.annuaire-btn-search {
  padding: 0.25rem 0.6rem;
  font-size: 0.85rem;
  background-color: #2f5d3c; /* vert principal */
  color: #fff;               /* texte blanc */
  border: none;
  border-radius: 3px;
}


/* Bouton Effacer plus petit */
.annuaire-btn-clear {
  padding: 0.25rem 0.4rem;
  font-size: 0.8rem;
}


/* Bouton Réinitialiser (style lien) */
.btn-clear {
  background: transparent;
  color: #f7d633;
  border: none;
  text-decoration: underline;
  cursor: pointer;
  font-size: 0.95rem;
}
.btn-clear:hover {
  color: #d4c300;
}

/* === ALIGNEMENT SYMÉTRIQUE INPUT + BOUTONS === */
.annuaire-search-form .annuaire-search-input,
.annuaire-search-form .annuaire-btn-search,
.annuaire-search-form .annuaire-btn-clear {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  height: 32px !important;       /* hauteur fixe identique */
  line-height: 1 !important;     /* pas de décalage */
  padding: 0 0.5rem !important;  /* padding horizontal commun */
}

/* Ajustements padding (horizontal) */
.annuaire-search-form .annuaire-btn-search {
  padding: 0 0.8rem !important;
}
.annuaire-search-form .annuaire-btn-clear {
  padding: 0 0.6rem !important;
}

/* =============== COUVERTURE =============== */
 .annuaire-coverr {
    width: 100%;
    max-width: 1140px;
    margin: 1.5rem auto 1rem;
    padding: 0 1rem;
    position: relative;
    z-index: 1;
    overflow: visible;
  }

  .annuaire-coverr-img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    border: 4px solid #f7d633;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    filter: brightness(0.97) saturate(1.1);
  }

   .content-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 40px 20px;
    box-sizing: border-box;
  }

  .site-content-box {
    background: rgba(255, 255, 255, 0.9);
    color: #111;
    padding: 30px 50px;
    border-radius: 10px;
    max-width: 960px;
    width: 100%;
    
    box-sizing: border-box;
  }

  .site-content-box h1,
  .site-content-box h2,
  .site-content-box h3,
  .site-content-box h4,
  .site-content-box h5,
  .site-content-box h6 {
    color: #000;
     margin-top: 1.2rem;
  margin-bottom: 0.5rem;
  }

  .site-content-box p {
    color: #111;
    line-height: 1.7;
    margin: 0.7rem 0;
  }
  .site-content-box h3 {
  margin-bottom: 0.5rem;
}
  .site-content-box h2 {
  font-size: clamp(1.2rem, 5vw, 1.2rem);
}

.site-content-box section {
  margin-bottom: 2.5rem; /* espace entre les blocs de formation */
}
.hdr-list {
  margin-top: 2rem;
}

.hdr-list h2 {
  text-align: center;
  font-size: 2rem;
  color: #4CAF50;
  margin-bottom: 2rem;
}

.hdr-list h3 {
  font-size: 1.3rem;
  color: #222;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.hdr-entry {
  padding: 1rem 0;
  border-bottom: 1px solid #ccc;
}

.hdr-entry:last-child {
  border-bottom: none;
}

.hdr-entry p {
  margin: 0.4rem 0;
}

.hdr-entry ul {
  margin-top: 0.5rem;
  padding-left: 1.5rem;
}

.hdr-entry ul li {
  margin-bottom: 0.3rem;
}

/* ==== FORMULAIRE ANNuaire – responsive ==== */

/* ==== Annuaire : input pleine largeur et boutons 50% côte-à-côte sur mobile ==== */
.annuaire-search-form .annuaire-search-input {
  width: 100% !important;    /* input prend toute la largeur */
  box-sizing: border-box;    /* inclut le padding dans la largeur */
}

/* Mobile/tablette (<768px) : on passe en grid pour gérer l’input + les 2 boutons */
@media (max-width: 767px) {
  .annuaire-search-form {
    display: grid;
    grid-template-columns: 1fr 1fr;  /* 2 colonnes égales */
    gap: 0.5rem;                     /* espacement entre les cellules */
    align-items: start;
  }
  /* l’input occupe les 2 colonnes (donc toute la largeur) */
  .annuaire-search-form .annuaire-search-input {
    grid-column: 1 / -1;
  }
  /* chaque bouton prend une colonne (donc 50%) */
  .annuaire-search-form .annuaire-btn-search,
  .annuaire-search-form .annuaire-btn-clear {
    width: 100% !important;
    box-sizing: border-box;
  }
}
.member-item {
  text-align: center;
  background: #fff;
  border-radius: 8px;
  padding: 1rem;
  padding-bottom: 3rem; 
  box-shadow: 0 8px 14px rgba(0.15, 0.15, 0.15, 0.15);
  display: flex;
  flex-direction: column;
  position: relative;
  height: 100%;
  min-height: 380px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}

.member-statut-badge {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background-color: #ffff00;
  color: #4CAF50;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
  text-transform: capitalize;
}