/* ==========================================================================
   BMServices — Sections
   Hero · Bandeau · Services · Urgence · Atouts · Processus · Réalisations
   Zone · Avis · FAQ · Devis · Contact · En-têtes de pages internes
   ========================================================================== */

/* ==========================================================================
   1. Hero
   ========================================================================== */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(100svh, 940px);
  padding-top: calc(var(--nav-h) + var(--safe-top) + clamp(2rem, 1rem + 5vw, 4.5rem));
  padding-bottom: clamp(2.5rem, 1.5rem + 5vw, 5rem);
  background: var(--grad-ink);
  color: #fff;
  overflow: hidden;
}

.hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }

.hero__glow-a {
  width: 46rem; height: 46rem;
  top: -18rem; right: -14rem;
  background: radial-gradient(circle, rgba(37, 99, 235, .55), transparent 66%);
  animation: float-slow 17s var(--ease-in-out) infinite;
}
.hero__glow-b {
  width: 34rem; height: 34rem;
  bottom: -14rem; left: -10rem;
  background: radial-gradient(circle, rgba(6, 182, 212, .4), transparent 66%);
  animation: float-slow 21s var(--ease-in-out) infinite reverse;
}
.hero__glow-c {
  width: 24rem; height: 24rem;
  top: 44%; left: 46%;
  background: radial-gradient(circle, rgba(249, 115, 22, .17), transparent 68%);
  animation: float-slow 26s var(--ease-in-out) infinite;
}

@keyframes float-slow {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(2.5rem, 2rem, 0) scale(1.11); }
}

/* Fine trame lumineuse — rappel « plan technique » */
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 70% at 30% 40%, #000 10%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 30% 40%, #000 10%, transparent 78%);
}

/* Texte à gauche, objet 3D à droite sur écran large ; empilés sur mobile. */
.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  gap: clamp(2.5rem, 1.4rem + 4.5vw, 4rem);
  align-items: center;
  width: 100%;
  text-align: center;
}
@media (min-width: 62rem) {
  .hero__inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    text-align: left;
  }
}

.hero__badge { margin-bottom: var(--sp-5); }

.hero__title {
  font-size: var(--fs-4xl);
  line-height: .98;
  margin-bottom: var(--sp-5);
}
.hero__title .brand-line { display: block; }
.hero__title .sub-line {
  display: block;
  margin-top: .28em;
  font-size: clamp(1.0625rem, .78rem + 1.4vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: #b9c7e2;
}
.hero__title .dot {
  display: inline-block;
  margin-inline: .45em;
  color: var(--aqua-400);
  transform: translateY(-.08em);
}

.hero__lead {
  max-width: 40rem;
  margin: 0 auto var(--sp-6);
  font-size: var(--fs-md);
  color: #b7c4dd;
}

.hero__actions { margin-bottom: var(--sp-6); justify-content: center; }

.hero__note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-size: var(--fs-xs);
  color: #8fa0be;
}

@media (min-width: 62rem) {
  .hero__lead { margin-inline: 0; }
  .hero__actions { justify-content: flex-start; }
  .hero__note { justify-content: flex-start; }
}
.hero__note svg { width: 15px; height: 15px; color: var(--aqua-400); flex: none; }

/* ==========================================================================
   Zone d'intervention
   --------------------------------------------------------------------------
   Une carte stylisée des huit départements franciliens, et un champ de code
   postal qui donne une réponse ferme. C'est la première question que se pose
   quelqu'un qui découvre un artisan : « est-ce qu'il vient chez moi ? »
   ========================================================================== */
.zone {
  --taille: clamp(15rem, 10rem + 22vw, 26rem);
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: var(--sp-4);
  padding: var(--sp-5);
  border: 1px solid rgba(103, 232, 249, .22);
  border-radius: var(--r-xl);
  background: rgba(9, 16, 34, .5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.zone__halo {
  position: absolute;
  inset: -18%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, .3), rgba(6, 182, 212, .1) 45%, transparent 70%);
  filter: blur(30px);
  pointer-events: none;
}

.zone__carte {
  width: var(--taille);
  max-width: 100%;
  height: auto;
  overflow: visible;
}

/* Chaque département s'allume à son tour. La variable --i porte son rang,
   ce qui donne la vague sans huit règles séparées. */
.dep {
  fill: rgba(37, 99, 235, .22);
  stroke: rgba(103, 232, 249, .45);
  stroke-width: .9;
  stroke-linejoin: round;
  transition: fill var(--t-base) var(--ease-out), stroke var(--t-base) var(--ease-out);
  animation: dep-onde 9s var(--ease-in-out) infinite;
  animation-delay: calc(var(--i) * .55s);
}
@keyframes dep-onde {
  0%, 82%, 100% { fill: rgba(37, 99, 235, .22); stroke: rgba(103, 232, 249, .45); }
  88%           { fill: rgba(6, 182, 212, .55);  stroke: rgba(103, 232, 249, .95); }
}

.zone__num text {
  font-family: var(--font-display);
  font-size: 5.6px;
  font-weight: 700;
  fill: #eaf2ff;
  text-anchor: middle;
  dominant-baseline: middle;
  pointer-events: none;
  paint-order: stroke;
  stroke: rgba(4, 10, 24, .55);
  stroke-width: 1.4px;
  stroke-linejoin: round;
}

/* Réponse à un code postal : le département concerné reste allumé, les
   autres s'effacent pour qu'on le trouve du premier coup d'œil. */
.zone.est-repondu .dep { animation: none; fill: rgba(37, 99, 235, .12); stroke: rgba(103, 232, 249, .22); }
.zone.est-repondu .dep.est-trouve {
  fill: rgba(6, 182, 212, .62);
  stroke: #a8ecf9;
  stroke-width: 1.4;
}
/* Une fois la réponse donnée, les autres numéros s'effacent — mais celui
   qu'on cherche doit rester le plus lisible de la carte. */
