/* Eyefind Annuaire, piste « Plan » (façon Maps) : annuaire.php (liste +
   carte), fiche.php (fiche d'entreprise), annuaire-signaler.php.
   Couleurs du thème Eyefind (style.css : clair / sombre) ; couleur de la
   catégorie dans --an-color. La carte est le composant partagé lsmap
   (assets/css/lsmap.css), seulement agrandi ici. */

.an-app * ,
.an-app *::before,
.an-app *::after {
  box-sizing: border-box;
}
.an-muted { color: var(--text-muted); }
.an-ico { width: 20px; height: 20px; }
.an-star { color: #f9ab00; }
.an-open { color: var(--success); }
.an-closed { color: var(--danger); }

.an-preview {
  margin: 0;
  padding: 8px 20px;
  background: var(--warning-bg);
  color: var(--warning);
  font-size: 13px;
  font-weight: 500;
}

/* ---- Boutons, badges ---- */
.an-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  color: var(--text) !important;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none !important;
  white-space: nowrap;
  cursor: pointer;
}
.an-btn:hover { background: var(--btn-bg); }
.an-btn-primary {
  border-color: var(--link);
  background: var(--link);
  color: var(--bg) !important;
  font-weight: 600;
}
.an-btn-primary:hover { background: var(--link); filter: brightness(1.08); }
.an-badge {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 7px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.an-badge-sponsor { background: var(--link-tint); color: var(--link); }
.an-badge-pick { background: var(--warning-bg); color: var(--warning); }
.an-cat { color: var(--an-color, var(--link)) !important; font-weight: 600; }
.an-report { font-size: 13px; color: var(--text-muted) !important; }
.an-report:hover { color: var(--danger) !important; }

/* ======================= Annuaire : liste + carte ======================= */
.pl-app {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 64px);
  height: calc(100dvh - 64px);
  min-height: 560px;
  color: var(--text);
}
.pl-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 20px;
  border-bottom: 1px solid var(--border);
}
.pl-search {
  position: relative;
  display: flex;
  align-items: center;
  flex: 0 1 600px;
  min-width: 0;
  height: 48px;
  padding: 0 18px 0 46px;
  border-radius: 999px;
  background: var(--btn-bg);
}
.pl-search:focus-within { box-shadow: 0 0 0 2px var(--link); }
.pl-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 16px;
  outline: none;
}
.pl-search-ico {
  position: absolute;
  left: 16px;
  width: 20px;
  height: 20px;
  color: var(--text-muted);
}
.pl-search-where { font-size: 13px; color: var(--text-muted); white-space: nowrap; }
.pl-bar-links { display: flex; gap: 8px; margin-left: auto; }

.pl-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  overflow-x: auto;
  border-bottom: 1px solid var(--border);
  scrollbar-width: none;
}
.pl-chips::-webkit-scrollbar { display: none; }
.pl-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  color: var(--text) !important;
  font-size: 14px;
  text-decoration: none !important;
  white-space: nowrap;
}
.pl-chip:hover { background: var(--btn-bg); }
.pl-chip span { font-size: 12px; color: var(--text-muted); }
.pl-chip-ico { width: 16px; height: 16px; color: var(--an-color, var(--text-muted)); }
.pl-chip.is-active {
  border-color: color-mix(in srgb, var(--an-color, var(--link)) 45%, transparent);
  background: color-mix(in srgb, var(--an-color, var(--link)) 13%, var(--bg));
  color: var(--an-color, var(--link)) !important;
  font-weight: 600;
}
.pl-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); }
.pl-chips-sep { flex: 0 0 1px; height: 24px; background: var(--border); }

.pl-split {
  flex: 1;
  display: grid;
  grid-template-columns: 440px minmax(0, 1fr);
  min-height: 0;
}
.pl-list {
  overflow-y: auto;
  padding: 0 12px 20px;
  border-right: 1px solid var(--border);
  overscroll-behavior: contain;
}
.pl-list-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 8px 10px;
  background: var(--bg);
}
.pl-list-head { flex-wrap: wrap; }
.pl-list-head h1 { margin: 0; font-size: 18px; font-weight: 600; min-width: 0; }
.pl-sort label { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; white-space: nowrap; }
.pl-sort select {
  border: 0;
  background: transparent;
  color: var(--link);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.pl-card {
  display: flex;
  gap: 14px;
  padding: 14px 10px;
  border-radius: 14px;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s ease;
}
.pl-card:hover { background: var(--btn-bg); }
.pl-card.is-sponsored {
  margin-bottom: 6px;
  border: 1px solid color-mix(in srgb, var(--link) 30%, var(--border));
  background: var(--link-tint);
}
.pl-logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  overflow: hidden;
  border-radius: 12px;
  background: color-mix(in srgb, var(--an-color) 15%, var(--bg));
  color: var(--an-color) !important;
  font-size: 26px;
  font-weight: 700;
  text-decoration: none !important;
}
.pl-logo img { width: 100%; height: 100%; object-fit: cover; }
.pl-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pl-top { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0; }
.pl-name { font-size: 16px; font-weight: 600; color: var(--text) !important; }
.pl-name:hover { color: var(--link) !important; }
.pl-meta { margin: 0; font-size: 13px; color: var(--text); }
.pl-rating { color: var(--warning); }
.pl-kind { color: var(--text-muted); }
.pl-text { margin: 2px 0 0; font-size: 13px; color: var(--text-muted); }
.pl-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 6px 0 0;
}
.pl-links a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--link) !important;
  font-size: 13px;
  text-decoration: none !important;
}
.pl-links a:hover { background: var(--link-tint); }
.pl-link-ico { width: 14px; height: 14px; }
.pl-tag { font-size: 11.5px; color: var(--text-muted); }

