/* ═══════════════════════════════════════════════════════════════
   Foss-Electrical-Engineering — style.css
   Palette: #1E90C8 (blue) · #F57C00 (orange) · #FF9A3C (orange-lt)
            #0B0E14 (dark bg) · #F2F2F2 (light)
   ═══════════════════════════════════════════════════════════════ */

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

:root {
  --c-blue:       #1E90C8;
  --c-blue-lt:    #38B2E8;
  --c-blue-dim:   #1578A8;
  --c-orange:     #F57C00;
  --c-orange-lt:  #FF9A3C;
  --c-dark:       #0B0E14;
  --c-dark2:      #0F1318;
  --c-dark3:      #111820;
  --c-border:     rgba(30,144,200,.15);
  --c-white:      #FFFFFF;
  --c-silver:     #A8B4C2;
  --c-text:       #DCE4EC;

  --radius:       12px;
  --radius-lg:    20px;
  --shadow:       0 8px 32px rgba(0,0,0,.45);
  --shadow-sm:    0 2px 12px rgba(0,0,0,.3);
  --transition:   .35s cubic-bezier(.4,0,.2,1);
  --font:         'Segoe UI', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; font-size: 17px; overflow-x: hidden; }

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

img  { display: block; max-width: 100%; height: auto; }
a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Keyframes ───────────────────────────────────────────────── */
@keyframes gradientPulse {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes scrollBob {
  0%,100% { top: 6px; opacity: 1; }
  50%      { top: 18px; opacity: .3; }
}

.section { padding: 100px 0; position: relative; }

/* ── Scroll reveal ───────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .7s var(--transition), transform .7s var(--transition);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal:nth-child(2) { transition-delay: .1s; }
.reveal:nth-child(3) { transition-delay: .2s; }
.reveal:nth-child(4) { transition-delay: .3s; }
.reveal:nth-child(5) { transition-delay: .4s; }
.reveal:nth-child(6) { transition-delay: .5s; }

/* ── Section headers (centered) ─────────────────────────────── */
.section-header { text-align: center; margin-bottom: 60px; }
.section-label {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--c-orange);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--c-white);
  margin-bottom: 16px;
}
.section-title-left {
  font-size: clamp(2rem, 4.5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--c-white);
  margin-bottom: 20px;
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--c-silver);
  max-width: 560px;
  margin: 0 auto;
}

