/* Modèle « annuaire » (annuaire-neuf.html, annuaire.js) : carte des adresses dans la bannière, outils de tri, fiches, autres annuaires. */

/* ---------- la carte de la bannière ---------- */
.an-carte-cadre { position: relative; max-width: 420px; padding: 18px; border-radius: 28px; background: linear-gradient(160deg, #e8f4fd, #cfeaf8);
  box-shadow: 0 2px 4px rgb(15 42 61 / .05), 0 30px 60px -34px rgb(15 42 61 / .6); }
.an-carte { display: block; width: 100%; height: auto; }
.an-lagon { fill: #9fe2f5; opacity: .6; }
.an-terre { fill: #fdf2ea; stroke: #e6d6bd; stroke-width: 1; }
.an-cote { fill: none; stroke: #fff; stroke-width: 2.4; }
.an-pt { fill: var(--b1); fill-opacity: .82; stroke: #fff; stroke-width: 2; cursor: pointer; transition: fill .3s, fill-opacity .3s, transform .3s; transform-box: fill-box; transform-origin: center; }
.an-pt:hover { fill: var(--g); transform: scale(1.15); }
.an-pt.off { fill: #9fb3c2; fill-opacity: .35; }
.js .an-carte .an-pt { animation: an-tombe .6s var(--rebond) both; }
.an-carte .an-pt:nth-of-type(3n) { animation-delay: .1s; } .an-carte .an-pt:nth-of-type(3n+1) { animation-delay: .2s; }
@keyframes an-tombe { from { opacity: 0; transform: translateY(-14px) scale(.5); } }
.an-compte { position: absolute; left: 18px; bottom: 18px; margin: 0; padding: 8px 14px; border-radius: 14px; font-size: 13.5px; font-weight: 600; color: var(--mute); background: rgb(255 255 255 / .92);
  box-shadow: 0 10px 20px -14px rgb(15 42 61 / .6); }
.an-compte b { font-size: 20px; font-weight: 800; color: var(--b1); }

/* ---------- outils ---------- */
.an-sec { padding: 46px 0 50px; }
.an-outils { display: grid; gap: 14px; margin-bottom: 24px; }
.an-cherche { margin: 0; max-width: none; }
.an-zones { display: flex; flex-wrap: wrap; gap: 8px; }
.an-zones button { all: unset; cursor: pointer; padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--ink); background: #fff;
  box-shadow: 0 1px 2px rgb(15 42 61 / .06), 0 8px 18px -12px rgb(15 42 61 / .45); transition: background .3s, color .3s; }
.an-zones button small { margin-left: 4px; font-size: 12px; font-weight: 700; color: var(--mute); }
.an-zones button.on { color: #fff; background: linear-gradient(135deg, var(--b2), var(--b1)); }
.an-zones button.on small { color: rgb(255 255 255 / .8); }
.an-zones button:focus-visible { outline: 2px solid var(--b1); outline-offset: 2px; }

/* ---------- fiches ---------- */
.an-grille { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.an-fiche { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px; border-radius: 18px; background: #fff;
  box-shadow: 0 2px 4px rgb(15 42 61 / .05), 0 16px 30px -24px rgb(15 42 61 / .55); transition: transform .35s var(--courbe), box-shadow .35s; }
.an-fiche:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgb(15 42 61 / .05), 0 22px 36px -22px rgb(28 125 179 / .55); }
.an-f-tete { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.an-f-tete h2 { margin: 0; font-size: 15.5px; font-weight: 800; line-height: 1.3; color: var(--ink); }
.an-z { flex: none; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; color: var(--b1); background: var(--lb); white-space: nowrap; }
.an-adr { display: flex; gap: 6px; margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--txt); }
.an-adr svg { flex: none; width: 15px; height: 15px; margin-top: 2px; color: var(--mute); }
.an-act { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 4px; }
.an-bt { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 10px; font-size: 13.5px; font-weight: 700; text-decoration: none; transition: background .3s, color .3s; }
.an-bt svg { width: 15px; height: 15px; }
.an-tel { color: #fff; background: var(--g); }
.an-tel:hover { background: #12804a; }
.an-iti { color: var(--b1); background: var(--lb); }
.an-iti:hover { background: #d4ebfa; }
.an-vide { margin: 20px 0 0; text-align: center; color: var(--mute); }
.an-note { display: flex; gap: 10px; align-items: flex-start; max-width: 900px; margin: 26px auto 0; padding: 14px 16px; border-radius: 16px; font-size: 13.5px; line-height: 1.55; color: var(--txt); background: #fff; }
.an-note svg { flex: none; width: 20px; height: 20px; color: var(--b1); }

/* ---------- conseils, autres annuaires ---------- */
.an-conseils { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.an-conseils .pm-num svg { width: 22px; height: 22px; }
.an-lien { margin-top: 26px; padding-left: 26px; }
.an-autres { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.an-autre { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; text-decoration: none; color: var(--ink); background: #fff;
  box-shadow: 0 2px 4px rgb(15 42 61 / .05), 0 14px 26px -22px rgb(15 42 61 / .55); transition: transform .35s var(--courbe); }
.an-autre:hover { transform: translateY(-3px); }
.an-autre i { flex: none; display: grid; place-items: center; width: 40px; height: 40px; padding: 9px; border-radius: 12px; color: #fff; background: linear-gradient(135deg, var(--b2), var(--b1)); }
.an-autre span { flex: 1; min-width: 0; }
.an-autre b { display: block; font-size: 14.5px; font-weight: 800; }
.an-autre small { font-size: 12.5px; color: var(--mute); }
.an-autre > svg { flex: none; width: 16px; height: 16px; color: var(--b1); }

@media (max-width: 1080px) { .an-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); } .an-autres { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 960px) { .an-conseils { grid-template-columns: minmax(0, 1fr); } .an-carte-cadre { max-width: 340px; } }
@media (max-width: 600px) {
  .an-grille, .an-autres { grid-template-columns: minmax(0, 1fr); }
  .an-zones { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 8px; scrollbar-width: none; }
  .an-zones::-webkit-scrollbar { display: none; }
  .an-zones button { flex: none; }
  .an-lien { padding-left: 0; }
}
@media (prefers-reduced-motion: reduce) { .js .an-carte .an-pt { animation: none; } }
