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

:root {
  --orange: #FF6B00;
  --orange-dim: rgba(255, 107, 0, 0.12);
  --noir: #080808;
  --noir-2: #111111;
  --noir-3: #181818;
  --blanc: #ffffff;
  --gris: #777777;
  --gris-clair: #bbbbbb;
  --border: rgba(255, 255, 255, 0.07);
}

/* ── Fix scroll horizontal mobile ── */
html {
  overflow-x: clip;
}
body {
  overflow-x: clip;
}
.cta-section {
  overflow: clip;
}
.hero {
  overflow: clip;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--noir);
  color: var(--blanc);
  font-family: 'Barlow', sans-serif;
  font-weight: 400;
  overflow-x: hidden;
}

/* ═══════════════════════════════
       NAVBAR
    ═══════════════════════════════ */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6vw;
  height: 72px;
  background: rgba(8, 8, 8, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}

.leaflet-container {
  background: #111 !important;
}

.nav-logo img {
  height: 38px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gris-clair);
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--orange);
  transition: width 0.3s;
}

.nav-links a:hover {
  color: var(--blanc);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 10px 24px;
  background: var(--orange);
  color: var(--blanc);
  border: none;
  border-radius: 3px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}

.nav-cta:hover {
  background: #e05d00;
  transform: translateY(-1px);
}

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.nav-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--blanc);
  transition: 0.3s;
}

.highlight {
  font-weight: bold;
  color: #ffffff;
}

/* ═══════════════════════════════
       HERO
    ═══════════════════════════════ */
.hero {
  background-image: url('images/Image.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.3;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(8, 8, 8, 0.97) 0%, rgba(8, 8, 8, 0.6) 55%, rgba(8, 8, 8, 0.2) 100%);
  z-index: 1;
}

/* Grille déco */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 107, 0, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 107, 0, 0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.2s forwards;
}

.hero-eyebrow::before {
  content: '';
  width: 32px;
  height: 2px;
  background: var(--orange);
}

.hero h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: clamp(3.2rem, 8vw, 6.5rem);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: -2px;
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.4s forwards;
}

.hero h1 em {
  font-style: normal;
  color: var(--orange);
  -webkit-text-stroke: 0px;
}

.hero h1 .outline {
  font-style: normal;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.4);
  color: transparent;
}

.hero-desc {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--gris-clair);
  line-height: 1.8;
  max-width: 500px;
  margin-bottom: 44px;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.6s forwards;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.8s forwards;
}

.btn-primary {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 16px 40px;
  background: var(--orange);
  color: var(--blanc);
  border: 2px solid var(--orange);
  border-radius: 3px;
  text-decoration: none;
  transition: background 0.25s, transform 0.2s;
}

.btn-primary:hover {
  background: #e05d00;
  transform: translateY(-2px);
}

.btn-ghost {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 16px 40px;
  background: transparent;
  color: var(--blanc);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  text-decoration: none;
  transition: border-color 0.25s, transform 0.2s;
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}

/* Stats hero */
.hero-stats {
  position: absolute;
  bottom: 52px;
  right: 6vw;
  z-index: 2;
  display: flex;
  gap: 48px;
  opacity: 0;
  animation: fadeUp 0.7s ease 1s forwards;
}

.hero-stat-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--blanc);
  line-height: 1;
}

.hero-stat-num span {
  color: var(--orange);
}

.hero-stat-lbl {
  font-size: 0.72rem;
  color: var(--gris);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 4px;
}

.rgpd-text {
  font-size: 12px;
  color: #777;
  margin-top: 10px;
  line-height: 1.4;
}

/* Scroll indicator */
.scroll-hint {
  position: absolute;
  bottom: 52px;
  left: 6vw;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  animation: fadeUp 0.7s ease 1.2s forwards;
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, var(--orange));
  animation: scrollLine 1.5s ease-in-out infinite;
}

