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

:root {
  --orange: #F47920;
  --orange-dark: #d96510;
  --dark: #1a1a1a;
  --dark2: #2d2d2d;
  --gray: #6b7280;
  --gray-light: #f5f5f5;
  --white: #ffffff;
  --font-head: 'Bebas Neue', sans-serif;
  --font-body: 'Inter', sans-serif;
  --radius: 10px;
  --shadow: 0 4px 20px rgba(0,0,0,0.1);
  --transition: 0.3s ease;
}

html { scroll-behavior: smooth; }

section[id], footer[id] { scroll-margin-top: 70px; }

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

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

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

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-block;
  background: var(--orange);
  color: white;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(244,121,32,0.3); }

.btn-secondary {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  color: white;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  border: 2px solid rgba(255,255,255,0.5);
  transition: var(--transition);
  backdrop-filter: blur(4px);
}
.btn-secondary:hover { background: rgba(255,255,255,0.25); }

.btn-outline {
  display: inline-block;
  border: 2px solid var(--orange);
  color: var(--orange);
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  transition: var(--transition);
}
.btn-outline:hover { background: var(--orange); color: white; }

.btn-full { width: 100%; text-align: center; }

/* ===== HEADER / NAV ===== */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease;
  padding: 12px 0;
}
#header.scrolled {
  background: var(--dark);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo { display: flex; align-items: center; }
.logo-img {
  height: 28px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  transition: color var(--transition);
  font-size: 0.95rem;
}
.nav-links a:hover { color: var(--orange); }

.btn-nav {
  background: var(--orange);
  color: white !important;
  padding: 10px 22px;
  border-radius: 8px;
  transition: background var(--transition) !important;
}
.btn-nav:hover { background: var(--orange-dark) !important; color: white !important; }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.burger span {
  display: block;
  width: 26px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  transition: transform 8s ease;
}
.hero:hover .hero-bg { transform: scale(1); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.3) 70%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding-top: 80px;
}

.hero-tag {
  display: inline-block;
  background: var(--orange);
  color: white;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 24px;
  text-transform: uppercase;
}

.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 1;
  color: white;
  letter-spacing: 1px;
  margin-bottom: 24px;
}
.hero h1 span { color: var(--orange); }

.hero-sub {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 40px;
  max-width: 500px;
}

.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255,255,255,0.4);
  font-size: 1.5rem;
  animation: bounce 2s infinite;
}

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

/* ===== STATS ===== */
.stats {
  background: var(--orange);
  padding: 40px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.stat-item { color: white; }
.stat-number {
  display: block;
  font-family: var(--font-head);
  font-size: 3rem;
  line-height: 1;
}
.stat-label {
  font-size: 0.9rem;
  opacity: 0.85;
  margin-top: 4px;
  display: block;
}

/* ===== SECTIONS ===== */
.section { padding: 60px 0 100px; }
.section-dark {
  background: var(--dark);
  color: white;
}
.section-contact { background: var(--gray-light); }
.section-gray { background: #f9f9f9; }

.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-tag {
  display: inline-block;
  color: var(--orange);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}
.section-header h2 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: 1px;
  line-height: 1.1;
  margin-bottom: 16px;
}
.section-sub {
  color: var(--gray);
  font-size: 1.05rem;
  max-width: 550px;
  margin: 0 auto;
}
.section-dark .section-sub { color: rgba(255,255,255,0.6); }

/* ===== SERVICES ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 36px 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: var(--orange);
  transform: scaleX(0);
  transition: var(--transition);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon { font-size: 2.5rem; margin-bottom: 16px; display: block; }
.service-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; }
.service-card p { color: var(--gray); font-size: 0.95rem; line-height: 1.6; }

/* ===== ÉQUIPEMENT ===== */
.equip-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.equip-visual { position: relative; }
.equip-badge {
  position: absolute;
  top: -16px; right: -16px;
  background: var(--orange);
  color: white;
  font-family: var(--font-head);
  font-size: 2rem;
  padding: 12px 20px;
  border-radius: 12px;
  z-index: 2;
}
.equip-photo {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: 20px;
  border: 2px solid rgba(255,255,255,0.1);
}

.equip-info h3 {
  font-family: var(--font-head);
  font-size: 2.2rem;
  color: white;
  margin-bottom: 16px;
}
.equip-desc { color: rgba(255,255,255,0.7); margin-bottom: 28px; }
.equip-specs { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.equip-specs li { display: flex; gap: 10px; align-items: flex-start; color: rgba(255,255,255,0.8); }
.spec-icon { color: var(--orange); font-weight: 700; flex-shrink: 0; }

/* ===== GALERIE ===== */
.galerie-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 170px);
  gap: 12px;
}
/* Layout décalé en L :
   [  Photo 1  ] [Ph2]
   [  Photo 1  ] [Ph3]
   [  Photo 4  ] [Ph3] */
