/* =========================================================
   KLIMA TECH — feuille de style commune
   ========================================================= */

:root {
  --navy: #123852;
  --blue-dark: #1a5170;
  --blue: #2b7fa8;
  --blue-mid: #3092be;
  --sky: #4bc2ec;
  --blue-light: #eaf6fc;
  --blue-pale: #f4fafd;
  --accent: #e07b39;
  --accent-dark: #c4632a;
  --ink: #1c2b33;
  --ink-soft: #46606c;
  --line: #dde8ee;
  --white: #ffffff;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(12, 58, 82, 0.10);
  --shadow-sm: 0 4px 14px rgba(12, 58, 82, 0.08);
  --maxw: 1180px;
  font-size: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

/* Accessibilité clavier : lien d'évitement + focus visible */
.skip-link {
  position: absolute;
  top: -48px;
  left: 12px;
  z-index: 1000;
  background: var(--navy);
  color: var(--white);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  transition: top .2s ease;
}
.skip-link:focus {
  top: 12px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible,
.card-link:focus-visible,
.nav-toggle:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: inherit;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 14px;
  color: var(--navy);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 14px; color: var(--ink-soft); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 10px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--accent);
  display: inline-block;
}

.section {
  padding: 76px 0;
}

.section--tight { padding: 52px 0; }

.section--blue {
  background: var(--blue-light);
}

.section--navy {
  background: linear-gradient(135deg, var(--navy), var(--blue-dark));
  color: var(--white);
}

.section--navy h2, .section--navy p { color: var(--white); }
.section--navy p { color: rgba(255,255,255,0.85); }

.section-head {
  max-width: 720px;
  margin: 0 auto 44px;
  text-align: center;
}

.section-head.left { margin: 0 0 40px; text-align: left; }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.2s cubic-bezier(.22,.61,.36,1), box-shadow 0.2s ease, background 0.2s ease, color .2s ease;
  white-space: nowrap;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,0.35) 45%, transparent 60%);
  transform: translateX(-120%);
  transition: transform 0.55s ease;
  pointer-events: none;
}

.btn:hover::after { transform: translateX(120%); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }

.btn-accent {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(224, 123, 57, 0.35);
  border-width: 0;
  padding: 15px 28px;
}
.btn-accent:hover { background: var(--accent-dark); box-shadow: 0 12px 26px rgba(224, 123, 57, 0.45); }

.btn-devis {
  background: linear-gradient(135deg, var(--blue-dark), var(--sky));
  color: var(--white);
  box-shadow: 0 8px 20px rgba(27, 129, 172, 0.4);
  border-width: 0;
  padding: 15px 28px;
}
.btn-devis:hover { background: linear-gradient(135deg, var(--navy), var(--blue-mid)); box-shadow: 0 12px 26px rgba(27, 129, 172, 0.5); }

.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.6);
  color: var(--white);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); }

.btn-outline-blue {
  background: transparent;
  border-color: var(--blue);
  color: var(--blue);
}
.btn-outline-blue:hover { background: var(--blue); color: var(--white); }

.btn-white {
  background: var(--white);
  color: var(--blue-dark);
  border-width: 0;
  padding: 15px 28px;
}
.btn-white:hover { background: var(--blue-pale); }

.btn-block { width: 100%; justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 12px 30px rgba(12, 58, 82, 0.12);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 82px;
  transition: height 0.3s ease;
}

.site-header.scrolled .container { height: 66px; }
.site-header.scrolled .brand-logo { height: 32px; }
.brand-logo, .site-header .container { transition: height 0.3s ease, width 0.3s ease; }

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
}

.brand-logo {
  height: 38px;
  width: auto;
  flex: none;
  display: block;
}

.main-nav { display: flex; align-items: center; gap: 4px; }

.main-nav a {
  position: relative;
  overflow: hidden;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 12px;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
  letter-spacing: 0.02em;
  white-space: nowrap;
  --ripple-color: rgba(18, 56, 82, 0.16);
}

.main-nav a:hover { background: var(--blue-light); color: var(--navy); }
.main-nav a.active { background: var(--navy); color: var(--white); --ripple-color: rgba(255, 255, 255, 0.3); }
.main-nav a:active { transform: scale(0.94); }

.header-cta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--navy);
  font-weight: 700;
  font-size: 0.9rem;
}

