/* ==========================================================================
   AERIS Climatisation — feuille de style
   DA : clair, aérien, dégradés ciel/teal évoquant l'air et la fraîcheur
   ========================================================================== */

:root {
  --bg: #f5fafc;
  --surface: #ffffff;
  --ink: #0f2438;
  --ink-dim: #56728a;
  --ink-mute: #90a8ba;
  --line: #e2eef4;

  --sky: #1e9be0;
  --sky-deep: #0b6fb0;
  --teal: #0e7490;
  --mint: #2dd4bf;
  --sun: #fbb040;

  --shadow-sm: 0 6px 20px rgba(15, 60, 90, 0.06);
  --shadow-md: 0 16px 40px rgba(15, 60, 90, 0.12);

  --font-display: 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
  --radius: 20px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink-dim);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}

a { color: var(--sky-deep); text-decoration: none; }

::selection { background: var(--sky); color: #fff; }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--sky);
  outline-offset: 3px;
}

.container-xl-custom { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--sky-deep);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: '';
  width: 22px; height: 2px;
  background: linear-gradient(90deg, var(--mint), var(--sky));
  display: inline-block;
  border-radius: 2px;
}

/* --------------------------------------------------------------------
   Boutons
   -------------------------------------------------------------------- */
.btn-aeris {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 30px;
  border-radius: 999px;
  border: none;
  color: #fff;
  background: linear-gradient(120deg, var(--sky-deep), var(--sky) 55%, var(--mint));
  background-size: 180% 180%;
  box-shadow: var(--shadow-md);
  transition: transform 0.2s ease, background-position 0.5s ease;
}
.btn-aeris:hover { transform: translateY(-2px); background-position: 100% 0; color: #fff; }

.btn-outline-aeris {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 28px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  color: var(--ink);
  background: #fff;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.btn-outline-aeris:hover { border-color: var(--sky); color: var(--sky-deep); transform: translateY(-2px); }

/* --------------------------------------------------------------------
   Topbar + Navbar
   -------------------------------------------------------------------- */
.topbar {
  background: var(--ink);
  color: #cfe3ef;
  font-size: 0.82rem;
  padding: 7px 0;
}
.topbar a { color: #cfe3ef; }
.topbar a:hover { color: #fff; }
.topbar .social-link {
  display: inline-flex;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  align-items: center;
  justify-content: center;
  margin-left: 8px;
}

.navbar-aeris {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
.navbar-aeris .navbar-brand img { height: 62px; width: auto; }
.navbar-aeris .nav-link {
  color: var(--ink) !important;
  font-weight: 500;
  font-size: 0.94rem;
  margin: 0 4px;
}
.navbar-aeris .nav-link:hover { color: var(--sky-deep) !important; }
.navbar-aeris .dropdown-menu {
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  padding: 8px;
}
.navbar-aeris .dropdown-item { border-radius: 8px; font-size: 0.92rem; }
.navbar-aeris .dropdown-item:hover { background: var(--bg); color: var(--sky-deep); }

/* --------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 84px 0 64px;
}

.hero__blob {
  position: absolute;
  top: -180px;
  right: -160px;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle at 30% 30%, rgba(45, 212, 191, 0.35), rgba(30, 155, 224, 0.18) 55%, transparent 75%);
  border-radius: 50%;
  filter: blur(10px);
  animation: drift 12s ease-in-out infinite;
  pointer-events: none;
}
@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-20px, 30px) scale(1.05); }
}

.hero__title { font-size: clamp(2.1rem, 4.2vw, 3.2rem); line-height: 1.15; margin-bottom: 20px; }
.hero__title em {
  font-style: normal;
  background: linear-gradient(120deg, var(--sky-deep), var(--mint));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead { font-size: 1.08rem; max-width: 480px; margin-bottom: 28px; }

.hero__features {
  list-style: none;
  padding: 0;
  margin: 0 0 34px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
}
.hero__features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  color: var(--ink);
  font-size: 0.94rem;
}
.hero__features .dot {
  width: 22px; height: 22px;
  min-width: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--mint), var(--sky));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.7rem;
}

.hero__visual {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4/3.1;
}
.hero__visual img { width: 100%; height: 100%; object-fit: cover; }
.hero__badge {
  position: absolute;
  bottom: 18px;
  left: 18px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(6px);
  border-radius: 16px;
  padding: 12px 18px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero__badge strong { display: block; font-family: var(--font-display); color: var(--ink); font-size: 1.05rem; }
.hero__badge span { font-size: 0.78rem; color: var(--ink-dim); }

/* --------------------------------------------------------------------
   Sections génériques
   -------------------------------------------------------------------- */
section { padding: 88px 0; }
.section-alt { background: var(--surface); }

.section-title { font-size: clamp(1.7rem, 3vw, 2.15rem); max-width: 640px; margin-bottom: 18px; }
.section-lead { max-width: 620px; }

/* --------------------------------------------------------------------
   Qui sommes-nous
   -------------------------------------------------------------------- */
.about__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}
.about__stat {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  text-align: center;
}
.about__stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--sky-deep);
}
.about__stat span { font-size: 0.8rem; color: var(--ink-dim); }

/* --------------------------------------------------------------------
   Services (cartes)
   -------------------------------------------------------------------- */
.service-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border-top: 4px solid var(--accent, var(--sky));
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.service-card__img { height: 190px; overflow: hidden; }
.service-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.service-card:hover .service-card__img img { transform: scale(1.06); }
.service-card__body { padding: 24px; }
.service-card__title { font-size: 1.18rem; margin-bottom: 8px; }
.service-card__desc { font-size: 0.92rem; margin-bottom: 14px; }
.service-card__link { font-weight: 600; font-size: 0.88rem; display: inline-flex; align-items: center; gap: 6px; }

/* --------------------------------------------------------------------
   Détails de services (blocs alternés)
   -------------------------------------------------------------------- */
.detail-block { padding: 64px 0; border-top: 1px solid var(--line); }
.detail-block__icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--sky), var(--mint));
  color: #fff;
  font-size: 1.4rem;
  margin-bottom: 18px;
}
.detail-block__title { font-size: 1.5rem; margin-bottom: 14px; }
.detail-block__text { max-width: 720px; }

