/* =============================================
   BENNEPRO SERVICES — Stylesheet
   Palette : Navy #1e2d40 + Rouge #dc2626
   ============================================= */

/* === 1. VARIABLES & RESET =================== */
:root {
  --navy-950: #0d1a27;
  --navy-900: #152336;
  --navy-800: #1e2d40;
  --navy-700: #243d5f;
  --navy-600: #2d4f7c;
  --gold-600: #9b2335;
  --gold-500: #c0392b;
  --gold-400: #d4554e;
  --gold-100: #fae8e7;
  --green-500: #22c55e;
  --green-100: #dcfce7;
  --gray-50:  #fafaf7;
  --gray-100: #f8f5f0;
  --gray-200: #eee8df;
  --gray-400: #9ca3af;
  --gray-600: #6b7280;
  --gray-800: #374151;
  --gray-900: #1f2937;
  --white:    #ffffff;
  --red:      #ef4444;
  --green:    #22c55e;
  --font-head: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:  0 4px 16px rgba(0,0,0,.10), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg:  0 10px 40px rgba(0,0,0,.14), 0 4px 8px rgba(0,0,0,.08);
  --shadow-xl:  0 20px 60px rgba(0,0,0,.20);
  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  32px;
  --nav-h:      72px;
  --transition: 0.3s cubic-bezier(.4,0,.2,1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

body.menu-open { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul, ol { list-style: none; }
address { font-style: normal; }

/* === 2. TYPOGRAPHY ========================== */
h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy-800);
}

/* === 3. LAYOUT UTILITIES ==================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 48px);
}

.section-header { text-align: center; margin-bottom: 56px; }

.section-label {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 12px;
}

.section-label--light { color: var(--gold-400); }

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  color: var(--navy-800);
  margin-bottom: 16px;
}

.section-title--light { color: var(--white); }

.section-subtitle {
  font-size: 1.05rem;
  color: var(--gray-600);
  max-width: 560px;
  margin: 0 auto;
}

.section-subtitle--light { color: rgba(255,255,255,.7); }

/* === 4. BUTTONS ============================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: var(--transition);
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
}

.btn-gold {
  background: var(--gold-500);
  color: var(--navy-900);
}
.btn-gold:hover {
  background: var(--gold-400);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(192,57,43,.35);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.45);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.8);
  transform: translateY(-2px);
}

.btn-submit {
  width: auto;
  justify-content: center;
  padding: 14px 32px;
  background: var(--gold-500);
  color: var(--navy-900);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 700;
  transition: var(--transition);
  position: relative;
}
.btn-submit:hover {
  background: var(--gold-400);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(192,57,43,.3);
}
.btn-submit:disabled {
  opacity: .7;
  cursor: not-allowed;
  transform: none;
}
.btn-submit .btn-spinner {
  display: none;
  width: 20px; height: 20px;
  border: 2px solid rgba(30,45,64,.25);
  border-top-color: var(--navy-800);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
.btn-submit.loading .btn-text { display: none; }
.btn-submit.loading .btn-icon { display: none; }
.btn-submit.loading .btn-spinner { display: block; }
.btn-icon { transition: transform var(--transition); }
.btn-submit:not(.loading):hover .btn-icon { transform: translateX(4px); }

/* === 5. SCROLL REVEAL ====================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
[data-reveal="fade-right"] { transform: translateX(-32px); }
[data-reveal="fade-left"]  { transform: translateX(32px); }
[data-reveal="scale"]      { transform: scale(.92); }
[data-reveal].is-revealed  { opacity: 1; transform: none; }
[data-delay="1"] { transition-delay: 0.1s; }
[data-delay="2"] { transition-delay: 0.2s; }
[data-delay="3"] { transition-delay: 0.3s; }
[data-delay="4"] { transition-delay: 0.4s; }
[data-delay="5"] { transition-delay: 0.5s; }
[data-delay="6"] { transition-delay: 0.6s; }
[data-delay="7"] { transition-delay: 0.7s; }
[data-delay="8"] { transition-delay: 0.8s; }

/* === 6. NAVBAR ============================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  transition: background var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
  background: var(--navy-900);
  box-shadow: 0 4px 24px rgba(0,0,0,.3);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 48px);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-text { display: flex; flex-direction: column; }
.logo-main {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--white);
  line-height: 1;
}
.logo-sub {
  font-family: var(--font-head);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-400);
  line-height: 1;
  margin-top: 2px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-link {
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255,255,255,.8);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 12px; right: 12px;
  height: 2px;
  background: var(--gold-500);
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: center;
  border-radius: 2px;
}
.nav-link:hover,
.nav-link.active { color: var(--white); }
.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); }

.nav-cta {
  background: var(--gold-500);
  color: var(--navy-900) !important;
  padding: 10px 18px;
  border-radius: 50px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
  box-shadow: 0 2px 12px rgba(192,57,43,.35);
}
.nav-cta::after { display: none; }
.nav-cta:hover {
  background: var(--gold-400);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(192,57,43,.45);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  padding: 8px;
  background: rgba(255,255,255,.1);
  transition: var(--transition);
}
.nav-hamburger:hover { background: rgba(255,255,255,.15); }
.nav-hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
  transform-origin: center;
}
.nav-hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* === 7. HERO ================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background: var(--navy-900);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  will-change: transform;
  background-image: url('https://images.unsplash.com/photo-1590765049776-f0b5f95777a1?auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center 40%;
}

#particlesCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(192,57,43,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(192,57,43,.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(13,26,39,.96) 0%,
    rgba(21,35,54,.88) 40%,
    rgba(30,45,64,.80) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: calc(var(--nav-h) + 40px) clamp(16px, 4vw, 48px) 200px;
  max-width: 900px;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border: 1px solid rgba(192,57,43,.3);
  border-radius: 4px;
  background: transparent;
  color: var(--gold-400);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-title-line { display: block; color: rgba(255,255,255,.85); font-weight: 500; font-size: 0.65em; letter-spacing: 0.02em; }
.hero-title-accent {
  display: block;
  color: var(--gold-500);
  letter-spacing: -0.01em;
  font-weight: 900;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,.7);
  max-width: 640px;
  margin: 0 auto 40px;
  font-weight: 400;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}


/* Hero Stats Bar */
.hero-stats {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 2;
  background: rgba(10,20,32,.92);
  border-top: 1px solid rgba(255,255,255,.07);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 clamp(16px, 4vw, 48px);
  height: 100px;
  gap: 0;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 36px;
  flex: 1;
  max-width: 220px;
}

.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,.08);
  flex-shrink: 0;
}

