/* ============================================================================

  GRCP — Membres (single + listing)
  Fichier : style-membre.css
  But     : Styles propres, commentés, sans grid/gap.
  NB      : S’appuie sur les variables du thème :
            --grcp-orange, --grcp-violet, --grcp-vert, --grcp-jaune

============================================================================ */


/* ============================================================================
   0) RÈGLES DE BASE (conteneurs)
   ========================================================================== */

.membre-wrap {
  padding: 25px 0px 75px 0px;
}

.single-membre .membre-wrap,
.grcp-section-membres {
  max-width: 1290px;
  margin-inline: auto;         /* centre horizontal */
  padding-inline: 24px;        /* 24px à gauche/droite (16px en mobile) */
}


/* ============================================================================
   1) TITRE ORANGE (plein écran, avant le fil d’Ariane)
   ========================================================================== */

.membre-hero {
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);

  background: var(--grcp-orange, #d66236);
  color: #ffffff;
  text-align: center;
  padding: 32px 20px 25px 20px ;
  margin: 0 0 24px;
}

.membre-hero__title {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  text-transform: uppercase;   /* tout en majuscules */
  color: #ffffff;              /* texte blanc */
  letter-spacing: 1px;
}



/* ============================================================================
   2) FIL D’ARIANE (breadcrumb)
   ========================================================================== */

.fil-ariane {
  margin: 6px 0 24px;
  color: #666;
  font-size: 15px;
  line-height: 1.5;
}

