/* JHS Entreprise — Améliorations UX/UI
   Barre de lecture, heros visuels, mega-menu, sommaire, avant/après,
   filtres portfolio, lightbox, CTA sticky, compteurs, cartes, logos. */

/* ─── Barre de progression de lecture ─── */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  z-index: 1100;
  pointer-events: none;
}

/* ─── Hero visuel des pages intérieures ─── */
.page-hero--visual {
  position: relative;
  min-height: 46vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding-top: calc(var(--header-height) + var(--space-xl));
  padding-bottom: var(--space-xl);
}

.page-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Ken Burns : zoom lent, GPU only */
.page-hero__media--kenburns img,
.hero__media--kenburns img {
  animation: kenburns 16s var(--ease-in-out) forwards;
  will-change: transform;
}

@keyframes kenburns {
  from { transform: scale(1); }
  to { transform: scale(1.07); }
}

@media (prefers-reduced-motion: reduce) {
  .page-hero__media--kenburns img,
  .hero__media--kenburns img {
    animation: none;
  }
}

.page-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    to top,
    rgba(26, 26, 31, 0.92) 0%,
    rgba(26, 26, 31, 0.55) 55%,
    rgba(26, 26, 31, 0.35) 100%
  );
}

.page-hero__content {
  position: relative;
  z-index: 1;
}

/* ─── Hero accueil panorama (maison jaune 1920×606) ─── */
.hero--panorama {
  min-height: min(88vh, 780px);
}

/* ─── Sommaire (table des matières) ─── */
.page-toc {
  background: white;
  border-bottom: 1px solid var(--color-stone-light);
}

.page-toc .container {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding-block: 0.85rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.page-toc__label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-stone-dark);
  flex-shrink: 0;
}

.page-toc ol {
  display: flex;
  gap: var(--space-md);
  counter-reset: toc;
}

.page-toc li {
  counter-increment: toc;
  flex-shrink: 0;
}

.page-toc a {
  font-size: var(--text-sm);
  color: var(--color-anthracite-muted);
  white-space: nowrap;
  transition: color var(--duration-fast);
}

.page-toc a::before {
  content: counter(toc, decimal-leading-zero);
  color: var(--color-accent);
  font-weight: 700;
  font-size: var(--text-xs);
  margin-right: 0.4rem;
}

.page-toc a:hover {
  color: var(--color-accent);
}

/* Ancres : dégager le header fixe */
.service-content__main h2[id],
.gallery-section[id],
section[id] {
  scroll-margin-top: calc(var(--header-height) + 4rem);
}

/* ─── Mega-menu ─── */
.nav-dropdown__menu--mega {
  min-width: 42rem;
  padding: 1rem;
}

.mega-menu {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.mega-menu__item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.6rem !important;
  border-radius: var(--radius-md);
}

.mega-menu__item img {
  width: 100%;
  height: 5rem;
  object-fit: cover;
  border-radius: var(--radius-sm);
  display: block;
}

.mega-menu__item span {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: normal !important;
}

.mega-menu__links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.6rem;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mega-menu__links a {
  font-size: var(--text-xs) !important;
}

.mega-menu__cta {
  margin-left: auto;
  color: var(--color-accent) !important;
  font-weight: 700 !important;
}

/* ─── Téléphone dans le header ─── */
.site-nav__phone {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-off-white);
  letter-spacing: 0.02em;
  transition: color var(--duration-fast);
}

.site-nav__phone svg {
  color: var(--color-helmet);
}

.site-nav__phone:hover {
  color: var(--color-helmet);
}

@media (max-width: 1200px) {
  .site-nav__phone span {
    display: none;
  }
}

/* ─── Bandeau chiffres clés ─── */
.stats-band {
  background: var(--color-anthracite);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-block: var(--space-lg);
}

.stats-band__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  text-align: center;
}

.stat__value {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--color-helmet);
  line-height: 1.1;
}

.stat__value sup {
  font-size: 0.5em;
}

.stat__label {
  margin-top: 0.3rem;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(247, 245, 242, 0.65);
}

@media (max-width: 768px) {
  .stats-band__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg) var(--space-sm);
  }
}

/* ─── Avant / Après (slider comparateur) ─── */
.compare-section {
  background: var(--color-stone-light);
}

.compare-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.compare-grid--inline {
  grid-template-columns: repeat(2, 1fr);
  margin: var(--space-lg) 0;
}

