/*
 * badges.css — Frédéric Pallu / fredericpallu.com
 * Badges « registres d'action » (institutionnel, associatif, plaidoyer, naturaliste)
 * Chargé en complément de style.css ou des <style> inline des pages.
 * © 2026 Frédéric Pallu — CC BY-NC 4.0
 */

/* ── Badges registres d'action ── */
.registres {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0 1.5rem 0;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.75rem;
  border-radius: 2rem;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  text-decoration: none;
}
.badge-imt         { background:#d6eaf8; color:#1a5276; }
.badge-asso        { background:#d5f5e3; color:#1e8449; }
.badge-plaidoyer   { background:#fbe1e0; color:#a4262c; }
.badge-naturaliste { background:#d1f2eb; color:#0e6655; }

.registres-note {
  font-size: 0.88rem;
  color: #555;
  font-style: italic;
  border-left: 3px solid #ccc;
  padding-left: 1rem;
  margin-bottom: 1.5rem;
}
.registres-accueil {
  background: #f8f9fa;
  border-radius: 0.5rem;
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
  font-size: 0.93rem;
}
.registres-accueil p { margin: 0.3rem 0; }

/* Badge cliquable (lien à l'intérieur d'un .badge) */
.badge a { color: inherit; text-decoration: none; border-bottom: none; }

/* Vidéo responsive 16:9 */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  margin: 1.5rem 0;
}
.video-wrapper iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border-radius: 0.5rem;
}

/* ── Page d'accueil (index) — bloc d'orientation ── */
.ouverture { margin-bottom: 1.5rem; }
.manifeste {
  font-size: 1.05rem;
  color: #2c3e50;
  font-style: italic;
  margin-bottom: 0.5rem;
}
.verbes {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 1rem;
}

/* « Lire selon votre profil » — .profil-card scopé sous .profils
   pour ne pas écraser le .profil-card global de style.css (en/index.html). */
.profils { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem 1rem; margin-bottom: 1.75rem; }
.profils h2 { grid-column: 1 / -1; margin-bottom: 0.3rem; }
.profils .profil-card {
  background: #f8f9fa;
  border: none;
  border-radius: 0.5rem;
  padding: 0.85rem 1rem;
  margin-bottom: 0;
}
.profils .profil-card h3 {
  margin: 0 0 0.4rem 0;
  font-size: 1rem;
}
.profils .profil-card p { margin: 0 0 0.5rem 0; font-size: 0.9rem; }
.profils .profil-card ul { margin: 0; padding-left: 1rem; }
.profils .profil-card li { font-size: 0.9rem; }

/* « Les grands ensembles » */
.ensembles { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.5rem; margin-bottom: 1.75rem; }
.ensembles h2 { grid-column: 1 / -1; margin-bottom: 0.3rem; }
.ensemble-bloc {
  border-left: 3px solid #2ecc71;
  padding-left: 1rem;
  margin-bottom: 0;
}
.ensemble-bloc h3 { margin: 0 0 0.3rem 0; }
.ensemble-bloc p  {
  font-size: 0.9rem;
  color: #444;
  margin: 0 0 0.4rem 0;
}
.ensemble-bloc ul { margin: 0; padding-left: 1rem; }
.ensemble-bloc li { font-size: 0.9rem; }

/* « Méthode commune » — chaîne de travail */
.methode { margin: 1.5rem 0; }
.chaine-methode {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin: 1rem 0;
  font-size: 0.9rem;
}
.chaine-methode span:not(:nth-child(even)) {
  background: #eafaf1;
  color: #1e8449;
  padding: 0.2rem 0.6rem;
  border-radius: 1rem;
  font-weight: 500;
}
.chaine-methode span:nth-child(even) {
  color: #999;
  font-size: 0.8rem;
}

/* Pied de contenu (lien vers le sommaire complet) */
.index-footer-content {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
  font-size: 0.88rem;
  color: #888;
}

/* Repli 1 colonne sur mobile (profils / grands ensembles) */
@media (max-width: 640px) {
  .profils, .ensembles { grid-template-columns: 1fr; }
}
