/* Formulaire */
.cfeib-expert-search {
  padding: 25px;
  background: #f1f7fb;
  border: 1px solid #d0dfea;
  border-radius: 16px;
  margin-bottom: 30px;
}

.cfeib-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  align-items: end;
}

/* Champs avec icône uniquement */
.cfeib-form-group {
  position: relative;
}

.cfeib-form-group input,
.cfeib-form-group select,
.select2-container--default .select2-selection--multiple {
  padding: 10px 10px 10px 38px;
  border-radius: 8px;
  border: 1px solid #ccd6dd;
  font-size: 14px;
  background-color: #fff;
}

/* Icônes en fond de champ */
#search_name {
  background: url("data:image/svg+xml,%3Csvg ... loupe ... %3E") no-repeat 10px center;
  background-size: 18px 18px;
}
#search_dominante {
  background: url("data:image/svg+xml,%3Csvg ... cible ... %3E") no-repeat 10px center;
  background-size: 18px 18px;
}
#search_departement {
  background: url("data:image/svg+xml,%3Csvg ... épingle ... %3E") no-repeat 10px center;
  background-size: 18px 18px;
}

/* Labels simples */
.cfeib-form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  color: #003366;
  font-size: 14px;
}

/* Boutons */
.cfeib-form-group.buttons {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  grid-column: span 3;
}

.cfeib-button {
  background-color: #003366;
  color: white;
  padding: 10px 20px;
  font-size: 14px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.cfeib-button:hover {
  background-color: #00509e;
}

.cfeib-button.secondary {
  background: #eef2f5;
  color: #003366;
  font-weight: 500;
}

.cfeib-button.secondary:hover {
  background: #dbe4ec;
}

.cfeib-button.cfeib-search-btn {
  background-color: #003366 !important;
  color: white !important;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  box-shadow: none;
  transition: background-color 0.2s ease-in-out;
}

.cfeib-button.cfeib-search-btn:hover {
  background-color: #00509e !important;
}
/* Fiche single expert */

.cfeib-expert-detail-card {
  max-width: 800px;
  margin: 2rem auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0,0,0,0.08);
  padding: 2rem;
  font-family: "Segoe UI", sans-serif;
}

.expert-header {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.expert-photo img {
  width: 130px;
  height: 130px;
  object-fit: cover;
  border-radius: 100px;
  border: 3px solid #007BBA;
}

.expert-name-block h2 {
  margin: 0;
  font-size: 1.8rem;
}

.expert-profession {
  font-style: italic;
  color: #555;
  margin-top: 0.3rem;
}

.expert-tags {
  margin-top: 0.4rem;
  color: #007BBA;
}

.expert-infos p {
  margin: 1rem 0 0.5rem;
}

.expert-actions {
  margin-top: 2rem;
  text-align: center;
}

.cfeib-button {
  background: #007BBA;
  color: white;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  border-radius: 30px;
  font-weight: bold;
  display: inline-block;
}

/* Grille d'experts */
.expert-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Carte individuelle */
.expert-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 1.5rem;
    width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
}

.expert-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* Image expert */
.expert-card img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 1rem;
}

/* Nom */
.expert-card h3 {
    font-size: 1.2rem;
    margin: 0.5rem 0;
    color: #333;
}

/* Dominante */
.expert-card .dominante {
    background-color: #e8f1fb;
    color: #005999;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    font-size: 0.85rem;
    margin: 0.2rem;
    display: inline-block;
}

/* Départements */
.expert-card .departements {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #555;
}

/* Bouton détail */
.expert-card .expert-button {
    margin-top: 1rem;
    display: inline-block;
    background-color: #0073aa;
    color: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
}

.expert-card .expert-button:hover {
    background-color: #005e8a;
}