/* =====================================================
   CARTDESIGN — Müller-Brockmann Grid System
   12-col · 8px baseline · Swiss red accent
   ===================================================== */

/* ---- One source of truth ---- */
:root {
  --cols: 12;
  --bl: 8px;
  --lh: 24px;       /* 3 × --bl */
  --gutter: 24px;   /* 3 × --bl */
  --margin: 48px;   /* 6 × --bl */
  --maxw: 1200px;

  --paper: #ffffff;
  --ink: #111315;
  --ink-2: #555759;   /* secondary text */
  --ink-3: #999b9e;   /* tertiary / muted */
  --rule: #e0e0e0;    /* borders */
  --fill: #f5f5f5;    /* subtle fill */
  --accent: #B85C38;  /* Clay terracotta — one accent only */

  --font: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --mono: 'IBM Plex Mono', 'Courier New', monospace;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: var(--lh);   /* 24px baseline locked */
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* =====================================================
   TYPOGRAPHY — flush-left, large scale jumps
   ===================================================== */
h1, h2, h3, h4 {
  font-family: var(--font);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.1;
}
h1 { font-size: clamp(2.5rem, 5.5vw, 5rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 3rem); }
h3 { font-size: 1.25rem; font-weight: 600; }
p  { color: var(--ink-2); line-height: var(--lh); margin-bottom: var(--lh); }
p:last-child { margin-bottom: 0; }

/* Uppercase monospace label (kicker) */
.kicker {
  font-family: var(--mono);
  font-size: 0.6875rem;   /* 11px */
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  line-height: var(--lh);
  margin-bottom: 16px;    /* 2 × --bl */
}
.kicker.accent { color: var(--accent); }

/* Large numerals */
.numeral {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 400;
  color: var(--ink-3);
  letter-spacing: 0.1em;
}

/* =====================================================
   LAYOUT — 12-column grid system
   ===================================================== */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--margin);
  position: relative;  /* for grid overlay */
}

/* Primary grid container */
.grid {
  display: grid;
  grid-template-columns: repeat(var(--cols), 1fr);
  gap: var(--gutter);
}

/* Band: full-width element that re-exposes columns as subgrid */
.band {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: subgrid;
  gap: var(--gutter);
}

/* Column placement helpers */
.col-1  { grid-column: span 1; }
.col-2  { grid-column: span 2; }
.col-3  { grid-column: span 3; }
.col-4  { grid-column: span 4; }
.col-5  { grid-column: span 5; }
.col-6  { grid-column: span 6; }
.col-7  { grid-column: span 7; }
.col-8  { grid-column: span 8; }
.col-9  { grid-column: span 9; }
.col-10 { grid-column: span 10; }
.col-11 { grid-column: span 11; }
.col-12 { grid-column: span 12; }

/* Sections: baseline-locked padding (multiples of --lh = 24px) */
section { padding: 96px 0; }   /* 4 × --lh */

/* =====================================================
   GRID OVERLAY (toggle with G key)
   ===================================================== */
.grid-overlay {
  display: none;
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  z-index: 9999;
  padding: 0 var(--margin);
}
.grid-overlay.visible { display: block; }
.grid-overlay-inner {
  display: grid;
  grid-template-columns: repeat(var(--cols), 1fr);
  gap: var(--gutter);
  height: 100%;
}
.grid-overlay-col {
  background: rgba(228, 0, 43, 0.06);
  border-left: 1px solid rgba(228, 0, 43, 0.2);
}
.grid-overlay-col:last-child { border-right: 1px solid rgba(228, 0, 43, 0.2); }

/* =====================================================
   HEADER
   ===================================================== */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  height: 64px;  /* 8 × --bl */
}
.header-wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--margin);
  display: grid;
  grid-template-columns: repeat(var(--cols), 1fr);
  gap: var(--gutter);
  align-items: center;
  height: 100%;
}
.logo {
  grid-column: 1 / 4;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}
