/* ==========================================================
   PERIMETRA - design system
   Industriel epure : noir / blanc casse / rouge brique
   Charte Quentin DA VEIGA : Archivo Black (titres) / Roboto (corps)
   ========================================================== */

:root {
  --ink: #0B0C0E;
  --ink-soft: #232629;
  --paper: #f7f7f7;
  --paper-deep: #ECECEC;
  --steel: #A3A3A3;
  --steel-text: #6c6c6c;
  --accent: #bb3524;
  --accent-dark: #712016;
  --rose: #fcd2d0;
  --line: rgba(11, 12, 14, 0.14);
  --line-light: rgba(247, 247, 247, 0.16);
  --font-display: "Archivo Black", "Arial Black", sans-serif;
  --font-body: "Roboto", -apple-system, sans-serif;
  --header-h: 72px;
  --radius: 2px;
  --container: 1240px;
  --pad: clamp(20px, 4vw, 48px);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* ---------- Typo ---------- */

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.02;
  text-transform: uppercase;
  letter-spacing: 0;
}

.kicker {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.kicker::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--accent);
  flex: none;
}
.kicker-light { color: var(--accent); }

.section-title {
  font-size: clamp(30px, 4.2vw, 50px);
  max-width: 18ch;
}

.lead {
  font-size: clamp(16px, 1.5vw, 18px);
  color: var(--steel-text);
  max-width: 58ch;
}

/* ---------- Boutons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 14px 28px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: var(--ink-soft); }
.btn-ghost { border-color: var(--line-light); color: var(--paper); }
.btn-ghost:hover { border-color: var(--paper); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  transition: transform 0.3s ease;
}
.site-header.hidden { transform: translateY(-100%); }

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark .logo-bg { color: var(--ink); }
.logo-text {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 19px;
  letter-spacing: 0.06em;
}

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav > a, .nav-drop-toggle {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 12.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.main-nav > a::after, .nav-drop-toggle::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.main-nav > a:hover::after, .main-nav > a.active::after,
.nav-drop:hover .nav-drop-toggle::after, .nav-drop-toggle.active::after { transform: scaleX(1); }

.nav-cta {
  background: var(--accent);
  color: var(--paper) !important;
  padding: 10px 22px !important;
  border-radius: var(--radius);
  transition: background 0.2s ease;
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--accent-dark); }

/* Bouton MetraGarde (étude personnalisée) : bouton sombre premium + icône caméra accent */
.nav-cta-mg {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  padding: 7px 16px 7px 13px;
  line-height: 1.15;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.nav-cta-mg::after { display: none; }
.nav-cta-mg-ico { flex: none; color: var(--accent); transition: transform 0.2s ease; }
.nav-cta-mg-txt { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 1px; }
.nav-cta-mg strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 12.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--paper);
  transition: color 0.2s ease;
}
.nav-cta-mg span {
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(247, 247, 247, 0.62);
  transition: color 0.2s ease;
}
.nav-cta-mg:hover {
  background: var(--ink-soft);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(11, 12, 14, 0.18);
}
.nav-cta-mg:hover .nav-cta-mg-ico { transform: scale(1.08); }
.nav-cta-mg:hover span { color: rgba(247, 247, 247, 0.82); }