.header-phone svg { width: 18px; height: 18px; flex: none; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--navy);
  cursor: pointer;
  padding: 8px;
}
.nav-toggle svg { width: 26px; height: 26px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  color: var(--white);
  isolation: isolate;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: -20px;
  background-image: var(--hero-img);
  background-size: cover;
  background-position: center;
  z-index: -2;
  transform: scale(1.14);
  animation: kenburns 22s ease-out forwards;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(9,42,60,0.92) 0%, rgba(9,42,60,0.78) 42%, rgba(9,42,60,0.55) 100%);
  z-index: -1;
}

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

.hero-inner { max-width: 640px; padding: 90px 0; }

.hero .eyebrow { color: #ffd9b8; }
.hero .eyebrow::before { background: var(--accent); }

.hero h1 { color: var(--white); }
.hero p.lead { color: rgba(255,255,255,0.88); font-size: 1.08rem; max-width: 540px; }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

.hero-inner.hero-center {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.hero-inner.hero-center .eyebrow { justify-content: center; }
.hero-inner.hero-center h1 { text-transform: uppercase; letter-spacing: 0.02em; }
.hero-inner.hero-center .lead { margin-left: auto; margin-right: auto; }
.hero-inner.hero-center .hero-actions { justify-content: center; }

.page-hero {
  min-height: 44vh;
}
.page-hero .hero-inner { padding: 64px 0 48px; }

/* Entrance animation for hero content (stagger) */
.hero-inner > * {
  opacity: 0;
  animation: heroFadeUp 0.9s cubic-bezier(.22,.61,.36,1) forwards;
}
.hero-inner > *:nth-child(1) { animation-delay: 0.05s; }
.hero-inner > *:nth-child(2) { animation-delay: 0.16s; }
.hero-inner > *:nth-child(3) { animation-delay: 0.27s; }
.hero-inner > *:nth-child(4) { animation-delay: 0.38s; }
.hero-inner > *:nth-child(5) { animation-delay: 0.49s; }

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Cards / grids ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.service-card { text-align: center; display: flex; flex-direction: column; align-items: center; }

.service-card .service-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: var(--navy);
  margin: 0 auto 20px;
}
.service-card .service-icon img { width: 100%; height: 100%; }

.service-icon {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: var(--blue-light);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.service-icon svg { width: 30px; height: 30px; }
.service-icon img { width: 30px; height: 30px; object-fit: contain; }

.service-card p { min-height: 4.95em; }

.service-card ul {
  list-style: none;
  margin: 16px auto 20px;
  padding: 0;
  display: grid;
  gap: 8px;
  width: fit-content;
  text-align: left;
}

.service-card ul li {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.service-card ul li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

.service-card .card-link {
  font-weight: 700;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 16px;
}
.service-card .card-link svg { width: 16px; height: 16px; transition: transform .15s ease; }
.service-card .card-link .link-spacer { width: 16px; }
.service-card:hover .card-link svg { transform: translateX(3px); }

/* offering blocks on service pages */
.offer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.offer-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.offer-card .service-icon { margin: 0 auto 16px; }
.offer-card .num {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.offer-card h3 { font-size: 1.05rem; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.02em; }
.offer-card p { font-size: 0.92rem; margin-bottom: 0; }

/* advantages list */
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--ink-soft);
}
.check-list li svg {
  width: 22px; height: 22px; flex: none; color: var(--accent); margin-top: 2px;
}
.check-list strong { color: var(--ink); }

/* equipment type showcase */
.equip-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 980px;
  margin: 0 auto;
}
.equip-card {
  display: flex;
  gap: 24px;
  align-items: center;
  background: var(--navy);
  border-radius: 20px;
  padding: 28px;
  color: var(--white);
}
.equip-card--wide { grid-column: 1 / -1; }
.equip-media {
  position: relative;
  flex: none;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.18);
  cursor: zoom-in;
}
.equip-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s ease; }
.equip-media:hover img { transform: scale(1.08); }
.equip-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(3, 20, 30, 0.3);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.equip-media:hover::after { opacity: 1; }
.equip-media .zoom-hint {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.equip-media:hover .zoom-hint { opacity: 1; }
.equip-media .zoom-hint svg { width: 22px; height: 22px; }
.equip-body { flex: 1; min-width: 0; }
.equip-body h3 {
  display: inline-block;
  background: var(--white);
  color: var(--navy);
  font-size: 0.98rem;
  font-weight: 800;
  padding: 7px 16px;
  border-radius: 6px;
  margin-bottom: 14px;
}
.equip-body p { font-size: 0.9rem; line-height: 1.55; color: rgba(255,255,255,0.92); margin: 0 0 10px; }
.equip-body p:last-child { margin-bottom: 0; }
.equip-grid--lg { max-width: 1140px; gap: 30px; align-items: stretch; }
.equip-grid--lg .equip-card { gap: 28px; padding: 34px; border-radius: 24px; }
@media (min-width: 641px) {
  .equip-grid--lg .equip-card { align-items: flex-start; }
  .equip-grid--lg .equip-media { align-self: center; }
}
.equip-grid--lg .equip-media { width: 170px; height: 170px; border-radius: 18px; }
.equip-grid--lg .equip-body h3 { font-size: 1.08rem; padding: 8px 18px; }
.equip-grid--lg .equip-body p { font-size: 1rem; line-height: 1.6; }
@media (max-width: 640px) {
  .equip-grid--lg .equip-media { width: 140px; height: 140px; }
}
.captage-media {
  position: relative;
  margin: -30px -30px 18px;
  border-radius: 14px 14px 0 0;
  overflow: hidden;
  cursor: zoom-in;
}
.captage-media img { width: 100%; height: 160px; object-fit: cover; display: block; transition: transform 0.3s ease; }
.captage-media:hover img { transform: scale(1.05); }
.captage-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(3, 20, 30, 0.3);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.captage-media:hover::after { opacity: 1; }
.captage-media .zoom-hint {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.captage-media:hover .zoom-hint { opacity: 1; }
.captage-media .zoom-hint svg { width: 22px; height: 22px; }
.equip-body p strong { color: var(--white); }

@media (max-width: 640px) {
  .equip-card { flex-direction: column; align-items: center; text-align: center; }
}

/* TVA / reglementary callout */
.tva-wrap {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: start;
}
.tva-highlight {
  background: linear-gradient(135deg, var(--navy), var(--blue-dark));
  color: var(--white);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow);
  text-align: center;
}
.tva-highlight .tva-rate { font-size: 3rem; font-weight: 800; line-height: 1; color: var(--white); }
.tva-highlight .tva-rate span { font-size: 1.3rem; font-weight: 700; margin-left: 4px; }
.tva-highlight p { color: rgba(255,255,255,0.85); margin-top: 10px; }
.tva-highlight .tva-since {
  display: inline-block;
  margin-top: 16px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.tva-conditions-col { text-align: center; }
.tva-conditions { list-style: none; margin: 0 auto; padding: 0; display: inline-grid; gap: 14px; text-align: left; }
.tva-conditions li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--ink-soft);
}
.tva-conditions li svg { width: 20px; height: 20px; flex: none; color: var(--blue); margin-top: 2px; }
.tva-conditions strong { color: var(--ink); }
.tva-note {
  margin-top: 18px;
  padding: 14px 16px;
  background: var(--blue-pale);
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  color: var(--ink-soft);
  text-align: center;
}