.zone.est-repondu .zone__num text { fill: #6d7d9b; }
.zone.est-repondu .zone__num text.est-trouve { fill: #ffffff; font-size: 6.6px; }

/* Les quatre départements de la petite couronne tiennent dans un mouchoir de
   poche : à taille égale, leurs numéros se recouvraient. */
.zone__num text.est-petit { font-size: 3.7px; stroke-width: 1px; }
.zone.est-repondu .zone__num text.est-petit.est-trouve { font-size: 5.2px; }

.zone__form { display: grid; gap: .5rem; justify-items: center; }
.zone__label {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: #9fb2d0;
  text-align: center;
}

/* Cinq chiffres n'ont pas besoin d'un champ pleine largeur : posé sur un
   bandeau sombre, le grand bloc blanc du formulaire écrasait la carte. Une
   pastille à la mesure de ce qu'on y tape, dans la matière du panneau. */
.zone__cp {
  width: 7.5ch;
  padding: .5rem .5rem;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: .18em;
  text-indent: .18em;            /* recentre : l'espacement suit le dernier chiffre */
  color: #ffffff;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(103, 232, 249, .3);
  border-radius: var(--r-pill);
  transition: border-color var(--t-fast) var(--ease-out),
              background-color var(--t-fast) var(--ease-out),
              box-shadow var(--t-fast) var(--ease-out);
}
.zone__cp::placeholder {
  color: rgba(159, 178, 208, .55);
  font-weight: 500;
  letter-spacing: .12em;
}
.zone__cp:focus {
  outline: none;
  border-color: #67e8f9;
  background: rgba(255, 255, 255, .13);
  box-shadow: 0 0 0 3px rgba(103, 232, 249, .18);
}

.zone__reponse {
  margin: 0;
  min-height: 2.6em;
  font-size: var(--fs-sm);
  line-height: 1.4;
  color: #9fb2d0;
  text-align: center;
}
.zone__reponse strong { color: #fff; }
.zone__reponse.est-oui strong { color: #6ee7b7; }
.zone__reponse.est-ailleurs strong { color: #fbbf24; }
.zone__reponse a { color: #a8ecf9; text-decoration: underline; text-underline-offset: 2px; }

/* Hors de l'écran, la vague s'arrête : elle ne sert à personne et
   consomme la batterie pour rien. */
.zone.est-hors-champ .dep { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  .dep { animation: none; }
}

/* --- Anneaux décoratifs, centrés derrière le contenu --- */
.hero__rings {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: .75;
}
.hero__ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .1);
}
.hero__ring--1 { width: 26rem; height: 26rem; animation: spin-slow 32s linear infinite; border-style: dashed; }
.hero__ring--2 { width: 38rem; height: 38rem; border-color: rgba(34, 211, 238, .14); animation: spin-slow 46s linear infinite reverse; }
.hero__ring--3 { width: 52rem; height: 52rem; border-color: rgba(255, 255, 255, .05); }

.hero__ring--1::after {
  content: "";
  position: absolute;
  top: -5px; left: 50%;
  width: 10px; height: 10px;
  margin-left: -5px;
  border-radius: 50%;
  background: var(--aqua-400);
  box-shadow: 0 0 18px 4px rgba(34, 211, 238, .8);
}

@keyframes spin-slow { to { transform: rotate(360deg); } }

@media (max-width: 61.99rem) {
  .hero__ring--3 { display: none; }
}
@media (max-width: 30rem) {
  .hero__ring--2 { display: none; }
}

/* Indicateur de défilement */
.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 1.25rem;
  z-index: 3;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: .5rem;
  font-size: .625rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #7e8fae;
}
.hero__scroll .mouse {
  width: 22px; height: 34px;
  border: 1.5px solid rgba(255, 255, 255, .3);
  border-radius: var(--r-pill);
  position: relative;
}
.hero__scroll .mouse::after {
  content: "";
  position: absolute;
  top: 6px; left: 50%;
  width: 3px; height: 6px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--aqua-400);
  animation: scroll-hint 1.9s var(--ease-in-out) infinite;
}
@keyframes scroll-hint {
  0%   { transform: translateY(0); opacity: 1; }
  70%  { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}
@media (max-width: 61.99rem) { .hero__scroll { display: none; } }

/* Animation d'entrée en cascade */
.hero .fade-up,
.page-hero .fade-up {
  opacity: 0;
  transform: translateY(28px);
  animation: hero-in 900ms var(--ease-spring) forwards;
  animation-delay: var(--d, 0ms);
}
@keyframes hero-in {
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero .fade-up,
  .page-hero .fade-up { opacity: 1; transform: none; animation: none; }
  .hero__ring, .glow { animation: none !important; }
}

/* ==========================================================================
   2. Bandeau défilant des prestations
   ========================================================================== */
.marquee {
  position: relative;
  padding-block: 1.125rem;
  background: var(--ink-950);
  border-block: 1px solid rgba(255, 255, 255, .07);
  overflow: hidden;
  --mask: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: var(--mask);
  -webkit-mask-image: var(--mask);
}
.marquee__track {
  display: flex;
  width: max-content;
  gap: 0;
  animation: marquee 42s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding-right: 2.5rem;
  flex: none;
}
.marquee__item {
  display: flex;
  align-items: center;
  gap: .625rem;
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: .01em;
  color: #93a3c1;
  white-space: nowrap;
}
.marquee__item svg { width: 15px; height: 15px; color: var(--aqua-400); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; flex-wrap: wrap; width: 100%; justify-content: center; }
}

/* ==========================================================================
   3. Services
   ========================================================================== */
.services__grid {
  display: grid;
  gap: var(--sp-5);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}
/* Les quatre métiers tiennent sur une seule ligne dès que la place le permet */
@media (min-width: 62rem) {
  .services__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-4); }
}

.service-card { min-height: 100%; }
.service-card .card__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); }

