/* ============================================================
   MEL ENTRETIEN — Page d'accueil
   ============================================================ */

:root {
  --blue: #1667e6;
  --blue-dark: #0f4fc4;
  --blue-600: #1d6ff0;
  --brand-deep: #1b4b9e; /* bleu du logo */
  --navy: #0d1f3c;
  --ink: #1b2431;
  --muted: #6b7688;
  --line: #e6eaf0;
  --bg: #ffffff;
  --bg-soft: #f4f7fb;
  --bg-blue-soft: #eaf1fe;
  --radius: 16px;
  --radius-lg: 26px;
  --shadow-sm: 0 4px 18px rgba(15, 33, 66, .06);
  --shadow-md: 0 18px 45px rgba(15, 33, 66, .12);
  --container: 1140px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Poppins", "Inter", system-ui, sans-serif;
  line-height: 1.18;
  color: var(--navy);
  font-weight: 700;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 22px;
}

.accent { color: var(--blue); }

/* ---------- Buttons ---------- */
.btn {
  --_pad: 14px 24px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: var(--_pad);
  border-radius: 12px;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .18s var(--ease), background .18s, box-shadow .18s, border-color .18s;
  white-space: nowrap;
}
.btn svg { flex: none; }
.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 12px 26px rgba(22, 103, 230, .28);
}
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-2px); }
.btn-ghost {
  background: #fff;
  color: var(--navy);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }

.btn-lg { padding: 16px 28px; font-size: 1rem; }

/* Bouton translucide, pour les fonds sombres */
.btn-glass {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .3);
  color: #fff;
  backdrop-filter: blur(8px);
}
.btn-glass:hover {
  background: rgba(255, 255, 255, .2);
  border-color: rgba(255, 255, 255, .65);
  color: #fff;
  transform: translateY(-2px);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 26px;
  min-height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--navy);
  font-size: 1.05rem;
}
.brand-mark {
  flex: none;
  display: block;
  width: 40px;
  height: 40px;
}
.brand-name strong { color: var(--blue); font-weight: 800; }

.main-nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
  font-size: .93rem;
  font-weight: 500;
}
.main-nav a {
  color: var(--muted);
  padding: 6px 2px;
  position: relative;
  transition: color .15s;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 2px;
  background: var(--blue);
  transition: right .25s var(--ease);
}
.main-nav a:hover,
.main-nav a.active { color: var(--navy); }
.main-nav a:hover::after,
.main-nav a.active::after { right: 0; }

.header-cta { padding: 11px 20px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform .25s var(--ease), opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   Hero — bandeau pleine largeur, photo de fond, 85vh
   ============================================================ */
.hero {
  position: relative;
  min-height: 85vh;
  min-height: 85svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background: #0f3c78;
}

/* Photo de fond (parallaxe posée en JS via --py) */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    url("hero.jpg"),
    linear-gradient(135deg, #2f7ec4 0%, #1a5da4 55%, #0f3c78 100%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
/* le zoom compense le décalage de la parallaxe pour ne jamais découvrir les bords */
.hero-bg[data-parallax] {
  transform: translate3d(0, var(--py, 0px), 0) scale(1.12);
}

/* Voile bleu profond : le texte reste lisible à gauche,
   le technicien garde toute sa luminosité à droite. */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg,
      rgba(7, 30, 71, .94) 0%,
      rgba(7, 30, 71, .88) 26%,
      rgba(9, 40, 92, .52) 46%,
      rgba(11, 52, 110, .14) 60%,
      rgba(11, 52, 110, 0) 70%),
    linear-gradient(180deg, rgba(7, 30, 71, .34) 0%, transparent 24%, rgba(7, 30, 71, .30) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding-block: 90px;
}
.hero-copy { max-width: 34rem; }

/* Variante claire du libellé sur fond sombre */
.eyebrow--onDark {
  color: #9cc4ff;
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .22);
  backdrop-filter: blur(6px);
}
.eyebrow--onDark .dot {
  background: #5c9bff;
  box-shadow: 0 0 0 4px rgba(92, 155, 255, .22);
}