/* media split section */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.split img, .media-frame img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame {
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--blue-light);
}

.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }

/* gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.gallery-grid figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 4/3;
}
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; cursor: zoom-in; }
.gallery-grid figure:hover img { transform: scale(1.06); }
.gallery-grid figure { position: relative; }
.gallery-grid figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(3,20,30,0.28), transparent 60%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.gallery-grid figure:hover::after { opacity: 1; }
.gallery-grid figure .zoom-hint {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
  box-shadow: var(--shadow-sm);
}
.gallery-grid figure:hover .zoom-hint { opacity: 1; transform: scale(1); }
.gallery-grid figure .zoom-hint svg { width: 16px; height: 16px; }

/* ---------- Visionneuse plein écran (photos de réalisations) ---------- */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(3, 20, 30, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s;
}
.lightbox-overlay.show { opacity: 1; visibility: visible; }
.lightbox-figure { max-width: min(1000px, 92vw); max-height: 86vh; text-align: center; }
.lightbox-figure img {
  max-width: 100%;
  max-height: 74vh;
  border-radius: var(--radius-sm);
  box-shadow: 0 30px 70px rgba(0,0,0,0.5);
  transform: scale(0.96);
  transition: transform 0.25s ease;
}
.lightbox-overlay.show .lightbox-figure img { transform: scale(1); }
.lightbox-caption { color: rgba(255,255,255,0.85); font-size: 0.92rem; margin-top: 16px; }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: fixed;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--white);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.24); }
.lightbox-close:active { transform: scale(0.92); }
.lightbox-prev:active, .lightbox-next:active { transform: translateY(-50%) scale(0.92); }
.lightbox-close { top: 20px; right: 20px; }
.lightbox-close svg, .lightbox-prev svg, .lightbox-next svg { width: 20px; height: 20px; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) {
  .lightbox-prev, .lightbox-next { width: 38px; height: 38px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-close { top: 10px; right: 10px; }
}

/* stats */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 10px;
}
.stat { text-align: center; }
.stat strong { display: block; font-size: 2rem; font-weight: 800; color: var(--white); }
.stat span { font-size: 0.85rem; color: rgba(255,255,255,0.75); }