.stat-value {
  display: flex;
  align-items: baseline;
  gap: 3px;
  line-height: 1;
}

.stat-number {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold-500);
  line-height: 1;
}
.stat-unit {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold-400);
  line-height: 1;
}
.stat-label {
  font-size: 0.72rem;
  color: rgba(255,255,255,.45);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 5px;
}

/* === 8. SERVICES ============================ */
.services {
  padding: 90px 0 80px;
  background: var(--gray-100);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px 22px 24px;
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  cursor: default;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-400));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.service-card:hover::before { transform: scaleX(1); }

.service-card--featured {
  border-color: rgba(192,57,43,.3);
  background: linear-gradient(135deg, var(--white) 0%, var(--gold-100) 100%);
}
.service-card--featured::before { transform: scaleX(1); }

.service-badge-pop {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--gold-500);
  color: var(--navy-900);
  font-family: var(--font-head);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 50px;
}

.service-icon {
  width: 48px; height: 48px;
  background: var(--gold-100);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  transition: background var(--transition);
}
.service-icon svg {
  width: 24px; height: 24px;
  stroke: var(--gold-600);
  transition: stroke var(--transition);
}
.service-card:hover .service-icon { background: var(--gold-500); }
.service-card:hover .service-icon svg { stroke: var(--navy-900); }

.service-capacity {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--gold-500);
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.service-capacity-tag {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-600);
  background: var(--gold-100);
  padding: 3px 10px;
  border-radius: 50px;
  margin-bottom: 10px;
}

.service-name {
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--navy-800);
  margin-bottom: 10px;
}

