/* ============================================================
   Ressorts Gagnebin — WEB2026
   Thème : industriel, foncé, accent orange
   ============================================================ */

:root {
  --ink: #0d1117;
  --ink-2: #131a22;
  --ink-3: #1b2430;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  --accent: #f97316;
  --accent-strong: #ea580c;
  --accent-soft: rgba(249, 115, 22, 0.12);
  --light: #f7f8fa;
  --light-2: #eef1f4;
  --text: #e7eaee;
  --text-dim: #9aa4b1;
  --text-dark: #1c2530;
  --text-dark-dim: #5b6675;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 18px 40px rgba(10, 14, 20, 0.18);
  --font-head: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--light);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.container {
  width: min(1160px, 92%);
  margin-inline: auto;
}

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

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  font-family: var(--font-body);
}

.btn:hover { transform: translateY(-2px); }

.btn-accent {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.35);
}
.btn-accent:hover { background: var(--accent-strong); }

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-outline {
  border-color: var(--text-dark);
  color: var(--text-dark);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent-strong); }

.btn-lg { padding: 1rem 2rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-nav { padding: 0.55rem 1.15rem; font-size: 0.88rem; }

/* ---------- Kickers / titres ---------- */
.kicker {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--accent);
  margin-bottom: 0.9rem;
}
.kicker-light { color: #fdba74; }

.section { padding: 6.5rem 0; }

.section-dark {
  background: var(--ink);
  color: var(--text);
}

.section-head { max-width: 720px; margin-bottom: 3.5rem; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); color: var(--text-dark); }
.section-dark .section-head h2 { color: #fff; }
.section-head-center { margin-inline: auto; text-align: center; }
.section-lead { color: var(--text-dim); margin-top: 1.1rem; max-width: 560px; margin-inline: auto; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.25s ease, border-color 0.25s ease;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(13, 17, 23, 0.92);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: #fff;
}

.brand-mark {
  color: var(--accent);
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(249, 115, 22, 0.12);
  border: 1px solid rgba(249, 115, 22, 0.35);
}

/* Logo : pastille claire pour s'intégrer au header sombre */
.brand-logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: 46px;
  padding: 5px 8px;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
}
.brand-logo {
  height: 34px;
  width: auto;
  display: block;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-touch-callout: none;
}
.brand-logo-mark-footer {
  height: 38px;
  padding: 4px 6px;
}
.brand-logo-mark-footer .brand-logo {
  height: 27px;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-head); font-size: 1.15rem; letter-spacing: 0.04em; }
.brand-text small { font-size: 0.68rem; color: var(--text-dim); letter-spacing: 0.05em; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.7rem;
}

.site-nav a:not(.btn) {
  color: var(--text);
  font-size: 0.93rem;
  font-weight: 500;
  opacity: 0.85;
  transition: color 0.15s ease, opacity 0.15s ease;
}
.site-nav a:not(.btn):hover { color: var(--accent); opacity: 1; }

.nav-backdrop { display: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px; height: 2.5px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--text);
  padding: 11rem 0 5.5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    /* trame électrosoudée (grille) */
    radial-gradient(circle at 78% 18%, rgba(249, 115, 22, 0.16), transparent 42%),
    radial-gradient(circle at 12% 88%, rgba(249, 115, 22, 0.08), transparent 40%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.045) 0 1px, transparent 1px 42px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.045) 0 1px, transparent 1px 42px),
    linear-gradient(180deg, #0a0e13 0%, var(--ink) 100%);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 120%, rgba(13,17,23,0.9), transparent 60%);
}

.hero-inner { position: relative; z-index: 1; max-width: 860px; }

.hero h1 {
  font-size: clamp(2.3rem, 5.4vw, 3.9rem);
  color: #fff;
  margin-bottom: 1.4rem;
}

.hero-sub {
  font-size: 1.12rem;
  color: var(--text-dim);
  max-width: 640px;
  margin-bottom: 2.2rem;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 4rem; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.03);
  padding: 1.6rem 1.4rem;
}