.galerie-item:nth-child(1) { grid-column: 1 / 3; grid-row: 1 / 3; }
.galerie-item:nth-child(2) { grid-column: 3;     grid-row: 1 / 2; }
.galerie-item:nth-child(3) { grid-column: 3;     grid-row: 2 / 4; }
.galerie-item:nth-child(4) { grid-column: 1 / 3; grid-row: 3 / 4; }
.galerie-item:nth-child(4) img { object-position: center top; }

.galerie-item {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  cursor: pointer;
  background: #eee;
}
.galerie-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25,0.46,0.45,0.94);
}
.galerie-item:hover img { transform: scale(1.08); }

.galerie-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.1) 50%, transparent 100%);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 18px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.galerie-item:hover .galerie-overlay {
  opacity: 1;
  transform: translateY(0);
}
.galerie-label {
  color: white;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: var(--orange);
  padding: 4px 12px;
  border-radius: 20px;
}
.galerie-icon {
  color: white;
  font-size: 1.5rem;
  line-height: 1;
  opacity: 0.9;
  transform: scale(0.8);
  transition: transform 0.3s ease 0.05s;
}
.galerie-item:hover .galerie-icon { transform: scale(1); }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.93);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 20px;
}
.lightbox.open {
  opacity: 1;
  pointer-events: all;
}
.lightbox-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  transform: scale(0.96);
  transition: transform 0.3s ease;
}
.lightbox.open .lightbox-content { transform: scale(1); }
.lightbox-content img {
  max-width: 88vw;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
#lightbox-caption {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.08);
  padding: 6px 18px;
  border-radius: 20px;
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: rgba(255,255,255,0.1);
  border: none;
  color: white;
  font-size: 1.2rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); }

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.12);
  border: none;
  color: white;
  font-size: 2.5rem;
  line-height: 1;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-prev:hover { background: rgba(255,255,255,0.25); transform: translateY(-50%) scale(1.08); }
.lightbox-next:hover { background: rgba(255,255,255,0.25); transform: translateY(-50%) scale(1.08); }
.lightbox-content { z-index: 1; }

/* ===== ZONE ===== */
.zone-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.zone-map { position: relative; }
.map-wrapper {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  position: relative;
}
#map-leaflet {
  width: 100%;
  height: 420px;
  border-radius: 16px;
}
.map-tooltip-siege {
  background: #F47920 !important;
  color: white !important;
  border: none !important;
  border-radius: 20px !important;
  font-weight: 700 !important;
  font-size: 11px !important;
  padding: 3px 10px !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25) !important;
  white-space: nowrap;
}
.map-tooltip-siege::before { display: none !important; }
.map-tooltip-ville {
  background: white !important;
  color: #1a1a1a !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 12px !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  padding: 2px 8px !important;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15) !important;
  white-space: nowrap;
}
.map-tooltip-ville::before { display: none !important; }

.zone-info h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 24px; }
.zone-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.zone-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: var(--gray-light);
  border-radius: 8px;
  font-weight: 500;
}
.distance { color: var(--gray); font-size: 0.85rem; }
.zone-note { color: var(--gray); font-size: 0.9rem; margin-bottom: 24px; font-style: italic; }