@keyframes scrollLine {

  0%,
  100% {
    transform: scaleY(1);
    opacity: 1;
  }

  50% {
    transform: scaleY(0.5);
    opacity: 0.4;
  }
}

.scroll-hint span {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gris);
  writing-mode: vertical-rl;
}

/* Image soudeur côté droit */
.hero-img {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 2;
  height: 85vh;
  max-height: 700px;
  width: auto;
  object-fit: contain;
  object-position: bottom right;
  filter: drop-shadow(-40px 0 60px rgba(255, 107, 0, 0.15));
  opacity: 0;
  animation: fadeLeft 0.9s ease 0.6s forwards;
}

/* ═══════════════════════════════
       SERVICES
    ═══════════════════════════════ */
section {
  padding: 120px 7vw;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 20px;
}

.section-label::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--orange);
}

.section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: clamp(2.2rem, 5vw, 4rem);
  text-transform: uppercase;
  letter-spacing: -1px;
  line-height: 1.05;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 1rem;
  font-weight: 300;
  color: var(--gris-clair);
  max-width: 480px;
  line-height: 1.7;
  margin-bottom: 64px;
}

/* Services grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2px;
}

.service-card {
  position: relative;
  background: var(--noir-2);
  padding: 48px 36px;
  overflow: hidden;
  cursor: default;
  transition: background 0.3s;
}

.service-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--orange);
  transition: width 0.4s ease;
}

.service-card:hover {
  background: var(--noir-3);
}

.service-card:hover::before {
  width: 100%;
}

.service-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 4rem;
  font-weight: 900;
  color: rgba(255, 107, 0, 0.08);
  line-height: 1;
  margin-bottom: 24px;
  transition: color 0.3s;
}

.service-card:hover .service-num {
  color: rgba(255, 107, 0, 0.15);
}

.service-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
}

.service-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.service-desc {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--gris);
  line-height: 1.7;
}

.service-arrow {
  position: absolute;
  bottom: 32px;
  right: 32px;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s, background 0.3s;
}

.service-card:hover .service-arrow {
  border-color: var(--orange);
  background: var(--orange);
}

.service-arrow svg {
  width: 14px;
  height: 14px;
}

/* ═══════════════════════════════
       ABOUT / POURQUOI NOUS
    ═══════════════════════════════ */
.about {
  background: var(--noir-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.about-img-wrap {
  position: relative;
}

.about-img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  display: block;
  filter: grayscale(20%);
}

.about-img-placeholder {
  width: 100%;
  aspect-ratio: 4/5;
  background: var(--noir-3);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.about-img-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 107, 0, 0.05) 0%, transparent 60%);
}

.about-img-placeholder svg {
  width: 80px;
  height: 80px;
  opacity: 0.15;
}

/* Badge flottant sur l'image */
.about-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: black;
  padding: 24px 28px;
  text-align: center;
  border-radius: 5px;
}

.about-badge-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1;
  color: var(--blanc);
}

.about-badge-lbl {
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 4px;
}

.about-points {
  list-style: none;
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-point {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.about-point:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.about-point-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  margin-top: 6px;
  flex-shrink: 0;
}

.about-point-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.about-point-desc {
  font-size: 0.88rem;
  color: var(--gris);
  line-height: 1.6;
}

/* ═══════════════════════════════
       RÉALISATIONS
    ═══════════════════════════════ */
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 3px;
}

.work-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.work-item:first-child {
  grid-column: span 2;
}

.work-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.work-item:first-child .work-img {
  aspect-ratio: 16/9;
}

.work-img-placeholder {
  width: 100%;
  aspect-ratio: 16/10;
  background: var(--noir-3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.6s;
}

.work-item:first-child .work-img-placeholder {
  aspect-ratio: 16/9;
}

.work-item:hover .work-img,
.work-item:hover .work-img-placeholder {
  transform: scale(1.05);
  filter: grayscale(0%) brightness(0.9);
}

.work-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 8, 8, 0.9) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  opacity: 0;
  transition: opacity 0.3s;
}