.stat { text-align: center; padding: 0.4rem 0.6rem; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat dt { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.6rem, 3vw, 2.2rem); color: #fff; }
.stat .stat-unit { color: var(--accent); font-size: 0.62em; }
.stat dd { font-size: 0.82rem; color: var(--text-dim); margin-top: 0.25rem; }

/* ============================================================
   ENTREPRISE
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-text p { color: var(--text-dark-dim); margin-bottom: 1.2rem; }
.about-text strong { color: var(--text-dark); }
.about-strong {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  padding: 1rem 1.2rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.about-strong strong { color: var(--accent-strong); }
.about-text .btn { margin-top: 0.6rem; }

.timeline { position: relative; padding-left: 1.8rem; }
.timeline::before {
  content: "";
  position: absolute;
  left: 5px; top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(var(--accent), var(--line-strong));
}

.timeline-item { position: relative; padding-bottom: 1.9rem; }
.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -1.8rem; top: 6px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--light);
  border: 3px solid var(--accent);
  transform: translateX(-50%);
}

.timeline h3 {
  font-size: 1.05rem;
  color: var(--accent-strong);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.3rem;
}
.timeline p { color: var(--text-dark-dim); font-size: 0.96rem; }

/* ============================================================
   PRODUITS
   ============================================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}

.product-card {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.8rem 1.8rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(249, 115, 22, 0.5);
  background: var(--ink-3);
}

.product-illus {
  display: grid;
  place-items: center;
  height: 170px;
  margin-bottom: 1.2rem;
  color: var(--accent);
  background: radial-gradient(circle at 50% 50%, rgba(249,115,22,0.12), transparent 70%);
}

.product-illus svg { width: 120px; height: 150px; }
.product-illus .illus-mesh, .product-illus .illus-gate { width: 190px; height: 130px; }

.product-tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.product-card h3 { color: #fff; font-size: 1.5rem; margin-bottom: 0.7rem; }

.product-desc { color: var(--text-dim); font-size: 0.95rem; margin-bottom: 1.1rem; }

.product-list {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1.5rem;
}
.product-list li {
  color: var(--text);
  font-size: 0.93rem;
  padding-left: 1.3rem;
  position: relative;
}
.product-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.5em;
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 2px;
  transform: rotate(45deg);
}

.product-link {
  margin-top: auto;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.15s ease;
}
.product-link:hover { color: #fdba74; }

/* ============================================================
   SAVOIR-FAIRE
   ============================================================ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}

.skill-card {
  background: #fff;
  border: 1px solid #e3e8ee;
  border-radius: var(--radius);
  padding: 1.9rem 1.7rem;
  box-shadow: 0 4px 14px rgba(16, 24, 40, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
  position: relative;
}
.skill-card:hover, .skill-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(249, 115, 22, 0.4);
}
.skill-card:focus-visible { outline: 3px solid rgba(249, 115, 22, 0.55); outline-offset: 2px; }

.skill-icon {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 13px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  margin-bottom: 1.1rem;
}
.skill-icon svg { width: 26px; height: 26px; }

.skill-card h3 { font-size: 1.12rem; margin-bottom: 0.5rem; }
.skill-card p { color: var(--text-dark-dim); font-size: 0.94rem; }

.skill-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-strong);
  transition: gap 0.2s ease, color 0.2s ease;
}
.skill-card:hover .skill-more, .skill-card:focus-visible .skill-more { gap: 0.7rem; color: var(--accent); }

/* ============================================================
   SECTEURS D'APPLICATION
   ============================================================ */
.sectors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}

.sector-card {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.sector-card:hover {
  transform: translateY(-4px);
  border-color: rgba(249, 115, 22, 0.45);
}

.sector-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(249, 115, 22, 0.12);
  color: var(--accent);
  border: 1px solid rgba(249, 115, 22, 0.25);
  margin-bottom: 1rem;
}
.sector-icon svg { width: 24px; height: 24px; }

.sector-card h3 { color: #fff; font-size: 1.08rem; margin-bottom: 0.45rem; }
.sector-card p { color: var(--text-dim); font-size: 0.93rem; }

/* ============================================================
   CAPACITÉS (tableau)
   ============================================================ */
.caps {
  margin: 3.5rem auto 0;
  max-width: 780px;
}
.caps-title {
  text-align: center;
  font-size: 1.15rem;
  margin-bottom: 1.2rem;
  color: var(--text-dark);
}
.caps-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid #e3e8ee;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(16, 24, 40, 0.05);
}
.caps-table th,
.caps-table td {
  text-align: left;
  padding: 0.85rem 1.2rem;
  font-size: 0.95rem;
  border-bottom: 1px solid #eef1f4;
}
.caps-table tr:last-child th,
.caps-table tr:last-child td { border-bottom: none; }
.caps-table th {
  width: 42%;
  font-weight: 600;
  color: var(--accent-strong);
  background: #fafbfc;
}
.caps-table td { color: var(--text-dark-dim); }

/* ============================================================
   GALERIE
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.gallery-item {
  position: relative;
  display: block;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink-2);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  font-family: var(--font-body);
}
.gallery-item:hover, .gallery-item:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(249, 115, 22, 0.5);
  box-shadow: 0 18px 40px rgba(10, 14, 20, 0.35);
}
.gallery-item:focus-visible { outline: 3px solid rgba(249, 115, 22, 0.55); outline-offset: 2px; }

.gallery-item img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}
.gallery-item:hover img { transform: scale(1.06); }

.gallery-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.6rem 0.9rem 0.7rem;
  background: linear-gradient(transparent, rgba(5, 8, 12, 0.88));
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: left;
  pointer-events: none;
}

/* ============================================================
   RÉFÉRENCES
   ============================================================ */
.refs-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
}
.refs-strip li {
  padding: 0.55rem 1.2rem;
  background: #fff;
  border: 1px solid #e3e8ee;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-dark);
  transition: border-color 0.15s ease, color 0.15s ease;
}
.refs-strip li:hover { border-color: rgba(249, 115, 22, 0.5); color: var(--accent-strong); }

/* ============================================================
   BANDEAU CTA
   ============================================================ */