.fil-ariane a {
  color: var(--grcp-vert, #3ba19b);
  text-decoration: none;
}

.fil-ariane a:hover {
  text-decoration: underline;
}

/* petite icône maison devant “Accueil” */
.fil-ariane .icon-home {
  position: relative;
  padding-left: 18px;
}

.fil-ariane .icon-home::before {
  content: "🏠";
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  font-size: 14px;
  line-height: 1;
}


/* ============================================================================
   3) FICHE MEMBRE — 2 colonnes (flex, sans grid)
   ========================================================================== */

.fiche-membre-container {
  display: flex;
  flex-wrap: nowrap;             /* pas de saut si la largeur le permet */
  align-items: flex-start;
}

/* colonne gauche (photo + coordonnées + mots-clés) */
.fiche-gauche {
  box-sizing: border-box;
  width: 36%;
  margin-right: 36px;            /* gouttière */
  background: #fff;
  border: 1px solid #e1e4e8;
  border-radius: 12px;
  padding: 12px 18px 18px;
}

/* colonne droite (infos + contenu) */
.fiche-droite {
  box-sizing: border-box;
  width: 64%;
  min-width: 0;                  /* évite que le contenu force un wrap */
  background: #fff;
  border-left: 8px solid var(--grcp-violet, #5f2a83);
  padding: 18px 32px 26px;
}

/* photo */
.photo-membre { margin-bottom: 14px; }

.photo-membre img {
  display: block;
  width: 100%;
  height: auto;
  border: 4px solid var(--grcp-jaune, #f2c84b);
  border-radius: 10px;
}

/* bloc compact : poste / département / université */
.bloc-infos p { margin: 6px 0; }

/* champs d’infos */

.champ-membre {
  padding: 0px;
  margin:0px;
}


.champ-membre.poste {
  font: 600 18px/1.4 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #333;
}

.champ-membre.departement {
  font-size: 16px;
  color: #666;
}

.champ-membre.institution,
.champ-membre.institution a {
  font-size: 16px;
  font-weight: 600;
  color: var(--grcp-vert, #3ba19b);
  text-decoration: none;
}

.champ-membre.institution a:hover { text-decoration: underline; }

/* texte principal */
.description-membre p {
  margin: 0 0 16px;
  font-size: 17px;
  line-height: 1.7;
  color: #333;
}


/* ============================================================================
   4) MODULES (coordonnées, mots-clés, publications)
   ========================================================================== */

/* coordonnées (email / site / adresse) */
.boite-coordonnees {
  margin-top: 10px;
  padding: 14px 16px;
  background: #eaf7f6;
  border-left: 5px solid var(--grcp-vert, #3ba19b);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.titre-coordonnees {
  margin: 0 0 10px;
  font: 700 18px/1.3 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--grcp-vert, #3ba19b);
}

.boite-coordonnees p { margin: 6px 0; }

.boite-coordonnees a {
  color: var(--grcp-orange, #d66236);
  font-weight: 600;
  text-decoration: none;
}

.boite-coordonnees a:hover { text-decoration: underline; }

/* tags / mots-clés */
.champ-membre.mots-cles {
  margin-top: 16px;
  padding: 10px 14px;
  background: #f6f0fb;
  border-left: 4px solid var(--grcp-violet, #5f2a83);
  border-radius: 6px;
  font-size: 15px;
  color: #444;
}

/* publications reliées (liste simple) */
.pubs-membre {
  margin: 12px 0 0 18px;
  padding: 0;
}

.pubs-membre li {
  margin: 6px 0;
  line-height: 1.6;
  color: #333;
}

.pubs-membre a {
  color: var(--grcp-vert, #3ba19b);
  text-decoration: none;
}

.pubs-membre a:hover { text-decoration: underline; }


/* ============================================================================
   5) LISTING — Cartes membres (page d’équipe)
   ========================================================================== */

.liste-membres-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin: 40px auto;
}

.grcp-membre-item {
  box-sizing: border-box;
  width: 23%;                      /* 4 cartes par ligne (≈ + spacing) */
  margin-bottom: 30px;
  background: #fff;
  border: 1px solid #e1e4e8;
  border-radius: 12px;
  text-align: center;
  padding: 20px;
  transition: box-shadow .25s;
}

.grcp-membre-item:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,.08);
}

/* photo carte */
.grcp-photo {
  width: 180px;
  height: 180px;
  margin: 0 auto 14px;
}

.grcp-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--grcp-jaune, #f2c84b);
}

/* placeholder “À venir” */
.grcp-photo.aucune-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 4px solid var(--grcp-jaune, #f2c84b);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #777;
  font-size: 15px;
}

/* textes carte */
.grcp-nom {
  margin: 10px 0 6px;
  font: 700 18px/1.3 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--grcp-violet, #5f2a83);
}

.grcp-institution {
  margin-bottom: 4px;
  font-size: 15px;
  font-weight: 600;
  color: var(--grcp-vert, #3ba19b);
}

.grcp-institution a { color: inherit; text-decoration: none; }
.grcp-institution a:hover { text-decoration: underline; }

.grcp-poste {
  font-size: 14px;
  font-style: italic;
  color: #555;
}

/* ============================================================================
   Section Publications (fiche membre)
   ========================================================================== */

.membre-pubs {
  margin-top: 40px;                 /* bien séparé de la bio */
  padding: 24px 28px;
  background: #fafafa;              /* fond clair */
  border-left: 6px solid #5f2a83;   /* liseré violet */
  border-radius: 8px;
}

.membre-pubs__title {
  font-size: 22px;
  font-weight: 700;
  color: #5f2a83;                   /* violet */
  margin: 0 0 16px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.membre-pubs__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.membre-pubs__item {
  margin-bottom: 10px;
  font-size: 16px;
  line-height: 1.6;
  color: #333333;
}

.membre-pubs__year {
  font-weight: 700;
  color: #000000;
}

.membre-pubs__link {
  color: #3ba19b;                   /* vert */
  text-decoration: none;
}

.membre-pubs__link:hover {
  text-decoration: underline;
}

.membre-pubs__empty {
  font-style: italic;
  color: #777777;
}


/* ============================================================================
   6) RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
  /* colonnes qui se superposent */
  .fiche-membre-container { flex-wrap: wrap; }
  .fiche-gauche,
  .fiche-droite {
    width: 100%;
    margin-right: 0;
  }

  /* on retire le liseré violet pour aérer */
  .fiche-droite { border-left: 0; padding-inline: 0; }
  .fiche-gauche { margin-bottom: 20px; }

  /* cartes : 2 par ligne */
  .grcp-membre-item { width: 48%; }

  /* padding global plus léger */
  .single-membre .membre-wrap,
  .grcp-section-membres { padding-inline: 16px; }
}

@media (max-width: 600px) {
  /* cartes : 1 par ligne */
  .grcp-membre-item { width: 100%; }
}