.service-card__index {
  position: absolute;
  top: 1.25rem; right: 1.5rem;
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1;
  color: var(--slate-900);
  opacity: .05;
  transition: opacity var(--t-base) var(--ease-out), transform var(--t-base) var(--ease-spring);
}
.card:hover .service-card__index { opacity: .1; transform: translateY(-3px); }

/* Bandeau lumineux en haut de carte */
.service-card::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 480ms var(--ease-out);
}
.service-card:hover::after { transform: scaleX(1); }

/* ==========================================================================
   4. Urgence
   ========================================================================== */
.emergency {
  position: relative;
  padding-block: clamp(3rem, 2.2rem + 3.4vw, 4.75rem);
  background: linear-gradient(120deg, #12060b 0%, #1b0d10 40%, #0b1226 100%);
  color: #fff;
  overflow: hidden;
}
.emergency__glow {
  width: 40rem; height: 40rem;
  top: -20rem; left: -8rem;
  background: radial-gradient(circle, rgba(249, 115, 22, .34), transparent 66%);
  opacity: .8;
}
.emergency__glow-2 {
  width: 32rem; height: 32rem;
  bottom: -18rem; right: -6rem;
  background: radial-gradient(circle, rgba(37, 99, 235, .34), transparent 66%);
}

.emergency__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--sp-6);
  align-items: center;
}
@media (min-width: 54rem) {
  .emergency__inner { grid-template-columns: 1fr auto; gap: var(--sp-8); }
}

.emergency h2 { color: #fff; margin-bottom: var(--sp-3); }
.emergency p { color: #d6c3ba; max-width: 40rem; }
.emergency__badge {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin-bottom: var(--sp-4);
  padding: .4375rem .875rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: #ffd7b8;
  background: rgba(249, 115, 22, .14);
  border: 1px solid rgba(249, 115, 22, .32);
  border-radius: var(--r-pill);
}

.emergency__phone {
  display: grid;
  gap: .875rem;
  justify-items: start;
}
@media (min-width: 54rem) { .emergency__phone { justify-items: end; } }

.emergency__number {
  display: inline-flex;
  align-items: center;
  gap: .875rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.05rem + 2.2vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  white-space: nowrap;
}
.emergency__number:hover { color: var(--flame-400); }
.emergency__number .ring {
  position: relative;
  width: clamp(48px, 4vw, 60px);
  height: clamp(48px, 4vw, 60px);
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--grad-flame);
  box-shadow: var(--sh-flame);
}
.emergency__number .ring svg { width: 45%; height: 45%; color: #fff; }
.emergency__number .ring::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--flame-500);
  animation: pulse-ring 2.6s var(--ease-out) infinite;
}
.emergency__hint { font-size: var(--fs-xs); color: #b09a92; }

/* ==========================================================================
   5. Atouts (Pourquoi BMServices)
   ========================================================================== */
.why__grid {
  display: grid;
  gap: var(--sp-5);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15.5rem), 1fr));
}

.why-item {
  position: relative;
  padding: var(--sp-5);
  border-radius: var(--r-lg);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  transition: transform var(--t-base) var(--ease-spring), box-shadow var(--t-base) var(--ease-out), border-color var(--t-base);
}
.why-item:hover { transform: translateY(-5px); box-shadow: var(--sh-md); border-color: var(--brand-100); }

.why-item__icon {
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: var(--sp-4);
  border-radius: 13px;
  color: #fff;
  background: var(--grad-brand);
  box-shadow: var(--sh-brand);
  transition: transform var(--t-base) var(--ease-spring);
}
.why-item:hover .why-item__icon { transform: rotate(-7deg) scale(1.06); }
.why-item__icon svg { width: 22px; height: 22px; }
.why-item h3 { font-size: var(--fs-md); margin-bottom: .375rem; }
.why-item p { font-size: var(--fs-sm); color: var(--text-muted); }

/* Visuel « diplômes » mis en avant */
.why__highlight {
  display: grid;
  gap: var(--sp-5);
  align-items: center;
  margin-top: var(--sp-7);
  padding: clamp(1.5rem, 1.1rem + 1.8vw, 2.5rem);
  border-radius: var(--r-2xl);
  background: var(--grad-ink);
  color: #fff;
  overflow: hidden;
  position: relative;
}
@media (min-width: 50rem) {
  .why__highlight { grid-template-columns: auto 1fr auto; gap: var(--sp-6); }
}
.why__highlight h3 { color: #fff; margin-bottom: .5rem; }
.why__highlight p { color: #a9b7d2; font-size: var(--fs-sm); max-width: 44rem; }
.why__highlight-icon {
  width: 62px; height: 62px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: var(--aqua-300);
  background: rgba(34, 211, 238, .12);
  border: 1px solid rgba(34, 211, 238, .28);
}
.why__highlight-icon svg { width: 30px; height: 30px; }

/* ==========================================================================
   6. Processus (timeline)
   ========================================================================== */
.process { position: relative; }
.process__glow { width: 40rem; height: 40rem; top: -10rem; right: -14rem; background: radial-gradient(circle, rgba(37, 99, 235, .3), transparent 68%); }

.timeline {
  position: relative;
  display: grid;
  gap: var(--sp-5);
  counter-reset: step;
}
@media (min-width: 56rem) {
  .timeline { grid-template-columns: repeat(4, 1fr); gap: var(--sp-5); }
}

/* Rail de progression */
.timeline__rail {
  display: none;
  position: absolute;
  top: 29px;
  left: 12.5%; right: 12.5%;
  height: 2px;
  background: rgba(255, 255, 255, .1);
  border-radius: 2px;
  overflow: hidden;
}
.timeline__rail span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--grad-brand);
  transform: scaleX(var(--fill, 0));
  transform-origin: left;
  transition: transform 900ms var(--ease-out);
}
@media (min-width: 56rem) { .timeline__rail { display: block; } }

.step { position: relative; text-align: left; }
@media (min-width: 56rem) { .step { text-align: center; } }