/* Entrée MetraGarde mise en avant dans le dropdown Services */
.nav-drop-menu a.nav-drop-feat {
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 13.5px;
  padding-top: 11px;
  padding-bottom: 11px;
  margin-bottom: 4px;
  border-left: 2px solid var(--accent);
}
.nav-drop-menu a.nav-drop-feat span {
  display: block;
  font-family: var(--font-body);
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 11.5px;
  color: rgba(247, 247, 247, 0.55);
  margin-top: 2px;
}
.nav-drop-menu a.nav-drop-feat:hover { background: rgba(187, 53, 36, 0.14); color: #fff; }

.nav-drop { position: relative; }
.nav-drop-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: -20px;
  min-width: 280px;
  background: var(--ink);
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  border-top: 2px solid var(--accent);
}
.nav-drop::before {
  content: "";
  position: absolute;
  top: 100%; left: 0; right: 0;
  height: 16px;
}
.nav-drop:hover .nav-drop-menu, .nav-drop:focus-within .nav-drop-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-drop-menu a {
  display: block;
  padding: 9px 22px;
  color: rgba(247, 247, 247, 0.78);
  font-size: 14.5px;
  letter-spacing: 0.02em;
  transition: color 0.15s ease, background 0.15s ease;
}
.nav-drop-menu a:hover { color: #fff; background: rgba(187, 53, 36, 0.18); }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-burger span {
  width: 24px; height: 2px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ---------- Hero (accueil) ---------- */

.hero {
  position: relative;
  min-height: max(640px, 88vh);
  display: flex;
  align-items: center;
  color: var(--paper);
  background: var(--ink);
  isolation: isolate;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  overflow: hidden;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.9);
  transform: scale(1.02);
}
/* Filtre noir par-dessus l'image, opacité réduite : image visible, texte lisible */
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11,12,14,0.78) 0%, rgba(11,12,14,0.5) 42%, rgba(11,12,14,0.32) 100%),
    linear-gradient(180deg, rgba(11,12,14,0.1) 0%, rgba(11,12,14,0.42) 100%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url(/assets/bg-diag.png);
  background-size: cover;
  background-position: center;
  opacity: 0.22;
  mix-blend-mode: screen;
}
.hero::after {
  content: "";
  position: absolute;
  top: -20%; right: -8%;
  width: 55%; height: 92%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(187,53,36,0.34), transparent 72%);
  pointer-events: none;
}
.hero-inner {
  width: 100%;
  padding-top: calc(var(--header-h) + clamp(32px, 5vw, 56px));
  padding-bottom: clamp(40px, 5vw, 64px);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero-media {
  position: relative;
  margin: 0;
  justify-self: end;
  width: 100%;
  max-width: 460px;
}
.hero-media img {
  display: block;
  width: 100%;
  aspect-ratio: 906 / 1120;
  object-fit: cover;
}
.hero-media::before {
  content: "";
  position: absolute;
  top: -14px; left: -14px;
  width: 64px; height: 64px;
  border-top: 3px solid var(--accent);
  border-left: 3px solid var(--accent);
}
.hero-badge {
  position: absolute;
  left: 0; bottom: 22px;
  background: var(--accent);
  color: #fff;
  padding: 13px 20px;
  max-width: 84%;
}
.hero-badge strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 17px;
  letter-spacing: 0.02em;
}
.hero-badge span {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.85);
}
.hero-title {
  font-size: clamp(40px, 6.4vw, 92px);
  letter-spacing: 0;
  line-height: 1.0;
  max-width: 13ch;
}
.hero-title em {
  font-style: normal;
  color: var(--accent);
}
.hero-sub {
  margin-top: 26px;
  font-size: clamp(16px, 1.7vw, 19px);
  max-width: 52ch;
  color: rgba(247, 247, 247, 0.85);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 64px;
  border-top: 1px solid var(--line-light);
}
.hero-meta div {
  flex: 1 1 180px;
  padding: 18px 24px 0 0;
}
.hero-meta div + div { padding-left: 24px; border-left: 1px solid var(--line-light); }
.hero-meta strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 24px;
  letter-spacing: 0;
}
.hero-meta span {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(247, 247, 247, 0.6);
}

/* ---------- Page hero (pages intérieures) ---------- */

