/* Trouve ton gym — styles de l'application (coachs + admin).
   Le comparateur a son propre style embarqué. */
:root {
  --vert: #166534;
  --vert-fonce: #14532d;
  --vert-clair: #dcfce7;
  --fond: #f8fafc;
  --carte: #ffffff;
  --texte: #1e293b;
  --texte-doux: #64748b;
  --bordure: #e2e8f0;
  --rouge: #b91c1c;
  --rouge-clair: #fee2e2;
  --orange: #b45309;
  --orange-clair: #fef3c7;
  --bleu: #1d4ed8;
  --bleu-clair: #dbeafe;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--fond);
  color: var(--texte);
  line-height: 1.5;
}
a { color: var(--vert); }
header.nav {
  background: var(--vert-fonce);
  color: #fff;
  padding: 12px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: center;
}
header.nav .marque { font-weight: 700; font-size: 1.15rem; color: #fff; text-decoration: none; }
header.nav a { color: #bbf7d0; text-decoration: none; }
header.nav a:hover { text-decoration: underline; }
main { max-width: 900px; margin: 0 auto; padding: 20px 16px 60px; }
h1 { font-size: 1.6rem; margin: 8px 0 4px; }
h2 { font-size: 1.25rem; margin: 28px 0 8px; }
.sous-titre { color: var(--texte-doux); margin-top: 0; }
.carte {
  background: var(--carte);
  border: 1px solid var(--bordure);
  border-radius: 12px;
  padding: 16px;
  margin: 12px 0;
}
label { display: block; font-weight: 600; margin: 14px 0 4px; }
input, select, textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--bordure);
  border-radius: 8px;
  font: inherit;
  background: #fff;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--vert); outline-offset: 1px; }
small { color: var(--texte-doux); }
button, .bouton {
  display: inline-block;
  background: var(--vert);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 11px 18px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  margin-top: 12px;
}
button:hover, .bouton:hover { background: var(--vert-fonce); }
button.secondaire, .bouton.secondaire { background: #fff; color: var(--vert); border: 1px solid var(--vert); }
button.danger { background: var(--rouge); }
button.petit { padding: 6px 12px; font-size: 0.9rem; margin-top: 6px; }
button:disabled { opacity: 0.55; cursor: default; }
.erreur {
  background: var(--rouge-clair);
  color: var(--rouge);
  border-radius: 8px;
  padding: 12px;
  margin: 12px 0;
  display: none;
}
.succes {
  background: var(--vert-clair);
  color: var(--vert-fonce);
  border-radius: 8px;
  padding: 12px;
  margin: 12px 0;
  display: none;
}
.info {
  background: var(--bleu-clair);
  color: #1e3a8a;
  border-radius: 8px;
  padding: 12px;
  margin: 12px 0;
}
.pastille {
  display: inline-block;
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 0.85rem;
  font-weight: 600;
}
.pastille.en_attente { background: var(--orange-clair); color: var(--orange); }
.pastille.vedette { background: #fde68a; color: #92400e; }
.pastille.approuve, .pastille.verifie_manuel { background: var(--vert-clair); color: var(--vert-fonce); }
.pastille.refuse, .pastille.rejete { background: var(--rouge-clair); color: var(--rouge); }
.cases { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 6px; }
.cases label { font-weight: 400; margin: 0; display: flex; gap: 6px; align-items: center; }
.cases input { width: auto; }
.grille { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 600px) { .grille { grid-template-columns: 1fr; } }
.doc-bloc { border: 1px dashed var(--bordure); border-radius: 10px; padding: 12px; margin: 12px 0; }
.doc-bloc h3 { margin: 0 0 4px; font-size: 1rem; }
.ligne-tarif { display: flex; gap: 8px; flex-wrap: wrap; align-items: end; margin: 8px 0; }
.ligne-tarif input { width: auto; flex: 1 1 120px; }
.ligne-tarif label { margin: 0; font-weight: 400; font-size: 0.85rem; color: var(--texte-doux); }
.ligne-tarif .champ { display: flex; flex-direction: column; flex: 1 1 120px; }
details { margin: 8px 0; }
summary { cursor: pointer; font-weight: 600; }
.muted { color: var(--texte-doux); font-size: 0.9rem; }
/* Pied de page : liens légaux */
footer.pied {
  max-width: 900px;
  margin: 0 auto;
  padding: 16px;
  border-top: 1px solid var(--bordure);
  color: var(--texte-doux);
  font-size: 0.9rem;
}
footer.pied a { color: var(--texte-doux); }
/* Case de consentement à l'inscription */
.consentement { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; margin: 14px 0 4px; }
.consentement input { width: auto; margin-top: 4px; }

/* Cartes de coachs : photo avec badge de note */
.carte-coach { display: flex; gap: 16px; align-items: flex-start; }
@media (max-width: 600px) { .carte-coach { flex-direction: column; } }
.photo-lien { flex: 0 0 180px; }
.photo-wrap { position: relative; width: 180px; height: 180px; }
.photo-wrap.grand { width: 260px; height: 260px; }
.photo-profil { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; display: block; }
.photo-initiales { width: 100%; height: 100%; border-radius: 12px; background: var(--vert-clair); color: var(--vert-fonce); display: flex; align-items: center; justify-content: center; font-size: 2.5rem; font-weight: 700; }
.badge-note { position: absolute; left: 8px; bottom: 8px; background: rgba(0, 0, 0, 0.75); color: #fff; border-radius: 999px; padding: 3px 10px; font-size: 0.85rem; font-weight: 600; }
/* Page de profil d'un coach */
.profil-entete { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
/* Galerie de photos (espace coach + page de profil) */
.galerie { display: flex; flex-wrap: wrap; gap: 12px; }
.photo-thumb { width: 160px; }
.photo-thumb img { width: 100%; height: 120px; object-fit: cover; border-radius: 8px; display: block; margin-bottom: 6px; }
/* Formulaire de notation : boutons radio 5 → 1 dans le DOM,
   affichés 1 → 5 grâce à row-reverse ; les étoiles à gauche de
   la sélection s'allument via le sélecteur ~. */
.etoiles { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.etoiles input { display: none; }
.etoiles label { font-size: 1.8rem; color: var(--bordure); cursor: pointer; line-height: 1; }
.etoiles input:checked + label, .etoiles input:checked ~ label,
.etoiles label:hover, .etoiles label:hover ~ label { color: #f59e0b; }

/* Guides éditoriaux (/guides) */
.guide-contenu p { margin: 10px 0; }
.guide-contenu ul, .guide-contenu ol { padding-left: 22px; }
.guide-contenu li { margin: 6px 0; }
.guide-contenu h2:first-child { margin-top: 4px; }
.liste-guides .carte h2 { margin-top: 0; }
.cta-guide h2 { margin-top: 0; }
.cta-guide .bouton { margin-right: 8px; }
