/* ============================================================
   FERMIS — Fermetures & Automatismes
   Design System v1.0  |  Blanc · Anthracite · Gris · Noir
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Montserrat:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600&display=swap");

/* ─── Variables ─────────────────────────────────────────── */
:root {
  --noir: #0a0a0a;
  --anthracite: #252525;
  --gris-fonce: #3d3d3d;
  --gris-moyen: #6b6b6b;
  --gris-clair: #9a9a9a;
  --gris-leger: #d4d4d4;
  --gris-bg: #f2f2f2;
  --blanc: #ffffff;

  --font-display: "Bebas Neue", "Montserrat", sans-serif;
  --font-heading: "Montserrat", "Inter", sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

  --nav-h: 72px;
  --container: 1240px;
  --radius: 6px;
  --radius-lg: 14px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 6px 28px rgba(0, 0, 0, 0.13);
  --shadow-lg: 0 16px 56px rgba(0, 0, 0, 0.22);
  --shadow-xl: 0 24px 80px rgba(0, 0, 0, 0.32);

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --t: 0.3s var(--ease);
  --t-slow: 0.6s var(--ease);
}

/* ─── Reset ─────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--font-body);
  color: var(--noir);
  background: var(--blanc);
  line-height: 1.6;
  overflow-x: hidden;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
ul,
ol {
  list-style: none;
}
button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
}
input,
textarea,
select {
  font: inherit;
}

/* ─── Typography ─────────────────────────────────────────── */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.15;
  color: var(--noir);
}
h1 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
}
h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
}
h3 {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
}
h4 {
  font-size: 1.15rem;
}
p {
  line-height: 1.75;
  color: var(--gris-fonce);
}
.display {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 7rem);
  line-height: 1;
  letter-spacing: 2px;
}
.label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gris-moyen);
}
.lead {
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--gris-fonce);
  line-height: 1.8;
}

/* ─── Layout ─────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container--wide {
  max-width: 1440px;
}
.section {
  padding: 96px 0;
}
.section--sm {
  padding: 64px 0;
}
.section--lg {
  padding: 128px 0;
}
.section--dark {
  background: var(--anthracite);
  color: var(--blanc);
}
.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--blanc);
}
.section--dark p {
  color: var(--gris-leger);
}
.section--black {
  background: var(--noir);
  color: var(--blanc);
}
.section--black h1,
.section--black h2,
.section--black h3 {
  color: var(--blanc);
}
.section--black p {
  color: var(--gris-clair);
}
.section--gray {
  background: var(--gris-bg);
}
.grid {
  display: grid;
  gap: 24px;
}
.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}
.flex {
  display: flex;
}
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}
.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.gap-sm {
  gap: 12px;
}
.gap-md {
  gap: 24px;
}
.gap-lg {
  gap: 40px;
}
.text-center {
  text-align: center;
}
.mt-sm {
  margin-top: 16px;
}
.mt-md {
  margin-top: 32px;
}
.mt-lg {
  margin-top: 56px;
}
.mb-sm {
  margin-bottom: 16px;
}
.mb-md {
  margin-bottom: 32px;
}

/* ─── Section Headings ───────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-header .label {
  margin-bottom: 12px;
  display: block;
}
.section-header h2 {
  margin-bottom: 16px;
}
.section-header p {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* ─── Separator ──────────────────────────────────────────── */
.sep {
  width: 56px;
  height: 3px;
  background: var(--noir);
  margin: 20px auto 0;
  display: block;
}
.sep--left {
  margin: 20px 0 0;
}
.sep--white {
  background: var(--blanc);
}

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  border-radius: var(--radius);
  transition: var(--t);
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.1);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t);
}
.btn:hover::after {
  transform: scaleX(1);
}
.btn-primary {
  background: var(--noir);
  color: var(--blanc);
}
.btn-primary:hover {
  background: var(--anthracite);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-white {
  background: var(--blanc);
  color: var(--noir);
}
.btn-white:hover {
  background: var(--gris-bg);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  background: transparent;
  border: 2px solid var(--noir);
  color: var(--noir);
}
.btn-outline:hover {
  background: var(--noir);
  color: var(--blanc);
}
.btn-outline--white {
  border-color: var(--blanc);
  color: var(--blanc);
}
.btn-outline--white:hover {
  background: var(--blanc);
  color: var(--noir);
}
.btn-lg {
  padding: 18px 44px;
  font-size: 1rem;
}
.btn-sm {
  padding: 10px 22px;
  font-size: 0.82rem;
}
.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ─── Navigation ─────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition:
    border-color var(--t),
    box-shadow var(--t);
}
.nav.scrolled {
  border-color: var(--gris-leger);
  box-shadow: var(--shadow-sm);
}
.nav__inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.nav__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.nav__logo img {
  height: 44px;
  width: auto;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 0;
}
.nav__link {
  padding: 8px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gris-fonce);
  letter-spacing: 0.3px;
  transition: color var(--t);
  position: relative;
  white-space: nowrap;
}
.nav__link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--noir);
  transform: scaleX(0);
  transition: transform var(--t);
}
.nav__link:hover,
.nav__link.active {
  color: var(--noir);
}
.nav__link:hover::after,
.nav__link.active::after {
  transform: scaleX(1);
}
.nav__dropdown {
  position: relative;
}
.nav__dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--blanc);
  border: 1px solid var(--gris-leger);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 240px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition:
    opacity var(--t),
    transform var(--t),
    visibility var(--t);
  z-index: 100;
  overflow: hidden;
}
.nav__dropdown:hover .nav__dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav__dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gris-fonce);
  transition:
    background var(--t),
    color var(--t);
}
.nav__dropdown-item:hover {
  background: var(--gris-bg);
  color: var(--noir);
}
.nav__dropdown-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.6;
}
.nav__cta {
  margin-left: 8px;
}
.nav__burger {
  display: none;
  width: 36px;
  height: 36px;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 4px;
}
.nav__burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--noir);
  border-radius: 2px;
  transition: var(--t);
  transform-origin: center;
}
.nav__burger.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.nav__burger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav__burger.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}
.nav__mobile {
  display: none;
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  background: var(--blanc);
  z-index: 999;
  overflow-y: auto;
  padding: 32px 24px;
  transform: translateX(100%);
  transition: transform var(--t);
}
.nav__mobile.open {
  transform: translateX(0);
}
.nav__mobile-link {
  display: block;
  padding: 16px 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--noir);
  border-bottom: 1px solid var(--gris-bg);
  letter-spacing: 0.3px;
}
.nav__mobile-sub {
  padding-left: 20px;
}
.nav__mobile-sub .nav__mobile-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gris-fonce);
}

