/*
 * Habillage carte + fiches Ambassadrices. Charte KTC, nouvelle direction
 * artistique : angles droits, pas de cadres noirs. Tout est préfixé ktc-
 * pour ne jamais entrer en conflit avec le thème.
 */

.ktc-amba-bloc-carte, .ktc-amba-bloc-ateliers, .ktc-amba-page-fiche {
  --ktc-rouge: #DC000C;
  --ktc-rouge-profond: #A80E16;
  --ktc-creme: #FDFBE9;
  --ktc-rose: #FCE7F0;
  font-family: 'Raleway', sans-serif;
}

.ktc-visuellement-cache {
  position: absolute;
  left: -9999px;
}

/* ---- recherche ---- */
.ktc-amba-recherche {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0 0 18px;
}
.ktc-amba-recherche input {
  font: inherit;
  font-size: 16px;
  padding: 12px 18px;
  border: 1px solid #d9d4c2;
  border-radius: 0;
  min-width: 260px;
  background: #fff;
}
.ktc-amba-recherche input:focus, .ktc-bouton:focus, .ktc-puce:focus {
  outline: 3px solid var(--ktc-rouge);
  outline-offset: 2px;
}
.ktc-bouton {
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  padding: 12px 24px;
  border: none;
  border-radius: 0;
  background: var(--ktc-rouge);
  color: #fff;
  cursor: pointer;
}
.ktc-bouton:hover { background: var(--ktc-rouge-profond); color: #fff; }
.ktc-bouton.ktc-secondaire {
  background: #fff;
  color: var(--ktc-rouge);
  border: 2px solid var(--ktc-rouge);
}
.ktc-bouton.ktc-secondaire:hover { background: var(--ktc-rose); color: var(--ktc-rouge); }

/* ---- résultats de proximité (remplis par carte.js après une recherche) ----
   Le bloc reste vide et invisible tant qu'aucune recherche n'a eu lieu :
   pas de cadre fantôme au chargement de la page. */
.ktc-amba-proximite:empty { display: none; }
.ktc-amba-proximite {
  background: var(--ktc-creme);
  border: 1px solid #d9d4c2;
  border-radius: 0;
  padding: 18px 22px;
  margin: 0 0 18px;
}
.ktc-proximite-titre { font-size: 20px; font-weight: 800; margin: 0 0 12px; }
.ktc-proximite-liste { list-style: none; margin: 0; padding: 0; }
.ktc-proximite-ligne {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: baseline;
  padding: 9px 0;
  border-top: 1px solid #e8e3d2;
  font-size: 15px;
}
.ktc-proximite-ligne:first-child { border-top: none; }
.ktc-proximite-nom { color: var(--ktc-rouge); font-weight: 700; text-decoration: none; }
.ktc-proximite-nom:hover { text-decoration: underline; }
.ktc-proximite-ou { color: #444; }
.ktc-proximite-km { font-weight: 700; color: var(--ktc-rouge-profond); }
.ktc-proximite-texte { font-size: 15px; line-height: 1.55; margin: 0 0 12px; }
.ktc-proximite-texte a { color: var(--ktc-rouge); font-weight: 700; }
.ktc-proximite-actions { margin: 0 0 12px; }
.ktc-proximite-actions a.ktc-bouton { display: inline-block; text-decoration: none; }

/* ---- carte ---- */
.ktc-amba-carte {
  border-radius: 0;
  border: 1px solid #d9d4c2;
  background: #f4f2e8;
  z-index: 0;
}
.ktc-amba-chargement { text-align: center; padding-top: 40px; font-weight: 600; }
.ktc-amba-note {
  text-align: center;
  font-size: 14px;
  margin: 10px 0 0;
  color: #444;
}
.ktc-pin {
  background: #fff;
  border: 3px solid var(--ktc-rouge);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,.3);
  overflow: hidden;
}
.ktc-pin span {
  transform: rotate(45deg);
  font-weight: 800;
  color: var(--ktc-rouge);
  font-size: 12px;
  font-family: 'Raleway', sans-serif;
}
.ktc-pin img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: rotate(45deg) scale(1.45);
}
.ktc-grappe {
  background: var(--ktc-rouge);
  color: #fff;
  border: 3px solid #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-family: 'Raleway', sans-serif;
  font-size: 15px;
  box-shadow: 0 2px 8px rgba(0,0,0,.35);
}
.ktc-amba-bloc-carte .leaflet-popup-content-wrapper { border-radius: 0; font-family: 'Raleway', sans-serif; }
.ktc-popup { display: flex; gap: 12px; align-items: center; padding: 2px; }
.ktc-popup .ktc-avatar { width: 52px; height: 52px; font-size: 18px; }
.ktc-popup strong { font-size: 15px; }
.ktc-popup .ktc-popup-ville { font-size: 13px; color: #555; }
.ktc-popup a.ktc-popup-lien {
  display: inline-block;
  margin-top: 4px;
  color: var(--ktc-rouge);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}

/* ---- avatars ---- */
.ktc-avatar {
  border-radius: 50%;
  background: var(--ktc-rose);
  color: var(--ktc-rouge-profond);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex: none;
  overflow: hidden;
}
.ktc-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ktc-avatar-grand { width: 110px; height: 110px; font-size: 38px; }

/* ---- ateliers ---- */
.ktc-amba-filtres { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 22px; }
.ktc-puce {
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 0;
  border: 1px solid #d9d4c2;
  background: #fff;
  color: #000;
  cursor: pointer;
}
.ktc-puce[aria-pressed="true"] {
  background: var(--ktc-rouge);
  border-color: var(--ktc-rouge);
  color: #fff;
}
.ktc-amba-grille {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 18px;
}
.ktc-carte-atelier {
  background: #fff;
  border: 1px solid #e8e3d2;
  border-radius: 0;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ktc-atelier-quand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
  color: var(--ktc-rouge-profond);
}
.ktc-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 0;
  background: var(--ktc-rose);
  color: var(--ktc-rouge-profond);
  align-self: flex-start;
}
.ktc-badge.ktc-enligne { background: #fff; border: 1px solid var(--ktc-rose); }
.ktc-carte-atelier h3 { margin: 0; font-size: 18px; line-height: 1.3; }
.ktc-atelier-desc { font-size: 14.5px; margin: 0; }
.ktc-atelier-qui {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #eee;
  font-size: 14px;
}
.ktc-atelier-qui a { color: var(--ktc-rouge); font-weight: 700; text-decoration: none; }
.ktc-atelier-actions a {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: var(--ktc-rouge);
  padding: 8px 16px;
  border-radius: 0;
  text-decoration: none;
}
.ktc-atelier-actions a:hover { background: var(--ktc-rouge-profond); color: #fff; }
.ktc-amba-vide { font-size: 15px; color: #555; }

/* ---- fiche ---- */
.ktc-amba-page-fiche { background: var(--ktc-creme); padding: 30px 0 60px; }
.ktc-amba-contenu { max-width: 1060px; margin: 0 auto; padding: 0 20px; }
.ktc-amba-retour {
  display: inline-block;
  margin: 0 0 18px;
  color: var(--ktc-rouge);
  font-weight: 700;
  text-decoration: none;
  font-size: 15px;
}
.ktc-fiche-entete {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
  background: #fff;
  border: 1px solid #e8e3d2;
  border-radius: 0;
  padding: 26px;
}
.ktc-fiche-entete h1 { font-size: 32px; margin: 0; font-weight: 800; }
.ktc-fiche-role { margin: 2px 0 8px; font-size: 15px; color: #555; }
.ktc-fiche-villes { margin: 0 0 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.ktc-fiche-liens { display: flex; gap: 10px; flex-wrap: wrap; }
.ktc-fiche-liens a {
  display: inline-block;
  text-decoration: none;
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ktc-rouge);
  background: #fff;
  border: 2px solid var(--ktc-rouge);
}
.ktc-fiche-liens a:hover { background: var(--ktc-rose); color: var(--ktc-rouge); }
.ktc-fiche-presentation {
  background: #fff;
  border: 1px solid #e8e3d2;
  border-radius: 0;
  padding: 26px;
  margin-top: 18px;
  font-size: 16px;
  line-height: 1.6;
}
.ktc-fiche-presentation a { color: var(--ktc-rouge); font-weight: 600; }
.ktc-fiche-titre-section { font-size: 28px; font-weight: 800; margin: 36px 0 16px; }

/* ---- annuaire (liens en dur pour Google et l'accessibilité) ---- */
.ktc-amba-annuaire { margin-top: 48px; }
.ktc-amba-annuaire h2 { font-size: 28px; font-weight: 800; margin: 0 0 8px; }
.ktc-amba-annuaire h3 { font-size: 18px; font-weight: 800; margin: 22px 0 6px; }
.ktc-amba-annuaire ul { margin: 0; padding-left: 20px; columns: 2; column-gap: 40px; }
.ktc-amba-annuaire li { font-size: 15px; margin-bottom: 4px; break-inside: avoid; }
.ktc-amba-annuaire a { color: var(--ktc-rouge); font-weight: 700; text-decoration: none; }
.ktc-amba-annuaire a:hover { text-decoration: underline; }
@media (max-width: 700px) { .ktc-amba-annuaire ul { columns: 1; } }
.ktc-amba-annuaire-monde { font-size: 24px; font-weight: 800; margin: 34px 0 4px; }

/* ---- contact par email (adresse révélée au clic, jamais dans le HTML) ---- */
.ktc-fiche-liens [data-ktc-contact-fiche] { display: inline-flex; align-items: center; gap: 8px; }
.ktc-fiche-liens .ktc-bouton-contact {
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  padding: 9px 18px;
  color: var(--ktc-rouge);
  background: #fff;
  border: 2px solid var(--ktc-rouge);
  border-radius: 0;
  cursor: pointer;
}
.ktc-fiche-liens .ktc-bouton-contact:hover { background: var(--ktc-rose); }
.ktc-fiche-liens .ktc-adresse-revelee {
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  padding: 9px 18px;
  color: var(--ktc-rouge);
  background: #fff;
  border: 2px solid var(--ktc-rouge);
  border-radius: 0;
  cursor: pointer;
  word-break: break-all;
}
.ktc-fiche-liens .ktc-adresse-revelee:hover { background: var(--ktc-rose); }
.ktc-indice-copie {
  margin: 8px 0 0;
  font-size: 13px;
  color: #555;
}
.ktc-bouton-contact:focus, .ktc-adresse-revelee:focus {
  outline: 3px solid var(--ktc-rouge);
  outline-offset: 2px;
}
