:root {
  --green: #1a7a2e;
  --green-dark: #145c22;
  --orange: #f07020;
  --orange-light: #f58c40;
  --white: #ffffff;
  --gray-light: #f5f5f5;
  --text: #1a1a1a;
}

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

body {
  font-family: 'Barlow', sans-serif;
  color: var(--text);
  overflow-x: hidden;
}

/* =====================================================
   NAVBAR — DESKTOP
===================================================== */
nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--white);
  border-bottom: 2px solid var(--gray-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 70px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

.logo-svg {
  height: 54px !important;
  width: auto !important;
  max-height: 54px;
  display: block;
}


/* ── Bouton hamburger : caché sur desktop ── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: var(--green);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  padding: 9px;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
/* Animation ☰ → ✕ */
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.07em;
  color: var(--text);
  text-transform: uppercase;
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--green); }
.nav-links a.active {
  color: var(--green);
  border-bottom: 2px solid var(--orange);
  padding-bottom: 2px;
}

.btn-devis {
  background: var(--green) !important;
  color: var(--white) !important;
  padding: 10px 18px !important;
  border-radius: 4px;
  font-weight: 700 !important;
  border-bottom: none !important;
  transition: background 0.2s !important;
}
.btn-devis:hover { background: var(--green-dark) !important; }

/* =====================================================
   HERO
===================================================== */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 560px;
  overflow: hidden;
  position: relative;
}

.hero-left {
  padding: 64px 48px 64px 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-left h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 58px;
  font-weight: 900;
  line-height: 1.0;
  text-transform: uppercase;
  color: var(--green-dark);
}
.hero-left h1 span { color: var(--orange); display: block; }

.hero-divider {
  width: 60px; height: 3px;
  background: var(--orange);
  margin: 20px 0 22px;
}

.hero-left p {
  font-size: 15px; color: #444;
  line-height: 1.7; max-width: 380px;
  margin-bottom: 32px;
}

.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }

.btn-primary {
  background: var(--green); color: var(--white);
  padding: 14px 26px; font-weight: 700; font-size: 13px;
  text-transform: uppercase; letter-spacing: 0.08em;
  border: none; cursor: pointer; border-radius: 4px;
  transition: background 0.2s; text-decoration: none;
}
.btn-primary:hover { background: var(--green-dark); }

.btn-outline {
  background: transparent; color: var(--green);
  padding: 13px 26px; font-weight: 700; font-size: 13px;
  text-transform: uppercase; letter-spacing: 0.08em;
  border: 2px solid var(--green); cursor: pointer;
  border-radius: 4px; transition: all 0.2s; text-decoration: none;
}
.btn-outline:hover { background: var(--green); color: var(--white); }

/* ── Zone droite : fond blanc pour se fondre avec le gauche ── */
.hero-right {
  position: relative;
  background: var(--white);   /* même fond blanc que hero-left → pas de rupture */
  overflow: hidden;
}

/* Triangle orange qui part du bas — couvre les 2 zones via le hero */
.hero-right::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: -100vw;              /* déborde vers la gauche pour couvrir les 2 colonnes */
  width: 200vw;
  height: 100%;
  /* background: var(--orange); */
  /* Angle : 0 100% = départ gauche tout en bas, 100% 45% = arrivée droite à mi-hauteur */
  clip-path: polygon(0 100%, 100% 45%, 100% 100%);
  z-index: 0;
}

/* Conteneur des images centré dans la zone droite */
.hero-vehicles {
  position: absolute;
  z-index: 1;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  padding-bottom: 70px;
  justify-content: center;   /* ← centré */
  gap: 0;
}

/* Taille des images */
.vehicle-img {
  width: 85%;
  max-width: 580px;
  height: auto;
  max-height: 92%;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.22));
  animation: floatIn 0.8s ease both;
  align-self: flex-end;

}
.vehicle-img:nth-child(1) { animation-delay: 0.1s; }
.vehicle-img:nth-child(2) { animation-delay: 0.3s; }