/* ─── Hero ───────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--nav-h);
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 10, 10, 0.85) 0%,
    rgba(10, 10, 10, 0.6) 50%,
    rgba(37, 37, 37, 0.5) 100%
  );
}
.hero__content {
  position: relative;
  z-index: 1;
  color: var(--blanc);
  padding: 80px 0;
}
.hero__label {
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 16px;
  display: block;
}
.hero__title {
  color: var(--blanc);
  margin-bottom: 24px;
  max-width: 780px;
}
.hero__subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 540px;
  margin-bottom: 40px;
  line-height: 1.75;
}
.hero__ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
  letter-spacing: 2px;
  animation: bounce 2s infinite;
}
.hero__scroll svg {
  width: 20px;
  height: 20px;
}
@keyframes bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(6px);
  }
}

/* Page hero (not full screen) */
.page-hero {
  padding: 120px 0 64px;
  background: var(--noir);
  color: var(--blanc);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    180deg,
    transparent 0,
    transparent 18px,
    rgba(255, 255, 255, 0.03) 18px,
    rgba(255, 255, 255, 0.03) 19px
  );
}
.page-hero .breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.82rem;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
.page-hero .breadcrumb a:hover {
  color: var(--blanc);
}
.page-hero h1 {
  position: relative;
  z-index: 1;
  color: var(--blanc);
}

/* Split hero: text on left, image on right */
.page-hero--split .page-hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.page-hero--split .page-hero__text {
  min-width: 0;
}
.page-hero__image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
}
.page-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.page-hero__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(15, 42, 92, 0.18),
    rgba(10, 10, 10, 0.05) 60%
  );
  pointer-events: none;
}
@media (max-width: 860px) {
  .page-hero--split .page-hero__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .page-hero__image {
    aspect-ratio: 16 / 10;
  }
}

