.card-title {
  text-align: center;
  font-weight: 600; /* un peu plus épais */
}
.card {
  background: #ffffff;           /* fond blanc (ou une couleur douce) */
  border-radius: 1rem;           /* coins arrondis */
  box-shadow: 0 4px 15px rgba(0,0,0,0.1); /* ombre douce */
  border: none;                  /* on retire le border Spectre */
  padding: 1rem;                 /* espace intérieur */
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* petit effet hover */
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.card-body {
  padding: 0.5rem 1rem 1rem 1rem;
}
.card-body ul {
  list-style: none;      /* retire puces si souhaité */
  padding-left: 0;
}
.card-body li {
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}
.card-body {
  text-align: center;
}

.desktop-only { display: block; text-align: center; }
.mobile-only { display: none; }

.avatar-round {
  border-radius: 50%;
  display: block;
  margin: 0 auto 0.5rem auto;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.teamcard {
  border-radius: 1rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  padding: 1rem;
  margin-bottom: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%; /* Important pour que toutes les cartes d'une ligne aient la même hauteur */
}

.teamcard:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.teamcard-body p {
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.team-category {
  text-align: center;
  margin-bottom: 1.5rem;
}

/* Nouvelles règles Flexbox pour la grille */
.team-grid-container {
  display: flex; /* Active Flexbox */
  flex-wrap: wrap; /* Permet aux cartes de passer à la ligne */
  justify-content: center; /* **Centre les cartes horizontalement** */
  gap: 20px; /* Ajoute un espace uniforme entre les cartes */
  align-items: stretch;
}

.team-grid-item {
  flex-basis: 250px; /* Définit la largeur de base des cartes */
  max-width: 250px; /* Empêche les cartes de devenir trop larges */
  display: flex;
}

@media (max-width: 960px) {
  .desktop-only { display: none; }
  .mobile-only {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    padding: 0.75rem;
    background: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    margin-bottom: 1rem;
  }
  .mobile-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 70px; /* fixe la largeur colonne gauche */
    margin-right: 0.75rem;
  }
  .avatar-round-small {
    border-radius: 50%;
    width: 50px;
    height: 50px;
    margin-bottom: 0.25rem;
  }
  .mobile-name {
    font-weight: bold;
    font-size: 0.9rem;
    text-align: center;
  }
  .mobile-right {
    flex: 1;
  }
  .mobile-role {
    font-weight: 500;
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
  }
  .mobile-bio {
    font-size: 0.75rem;
    margin: 0;
    color: #555;
  }
  /* Élargir la carte si besoin */
  .team-grid-item {
    flex-basis: 100%;
    max-width: 100%;
  }
}

.bg-gray {
   font-size: 12px;
   margin-top: 20px;
}

/* Variables par défaut (Clair) */
:root {
    --bg-color: #ffffff;
    --text-color: #3b4351;
    --card-bg: #ffffff;
    --border-color: rgba(0,0,0,0.1);
}

/* Variables Mode Sombre */
[data-theme="dark"] {
    --bg-color: #121212;
    --text-color: #f1f1f1;
    --card-bg: #1e1e1e;
    --border-color: #333333;
}

/* Application douce (uniquement quand data-theme est dark) */
[data-theme="dark"] body { background-color: var(--bg-color); color: var(--text-color); }
[data-theme="dark"] #header { background: #1a1a1a; }
[data-theme="dark"] .section, [data-theme="dark"] #body-wrapper { background-color: var(--bg-color); }
[data-theme="dark"] h1, [data-theme="dark"] h2, [data-theme="dark"] h3, [data-theme="dark"] p { color: var(--text-color); }

/* Adaptation de tes cartes sans casser leur design */
[data-theme="dark"] .card,
[data-theme="dark"] .teamcard,
[data-theme="dark"] .mobile-only {
    background-color: var(--card-bg) !important;
    border: 1px solid var(--border-color) !important;
}

/* Adaptation de certains éléments */
[data-theme="dark"] .bg-gray {
    background: #121212 !important;
}
[data-theme="dark"] .modular-features.offset-box .frame-box,
[data-theme="dark"] .modular-features .feature-icon h6 {
    background: #1e1e1e !important;
    color: #fff !important;
}
[data-theme="dark"] .modular-features.offset-box {
    background: transparent !important;
}

/*LANG SWITCHER */
/* Le conteneur (la pilule) */
.lang-switch-toggle {
    display: inline-flex !important;
    align-items: stretch; /* Force les enfants à prendre toute la hauteur */
    background: rgba(255, 255, 255, 0.05);
    border-radius: 30px;
    padding: 2px; /* Espacement interne constant */
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-left: 10px;
    vertical-align: middle;
    overflow: hidden;
}

/* Les boutons individuels */
.lang-switch-toggle a {
    display: flex !important;
    align-items: center;
    gap: 8px;
    padding: 6px 12px !important; /* On redonne du souffle sur les côtés */
    border-radius: 25px; /* Garde l'aspect arrondi à l'intérieur */
    text-decoration: none !important;
    color: rgba(255, 255, 255, 0.6) !important;
    transition: all 0.2s ease;
}

/* L'image du drapeau (plus petite pour l'élégance) */
.lang-icon-img {
    height: 12px !important; /* Hauteur réduite comme demandé */
    width: auto !important;
    border-radius: 1px;
    display: block;
}

/* État Actif : C'est ici qu'on retrouve l'effet bouton */
.lang-switch-toggle a.active {
    background-color: var(--primary-color) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Désaturer le drapeau inactif pour faire ressortir l'actif */
.lang-switch-toggle a:not(.active) .lang-icon-img {
    filter: grayscale(100%);
    opacity: 0.5;
}

.btn-primary.button, .btn.btn-primary {
  background: #1153AC;
}