/* --------------------------------------------------------------------
   Réalisations (carrousel)
   -------------------------------------------------------------------- */
.realisations-carousel .carousel-item img {
  display: block;
  margin: 0 auto;
  max-height: 40em;
  width: auto;
  max-width: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.realisations-carousel .carousel-control-prev,
.realisations-carousel .carousel-control-next {
  width: 52px; height: 52px;
  top: 50%; transform: translateY(-50%);
  background: #fff;
  border-radius: 50%;
  opacity: 1;
  box-shadow: var(--shadow-sm);
}
.realisations-carousel .carousel-control-prev { left: -8px; }
.realisations-carousel .carousel-control-next { right: -8px; }
.realisations-carousel .carousel-control-prev-icon,
.realisations-carousel .carousel-control-next-icon {
  filter: invert(20%) sepia(60%) saturate(1500%) hue-rotate(175deg);
  width: 18px; height: 18px;
}
.realisations-carousel .carousel-indicators [data-bs-target] {
  background-color: var(--sky);
  width: 8px; height: 8px;
  border-radius: 50%;
}

/* --------------------------------------------------------------------
   Partenaires (bandeau défilant)
   -------------------------------------------------------------------- */
.partners-track {
  display: flex;
  align-items: center;
  gap: 64px;
  animation: scroll-x 26s linear infinite;
  width: max-content;
}
.partners-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.partners-track img {
  height: 40px;
  width: auto;
  object-fit: contain;
  transition: transform 0.25s ease;
}
.partners-track img:hover { transform: scale(1.06); }
@keyframes scroll-x {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* --------------------------------------------------------------------
   Zones d'intervention
   -------------------------------------------------------------------- */
.zone-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.zone-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 0.92rem;
}
.zone-list .pin {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--sky);
  min-width: 8px;
}
.zone-map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.zone-map img { width: 100%; display: block; }