.page-hero {
  padding-top: calc(var(--header-h) + clamp(48px, 8vw, 96px));
  padding-bottom: clamp(40px, 6vw, 72px);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.page-hero .breadcrumb {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 22px;
}
.page-hero .breadcrumb a:hover { color: var(--accent); }
.page-hero h1 { font-size: clamp(34px, 5vw, 66px); max-width: 15ch; }
.page-hero .lead { margin-top: 22px; }
.page-num {
  position: absolute;
  right: var(--pad);
  bottom: -1px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(70px, 12vw, 150px);
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1px var(--line);
  pointer-events: none;
  user-select: none;
}

/* ---------- Sections ---------- */

.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-dark { background: var(--ink); color: var(--paper); }
.section-deep { background: var(--paper-deep); }
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.section-dark .lead { color: rgba(247, 247, 247, 0.65); }
.section-dark .section-title { color: var(--paper); }

/* ---------- Grille services ---------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.service-card {
  position: relative;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 280px;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.25s ease;
}
.service-card .card-img {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.service-card .card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.service-card .card-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(11, 12, 14, 0.8);
}
.service-card:hover { color: var(--paper); }
.service-card:hover .card-img { opacity: 1; }
.service-num {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--accent);
}
.service-card h3 { font-size: 21px; }
.service-card p { font-size: 14.5px; color: var(--steel-text); transition: color 0.25s ease; flex: 1; }
.service-card:hover p { color: rgba(247, 247, 247, 0.85); }
.service-link {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.service-link::after {
  content: "→";
  transition: transform 0.2s ease;
}
.service-card:hover .service-link::after { transform: translateX(5px); }
.service-card:hover .service-link { color: var(--accent); }

/* ---------- Process ---------- */

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--line-light);
  border: 1px solid var(--line-light);
}
.process-step {
  background: var(--ink);
  padding: 36px 28px;
}
.process-step .step-num {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 42px;
  color: transparent;
  -webkit-text-stroke: 1px var(--accent);
  line-height: 1;
  display: block;
  margin-bottom: 18px;
}
.process-step h3 { font-size: 19px; margin-bottom: 10px; }
.process-step p { font-size: 14.5px; color: rgba(247, 247, 247, 0.7); }

/* ---------- Bande image + texte ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}
.split-img {
  position: relative;
}
.split-img img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.split-img::before {
  content: "";
  position: absolute;
  top: -14px; left: -14px;
  width: 56px; height: 56px;
  border-top: 3px solid var(--accent);
  border-left: 3px solid var(--accent);
}
.split-img::after {
  content: "";
  position: absolute;
  bottom: -14px; right: -14px;
  width: 56px; height: 56px;
  border-bottom: 3px solid var(--accent);
  border-right: 3px solid var(--accent);
}
/* Carousel photos service (galerie installations réelles) */
.carousel { position: relative; overflow: hidden; }
.carousel-track { position: relative; width: 100%; aspect-ratio: 3 / 4; }
.carousel--wide .carousel-track { aspect-ratio: 4 / 3; }
.split-img .carousel-slide {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  opacity: 0;
  transition: opacity .55s ease;
}
.split-img .carousel-slide.is-active { opacity: 1; }
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 2;
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(17, 17, 17, .5); color: #fff;
  border: none; cursor: pointer;
  font-size: 1.7rem; line-height: 1;
  transition: background .2s ease;
}
.carousel-btn:hover { background: var(--accent); }
.carousel-prev { left: 0; }
.carousel-next { right: 0; }
.carousel-dots {
  position: absolute; left: 0; right: 0; bottom: 12px;
  z-index: 2;
  display: flex; gap: 8px; justify-content: center;
}
.carousel-dot {
  width: 9px; height: 9px; padding: 0;
  border: none; border-radius: 50%;
  background: rgba(255, 255, 255, .55); cursor: pointer;
  transition: background .2s ease;
}
.carousel-dot.is-active { background: var(--accent); }

.split-body h2 { font-size: clamp(26px, 3.2vw, 40px); margin-bottom: 20px; line-height: 1.1; }
.split-body p { color: var(--steel-text); margin-bottom: 14px; }
.split-body .btn { margin-top: 14px; }

/* ---------- Checklist ---------- */

.checklist {
  list-style: none;
  display: grid;
  gap: 12px;
  margin: 22px 0;
}
.checklist li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15.5px;
}
.checklist li::before {
  content: "";
  flex: none;
  width: 18px; height: 18px;
  margin-top: 3px;
  background: var(--accent);
  clip-path: polygon(14% 44%, 0 65%, 40% 100%, 100% 16%, 84% 0%, 39% 62%);
}

/* ---------- Stats ---------- */

.stats-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  border-top: 1px solid var(--line);
}
.stat {
  padding: 36px 28px 0 0;
  border-right: 1px solid var(--line);
  margin-right: 28px;
}
.stat:last-child { border-right: 0; }
.stat strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(30px, 3.4vw, 48px);
  line-height: 1.05;
  display: block;
}
.stat strong em { font-style: normal; color: var(--accent); }
.stat span {
  display: block;
  margin-top: 8px;
  font-size: 13.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--steel-text);
}

/* ---------- Secteurs ---------- */