.service-desc {
  font-size: 0.845rem;
  color: var(--gray-600);
  line-height: 1.65;
  margin-bottom: 18px;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold-600);
  text-decoration: none;
  transition: var(--transition);
}
.service-link:hover { gap: 8px; color: var(--gold-500); }

/* === 9. HOW IT WORKS ======================== */
.how-it-works {
  padding: 100px 0;
  background: var(--navy-800);
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 0;
  align-items: start;
}

.step-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  position: relative;
  transition: var(--transition);
}
.step-card:hover {
  background: rgba(255,255,255,.09);
  border-color: rgba(192,57,43,.3);
  transform: translateY(-4px);
}

.step-number {
  font-family: var(--font-head);
  font-size: 3.5rem;
  font-weight: 900;
  color: rgba(192,57,43,.15);
  line-height: 1;
  position: absolute;
  top: 16px;
  left: 20px;
  letter-spacing: -0.03em;
  user-select: none;
}

.step-icon {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, var(--gold-100) 0%, rgba(192,57,43,.2) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  position: relative;
  z-index: 1;
}
.step-icon svg {
  width: 28px; height: 28px;
  stroke: var(--gold-500);
}

.step-title {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.step-desc {
  font-size: 0.84rem;
  color: rgba(255,255,255,.55);
  line-height: 1.65;
}

.step-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  margin-top: 64px;
}
.step-connector::after {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: linear-gradient(90deg, rgba(192,57,43,.3), rgba(192,57,43,.6), rgba(192,57,43,.3));
  border-radius: 2px;
}

/* === 10. ABOUT =============================== */
.about {
  padding: 80px 0 100px;
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-image-wrapper { position: relative; }

.about-img-bg {
  border-radius: var(--radius-lg);
  aspect-ratio: 4/3;
  position: relative;
  overflow: hidden;
}

.about-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: var(--radius-lg);
}

.about-badge-exp,
.about-badge-cert {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
}

.about-badge-exp {
  bottom: -20px; left: -20px;
  padding: 16px 20px;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 100px;
}
.badge-number {
  font-size: 2rem;
  font-weight: 900;
  color: var(--gold-500);
  line-height: 1;
}
.badge-text {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--gray-600);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.about-badge-cert {
  top: -16px; right: -16px;
  padding: 12px 18px;
  font-size: 0.8rem;
  color: var(--gold-600);
  border: 2px solid var(--gold-100);
}
.about-badge-cert svg { color: var(--gold-500); }

.section-title br { display: block; }
.about-text {
  color: var(--gray-600);
  margin-bottom: 16px;
  line-height: 1.75;
}

.about-features {
  margin: 28px 0 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 0.9rem;
  color: var(--gray-800);
  line-height: 1.5;
}

.feature-icon {
  width: 24px; height: 24px;
  background: var(--gold-500);
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.feature-icon svg { width: 13px; height: 13px; stroke: var(--navy-900); }

/* === 11. GALLERY ============================ */
.gallery-section {
  padding: 100px 0;
  background: var(--navy-800);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 240px;
  gap: 16px;
  margin-top: 0;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  outline: none;
  background: transparent;
  padding: 0;
  border: none;
}
.gallery-item:focus-visible {
  outline: 3px solid var(--gold-500);
  outline-offset: 3px;
}
.gallery-item--tall { grid-row: span 2; }

.gallery-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .6s cubic-bezier(.4,0,.2,1);
  display: block;
}
.gallery-item:hover .gallery-img { transform: scale(1.06); }

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.2) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity var(--transition);
}
.gallery-item:hover .gallery-overlay,
.gallery-item:focus-visible .gallery-overlay { opacity: 1; }

.gallery-info {
  align-self: flex-start;
  margin-top: auto;
}

.gallery-cat-tag {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: 4px;
}

.gallery-project-name {
  display: block;
  font-family: var(--font-head);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--white);
  text-align: left;
}

.gallery-zoom {
  width: 40px; height: 40px;
  background: rgba(192,57,43,.85);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition);
  align-self: flex-start;
  flex-shrink: 0;
}
.gallery-zoom svg { width: 18px; height: 18px; stroke: var(--navy-900); }
.gallery-item:hover .gallery-zoom { transform: scale(1.1); }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox[hidden] { display: none; }

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.85);
  backdrop-filter: blur(6px);
  z-index: -1;
}