/* CTA banner */
.cta-banner {
  background: linear-gradient(120deg, var(--blue-dark), var(--blue-mid));
  border-radius: 20px;
  padding: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  color: var(--white);
}
.cta-banner h2, .cta-banner p { color: var(--white); margin: 0; }
.cta-banner p { color: rgba(255,255,255,0.85); margin-top: 6px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* zone badges */
.zone-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.zone-badge {
  background: var(--blue-light);
  color: var(--blue-dark);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 999px;
}

/* ---------- Contact page ---------- */
.contact-wrap {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 46px;
  align-items: start;
}

.contact-info-card {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}
.contact-info-card h3 { color: var(--white); }
.contact-line {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 20px;
}
.contact-line svg { width: 22px; height: 22px; color: var(--accent); flex: none; margin-top: 3px; }
.contact-line a, .contact-line span { color: rgba(255,255,255,0.9); font-weight: 600; font-size: 0.96rem; }
.contact-info-card .social { display: flex; gap: 10px; margin-top: 24px; }
.contact-info-card .social a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
}
.contact-info-card .social svg { width: 18px; height: 18px; }

.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
.field input, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem; /* 16px minimum : évite le zoom automatique de Safari iOS au focus */
  color: var(--ink);
  background: var(--blue-pale);
  transition: border-color .15s ease, background .15s ease;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: var(--white);
}
.field textarea { resize: vertical; min-height: 120px; }

.address-field { position: relative; }
.address-suggestions {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 20;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  max-height: 260px;
  overflow-y: auto;
}
.address-suggestions li {
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 0.92rem;
  color: var(--ink);
  cursor: pointer;
}
.address-suggestions li:hover,
.address-suggestions li.active {
  background: var(--blue-light);
  color: var(--blue-dark);
}

.checkbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 6px;
}
.checkbox-item {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--blue-pale);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 0.9rem;
  color: var(--ink-soft);
  cursor: pointer;
}
.checkbox-item input { width: 16px; height: 16px; accent-color: var(--blue); }
.checkbox-item.checked { border-color: var(--blue); background: #e6f4fb; color: var(--ink); }

.form-note { font-size: 0.8rem; color: var(--ink-soft); margin-top: 10px; }

.form-success {
  text-align: center;
  padding: 30px 10px 10px;
  animation: heroFadeUp 0.6s cubic-bezier(.22,.61,.36,1) forwards;
}
.form-success-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: #eafaf0;
  color: #2f9e5c;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
}
.form-success-icon svg { width: 30px; height: 30px; }
.form-success h3 { margin-bottom: 8px; }
.form-success p { margin-bottom: 0; }

.btn[disabled] { opacity: 0.7; cursor: wait; transform: none; }

.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}
.map-frame iframe { width: 100%; height: 380px; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.78);
  padding: 60px 0 26px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-grid h4 {
  color: var(--white);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-brand .brand { margin-bottom: 16px; }
.footer-logo { height: 46px; width: auto; display: block; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-links a { font-size: 0.92rem; color: rgba(255,255,255,0.78); }
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 22px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
}
.footer-bottom .social { display: flex; gap: 10px; }
.footer-bottom .social a {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
}
.footer-bottom .social svg { width: 16px; height: 16px; }

/* ---------- Breadcrumb-ish page tag ---------- */
.page-tag {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 18px;
}

/* ---------- Comment ça marche (steps) ---------- */
.how-wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  counter-reset: step;
  position: relative;
}
.how-step {
  position: relative;
  padding: 0 20px;
  text-align: left;
}
.how-step::before {
  counter-increment: step;
  content: counter(step);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--accent);
  color: var(--accent-dark);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
