/* ============================================================
   🎯 FILTRE ANNUAIRE – BANDEAU (IDENTIQUE PUBLICATIONS)
   ============================================================ */

.theme-selector.annuaire-selector {
	background: #f7f8fd;
	border-radius: 16px;
	padding: 32px;
	margin-bottom: 40px;
}

.theme-selector .inner.selector-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
}

/* ----------------------------
   Zone gauche : titre + filtres
   ---------------------------- */

.selector-left {
	flex: 1 1 auto;
}

.selector-left h2 {
	margin: 0 0 20px;
	font-size: 36px;
	font-weight: 700;
}

.selector-left h2 span {
	color: #800080;
}

.selector-left h2 .highlight {
	color: #000;
}



.filters input[type="text"],
.filters select {
	padding: 6px 12px;
	border: 1px solid #ccc;
	border-radius: 6px;
	font-size: 14px;
	background: #fff;
}

/* ----------------------------
   Zone droite : image décorative
   ---------------------------- */

.selector-image {
	flex: 0 0 320px;
	display: flex;
	justify-content: flex-end;
	align-items: center;
}

.selector-image img {
	max-width: 300px;
	width: 100%;
	height: auto;
	opacity: 0.9;
}

/* ============================================================
   📇 ANNUAIRE – CARTES
   ============================================================ */

.annuaire-table {
	display: none !important; /* tableau définitivement désactivé */
}

.annuaire-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 24px;
}

/* ----------------------------
   Carte individuelle
   ---------------------------- */

.annuaire-card {
	background: #fff;
	border-radius: 16px;
	padding: 20px;
	text-align: center;
	box-shadow: 0 6px 16px rgba(0,0,0,0.12);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.annuaire-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 10px 24px rgba(0,0,0,0.15);
}

/* ----------------------------
   Photo
   ---------------------------- */

.annuaire-card img {
	width: 110px;
	height: 110px;
	border-radius: 50%;
	object-fit: contain;      /* évite le rognage */
	background: #f4f4f4;
	padding: 6px;
	margin-bottom: 12px;
}

/* ----------------------------
   Textes
   ---------------------------- */

.annuaire-card h3 {
	margin: 0 0 6px;
	font-size: 18px;
	font-weight: 600;
}

.annuaire-card .fonction {
	margin: 0 0 6px;
	font-style: italic;
	font-size: 14px;
	color: #555;
}

.annuaire-card .statut {
	display: none !important;  /* cache le statut dans la fiche */
	margin-bottom: 10px;
	font-weight: 700;
	font-size: 13px;
	color: #800080;
}

/* ============================================================
   🔘 ACTIONS (mail / tel / thèmes / site)
   ============================================================ */

.annuaire-card .actions {
	display: flex;
	justify-content: center;
	gap: 12px;
}

/* Base commune : liens + boutons */
.annuaire-card .actions a,
.annuaire-card .actions button {
	all: unset;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: #f4f4f4;
	font-size: 18px;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.15s ease;
}

/* Hover commun */
.annuaire-card .actions a:hover,
.annuaire-card .actions button:hover {
	background: #e6e6e6;
	transform: scale(1.1);
}

/* Focus accessibilité */
.annuaire-card .actions a:focus,
.annuaire-card .actions button:focus {
	outline: 2px solid #800080;
	outline-offset: 2px;
}



/* ----------------------------
   Infos affichées dynamiquement
   ---------------------------- */

.tel-display,
.mail-display,
.themes-display {
	margin-top: 8px;
	font-size: 14px;
	font-weight: 600;
	color: #333;
}

/* ✉️ Icône mail légèrement plus foncée */
.annuaire-card .actions a:first-child {

	background: #e9e9e9;
}
/* Profils techniques : fonction issue des thèmes */
.annuaire-card.profil-tech h3 {
	margin-bottom: 0;
}

.annuaire-card.profil-tech .fonction {
	margin-top: 2px;
	line-height: 1.3;
}
/* ✉️ Email affiché : même style que téléphone */
.mail-display {
	margin-top: 8px;
	font-size: 14px;
	font-weight: 600;
	color: #800080; /* violet LPMMC */
}
/* ============================================================
   🔎 FILTRES (nom + statut) – version unique
   ============================================================ */

.theme-selector .filters{
	display: flex;
	flex-direction: column;   /* 2 lignes */
	gap: 12px;
	align-items: stretch;     /* ✅ champs alignés / même largeur */
	max-width: 280px;         /* largeur “propre” desktop */
}

.theme-selector .filters input[type="text"],
.theme-selector .filters select{
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;   /* ✅ évite le débordement iPhone */
}

/* ============================================================
   🧭 ALIGNEMENT bloc gauche (titre + filtres)
   ============================================================ */

.theme-selector .inner.selector-top{
	align-items: flex-start;  /* ✅ évite le décalage vertical */
}

.theme-selector .selector-left{
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}




/* ============================================================
   📱 RESPONSIVE
   ============================================================ */

@media (max-width: 980px) {

	.theme-selector.annuaire-selector {
		padding: 24px;
	}

	.selector-left h2 {
		font-size: 28px;
	}

	.annuaire-cards {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 767px) {

	.selector-image{
		display: none;
	}

	/* ✅ le bandeau/colonne prend toute la largeur */
	.theme-selector.annuaire-selector .inner.selector-top{
		flex-direction: column;
		align-items: stretch;
	}

	.theme-selector.annuaire-selector .selector-left{
		width: 100%;
		align-items: stretch;
	}

	.theme-selector.annuaire-selector .filters{
		max-width: 100%;     /* ✅ plus de “280px” sur mobile */
		width: 100%;
	}
	.lpmmc-annuaire {
		padding-bottom: 40px; /* ajuste si besoin */
	  }
}

/* ============================================================
   📱 TABLETTE : 2 vignettes par ligne
   ============================================================ */
@media (min-width: 768px) and (max-width: 980px) {
  .annuaire-cards {
	grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

