/* DMC Industrie — accueil */

/* HERO */
.hero {
  position: relative;
  min-height: clamp(640px, 100svh, 980px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
}
.hero-media {
  position: absolute; inset: 0; z-index: -2;
  background: url("../img/galerie-07.jpg") center 40% / cover no-repeat;
  transform: scale(1.06);
  animation: heroZoom 14s var(--ease) forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(11,12,13,.55) 0%, rgba(11,12,13,.15) 35%, rgba(11,12,13,.85) 78%, rgba(11,12,13,1) 100%),
    linear-gradient(90deg, rgba(11,12,13,.75) 0%, rgba(11,12,13,0) 60%);
}
.hero-content { padding: 160px 0 56px; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 10px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(8px);
  font-size: 13px; font-weight: 600;
}
.hero-tag .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(226,112,28,.25); }
.hero h1 {
  font-size: clamp(46px, 8.2vw, 118px);
  line-height: .94;
  letter-spacing: -0.035em;
  margin: 26px 0 26px;
  max-width: 11ch;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; color: rgba(255,255,255,.8); max-width: 560px; margin: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-bar {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: 72px;
  border-top: 1px solid rgba(255,255,255,.14);
}
.hero-bar div { padding: 22px 24px 0 0; }
.hero-bar b {
  display: block;
  font-family: var(--font-display);
  font-weight: 800; font-stretch: 112%;
  font-size: clamp(22px, 2.4vw, 30px);
  letter-spacing: -0.02em;
}
.hero-bar span { display: block; color: rgba(255,255,255,.55); font-size: 14px; margin-top: 4px; }

/* MARQUEE */
.marquee {
  background: var(--accent);
  color: #fff;
  overflow: hidden;
  white-space: nowrap;
  padding: 18px 0;
}
.marquee-track { display: inline-flex; gap: 48px; animation: marquee 32s linear infinite; padding-left: 48px; }
.marquee span {
  font-family: var(--font-display);
  font-weight: 800; font-stretch: 115%;
  font-size: 22px; letter-spacing: -0.01em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 48px;
}
.marquee span::after { content: "✦"; font-size: 14px; opacity: .7; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* SECTIONS */
section { position: relative; }
.light { background: var(--paper); color: var(--text); }
.dark { background: var(--ink); color: #fff; }
.pad { padding: clamp(80px, 10vw, 140px) 0; }
.sec-head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: 56px; }
.sec-head h2 { font-size: clamp(36px, 5vw, 68px); margin-top: 18px; }
.sec-head p { font-size: 18px; line-height: 1.65; margin: 0; max-width: 46ch; }
.light .sec-head p { color: var(--text2); }
.dark .sec-head p { color: rgba(255,255,255,.65); }
.light .kicker { color: var(--accent-ink); }

/* SERVICES */
.services { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
@media (max-width: 1100px) {
  .services { grid-template-columns: repeat(3, 1fr); }
}
.service {
  position: relative;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 30px 26px 28px;
  min-height: 300px;
  display: flex; flex-direction: column;
  transition: transform .35s var(--ease), border-color .35s var(--ease), background .35s var(--ease), color .35s var(--ease);
}
.service:hover { transform: translateY(-6px); background: var(--text); color: #fff; border-color: var(--text); }
.service:hover p { color: rgba(255,255,255,.7); }
.service:hover .ico { background: var(--accent); color: #fff; }
.service .ico {
  width: 56px; height: 56px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--paper); color: var(--accent-ink);
  transition: background .35s var(--ease), color .35s var(--ease);
}
.service .ico svg { width: 26px; height: 26px; }
.service .num { position: absolute; top: 28px; right: 26px; font-family: var(--font-mono); font-size: 12px; color: #a3a7ab; }
.service h3 { font-size: 24px; margin: auto 0 10px; padding-top: 40px; }
.service p { margin: 0; color: var(--text2); font-size: 15px; line-height: 1.6; transition: color .35s; }

/* SPLIT FEATURE */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-media .float {
  position: absolute; left: 20px; bottom: 20px; right: 20px;
  display: flex; align-items: center; gap: 14px;
  background: rgba(255,255,255,.94); color: var(--text);
  border-radius: 14px; padding: 16px 18px;
  backdrop-filter: blur(8px);
}
.split-media .float b { font-family: var(--font-display); font-stretch: 112%; font-size: 26px; font-weight: 800; color: var(--accent-ink); }
.split-media .float span { font-size: 14px; color: var(--text2); line-height: 1.4; }
.split h2 { font-size: clamp(34px, 4.4vw, 58px); margin: 18px 0 22px; }
.split p.big { font-size: 18px; line-height: 1.7; color: var(--text2); margin: 0 0 28px; }
.checks { list-style: none; padding: 0; margin: 0 0 36px; display: grid; gap: 2px; }
.checks li {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px 0; border-bottom: 1px solid var(--rule);
  font-weight: 600; font-size: 16px;
}
.checks li svg { flex: none; width: 22px; height: 22px; color: var(--accent-ink); margin-top: 1px; }
.checks li small { display: block; font-weight: 500; color: var(--text2); font-size: 14px; margin-top: 2px; }

/* GALLERY */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip {
  height: 42px; padding: 0 18px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.2); background: transparent; color: rgba(255,255,255,.8);
  font-weight: 600; font-size: 14px; cursor: pointer;
  transition: all .2s var(--ease);
}
.chip:hover { border-color: #fff; color: #fff; }
.chip.active { background: #fff; color: var(--ink); border-color: #fff; }
.chip .n { font-family: var(--font-mono); font-size: 11px; opacity: .6; margin-left: 6px; }

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 280px;
  grid-auto-flow: dense;
  gap: 14px;
}
.g-item {
  position: relative; overflow: hidden;
  border-radius: 16px; background: #1a1d20;
  cursor: zoom-in; border: 0; padding: 0; text-align: left; color: #fff;
}
.g-item.tall { grid-row: span 2; }
.g-item.wide { grid-column: span 2; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease), filter .4s; }
.g-item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,.78) 100%);
  transition: opacity .3s;
}
.g-item:hover img { transform: scale(1.06); }
.g-cap { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 1; display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; }
.g-cap strong { display: block; font-family: var(--font-display); font-stretch: 108%; font-weight: 700; font-size: 18px; letter-spacing: -0.01em; line-height: 1.2; }
.g-cap span { display: block; font-size: 13px; color: rgba(255,255,255,.7); margin-top: 3px; }
.g-cap .zoom {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.16); backdrop-filter: blur(6px);
  transform: scale(.8); opacity: 0; transition: all .3s var(--ease);
}
.g-cap .zoom svg { width: 18px; height: 18px; }
.g-item:hover .zoom { transform: none; opacity: 1; background: var(--accent); }
.g-item.hide { display: none; }