.how-step::after {
  content: "";
  position: absolute;
  top: 20px;
  left: -50%;
  width: 100%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 12px);
  z-index: 0;
}
.how-step:first-child::after { display: none; }
.how-step h3 { font-size: 1.02rem; margin-bottom: 6px; }
.how-step p { font-size: 0.9rem; margin-bottom: 0; }

/* ---------- Avantages / Points de vigilance ---------- */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.pros-cons--stack { grid-template-columns: 1fr; gap: 20px; }
.pros-cons .pc-card {
  border-radius: var(--radius);
  padding: 30px;
  border: 1px solid var(--line);
}
.pc-card.pros { background: #f2faf4; border-color: #cdeed6; }
.pc-card.cons { background: #fff8ef; border-color: #f5e3c6; }
.pc-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  margin-bottom: 18px;
}
.pc-card h3 .pc-badge {
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex: none;
}
.pc-card.pros h3 .pc-badge { background: #2f9e5c; color: #fff; }
.pc-card.cons h3 .pc-badge { background: #d98c2b; color: #fff; }
.pc-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.pc-card li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.93rem; color: var(--ink-soft); }
.pc-card li svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.pc-card.pros li svg { color: #2f9e5c; }
.pc-card.cons li svg { color: #d98c2b; }
.pc-card strong { color: var(--ink); }

/* ---------- Bandeau cookies ---------- */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 300;
  max-width: 880px;
  margin: 0 auto;
  background: var(--navy);
  color: rgba(255,255,255,0.9);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: 0 20px 50px rgba(3, 20, 30, 0.4);
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: space-between;
  transform: translateY(160%);
  transition: transform 0.5s cubic-bezier(.22,.61,.36,1);
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner p { margin: 0; font-size: 0.86rem; color: rgba(255,255,255,0.82); max-width: 540px; }
.cookie-banner a { color: var(--white); text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-actions .btn { padding: 10px 18px; font-size: 0.85rem; }

/* ---------- Carte Google Maps (chargement différé) ---------- */
.map-placeholder {
  height: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--blue-pale);
  text-align: center;
  padding: 24px;
}
.map-placeholder p { max-width: 380px; margin: 0; color: var(--ink-soft); font-size: 0.9rem; }
.map-placeholder-link { font-size: 0.84rem; font-weight: 700; color: var(--blue); text-decoration: underline; }

/* ---------- Pages légales ---------- */
.legal-content { max-width: 760px; margin: 0 auto; }
.legal-content h2 { margin-top: 40px; font-size: 1.25rem; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content ul { color: var(--ink-soft); padding-left: 20px; }
.legal-content li { margin-bottom: 6px; }
.legal-note {
  background: #fdf1e7;
  border: 1px solid #f5dcc0;
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-bottom: 36px;
}
.legal-note strong { color: var(--ink); }
.legal-content mark {
  background: #fff1c2;
  color: var(--ink);
  padding: 0 4px;
  border-radius: 3px;
}

/* ---------- FAQ (accordéon natif <details>) ---------- */
.faq-list { display: grid; gap: 14px; max-width: 820px; margin: 0 auto; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 2px 22px;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.faq-item[open] { box-shadow: var(--shadow-sm); border-color: var(--blue-mid); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 36px 18px 0;
  font-weight: 700;
  color: var(--navy);
  position: relative;
  font-size: 0.98rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--blue);
  transition: transform 0.25s ease;
  font-weight: 400;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-answer { padding: 0 0 20px; color: var(--ink-soft); font-size: 0.94rem; animation: faqFade 0.35s ease; }
.faq-answer p { margin: 0; }
.faq-answer p + p { margin-top: 10px; }
.faq-answer ul { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 8px; }
.faq-answer li { line-height: 1.55; }
.faq-answer strong { color: var(--ink); }
.faq-answer .btn-sm { margin-top: 14px; padding: 10px 20px; font-size: 0.85rem; }
.faq-answer .btn-sm svg { width: 16px; height: 16px; flex: none; }
@keyframes faqFade {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Effet ripple au clic sur les liens de navigation ---------- */
.nav-ripple {
  position: absolute;
  border-radius: 50%;
  background: var(--ripple-color, rgba(18, 56, 82, 0.16));
  transform: scale(0);
  opacity: 1;
  pointer-events: none;
  animation: navRippleAnim 0.55s ease-out forwards;
}
@keyframes navRippleAnim {
  to { transform: scale(1); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .nav-ripple { display: none; }
}

/* ---------- Animated stat numbers ---------- */
.stat strong { font-variant-numeric: tabular-nums; }

/* =========================================================
   Animations — reveal on scroll, respects reduced motion
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(.22,.61,.36,1), transform 0.7s cubic-bezier(.22,.61,.36,1);
  will-change: opacity, transform;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

.reveal-scale {
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.22,.61,.36,1);
}
.reveal-scale.in-view { opacity: 1; transform: scale(1); }

.reveal-left {
  opacity: 0;
  transform: translateX(-28px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.22,.61,.36,1);
}
.reveal-left.in-view { opacity: 1; transform: translateX(0); }

.reveal-right {
  opacity: 0;
  transform: translateX(28px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.22,.61,.36,1);
}
.reveal-right.in-view { opacity: 1; transform: translateX(0); }

.stagger .reveal:nth-child(1), .stagger .reveal-scale:nth-child(1) { transition-delay: 0.04s; }
.stagger .reveal:nth-child(2), .stagger .reveal-scale:nth-child(2) { transition-delay: 0.11s; }
.stagger .reveal:nth-child(3), .stagger .reveal-scale:nth-child(3) { transition-delay: 0.18s; }
.stagger .reveal:nth-child(4), .stagger .reveal-scale:nth-child(4) { transition-delay: 0.25s; }
.stagger .reveal:nth-child(5), .stagger .reveal-scale:nth-child(5) { transition-delay: 0.32s; }
.stagger .reveal:nth-child(6), .stagger .reveal-scale:nth-child(6) { transition-delay: 0.39s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .reveal-scale, .reveal-left, .reveal-right { opacity: 1; transform: none; }
  .hero-inner > * { opacity: 1; }
  .hero::after { transform: scale(1); }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid-3, .offer-grid, .grid-2, .split, .contact-wrap, .footer-grid, .stat-row, .how-wrap, .pros-cons, .equip-grid, .tva-wrap {
    grid-template-columns: 1fr;
  }
  .split.reverse { direction: ltr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .how-step::after { display: none; }
  .how-step { padding: 0; }
  .service-card p { min-height: 0; }
}

@media (max-width: 860px) {
  .main-nav, .header-phone { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-header .container { height: 70px; }
  .header-cta { gap: 8px; }
  .hero-inner { padding: 60px 0; }
  .section { padding: 56px 0; }
  .cta-banner { padding: 34px; flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px) {
  .form-row, .checkbox-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  h1 { font-size: 2rem; }
  .header-cta .btn-accent, .header-cta .btn-devis { display: none; }
  .brand-logo { height: 36px; }
  .site-header .container { padding: 0 16px; }
}

/* ---------- Mobile nav panel ---------- */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 70px 0 0 0;
  background: var(--navy);
  z-index: 99;
  padding: 20px 24px 30px;
  overflow-y: auto;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  position: relative;
  overflow: hidden;
  display: block;
  padding: 14px 6px;
  font-weight: 700;
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  transition: transform 0.15s ease;
  --ripple-color: rgba(255, 255, 255, 0.28);
}
.mobile-nav a.active { color: var(--accent); }
.mobile-nav a:active { transform: scale(0.97); }
.mobile-nav .btn { margin-top: 18px; }

/* =========================================================
   Touches "pro" : progression de lecture, retour en haut,
   barre d'actions mobile, impression
   ========================================================= */

/* Fine barre de progression de lecture, en haut de l'écran */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--blue-dark), var(--sky));
  z-index: 250;
  pointer-events: none;
  transition: width 0.12s linear;
}
@media (prefers-reduced-motion: reduce) { .scroll-progress { transition: none; } }

/* Bouton flottant "retour en haut" */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-dark), var(--sky));
  color: var(--white);
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(18, 56, 82, 0.35);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s, box-shadow 0.2s ease;
  z-index: 200;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { box-shadow: 0 14px 30px rgba(18, 56, 82, 0.45); transform: translateY(-2px); }
.back-to-top:active { transform: translateY(0) scale(0.94); }
.back-to-top svg { width: 20px; height: 20px; }

/* Barre d'actions fixe (appel + devis) sur mobile */
.mobile-cta-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 150;
  display: none;
  gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(12, 58, 82, 0.12);
}
.mobile-cta-bar a.btn { flex: 1; justify-content: center; padding: 12px 14px; font-size: 0.88rem; }
.mobile-cta-bar svg { width: 18px; height: 18px; flex: none; }
body.nav-open .mobile-cta-bar { display: none; }
body.lightbox-open { overflow: hidden; }

@media (max-width: 600px) {
  .mobile-cta-bar { display: flex; }
  body { padding-bottom: 80px; }
  .cookie-banner { bottom: 92px; }
  .back-to-top { bottom: 96px; right: 16px; }
}

/* ---------- Neige décorative sur les côtés ---------- */
.snowfall {
  position: fixed;
  inset: 0;
  z-index: 5;
  overflow: hidden;
  pointer-events: none;
}
.snowflake {
  position: absolute;
  top: -12px;
  animation-name: snowfall-fall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  will-change: transform, opacity;
}
/* Flocons ronds (loin / moyen / ambiance) : cœur blanc net + halo bleu
   givré, pour se détacher aussi bien sur fond blanc que sur fond navy. */
.snowflake--dot {
  border-radius: 50%;
  background: radial-gradient(circle, #ffffff 0%, #ffffff 26%, rgba(159,224,247,0.55) 52%, rgba(75,194,236,0) 100%);
  box-shadow: 0 0 8px rgba(43,127,168,0.4), 0 0 3px rgba(255,255,255,0.65);
}
.snowflake--far { filter: blur(0.6px); }
.snowflake--ambient { filter: blur(0.9px); }
/* Flocons cristal (proches) : vrai petit flocon SVG à 6 branches, halo givré. */
.snowflake--crystal {
  color: #bfe9ff;
  filter: drop-shadow(0 0 2px rgba(255,255,255,0.85)) drop-shadow(0 0 6px rgba(43,127,168,0.5));
}
.snowflake--crystal svg { display: block; width: 100%; height: 100%; }
/* Scintillement : un halo enfant qui pulse, indépendant de l'animation de
   chute du parent (donc jamais en conflit avec elle). */
.snowflake-twinkle {
  position: absolute;
  inset: -65%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0) 72%);
  opacity: 0;
  animation-name: snowfall-twinkle;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}