.step__dot {
  position: relative;
  z-index: 2;
  width: 58px; height: 58px;
  display: grid;
  place-items: center;
  margin-bottom: var(--sp-4);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 700;
  color: #fff;
  background: var(--ink-800);
  border: 2px solid rgba(255, 255, 255, .14);
  transition: background var(--t-slow) var(--ease-out), border-color var(--t-slow), box-shadow var(--t-slow), transform var(--t-base) var(--ease-spring);
}
@media (min-width: 56rem) { .step__dot { margin-inline: auto; } }

.step.is-active .step__dot {
  background: var(--grad-brand);
  border-color: transparent;
  box-shadow: var(--sh-brand);
  transform: scale(1.06);
}

.step h3 { font-size: var(--fs-md); color: #fff; margin-bottom: .4375rem; }
.step p { font-size: var(--fs-sm); color: #a3b1cc; max-width: 24rem; }
@media (min-width: 56rem) { .step p { margin-inline: auto; } }

/* Connecteur vertical en mobile */
@media (max-width: 55.99rem) {
  .step:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 28px;
    top: 62px;
    width: 2px;
    height: calc(100% - 46px);
    background: linear-gradient(to bottom, rgba(255, 255, 255, .18), transparent);
  }
  .step { padding-left: 0; }
}

/* ==========================================================================
   7. Réalisations (galerie)
   ========================================================================== */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: var(--sp-6);
}
.filter {
  min-height: 44px;
  padding: .625rem 1.25rem;
  font-size: var(--fs-xs);
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text-muted);
  background: var(--white);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-pill);
  transition: all var(--t-fast) var(--ease-out);
}
.filter:hover { border-color: var(--brand-400); color: var(--brand-700); }
.filter[aria-pressed="true"] {
  color: #fff;
  background: var(--grad-brand);
  border-color: transparent;
  box-shadow: var(--sh-brand);
}

.gallery {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
  padding: 0;
  margin: 0;
  list-style: none;
}

.gallery__item {
  transition: opacity 380ms var(--ease-out), transform 380ms var(--ease-out);
}
.gallery__item[hidden] { display: none; }
.gallery__item.is-filtered { opacity: 0; transform: scale(.96); }

.gallery__btn {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--slate-100);
  border: 1px solid var(--border);
  cursor: zoom-in;
  transition: transform var(--t-base) var(--ease-spring), box-shadow var(--t-base) var(--ease-out);
}
.gallery__btn img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease-out), filter var(--t-base);
}
.gallery__btn:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); }
.gallery__btn:hover img { transform: scale(1.06); }

.gallery__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: .25rem;
  padding: 1rem;
  text-align: left;
  color: #fff;
  background: linear-gradient(to top, rgba(4, 7, 15, .88) 0%, rgba(4, 7, 15, .3) 45%, transparent 75%);
  opacity: 0;
  transition: opacity var(--t-base) var(--ease-out);
}
.gallery__btn:hover .gallery__overlay,
.gallery__btn:focus-visible .gallery__overlay { opacity: 1; }
.gallery__overlay strong { font-family: var(--font-display); font-size: var(--fs-sm); }
.gallery__overlay span { font-size: var(--fs-xs); color: #b9c7e2; }

.gallery__tag {
  position: absolute;
  top: .75rem; left: .75rem;
  padding: .3125rem .625rem;
  font-size: .6875rem;
  font-weight: 600;
  color: #fff;
  background: rgba(4, 7, 15, .6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: var(--r-pill);
}

/* ==========================================================================
   7 bis. Comparateur avant / après
   Deux images superposées ; celle du dessus est rognée à la position du
   curseur. Le déplacement est piloté par un <input type="range"> invisible :
   souris, doigt et clavier fonctionnent sans code supplémentaire.
   ========================================================================== */
.compare-grid {
  display: grid;
  gap: var(--sp-5);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}

.compare {
  --pos: 50%;
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--ink-800);
  border: 1px solid var(--border);
  box-shadow: var(--sh-md);
  transition: transform var(--t-base) var(--ease-spring), box-shadow var(--t-base) var(--ease-out);
}
.compare:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }

.compare img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}

/* Image « avant » au-dessus, rognée à droite de la poignée */
.compare__before {
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
  z-index: 2;
}

/* Trait de séparation + poignée */
.compare__line {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--pos);
  z-index: 3;
  width: 3px;
  margin-left: -1.5px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 0 14px rgba(0, 0, 0, .5);
  pointer-events: none;
}

.compare__handle {
  position: absolute;
  top: 50%; left: 50%;
  width: 46px; height: 46px;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ink-900);
  background: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .45);
  transition: transform var(--t-base) var(--ease-spring), box-shadow var(--t-base) var(--ease-out);
}
.compare__handle svg { width: 22px; height: 22px; }

/* Invitation au survol, retour appuyé pendant le glissement */
.compare:hover .compare__handle { transform: translate(-50%, -50%) scale(1.1); }
.compare.is-dragging .compare__handle {
  transform: translate(-50%, -50%) scale(1.16);
  box-shadow: 0 8px 26px rgba(0, 0, 0, .6);
}
.compare.is-dragging { cursor: grabbing; }
.compare.is-dragging .compare__range { cursor: grabbing; }