/* LIGHTBOX */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(8,9,10,.96);
  display: grid; grid-template-rows: auto 1fr auto;
  opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease);
  overscroll-behavior: contain;
  touch-action: pan-y;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lb-top, .lb-bottom { display: flex; justify-content: space-between; align-items: center; padding: 18px 24px; color: #fff; }
.lb-count { font-family: var(--font-mono); font-size: 13px; color: rgba(255,255,255,.6); }
.lb-stage { position: relative; display: grid; place-items: center; padding: 0 84px; min-height: 0; }
.lb-stage img {
  max-width: 100%; max-height: 100%; object-fit: contain;
  border-radius: 8px;
  transition: opacity .25s var(--ease), transform .35s var(--ease);
}
.lb-stage img.swap { opacity: 0; transform: scale(.98); }
.lb-btn {
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06);
  color: #fff; cursor: pointer; display: grid; place-items: center;
  transition: background .2s, border-color .2s;
}
.lb-btn:hover { background: var(--accent); border-color: var(--accent); }
.lb-btn svg { width: 22px; height: 22px; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: 20px; }
.lb-next { right: 20px; }
.lb-cap strong { display: block; font-family: var(--font-display); font-stretch: 108%; font-weight: 700; font-size: 20px; }
.lb-cap span { color: rgba(255,255,255,.6); font-size: 14px; }