/* ── Gradient text (blue → orange) ──────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, var(--c-blue-lt), var(--c-orange-lt));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .5px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--c-blue-dim), var(--c-blue));
  color: var(--c-white);
  box-shadow: 0 4px 20px rgba(30,144,200,.35);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(30,144,200,.55);
  background: linear-gradient(135deg, var(--c-blue), var(--c-blue-lt));
}
.btn-ghost {
  background: transparent;
  color: var(--c-white);
  border: 2px solid rgba(255,255,255,.4);
}
.btn-ghost:hover {
  background: rgba(255,255,255,.08);
  border-color: var(--c-white);
  transform: translateY(-3px);
}
.btn-full { width: 100%; justify-content: center; }

/* ════════════════════════════════════════════════════════════════
   NAVBAR
   ════════════════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}
.navbar.scrolled {
  background: rgba(11,14,20,.96);
  backdrop-filter: blur(20px);
  padding: 10px 0;
  box-shadow: 0 4px 24px rgba(0,0,0,.5);
  border-bottom: 1px solid rgba(30,144,200,.15);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav-logo img {
  height: 44px;
  width: auto;
  filter: drop-shadow(0 2px 8px rgba(30,144,200,.5));
}
.nav-logo span {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--c-white);
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.nav-logo em {
  font-style: normal;
  font-size: .68rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--c-orange-lt);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links li a {
  padding: 8px 14px;
  border-radius: 6px;
  font-size: .9rem;
  font-weight: 500;
  color: rgba(255,255,255,.82);
  transition: all var(--transition);
}
.nav-links li a:hover { color: var(--c-white); background: rgba(255,255,255,.07); }
.nav-links li a.active-nav { color: var(--c-orange-lt); }
.nav-links .btn-devis {
  background: linear-gradient(135deg, var(--c-orange), var(--c-orange-lt));
  color: var(--c-white) !important;
  padding: 10px 22px;
  border-radius: 6px;
  font-weight: 700;
  margin-left: 8px;
  box-shadow: 0 4px 16px rgba(245,124,0,.35);
}
.nav-links .btn-devis:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(245,124,0,.55);
  background: linear-gradient(135deg, var(--c-orange-lt), var(--c-orange)) !important;
}

.gallery-carousel-wrap { position: relative; }
.gallery-carousel-btn  { display: none; }
.gallery-carousel-counter { display: none; }

.nav-close { display: none; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 34px;
  height: 3px;
  background: var(--c-white);
  border-radius: 2px;
  transition: all var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ════════════════════════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--c-dark);
  text-align: center;
}
.hero-bg-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0B0E14 0%, #0f1f35 40%, #1a1208 70%, #0B0E14 100%);
  background-size: 400% 400%;
  animation: gradientPulse 16s ease infinite;
  z-index: 0;
}
.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.hero-slide.active { opacity: 1; }
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 90%, rgba(245,124,0,.12) 0%, transparent 55%),
    linear-gradient(180deg, rgba(11,14,20,.22) 0%, rgba(11,14,20,.32) 100%);
  z-index: 2;
}
.hero-content {
  position: relative;
  z-index: 3;
  padding: 120px 24px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245,124,0,.12);
  border: 1px solid rgba(245,124,0,.35);
  color: var(--c-orange-lt);
  padding: 8px 22px;
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.hero-title {
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 900;
  line-height: 1.05;
  color: var(--c-white);
  margin-bottom: 24px;
  text-shadow: 0 4px 32px rgba(0,0,0,.5);
}
.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,.72);
  margin-bottom: 40px;
  line-height: 1.8;
  letter-spacing: .5px;
}
.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}
.hero-scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}
.hero-scroll-indicator span {
  display: block;
  width: 24px;
  height: 38px;
  border: 2px solid rgba(255,255,255,.35);
  border-radius: 12px;
  position: relative;
}
.hero-scroll-indicator span::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--c-orange-lt);
  border-radius: 2px;
  animation: scrollBob 1.8s ease-in-out infinite;
}

/* ════════════════════════════════════════════════════════════════
   À PROPOS
   ════════════════════════════════════════════════════════════════ */
.apropos {
  background: var(--c-dark2);
}
.apropos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
  margin-bottom: 72px;
}

/* Staggered double-image layout (different from Maxime single image) */
.apropos-images {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.apropos-images .img-main {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(30,144,200,.2);
}
.apropos-images .img-secondary {
  width: 78%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-left: auto;
  border: 1px solid rgba(245,124,0,.2);
}
.apropos-exp-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  background: linear-gradient(135deg, var(--c-orange), var(--c-orange-lt));
  color: var(--c-white);
  padding: 14px 18px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: 0 8px 24px rgba(245,124,0,.45);
  line-height: 1.2;
}
.apropos-exp-badge strong {
  display: block;
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1;
}
.apropos-exp-badge span {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: .9;
}

.apropos-text .section-label { display: block; margin-bottom: 12px; }
.apropos-signature {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 20px 0 28px;
  padding-left: 14px;
  border-left: 3px solid var(--c-orange);
}
.apropos-signature strong {
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-white);
}
.apropos-signature span {
  font-size: .82rem;
  color: var(--c-orange-lt);
  letter-spacing: 1px;
  text-transform: uppercase;
}
/* Stacked phone links in contact-item */
.contact-item div a { display: block; }
.apropos-text p {
  color: var(--c-silver);
  margin-bottom: 18px;
  font-size: 1.02rem;
}
.apropos-text strong { color: var(--c-white); }
.apropos-values {
  margin: 24px 0 32px;
}
.apropos-values li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--c-silver);
  padding: 7px 0;
  font-size: .97rem;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.apropos-values li:last-child { border-bottom: none; }
.value-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-orange);
  flex-shrink: 0;
}