/* Curseur natif rendu invisible mais toujours actionnable */
.compare__range {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: ew-resize;
  appearance: none;
  background: transparent;
}
.compare__range::-webkit-slider-thumb { appearance: none; width: 46px; height: 100%; }
.compare__range::-moz-range-thumb { width: 46px; height: 100%; border: 0; }
.compare__range:focus-visible { outline: none; }
.compare:has(.compare__range:focus-visible) {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

/* Étiquettes Avant / Après */
.compare__tag {
  position: absolute;
  bottom: .75rem;
  z-index: 3;
  padding: .3125rem .75rem;
  font-family: var(--font-display);
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(4, 7, 15, .66);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: var(--r-pill);
  pointer-events: none;
  transition: opacity var(--t-base) var(--ease-out);
}
.compare__tag--before { left: .75rem; opacity: var(--before-op, 1); }
.compare__tag--after { right: .75rem; }

.compare-caption {
  margin-top: .875rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  font-family: var(--font-display);
  color: var(--text);
}
.compare-caption span {
  display: block;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 400;
  color: var(--text-subtle);
  margin-top: .15rem;
}

/* ==========================================================================
   8. Zone d'intervention
   ========================================================================== */
.zone__inner {
  display: grid;
  gap: clamp(2rem, 1.4rem + 3vw, 4rem);
  align-items: center;
}
@media (min-width: 58rem) { .zone__inner { grid-template-columns: 1fr 1fr; } }

.zone__list {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  padding: 0;
  margin: var(--sp-5) 0 0;
  list-style: none;
}
.zone__list li {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem 1rem;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--slate-900);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  transition: transform var(--t-fast) var(--ease-spring), border-color var(--t-fast), box-shadow var(--t-fast);
}
.zone__list li:hover { transform: translateY(-2px); border-color: var(--brand-300); box-shadow: var(--sh-sm); }
.zone__list .num {
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--brand-600);
}

/* Radar Île-de-France */
.radar {
  position: relative;
  aspect-ratio: 1;
  max-width: 30rem;
  margin-inline: auto;
  width: 100%;
  display: grid;
  place-items: center;
  border-radius: var(--r-2xl);
  background: var(--grad-ink);
  overflow: hidden;
  box-shadow: var(--sh-xl);
}
.radar::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 40px 40px;
}
.radar__circle {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(34, 211, 238, .22);
}
.radar__circle--1 { width: 26%; height: 26%; }
.radar__circle--2 { width: 50%; height: 50%; border-style: dashed; }
.radar__circle--3 { width: 74%; height: 74%; }
.radar__circle--4 { width: 96%; height: 96%; border-color: rgba(34, 211, 238, .1); }

.radar__sweep {
  position: absolute;
  width: 96%; height: 96%;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(34, 211, 238, .22) 42deg, transparent 62deg);
  animation: spin-slow 6s linear infinite;
}
@media (prefers-reduced-motion: reduce) { .radar__sweep { animation: none; opacity: .5; } }

.radar__center {
  position: relative;
  z-index: 3;
  display: grid;
  place-items: center;
  gap: .1rem;
  padding: 1rem 1.25rem;
  text-align: center;
  border-radius: var(--r-lg);
  background: rgba(9, 15, 32, .8);
  border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.radar__center strong { font-family: var(--font-display); font-size: var(--fs-md); color: #fff; }
.radar__center span { font-size: var(--fs-xs); color: #90a1bf; }

.radar__pin {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--aqua-400);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, .18);
  animation: pin-blink 3.2s var(--ease-in-out) infinite;
  animation-delay: var(--pd, 0ms);
}
@keyframes pin-blink {
  0%, 100% { opacity: .35; transform: scale(.85); }
  50%      { opacity: 1; transform: scale(1); }
}

/* ==========================================================================
   9. Avis clients
   ========================================================================== */
.reviews__grid {
  display: grid;
  gap: var(--sp-5);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
}

.review {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  padding: var(--sp-5);
  background: var(--white);
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-lg);
  transition: transform var(--t-base) var(--ease-spring), box-shadow var(--t-base);
}
.review:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.review__quote { font-size: var(--fs-sm); color: var(--text-muted); font-style: italic; }
.review__author { display: flex; align-items: center; gap: .75rem; margin-top: auto; }
.review__avatar {
  width: 40px; height: 40px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-sm);
  color: var(--brand-700);
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
}
.review__author strong { display: block; font-size: var(--fs-sm); }
.review__author span { font-size: var(--fs-xs); color: var(--text-subtle); }

.reviews__notice {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  max-width: 48rem;
  margin: var(--sp-6) auto 0;
  padding: 1rem 1.25rem;
  font-size: var(--fs-xs);
  color: #92400e;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--r-md);
}
.reviews__notice svg { width: 18px; height: 18px; flex: none; margin-top: .1rem; }

/* ==========================================================================
   10. Devis & contact
   ========================================================================== */
.quote__inner {
  display: grid;
  gap: clamp(2rem, 1.4rem + 3vw, 3.5rem);
  align-items: start;
}
@media (min-width: 60rem) { .quote__inner { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); } }

.quote__card {
  padding: clamp(1.5rem, 1.15rem + 1.6vw, 2.5rem);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  box-shadow: var(--sh-lg);
}

.quote__aside { display: grid; gap: var(--sp-5); }

.contact-tile {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: 1.125rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: transform var(--t-base) var(--ease-spring), box-shadow var(--t-base), border-color var(--t-base);
}
.contact-tile:hover { transform: translateY(-3px); box-shadow: var(--sh-md); border-color: var(--brand-300); }
.contact-tile__icon {
  width: 46px; height: 46px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  background: var(--grad-brand);
}
.contact-tile--call .contact-tile__icon { background: var(--grad-flame); }
.contact-tile__icon svg { width: 21px; height: 21px; }
.contact-tile small { display: block; font-size: var(--fs-xs); color: var(--text-subtle); }
.contact-tile strong {
  font-family: var(--font-display);
  font-size: var(--fs-base);
  color: var(--text);
  word-break: break-word;
}
/* Sous 360 px seulement, l'adresse e-mail se couperait sur sa dernière lettre.
   On la réduit légèrement à cette taille d'écran uniquement ; ailleurs elle
   tient sur une ligne et garde sa taille normale. */
@media (max-width: 22.5rem) {
  .contact-tile[href^="mailto:"] strong {
    font-size: var(--fs-sm);
    letter-spacing: -0.01em;
  }
}
.contact-tile:hover strong { color: var(--brand-700); }