@keyframes snowfall-fall {
  0%   { transform: translateY(-10vh) translateX(0) rotate(0deg); opacity: 0; }
  12%  { opacity: var(--peak-opacity, 0.75); }
  30%  { transform: translateY(24vh) translateX(calc(var(--drift, 15px) * 0.45)) rotate(calc(var(--spin, 90deg) * 0.3)); }
  55%  { transform: translateY(50vh) translateX(var(--drift, 15px)) rotate(calc(var(--spin, 90deg) * 0.6)); }
  80%  { transform: translateY(80vh) translateX(calc(var(--drift, 15px) * 0.25)) rotate(calc(var(--spin, 90deg) * 0.85)); }
  88%  { opacity: var(--peak-opacity, 0.75); }
  100% { transform: translateY(110vh) translateX(calc(var(--drift, 15px) * -0.6)) rotate(var(--spin, 90deg)); opacity: 0; }
}
@keyframes snowfall-twinkle {
  0%, 78%, 100% { opacity: 0; }
  90% { opacity: 0.9; }
}

/* Impression : mentions légales, CGV, confidentialité */
@media print {
  .site-header, .mobile-nav, .cookie-banner, .back-to-top, .mobile-cta-bar, .scroll-progress,
  .social, .header-cta, .footer-bottom .social, .snowfall { display: none !important; }
  body { padding-bottom: 0 !important; }
  a { color: inherit; text-decoration: none; }
  .site-footer { background: none !important; color: var(--ink) !important; border-top: 1px solid var(--line); }
  .site-footer a { color: var(--ink) !important; }
  .legal-content mark { background: none; padding: 0; }
}