/* Stats — connected row (different from Maxime's separated cards) */
.stats-row {
  display: flex;
  align-items: stretch;
  border: 1px solid rgba(30,144,200,.2);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.stat-item {
  flex: 1;
  padding: 36px 24px;
  text-align: center;
  background: rgba(255,255,255,.03);
  transition: background var(--transition);
}
.stat-item:hover { background: rgba(30,144,200,.07); }
.stat-divider {
  width: 1px;
  background: rgba(30,144,200,.2);
  flex-shrink: 0;
}
.stat-num {
  display: block;
  font-size: 3rem;
  font-weight: 900;
  color: var(--c-orange);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-size: .82rem;
  color: var(--c-silver);
  font-weight: 500;
  letter-spacing: .5px;
}

/* ════════════════════════════════════════════════════════════════
   SERVICES
   ════════════════════════════════════════════════════════════════ */
.services { background: var(--c-dark); }
.services-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(30,144,200,.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(245,124,0,.06) 0%, transparent 50%);
  pointer-events: none;
}

/* 5 cards: 3 in row 1, 2 centered in row 2 */
.services-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}
.service-card {
  flex: 0 0 calc(33.33% - 16px);
  max-width: calc(33.33% - 16px);
  background: var(--c-dark2);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  transition: height var(--transition);
}
.service-card--blue::before  { background: var(--c-blue); }
.service-card--orange::before { background: var(--c-orange); }
.service-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 20px 48px rgba(0,0,0,.5);
}
.service-card--blue:hover  { border-color: rgba(30,144,200,.3); }
.service-card--orange:hover { border-color: rgba(245,124,0,.3); }
.service-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.8rem;
}
.service-card--blue  .service-icon-wrap { background: rgba(30,144,200,.12); }
.service-card--orange .service-icon-wrap { background: rgba(245,124,0,.12); }
.service-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--c-white);
  margin-bottom: 10px;
}
.service-body p {
  color: var(--c-silver);
  font-size: .93rem;
  line-height: 1.65;
  margin-bottom: 20px;
}
.service-link {
  display: inline-block;
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .5px;
  transition: letter-spacing var(--transition), color var(--transition);
  cursor: pointer;
}
.service-card--blue  .service-link { color: var(--c-blue-lt); }
.service-card--orange .service-link { color: var(--c-orange-lt); }
.service-link:hover { letter-spacing: 2px; }

/* ════════════════════════════════════════════════════════════════
   RÉALISATIONS / GALLERY
   ════════════════════════════════════════════════════════════════ */
.realisations { background: var(--c-dark2); }

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 44px;
}
.filter-btn {
  padding: 9px 22px;
  border-radius: 6px;
  font-size: .875rem;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,.12);
  background: transparent;
  color: var(--c-silver);
  cursor: pointer;
  transition: all var(--transition);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--c-orange);
  color: var(--c-white);
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(245,124,0,.35);
}

.gallery-grid {
  columns: 4;
  column-gap: 14px;
}
.gallery-item {
  break-inside: avoid;
  margin-bottom: 14px;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition: transform var(--transition);
}
.gallery-item.hidden { display: none; }
.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform .5s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(11,14,20,.9) 100%);
  opacity: 0;
  transition: opacity var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 14px;
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-item-caption { font-size: .78rem; color: var(--c-white); line-height: 1.3; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(5,8,14,.96);
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox-img-wrap {
  max-width: 90vw;
  max-height: 90vh;
  text-align: center;
}
.lightbox-img-wrap img {
  max-width: 90vw;
  max-height: 82vh;
  border-radius: var(--radius);
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0,0,0,.7);
}
.lightbox-caption {
  color: var(--c-silver);
  font-size: .88rem;
  margin-top: 12px;
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: fixed;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  color: var(--c-white);
  border-radius: 50%;
  width: 48px; height: 48px;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  z-index: 2001;
}
.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev  { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next  { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(245,124,0,.45); }

/* ════════════════════════════════════════════════════════════════
   VIDÉOS
   ════════════════════════════════════════════════════════════════ */
.videos { background: var(--c-dark); }
.videos-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 30%, rgba(30,144,200,.07) 0%, transparent 60%);
  pointer-events: none;
}
/* 2-column (4 videos → 2×2 grid, different from Maxime 3-col) */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.video-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--c-dark2);
  border: 1px solid rgba(255,255,255,.07);
  transition: transform var(--transition), box-shadow var(--transition);
}
.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(0,0,0,.5);
  border-color: rgba(30,144,200,.2);
}
.video-card video {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  background: var(--c-dark);
}
.video-card-body { padding: 18px 20px; }
.video-card-body p { font-size: .88rem; color: var(--c-silver); line-height: 1.5; }