.sectors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.sector {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  padding: 26px;
  color: var(--paper);
  background: var(--ink);
}
.sector img {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(60%) contrast(1.05);
  transition: transform 0.5s ease, filter 0.4s ease;
}
.sector::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(11,12,14,0) 30%, rgba(11,12,14,0.88) 100%);
}
.sector:hover img { transform: scale(1.05); filter: grayscale(0%) contrast(1); }
.sector-label { position: relative; z-index: 1; }
.sector-label h3 { font-size: 21px; }
.sector-label span {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(247, 247, 247, 0.7);
}

/* ---------- Textures décoratives (sections claires) ---------- */

.page-hero, .tex-lines, .tex-waves, .section-deep {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: var(--paper);
}
.section-deep { background-color: var(--paper-deep); }

.page-hero::before, .tex-lines::before, .tex-waves::before, .section-deep::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-repeat: no-repeat;
  mix-blend-mode: multiply;
}

.page-hero::before {
  background-image: url(/assets/bg-lines.png);
  background-size: cover;
  background-position: right center;
  opacity: 0.55;
  -webkit-mask-image: linear-gradient(105deg, transparent 30%, rgba(0,0,0,0.9) 75%);
  mask-image: linear-gradient(105deg, transparent 30%, rgba(0,0,0,0.9) 75%);
}
/* Accent rouge : bande dégradée depuis le bord gauche, ~20% de large, tend vers le blanc */
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(187,53,36,0.62) 0%, rgba(187,53,36,0.32) 8%, transparent 22%);
}

.tex-lines::before {
  background-image: url(/assets/bg-lines.png);
  background-size: min(1200px, 100%) auto;
  background-position: top right;
  opacity: 0.45;
  -webkit-mask-image: linear-gradient(200deg, rgba(0,0,0,0.85) 5%, transparent 55%);
  mask-image: linear-gradient(200deg, rgba(0,0,0,0.85) 5%, transparent 55%);
}

.tex-waves::before {
  background-image: url(/assets/bg-waves.png);
  background-size: cover;
  background-position: center;
  opacity: 0.5;
  -webkit-mask-image: linear-gradient(180deg, transparent 8%, rgba(0,0,0,0.8) 55%, transparent 96%);
  mask-image: linear-gradient(180deg, transparent 8%, rgba(0,0,0,0.8) 55%, transparent 96%);
}

.section-deep::before {
  background-image: url(/assets/bg-diag.png);
  background-size: cover;
  background-position: center top;
  opacity: 0.4;
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.85) 0%, transparent 70%);
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.85) 0%, transparent 70%);
}

/* ---------- Hazard stripe ---------- */

.hazard {
  height: 8px;
  background: repeating-linear-gradient(
    -45deg,
    var(--accent) 0 14px,
    var(--ink) 14px 28px
  );
}

/* ---------- Page service ---------- */

.service-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: start;
}
.service-layout .split-img img { aspect-ratio: 3 / 4; }
.service-body h2 {
  font-size: clamp(22px, 2.6vw, 32px);
  margin: 36px 0 16px;
  line-height: 1.12;
}
.service-body h2:first-child { margin-top: 0; }
.service-body p { color: var(--steel-text); margin-bottom: 14px; }

/* Colonne gauche : image de remplissage dynamique sous le texte.
   Grâce à flex-grow + min-height:0, elle occupe uniquement l'espace laissé
   par la colonne de droite ; si le texte est aussi haut, elle disparaît (hauteur 0). */
.service-col {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  min-height: 0;
}
.service-fill-img {
  width: 100%;
  margin-top: 28px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
  display: block;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin: 22px 0;
  font-size: 15px;
}
.spec-table td {
  padding: 12px 16px 12px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.spec-table td:first-child {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 12.5px;
  white-space: nowrap;
  color: var(--ink);
  width: 1%;
  padding-right: 32px;
}
.spec-table td:last-child { color: var(--steel-text); }

.aside-card {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  background: var(--ink);
  color: var(--paper);
  padding: 32px;
}
.aside-card h3 { font-size: 21px; margin-bottom: 12px; }
.aside-card p { font-size: 14.5px; color: rgba(247,247,247,0.72); margin-bottom: 20px; }
.aside-card .btn { width: 100%; justify-content: center; }
.aside-card .aside-tel {
  display: block;
  text-align: center;
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.02em;
}
.aside-card .aside-tel:hover { color: var(--accent); }

.prevnext {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
}
.prevnext a {
  padding: 28px var(--pad);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: background 0.2s ease;
}
.prevnext a:hover { background: var(--paper-deep); }
.prevnext a + a { border-left: 1px solid var(--line); text-align: right; }
.prevnext span {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--steel-text);
}
.prevnext strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 17px;
  text-transform: uppercase;
}

