/* ─── RESET & VARIABLES ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --charcoal:   oklch(14% 0.012 240);
  --charcoal-2: oklch(20% 0.012 240);
  --charcoal-3: oklch(26% 0.010 240);
  --orange:     oklch(65% 0.18 48);
  --orange-dim: oklch(55% 0.15 48);
  --white:      oklch(97% 0.006 80);
  --grey:       oklch(60% 0.008 240);
  --grey-light: oklch(80% 0.006 240);
  --border:     oklch(30% 0.010 240);
  --font-display: 'Barlow Condensed', sans-serif;
  --font-body:    'Barlow', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--charcoal);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
}

/* ─── NAV ─── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: oklch(10% 0.012 240 / 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 800;
  font-style: italic;
  color: var(--orange);
  letter-spacing: -0.02em;
  text-decoration: none;
}
.nav-logo span { color: var(--white); font-style: normal; font-weight: 300; font-size: 0.9rem; display: block; line-height: 1; letter-spacing: 0.1em; text-transform: uppercase; }
.nav-links { display: flex; gap: 4px; list-style: none; }
.nav-links a {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey-light);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--orange); background: oklch(100% 0 0 / 0.05); }
.nav-cta { background: var(--orange) !important; color: var(--charcoal) !important; padding: 8px 18px !important; border-radius: 4px; font-weight: 700 !important; }
.nav-cta:hover { background: var(--orange-dim) !important; color: var(--white) !important; }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; background: none; border: none; }
.hamburger span { width: 24px; height: 2px; background: var(--white); display: block; transition: all 0.3s; }
.mobile-menu { display: none; flex-direction: column; background: var(--charcoal-2); border-top: 1px solid var(--border); padding: 16px; gap: 4px; }
.mobile-menu a { font-family: var(--font-display); font-size: 1rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--grey-light); text-decoration: none; padding: 10px 16px; border-radius: 4px; display: block; }
.mobile-menu a:hover { color: var(--orange); background: oklch(100% 0 0 / 0.05); }
.mobile-menu.open { display: flex; }

/* ─── PAGE LAYOUT ─── */
.page-content { padding-top: 68px; }

/* ─── HERO ─── */
.hero {
  position: relative;
  height: 92vh;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('images/hero.jpg');
  background-size: cover;
  background-position: center top;
  filter: brightness(0.45) saturate(0.6);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, oklch(14% 0.012 240) 0%, transparent 55%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 72px;
  width: 100%;
}
.hero-tag {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-tag::before { content: ''; display: block; width: 40px; height: 2px; background: var(--orange); }
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 800;
  font-style: italic;
  line-height: 0.92;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 28px;
}
.hero-title em { color: var(--orange); font-style: italic; }
.hero-sub {
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--grey-light);
  max-width: 560px;
  margin-bottom: 40px;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ─── BUTTONS ─── */
.btn-primary {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--orange);
  color: var(--charcoal);
  border: none;
  padding: 14px 32px;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s, transform 0.1s;
}
.btn-primary:hover { background: var(--orange-dim); transform: translateY(-1px); }
.btn-outline {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: transparent;
  color: var(--white);
  border: 1.5px solid var(--border);
  padding: 14px 32px;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: border-color 0.2s, color 0.2s;
}
.btn-outline:hover { border-color: var(--orange); color: var(--orange); }

/* ─── SECTIONS ─── */
section { padding: 80px 0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-label::before { content: ''; display: block; width: 28px; height: 2px; background: var(--orange); }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--white);
  margin-bottom: 40px;
}

/* ─── SERVICES ─── */
.services-bg { background: var(--charcoal-2); }
.services-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: end; margin-bottom: 64px; }
.services-desc { color: var(--grey-light); font-size: 1rem; line-height: 1.8; font-weight: 300; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 2px; }
.service-card { background: var(--charcoal-3); padding: 32px 28px; transition: background 0.2s; border-left: 3px solid transparent; }
.service-card:hover { background: oklch(30% 0.012 240); border-left-color: var(--orange); }
.service-icon { width: 44px; height: 44px; margin-bottom: 20px; color: var(--orange); }
.service-name { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; letter-spacing: 0.02em; color: var(--white); margin-bottom: 8px; line-height: 1.2; }
.service-desc { font-size: 0.88rem; color: var(--grey); line-height: 1.6; }

/* ─── ABOUT STRIP ─── */
.about-strip { background: var(--orange); padding: 56px 0; }
.about-strip-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center; }
.about-quote { font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; font-style: italic; color: var(--charcoal); line-height: 1.3; }
.about-contact { text-align: right; }
.about-phone { font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: var(--charcoal); display: block; letter-spacing: -0.02em; }
.about-email { font-size: 0.9rem; color: oklch(20% 0.05 48); text-decoration: none; }
.about-email:hover { text-decoration: underline; }

/* ─── GALLERY ─── */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.gallery-item { aspect-ratio: 4/3; overflow: hidden; cursor: pointer; position: relative; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s, filter 0.4s; filter: saturate(0.7) brightness(0.85); }
.gallery-item:hover img { transform: scale(1.05); filter: saturate(1) brightness(1); }
.gallery-item-overlay { position: absolute; inset: 0; background: linear-gradient(to top, oklch(10% 0.012 240 / 0.7) 0%, transparent 60%); opacity: 0; transition: opacity 0.3s; display: flex; align-items: flex-end; padding: 20px; }
.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-item-label { font-family: var(--font-display); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--white); }