.compare-card {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.compare-card__meta {
  padding: var(--space-md) var(--space-md) var(--space-lg);
}

.compare-card__tag {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.compare-card__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  margin-top: 0.3rem;
}

.compare-slider {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  cursor: ew-resize;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  --pos: 50%;
}

.compare-grid--inline .compare-slider {
  aspect-ratio: 3/4;
}

.compare-slider img {
  pointer-events: none;
}

.compare-slider__after,
.compare-slider__before {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.compare-slider__before-wrap {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}

.compare-slider__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  background: white;
  transform: translateX(-50%);
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.35);
}

.compare-slider__knob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: white;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.compare-slider__knob::before {
  content: '◂ ▸';
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  color: var(--color-anthracite);
  white-space: nowrap;
}

.compare-slider__label {
  position: absolute;
  top: var(--space-sm);
  padding: 0.3rem 0.75rem;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  color: white;
  background: rgba(26, 26, 31, 0.72);
  backdrop-filter: blur(4px);
  pointer-events: none;
}

.compare-slider__label--before {
  left: var(--space-sm);
}

.compare-slider__label--after {
  right: var(--space-sm);
  background: var(--color-accent);
}

@media (max-width: 1024px) {
  .compare-grid,
  .compare-grid--inline {
    grid-template-columns: 1fr;
    max-width: 30rem;
    margin-inline: auto;
  }
}

/* ─── Filtres portfolio ─── */
.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: var(--space-xl);
}

.portfolio-filter {
  padding: 0.6rem 1.4rem;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: white;
  border: 1px solid var(--color-stone-light);
  border-radius: 999px;
  cursor: pointer;
  transition: background var(--duration-fast), color var(--duration-fast),
              border-color var(--duration-fast), transform var(--duration-fast);
}

.portfolio-filter:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.portfolio-filter.is-active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: white;
}

.portfolio-item.is-hidden {
  display: none;
}

/* ─── Chantier phare (accueil) ─── */
.featured-project__grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

.featured-project__lead {
  color: var(--color-anthracite-muted);
  margin-bottom: var(--space-md);
  line-height: 1.7;
}

/* Étapes du chantier */
.featured-project__steps {
  margin: var(--space-md) 0 var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.featured-project__steps li {
  position: relative;
  padding-left: 1.6rem;
  font-size: var(--text-sm);
  color: var(--color-anthracite-muted);
  line-height: 1.5;
}

.featured-project__steps li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 0.85rem;
  height: 0.5rem;
  border-left: 2px solid var(--color-accent);
  border-bottom: 2px solid var(--color-accent);
  transform: rotate(-45deg);
}

/* Mini-chiffres clés */
.featured-project__facts {
  display: flex;
  gap: var(--space-lg);
  padding: var(--space-md) 0;
  margin-bottom: var(--space-lg);
  border-top: 1px solid rgba(26, 26, 31, 0.08);
  border-bottom: 1px solid rgba(26, 26, 31, 0.08);
}

.featured-project__fact {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.featured-project__fact-value {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--color-accent);
  line-height: 1;
}

.featured-project__fact-label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-anthracite-muted);
}

/* Cartes avant/après compactes */
.featured-project__media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.featured-project__card {
  margin: 0;
  background: white;
  border: 1px solid rgba(26, 26, 31, 0.06);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.featured-project__card .compare-slider {
  aspect-ratio: 3/4;
  border-radius: 0;
  box-shadow: none;
}

.featured-project__card figcaption {
  padding: 0.85rem 1rem 1rem;
  font-size: var(--text-sm);
  line-height: 1.45;
}

.featured-project__card figcaption strong {
  color: var(--color-anthracite);
}

.featured-project__card figcaption span {
  display: block;
  font-size: var(--text-xs);
  color: var(--color-anthracite-muted);
  margin-top: 0.15rem;
}

@media (max-width: 900px) {
  .featured-project__grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .featured-project__facts {
    justify-content: space-between;
    gap: var(--space-sm);
  }
}

@media (max-width: 480px) {
  .featured-project__media {
    grid-template-columns: 1fr;
    max-width: 22rem;
    margin-inline: auto;
    width: 100%;
  }
}

/* ─── Galerie complète ─── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.gallery-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius-md);
  cursor: zoom-in;
  margin: 0;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out-expo);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item__tag {
  position: absolute;
  left: 0.6rem;
  bottom: 0.6rem;
  padding: 0.25rem 0.6rem;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: white;
  background: rgba(26, 26, 31, 0.72);
  border-radius: var(--radius-sm);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity var(--duration-fast), transform var(--duration-fast);
  pointer-events: none;
}

.gallery-item:hover .gallery-item__tag,
.gallery-item:focus-visible .gallery-item__tag {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .gallery-item__tag {
    opacity: 1;
    transform: none;
  }
}

/* ─── Page « Nos travaux » : ancres du hero ─── */
.hero-anchors {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: var(--space-md);
}

.hero-anchor {
  padding: 0.45rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: white;
  text-decoration: none;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(4px);
  transition: background-color var(--duration-base) ease, border-color var(--duration-base) ease;
}

.hero-anchor:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

/* ─── Page « Nos travaux » : galeries par univers ─── */
.gallery-section {
  margin-top: var(--space-xl);
}

.gallery-section:first-of-type {
  margin-top: var(--space-lg);
}

.gallery-section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-sm);
  padding-bottom: 0.75rem;
  border-bottom: 2px solid rgba(0, 145, 146, 0.25);
}