.hero h1 { color: #fff; }
.hero h1 .accent { color: #6ea8ff; }
.hero .lead { color: rgba(255, 255, 255, .78); max-width: 40rem; }

/* Carte flottante « 100% Satisfaction Client » */
.hero-card {
  position: absolute;
  z-index: 2;
  right: 42px;
  bottom: 54px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .2);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, .35);
}
.hero-card .fc-text { color: rgba(255, 255, 255, .72); }
.hero-card .fc-text strong { color: #fff; }

/* Chevron « faire défiler » */
.hero-scroll {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .28);
  color: rgba(255, 255, 255, .8);
  background: rgba(255, 255, 255, .06);
  backdrop-filter: blur(6px);
  animation: heroBounce 2.2s ease-in-out infinite;
  transition: background .2s, border-color .2s, color .2s;
}
.hero-scroll:hover {
  background: rgba(255, 255, 255, .16);
  border-color: rgba(255, 255, 255, .55);
  color: #fff;
}
@keyframes heroBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(7px); }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--blue-dark);
  background: var(--bg-blue-soft);
  border: 1px solid #d4e2fd;
  padding: 7px 13px;
  border-radius: 999px;
  text-transform: uppercase;
}
.eyebrow .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(22, 103, 230, .18);
}
.hero-copy h1 {
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  margin: 20px 0 18px;
  font-weight: 800;
  letter-spacing: -.015em;
}
.lead { color: var(--muted); font-size: 1.02rem; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 26px 0 30px;
}
.hero-badges {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  list-style: none;
}
.hero-badges li {
  display: flex;
  gap: 11px;
  font-size: .82rem;
  color: rgba(255, 255, 255, .62);
}
.hero-badges strong { color: #fff; font-size: .9rem; }
.badge-ico {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 9px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
  color: #6ea8ff;
  font-size: .85rem;
}

.fc-ico {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
}
.fc-text { font-size: .78rem; color: var(--muted); }
.fc-text strong { font-family: "Poppins", sans-serif; font-size: 1.05rem; color: var(--navy); }

/* ---------- Stats ---------- */
.stats {
  background: linear-gradient(120deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: #fff;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding: 34px 22px;
  text-align: center;
}
.stat { position: relative; }
.stat + .stat::before {
  content: "";
  position: absolute;
  left: -9px; top: 50%;
  transform: translateY(-50%);
  width: 1px; height: 42px;
  background: rgba(255, 255, 255, .22);
}
.stat-num {
  display: block;
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
}
.stat-label {
  font-size: .74rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .82);
}

/* ---------- Sections generic ---------- */
.section { padding: 84px 0; }
.section.process,
.section.team { background: var(--bg-soft); }
.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 54px;
}
.section-head h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.15rem);
  margin-bottom: 12px;
}
.section-head p { color: var(--muted); }

/* ---------- Process steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  list-style: none;
  position: relative;
}
/* trait continu clair, passant par le centre des pastilles */
.steps::before {
  content: "";
  position: absolute;
  top: 39px;
  left: 12%;
  right: 12%;
  height: 1px;
  background: #dbe4f0;
  z-index: 0;
}
.step {
  position: relative;
  text-align: center;
  padding-top: 8px;
}
.step-icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 68px; height: 68px;
  margin: 0 auto 26px;
  border-radius: 50%;
  background: #fff;
  color: var(--brand-deep);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
/* agrandit le glyphe : prioritaire sur les attributs width/height du <svg> */
.step-icon svg { width: 30px; height: 30px; }
/* pastille numérotée, à cheval sur le bord haut-droit du cercle */
.step-no {
  position: absolute;
  z-index: 2;
  top: 5px;
  left: calc(50% + 13px);
  width: 24px; height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-deep);
  color: #fff;
  font-size: .74rem;
  font-weight: 700;
}
.step h3 { font-size: .97rem; margin-bottom: 8px; }
.step p { font-size: .86rem; color: var(--muted); }

.steps-wrap { position: relative; }

