/* Accueil — bandeau Agence immobilière (après promotion, avant statistiques) */

.home-agence-teaser {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  padding: 2.5rem 1rem 2.75rem;
  margin-top: 60px;
  margin-bottom: 0;
  box-sizing: border-box;
}

/* Photo de fond en ligne — thème agence immobilière */
.home-agence-teaser::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("https://images.unsplash.com/photo-1560518883-ce09059eeffa?auto=format&fit=crop&w=1200&q=80");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transform: scale(1.06);
  animation: homeAgenceBgKen 22s ease-in-out infinite alternate;
}

@media (min-width: 768px) {
  .home-agence-teaser::before {
    background-image: url("https://images.unsplash.com/photo-1564013799919-ab600027ffc6?auto=format&fit=crop&w=1920&q=85");
    background-position: center 35%;
  }
}

.home-agence-teaser::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    125deg,
    rgba(8, 0, 84, 0.86) 0%,
    rgba(255, 145, 0, 0.22) 50%,
    rgba(8, 0, 84, 0.88) 100%
  );
  pointer-events: none;
}

@keyframes homeAgenceBgKen {
  from {
    transform: scale(1.04);
  }
  to {
    transform: scale(1.1);
  }
}

.home-agence-teaser__glow {
  position: absolute;
  z-index: 2;
  width: min(280px, 70vw);
  height: min(280px, 70vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 145, 0, 0.3), transparent 70%);
  top: -80px;
  right: -40px;
  animation: homeAgenceGlow 6s ease-in-out infinite alternate;
  pointer-events: none;
}

.home-agence-teaser__glow--left {
  z-index: 2;
  left: -60px;
  bottom: -80px;
  top: auto;
  right: auto;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.2), transparent 70%);
  animation-delay: 1.5s;
}

@keyframes homeAgenceGlow {
  from { transform: scale(0.9); opacity: 0.45; }
  to { transform: scale(1.05); opacity: 0.85; }
}

.home-agence-teaser__inner {
  position: relative;
  z-index: 3;
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: stretch;
  padding: 0;
  width: 100%;
}

.home-agence-teaser__copy {
  text-align: center;
  width: 100%;
  max-width: 100%;
}

.home-agence-teaser__eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #ff9100;
  margin-bottom: 0.65rem;
  line-height: 1.4;
  max-width: 100%;
}

.home-agence-teaser__title {
  font-size: clamp(1.5rem, 6.5vw, 2.75rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 0.85rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.home-agence-teaser__title span {
  display: inline;
  color: #ff9100;
}

.home-agence-teaser__text {
  font-size: clamp(0.9375rem, 3.8vw, 1.05rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.92);
  margin: 0 auto 1.35rem;
  max-width: 36rem;
  padding: 0 0.25rem;
}

.home-agence-teaser__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: stretch;
  width: 100%;
  max-width: 22rem;
  margin: 0 auto;
}

.home-agence-teaser__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.9rem 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.3;
  text-align: center;
  background: linear-gradient(135deg, #ff9100, #ff6b35);
  color: #fff;
  font-weight: 700;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(255, 145, 0, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

.home-agence-teaser__cta:hover,
.home-agence-teaser__cta:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(255, 145, 0, 0.45);
}

.home-agence-teaser__cta--ghost {
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.45);
  box-shadow: none;
  margin-left: 0;
}

.home-agence-teaser__cta--ghost:hover,
.home-agence-teaser__cta--ghost:focus-visible {
  background: rgba(255, 255, 255, 0.15);
}

/* Showcase — mobile : grille, pas de position absolute */
.home-agence-showcase {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  min-height: 0;
  padding: 0;
}

.home-agence-showcase__ring {
  display: none;
}

.home-agence-showcase__cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  width: 100%;
}

.home-agence-card {
  position: relative;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
  width: 100%;
  max-width: none;
  padding: 1rem 1.15rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-align: left;
  animation: none;
}

.home-agence-card i {
  font-size: 1.35rem;
  color: #ff9100;
  margin-bottom: 0;
  flex-shrink: 0;
  width: 2.25rem;
  text-align: center;
}

.home-agence-card__body {
  flex: 1;
  min-width: 0;
}

.home-agence-card strong {
  display: block;
  font-size: 0.9375rem;
  margin-bottom: 0.15rem;
  line-height: 1.3;
}

.home-agence-card span {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.4;
  display: block;
}