/* ─── CONTACT ─── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.contact-info h3 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: var(--white); margin-bottom: 24px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 24px; }
.contact-item-icon { width: 40px; height: 40px; border-radius: 4px; background: var(--charcoal-3); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--orange); }
.contact-item-text { font-size: 0.95rem; color: var(--grey-light); }
.contact-item-text strong { color: var(--white); font-weight: 600; display: block; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 2px; }
.contact-item-text a { color: var(--orange); text-decoration: none; }
.form-row { margin-bottom: 20px; }
.form-row label { display: block; font-family: var(--font-display); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--grey); margin-bottom: 8px; }
.form-row input, .form-row textarea, .form-row select { width: 100%; background: var(--charcoal-3); border: 1.5px solid var(--border); color: var(--white); font-family: var(--font-body); font-size: 0.95rem; padding: 12px 16px; border-radius: 4px; outline: none; transition: border-color 0.2s; }
.form-row input:focus, .form-row textarea:focus { border-color: var(--orange); }
.form-row textarea { resize: vertical; min-height: 140px; }

/* ─── PARTNERS ─── */
.partners-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 2px; }
.partner-card { background: var(--charcoal-2); padding: 40px 24px; display: flex; align-items: center; justify-content: center; aspect-ratio: 2/1; filter: grayscale(0.8) brightness(0.7); transition: filter 0.3s; }
.partner-card:hover { filter: grayscale(0) brightness(1); }
.partner-card img { max-width: 120px; max-height: 60px; object-fit: contain; }
.partner-name { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; color: var(--grey-light); text-align: center; letter-spacing: 0.04em; }

/* ─── MACHINES ─── */
.machines-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 2px; }
.machine-card { background: var(--charcoal-2); overflow: hidden; }
.machine-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; filter: saturate(0.6); transition: filter 0.3s; }
.machine-card:hover .machine-img { filter: saturate(1); }
.machine-info { padding: 24px; }
.machine-name { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.machine-desc { font-size: 0.88rem; color: var(--grey); line-height: 1.6; }

/* ─── DEPANNAGE ─── */
.depannage-points { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; margin-top: 48px; }
.dep-point { background: var(--charcoal-3); padding: 32px; display: flex; gap: 20px; align-items: flex-start; border-left: 3px solid transparent; transition: border-color 0.2s, background 0.2s; }
.dep-point:hover { border-left-color: var(--orange); background: oklch(30% 0.012 240); }
.dep-num { font-family: var(--font-display); font-size: 2.5rem; font-weight: 800; color: oklch(30% 0.01 240); line-height: 1; min-width: 48px; }
.dep-text h4 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--white); margin-bottom: 6px; }
.dep-text p { font-size: 0.88rem; color: var(--grey); line-height: 1.6; }

/* ─── PAGE HEADER ─── */
.page-header {
  background: var(--charcoal-2);
  background-size: cover;
  background-position: center;
  padding: 120px 0 80px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: attr(data-title);
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: 12rem;
  font-weight: 900;
  font-style: italic;
  color: oklch(22% 0.01 240);
  line-height: 1;
  pointer-events: none;
  white-space: nowrap;
  opacity: 0.6;
}
.page-header .container { position: relative; z-index: 1; }

/* ─── FOOTER ─── */
footer { background: oklch(9% 0.01 240); border-top: 1px solid var(--border); padding: 48px 0 32px; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 48px; }
.footer-brand-name { font-family: var(--font-display); font-size: 1.8rem; font-weight: 800; font-style: italic; color: var(--orange); margin-bottom: 12px; }
.footer-brand-desc { font-size: 0.88rem; color: var(--grey); line-height: 1.7; }
.footer-col h5 { font-family: var(--font-display); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--grey); margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: 0.9rem; color: var(--grey-light); text-decoration: none; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--orange); }
.footer-col p { font-size: 0.9rem; color: var(--grey-light); margin-bottom: 8px; }
.footer-col a { color: var(--orange); text-decoration: none; }
.footer-bottom { max-width: 1200px; margin: 40px auto 0; padding: 20px 24px 0; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; color: var(--grey); }

/* ─── LIGHTBOX ─── */
.lightbox { position: fixed; inset: 0; background: oklch(5% 0.01 240 / 0.95); z-index: 999; display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 85vh; object-fit: contain; border-radius: 4px; }
.lightbox-close { position: absolute; top: 24px; right: 32px; font-family: var(--font-display); font-size: 2rem; color: var(--white); cursor: pointer; background: none; border: none; line-height: 1; }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .services-intro { grid-template-columns: 1fr; gap: 24px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .depannage-points { grid-template-columns: 1fr; }
  .about-strip-inner { grid-template-columns: 1fr; gap: 24px; }
  .about-contact { text-align: left; }
}
@media (max-width: 600px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .machines-grid { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
  .hero { height: 100svh; }
}