/* ─── Partners grid ─────────────────────────────────────── */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}
.partner-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 28px 20px;
  border: 1px solid var(--gris-leger);
  border-radius: var(--radius);
  background: var(--blanc);
  transition:
    transform var(--t),
    box-shadow var(--t),
    border-color var(--t);
  min-height: 160px;
}
.partner-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--gris-clair);
}
.partner-card img {
  max-height: 64px;
  max-width: 80%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.partner-card__name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gris-fonce);
  letter-spacing: 0.04em;
  text-align: center;
  line-height: 1.3;
}

/* ─── Single product photo ─────────────────────────────── */
.product-detail__photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3;
  background: var(--gris-bg);
}
.product-detail__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ─── Urgent / 24-7 styling ────────────────────────────── */
:root {
  --urgent: #d62828;
  --urgent-dark: #9d1c1c;
}
.nav__link--urgent {
  color: var(--urgent) !important;
  font-weight: 700;
  position: relative;
  padding-left: 22px;
}
.nav__link--urgent::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--urgent);
  box-shadow: 0 0 0 0 rgba(214, 40, 40, 0.6);
  animation: urgent-pulse 1.8s ease-out infinite;
}
.nav__link--urgent:hover {
  color: var(--urgent-dark) !important;
}
@keyframes urgent-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(214, 40, 40, 0.55);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(214, 40, 40, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(214, 40, 40, 0);
  }
}
.nav__mobile-link--urgent {
  color: var(--urgent) !important;
  font-weight: 700;
}
.btn-urgent {
  background: var(--urgent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--urgent);
}
.btn-urgent:hover {
  background: var(--urgent-dark);
  border-color: var(--urgent-dark);
  color: #fff;
}
.page-hero--urgent {
  background: linear-gradient(135deg, #1a0606 0%, #0a0a0a 60%);
}
.page-hero--urgent::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 85% 20%,
    rgba(214, 40, 40, 0.18),
    transparent 55%
  );
  pointer-events: none;
}
.cta-banner--urgent {
  background: linear-gradient(135deg, var(--urgent-dark), #1a0606);
}

/* ─── Trust Bar ──────────────────────────────────────────── */
.trust-bar {
  background: var(--noir);
  padding: 16px 0;
}
.trust-bar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.trust-bar__item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.83rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.trust-bar__item svg {
  width: 16px;
  height: 16px;
  opacity: 0.6;
  flex-shrink: 0;
}

/* ─── Product Cards ──────────────────────────────────────── */
.products-grid {
  display: grid;
  gap: 24px;
}
.product-card {
  background: var(--blanc);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--t),
    box-shadow var(--t);
  border: 1px solid rgba(0, 0, 0, 0.07);
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.product-card__img {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.product-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.product-card:hover .product-card__img img {
  transform: scale(1.06);
}
.product-card__category {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--noir);
  color: var(--blanc);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.product-card__body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-card__title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--noir);
  margin-bottom: 8px;
}
.product-card__desc {
  font-size: 0.88rem;
  color: var(--gris-moyen);
  line-height: 1.65;
  flex: 1;
}
.product-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--noir);
  letter-spacing: 0.3px;
  transition: gap var(--t);
}
.product-card__link:hover {
  gap: 14px;
}
.product-card__link svg {
  width: 16px;
  height: 16px;
}

/* Icon product card (no photo) */
.product-card--icon {
  background: var(--anthracite);
  color: var(--blanc);
}
.product-card--icon .product-card__body {
  justify-content: center;
  padding: 40px 28px;
  align-items: flex-start;
}
.product-card--icon .product-card__icon {
  width: 52px;
  height: 52px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.product-card--icon .product-card__icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--blanc);
  fill: none;
}
.product-card--icon .product-card__title {
  color: var(--blanc);
  font-size: 1.1rem;
}
.product-card--icon .product-card__desc {
  color: rgba(255, 255, 255, 0.6);
}
.product-card--icon .product-card__link {
  color: rgba(255, 255, 255, 0.85);
}

/* ─── Feature Section ────────────────────────────────────── */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 560px;
}
.feature__media {
  position: relative;
  overflow: hidden;
}
.feature__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.feature__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px 72px;
}
.feature--reverse .feature__media {
  order: 1;
}
.feature--reverse .feature__content {
  order: 0;
}

/* ─── Stats ──────────────────────────────────────────────── */
.stats {
  display: grid;
  gap: 0;
}
.stat {
  padding: 48px 40px;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}
.stat:last-child {
  border-right: none;
}
.stat__number {
  font-family: var(--font-display);
  font-size: 4.5rem;
  line-height: 1;
  color: var(--blanc);
  display: block;
}
.stat__label {
  font-size: 0.83rem;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 8px;
  display: block;
  font-weight: 600;
}