.lightbox-content {
  background: var(--navy-800);
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 700px;
  width: 100%;
  box-shadow: var(--shadow-xl);
  animation: scaleIn .25s ease;
}

.lightbox-visual {
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-meta {
  padding: 24px 28px;
}

.lightbox-cat {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: 8px;
}
.lightbox-title {
  font-size: 1.2rem;
  color: var(--white);
  margin: 0;
}

.lightbox-close {
  position: absolute;
  top: 16px; right: 16px;
  z-index: 1;
  width: 44px; height: 44px;
  background: rgba(255,255,255,.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  backdrop-filter: blur(4px);
}
.lightbox-close:hover { background: rgba(255,255,255,.2); }
.lightbox-close svg { width: 20px; height: 20px; stroke: var(--white); }

/* === 12. ZONES ============================== */
.zones {
  padding: 100px 0;
  background: var(--gray-100);
}

.zones-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.zones-text {
  color: var(--gray-600);
  margin-bottom: 16px;
  line-height: 1.75;
}

.zones-link {
  color: var(--gold-600);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(217,119,6,.35);
}
.zones-link:hover { color: var(--gold-500); }

.zones-badges-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy-800);
  margin-bottom: 20px;
}

.communes-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.commune-badge {
  display: inline-block;
  padding: 7px 16px;
  border: 1.5px solid rgba(30,45,64,.2);
  border-radius: 50px;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--navy-700);
  background: var(--white);
  transition: var(--transition);
  cursor: default;
}
.commune-badge:hover {
  background: var(--gold-500);
  color: var(--navy-900);
  border-color: var(--gold-500);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.commune-badge--main {
  background: var(--navy-800);
  color: var(--white);
  border-color: var(--navy-800);
  font-weight: 700;
}
.commune-badge--main:hover {
  background: var(--gold-500);
  color: var(--navy-900);
  border-color: var(--gold-500);
}

/* === 13. DEVIS FORM ========================= */
.devis-section {
  padding: 100px 0;
  background: var(--gray-200);
}

.devis-wrapper {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 60px;
  align-items: start;
  margin-top: 0;
}

.devis-benefits { padding-top: 8px; }

.benefits-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy-800);
  margin-bottom: 24px;
}

.benefits-list { display: flex; flex-direction: column; gap: 20px; }

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.benefit-icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--gold-100), rgba(192,57,43,.15));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.benefit-icon svg { width: 20px; height: 20px; stroke: var(--gold-600); }
.benefit-item strong { display: block; font-weight: 700; color: var(--navy-800); font-size: 0.9rem; margin-bottom: 2px; }
.benefit-item span { font-size: 0.82rem; color: var(--gray-600); }

.devis-contact-cta {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--gray-200);
}
.devis-contact-cta p { font-size: 0.85rem; color: var(--gray-600); margin-bottom: 10px; }
.contact-phone-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy-800);
  transition: var(--transition);
}
.contact-phone-link:hover { color: var(--gold-600); }
.contact-phone-link svg { width: 20px; height: 20px; stroke: var(--gold-500); }

/* Form card */
.devis-form-col {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
}

.form-success {
  text-align: center;
  padding: 40px 20px;
}
.success-icon {
  width: 64px; height: 64px;
  background: rgba(34,197,94,.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.success-icon svg { width: 30px; height: 30px; stroke: var(--green); }
.form-success h3 { color: var(--navy-800); margin-bottom: 12px; }
.form-success p { color: var(--gray-600); margin-bottom: 8px; }
.success-ref { font-family: var(--font-head); font-weight: 700; }
.form-success .btn { margin-top: 20px; }

.form-error-banner {
  padding: 14px 18px;
  background: rgba(239,68,68,.08);
  border: 1px solid rgba(239,68,68,.25);
  border-radius: var(--radius-sm);
  color: var(--red);
  font-size: 0.875rem;
  margin-bottom: 20px;
}

.form-section { margin-bottom: 32px; }
.form-section-title {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-400);
  border-bottom: 1px solid var(--gray-200);
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-label {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-800);
}
.form-label span { color: var(--gold-500); }

.form-control {
  padding: 12px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--gray-900);
  background: var(--white);
  transition: var(--transition);
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
}
.form-control::placeholder { color: var(--gray-400); }
.form-control:focus {
  outline: none;
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(192,57,43,.12);
}
.form-control.error { border-color: var(--red); box-shadow: 0 0 0 3px rgba(239,68,68,.1); }
.form-control.valid { border-color: var(--green); }

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
  cursor: pointer;
}

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