/* ===== CONTACT ===== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 28px; }
.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact-icon { font-size: 1.8rem; flex-shrink: 0; }
.contact-item strong { display: block; font-weight: 700; margin-bottom: 4px; }
.contact-item p { color: var(--gray); margin: 0; }

.contact-form {
  background: white;
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.form-group label { font-weight: 600; font-size: 0.9rem; color: var(--dark2); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: var(--font-body);
  transition: border-color var(--transition);
  outline: none;
  background: #fafafa;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--orange); background: white; }
.form-group textarea { resize: vertical; }

.form-success {
  display: none;
  text-align: center;
  padding: 16px;
  background: #d1fae5;
  border-radius: 8px;
  color: #065f46;
  font-weight: 600;
  margin-top: 16px;
}
.form-success.show { display: block; }

.contact-logo {
  margin-top: 16px;
  padding-top: 24px;
  border-top: 1px solid #e5e7eb;
}
.contact-logo img {
  height: 50px;
  width: auto;
  object-fit: contain;
}

/* ===== FAQ ===== */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--white);
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--transition);
}

.faq-item[open] {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  border-color: var(--orange);
}

.faq-question {
  list-style: none;
  padding: 20px 24px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: color var(--transition);
}

.faq-question::-webkit-details-marker { display: none; }

.faq-question::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--orange);
  flex-shrink: 0;
  transition: transform var(--transition);
}

.faq-item[open] .faq-question::after {
  transform: rotate(45deg);
}

.faq-item[open] .faq-question {
  color: var(--orange);
}

.faq-answer {
  padding: 0 24px 20px;
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.7;
  border-top: 1px solid #f0f0f0;
  padding-top: 16px;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--dark);
  color: white;
  padding: 60px 0 0;
}
.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}
.footer-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
  margin-bottom: 12px;
  display: block;
}
.footer-brand p { color: rgba(255,255,255,0.5); font-size: 0.9rem; }
.footer-links h4, .footer-contact h4 { font-weight: 700; margin-bottom: 16px; color: rgba(255,255,255,0.9); }
.footer-links ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: rgba(255,255,255,0.5); transition: color var(--transition); font-size: 0.9rem; }
.footer-links a:hover { color: var(--orange); }
.footer-contact p { color: rgba(255,255,255,0.5); font-size: 0.9rem; margin-bottom: 6px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  text-align: center;
}
.footer-bottom p { color: rgba(255,255,255,0.3); font-size: 0.85rem; }

/* ===== ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .equip-layout, .zone-grid, .contact-layout { grid-template-columns: 1fr; gap: 40px; }
  .footer-content { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .galerie-grid { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, 160px); }
  .galerie-item:nth-child(1) { grid-column: 1 / 2; grid-row: 1 / 3; }
  .galerie-item:nth-child(2) { grid-column: 2;     grid-row: 1 / 2; }
  .galerie-item:nth-child(3) { grid-column: 2;     grid-row: 2 / 4; }
  .galerie-item:nth-child(4) { grid-column: 1 / 2; grid-row: 3 / 4; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--dark);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    z-index: 999;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1.4rem; }
  .burger { display: flex; z-index: 1000; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr; }
  .galerie-grid { grid-template-columns: 1fr; grid-template-rows: repeat(4, 220px); }
  .galerie-item:nth-child(1),
  .galerie-item:nth-child(2),
  .galerie-item:nth-child(3),
  .galerie-item:nth-child(4) { grid-column: span 1; }

  .hero h1 { font-size: 3rem; }
  .hero-btns { flex-direction: column; }

  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 24px; }

  .footer-content { grid-template-columns: 1fr; }

  .equip-badge { top: -8px; right: -8px; }
}

@media (max-width: 480px) {
  .section { padding: 60px 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-number { font-size: 2.2rem; }
}
