/* ==========================
   SECTION AGENCES
   ========================== */

.AgencySection--grid {
  position: relative;

  overflow: hidden;
  z-index: 0;
}

/* ==========================
   CARTE EN FOND
   ========================== */

.AgencyMapBackground {
  position: absolute;
  inset: 0;
  z-index: -1;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
}

.AgencyMapSvg {
  width: 900px;
  max-width: 120%;
}

/* teinte bordeaux claire */
.AgencyMapSvg path {
  fill: rgba(138, 31, 74, 0.1);
}

/* ==========================
   CONTENU AU-DESSUS
   ========================== */

.AgencySection--grid .container {
  position: relative;
  z-index: 1;
  background: transparent;
}

.AgencySectionIntro {
  padding: 1em 0 0;
}

/* ==========================
   RESPONSIVE MAP
   ========================== */

@media (max-width: 992px) {
  .AgencyMapSvg {
    width: 700px;
  }
}

@media (max-width: 576px) {
  .AgencyMapBackground {
    display: none;
  }
}

/* ==========================
   GRILLE AGENCES
   ========================== */

.AgencyGrid {
  margin-top: 3rem;
  row-gap: 2rem;
}

/* ==========================
   CARDS AGENCES
   ========================== */

.AgencyCard {
  background: #ffffffbe;
  border-radius: 6px;
  padding: 2rem;
  height: 100%;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transition: box-shadow 0.3s ease;
}

.AgencyCard:hover {
  box-shadow: 0 18px 45px rgba(0,0,0,0.12);
}

.AgencyCard a {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.AgencyCardContent {
  margin: 20px 0;
}

.AgencyCardHeader{
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
}

.

/* ==========================
   ICÔNE CTA
   ========================== */

.AgencyCTAIcon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.AgencyCTAIcon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

/* ==========================
   CTA AGENCES
   ========================== */

.AgencyCTA {
  margin-top: 6rem;
  padding: 4rem 0;
}

.AgencyCTALink {
  display: inline-flex;
  align-items: center;
  gap: 2rem;
  padding: 2rem 3rem;
  background: #8a1f4a;
  color: #fff;
  text-decoration: none;
  font-size: 1.25rem;
  line-height: 1.4;
  border: 1px solid #8a1f4a;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.AgencyCTAText {
  text-align: left;
}

/* ==========================
   FLÈCHE CTA – VERSION STABLE
   ========================== */

.AgencyCTAArrow {
  display: inline-flex;
  align-items: center;
  width: 40px; /* largeur fixe → pas de resize */
  margin-left: 1.5rem;
  position: relative;
}

/* ligne */
.AgencyCTAArrowLine {
  width: 20px;
  height: 1px;
  background: currentColor;
  transition: width 0.3s ease;
}

/* tête */
.AgencyCTAArrowHead {
  width: 6px;
  height: 6px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
  margin-left: -1px;
  transition: transform 0.3s ease;
}


/* ==========================
   HOVER
   ========================== */

.AgencyCTALink:hover {
  background: #fff;
  color: #8a1f4a;
  border-color: #8a1f4a;
}

.AgencyCTALink:hover .AgencyCTAArrow .line {
  width: 36px;
}

/* ==========================
   RESPONSIVE CTA
   ========================== */

@media (max-width: 768px) {
  .AgencyCTALink {
    flex-direction: column;
    gap: 1.5rem;
    font-size: 1.1rem;
    text-align: center;
  }

  .AgencyCTAText {
    text-align: center;
  }
}


/* ==========================
   CTA CARD – En savoir plus
   ========================== */

.AgencyCardMore {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  color: #fff;
  background: #8a1f4a; /* bordeaux */
  border: 1px solid #8a1f4a;
  border-radius: 2px;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

/* flèche */
.AgencyCardMore .arrow {
  transition: transform 0.25s ease;
}

/* ==========================
   HOVER
   ========================== */

.AgencyCard:hover .AgencyCardMore {
  background: #fff;
  color: #8a1f4a;
  border-color: #8a1f4a;
}

.AgencyCard:hover .AgencyCardMore .arrow {
  transform: translateX(4px);
}