.field-error {
  font-size: 0.78rem;
  color: var(--red);
  display: none;
}

.form-rgpd { margin-bottom: 24px; }

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--gray-600);
  cursor: pointer;
  line-height: 1.55;
}
.checkbox-label input[type="checkbox"] { position: absolute; opacity: 0; width: 0; height: 0; }

.checkbox-custom {
  width: 20px; height: 20px;
  flex-shrink: 0;
  border: 2px solid var(--gray-400);
  border-radius: 4px;
  background: var(--white);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.checkbox-label input:checked + .checkbox-custom {
  background: var(--gold-500);
  border-color: var(--gold-500);
}
.checkbox-label input:checked + .checkbox-custom::after {
  content: '';
  width: 10px; height: 6px;
  border-bottom: 2px solid var(--navy-900);
  border-left: 2px solid var(--navy-900);
  transform: rotate(-45deg) translateY(-1px);
  display: block;
}
.checkbox-label input:focus-visible + .checkbox-custom {
  outline: 3px solid rgba(192,57,43,.4);
}
.rgpd-link { color: var(--gold-600); text-decoration: underline; }

.form-required-note {
  text-align: left;
  font-size: 0.75rem;
  color: var(--gray-400);
  margin-top: 10px;
}

/* === 14. CONTACT ============================ */
.contact {
  padding: 80px 0;
  background: var(--white);
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.contact-card {
  text-align: center;
  padding: 40px 28px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  background: var(--white);
  transition: var(--transition);
}
.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.contact-icon {
  width: 56px; height: 56px;
  background: var(--gold-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  transition: background var(--transition);
}
.contact-icon svg { width: 26px; height: 26px; stroke: var(--gold-600); transition: stroke var(--transition); }
.contact-card:hover .contact-icon { background: var(--gold-500); }
.contact-card:hover .contact-icon svg { stroke: var(--navy-900); }

.contact-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy-800);
  margin-bottom: 10px;
}

.contact-value {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 8px;
  transition: var(--transition);
}
a.contact-value:hover { color: var(--gold-600); }

.contact-hours { font-size: 0.82rem; color: var(--gray-400); line-height: 1.6; }

/* === 15. FOOTER ============================= */
.footer {
  background: var(--navy-900);
  padding: 80px 0 0;
  color: rgba(255,255,255,.6);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.footer-logo-main {
  display: block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--white);
  line-height: 1;
}
.footer-logo-sub {
  display: block;
  font-family: var(--font-head);
  font-size: 0.55rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-400);
  line-height: 1;
  margin-top: 2px;
}

.footer-tagline {
  font-size: 0.85rem;
  line-height: 1.7;
  margin-bottom: 12px;
}
.footer-siret { font-size: 0.75rem; color: rgba(255,255,255,.3); }

.footer-col-title {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: 20px;
}

.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-link {
  font-size: 0.85rem;
  color: rgba(255,255,255,.55);
  transition: var(--transition);
}
.footer-link:hover { color: var(--white); padding-left: 4px; }
.footer-link--cta {
  color: var(--gold-400) !important;
  font-weight: 600;
}

.footer-address p { font-size: 0.85rem; margin-bottom: 8px; }
.footer-hours { margin-top: 16px; font-size: 0.82rem; line-height: 1.7; }
.footer-hours p { margin-bottom: 2px; }
.footer-hours strong { color: rgba(255,255,255,.7); }