/* ---------- Why ---------- */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.why-copy h2 { font-size: clamp(1.6rem, 3.4vw, 2.1rem); margin-bottom: 14px; }
.feature-list { list-style: none; margin-top: 26px; display: grid; gap: 20px; }
.feature-list li { display: flex; gap: 14px; font-size: .88rem; color: var(--muted); }
.feature-list strong { color: var(--navy); font-size: .95rem; }
.feat-ico {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--bg-blue-soft);
  color: var(--blue);
}
.why-photo {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  background:
    url("team-member.jpg") center/cover no-repeat,
    linear-gradient(135deg, #2f8fd6, #1667e6);
  box-shadow: var(--shadow-md);
}

/* ---------- Team ---------- */
.team-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.team-photo {
  /* 16:9 plutôt que 16:7 : la source est carrée, un cadrage plus
     panoramique couperait soit les visages, soit les pouces levés. */
  aspect-ratio: 16 / 9;
  background:
    url("team.jpg") center/cover no-repeat,
    linear-gradient(135deg, #223a5e, #14508f);
}
.team-card figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 58px 34px 26px;
  /* dégradé renforcé : le texte passe sur des zones claires (gants jaunes) */
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(9, 20, 40, .55) 38%,
    rgba(9, 20, 40, .93) 100%);
  color: #fff;
}
.team-card figcaption strong {
  display: block;
  font-family: "Poppins", sans-serif;
  font-size: 1.1rem;
  margin-bottom: 4px;
}
.team-card figcaption span { font-size: .85rem; color: rgba(255, 255, 255, .8); }