.cta-band {
  background: linear-gradient(120deg, #c2410c 0%, #ea580c 55%, #f97316 100%);
  color: #fff;
  padding: 4.2rem 0;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.2rem;
  flex-wrap: wrap;
}
.cta-text h2 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: 0.5rem; }
.cta-text p { color: rgba(255, 255, 255, 0.9); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.btn-light {
  background: #fff;
  color: #9a3412;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}
.btn-light:hover { background: #ffedd5; }

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.75);
  color: #fff;
}
.btn-outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, 0.12); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 2.4rem;
  align-items: start;
}

.contact-info {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
}
.contact-info h3 { color: #fff; font-size: 1.3rem; margin-bottom: 1.4rem; }

.contact-list { display: grid; gap: 1.3rem; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact-list strong { display: block; color: #fff; font-size: 0.92rem; margin-bottom: 0.15rem; }
.contact-list p { color: var(--text-dim); font-size: 0.92rem; }
.contact-list a:hover { color: var(--accent); }

.contact-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 11px;
  background: rgba(249, 115, 22, 0.12);
  color: var(--accent);
  border: 1px solid rgba(249, 115, 22, 0.25);
}
.contact-icon svg { width: 21px; height: 21px; }

/* Formulaire */
.contact-form {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }

.form-field { margin-bottom: 1.1rem; }

.form-field label {
  display: block;
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  background: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.18);
}

.form-field input::placeholder, .form-field textarea::placeholder { color: #5c6672; }

.form-field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239aa4b1' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.9rem center; }

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

.form-note {
  margin-top: 1rem;
  color: #fdba74;
  font-size: 0.9rem;
  background: rgba(249, 115, 22, 0.1);
  border: 1px solid rgba(249, 115, 22, 0.3);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
}

/* Carte */
.map-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.4rem;
}

.map-btn-icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
}
.map-btn-icon svg { width: 19px; height: 19px; }

.map-wrap {
  margin-top: 1.2rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  line-height: 0;
}
.map-wrap iframe { width: 100%; height: 360px; border: 0; filter: grayscale(0.2) contrast(1.05); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #080b0f;
  color: var(--text-dim);
  border-top: 1px solid var(--line);
  padding-top: 3.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.4rem;
  padding-bottom: 2.8rem;
}

.brand-footer { margin-bottom: 1rem; }
.site-footer h4 { color: #fff; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 1rem; }
.site-footer ul { display: grid; gap: 0.5rem; font-size: 0.92rem; }
.site-footer a:hover { color: var(--accent); }
.site-footer p { font-size: 0.92rem; }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 1.3rem 0;
  font-size: 0.85rem;
  text-align: center;
}

/* ============================================================
   LIGHTBOX (savoir-faire)
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1.2rem;
}

.lightbox[hidden] { display: none; }

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 12, 0.88);
  backdrop-filter: blur(6px);
}

.lightbox-card {
  position: relative;
  z-index: 1;
  width: min(720px, 96vw);
  max-height: 92vh;
  overflow: auto;
  background: var(--ink-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  animation: lightbox-in 0.28s ease;
}

@keyframes lightbox-in {
  from { opacity: 0; transform: scale(0.96) translateY(10px); }
  to   { opacity: 1; transform: none; }
}

.lightbox-card img {
  width: 100%;
  height: clamp(220px, 46vh, 420px);
  object-fit: cover;
  background: var(--ink);
  border-radius: var(--radius) var(--radius) 0 0;
}

.lightbox-body { padding: 1.6rem 1.8rem 1.9rem; }
.lightbox-body h3 { color: #fff; font-size: 1.4rem; margin-bottom: 0.5rem; }
.lightbox-body p { color: var(--text-dim); font-size: 0.98rem; }

.lightbox-close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  z-index: 2;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(13, 17, 23, 0.85);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.lightbox-close:hover { background: var(--accent); border-color: var(--accent); transform: rotate(90deg); }

body.lightbox-open { overflow: hidden; }

/* ============================================================
   ANIMATIONS (reveal)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .products-grid, .skills-grid, .sectors-grid, .gallery-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 1.2rem 0; }
  .stat:nth-child(3) { border-left: none; }
}

@media (max-width: 720px) {
  .section { padding: 4.5rem 0; }
  .hero { padding: 8.5rem 0 4rem; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .cta-actions .btn { width: 100%; }
  .caps-table th { width: 45%; }

  /* Voile derrière le menu mobile */
  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 98;
    background: rgba(5, 8, 12, 0.62);
    backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }
  .nav-backdrop.show {
    opacity: 1;
    visibility: visible;
  }
  body.nav-open { overflow: hidden; }

  .nav-toggle { display: flex; }

  .site-nav {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(320px, 84vw);
    background: var(--ink-2);
    border-left: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.4rem;
    padding: 5.5rem 1.8rem 2rem;
    transform: translateX(105%);
    transition: transform 0.3s ease;
    z-index: 99;
  }
  .site-nav.open { transform: none; }
  .site-nav a:not(.btn) { padding: 0.7rem 0; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .site-nav .btn { margin-top: 1.2rem; }

  .products-grid, .skills-grid, .sectors-grid, .gallery-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .hero-cta .btn { width: 100%; }
}

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