/* ════════════════════════════════════════════════════════════════
   POURQUOI NOUS — horizontal card layout (distinct from Maxime)
   ════════════════════════════════════════════════════════════════ */
.pourquoi { background: var(--c-dark2); }
.pourquoi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.pourquoi-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-left: 3px solid var(--c-blue);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: transform var(--transition), border-left-color var(--transition), box-shadow var(--transition);
}
.pourquoi-card:hover {
  transform: translateX(5px);
  border-left-color: var(--c-orange);
  box-shadow: 0 8px 28px rgba(0,0,0,.3);
}
.pourquoi-icon-wrap {
  font-size: 2.2rem;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 2px;
}
.pourquoi-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--c-white);
  margin-bottom: 8px;
}
.pourquoi-body p {
  color: var(--c-silver);
  font-size: .91rem;
  line-height: 1.6;
}

/* ════════════════════════════════════════════════════════════════
   CONTACT
   ════════════════════════════════════════════════════════════════ */
.contact { background: var(--c-dark); }
.contact-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 10% 50%, rgba(30,144,200,.07) 0%, transparent 45%),
    radial-gradient(ellipse at 90% 50%, rgba(245,124,0,.06) 0%, transparent 45%);
  pointer-events: none;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 64px;
  align-items: start;
}
.contact-info h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--c-white);
  margin-bottom: 32px;
}
.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 26px;
}
.contact-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }
.contact-item div { display: flex; flex-direction: column; gap: 4px; }
.contact-item strong {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--c-orange-lt);
}
.contact-item span,
.contact-item a {
  color: var(--c-silver);
  font-size: .95rem;
  transition: color var(--transition);
}
.contact-item a:hover { color: var(--c-blue-lt); }
.contact-logo { margin-top: 36px; }
.contact-logo img {
  height: 120px;
  width: auto;
  filter: drop-shadow(0 4px 16px rgba(30,144,200,.4));
}

/* Form */
.contact-form {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(30,144,200,.15);
  border-radius: var(--radius-lg);
  padding: 40px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.form-group label {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--c-blue-lt);
}
.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  padding: 13px 16px;
  color: var(--c-white);
  font-family: var(--font);
  font-size: .97rem;
  transition: border-color var(--transition), background var(--transition);
  width: 100%;
  outline: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,.3); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--c-blue);
  background: rgba(30,144,200,.07);
}
.form-group select option { background: #111820; color: var(--c-white); }
.form-group textarea { resize: vertical; min-height: 130px; }
.form-notice {
  margin-top: 12px;
  font-size: .78rem;
  color: rgba(255,255,255,.3);
  text-align: center;
}
.form-honeypot { display: none !important; }
.form-status {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: .93rem;
  font-weight: 500;
  text-align: center;
  display: none;
}
.form-status:not(:empty) { display: block; }
.form-status--success {
  background: rgba(34,197,94,.12);
  border: 1px solid rgba(34,197,94,.3);
  color: #86efac;
}
.form-status--error {
  background: rgba(239,68,68,.12);
  border: 1px solid rgba(239,68,68,.3);
  color: #fca5a5;
}

/* ════════════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════════════ */
.footer {
  background: #070A0F;
  position: relative;
  padding: 70px 0 0;
}
.footer-top-accent {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--c-blue), var(--c-orange), var(--c-blue), transparent);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 60px;
}
.footer-brand img {
  height: 90px;
  width: auto;
  margin-bottom: 16px;
  filter: drop-shadow(0 4px 12px rgba(30,144,200,.4));
}
.footer-brand p { color: var(--c-silver); font-size: .9rem; line-height: 1.5; }
.footer-links h4,
.footer-services h4,
.footer-contact h4 {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--c-orange-lt);
  margin-bottom: 18px;
}
.footer-links ul li,
.footer-services ul li { padding: 5px 0; }
.footer-links ul li a,
.footer-services ul li { color: var(--c-silver); font-size: .9rem; transition: color var(--transition); }
.footer-links ul li a:hover { color: var(--c-blue-lt); }
.footer-contact p,
.footer-contact a { color: var(--c-silver); font-size: .88rem; line-height: 1.6; transition: color var(--transition); }
.footer-contact a:hover { color: var(--c-orange-lt); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 20px 24px;
  text-align: center;
}
.footer-bottom p { color: rgba(255,255,255,.28); font-size: .8rem; }