.logo em {
  font-style: normal;
  color: var(--accent);
}
nav {
  grid-column: 5 / 13;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 40px;   /* 5 × --bl */
}
nav a {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  transition: color 0.15s;
  line-height: var(--lh);
}
nav a:hover, nav a.active { color: var(--ink); }
.nav-cta {
  color: var(--paper) !important;
  background: var(--accent);
  padding: 8px 20px;  /* 1 × --bl top/bottom */
  transition: background 0.15s !important;
}
.nav-cta:hover { background: #b3001f !important; }
.nav-cta.active { background: var(--accent) !important; color: var(--paper) !important; }

.lang-switcher { display:flex; gap:2px; margin-left:16px; align-items:center; }
.lang-switcher a { font-family:var(--mono); font-size:0.5625rem; letter-spacing:0.12em; text-transform:uppercase; color:var(--ink-3); text-decoration:none; padding:4px 5px; border:1px solid transparent; transition:color 0.15s,border-color 0.15s; }
.lang-switcher a.lang-active { color:var(--ink); border-color:var(--rule); }
.lang-switcher a:hover { color:var(--ink); }

.menu-toggle {
  display: none;
  grid-column: 12 / 13;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  justify-self: end;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--ink);
  transition: all 0.2s;
}

/* =====================================================
   HERO
   ===================================================== */
.hero {
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  filter: brightness(0.62);
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0) 30%,
    rgba(0,0,0,0.55) 100%
  );
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--margin) 72px;
  display: grid;
  grid-template-columns: repeat(var(--cols), 1fr);
  gap: var(--gutter);
}
.hero-content {
  grid-column: 1 / 11;
}
.hero .kicker {
  color: var(--accent);
  margin-bottom: 16px;
}
.hero h1 {
  color: var(--paper);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.05;
  margin-bottom: 24px;
}
.hero-desc {
  color: rgba(255,255,255,0.75);
  font-size: 1.0625rem;
  margin-bottom: 40px;
  max-width: 560px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Stats band below hero */
.hero-stats-band {
  background: #111315;
  border-bottom: 3px solid #B85C38;
}
.hero-stats-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--margin);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.hero-stat {
  padding: 28px 0;
  border-right: 1px solid rgba(255,255,255,0.08);
  padding-right: 40px;
}
.hero-stat:last-child { border-right: none; }
.hero-stat:not(:first-child) { padding-left: 40px; }
.hero-stat .numeral {
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 8px;
}
.hero-stat p { color: rgba(255,255,255,0.65); font-size: 0.875rem; margin: 0; line-height: 1.5; }

/* =====================================================
   BUTTONS
   ===================================================== */