.gallery-section__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-anthracite);
  margin: 0;
}

.gallery-section__desc {
  margin: 0.25rem 0 0;
  font-size: var(--text-sm);
  color: var(--color-anthracite-muted);
  max-width: 52ch;
}

.gallery-section__count {
  flex-shrink: 0;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-accent);
  background: rgba(0, 145, 146, 0.1);
  white-space: nowrap;
}

/* Photos repliées : masquées tant que la section n'est pas dépliée */
.gallery-item.is-collapsed {
  display: none;
}

.gallery-section.is-expanded .gallery-item.is-collapsed {
  display: block;
}

.gallery-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: var(--space-sm);
}

.gallery-more {
  padding: 0.6rem 1.5rem;
  border: 1.5px solid var(--color-accent);
  border-radius: 999px;
  background: transparent;
  font-family: inherit;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-accent);
  cursor: pointer;
  transition: background-color var(--duration-base) ease, color var(--duration-base) ease;
}

.gallery-more:hover {
  background: var(--color-accent);
  color: white;
}

/* Filtres avant/après : masquage des cartes non concernées */
.compare-card.is-hidden {
  display: none;
}

@media (max-width: 640px) {
  .gallery-section__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

.portfolio-item:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* Mobile / tactile : infos toujours visibles */
@media (hover: none) {
  .portfolio-item__overlay {
    opacity: 1;
  }
}

/* ─── Lightbox ─── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(15, 15, 18, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
}

.lightbox.is-open {
  display: flex;
}

.lightbox__figure {
  max-width: min(92vw, 70rem);
  text-align: center;
}

.lightbox__figure img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  margin-inline: auto;
}

.lightbox__figure figcaption {
  margin-top: var(--space-sm);
  color: rgba(247, 245, 242, 0.85);
  font-size: var(--text-sm);
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: white;
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background var(--duration-fast);
}

.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover {
  background: var(--color-accent);
}

.lightbox__close {
  top: var(--space-md);
  right: var(--space-md);
}

.lightbox__prev {
  left: var(--space-md);
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__next {
  right: var(--space-md);
  top: 50%;
  transform: translateY(-50%);
}

/* ─── CTA sticky mobile ─── */
.sticky-cta {
  position: fixed;
  left: var(--space-sm);
  right: var(--space-sm);
  bottom: var(--space-sm);
  z-index: 1050;
  display: none;
  gap: 0.6rem;
  transform: translateY(140%);
  transition: transform 0.4s var(--ease-out-expo);
}

.sticky-cta.is-visible {
  transform: translateY(0);
}

.sticky-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(26, 26, 31, 0.35);
}

.sticky-cta__btn--primary {
  flex: 1;
  padding: 1rem;
  background: var(--color-accent);
  color: white;
}

.sticky-cta__btn--phone {
  width: 3.4rem;
  background: var(--color-helmet);
  color: var(--color-anthracite);
}

@media (max-width: 768px) {
  .sticky-cta {
    display: flex;
  }

  body {
    padding-bottom: 4.5rem;
  }
}

/* ─── Logos certifications ─── */
.cert-card__icon--logo {
  background: white;
  width: 5.5rem;
  height: 5.5rem;
  padding: 0.5rem;
}