.info-panel {
  padding: var(--sp-5);
  border-radius: var(--r-xl);
  background: var(--grad-ink);
  color: #fff;
}
.info-panel h3 { color: #fff; font-size: var(--fs-md); margin-bottom: var(--sp-4); }
.info-panel ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.info-panel li { display: flex; gap: .625rem; font-size: var(--fs-sm); color: #a9b7d2; }
.info-panel svg { width: 17px; height: 17px; flex: none; color: var(--aqua-400); margin-top: .2rem; }

/* ==========================================================================
   11. En-tête des pages internes
   ========================================================================== */
.page-hero {
  position: relative;
  padding-top: calc(var(--nav-h) + var(--safe-top) + clamp(2.5rem, 1.6rem + 4vw, 4.5rem));
  padding-bottom: clamp(2.5rem, 1.8rem + 3vw, 4rem);
  background: var(--grad-ink);
  color: #fff;
  overflow: hidden;
}
.page-hero__glow { width: 40rem; height: 40rem; top: -22rem; right: -10rem; background: radial-gradient(circle, rgba(37, 99, 235, .45), transparent 66%); }
.page-hero__glow-2 { width: 26rem; height: 26rem; bottom: -16rem; left: -8rem; background: radial-gradient(circle, rgba(6, 182, 212, .32), transparent 66%); }
.page-hero__grille {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(1.75rem, 1rem + 3vw, 3.5rem);
  align-items: center;
}
@media (min-width: 62rem) {
  .page-hero__grille { grid-template-columns: minmax(0, 1fr) 20rem; }
}
.page-hero__inner { max-width: 52rem; }

/* --------------------------------------------------------------------------
   Le signe : la moitié droite du bandeau était vide et immobile. Trois
   anneaux, deux satellites et l'icône du métier — rien que des rotations et
   une mise à l'échelle, donc rien qui coûte au navigateur.
   -------------------------------------------------------------------------- */
.signe {
  position: relative;
  justify-self: center;
  width: clamp(11rem, 44vw, 19rem);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.signe__anneau,
.signe__satellite {
  position: absolute;
  inset: 0;
  margin: auto;
  border-radius: 50%;
}
.signe__anneau { border: 1px solid rgba(103, 232, 249, .2); }
.signe__anneau--1 {
  width: 100%; height: 100%;
  border-style: dashed;
  animation: signe-tourne 38s linear infinite;
}
.signe__anneau--2 {
  width: 72%; height: 72%;
  border-color: rgba(103, 232, 249, .3);
  animation: signe-tourne 26s linear infinite reverse;
}
.signe__anneau--3 { width: 46%; height: 46%; border-color: rgba(255, 255, 255, .09); }

.signe__satellite--1 { width: 100%; height: 100%; animation: signe-tourne 19s linear infinite; }
.signe__satellite--2 { width: 72%; height: 72%; animation: signe-tourne 13s linear infinite reverse; }
.signe__satellite::before {
  content: "";
  position: absolute;
  top: -5px; left: 50%;
  width: 10px; height: 10px;
  margin-left: -5px;
  border-radius: 50%;
  background: var(--aqua-300);
  box-shadow: 0 0 14px rgba(103, 232, 249, .95);
}

.signe__coeur {
  position: relative;
  width: 34%; height: 34%;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--grad-brand);
  box-shadow: 0 0 0 10px rgba(37, 99, 235, .1), 0 22px 44px -20px rgba(37, 99, 235, .95);
  animation: signe-souffle 5s var(--ease-out) infinite;
}
.signe__coeur svg { width: 50%; height: 50%; color: #fff; }

@keyframes signe-tourne { to { transform: rotate(360deg); } }
@keyframes signe-souffle {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.055); }
}

/* Hors de l'écran, tout s'arrête : cette animation ne sert plus personne. */
.signe.est-hors-champ * { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  .signe__anneau, .signe__satellite, .signe__coeur { animation: none; }
}


.page-hero h1 { font-size: var(--fs-3xl); margin-bottom: var(--sp-4); }
.page-hero p { font-size: var(--fs-md); color: #b7c4dd; max-width: 44rem; }
.page-hero .btn-group { margin-top: var(--sp-6); }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem;
  padding: 0;
  margin: 0 0 var(--sp-5);
  list-style: none;
  font-size: var(--fs-xs);
  color: #8fa0be;
}
.breadcrumb a { color: #a9b7d2; }
.breadcrumb a:hover { color: var(--aqua-300); }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: .4rem; opacity: .45; }
.breadcrumb [aria-current="page"] { color: #fff; }

/* --- Corps rédactionnel des pages services --- */
.prose { max-width: 46rem; }
.prose > * + * { margin-top: var(--sp-4); }
/* Une marge basse explicite : « .checklist { margin: 0 } » est déclarée plus
   bas dans ce fichier et annulait la marge haute que la liste tenait de
   « .prose > * + * ». Le titre et sa liste se touchaient. */
.prose h2 { font-size: var(--fs-2xl); margin-top: var(--sp-6); margin-bottom: var(--sp-5); }
.prose h3 { font-size: var(--fs-lg); margin-top: var(--sp-5); margin-bottom: var(--sp-3); }
.prose p, .prose li { color: var(--text-muted); }
.prose ul, .prose ol { padding-left: 1.25rem; display: grid; gap: .5rem; }

/* --------------------------------------------------------------------------
   Les points d'une prestation : trois cartes courtes à la place des blocs de
   deux paragraphes qui se suivaient. On lit en diagonale, ce que fait tout
   le monde sur une page de service.
   -------------------------------------------------------------------------- */
.points {
  display: grid;
  padding-left: 0;
  gap: var(--sp-4);
  margin: var(--sp-5) 0 var(--sp-6);
  padding: 0;
  list-style: none;
}
/* La colonne de texte fait environ trente-cinq rem sur un écran large :
   trois cartes y seraient à l'étroit, les titres passeraient sur deux
   lignes. On laisse la grille décider. */
.points { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.point {
  display: grid;
  gap: .625rem;
  align-content: start;
  padding: var(--sp-4);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
}
.point__ico {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  color: var(--brand-600);
  background: var(--brand-50);
}
.point__ico svg { width: 20px; height: 20px; }
/* Couleurs posées en clair : dans une section sombre, « --text » vaut blanc
   et le texte disparaîtrait sur le fond blanc de la carte. */
.point h3 { margin: 0; font-size: var(--fs-base); color: var(--slate-900); text-wrap: balance; }
.point p { margin: 0; font-size: var(--fs-sm); line-height: 1.65; color: var(--slate-600); }

/* Renvoi vers la page « que faire en attendant » : un encart plutôt qu'un
   titre suivi d'une liste à puce d'un seul élément. */
.encart {
  display: flex;
  gap: .875rem;
  align-items: flex-start;
  padding: var(--sp-4);
  margin: var(--sp-5) 0;
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  border-left: 3px solid var(--brand-500);
  border-radius: var(--r-md);
}
.encart svg { width: 22px; height: 22px; flex: none; color: var(--brand-600); margin-top: .1rem; }
.encart p { margin: 0; font-size: var(--fs-sm); line-height: 1.65; color: var(--slate-700); }
.encart strong { display: block; color: var(--slate-900); }
.encart a { font-weight: 600; }
.prose li::marker { color: var(--brand-500); }
.prose strong { color: var(--text); font-weight: 600; }

.service-layout {
  display: grid;
  gap: clamp(2rem, 1.4rem + 3vw, 3.5rem);
  align-items: start;
}
/* Sans cette ligne, un contenu large — un tableau de prix, un bloc de code —
   impose sa largeur minimale à la colonne et pousse toute la page de côté au
   lieu de défiler dans son propre cadre. */
.service-layout > * { min-width: 0; }
@media (min-width: 62rem) { .service-layout { grid-template-columns: minmax(0, 1fr) 20rem; } }

.sticky-cta {
  display: grid;
  gap: var(--sp-4);
  padding: var(--sp-5);
  background: var(--grad-ink);
  color: #fff;
  border-radius: var(--r-xl);
  box-shadow: var(--sh-lg);
}
@media (min-width: 62rem) { .sticky-cta { position: sticky; top: calc(var(--nav-h) + var(--safe-top) + 1.5rem); } }
.sticky-cta h3 { color: #fff; font-size: var(--fs-md); }
.sticky-cta p { font-size: var(--fs-sm); color: #a9b7d2; }
.sticky-cta hr { border: 0; border-top: 1px solid rgba(255, 255, 255, .1); margin: 0; }

/* Liste de prestations en damier */
.checklist {
  display: grid;
  gap: .75rem;
  padding: 0;
  margin: var(--sp-4) 0 0;
  list-style: none;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: .625rem;
  padding: .875rem 1rem;
  font-size: var(--fs-sm);
  color: var(--slate-900);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: transform var(--t-fast) var(--ease-spring), border-color var(--t-fast), box-shadow var(--t-fast);
}
.checklist li:hover { transform: translateY(-2px); border-color: var(--brand-300); box-shadow: var(--sh-sm); }
.checklist svg { width: 18px; height: 18px; flex: none; color: var(--success-600); margin-top: .1rem; }

/* Cartes de navigation entre services */
.related {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
}
/* Ces trois composants peignent leur propre fond blanc. Leur couleur de
   texte est donc fixée elle aussi, et non héritée du contexte : posés dans
   une section sombre — la page 404, par exemple — ils héritaient sinon d'un
   texte presque blanc, invisible sur leur fond. */
.related__card {
  display: flex;
  align-items: center;
  gap: .875rem;
  padding: 1.125rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--slate-900);
  transition: transform var(--t-base) var(--ease-spring), box-shadow var(--t-base), border-color var(--t-base), color var(--t-base);
}
.related__card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: var(--brand-300); color: var(--brand-700); }
.related__card svg:first-child { width: 22px; height: 22px; flex: none; color: var(--brand-500); }
.related__card svg:last-child { width: 16px; height: 16px; margin-left: auto; flex: none; opacity: .5; transition: transform var(--t-base) var(--ease-spring); }
.related__card:hover svg:last-child { transform: translateX(4px); opacity: 1; }

/* Barre de renvoi vers les autres métiers : un surtitre, un grand titre
   centré, six grandes cartes et deux respirations de section, cela faisait
   six cents pixels pour six liens que le pied de page porte déjà. */
.autres__titre {
  margin: 0 0 var(--sp-4);
  font-size: var(--fs-lg);
  text-align: center;
}
.related--mince {
  gap: .625rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
}
.related--mince .related__card {
  padding: .75rem .875rem;
  border-radius: var(--r-md);
  font-size: var(--fs-xs);
  gap: .5rem;
}
.related--mince .related__card svg:first-child { width: 18px; height: 18px; }
.related--mince .related__card svg:last-child { width: 14px; height: 14px; }

/* --- Pages légales --- */
.legal { max-width: 52rem; }
.legal h2 { font-size: var(--fs-xl); margin-top: var(--sp-7); padding-top: var(--sp-5); border-top: 1px solid var(--border); }
.legal h2:first-of-type { margin-top: var(--sp-5); }
.legal h3 { font-size: var(--fs-md); margin-top: var(--sp-5); }
.legal p, .legal li { color: var(--text-muted); font-size: var(--fs-sm); }
.legal > * + * { margin-top: var(--sp-4); }
.legal ul { padding-left: 1.25rem; display: grid; gap: .4rem; }
.legal dl { display: grid; gap: .5rem; }
.legal dt { font-weight: 600; color: var(--text); font-size: var(--fs-sm); }
.legal dd { margin: 0 0 .75rem; color: var(--text-muted); font-size: var(--fs-sm); }

.notice {
  display: flex;
  gap: .75rem;
  padding: 1rem 1.25rem;
  font-size: var(--fs-xs);
  color: #92400e;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--r-md);
}
.notice svg { width: 18px; height: 18px; flex: none; margin-top: .1rem; }
.notice strong { display: block; margin-bottom: .2rem; }
/* Une mise en valeur au fil de la phrase reste dans la phrase : le <strong>
   de l'encadré est réservé à son titre, qui lui passe à la ligne. */
.notice b { font-weight: 600; color: inherit; }

/* --- Page 404 / confirmation --- */
.centered-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: calc(var(--nav-h) + var(--safe-top) + 3rem) var(--gutter) 4rem;
  background: var(--grad-ink);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.centered-page__inner { position: relative; z-index: 1; max-width: 38rem; }
.centered-page h1 { margin-bottom: var(--sp-4); }
.centered-page p { color: #b7c4dd; margin-bottom: var(--sp-6); }
.centered-page .btn-group { justify-content: center; }

/* --------------------------------------------------------------------------
   Grille tarifaire (prix.html)
   Un tableau reste la forme la plus lisible pour comparer des montants. Sur
   un téléphone il défile dans son propre cadre plutôt que d'élargir la page.
   -------------------------------------------------------------------------- */
.tarifs-wrap {
  overflow-x: auto;
  margin-top: var(--sp-4);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--white);
}
.tarifs {
  width: 100%;
  min-width: 30rem;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}
.tarifs caption {
  padding: .875rem 1rem;
  text-align: left;
  font-size: var(--fs-xs);
  color: var(--text-subtle);
  border-bottom: 1px solid var(--border);
}
.tarifs th,
.tarifs td { padding: .75rem 1rem; text-align: left; vertical-align: top; }
.tarifs thead th {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-subtle);
  background: var(--brand-50);
  border-bottom: 1px solid var(--border);
}
.tarifs tbody th { font-weight: 600; color: var(--text); }
.tarifs tbody td { color: var(--text-muted); white-space: nowrap; }
.tarifs tbody tr + tr th,
.tarifs tbody tr + tr td { border-top: 1px solid var(--border); }
.tarifs tbody tr:hover th,
.tarifs tbody tr:hover td { background: var(--brand-50); }
/* Valeur encore à renseigner : visible sans être criarde */
.a-completer { font-style: italic; color: var(--text-subtle); }
/* Le pied de page est sombre : la nuance claire y devient illisible. */
.site-footer .a-completer { display: block; color: #93a4c2; }
.tarifs .a-completer { white-space: nowrap; }

/* --------------------------------------------------------------------------
   Suivi d'intervention (suivi.html)
   -------------------------------------------------------------------------- */
.suivi {
  margin: 0 auto var(--sp-6);
  padding: var(--sp-5);
  text-align: left;
  border: 1px solid rgba(103, 232, 249, .24);
  border-radius: var(--r-lg);
  background: rgba(9, 16, 34, .55);
}
.suivi__etat {
  margin: 0 0 .35rem;
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: #fff;
}
.suivi--ok .suivi__etat { color: #6ee7b7; }
.suivi--attente .suivi__etat { color: #a8ecf9; }
.suivi__note { margin: 0; font-size: var(--fs-sm); color: #b7c4dd; }
.suivi__details {
  display: grid;
  gap: .5rem;
  margin: var(--sp-4) 0;
  padding: var(--sp-4) 0 0;
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.suivi__details > div {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr));
  gap: .15rem .75rem;
}
.suivi__details dt { font-size: var(--fs-sm); color: #8fa2c2; }
.suivi__details dd { margin: 0; font-weight: 600; color: #fff; }
.centered-page .suivi__note:empty { display: none; }

/* Le créneau de rappel choisi par le visiteur : c'est l'information qu'il
   attend en arrivant ici, elle ne doit pas se fondre dans le paragraphe. */
.centered-page p.accuse-creneau {
  display: inline-block;
  padding: .5rem 1rem;
  font-weight: 600;
  color: #a8ecf9;
  background: rgba(6, 182, 212, .12);
  border: 1px solid rgba(103, 232, 249, .32);
  border-radius: 999px;
}

.success-mark {
  width: 84px; height: 84px;
  margin: 0 auto var(--sp-5);
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #059669, #34d399);
  box-shadow: 0 20px 44px -18px rgba(5, 150, 105, .7);
  animation: pop-in 520ms var(--ease-spring);
}
.success-mark svg { width: 42px; height: 42px; }


/* ==========================================================================
   Allègement mobile
   --------------------------------------------------------------------------
   Sur ordinateur, les décors animés (halos, anneaux, cube qui tourne) ne
   coûtent rien. Sur un téléphone, ils tournent en boucle en permanence —
   y compris quand la section est sortie de l'écran — et c'est la cause
   principale des ralentissements et de la chauffe.
   On garde donc le décor, mais figé : le rendu est identique à l'arrêt.
   ========================================================================== */
@media (max-width: 47.99rem) {
  .hero__glow-a,
  .hero__glow-b,
  .hero__glow-c,
  .hero__ring--1,
  .hero__ring--2,
  .radar__sweep {
    animation: none !important;
  }


  /* Le halo orange du hero n'apporte rien sur petit écran et se superpose
     au texte : on le retire plutôt que de le faire calculer pour rien. */
  .hero__glow-c { display: none; }

  /* Le bandeau défilant force un repaint continu sur toute la largeur */
  .marquee__track {
    animation: none;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
    row-gap: .75rem;
  }
  .marquee { mask-image: none; -webkit-mask-image: none; }
}

/* --------------------------------------------------------------------------
   Comparateur avant/après : au doigt
   Le curseur invisible couvre toute l'image. Sans cette règle, il capte le
   glissement vertical et la page refuse de défiler quand on pose le doigt
   dessus — c'est le blocage le plus visible du site sur téléphone.
   -------------------------------------------------------------------------- */
.compare__range {
  touch-action: pan-y;
}

/* Le hero ne doit pas remplir tout l'écran au point de masquer la suite :
   sur un téléphone, on laisse deviner la section d'après. */
@media (max-width: 47.99rem) {
  .hero { min-height: auto; padding-bottom: clamp(2rem, 1rem + 4vw, 3rem); }
}