.btn {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 16px 32px;  /* 2× --bl top/bottom */
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s;
  line-height: 1;
}
.btn-red   { background: var(--accent); color: var(--paper); border-color: var(--accent); }
.btn-red:hover { background: #8f4125; border-color: #8f4125; }
.btn-ghost { background: transparent; color: var(--paper); border-color: rgba(255,255,255,0.4); }
.btn-ghost:hover { border-color: var(--paper); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn + .btn { margin-left: 16px; }  /* 2 × --bl */

/* =====================================================
   SECTION — INTRO TEXT
   ===================================================== */
.intro-section .grid {
  align-items: start;
}
.intro-label-col {
  grid-column: 1 / 3;
  padding-top: 6px;  /* optical alignment with cap height */
}
.intro-text-col {
  grid-column: 3 / 9;
}
.intro-text-col h2 { margin-bottom: 24px; }
.intro-aside {
  grid-column: 10 / 13;
  border-top: 1px solid var(--rule);
  padding-top: 16px;
}
.intro-aside p { font-size: 0.875rem; }

/* =====================================================
   COMPETENCES — 6 items on 12-col grid
   ===================================================== */
.competences-grid {
  display: grid;
  grid-template-columns: repeat(var(--cols), 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  margin-top: 64px;  /* 8 × --bl */
}
.comp-item {
  grid-column: span 4;
  padding: 40px 32px;  /* 5/4 × --bl */
  border-bottom: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  transition: background 0.15s;
}
.comp-item:nth-child(3n) { border-right: none; }
.comp-item:hover { background: var(--fill); }
.comp-item .numeral { display: block; margin-bottom: 16px; }
.comp-item h3 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  color: var(--ink);
  line-height: var(--lh);
}
.comp-item p { font-size: 0.875rem; margin: 0; line-height: var(--lh); }

/* =====================================================
   SPLIT SECTION
   ===================================================== */
.split-section {
  display: grid;
  grid-template-columns: repeat(var(--cols), 1fr);
  gap: 0;
  min-height: 480px;  /* 20 × --lh */
}
.split-img {
  grid-column: 1 / 7;
  background-size: cover;
  background-position: center;
  min-height: 480px;
}
.split-body {
  grid-column: 7 / 13;
  padding: 64px 48px;  /* 8/6 × --bl */
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--fill);
}
.split-body h2 { margin-bottom: 16px; }
.split-body p { margin-bottom: 32px; }
.split-body .btn { align-self: flex-start; }
.split-section.reverse .split-img { grid-column: 7 / 13; order: 2; }
.split-section.reverse .split-body { grid-column: 1 / 7; order: 1; background: var(--paper); }

/* =====================================================
   GALLERY PREVIEW
   ===================================================== */
.gallery-preview {
  display: grid;
  grid-template-columns: repeat(var(--cols), 1fr);
  gap: 2px;  /* tight gap, not --gutter */
  margin-top: 48px;
}
.gp-item {
  overflow: hidden;
  background: var(--fill);
}
.gp-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gp-item:hover img { transform: scale(1.04); }
.gp-tall  { grid-column: span 4; grid-row: span 2; height: 480px; }
.gp-wide  { grid-column: span 4; height: 238px; }   /* (480px - 2px gap) / 2 ≈ 239 */
.gp-small { grid-column: span 2; height: 238px; }

/* =====================================================
   CRYPTO BANNER
   ===================================================== */
.crypto-banner {
  background: var(--ink);
  padding: 32px 0;  /* 4 × --bl */
  border-top: 3px solid var(--accent);
}
.crypto-inner {
  display: grid;
  grid-template-columns: repeat(var(--cols), 1fr);
  gap: var(--gutter);
  align-items: center;
}
.crypto-label {
  grid-column: 1 / 4;
}
.crypto-label .kicker { color: var(--accent); margin-bottom: 4px; }
.crypto-label p {
  color: rgba(255,255,255,0.5);
  font-size: 0.8125rem;
  margin: 0;
  line-height: var(--lh);
}
.crypto-coins {
  grid-column: 4 / 10;
  display: flex;
  gap: 32px;
  align-items: center;
}
.crypto-coin {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.crypto-coin-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--paper);
}
.coin-btc  { background: #f7931a; }
.coin-eth  { background: #627eea; }
.coin-xmr  { background: #ff6600; }
.coin-ada  { background: #0033ad; }
.crypto-coin span {
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}
.crypto-note {
  grid-column: 10 / 13;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.35);
  line-height: var(--lh);
  text-align: right;
}

/* =====================================================
   CTA BAND
   ===================================================== */
.cta-band {
  background: var(--accent);
  padding: 80px 0;  /* 10 × --bl */
}
.cta-band-grid {
  display: grid;
  grid-template-columns: repeat(var(--cols), 1fr);
  gap: var(--gutter);
  align-items: center;
}
.cta-band h2 {
  grid-column: 1 / 8;
  color: var(--paper);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
}
.cta-band-action {
  grid-column: 9 / 13;
  text-align: right;
}
.cta-band .btn-outline {
  color: var(--paper);
  border-color: rgba(255,255,255,0.6);
}
.cta-band .btn-outline:hover { background: var(--paper); color: var(--accent); border-color: var(--paper); }

/* =====================================================
   PAGE HERO (inner pages)
   ===================================================== */
.page-hero {
  padding-top: calc(64px + 80px);   /* header + 10 × --bl */
  padding-bottom: 80px;
  border-bottom: 1px solid var(--rule);
}
.page-hero-grid {
  display: grid;
  grid-template-columns: repeat(var(--cols), 1fr);
  gap: var(--gutter);
  align-items: end;
}
.page-hero-title {
  grid-column: 1 / 9;
}
.page-hero-title h1 { margin-top: 16px; }
.page-hero-aside {
  grid-column: 10 / 13;
  align-self: end;
  padding-bottom: 4px;
}
.page-hero-aside p {
  font-size: 0.875rem;
  line-height: var(--lh);
  margin: 0;
}

/* =====================================================
   DEVIS PAGE
   ===================================================== */
.devis-grid {
  display: grid;
  grid-template-columns: repeat(var(--cols), 1fr);
  gap: var(--gutter);
  align-items: start;
}
.products-col { grid-column: 1 / 9; }
.sidebar-col  {
  grid-column: 9 / 13;
  position: sticky;
  top: 80px;
}

.products-label {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 0;
  display: block;
}

/* Product rows */
.product-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  border-bottom: 1px solid var(--rule);
  cursor: pointer;
  transition: background 0.12s;
}
.product-item.has-image {
  grid-template-columns: 48px 1fr 200px;
}
.product-img {
  overflow: hidden;
  background: var(--fill);
  border-left: 1px solid var(--rule);
}
.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.product-item:hover .product-img img { transform: scale(1.04); }

/* Product detail sheet (shown on selection) */
.product-detail {
  display: none;
  grid-column: 2 / -1;  /* skip the checkbox column */
  padding: 0 24px 28px;
  border-top: 1px solid var(--rule);
}
.product-item.selected .product-detail { display: block; }
.product-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin-top: 20px;
}
.product-detail-col {
  background: var(--paper);
  padding: 20px;
}
.product-detail-col h4 {
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 400;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
}
.product-detail-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.product-detail-col ul li {
  font-size: 0.8125rem;
  color: var(--ink-2);
  line-height: var(--lh);
  padding: 3px 0;
  border-bottom: 1px solid var(--fill);
}
.product-detail-col ul li:last-child { border-bottom: none; }
.product-detail-col ul li::before {
  content: '—';
  color: var(--ink-3);
  margin-right: 8px;
  font-family: var(--mono);
  font-size: 0.7rem;
}
.product-detail-intro {
  font-size: 0.875rem;
  color: var(--ink-2);
  line-height: var(--lh);
  margin-top: 16px;
  max-width: 640px;
  border-left: 2px solid var(--accent);
  padding-left: 16px;
}
.product-detail-footer {
  display: flex;
  gap: 32px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  flex-wrap: wrap;
}
.product-detail-footer-item strong {
  display: block;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 3px;
}
.product-detail-footer-item span {
  font-size: 0.875rem;
  color: var(--ink);
}

/* Video embed in product detail */
.product-detail-video {
  margin-top: 20px;
  margin-bottom: 4px;
}
.product-detail-video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--ink);
  overflow: hidden;
}
.product-detail-video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.product-item:first-of-type { border-top: none; }
.product-item:hover { background: var(--fill); }
.product-item.selected {
  background: #fff8f8;
  box-shadow: inset 3px 0 0 var(--accent);
}
.product-check {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 32px;
  border-right: 1px solid var(--rule);
}
.product-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--accent);
}
.product-body { padding: 24px 24px 24px 24px; }  /* --lh */
.product-body h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: var(--lh);
  letter-spacing: -0.01em;
}
.product-body p {
  font-size: 0.875rem;
  line-height: var(--lh);
  margin-bottom: 16px;
}
.product-meta {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}
.product-price {
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.product-badge {
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 3px 7px;
}
.product-qty {
  display: none;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.product-qty label {
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.product-qty input[type="number"] {
  width: 56px;
  padding: 6px 8px;
  border: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 0.875rem;
  color: var(--ink);
  background: var(--paper);
}
.product-qty input:focus { outline: none; border-color: var(--accent); }

/* Sidebar summary */
.summary-box {
  border: 1px solid var(--rule);
  padding: 24px;
}
.summary-box-title {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 16px;
  display: block;
}
.summary-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.875rem;
}
.summary-item-name { color: var(--ink); flex: 1; padding-right: 8px; }
.summary-item-price {
  font-family: var(--mono);
  font-weight: 700;
  white-space: nowrap;
  color: var(--ink);
}
.summary-empty {
  font-size: 0.875rem;
  color: var(--ink-3);
  font-style: italic;
  padding: 8px 0;
}
.summary-total {
  display: none;
  justify-content: space-between;
  padding-top: 16px;
  font-weight: 700;
}
.summary-total-label { font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.summary-total-amount { font-family: var(--mono); font-size: 1rem; color: var(--ink); }
.summary-note {
  font-size: 0.75rem;
  color: var(--ink-3);
  margin-top: 16px;
  line-height: var(--lh);
  font-style: italic;
}

/* Devis form */
.form-block { margin-top: 24px; }
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--rule);
  font-family: var(--font);
  font-size: 0.9375rem;
  color: var(--ink);
  background: var(--paper);
  border-radius: 0;
  appearance: none;
  transition: border-color 0.15s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-group textarea { min-height: 96px; resize: vertical; }
.form-rgpd {
  font-size: 0.75rem;
  color: var(--ink-3);
  margin-top: 12px;
  line-height: var(--lh);
}
.form-success {
  display: none;
  padding: 24px;
  border: 1px solid var(--rule);
  background: var(--fill);
  text-align: center;
}
.form-success.visible { display: block; }
.form-success h3 { color: var(--accent); margin-bottom: 8px; }

/* =====================================================
   GALERIE PAGE
   ===================================================== */
.masonry {
  columns: 3;
  column-gap: 2px;
  margin-top: 48px;
}
.masonry-item {
  break-inside: avoid;
  margin-bottom: 2px;
  overflow: hidden;
  background: var(--fill);
}
.masonry-item img {
  width: 100%;
  display: block;
  transition: transform 0.5s ease;
  cursor: pointer;
}
.masonry-item:hover img { transform: scale(1.04); }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(17,19,21,0.96);
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 32px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-height: 88vh;
  max-width: 88vw;
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: 24px; right: 32px;
  color: rgba(255,255,255,0.5);
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
}
.lightbox-close:hover { color: var(--paper); }

/* =====================================================
   CONTACT PAGE
   ===================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(var(--cols), 1fr);
  gap: var(--gutter);
  align-items: start;
}
.contact-form-col { grid-column: 1 / 8; }
.contact-info-col {
  grid-column: 9 / 13;
  padding-top: 40px;
  border-top: 3px solid var(--accent);
}
.contact-form-col h2 { margin-bottom: 40px; }
.contact-form-col input,
.contact-form-col select,
.contact-form-col textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--rule);
  border-bottom-color: var(--ink-3);
  font-family: var(--font);
  font-size: 0.9375rem;
  color: var(--ink);
  background: var(--paper);
  border-radius: 0;
  appearance: none;
  transition: border-color 0.15s;
  margin-bottom: 16px;
}
.contact-form-col input:focus,
.contact-form-col select:focus,
.contact-form-col textarea:focus {
  outline: none;
  border-color: var(--accent);
  border-bottom-color: var(--accent);
}
.contact-form-col label {
  display: block;
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 6px;
}
.contact-form-col textarea { min-height: 120px; resize: vertical; }
.contact-info-col h3 {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 32px;
  font-weight: 400;
}
.info-block { margin-bottom: 32px; }
.info-block strong {
  display: block;
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 8px;
  font-weight: 400;
}
.info-block span, .info-block a {
  font-size: 0.9375rem;
  color: var(--ink);
  line-height: var(--lh);
  display: block;
}
.info-block a:hover { color: var(--accent); }
.contact-crypto {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}
.contact-crypto .kicker { margin-bottom: 16px; }
.crypto-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.crypto-tag {
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  padding: 6px 12px;
  border: 1px solid var(--rule);
  color: var(--ink-3);
}
.crypto-confirm {
  font-size: 0.8125rem;
  color: var(--ink-3);
  margin-top: 12px;
  font-style: italic;
}

/* =====================================================
   FOOTER
   ===================================================== */
#footer {
  background: var(--ink);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(var(--cols), 1fr);
  gap: var(--gutter);
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 32px;
}
.footer-brand {
  grid-column: 1 / 5;
}
.footer-brand .logo {
  display: block;
  margin-bottom: 16px;
  color: var(--paper);
}
.footer-brand p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.35);
  line-height: var(--lh);
  margin: 0;
}
.footer-nav {
  grid-column: 6 / 9;
}
.footer-contact {
  grid-column: 9 / 11;
}
.footer-crypto {
  grid-column: 11 / 13;
}
.footer-col-title {
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  margin-bottom: 16px;
  display: block;
}
.footer-nav ul, .footer-contact ul, .footer-crypto ul { list-style: none; }
.footer-nav li, .footer-contact li, .footer-crypto li {
  margin-bottom: 8px;
}
.footer-nav a, .footer-contact a, .footer-crypto li {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  transition: color 0.15s;
  line-height: var(--lh);
}
.footer-nav a:hover, .footer-contact a:hover { color: rgba(255,255,255,0.9); }
.footer-bottom {
  display: grid;
  grid-template-columns: repeat(var(--cols), 1fr);
  gap: var(--gutter);
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.2);
}
.footer-bottom-left  { grid-column: 1 / 7; }
.footer-bottom-right { grid-column: 9 / 13; text-align: right; }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1024px) {
  :root { --margin: 32px; --gutter: 16px; }
  .devis-grid { grid-template-columns: 1fr; }
  .products-col, .sidebar-col { grid-column: 1 / -1; }
  .sidebar-col { position: relative; top: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-form-col, .contact-info-col { grid-column: 1 / -1; }
  .split-section { display: flex; flex-direction: column; }
  .split-img { min-height: 300px; order: 1; }
  .split-body { order: 2; }
  .split-section.reverse .split-img { order: 1; }
  .split-section.reverse .split-body { order: 2; }
  .comp-item { grid-column: span 6; }
  .comp-item:nth-child(3n) { border-right: 1px solid var(--rule); }
  .comp-item:nth-child(2n) { border-right: none; }
  .hero-meta { display: none; }
  .hero-content { grid-column: 1 / -1; }
  .crypto-inner { grid-template-columns: 1fr; gap: 24px; }
  .crypto-label, .crypto-coins, .crypto-note { grid-column: 1 / -1; }
  .crypto-note { text-align: left; }
  .footer-brand  { grid-column: 1 / -1; }
  .footer-nav    { grid-column: 1 / 5; }
  .footer-contact { grid-column: 5 / 9; }
  .footer-crypto { grid-column: 9 / 13; }
}
@media (max-width: 768px) {
  :root { --margin: 20px; --cols: 4; }
  nav { display: none; }
  nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 64px; left: 0; right: 0; bottom: 0;
    background: var(--paper);
    padding: 32px var(--margin);
    gap: 24px;
    align-items: flex-start;
    border-top: 1px solid var(--rule);
    z-index: 199;
  }
  nav.open a {
    font-size: 0.875rem;
    color: var(--ink);
  }
  .logo { grid-column: 1 / 4; }
  .menu-toggle { display: flex; grid-column: 4 / 5; }
  .hero-grid { grid-template-columns: 1fr; padding: 0 var(--margin) 56px; }
  .hero-content { grid-column: 1 / -1; }
  .hero h1 { font-size: 2.5rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; text-align: center; }
  .hero-stats-inner { grid-template-columns: 1fr; }
  .hero-stat { border-right: none; border-top: 1px solid rgba(255,255,255,0.08); padding: 20px 0; }
  .hero-stat:first-child { border-top: none; }
  .hero-stat:not(:first-child) { padding-left: 0; }
  .intro-label-col { grid-column: 1 / -1; padding-top: 0; }
  .intro-text-col  { grid-column: 1 / -1; }
  .intro-aside     { grid-column: 1 / -1; }
  .page-hero-grid { grid-template-columns: 1fr; }
  .page-hero-title, .page-hero-aside { grid-column: 1 / -1; }
  .comp-item { grid-column: span 12; border-right: none; }
  .masonry { columns: 2; }
  .footer-nav, .footer-contact, .footer-crypto { grid-column: span 4; }
  .footer-bottom-left, .footer-bottom-right { grid-column: 1 / -1; text-align: left; }
  .crypto-coins { gap: 16px; }
  .cta-band-grid { grid-template-columns: 1fr; }
  .cta-band h2, .cta-band-action { grid-column: 1 / -1; }
  .cta-band-action { text-align: left; }
}
@media (max-width: 480px) {
  .masonry { columns: 1; }
  .btn + .btn { margin-left: 0; margin-top: 8px; }
}