/* ---------- Équipe / valeurs ---------- */

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.value-card {
  background: var(--paper);
  padding: 36px 30px;
}
.value-card .value-num {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 38px;
  color: transparent;
  -webkit-text-stroke: 1px var(--accent);
  line-height: 1;
  display: block;
  margin-bottom: 16px;
}
.value-card h3 { font-size: 19px; margin-bottom: 10px; }
.value-card p { font-size: 14.5px; color: var(--steel-text); }

/* ---------- Contact ---------- */

.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: start;
}
.contact-info h2 { font-size: clamp(24px, 2.8vw, 36px); margin-bottom: 18px; }
.contact-info > p { color: var(--steel-text); margin-bottom: 28px; }
.contact-rows { display: grid; gap: 0; border-top: 1px solid var(--line); }
.contact-row {
  display: flex;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.contact-row .ico {
  flex: none;
  width: 42px; height: 42px;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-row strong {
  display: block;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 4px;
}
.contact-row a:hover { color: var(--accent); }
.contact-row p, .contact-row a { font-size: 15px; color: var(--steel-text); }

.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  padding: clamp(28px, 4vw, 44px);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.form-field label em { color: var(--accent); font-style: normal; }
.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font-body);
  font-size: 15px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  transition: border-color 0.2s ease;
  width: 100%;
}
.form-field textarea { resize: vertical; min-height: 130px; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-note { font-size: 13px; color: var(--steel); margin-top: 14px; }
.form-success {
  display: none;
  background: #0F7B3E;
  color: #fff;
  padding: 16px 20px;
  margin-top: 18px;
  font-weight: 500;
  font-size: 15px;
}
.form-success.visible { display: block; }

.form-error {
  display: none;
  background: var(--accent);
  color: #fff;
  padding: 16px 20px;
  margin-top: 18px;
  font-weight: 500;
  font-size: 15px;
}
.form-error.visible { display: block; }
.form-field-error input,
.form-field-error textarea { border-color: var(--accent) !important; }

/* ---------- CTA band + footer ---------- */

.cta-band {
  background: var(--ink);
  color: var(--paper);
  border-top: 8px solid transparent;
  border-image: repeating-linear-gradient(-45deg, var(--accent) 0 14px, var(--ink) 14px 28px) 8;
  padding: clamp(56px, 8vw, 96px) 0;
}
.cta-band-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}
.cta-title { font-size: clamp(36px, 5vw, 60px); }
.cta-sub { margin-top: 14px; color: rgba(247, 247, 247, 0.65); max-width: 46ch; }
.cta-actions { display: flex; flex-direction: column; gap: 12px; }

.site-footer {
  background: #060708;
  color: rgba(247, 247, 247, 0.72);
  padding-top: clamp(48px, 7vw, 80px);
  position: relative;
  overflow: hidden;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.8fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-col { display: flex; flex-direction: column; gap: 9px; font-size: 14.5px; }
.footer-col a:hover { color: var(--accent); }
.footer-brand p { margin-top: 14px; max-width: 34ch; font-size: 14px; }
.logo-footer .logo-text { color: var(--paper); font-size: 18px; }
.footer-head {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--paper);
  margin-bottom: 8px;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 22px;
  padding-bottom: 26px;
  border-top: 1px solid var(--line-light);
  font-size: 13px;
  color: rgba(247, 247, 247, 0.45);
}
.footer-credit a { color: rgba(247, 247, 247, 0.72); }
.footer-credit a:hover { color: var(--accent); }
.footer-watermark {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(70px, 13vw, 180px);
  line-height: 0.78;
  text-align: center;
  color: transparent;
  -webkit-text-stroke: 1px rgba(247, 247, 247, 0.07);
  user-select: none;
  pointer-events: none;
  letter-spacing: 0.04em;
  transform: translateY(18%);
}