.footer-bottom {
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-copyright { font-size: 0.8rem; }
.footer-legal { display: flex; gap: 20px; }
.footer-legal-link { font-size: 0.78rem; color: rgba(255,255,255,.4); transition: var(--transition); }
.footer-legal-link:hover { color: rgba(255,255,255,.8); }

/* === 16. BACK TO TOP ======================== */
.back-to-top {
  position: fixed;
  bottom: 32px; right: 32px;
  z-index: 900;
  width: 48px; height: 48px;
  background: var(--gold-500);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(192,57,43,.4);
  transition: var(--transition);
  opacity: 0;
  transform: translateY(12px);
}
.back-to-top:not([hidden]) { opacity: 1; transform: translateY(0); }
.back-to-top[hidden] { display: flex; opacity: 0; pointer-events: none; }
.back-to-top:hover { background: var(--gold-400); transform: translateY(-4px); }
.back-to-top svg { width: 22px; height: 22px; stroke: var(--navy-900); }

/* === 17. KEYFRAMES ========================== */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(8px); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(.92); }
  to   { opacity: 1; transform: scale(1); }
}

/* === 18. ACCESSIBILITY ====================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* === 19. MEDIA QUERIES ====================== */
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .step-connector { display: none; }
}

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-image-col { order: -1; max-width: 480px; margin: 0 auto; }
  .zones-grid { grid-template-columns: 1fr; gap: 48px; }
  .devis-wrapper { grid-template-columns: 1fr; }
  .devis-benefits { order: 2; }
  .devis-form-col { order: 1; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item--tall { grid-row: span 1; }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }

  .nav-menu {
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: var(--navy-900);
    flex-direction: column;
    padding: 24px 20px 32px;
    gap: 4px;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition), opacity var(--transition);
    border-top: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 20px 40px rgba(0,0,0,.4);
    z-index: 999;
  }
  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-link { padding: 12px 16px; width: 100%; }
  .nav-cta { justify-content: center; margin: 8px 0 0; }
  .nav-hamburger { display: flex; }

  .hero-stats {
    flex-wrap: wrap;
    height: auto;
    padding: 20px;
    gap: 16px;
    position: relative;
  }
  .hero-stat { padding: 12px; max-width: none; flex: 1; min-width: 120px; }
  .hero-stat-divider { display: none; }
  /* Hero : content prend tout l'espace, stats restent en bas */
  .hero-content { flex: 1; padding-bottom: 40px; }
  .hero-stats { width: 100%; flex-shrink: 0; }

  .steps-grid { grid-template-columns: 1fr; gap: 16px; }
  .step-connector { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 200px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .devis-form-col { padding: 28px 20px; }
  .form-row { grid-template-columns: 1fr; }

  .about-badge-exp { left: 0; bottom: -12px; }
  .about-badge-cert { right: 0; top: -12px; }

  /* Submit button pleine largeur */
  .btn-submit { width: 100%; }

  /* Hamburger : zone de tap 44px (standard accessibilité) */
  .nav-hamburger { width: 44px; height: 44px; }

  /* Lightbox : réduite pour petits écrans */
  .lightbox { padding: 16px; }
  .lightbox-visual { min-height: 220px; }
  .lightbox-content { border-radius: var(--radius-md); }
}

@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { justify-content: center; }
  .hero-title { font-size: clamp(1.9rem, 8vw, 3rem); }
  .stat-number { font-size: 1.6rem; }
  .back-to-top { bottom: 16px; right: 16px; }

  /* Réduction des paddings de section sur très petits écrans */
  .services       { padding: 60px 0; }
  .how-it-works   { padding: 60px 0; }
  .about          { padding: 60px 0 72px; }
  .gallery-section{ padding: 60px 0; }
  .zones          { padding: 60px 0; }
  .devis-section  { padding: 60px 0; }
  .contact        { padding: 60px 0; }
  .footer         { padding-top: 60px; }

  .section-header { margin-bottom: 36px; }

  /* Step cards moins paddings */
  .step-card { padding: 28px 18px; }

  /* Lightbox encore plus compact sur 320px */
  .lightbox-visual { min-height: 180px; }
  .lightbox-meta { padding: 16px 20px; }
  .lightbox-title { font-size: 1rem; }

  /* Contact cards pleine largeur */
  .contact-cards { max-width: 100%; }

  /* Commune badges plus compacts */
  .commune-badge { font-size: 0.72rem; padding: 5px 12px; }
}
