/* ===== OFFICES MAP — Bloc-type CSS (chargé dynamiquement) ===== */

.offices-section {
  background: var(--bg-cream);
  color: var(--text-dark);
  padding: 6rem 4rem;
  position: relative;
  overflow: hidden;
}

.offices-grid {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 2.5rem;
  max-width: 1400px;
  margin: 0 auto;
  align-items: start;
  position: relative;
}

.offices-col {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.offices-col--left { padding-top: 1rem; }
.offices-col--right { padding-top: 1rem; }

.offices-col--left .office-card:last-child,
.offices-col--right .office-card:last-child {
  margin-top: 100px;
}

.office-card {
  position: relative;
  background: #FFFFFF;
  border: 1px solid rgba(10, 22, 40, 0.1);
  box-shadow: 0 4px 24px rgba(10, 22, 40, 0.08);
  overflow: hidden;
}

.office-card__image {
  position: relative;
  width: 100%;
  height: 160px;
  overflow: hidden;
}

.office-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.office-card__body {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.25rem 1.25rem;
}

.office-card__picto {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.office-card__picto img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.7;
}

.office-card__city {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
}

.office-card__address {
  font-size: 0.85rem;
  color: var(--text-muted-dark);
  line-height: 1.5;
  margin-bottom: 0.25rem;
}

.office-card__phone { font-size: 0.85rem; color: var(--accent); text-decoration: none; }
.office-card__phone { position: relative; z-index: 2; }
.office-card__phone a { color: var(--accent); text-decoration: none; }
.office-card__phone a:hover { text-decoration: underline; }

/* Stretched link: the address <a> covers the entire card (photo included) */
.office-card__address::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.office-card:hover { box-shadow: 0 8px 32px rgba(10, 22, 40, 0.14); }

/* Map container */
.map-container { position: relative; width: 100%; }

.map-container img.geo-map-svg {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.66;
  filter: invert(5%) sepia(15%) saturate(2500%) hue-rotate(190deg) brightness(30%);
}

.city-marker {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.city-marker__dot {
  display: block;
  width: 24px;
  height: 27px;
  position: relative;
  z-index: 2;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-6 0 26.6 24'%3E%3Cpath d='M-1,24H-6l7.7-12.2L-5.7,0h5l7.4,11.8-7.8,12.2Z' fill='%23ff7d01'/%3E%3Cpath d='M0.3,0 L5.3,0 L10.3,8.5 L15.2,0 L20.2,0 L12.8,11.8 L20.6,24 L15.6,24 L10.3,15.5 L5,24 L0,24 L7.7,11.8 Z' fill='%23ff7d01'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .offices-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .offices-col { gap: 2rem; }
  .offices-col--map { display: none; }
  .offices-col--left,
  .offices-col--right { padding-top: 0; }
  .offices-col--left .office-card:last-child,
  .offices-col--right .office-card:last-child { margin-top: 0; }
}

@media (max-width: 768px) {
  .offices-section { padding: 4rem 1.5rem; }
  .offices-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .offices-col { gap: 1.5rem; }
  .offices-col--left .office-card:last-child,
  .offices-col--right .office-card:last-child { margin-top: 0; }
  .office-card__image { height: 200px; }
  .office-card__picto { width: 56px; height: 56px; padding: 8px; }
}

@media (max-width: 480px) {
  .offices-section { padding: 3rem 1rem; }
  .offices-grid { gap: 1.25rem; }
  .offices-col { gap: 1.25rem; }
  .office-card__image { height: 160px; }
}