/* MATERIALS */
.mat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: var(--radius-lg); overflow: hidden; }
.mat { background: var(--card); padding: 30px 28px; transition: background .25s; }
.mat:hover { background: var(--paper); }
.mat .sw { width: 44px; height: 44px; border-radius: 50%; margin-bottom: 22px; border: 1px solid rgba(0,0,0,.08); }
.mat h3 { font-size: 22px; margin-bottom: 6px; }
.mat p { margin: 0; color: var(--text2); font-size: 15px; }
.sw-acier { background: linear-gradient(135deg, #4a4f55, #2a2d31); }
.sw-inox { background: linear-gradient(135deg, #e8eaec, #a9aeb3); }
.sw-alu { background: linear-gradient(135deg, #d6d9dc, #9ea4aa); }
.sw-galva { background: linear-gradient(135deg, #b9bfc4, #7d858c); }
.sw-peint { background: linear-gradient(135deg, #3b4148, #1f2328); }
/* PROCESS */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.step {
  position: relative; padding: 28px 24px 30px;
  border-top: 2px solid var(--rule);
  transition: border-color .3s;
}
.step:hover { border-color: var(--accent); }
.step .n {
  font-family: var(--font-display); font-stretch: 115%; font-weight: 800;
  font-size: 64px; line-height: 1; color: transparent;
  -webkit-text-stroke: 1.5px #b9b5ac;
  transition: -webkit-text-stroke-color .3s, color .3s;
}
.step:hover .n { color: var(--accent); -webkit-text-stroke-color: var(--accent); }
.step h3 { font-size: 22px; margin: 22px 0 10px; }
.step p { margin: 0; color: var(--text2); font-size: 15px; line-height: 1.6; }

/* CTA */
.cta {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: 28px; padding: clamp(48px, 7vw, 96px);
  color: #fff;
  display: grid; grid-template-columns: 1.3fr auto; gap: 32px; align-items: end;
}
.cta::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: url("../img/galerie-05.jpg") center 35% / cover;
}
.cta::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(11,12,13,.94) 30%, rgba(11,12,13,.55) 100%);
}
.cta h2 { font-size: clamp(36px, 5.4vw, 76px); max-width: 13ch; }
.cta p { margin: 18px 0 0; font-size: 18px; color: rgba(255,255,255,.75); max-width: 44ch; }
.cta .btn { --h: 60px; padding: 0 30px; font-size: 16px; }

/* CONTACT */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.c-card {
  display: flex; flex-direction: column; gap: 18px;
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius-lg);
  padding: 28px; transition: border-color .25s, transform .25s var(--ease);
}
a.c-card:hover { border-color: var(--text); transform: translateY(-3px); }
.c-card .ico { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--paper); color: var(--accent-ink); }
.c-card .ico svg { width: 22px; height: 22px; }
.c-card small { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text2); }
.c-card b { display: block; font-family: var(--font-display); font-stretch: 108%; font-weight: 700; font-size: 20px; letter-spacing: -0.01em; margin-top: 4px; word-break: break-word; }

/* RESPONSIVE */
@media (max-width: 1080px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .sec-head, .split, .cta { grid-template-columns: 1fr; }
  .sec-head { gap: 18px; margin-bottom: 40px; }
  .hero-bar { grid-template-columns: repeat(2, 1fr); row-gap: 8px; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 220px; }
  .mat-grid, .contact-grid { grid-template-columns: 1fr 1fr; }
  .split-media { aspect-ratio: 4 / 3; }
  .lb-stage { padding: 0 12px; }
  .lb-prev, .lb-next { width: 44px; height: 44px; background: rgba(0,0,0,.55); }
  .lb-prev { left: 18px; }
  .lb-next { right: 18px; }
}
@media (max-width: 560px) {
  .hero-content { padding: 130px 0 40px; }
  .hero::after { background: linear-gradient(180deg, rgba(11,12,13,.6) 0%, rgba(11,12,13,.55) 40%, rgba(11,12,13,.92) 75%, rgba(11,12,13,1) 100%); }
  .hero-bar { margin-top: 48px; }
  .hero-bar b { font-size: 18px; }
  .hero-bar span { font-size: 13px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .services, .steps, .mat-grid, .contact-grid { grid-template-columns: 1fr; }
  .service { min-height: 0; }
  .gallery { grid-auto-rows: 180px; gap: 10px; }
  .g-item.wide { grid-column: span 2; }
  .g-cap strong { font-size: 15px; }
  .g-cap span { display: none; }
  .cta { border-radius: 20px; }
  .cta .btn { width: 100%; }
  .marquee span { font-size: 18px; }
}
