:root {
  --ab: #004ea1;
  --ad: #082c54;
  --ag: #b1951b;
}
.agency-page {
  background: #f5f8fb;
  color: #102c4c;
}
.agency-hero {
  position: relative;
  overflow: hidden;
  padding: 105px 0 95px;
  background: linear-gradient(115deg, #061f3e, #004ea1);
  color: #fff;
}
.agency-hero:after {
  content: "";
  position: absolute;
  width: 620px;
  height: 620px;
  right: -170px;
  top: -340px;
  border: 1px solid #ffffff30;
  border-radius: 50%;
  box-shadow:
    0 0 0 90px #ffffff0a,
    0 0 0 180px #ffffff08;
}
.agency-hero .container {
  position: relative;
  z-index: 1;
}
.agency-hero > div > span {
  color: #e2c65b;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.agency-hero h1 {
  margin: 18px 0 20px;
  color: #fff;
  font-size: clamp(46px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}
.agency-hero h1 em {
  color: #e2c65b;
  font-style: normal;
}
.agency-hero p {
  max-width: 650px;
  color: #ffffffd6;
  font-size: 18px;
}
.agency-stats {
  display: flex;
  gap: 45px;
  margin-top: 40px;
}
.agency-stats div {
  display: flex;
  flex-direction: column;
}
.agency-stats strong {
  color: #fff;
  font-size: 30px;
}
.agency-stats small {
  color: #cddceb;
}
.agency-directory {
  padding: 70px 0 110px;
}
.agency-toolbar {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 16px;
}
.agency-search {
  display: flex;
  align-items: center;
  height: 56px;
  padding: 0 20px;
  border: 1px solid #d8e2ec;
  border-radius: 10px;
  background: #fff;
  color: #718094;
}
.agency-search input {
  width: 100%;
  height: 100%;
  padding-left: 12px;
  border: 0;
  outline: 0;
  background: transparent;
}
.agency-toolbar select {
  height: 56px;
  padding: 0 16px;
  border: 1px solid #d8e2ec;
  border-radius: 10px;
  background: #fff;
  color: #314b65;
}
.agency-filters {
  display: flex;
  gap: 10px;
  margin: 22px 0 35px;
}
.agency-filters button {
  padding: 11px 16px;
  border: 1px solid #d7e1ea;
  border-radius: 99px;
  background: #fff;
  color: #526579;
  font-weight: 700;
  cursor: pointer;
}
.agency-filters button span {
  display: inline-grid;
  place-items: center;
  min-width: 23px;
  height: 23px;
  margin-left: 7px;
  border-radius: 50%;
  background: #edf2f7;
  font-size: 11px;
}
.agency-filters button.active,
.agency-filters button:hover {
  border-color: var(--ab);
  background: var(--ab);
  color: #fff;
}
.agency-filters button.active span,
.agency-filters button:hover span {
  background: #ffffff25;
}
.agency-results-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  color: #667789;
  font-size: 13px;
}
.agency-results-head p {
  margin: 0;
  font-size: 15px;
}
.agency-results-head strong {
  color: var(--ab);
  font-size: 22px;
}
.agency-results-head i {
  margin-right: 6px;
  color: var(--ag);
}
.agency-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.agency-card {
  padding: 25px;
  border: 1px solid #dce5ee;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 10px 30px #082c540a;
  transition: 0.25s;
}
.agency-card:hover {
  transform: translateY(-5px);
  border-color: #b8cce0;
  box-shadow: 0 18px 42px #082c541a;
}
.agency-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.agency-card-top > span {
  color: #b4c2d0;
  font-size: 13px;
  font-weight: 800;
}
.agency-card-top b {
  padding: 5px 9px;
  border-radius: 99px;
  background: #edf4fb;
  color: var(--ab);
  font-size: 10px;
  text-transform: uppercase;
}
.agency-card h2 {
  margin: 18px 0 9px;
  color: #102c4c;
  font-size: 23px;
}
.agency-city {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: var(--ab);
  font-size: 14px;
  font-weight: 700;
}
.agency-city i {
  color: var(--ag);
}
.agency-address {
  min-height: 52px;
  margin: 12px 0 22px;
  color: #68788a;
  font-size: 14px;
  line-height: 1.6;
}
.agency-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  border: 1px solid #dce5ee;
  border-radius: 8px;
}
.agency-actions a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 10px 4px;
  border-right: 1px solid #dce5ee;
  color: #516579;
  font-size: 10px;
  font-weight: 700;
}
.agency-actions a:last-child {
  border: 0;
}
.agency-actions a:hover {
  background: var(--ab);
  color: #fff;
}
.agency-actions i {
  font-size: 15px;
}
.agency-phone {
  display: block;
  margin-top: 17px;
  color: #102c4c;
  font-size: 15px;
  font-weight: 800;
}
.agency-card[hidden] {
  display: none;
}
.agency-empty {
  text-align: center;
  padding: 70px 20px;
}
.agency-empty i {
  color: var(--ag);
  font-size: 45px;
}
.agency-empty h2 {
  margin: 15px 0 5px;
}
.agency-empty button {
  margin-top: 15px;
  padding: 10px 16px;
  border: 0;
  border-radius: 6px;
  background: var(--ab);
  color: #fff;
}
@media (max-width: 991px) {
  .agency-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 767px) {
  .agency-hero {
    padding: 70px 0;
  }
  .agency-stats {
    gap: 22px;
  }
  .agency-stats strong {
    font-size: 24px;
  }
  .agency-toolbar {
    grid-template-columns: 1fr;
  }
  .agency-filters {
    overflow-x: auto;
  }
  .agency-filters button {
    flex: none;
  }
  .agency-results-head span {
    display: none;
  }
  .agency-grid {
    grid-template-columns: 1fr;
  }
  .agency-directory {
    padding: 50px 0 75px;
  }
}

/* Carte des agences */
.agency-map-block { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 20px; margin: 0 0 30px; }
.agency-map { height: 420px; overflow: hidden; border: 1px solid #e3eaf2; border-radius: 18px; background: #dfe9f3; z-index: 1; }
.agency-map-side { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 26px; border-radius: 18px; background: linear-gradient(140deg, #082c54, #004ea1); color: #fff; }
.agency-map-side h2 { margin: 0; color: #fff; font-size: 24px; line-height: 1.25; }
.agency-map-side p { margin: 0; color: rgba(255, 255, 255, 0.85); line-height: 1.6; }
.agency-nearest { width: 100%; padding: 14px 16px; border-radius: 12px; background: rgba(255, 255, 255, 0.1); }
.agency-nearest ol { margin: 8px 0 0; padding-left: 20px; }
.agency-nearest li { margin: 4px 0; }
.agency-nearest a { color: #e2c65b; font-weight: 800; }
.agency-nearest span { color: rgba(255, 255, 255, 0.8); font-size: 14px; }
.agency-dist { margin-left: auto; padding: 2px 10px; border-radius: 999px; background: #fffaf0; color: #7d6a12; font-size: 13px; font-style: normal; font-weight: 800; }
.agency-card.is-focus { outline: 3px solid #e2c65b; outline-offset: 2px; }
.agency-card { scroll-margin-top: 120px; }
@media (max-width: 991px) { .agency-map-block { grid-template-columns: minmax(0, 1fr); } .agency-map { height: 340px; } }