.pl-empty { padding: 30px 12px; text-align: center; font-size: 14px; }
.pl-foot {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin: 18px 4px 0;
  padding: 16px;
  border: 1px dashed var(--border);
  border-radius: 14px;
  font-size: 14px;
}
.pl-foot span { color: var(--text-muted); font-size: 13px; }
.pl-foot .an-btn { margin-top: 6px; }

/* La carte occupe toute la hauteur disponible. */
.pl-map { position: relative; min-width: 0; }
.pl-map .lsmap {
  height: 100%;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.pl-map .lsmap-viewport { height: 100%; }
.pl-map-note {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  margin: 0;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--bg);
  box-shadow: 0 2px 10px var(--shadow-soft);
  font-size: 13px;
  white-space: nowrap;
}

/* ============================ Fiche d'entreprise ============================ */
.fc-layout {
  display: grid;
  grid-template-columns: 460px minmax(0, 1fr);
  height: calc(100vh - 64px);
  height: calc(100dvh - 64px);
  min-height: 560px;
  color: var(--text);
}
.fc-panel {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  border-right: 1px solid var(--border);
  overscroll-behavior: contain;
}
.fc-cover {
  position: relative;
  flex: 0 0 auto;
  height: 190px;
  background: color-mix(in srgb, var(--an-color) 22%, var(--bg));
}
.fc-cover.is-empty {
  height: 96px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--an-color) 26%, var(--bg)), color-mix(in srgb, var(--an-color) 8%, var(--bg)));
}
.fc-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fc-back {
  position: absolute;
  left: 14px;
  top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--text) !important;
  box-shadow: 0 2px 8px var(--shadow-soft);
}
.fc-back svg { width: 20px; height: 20px; }
.fc-head {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  margin-top: -34px;
  padding: 0 22px;
  position: relative;
}
.fc-logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  overflow: hidden;
  border: 3px solid var(--bg);
  border-radius: 18px;
  background: color-mix(in srgb, var(--an-color) 16%, var(--bg));
  color: var(--an-color);
  font-size: 28px;
  font-weight: 700;
}
.fc-logo img { width: 100%; height: 100%; object-fit: cover; }
.fc-title { min-width: 0; padding-bottom: 2px; }
.fc-title h1 { margin: 0; font-size: 23px; font-weight: 600; line-height: 1.2; }
.fc-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 4px 0 0; font-size: 14px; color: var(--text-muted); }
.fc-rating { color: var(--warning) !important; font-weight: 700; }
.fc-text { margin: 14px 22px 0; font-size: 14px; line-height: 1.5; }
.fc-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 22px 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--btn-bg);
  font-size: 13px;
  color: var(--text-muted);
}
.fc-notice svg { flex: 0 0 auto; width: 16px; height: 16px; }

.fc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--border);
}
.fc-actions .fc-action,
.fc-actions .fav-btn.fc-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px 0 6px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  color: var(--link) !important;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none !important;
  cursor: pointer;
}
.fc-action > span:first-child,
.fc-actions .fav-btn.fc-action svg {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--link-tint);
}
.fc-action > span:first-child svg { width: 16px; height: 16px; }
.fc-actions .fav-btn.fc-action svg { padding: 6px; fill: none; stroke: currentColor; stroke-width: 2; }
.fc-actions .fav-btn.fc-action.is-active svg { fill: currentColor; }
.fc-action.is-primary { border-color: var(--link); background: var(--link); color: var(--bg) !important; }
.fc-action.is-primary > span:first-child { background: rgba(255, 255, 255, 0.2); }
.fc-action:hover { background: var(--link-tint); }
.fc-action.is-primary:hover { background: var(--link); filter: brightness(1.08); }