/* ---------- Local ---------- */
.local { padding-top: 20px; }
.local-card {
  background: var(--bg-blue-soft);
  border: 1px solid #d9e5fb;
  border-radius: var(--radius-lg);
  padding: 52px;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: center;
}
.local-copy h2 { font-size: clamp(1.5rem, 3.2vw, 2rem); margin: 14px 0 14px; }
.local-copy p { color: var(--muted); font-size: .95rem; }
.check-list { list-style: none; margin: 22px 0 28px; display: grid; gap: 12px; }
.check-list li {
  position: relative;
  padding-left: 30px;
  font-size: .9rem;
  color: var(--navy);
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 0;
  width: 20px; height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
}
.local-photo {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background-image: url("local-equipe.jpg"),
    linear-gradient(135deg, #d4dbe4, #c2cbd7);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: var(--shadow-md);
}

/* ---------- Footer ---------- */
.site-footer {
  background: #fff;
  border-top: 1px solid var(--line);
  padding-top: 52px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  padding-bottom: 34px;
}
.footer-brand p {
  color: var(--muted);
  font-size: .88rem;
  margin-top: 14px;
  max-width: 420px;
}
.footer-links h3 {
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 14px;
}
.footer-links a {
  display: block;
  color: var(--muted);
  font-size: .88rem;
  padding: 5px 0;
  transition: color .15s;
}
.footer-links a:hover { color: var(--blue); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 20px 22px;
  text-align: center;
}
.footer-bottom p { color: var(--muted); font-size: .8rem; }

/* ============================================================
   Animations JS
   ============================================================ */

/* Reveal (apparition au scroll, avec stagger géré en JS).
   Le préfixe `.js` garantit que le contenu reste visible si le JS ne tourne pas. */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* Entrée du héro au chargement */
.js .hero-copy > *,
.js .hero-card {
  opacity: 0;
  transform: translateY(20px);
}
.js .hero-card { transform: translateY(28px) scale(.97); }

.is-loaded .hero-copy > *,
.is-loaded .hero-card {
  opacity: 1;
  transform: none;
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.is-loaded .hero-copy > *:nth-child(1) { transition-delay: .05s; }
.is-loaded .hero-copy > *:nth-child(2) { transition-delay: .13s; }
.is-loaded .hero-copy > *:nth-child(3) { transition-delay: .21s; }
.is-loaded .hero-copy > *:nth-child(4) { transition-delay: .29s; }
.is-loaded .hero-copy > *:nth-child(5) { transition-delay: .37s; }
.is-loaded .hero-card { transition-delay: .55s; }

/* Parallaxe (valeur --py posée en JS) */
[data-parallax] {
  transform: translate3d(0, var(--py, 0px), 0);
  transition: transform .12s linear;
}

/* Tilt au survol (valeurs --rx/--ry/--tz posées en JS) */
[data-tilt] {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(var(--tz, 0px));
  transition: transform .3s var(--ease);
  transform-style: preserve-3d;
}
[data-tilt][data-parallax] {
  transform: perspective(900px) translate3d(0, var(--py, 0px), 0)
             rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
}

/* Ombre du header au scroll */
.site-header.is-scrolled { box-shadow: 0 10px 30px rgba(15, 33, 66, .08); }

/* Bouton retour en haut */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(22, 103, 230, .34);
  opacity: 0;
  transform: translateY(16px) scale(.85);
  pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease), background .18s;
}
.to-top.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.to-top:hover { background: var(--blue-dark); transform: translateY(-3px); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
  .why-grid,
  .local-card { grid-template-columns: 1fr; }
  .hero-card { right: 22px; bottom: 76px; }
  .local-card { padding: 36px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps::before { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
  .main-nav {
    position: absolute;
    top: 72px;
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 8px 22px 18px;
    box-shadow: var(--shadow-md);
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .main-nav a:last-child { border-bottom: 0; }
  .header-cta { display: none; }
  .nav-toggle { display: flex; margin-left: auto; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
  .stat:nth-child(3)::before,
  .stat + .stat::before { display: none; }
  /* la carte flottante encombre le bandeau sur mobile */
  .hero-card { display: none; }
  .hero-inner { padding-block: 70px; }
  /* recadre sur le visage : sinon le cadrage large ne montre qu'un gant */
  .hero-bg { background-position: 73% center; }
  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(7, 30, 71, .90) 0%, rgba(7, 30, 71, .78) 46%, rgba(7, 30, 71, .88) 100%);
  }
}

@media (max-width: 480px) {
  .section { padding: 60px 0; }
  .steps { grid-template-columns: 1fr; }
  .hero { min-height: 90vh; min-height: 90svh; }
  .hero-badges { grid-template-columns: 1fr; }
  .btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal,
  .hero-copy > *,
  .hero-card {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .hero-scroll { animation: none; }
  .hero-bg[data-parallax] { transform: scale(1.05) !important; }
  [data-parallax],
  [data-tilt] { transform: none !important; }
  .to-top { transition: opacity .2s linear; }
}

/* ============================================================
   Page Services
   ============================================================ */

/* En-tête de page (titre + chapô centrés) */
.page-head {
  background: linear-gradient(180deg, #e9f1fb 0%, #f4f8fd 55%, #ffffff 100%);
  padding: 86px 0 78px;
  text-align: center;
}
.page-head h1 {
  font-size: clamp(1.75rem, 4vw, 2.65rem);
  font-weight: 800;
  letter-spacing: -.015em;
  margin-bottom: 16px;
}
.page-head p {
  color: var(--muted);
  max-width: 620px;
  margin-inline: auto;
  font-size: .95rem;
}

/* Bloc de service : photo d'un côté, contenu de l'autre */
.svc { padding: 78px 0; }
.svc--alt { background: var(--bg-soft); }

.svc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 58px;
  align-items: center;
}
/* photo à droite */
.svc-grid--reverse .svc-media { order: 2; }

.svc-photo {
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
/* montage avant/après empilé : carré, sinon une des deux moitiés serait coupée */
.svc-photo--maison {
  aspect-ratio: 1 / 1;
  background-image: url("service-particuliers.jpg"),
    linear-gradient(135deg, #e6ded4 0%, #cfc4b6 55%, #b9ab9a 100%);
}
.svc-photo--bureau {
  background-image: url("service-bureaux.jpg"),
    linear-gradient(135deg, #cfdce9 0%, #adc2d6 55%, #8da5bf 100%);
}
.svc-photo--boutique {
  background-image: url("service-commerces.jpg"),
    linear-gradient(135deg, #ecdfd0 0%, #d8c3a9 55%, #bfa88c 100%);
}
.svc-photo--debarras {
  background-image: url("service-debarras.jpg"),
    linear-gradient(135deg, #d8e0d4 0%, #b9c6b2 55%, #97a88f 100%);
}

.svc-ico {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--bg-blue-soft);
  color: var(--brand-deep);
  margin-bottom: 20px;
}
.svc-ico--sm { width: 38px; height: 38px; border-radius: 11px; margin-bottom: 16px; }

.svc-body h2 {
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 14px;
}
.svc-body > p { color: var(--muted); font-size: .93rem; }

.svc-list {
  list-style: none;
  margin: 26px 0 30px;
  display: grid;
  gap: 15px;
}
.svc-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: .87rem;
  color: var(--muted);
  line-height: 1.55;
}
.svc-list .chk {
  flex: none;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 7px;
  background: var(--bg-blue-soft);
  color: var(--blue);
}

.btn-pill { border-radius: 999px; }

/* Engagements : 4 cartes */
.engage { background: var(--bg-soft); }
.engage-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.engage-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px 22px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.engage-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.engage-card h3 { font-size: .97rem; margin-bottom: 9px; }
.engage-card p { font-size: .84rem; color: var(--muted); }

@media (max-width: 960px) {
  .svc-grid { grid-template-columns: 1fr; gap: 36px; }
  /* la photo repasse toujours au-dessus du texte */
  .svc-grid--reverse .svc-media { order: 0; }
  .svc-media { max-width: 560px; }
  .engage-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .svc { padding: 58px 0; }
  .page-head { padding: 62px 0 56px; }
  .engage-grid { grid-template-columns: 1fr; }
}

/* le titre de cette section tient sur une ligne */
.engage .section-head { max-width: 720px; }

/* ============================================================
   Page À Propos
   ============================================================ */

/* Bouton téléphone de l'en-tête */
.header-tel {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 50%;
  color: var(--brand-deep);
  transition: background .18s, color .18s;
}
.header-tel:hover { background: var(--bg-blue-soft); color: var(--blue); }

/* Variante haute du titre de page */
.page-head--lg { padding: 118px 0 132px; }

/* ---- Notre Engagement Quotidien ---- */
.about {
  background: #fafbfd;
  padding: 82px 0;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.about-body h2 {
  color: var(--brand-deep);
  font-size: clamp(1.35rem, 2.8vw, 1.75rem);
  font-weight: 800;
  margin-bottom: 18px;
}
.about-body p { color: var(--muted); font-size: .9rem; }
.about-body p + p { margin-top: 15px; }

.about-sub {
  color: var(--blue);
  font-size: .87rem;
  font-weight: 700;
  margin: 28px 0 16px;
}
.about-list { list-style: none; display: grid; gap: 15px; }
.about-list li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: .85rem;
  color: var(--muted);
  line-height: 1.55;
}
.about-list strong { color: var(--navy); font-weight: 600; }
.chk-round {
  flex: none;
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  margin-top: 2px;
  border-radius: 50%;
  border: 1.5px solid var(--blue);
  color: var(--blue);
}

.about-photo {
  aspect-ratio: 4 / 3.2;
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-image: url("about-engagement.jpg"),
    linear-gradient(135deg, #d6e2ee 0%, #b3c6da 55%, #91aac4 100%);
}

/* ---- Valeurs fondamentales (grille asymétrique) ---- */
.values { background: var(--bg-soft); }
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.value-card {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.value-card--wide { grid-column: span 2; }
.value-card h3 {
  color: var(--brand-deep);
  font-size: 1.22rem;
  font-weight: 800;
  margin-bottom: 10px;
}
.value-card p { font-size: .85rem; color: var(--muted); }
/* touche décorative dans le coin, comme sur la maquette */
.value-card--deco::after {
  content: "";
  position: absolute;
  top: -46px;
  right: -46px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--bg-blue-soft);
  opacity: .7;
}
.value-card--deco > * { position: relative; z-index: 1; }

@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-media { order: -1; max-width: 560px; }
  .values-grid { grid-template-columns: 1fr 1fr; }
  .value-card--wide { grid-column: span 2; }
  .page-head--lg { padding: 78px 0 86px; }
}

@media (max-width: 560px) {
  .about { padding: 58px 0; }
  .values-grid { grid-template-columns: 1fr; }
  .value-card--wide { grid-column: span 1; }
  .page-head--lg { padding: 62px 0 66px; }
}

/* ============================================================
   Page Galerie
   ============================================================ */
.page-head--gal { padding: 78px 0 56px; }

/* ---- Pastilles de filtre ---- */
.gal-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}
.gal-pill {
  padding: 9px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
  font: inherit;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .18s, color .18s, border-color .18s, transform .18s var(--ease);
}
.gal-pill:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-1px); }
.gal-pill.is-active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  box-shadow: 0 8px 20px rgba(22, 103, 230, .28);
}

/* ---- Grille irrégulière ---- */
.gal { padding: 0 0 84px; }
.gal-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-flow: dense;
  gap: 20px;
}
.gal-item { grid-column: span 2; margin: 0; }
.gal-item--wide { grid-column: span 4; }
.gal-item--half { grid-column: span 3; }
.gal-item[hidden] { display: none; }

.gal-photo {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  padding: 0;
  border: 0;
  border-radius: 14px;
  cursor: zoom-in;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: var(--shadow-md);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.gal-photo:hover { transform: translateY(-4px) scale(1.01); }
.gal-item--tall .gal-photo { aspect-ratio: 4 / 4.3; }
.gal-item--wide .gal-photo { aspect-ratio: 16 / 9; }

.gal-item figcaption {
  margin-top: 10px;
  font-size: .8rem;
  color: var(--muted);
}

.gal-photo--bureaux {
  background-image: url("gal-bureaux.jpg"),
    linear-gradient(135deg, #dbe4ee 0%, #b7c6d8 55%, #94a8c0 100%);
}
.gal-photo--cuisine {
  background-image: url("gal-cuisine.jpg"),
    linear-gradient(135deg, #efe7dc 0%, #d9cbb8 55%, #c0ac93 100%);
}
.gal-photo--boutique {
  background-image: url("gal-boutique.jpg"),
    linear-gradient(135deg, #f0e3d3 0%, #ddc7ab 55%, #c4a982 100%);
}
.gal-photo--table {
  background-image: url("gal-table.jpg"),
    linear-gradient(135deg, #cfd9e6 0%, #9fb1c8 55%, #7089a8 100%);
}
.gal-photo--hall {
  background-image: url("gal-hall.jpg"),
    linear-gradient(135deg, #e9e2d8 0%, #cfc3b1 55%, #ad9d87 100%);
}

.gal-empty {
  text-align: center;
  color: var(--muted);
  font-size: .9rem;
  padding: 40px 0;
}

/* ---- Avant / Après ---- */
.ba-section { background: var(--bg-soft); }
.ba-eyebrow {
  color: var(--blue);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.ba {
  --pos: 50%;
  position: relative;
  max-width: 860px;
  margin-inline: auto;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  user-select: none;
}
.ba-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
/* couche du bas : l'état « avant » */
.ba-img--avant {
  background-image: url("ba-avant.jpg"),
    linear-gradient(135deg, #8f8c86 0%, #6f6c66 55%, #4f4d49 100%);
}
/* couche du dessus, révélée depuis la gauche : l'état « après » */
.ba-img--apres {
  background-image: url("ba-apres.jpg"),
    linear-gradient(135deg, #eef3f8 0%, #cfdae6 55%, #aebfd2 100%);
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}

.ba-tag {
  position: absolute;
  top: 14px;
  z-index: 3;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  background: rgba(9, 24, 52, .58);
  color: #fff;
  backdrop-filter: blur(6px);
  pointer-events: none;
}
.ba-tag--apres { left: 14px; }
.ba-tag--avant { right: 14px; }

.ba-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  z-index: 3;
  width: 3px;
  margin-left: -1.5px;
  background: #fff;
  box-shadow: 0 0 14px rgba(0, 0, 0, .35);
  pointer-events: none;
}
.ba-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .3);
}

/* curseur natif, invisible : garde l'accessibilité clavier */
.ba-range {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
}
.ba-range::-webkit-slider-thumb { -webkit-appearance: none; width: 44px; height: 100%; }
.ba-range::-moz-range-thumb { width: 44px; height: 100%; border: 0; }
.ba:focus-within .ba-handle { outline: 3px solid rgba(255, 255, 255, .7); outline-offset: 3px; }

/* ---- Visionneuse ---- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 40px 22px;
  background: rgba(7, 18, 38, .92);
  backdrop-filter: blur(6px);
}
.lightbox[hidden] { display: none; }
.lightbox-figure { margin: 0; max-width: 1000px; width: 100%; }
.lightbox-photo {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .5);
}
.lightbox-figure figcaption {
  margin-top: 14px;
  text-align: center;
  color: rgba(255, 255, 255, .8);
  font-size: .87rem;
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 22px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.lightbox-close:hover { background: rgba(255, 255, 255, .22); border-color: rgba(255, 255, 255, .7); }

@media (max-width: 960px) {
  .gal-grid { grid-template-columns: repeat(4, 1fr); }
  .gal-item,
  .gal-item--half { grid-column: span 2; }
  .gal-item--wide { grid-column: span 4; }
  .page-head--gal { padding: 62px 0 44px; }
}

@media (max-width: 560px) {
  .gal-grid { grid-template-columns: 1fr; gap: 16px; }
  .gal-item,
  .gal-item--half,
  .gal-item--wide { grid-column: span 1; }
  .gal-item--tall .gal-photo,
  .gal-item--wide .gal-photo { aspect-ratio: 16 / 10; }
  .gal { padding-bottom: 58px; }
  .gal-pill { font-size: .78rem; padding: 8px 16px; }
}

/* ============================================================
   Page Contact
   ============================================================ */
.page-head--left {
  text-align: left;
  padding: 78px 0 52px;
}
.page-head--left p { margin-inline: 0; max-width: 640px; }

.contact { padding: 0 0 88px; }
.contact-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
  align-items: start;
}

/* ---- Carte formulaire ---- */
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 34px;
  box-shadow: var(--shadow-sm);
}
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 24px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-size: .82rem;
  font-weight: 600;
  color: var(--navy);
}
.field label span { color: var(--blue); }

.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: .9rem;
  width: 100%;
  padding: 13px 15px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color .18s, box-shadow .18s;
}
.field input::placeholder,
.field textarea::placeholder { color: #9aa5b5; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(22, 103, 230, .15);
}
/* champ signalé en erreur après tentative d'envoi */
.field input:user-invalid,
.field select:user-invalid,
.field textarea:user-invalid,
.field .is-invalid {
  border-color: #d94848;
  box-shadow: 0 0 0 3px rgba(217, 72, 72, .13);
}

.field textarea { min-height: 138px; resize: vertical; }

/* chevron personnalisé sur le select */
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7688' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 17px;
}
.field select:invalid { color: #9aa5b5; }

.form-status {
  margin-top: 22px;
  padding: 13px 16px;
  border-radius: 10px;
  font-size: .85rem;
  background: var(--bg-blue-soft);
  border: 1px solid #d4e2fd;
  color: var(--brand-deep);
}
.form-status[hidden] { display: none; }
.form-status--error {
  background: #fdeded;
  border-color: #f5c6c6;
  color: #a32c2c;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 26px;
}

/* ---- Colonne coordonnées ---- */
.contact-aside { display: grid; gap: 26px; }

.info-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
}
.info-card h2 {
  color: var(--brand-deep);
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 24px;
}
.info-list { list-style: none; display: grid; gap: 20px; }
.info-list li { display: flex; gap: 14px; }
.info-list li > span:last-child { display: grid; gap: 3px; }
.info-list strong {
  font-size: .85rem;
  font-weight: 600;
  color: var(--navy);
}
.info-list span span,
.info-list a { font-size: .85rem; color: var(--muted); line-height: 1.5; }
.info-list a { color: var(--blue); justify-self: start; }
.info-list a:hover { text-decoration: underline; }
.info-ico {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--bg-blue-soft);
  color: var(--blue);
}
/* valeurs encore à renseigner par le client */
.to-fill {
  color: var(--blue) !important;
  font-weight: 600;
  border-bottom: 1px dashed currentColor;
  justify-self: start;
}

.map-card {
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #e7e8ea;
  box-shadow: var(--shadow-sm);
  /* la carte occupe la place restante, le pied reste à sa hauteur */
  display: grid;
  grid-template-rows: 1fr auto;
}
.map-frame {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.map-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 14px;
  padding: 12px 16px;
  background: #fff;
  border-top: 1px solid var(--line);
  font-size: .8rem;
  color: var(--muted);
}
.map-foot a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--blue);
  font-weight: 600;
  white-space: nowrap;
}
.map-foot a:hover { text-decoration: underline; }

@media (max-width: 960px) {
  .contact-grid { grid-template-columns: 1fr; }
  .page-head--left { padding: 62px 0 42px; }
  .map-card { aspect-ratio: 16 / 9; }
}

@media (max-width: 560px) {
  .form-card { padding: 24px 20px; }
  .field-grid { grid-template-columns: 1fr; }
  .form-actions { justify-content: stretch; }
  .contact { padding-bottom: 58px; }
}