/* ---------- Reveal animations ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .split, .service-layout, .contact-layout, .hero-grid, .mg-hero-grid { grid-template-columns: 1fr; }
  .mg-hero-media img { min-height: 0; aspect-ratio: 4 / 3; }
  .aside-card { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-media { max-width: 400px; margin: 8px auto 0; justify-self: center; }
  .service-fill-img { display: none; }
}

@media (max-width: 820px) {
  .nav-burger { display: flex; }
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    height: calc(100dvh - var(--header-h));
    z-index: 90;
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    padding: 32px var(--pad) 48px;
    gap: 22px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .main-nav.open { transform: translateX(0); }
  .nav-drop-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    border-top: 0;
    padding: 6px 0 0 18px;
    min-width: 0;
  }
  .nav-drop-menu a { color: var(--steel); padding: 7px 0; }
  .nav-drop-menu a:hover { background: none; color: var(--accent); }
  .nav-drop-menu a.nav-drop-feat { color: var(--ink); background: none; border-left: 2px solid var(--accent); padding-left: 12px; }
  .nav-drop-menu a.nav-drop-feat span { color: var(--steel-text); }
  .nav-drop-menu a.nav-drop-feat:hover { color: var(--accent); background: none; }
  .nav-drop-toggle svg { display: none; }
  .nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .form-grid { grid-template-columns: 1fr; }
  .prevnext { grid-template-columns: 1fr; }
  .prevnext a + a { border-left: 0; border-top: 1px solid var(--line); text-align: left; }
  .stat { border-right: 0; margin-right: 0; }
}

/* ---------- Logo image ---------- */
.logo-img { display: block; height: 54px; width: auto; }
.logo-footer .logo-img { height: 30px; }

/* ---------- Zone d'intervention ---------- */
.zone-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.zone-body .lead { margin-bottom: 26px; max-width: 48ch; }
.zone-legend { list-style: none; margin: 0 0 30px; padding: 0; display: grid; gap: 14px; }
.zone-legend li { display: flex; align-items: center; gap: 14px; font-size: 15px; color: var(--paper); }
.zl-center, .zl-ring { flex: none; width: 16px; height: 16px; border-radius: 50%; }
.zl-center { background: var(--accent); box-shadow: 0 0 0 4px rgba(187,53,36,0.22); }
.zl-ring { border: 2px solid rgba(63,174,90,0.85); background: rgba(63,174,90,0.18); }
.zone-map { margin: 0; border-radius: 6px; overflow: hidden; border: 1px solid rgba(255,255,255,0.12); box-shadow: 0 30px 70px rgba(0,0,0,0.45); }
.zone-map img { display: block; width: 100%; height: auto; }
@media (max-width: 860px) {
  .zone-grid { grid-template-columns: 1fr; gap: 34px; }
}

/* ---------- Tour Perimetra (vraie photo portrait) ---------- */
.split-img.tower-shot { max-width: 360px; margin-inline: auto; }
.split-img.tower-shot img { aspect-ratio: 339 / 579 !important; object-fit: cover; }

/* ---------- MetraGarde : boutons hero + image fixe fond rouge ---------- */
.mg-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
/* Rangée de boutons générique (2 CTA côte à côte) */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.split-body .btn-row { margin-top: 22px; }
.split-body .btn-row .btn { margin-top: 0; }
.split-img.mg-tower-img img { aspect-ratio: 1 / 1 !important; object-fit: cover; }
/* Équipements complémentaires : tourelle portrait en pleine hauteur (pas de crop) */
.split-img.mg-equip-img { max-width: 380px; margin-inline: auto; }
.split-img.mg-equip-img img { aspect-ratio: 339 / 579 !important; object-fit: cover; }
/* Ancre vers le formulaire : décalage sous le header fixe */
#devis { scroll-margin-top: calc(var(--header-h) + 24px); }