/* ─── Chantier Gallery (Realisations) ────────────────────── */
.gallery {
  columns: 3;
  gap: 16px;
}
.gallery__item {
  break-inside: avoid;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}
.gallery__item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s var(--ease);
}
.gallery__item:hover img {
  transform: scale(1.04);
}
.gallery__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.7);
  opacity: 0;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  transition: opacity var(--t);
}
.gallery__item:hover .gallery__overlay {
  opacity: 1;
}
.gallery__overlay span {
  color: var(--blanc);
  font-weight: 700;
  font-size: 0.9rem;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox.open {
  display: flex;
}
.lightbox__img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
}
.lightbox__close {
  position: absolute;
  top: 20px;
  right: 24px;
  color: var(--blanc);
  font-size: 2rem;
  cursor: pointer;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: opacity var(--t);
}
.lightbox__close:hover {
  opacity: 1;
}
.lightbox__prev,
.lightbox__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--blanc);
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  opacity: 0.6;
  transition: opacity var(--t);
  cursor: pointer;
}
.lightbox__prev {
  left: 16px;
}
.lightbox__next {
  right: 16px;
}
.lightbox__prev:hover,
.lightbox__next:hover {
  opacity: 1;
}

/* Chantier card */
.chantier-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--anthracite);
}
.chantier-card__thumb {
  aspect-ratio: 4/3;
  overflow: hidden;
}
.chantier-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.chantier-card:hover .chantier-card__thumb img {
  transform: scale(1.08);
}
.chantier-card__body {
  padding: 24px;
}
.chantier-card__tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gris-clair);
  margin-bottom: 8px;
  display: block;
}
.chantier-card__title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--blanc);
  margin-bottom: 6px;
}
.chantier-card__loc {
  font-size: 0.82rem;
  color: var(--gris-clair);
  display: flex;
  align-items: center;
  gap: 6px;
}
.chantier-card__loc svg {
  width: 13px;
  height: 13px;
}

/* ─── Departments ────────────────────────────────────────── */
.dept-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.dept-card {
  background: var(--blanc);
  border: 2px solid var(--gris-leger);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  transition:
    border-color var(--t),
    transform var(--t),
    box-shadow var(--t);
}
.dept-card:hover {
  border-color: var(--noir);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.dept-card__number {
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--noir);
  line-height: 1;
  margin-bottom: 8px;
}
.dept-card__name {
  font-weight: 800;
  font-size: 1rem;
  color: var(--noir);
  margin-bottom: 6px;
}
.dept-card__cities {
  font-size: 0.84rem;
  color: var(--gris-moyen);
  line-height: 1.65;
}

/* ─── Why Us ──────────────────────────────────────────────── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.why-item {
  display: flex;
  flex-direction: column;
}
.why-item__icon {
  width: 56px;
  height: 56px;
  background: var(--gris-bg);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: background var(--t);
}
.why-item:hover .why-item__icon {
  background: var(--noir);
}
.why-item__icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--noir);
  fill: none;
  transition: stroke var(--t);
}
.why-item:hover .why-item__icon svg {
  stroke: var(--blanc);
}
.why-item h3 {
  margin-bottom: 10px;
  font-size: 1.05rem;
}
.why-item p {
  font-size: 0.9rem;
  line-height: 1.75;
}

/* ─── Testimonials ───────────────────────────────────────── */
.testimonial {
  background: var(--blanc);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gris-leger);
}
.testimonial__stars {
  display: flex;
  gap: 3px;
  margin-bottom: 16px;
  color: #f5a623;
}
.testimonial__text {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--gris-fonce);
  font-style: italic;
  margin-bottom: 20px;
}
.testimonial__author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gris-bg);
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.testimonial__avatar svg {
  width: 22px;
  height: 22px;
  stroke: var(--gris-moyen);
}
.testimonial__name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--noir);
}
.testimonial__loc {
  font-size: 0.8rem;
  color: var(--gris-clair);
}

/* ─── CTA Banner ─────────────────────────────────────────── */
.cta-banner {
  background: var(--noir);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 60px,
    rgba(255, 255, 255, 0.015) 60px,
    rgba(255, 255, 255, 0.015) 61px
  );
}
.cta-banner h2 {
  color: var(--blanc);
  margin-bottom: 16px;
  position: relative;
}
.cta-banner p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 1.05rem;
  margin-bottom: 36px;
  position: relative;
}
.cta-banner .flex-center {
  gap: 20px;
  flex-wrap: wrap;
  position: relative;
}