/* Très petits écrans */
@media (max-width: 359px) {
  .home-agence-teaser {
    padding: 2rem 0.75rem 2.25rem;
  }

  .home-agence-teaser__eyebrow {
    font-size: 0.65rem;
  }

  .home-agence-teaser__cta {
    font-size: 0.875rem;
    padding: 0.85rem 1rem;
  }
}

/* Mobile large — 3 cartes côte à côte (écrans ≥ 480px) */
@media (min-width: 480px) and (max-width: 639px) {
  .home-agence-showcase__cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .home-agence-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0.75rem 0.4rem;
    gap: 0.45rem;
  }

  .home-agence-card i {
    width: auto;
    font-size: 1.2rem;
  }

  .home-agence-card strong {
    font-size: 0.7rem;
  }

  .home-agence-card span {
    font-size: 0.625rem;
    line-height: 1.25;
  }
}

/* Tablette */
@media (min-width: 640px) {
  .home-agence-teaser {
    padding: 3rem 1.5rem 3.25rem;
  }

  .home-agence-teaser__inner {
    gap: 2.25rem;
  }

  .home-agence-teaser__actions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    max-width: none;
    width: auto;
  }

  .home-agence-teaser__cta {
    width: auto;
    min-width: 12rem;
    flex: 0 1 auto;
  }

  .home-agence-showcase__cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .home-agence-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.15rem 0.85rem;
    gap: 0.6rem;
  }

  .home-agence-card i {
    width: auto;
    font-size: 1.5rem;
  }

  .home-agence-card span {
    display: block;
    font-size: 0.75rem;
  }
}

@media (min-width: 768px) {
  .home-agence-teaser {
    padding: 3.5rem 2rem;
  }

  .home-agence-teaser__copy {
    text-align: left;
  }

  .home-agence-teaser__eyebrow {
    justify-content: flex-start;
    font-size: 0.8rem;
  }

  .home-agence-teaser__text {
    margin-left: 0;
    margin-right: 0;
    padding: 0;
  }

  .home-agence-teaser__actions {
    justify-content: flex-start;
    margin: 0;
  }

  .home-agence-teaser__glow {
    width: 360px;
    height: 360px;
    top: -100px;
    right: -60px;
  }
}

/* Desktop — layout 2 colonnes + cartes flottantes */
@media (min-width: 992px) {
  .home-agence-teaser {
    padding: 4rem 2rem;
  }

  .home-agence-teaser__inner {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
    align-items: center;
  }

  .home-agence-teaser__glow {
    width: 420px;
    height: 420px;
    top: -120px;
    right: -80px;
  }

  .home-agence-showcase {
    min-height: 300px;
    max-width: none;
  }

  .home-agence-showcase__ring {
    display: block;
    position: absolute;
    inset: 8% 12%;
    border: 2px dashed rgba(255, 145, 0, 0.35);
    border-radius: 50%;
    animation: homeAgenceSpin 24s linear infinite;
  }

  .home-agence-showcase__cards {
    display: block;
    position: relative;
    height: 100%;
    min-height: 280px;
  }

  .home-agence-card {
    position: absolute;
    width: 48%;
    max-width: 210px;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding: 1rem 1.1rem;
    animation: homeAgenceFloat 5s ease-in-out infinite;
  }

  .home-agence-card i {
    width: auto;
    margin-bottom: 0.5rem;
    display: block;
  }

  .home-agence-card--1 {
    top: 0;
    left: 0;
    animation-delay: 0s;
  }

  .home-agence-card--2 {
    top: 26%;
    right: 0;
    left: auto;
    animation-delay: 0.8s;
  }

  .home-agence-card--3 {
    bottom: 0;
    left: 20%;
    animation-delay: 1.6s;
  }
}

@keyframes homeAgenceFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes homeAgenceSpin {
  to { transform: rotate(360deg); }
}

/* Désactiver animations AOS / lourdes sur mobile — uniquement cette section */
@media (max-width: 768px) {
  .home-agence-teaser[data-aos] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
    -webkit-animation: none !important;
    pointer-events: auto !important;
  }

  .home-agence-teaser[data-aos] * {
    opacity: 1 !important;
    transform: none !important;
  }

  .home-agence-teaser__glow {
    animation: none;
    opacity: 0.6;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-agence-teaser::before {
    animation: none !important;
    transform: scale(1.05);
  }

  .home-agence-teaser__glow,
  .home-agence-showcase__ring,
  .home-agence-card {
    animation: none !important;
  }
}

/* Éviter débordement horizontal sur la section */
.home-agence-teaser,
.home-agence-teaser__inner,
.home-agence-showcase,
.home-agence-showcase__cards {
  max-width: 100%;
  box-sizing: border-box;
}