@keyframes floatIn {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =====================================================
   SERVICES
   Avec 4 cartes actives → repeat(4, 1fr)
   Avec 6 cartes actives → repeat(6, 1fr)
===================================================== */
.services-strip {
  padding: 48px 40px;
  background: var(--white);
  /* border-top: 1px solid #eee; */
}

.services-grid {
  display: grid;
  /* ── 4 cartes actives dans ton HTML ── */
  grid-template-columns: repeat(4, 1fr);
  width: 100%;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

.service-card {
  padding: 30px 16px 24px;
  text-align: center;
  border-right: 1px solid #e0e0e0;
  transition: background 0.2s;
  cursor: pointer;
}
.service-card:last-child { border-right: none; }
.service-card:hover { background: #f6fcf7; }

.service-icon {
  width: 56px; height: 56px;
  margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
}
.service-icon svg, .service-icon img {
  width: 100%; height: 100%; object-fit: contain;
}

.service-title {
  font-weight: 700; font-size: 11.5px;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text); margin-bottom: 10px; line-height: 1.4;
}

.service-desc {
  font-size: 12px; color: #666;
  line-height: 1.55; margin-bottom: 14px;
}

.service-link {
  font-size: 11px; font-weight: 700;
  color: var(--orange); text-transform: uppercase;
  letter-spacing: 0.05em; text-decoration: none;
}
.service-link:hover { color: var(--green); }

/* =====================================================
   STATS BAR
===================================================== */
.stats-bar {
  background: var(--green-dark);
  padding: 36px 48px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.stat-item { display: flex; align-items: center; gap: 14px; color: var(--white); }
.stat-icon { width: 44px; height: 44px; opacity: 0.85; }

.stat-number {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 34px; font-weight: 900;
  color: var(--orange); line-height: 1;
}
.stat-label {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.09em;
  color: rgba(255,255,255,0.75); line-height: 1.3;
}

/* =====================================================
   FOOTER
===================================================== */
footer {
  background: var(--green-dark);
  border-top: 3px solid var(--orange);
  padding: 22px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-contact {
  display: flex; align-items: center; gap: 24px;
  color: rgba(255,255,255,0.8); font-size: 13px;
}
.footer-contact span { display: flex; align-items: center; gap: 6px; }
.footer-social { display: flex; gap: 14px; }

.social-btn {
  width: 34px; height: 34px;
  background: rgba(255,255,255,0.12);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background 0.2s;
}
.social-btn:hover { background: var(--orange); }
.footer-copy { color: rgba(255,255,255,0.5); font-size: 12px; }

/* =====================================================
   ANIMATIONS hero-left
===================================================== */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-left > * { animation: slideUp 0.6s ease both; }
.hero-left h1   { animation-delay: 0.05s; }
.hero-divider   { animation-delay: 0.15s; }
.hero-left p    { animation-delay: 0.25s; }
.hero-buttons   { animation-delay: 0.35s; }

/* =====================================================
   RESPONSIVE — TABLETTE ≤ 1100px
===================================================== */
@media (max-width: 1100px) {
  nav { padding: 0 28px; }
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 11px; }

  .hero-left { padding: 48px 32px 48px 40px; }
  .hero-left h1 { font-size: 44px; }

  /* 4 cartes → 2x2 sur tablette */
  .services-strip { padding: 36px 24px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card:nth-child(2) { border-right: none; }
  .service-card:nth-child(3),
  .service-card:nth-child(4) { border-top: 1px solid #e0e0e0; }
  .service-card:nth-child(4) { border-right: none; }

  footer { padding: 20px 28px; }
}

/* =====================================================
   RESPONSIVE — MOBILE ≤ 768px
   • Hamburger Touch Bar
   • Image hero masquée
===================================================== */
@media (max-width: 768px) {

  /* NAVBAR */
  nav {
    flex-wrap: wrap;
    height: auto;
    padding: 12px 20px;
    gap: 0;
  }

  /* Affiche le bouton hamburger */
  .nav-toggle { display: flex; }

  /* Menu caché par défaut, visible quand .open */
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 0;
    margin-top: 10px;
    border-top: 1px solid #eee;
    padding-top: 4px;
  }
  .nav-links.open {
    display: flex;
    animation: menuOpen 0.2s ease both;
  }

  @keyframes menuOpen {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  /* Touch Bar : chaque lien = une ligne */
  .nav-links li { width: 100%; border-bottom: 1px solid #f0f0f0; }
  .nav-links li:last-child { border-bottom: none; }

  .nav-links a {
    display: block;
    padding: 13px 12px;
    font-size: 13px;
    white-space: normal;
    border-bottom: none !important;
  }
  .nav-links a.active {
    color: var(--green);
    border-left: 3px solid var(--orange) !important;
    padding-left: 16px;
  }
  .btn-devis {
    display: block;
    text-align: center;
    margin: 6px 0 4px;
    border-radius: 4px;
    padding: 13px 12px !important;
  }

  /* HERO : pleine largeur, image cachée */
  .hero { grid-template-columns: 1fr; }
  .hero-left {
    padding: 44px 24px 40px;
    text-align: center;
    align-items: center;
  }
  .hero-left h1 { font-size: 36px; }
  .hero-left p  { max-width: 100%; }
  .hero-buttons { justify-content: center; }

  /* ← Image masquée sur mobile */
  .hero-right { display: none; }

  /* SERVICES : 1 colonne sur mobile */
  .services-strip { padding: 28px 16px; }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .service-card {
    border-right: none !important;
    border-top: 1px solid #e0e0e0;
  }
  .service-card:first-child { border-top: none; }

  /* STATS */
  .stats-bar { padding: 24px 16px; gap: 16px; }
  .stat-item { flex: 1 1 44%; justify-content: center; }
  .stat-number { font-size: 26px; }

  /* FOOTER */
  footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 16px;
  }
  .footer-contact { flex-direction: column; gap: 10px; }
}

/* =====================================================
   RESPONSIVE — PETIT MOBILE ≤ 480px
===================================================== */
@media (max-width: 480px) {
  .hero-left h1 { font-size: 28px; }
  .stat-item { flex: 1 1 100%; }
}

/* =====================================================
   MODALE — DEMANDER UN DEVIS
===================================================== */

/* Fond sombre derrière la modale */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.open {
  display: flex;
  animation: fadeOverlay 0.2s ease both;
}
@keyframes fadeOverlay {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Boîte de la modale */
.modal-box {
  background: var(--white);
  border-radius: 12px;
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0,0,0,0.22);
  animation: slideModal 0.25s ease both;
  position: relative;
}
@keyframes slideModal {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.toast-notif {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;
    background: #1a7a3c;
    color: #fff;
    padding: 16px 24px;
    border-radius: 8px;
    font-size: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.18);
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0;
    transform: translateY(-16px);
    transition: opacity 0.3s, transform 0.3s;
}
.toast-notif.show {
    opacity: 1;
    transform: translateY(0);
}
.toast-notif .toast-icon {
    font-size: 20px;
}

/* En-tête verte */
.modal-header {
  background: var(--green-dark);
  padding: 28px 32px 24px;
  border-radius: 12px 12px 0 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.modal-tag {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.85);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.modal-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 30px;
  font-weight: 900;
  color: var(--white);
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 6px;
}

.modal-subtitle {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
}

/* Bouton fermer ✕ */
.modal-close {
  background: rgba(255,255,255,0.12);
  border: none;
  color: var(--white);
  font-size: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s;
}
.modal-close:hover { background: rgba(255,255,255,0.25); }

/* Barre contacts ELVT */
.modal-contact-bar {
  background: var(--green);
  padding: 12px 32px;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.modal-contact-bar span {
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(255,255,255,0.9);
  font-size: 12.5px;
  font-weight: 600;
}
.modal-contact-bar svg { flex-shrink: 0; }

/* Corps du formulaire */
.modal-body {
  padding: 28px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #444;
}

.required { color: var(--orange); }

.form-group input,
.form-group select,
.form-group textarea {
  border: 1.5px solid #ddd;
  border-radius: 6px;
  padding: 11px 14px;
  font-size: 14px;
  font-family: 'Barlow', sans-serif;
  color: var(--text);
  background: #fafafa;
  transition: border-color 0.2s, background 0.2s;
  outline: none;
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--green);
  background: var(--white);
}

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

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.form-note {
  font-size: 11.5px;
  color: #999;
}

#modalSuccess {
    display: none !important;
}

.modal-overlay {
    opacity: 0;
    visibility: hidden;
}

.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* Bouton envoyer */
.btn-submit {
  background: var(--green);
  color: var(--white);
  border: none;
  padding: 13px 28px;
  font-size: 13px;
  font-weight: 700;
  font-family: 'Barlow', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-submit:hover { background: var(--green-dark); }

/* Message de succès */
.modal-success {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 32px;
  gap: 14px;
}

.success-icon {
  width: 64px;
  height: 64px;
  background: var(--green);
  color: var(--white);
  font-size: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.modal-success h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 26px;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--green-dark);
}

.modal-success p {
  font-size: 15px;
  color: #555;
  max-width: 340px;
  line-height: 1.6;
}

/* Modale responsive mobile */
@media (max-width: 600px) {
  .modal-header { padding: 22px 20px 18px; }
  .modal-contact-bar { padding: 10px 20px; gap: 14px; }
  .modal-body { padding: 20px 20px 24px; }
  .form-row { grid-template-columns: 1fr; }
  .modal-title { font-size: 24px; }
}