/* --------------------------------------------------------------------
   Avis clients
   -------------------------------------------------------------------- */
.review-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.review-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(15, 60, 90, 0.18); /* ombre plus marquée qu'au repos */
}
.review-card__stars { color: var(--sun); letter-spacing: 2px; margin-bottom: 12px; }
.review-card__text { font-size: 0.92rem; flex-grow: 1; margin-bottom: 16px; }
.review-card__author { font-family: var(--font-display); font-weight: 600; color: var(--ink); font-size: 0.94rem; }

/* --------------------------------------------------------------------
   CTA bandeau
   -------------------------------------------------------------------- */
.cta-band {
  border-radius: 28px;
  background: linear-gradient(120deg, var(--sky-deep), var(--teal) 55%, var(--mint));
  color: #fff;
  padding: 52px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 1.9rem); }
.cta-band p { color: rgba(255,255,255,0.85); margin: 6px 0 0; }
.cta-band .btn-aeris { background: #fff; color: var(--sky-deep); box-shadow: none; }
.cta-band .btn-aeris:hover { background: #f2fbff; }

/* --------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------- */
.footer-aeris {
  background: var(--ink);
  color: #a9c1d1;
  padding: 28px 0;
  font-size: 0.85rem;
}
.footer-aeris a { color: #cfe3ef; }
.footer-aeris a:hover { color: #fff; }

/* --------------------------------------------------------------------
   Apparition au scroll
   -------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 991px) {
  .hero__visual { margin-top: 40px; }
  .hero__blob { width: 420px; height: 420px; top: -120px; right: -120px; }
}
@media (max-width: 576px) {
  .hero__features { grid-template-columns: 1fr; }
  .zone-list { grid-template-columns: 1fr; }
  .about__stats { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; text-align: center; }
}

/* --------------------------------------------------------------------
   Carte interactive Île-de-France
   -------------------------------------------------------------------- */
.idf-map-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.idf-map { position: relative; }
.idf-map::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('https://aerisclimatisation.fr/images/map_idf.png');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 1;
  filter: grayscale(20%);
  z-index: 0;
  pointer-events: none;
}
.idf-map svg { position: relative; z-index: 1; width: 100%; height: auto; display: block; }

.idf-dept {
  fill: var(--sky);
  stroke: #ffffff;
  stroke-width: 3;
  cursor: pointer;
  transition: fill 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
  transform-box: fill-box;
  transform-origin: center;
}
.idf-dept:hover, .idf-dept.is-active-hover {
  fill: var(--sky-deep);
  transform: scale(1.035);
}
.idf-dept--off {
  fill: #d7e2ea;
  cursor: default;
}
.idf-dept--off:hover { fill: #d7e2ea; transform: none; }

.idf-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  fill: #ffffff;
  pointer-events: none;
  text-anchor: middle;
}
.idf-label--off { fill: #7f93a3; }

.idf-tooltip {
  position: absolute;
  pointer-events: none;
  background: var(--ink);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 10px 14px;
  border-radius: 10px;
  transform: translate(-50%, -110%);
  white-space: normal;
  max-width: 220px;
  text-align: center;
  line-height: 1.4;
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: 5;
}
.idf-tooltip.is-visible { opacity: 1; }
.idf-tooltip strong { display: block; font-family: var(--font-display); }
.idf-tooltip span { font-size: 0.72rem; opacity: 0.8; }

.idf-map-legend {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 18px;
  font-size: 0.85rem;
  color: var(--ink-dim);
}
.idf-map-legend .legend-dot {
  display: inline-block;
  width: 12px; height: 12px;
  border-radius: 3px;
  margin-right: 8px;
  vertical-align: -1px;
}
.idf-map-legend .legend-dot--on { background: var(--sky); }
.idf-map-legend .legend-dot--off { background: #d7e2ea; }

.zone-list li.is-highlighted {
  border-color: var(--sky);
  box-shadow: 0 0 0 2px rgba(30, 155, 224, 0.15);
}

/* --------------------------------------------------------------------
   Formulaire de devis
   -------------------------------------------------------------------- */
.devis { position: relative; }

.devis__form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow-sm);
}
.devis__form label { font-size: 0.85rem; color: var(--ink-dim); font-weight: 500; }
.devis__form .form-control,
.devis__form .form-select {
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 12px;
  padding: 11px 14px;
}
.devis__form .form-control:focus,
.devis__form .form-select:focus {
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(30, 155, 224, 0.15);
}
.devis__form .invalid-feedback { font-size: 0.78rem; }

.devis__honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.devis__feedback {
  font-size: 0.9rem;
  padding: 12px 16px;
  border-radius: 12px;
  margin-top: 16px;
  display: none;
}
.devis__feedback--ok { color: #0d9668; background: rgba(45, 212, 191, 0.12); border: 1px solid rgba(45, 212, 191, 0.35); }
.devis__feedback--ko { color: #c0293b; background: rgba(255, 84, 112, 0.1); border: 1px solid rgba(255, 84, 112, 0.3); }

/* --------------------------------------------------------------------
   Bandeau cookies
   -------------------------------------------------------------------- */
.cookie-banner {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 200;
  max-width: 780px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px 22px;
  box-shadow: var(--shadow-md);
  display: none;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.cookie-banner.is-visible { display: flex; }
.cookie-banner p { margin: 0; font-size: 0.86rem; color: var(--ink-dim); flex: 1 1 380px; }
.cookie-banner p a { color: var(--sky-deep); text-decoration: underline; }
.cookie-banner .cookie-actions { display: flex; gap: 10px; flex: 0 0 auto; }
.cookie-banner .btn-cookie-ok {
  font-family: var(--font-display); font-weight: 600; font-size: 0.85rem;
  padding: 9px 20px; border-radius: 999px; border: none;
  background: linear-gradient(120deg, var(--sky-deep), var(--mint)); color: #fff;
}
.cookie-banner .btn-cookie-refuse {
  font-family: var(--font-display); font-weight: 600; font-size: 0.85rem;
  padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line);
  background: transparent; color: var(--ink-dim);
}

/* --------------------------------------------------------------------
   Pages légales
   -------------------------------------------------------------------- */
.legal-page { padding: 150px 0 100px; }
.legal-page h1 { font-size: clamp(1.8rem, 3vw, 2.3rem); margin-bottom: 8px; }
.legal-page .legal-updated { font-size: 0.82rem; color: var(--ink-mute); margin-bottom: 40px; }
.legal-page h2 {
  font-size: 1.1rem; color: var(--sky-deep);
  margin: 40px 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line);
}
.legal-page h2:first-of-type { margin-top: 0; }
.legal-page p, .legal-page li { font-size: 0.94rem; color: var(--ink-dim); }
.legal-page ul { padding-left: 20px; }
.legal-page ul li { margin-bottom: 6px; }
.legal-page strong { color: var(--ink); }
.legal-page .placeholder {
  color: #b8791a; background: rgba(251, 176, 64, 0.14);
  border: 1px dashed rgba(251, 176, 64, 0.5);
  padding: 1px 6px; border-radius: 6px; font-size: 0.88em;
}
.legal-page table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: 0.88rem; }
.legal-page table th, .legal-page table td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; color: var(--ink-dim); }
.legal-page table th { color: var(--ink); font-family: var(--font-display); font-weight: 600; }
.legal-page .back-link { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 30px; font-size: 0.9rem; font-weight: 500; }