.fc-infos { margin: 0; padding: 6px 22px; font-size: 14px; }
.fc-infos > div {
  display: flex;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
}
.fc-infos > div:last-child { border-bottom: 0; }
.fc-infos dt { flex: 0 0 20px; color: var(--link); }
.fc-infos dt svg { width: 20px; height: 20px; }
.fc-infos dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.fc-week summary { cursor: pointer; }
.fc-week table { margin-top: 8px; border-collapse: collapse; font-size: 13px; }
.fc-week td { padding: 2px 16px 2px 0; color: var(--text-muted); }
.fc-week tr.is-today td { color: var(--text); font-weight: 700; }

.fc-reviews { padding: 14px 22px; border-top: 1px solid var(--border); font-size: 14px; }
.fc-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.fc-section-head h2 { margin: 0; font-size: 16px; font-weight: 600; }
.fc-section-head a { font-size: 13px; }
.fc-review { margin: 10px 0 0; line-height: 1.45; }
/* Bloc « Recrute » (Eyefind Emplois). */
.fc-job { display: flex; flex-direction: column; gap: 2px; margin-top: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; color: var(--text); text-decoration: none; }
.fc-job:hover { border-color: var(--an-color, var(--link)); }
.fc-job strong { font-size: 15px; }
.fc-jobs p a { color: var(--link); }

.fc-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding: 14px 22px 18px;
  border-top: 1px solid var(--border);
  font-size: 13px;
}
.fc-owner { display: flex; align-items: center; gap: 10px; }
.fc-owner-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--link-tint);
  color: var(--link);
  font-weight: 700;
}

.fc-map { position: relative; min-width: 0; }
.fc-map .lsmap { height: 100%; border: 0; border-radius: 0; box-shadow: none; }
.fc-map .lsmap-viewport { height: 100%; }
.fc-nearby {
  position: absolute;
  right: 20px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 300px;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--bg);
  box-shadow: 0 4px 18px var(--shadow-soft);
  font-size: 13px;
}
.fc-nearby a { color: var(--text) !important; }
.fc-nearby a:hover { color: var(--link) !important; }
.fc-nomap {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  background: var(--btn-bg);
  color: var(--text-muted);
  font-size: 14px;
  text-align: center;
}
.fc-nomap svg { width: 40px; height: 40px; }
.fc-nomap p { margin: 0; }

/* ---- Téléphone / petit écran : carte au-dessus, la page défile ---- */
@media (max-width: 900px) {
  .pl-app, .fc-layout { height: auto; min-height: 0; }
  .pl-bar { flex-wrap: wrap; padding: 10px 14px; }
  .pl-search { flex: 1 1 100%; order: 1; }
  .pl-search-where { display: none; }
  .pl-bar-links { order: 2; margin-left: 0; }
  .pl-chips { padding: 8px 14px; }
  .pl-split { display: flex; flex-direction: column; }
  .pl-map { order: -1; height: 300px; flex: 0 0 auto; }
  .pl-list { overflow: visible; border-right: 0; padding: 0 6px 20px; }
  .pl-logo { width: 60px; height: 60px; font-size: 22px; }
  .fc-layout { display: flex; flex-direction: column; }
  .fc-panel { overflow: visible; border-right: 0; }
  .fc-map { height: 300px; }
  .fc-nearby { position: static; max-width: none; margin: 0; border-radius: 0; box-shadow: none; border-top: 1px solid var(--border); }
  .fc-map:has(.fc-nearby) { height: auto; }
  .fc-map:has(.fc-nearby) .lsmap { height: 300px; }
}

/* ============== Formulaire de signalement (annuaire-signaler.php) ============== */
.an-page {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 8px 20px 64px;
  box-sizing: border-box;
  color: var(--text);
}
.an-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0 14px;
  font-size: 13px;
  color: var(--text-muted);
}
.an-crumbs a { color: var(--text-muted); }
.an-form {
  max-width: 620px;
  margin: 12px auto 0;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--bg);
}
.an-form h1 { margin: 0 0 6px; font-size: 22px; }
.an-form fieldset { margin: 18px 0 0; padding: 0; border: 0; }
.an-form legend { margin-bottom: 8px; font-weight: 600; font-size: 14px; }
.an-radio {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 14px;
  cursor: pointer;
}
.an-radio:has(input:checked) { border-color: var(--link); background: var(--link-tint); }
.an-radio input { accent-color: var(--link); }
.an-form textarea {
  width: 100%;
  min-height: 110px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  resize: vertical;
}
.an-form-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.an-notice { margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; font-size: 14px; }
.an-notice-ok { background: var(--success-bg); color: var(--success); }
.an-notice-err { background: var(--danger-bg); color: var(--danger); }