/* ─── Product Page ───────────────────────────────────────── */
.product-detail {
  padding: 80px 0;
}
.product-detail__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.product-detail__gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.product-detail__gallery img {
  border-radius: var(--radius);
  width: 100%;
  height: 200px;
  object-fit: cover;
  cursor: pointer;
  transition: transform var(--t);
}
.product-detail__gallery img:first-child {
  grid-column: 1/-1;
  height: 320px;
}
.product-detail__gallery img:hover {
  transform: scale(1.02);
}
.product-detail__content .label {
  margin-bottom: 12px;
  display: block;
}
.product-detail__features {
  margin: 28px 0;
}
.product-detail__feature {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--gris-bg);
}
.product-detail__feature:last-child {
  border-bottom: none;
}
.product-detail__feature svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  stroke: var(--noir);
  fill: none;
  margin-top: 2px;
}
.product-detail__feature div {
}
.product-detail__feature strong {
  display: block;
  font-size: 0.92rem;
  color: var(--noir);
  margin-bottom: 2px;
}
.product-detail__feature span {
  font-size: 0.85rem;
  color: var(--gris-moyen);
}

/* Specs table */
.specs {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
}
.specs th,
.specs td {
  padding: 12px 16px;
  text-align: left;
  font-size: 0.88rem;
}
.specs th {
  background: var(--gris-bg);
  font-weight: 700;
  color: var(--noir);
  font-family: var(--font-heading);
}
.specs tr {
  border-bottom: 1px solid var(--gris-bg);
}
.specs tbody tr:hover {
  background: rgba(0, 0, 0, 0.02);
}

/* ─── Contact Form ───────────────────────────────────────── */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group--full {
  grid-column: 1/-1;
}
.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--noir);
}
.form-label span {
  color: #c0392b;
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--gris-leger);
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-family: var(--font-body);
  color: var(--noir);
  background: var(--blanc);
  transition:
    border-color var(--t),
    box-shadow var(--t);
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--anthracite);
  box-shadow: 0 0 0 3px rgba(37, 37, 37, 0.08);
}
.form-textarea {
  min-height: 140px;
  resize: vertical;
}
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 24 24'%3E%3Cpath stroke='%236B6B6B' stroke-width='2' stroke-linecap='round' d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}
.form-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--noir);
}
.form-check label {
  font-size: 0.85rem;
  color: var(--gris-fonce);
}
.form-submit {
  margin-top: 8px;
}
.form-success {
  display: none;
  background: #f0faf4;
  border: 1px solid #4caf50;
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  color: #2e7d32;
  font-weight: 600;
}

/* ─── Breadcrumb ─────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--gris-moyen);
}
.breadcrumb a {
  color: var(--gris-moyen);
  transition: color var(--t);
}
.breadcrumb a:hover {
  color: var(--noir);
}
.breadcrumb svg {
  width: 12px;
  height: 12px;
  opacity: 0.5;
}

/* ─── Footer ─────────────────────────────────────────────── */
.footer {
  background: var(--noir);
  color: var(--blanc);
  padding: 72px 0 0;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.2fr;
  gap: 40px;
}
.footer__brand {
}
.footer__logo {
  height: 40px;
  width: auto;
  margin-bottom: 20px;
}
.footer__tagline {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.75;
  max-width: 280px;
  margin-bottom: 24px;
}
.footer__social {
  display: flex;
  gap: 12px;
}
.footer__social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    border-color var(--t),
    background var(--t);
}
.footer__social a:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.1);
}
.footer__social svg {
  width: 15px;
  height: 15px;
  stroke: rgba(255, 255, 255, 0.7);
}
.footer__col h4 {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blanc);
  margin-bottom: 20px;
}
.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__link {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  transition: color var(--t);
}
.footer__link:hover {
  color: var(--blanc);
}
.footer__contact-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 14px;
}
.footer__contact-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 3px;
  stroke: rgba(255, 255, 255, 0.4);
  fill: none;
}
.footer__contact-item a:hover {
  color: var(--blanc);
}
.footer__bottom {
  margin-top: 56px;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer__copyright,
.footer__legal {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.3);
}
.footer__legal a {
  color: rgba(255, 255, 255, 0.4);
}
.footer__legal a:hover {
  color: rgba(255, 255, 255, 0.7);
}