/* ════════════════════════════════════════════════════════════════
   BACK TO TOP
   ════════════════════════════════════════════════════════════════ */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 999;
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--c-orange), var(--c-orange-lt));
  color: var(--c-white);
  border: none;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(245,124,0,.45);
  display: none;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition), box-shadow var(--transition);
}
.back-to-top.visible { display: flex; }
.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(245,124,0,.65);
}

/* ════════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .gallery-grid        { columns: 3; }
  .service-card        { flex: 0 0 calc(50% - 12px); max-width: calc(50% - 12px); }
  .pourquoi-grid       { grid-template-columns: repeat(2, 1fr); }
  .videos-grid         { grid-template-columns: repeat(2, 1fr); }
  .footer-inner        { grid-template-columns: repeat(2, 1fr); }
  .apropos-grid        { gap: 48px; }
}

@media (max-width: 768px) {
  .section { padding: 70px 0; }

  /* Navbar */
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: 300px;
    height: 100vh;
    background: rgba(11,14,20,.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 72px 32px 40px;
    gap: 4px;
    transition: right var(--transition);
    border-left: 1px solid rgba(30,144,200,.15);
    overflow-y: auto;
    z-index: 1100;
  }
  .nav-links.open { right: 0; }
  .nav-close {
    display: flex;
    position: absolute;
    top: 18px; right: 18px;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.15);
    color: var(--c-white);
    font-size: 1.6rem;
    width: 40px; height: 40px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--transition);
  }
  .nav-close:hover { background: rgba(245,124,0,.25); }
  .nav-links li a { display: block; font-size: 1.2rem; padding: 12px 16px; width: 100%; }
  .nav-links li { width: 100%; border-bottom: 1px solid rgba(255,255,255,.06); }
  .nav-links li:last-child { border-bottom: none; margin-top: 36px; white-space: nowrap; }
  .nav-links .btn-devis { padding: 14px 16px; border-radius: 6px; font-size: 1.1rem; }

  /* Hero */
  .hero-title { font-size: clamp(40px, 12vw, 64px); }
  .hero-cta { flex-direction: column; align-items: center; }
  .hero-cta .btn { width: 280px; justify-content: center; }

  /* À Propos */
  .apropos-grid { grid-template-columns: 1fr; gap: 40px; }
  .apropos-images .img-main  { height: 240px; }
  .apropos-images .img-secondary { height: 160px; width: 100%; margin-left: 0; }

  /* Stats */
  .stats-row { flex-wrap: wrap; }
  .stat-item { flex: 0 0 50%; min-width: 0; border-bottom: 1px solid rgba(30,144,200,.2); }
  .stat-divider { display: none; }

  /* Services */
  .service-card { flex: 0 0 100%; max-width: 100%; }

  /* Gallery */
  .gallery-grid {
    display: flex;
    flex-direction: row;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0;
    columns: unset;
  }
  .gallery-grid::-webkit-scrollbar { display: none; }
  .gallery-item {
    flex: 0 0 100%;
    width: 100%;
    scroll-snap-align: start;
    margin-bottom: 0;
    break-inside: unset;
  }
  .gallery-item img { height: 62vw; object-fit: cover; }
  .gallery-carousel-btn {
    display: flex;
    position: absolute;
    top: calc(62vw / 2);
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(11,14,20,.75);
    border: 1px solid rgba(255,255,255,.2);
    color: var(--c-white);
    width: 44px; height: 44px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    cursor: pointer;
  }
  .gallery-carousel-prev { left: 6px; }
  .gallery-carousel-next { right: 6px; }
  .gallery-carousel-counter {
    display: block;
    text-align: center;
    color: var(--c-silver);
    font-size: .875rem;
    margin-top: 10px;
  }

  /* Pourquoi */
  .pourquoi-grid { grid-template-columns: 1fr; }

  /* Videos */
  .videos-grid { grid-template-columns: 1fr; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .form-row     { grid-template-columns: 1fr; }
  .contact-form { padding: 28px 18px; width: 100%; }

  /* Footer */
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 480px) {
  .stat-item { flex: 0 0 100%; }
  .section-title { font-size: 1.8rem; }
  .hero-badge { font-size: .72rem; padding: 7px 16px; }
}