.work-item:hover .work-overlay {
  opacity: 1;
}

.work-tag {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 6px;
}

.work-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
}

/* Placeholder icônes */
.placeholder-icon {
  opacity: 0.08;
}

/* ═══════════════════════════════
       ZONE INTERVENTION
    ═══════════════════════════════ */
.zone {
  background: var(--noir-2);
  border-top: 1px solid var(--border);
}

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

.zone-map {
  position: relative;
  height: 480px;
  overflow: hidden;
}

#map {
  height: 480px;
  width: 100%;
  min-height: 480px;
}

.leaflet-container {
  height: 100% !important;
}

.zone-map::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255, 107, 0, 0.08) 0%, transparent 65%);
}

.zone-map-text {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gris);
  z-index: 1;
}

.zone-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.zone-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gris-clair);
  transition: color 0.2s;
}

.zone-item:hover {
  color: var(--blanc);
}

.zone-item::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  flex-shrink: 0;
}

/* ═══════════════════════════════
       CONTACT CTA
    ═══════════════════════════════ */
.cta-section {
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: 'SOUDEX';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(8rem, 20vw, 18rem);
  font-weight: 900;
  color: rgba(255, 255, 255, 0.02);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.cta-section .section-title {
  margin-bottom: 12px;
}

.cta-section .section-sub {
  margin: 0 auto 48px;
}

.cta-contacts {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  margin-top: 56px;
  padding-top: 56px;
  border-top: 1px solid var(--border);
}

.cta-contact-item {
  text-align: left;
}

.cta-contact-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 8px;
}

.cta-contact-val {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--blanc);
  text-decoration: none;
  transition: color 0.2s;
}

.cta-contact-val:hover {
  color: var(--orange);
}

/* ═══════════════════════════════
       FOOTER
    ═══════════════════════════════ */
footer {
  background: var(--noir-2);
  border-top: 1px solid var(--border);
  padding: 40px 6vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-logo img {
  height: 30px;
}

.footer-copy {
  font-size: 0.82rem;
  color: var(--gris);
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  font-size: 0.82rem;
  color: var(--gris);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--blanc);
}

/* ═══════════════════════════════
       ANIMATIONS
    ═══════════════════════════════ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeLeft {
  from {
    opacity: 0;
    transform: translateX(40px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Menu burger animation */
.nav-links {
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 70px;
    right: 20px;
    background: #111;
    flex-direction: column;
    padding: 15px;
    display: none;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    z-index: 9999;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-burger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
  }

  .nav-burger span {
    width: 25px;
    height: 2px;
    background: white;
    transition: 0.3s;
  }

  /* animation X */
  .nav-burger.open span:nth-child(1) {
    transform: rotate(45deg) translateY(6px);
  }

  .nav-burger.open span:nth-child(2) {
    opacity: 0;
  }

  .nav-burger.open span:nth-child(3) {
    transform: rotate(-45deg) translateY(-6px);
  }
}

/* ═══════════════════════════════
       RESPONSIVE
    ═══════════════════════════════ */
@media (max-width: 900px) {

  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-burger {
    display: flex;
  }

  .hero-stats {
    position: static;
    margin-top: 56px;
    flex-wrap: wrap;
    gap: 32px;
  }

  .hero-img {
    display: none;
  }

  .about-inner,
  .zone-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-badge {
    right: 0;
    bottom: 0;
  }

  .works-grid {
    grid-template-columns: 1fr;
  }

  .work-item:first-child {
    grid-column: span 1;
  }

  .scroll-hint {
    display: none;
  }
}

@media (max-width: 600px) {
  section {
    padding: 80px 5vw;
  }

  .cta-contacts {
    gap: 32px;
  }

  footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Style Pop-up Devis */