/* ─── Dept Tags ──────────────────────────────────────────── */
.dept-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: var(--gris-bg);
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gris-fonce);
}
.dept-tag svg {
  width: 12px;
  height: 12px;
}

/* ─── Scroll Reveal ──────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 {
  transition-delay: 0.1s;
}
.reveal-delay-2 {
  transition-delay: 0.2s;
}
.reveal-delay-3 {
  transition-delay: 0.3s;
}
.reveal-delay-4 {
  transition-delay: 0.4s;
}

/* ─── Badges ─────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.badge--industrie {
  background: var(--anthracite);
  color: var(--blanc);
}
.badge--residentiel {
  background: var(--gris-bg);
  color: var(--gris-fonce);
}

/* ─── Services Split ─────────────────────────────────────── */
.services-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.services-split__half {
  padding: 72px;
}
.services-split__half--dark {
  background: var(--anthracite);
}
.services-split__half--dark h2 {
  color: var(--blanc);
}
.services-split__half--dark p {
  color: rgba(255, 255, 255, 0.65);
}
.services-split__half--dark .sep {
  background: var(--blanc);
}
.services-list {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.services-list__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  transition: background var(--t);
  text-decoration: none;
}
.services-list__item:hover {
  background: rgba(255, 255, 255, 0.12);
}
.services-list__item--light {
  background: var(--gris-bg);
}
.services-list__item--light:hover {
  background: var(--gris-leger);
}
.services-list__item svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  stroke: var(--blanc);
  fill: none;
}
.services-list__item--light svg {
  stroke: var(--noir);
}
.services-list__item span {
  font-size: 0.92rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}
.services-list__item--light span {
  color: var(--noir);
}
.services-list__item-arrow {
  margin-left: auto;
  opacity: 0.4;
}
.services-list__item:hover .services-list__item-arrow {
  opacity: 1;
}

/* ─── Accordion (FAQ) ────────────────────────────────────── */
.accordion {
  border: 1px solid var(--gris-leger);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.accordion__item {
  border-bottom: 1px solid var(--gris-leger);
}
.accordion__item:last-child {
  border-bottom: none;
}
.accordion__btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--noir);
  text-align: left;
  transition: background var(--t);
}
.accordion__btn:hover {
  background: var(--gris-bg);
}
.accordion__btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke: var(--gris-moyen);
  transition: transform var(--t);
}
.accordion__btn.open svg {
  transform: rotate(180deg);
}
.accordion__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}
.accordion__body.open {
  max-height: 400px;
}
.accordion__body-inner {
  padding: 0 24px 20px;
  font-size: 0.9rem;
  color: var(--gris-fonce);
  line-height: 1.8;
}

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
  .feature {
    grid-template-columns: 1fr;
  }
  .feature--reverse .feature__media {
    order: 0;
  }
  .feature--reverse .feature__content {
    order: 1;
  }
  .feature__content {
    padding: 48px;
  }
  .product-detail__grid {
    grid-template-columns: 1fr;
  }
  .services-split {
    grid-template-columns: 1fr;
  }
  .dept-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
}

@media (max-width: 768px) {
  .section,
  .section--sm {
    padding: 64px 0;
  }
  .section--lg {
    padding: 80px 0;
  }
  .section-header {
    margin-bottom: 40px;
  }
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .gallery {
    columns: 2;
  }
  .nav__links,
  .nav__cta {
    display: none;
  }
  .nav__burger {
    display: flex;
  }
  .nav__mobile {
    display: block;
  }
  .services-split__half {
    padding: 48px 24px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-group--full {
    grid-column: 1;
  }
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }
  .why-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .dept-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .trust-bar__inner {
    gap: 20px;
  }
  .hero__ctas {
    flex-direction: column;
  }
  .hero__ctas .btn {
    justify-content: center;
  }
  .page-hero {
    padding: 100px 0 48px;
  }
}

@media (max-width: 480px) {
  :root {
    --nav-h: 64px;
  }
  .gallery {
    columns: 1;
  }
  .dept-grid {
    grid-template-columns: 1fr;
  }
  .stats {
    grid-template-columns: 1fr;
  }
  .feature__content {
    padding: 32px 24px;
  }
  .dept-card {
    padding: 28px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