.cert-card__icon--logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Section Engagements : fond pierre teinté pour la détacher des sections blanches */
.section--certs {
  position: relative;
  background:
    radial-gradient(60rem 24rem at 12% 0%, rgba(0, 145, 146, 0.06), transparent 60%),
    radial-gradient(50rem 22rem at 92% 100%, rgba(242, 194, 48, 0.08), transparent 60%),
    var(--color-stone-light);
}

/* Filet dégradé centré marquant l'entrée de la section */
.section--certs::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(72rem, 90%);
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0, 145, 146, 0.4), transparent);
}

.section--certs .cert-card {
  border: 1px solid rgba(31, 41, 51, 0.05);
}

/* Icône SVG au même gabarit que les logos officiels */
.cert-card__icon--svg {
  color: var(--color-accent);
  border: 1px solid rgba(0, 145, 146, 0.2);
}

.cert-card__icon--svg svg {
  width: 62%;
  height: 62%;
}

/* Badge « aides de l'État » sur les cartes RGE */
.cert-card__badge {
  display: inline-block;
  margin-bottom: 0.6rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--color-anthracite);
  background: rgba(242, 194, 48, 0.25);
  border: 1px solid rgba(242, 194, 48, 0.6);
}

/* Rangée d'actions sous les cartes engagements */
.cert-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
  flex-wrap: wrap;
}

.footer-logos {
  display: flex;
  gap: 0.6rem;
  margin-top: var(--space-md);
}

.footer-logos img {
  height: 3.4rem;
  width: auto;
  background: white;
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius-sm);
}

.footer-certifications img {
  height: 1.9rem;
  width: auto;
  background: white;
  padding: 0.2rem 0.35rem;
  border-radius: var(--radius-sm);
}

/* ─── Cartes Google Maps ─── */
.maps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.map-embed {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.map-embed__label {
  padding: 0.75rem 1rem;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-anthracite);
}

.map-embed iframe {
  display: block;
  width: 100%;
  height: 240px;
  border: 0;
}

/* Placeholder RGPD : la carte ne se charge qu'au clic */
.map-embed__load {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  height: 240px;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-anthracite);
  background:
    radial-gradient(circle at 30% 30%, rgba(0, 145, 146, 0.08), transparent 60%),
    radial-gradient(circle at 75% 70%, rgba(242, 194, 48, 0.1), transparent 55%),
    #eef0ee;
  transition: background-color var(--duration-base) ease;
}

.map-embed__load:hover {
  background-color: #e4e8e4;
}

.map-embed__load .map-embed__pin {
  font-size: 1.6rem;
}

.map-embed__load small {
  font-size: var(--text-xs);
  font-weight: 400;
  color: var(--color-anthracite-muted);
  max-width: 22ch;
  text-align: center;
}

/* Message d'état du formulaire de contact */
.form-status {
  margin-top: var(--space-sm);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(0, 145, 146, 0.15);
  border: 1px solid rgba(0, 145, 146, 0.4);
  font-size: var(--text-sm);
  color: var(--color-cream, #f7f5f2);
}

@media (max-width: 1024px) {
  .maps-grid {
    grid-template-columns: 1fr;
  }
}

/* ─── Carte d'intervention (image réelle du site) ─── */
.zones-map--img {
  aspect-ratio: auto;
  background: white;
  padding: var(--space-md);
}

.zones-map--img img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* ─── Formulaire ─── */
.form-group--highlight select {
  border-color: rgba(0, 145, 146, 0.5);
}

/* ─── Grain subtil sur les sections sombres ─── */
.section--dark,
.stats-band {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.025 0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ─── Nav active ─── */
.site-nav__link.is-active,
.nav-dropdown__toggle.is-active {
  color: var(--color-off-white);
}

.site-nav__link.is-active::after {
  width: 100%;
}

/* ─── Footer v2 ─── */
.site-footer {
  padding-block: 0;
  border-top: none;
}

/* Bandeau CTA au-dessus du footer */
.footer-cta {
  background: linear-gradient(120deg, var(--color-accent) 0%, #006b6c 100%);
}

.footer-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap;
  padding-block: var(--space-lg);
}

.footer-cta__label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 0.35rem;
}

.footer-cta__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: white;
  max-width: 34rem;
  line-height: 1.25;
}

.footer-cta__actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.footer-cta__btn {
  background: white;
  color: var(--color-anthracite);
}

.footer-cta__btn:hover {
  background: var(--color-anthracite);
  color: white;
}