/* ===== Pages légales ===== */
.legal-content { max-width: 820px; }
.legal-content h2 { font-size: clamp(20px, 2.4vw, 28px); margin: 38px 0 14px; line-height: 1.15; }
.legal-content h3 { font-size: 18px; margin: 24px 0 10px; }
.legal-content p, .legal-content li { color: var(--steel-text); line-height: 1.7; margin-bottom: 12px; }
.legal-content ul { padding-left: 22px; margin-bottom: 16px; }
.legal-content a { color: var(--accent); }
.legal-content a:hover { color: var(--accent-dark); }
.legal-content table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.legal-content th, .legal-content td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; font-size: 15px; }
.legal-content th { background: var(--paper-deep); }
.legal-updated { font-size: 14px; color: var(--steel); margin-bottom: 26px; }

/* ===== Liens légaux footer ===== */
.footer-legal { display: flex; gap: 14px; flex-wrap: wrap; }
.footer-legal a { color: var(--steel); font-size: 13px; }
.footer-legal a:hover { color: var(--paper); }

/* ==========================================================
   Formulaire devis MetraGarde (multi-step, rendu par devis-form.js)
   ========================================================== */

.devis-form {
  max-width: 880px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 4.5vw, 52px);
}
.df-logo {
  display: block;
  margin: 0 auto 28px;
  width: min(230px, 62vw);
  height: auto;
}

/* Barre de progression : 6 pastilles reliées */
.df-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: clamp(26px, 4vw, 38px);
}
.df-dot {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--steel-text);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.df-dot svg { display: none; width: 14px; height: 14px; }
.df-dot.is-active,
.df-dot.is-done {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.df-dot.is-done .df-dot-num { display: none; }
.df-dot.is-done svg { display: block; }
.df-seg {
  flex: 1 1 auto;
  max-width: 62px;
  height: 2px;
  background: var(--line);
  transition: background 0.25s ease;
}
.df-seg.is-done { background: var(--accent); }
@media (max-width: 560px) {
  .df-dot { width: 26px; height: 26px; font-size: 11.5px; }
  .df-dot svg { width: 12px; height: 12px; }
  .df-seg { max-width: 34px; }
}

/* Étapes */
.df-step { display: none; }
.df-step.is-active { display: block; animation: dfIn 0.35s ease; }
@keyframes dfIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .df-step.is-active { animation: none; }
}
.df-title {
  font-size: clamp(20px, 2.8vw, 30px);
  text-align: center;
  max-width: none;
}
.df-hint {
  text-align: center;
  font-size: 14px;
  color: var(--steel-text);
  margin-top: 8px;
}

/* Cartes cliquables */
.df-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: clamp(22px, 3.5vw, 32px);
}
@media (min-width: 720px) {
  .df-cards { grid-template-columns: repeat(4, 1fr); }
  .df-cards--3 { grid-template-columns: repeat(3, 1fr); max-width: 640px; margin-left: auto; margin-right: auto; }
}
.df-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 10px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 11.5px;
  line-height: 1.3;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-align: center;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.df-card svg { width: 30px; height: 30px; flex: none; color: var(--ink-soft); transition: color 0.2s ease; }
.df-card:hover { border-color: var(--steel); transform: translateY(-2px); }
.df-card.is-selected {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
  color: var(--accent);
  background: #fff;
}
.df-card.is-selected svg { color: var(--accent); }

/* Étape électricité : icônes sémantiques */
.df-card--yes svg { color: #0F7B3E; }
.df-card--no svg { color: var(--accent); }
.df-card--maybe svg { color: #C9971C; }
.df-card--yes.is-selected {
  border-color: #0F7B3E;
  box-shadow: inset 0 0 0 1px #0F7B3E;
  color: #0F7B3E;
}
.df-card--yes.is-selected svg { color: #0F7B3E; }
.df-card--maybe.is-selected {
  border-color: #C9971C;
  box-shadow: inset 0 0 0 1px #C9971C;
  color: #9C7413;
}
.df-card--maybe.is-selected svg { color: #C9971C; }

/* Champ « Autre » */
.df-other { display: none; margin-top: 16px; }
.df-other.visible { display: flex; }

/* Slider surface */
.df-slider-wrap {
  margin: clamp(28px, 4vw, 40px) auto 6px;
  max-width: 580px;
  text-align: center;
}
.df-slider-value {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(20px, 3vw, 28px);
  letter-spacing: 0.02em;
  padding: 10px 24px;
  border-radius: var(--radius);
  margin-bottom: clamp(22px, 3.5vw, 32px);
  min-width: 190px;
}
.df-range {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  height: 26px;
  background: transparent;
  cursor: pointer;
}
.df-range:focus { outline: none; }
.df-range::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 3px;
  background: var(--df-track, var(--line));
}
.df-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 26px;
  height: 26px;
  margin-top: -10px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--accent);
  box-shadow: 0 2px 8px rgba(11, 12, 14, 0.25);
}
.df-range::-moz-range-track {
  height: 6px;
  border-radius: 3px;
  background: var(--line);
}
.df-range::-moz-range-progress {
  height: 6px;
  border-radius: 3px;
  background: var(--accent);
}
.df-range::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--accent);
  box-shadow: 0 2px 8px rgba(11, 12, 14, 0.25);
}
.df-range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(187, 53, 36, 0.25); }
.df-range:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px rgba(187, 53, 36, 0.25); }
.df-slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--steel-text);
  margin-top: 8px;
}

/* Navigation Précédent / Suivant */
.df-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-top: clamp(26px, 4vw, 36px);
}
.df-nav .df-prev.is-hidden { visibility: hidden; pointer-events: none; }
.df-nav .btn[hidden] { display: none !important; }
.df-nav .btn[disabled] { opacity: 0.6; cursor: default; transform: none; }

/* Messages */
.df-error {
  display: none;
  margin-top: 18px;
  background: rgba(187, 53, 36, 0.07);
  border: 1px solid rgba(187, 53, 36, 0.35);
  color: var(--accent-dark);
  padding: 12px 16px;
  font-size: 14px;
  border-radius: var(--radius);
}
.df-error.visible { display: block; }

/* Étape 6 : coordonnées */
.df-step .form-grid { margin-top: clamp(22px, 3.5vw, 32px); }
.df-rgpd {
  font-size: 12.5px;
  color: var(--steel);
  margin-top: 16px;
}
.df-rgpd a { text-decoration: underline; }
.df-rgpd a:hover { color: var(--accent); }
.df-field-error { border-color: var(--accent) !important; }

/* Honeypot (jamais visible) */
.df-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

/* Écran de confirmation */
.df-success { text-align: center; padding: clamp(24px, 5vw, 48px) 8px; }
.df-success svg { width: 58px; height: 58px; color: #0F7B3E; margin: 0 auto 20px; display: block; }
.df-success h2 { font-size: clamp(20px, 2.8vw, 30px); max-width: none; margin-bottom: 14px; }
.df-success p { color: var(--steel-text); max-width: 46ch; margin: 0 auto; }

/* ==========================================================
   Page MetraGarde (marque)
   ========================================================== */

.mg-hero-logo {
  display: inline-block;
  background: #fff;
  border: 1px solid var(--line);
  padding: 16px 26px;
  margin-bottom: 26px;
}
.mg-hero-logo img { width: min(280px, 64vw); height: auto; }
.mg-trademark { font-size: 13px; color: var(--steel); margin-top: 18px; }

.models-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.model-card {
  background: #fff;
  color: var(--ink);
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.model-kicker {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.model-card h3 { font-size: 21px; }
.model-card p { font-size: 14.5px; color: var(--steel-text); flex: 1; }



/* Modale de confirmation (téléchargement plaquette) */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(11, 12, 14, 0.66);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.modal-overlay.is-open { display: flex; }
.modal-card {
  background: var(--paper);
  border: 1px solid var(--line);
  max-width: 440px;
  width: 100%;
  padding: 32px 30px 28px;
  box-shadow: 0 24px 60px rgba(11, 12, 14, 0.35);
  animation: modalIn 0.2s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.modal-title { font-size: 22px; margin: 0 0 10px; }
.modal-text { font-size: 15px; color: var(--steel-text); margin: 0 0 24px; }
.modal-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.modal-actions .btn { flex: 1 1 auto; text-align: center; }

/* Hero MetraGarde : split image (gauche) / contenu (droite) */
.mg-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: stretch;
}
.mg-hero-media { height: 100%; }
.mg-hero-media img {
  width: 100%;
  height: 100%;
  min-height: 460px;
  object-fit: cover;
  border: 1px solid var(--line);
}
.mg-hero-content { display: flex; flex-direction: column; justify-content: center; }
.mg-hero .mg-hero-logo { margin-top: 0; }
.mg-hero h1 { max-width: 100%; }