.footer-cta__phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: white;
  white-space: nowrap;
  transition: color var(--duration-fast);
}

.footer-cta__phone svg {
  color: var(--color-helmet);
}

.footer-cta__phone:hover {
  color: var(--color-helmet);
}

/* Corps du footer */
.footer-main {
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-md);
}

.site-footer .footer-grid {
  grid-template-columns: 1.6fr 1fr 1fr 1.5fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer-brand p {
  font-size: var(--text-sm);
  line-height: 1.7;
}

.site-footer .footer-col h4 {
  position: relative;
  padding-bottom: 0.6rem;
  margin-bottom: var(--space-sm);
}

.site-footer .footer-col h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 2rem;
  height: 2px;
  background: var(--color-accent);
}

.site-footer .footer-col ul {
  gap: 0.55rem;
}

.site-footer .footer-col a {
  display: inline-block;
  transition: color var(--duration-fast), transform var(--duration-fast);
}

.site-footer .footer-col a:hover {
  color: var(--color-accent);
  transform: translateX(3px);
}

/* Colonne contact avec icônes */
.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: var(--text-sm);
}

.footer-contact svg {
  flex-shrink: 0;
  margin-top: 0.2rem;
  color: var(--color-accent);
}

.footer-contact a {
  color: var(--color-off-white);
  font-weight: 600;
}

.footer-contact small {
  display: block;
  font-size: var(--text-xs);
  color: rgba(247, 245, 242, 0.5);
}

.footer-contact--agences {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-contact--agences span {
  line-height: 1.5;
  font-weight: 400;
  color: rgba(247, 245, 242, 0.65);
}

.footer-contact__map {
  color: var(--color-off-white) !important;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(0, 145, 146, 0.5);
  text-underline-offset: 3px;
}

.site-footer .footer-col .footer-contact__map:hover {
  color: var(--color-accent) !important;
}

/* Bas de page */
.site-footer .footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  flex-wrap: wrap;
  padding-block: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: var(--text-xs);
  color: rgba(247, 245, 242, 0.5);
}

.site-footer .footer-bottom a {
  color: rgba(247, 245, 242, 0.75);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--duration-fast);
}

.site-footer .footer-bottom a:hover {
  color: var(--color-accent);
}

.footer-bottom__center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.footer-bottom__tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-sm);
  color: rgba(247, 245, 242, 0.4);
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social a {
  width: 2.2rem;
  height: 2.2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(247, 245, 242, 0.7);
  transition: background var(--duration-fast), color var(--duration-fast),
              border-color var(--duration-fast), transform var(--duration-fast);
}

.footer-social a:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: white;
  transform: translateY(-3px);
}

.back-to-top {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: rgba(247, 245, 242, 0.7);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background var(--duration-fast), color var(--duration-fast),
              border-color var(--duration-fast), transform var(--duration-fast);
}

.back-to-top:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: white;
  transform: translateY(-3px);
}

@media (max-width: 1024px) {
  .site-footer .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .site-footer .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .footer-cta__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ─── Corrections menu mobile ─── */
@media (max-width: 768px) {
  /* backdrop-filter sur le header crée un « containing block » qui écrase
     le panneau de navigation en position fixed → fond opaque simple à la place */
  .site-header.is-scrolled {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(26, 26, 31, 0.98);
  }

  /* Header solide quand le menu est ouvert (même sur l'accueil transparent) */
  .site-header.nav-open,
  .site-header:has(.site-nav.is-open) {
    background: var(--color-anthracite);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  /* Le mega-menu reprend une largeur et une grille adaptées au mobile */
  .nav-dropdown__menu--mega {
    min-width: 0;
    width: 100%;
    padding: 0;
  }

  .nav-dropdown.is-open .nav-dropdown__menu--mega {
    max-height: 100rem;
  }

  .mega-menu {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
    width: 100%;
    padding: 0.75rem 1.25rem 0;
  }

  .mega-menu__item {
    padding: 0 !important;
  }

  .mega-menu__item img {
    height: 4.25rem;
  }

  .mega-menu__item span {
    text-align: center;
  }

  .mega-menu__links {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    border-top: none;
    margin-top: 0.75rem;
    padding: 0 1.25rem 0.75rem;
  }

  .mega-menu__cta {
    margin-left: 0;
  }

  /* Sous-menus simples : liens un peu plus espacés au doigt */
  .nav-dropdown__menu a {
    padding: 0.75rem 1rem;
  }
}
