/* ==============================================
   Ateliers G. Desmet — Feuille de styles
   www.grue-desmet.com
============================================== */

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Barlow', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #2a2a2a;
  background: #fff;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ===== CSS VARIABLES ===== */
:root {
  --orange: #D71A3B;
  --orange-light: rgba(215,26,59,0.10);
  --orange-border: rgba(215,26,59,0.30);
  --dark: #1a1a1a;
  --dark-2: #2a2a2a;
  --dark-3: #111;
  --gray-bg: #f6f5f1;
  --gray-border: #e2e0db;
  --gray-text: #666;
  --white: #fff;
  --radius: 10px;
  --radius-sm: 6px;
  --transition: 0.18s ease;
}

/* ===== UTILITIES ===== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.section-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: var(--orange);
  margin-bottom: 10px;
}
.section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 36px;
  text-transform: uppercase;
  line-height: 1.05;
  color: var(--dark);
}
.section-title.light { color: #fff; }
.btn-primary {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  font-family: 'Barlow', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.btn-primary:hover { background: #a8112c; transform: translateY(-1px); }
.btn-outline {
  display: inline-block;
  background: transparent;
  color: #fff;
  font-family: 'Barlow', sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  border: 1px solid #555;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.06); }

/* ===== PLACEHOLDER IMAGE ===== */
/*
  Pour remplacer un placeholder par une vraie photo :
  Remplacez la div.img-placeholder par :
    <img src="img/votre-photo.jpg" alt="Description" />
  ou ajoutez style="background-image: url('img/photo.jpg')" sur la div.img-placeholder
  et passez la classe en img-real.
*/
.img-placeholder {
  background: #2a2a2a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #555;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
}
.img-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 10px,
    rgba(255,255,255,0.015) 10px,
    rgba(255,255,255,0.015) 20px
  );
}
.img-placeholder svg { opacity: 0.25; }
.img-placeholder span { opacity: 0.4; z-index: 1; }
.img-placeholder .ph-icon { z-index: 1; font-size: 36px; opacity: 0.2; }

/* ===== NAVIGATION ===== */
#navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--dark-3);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: box-shadow var(--transition);
}
#navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.4);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 20px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.15;
}
.nav-logo span.accent { color: var(--orange); }
.nav-logo small {
  display: block;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 3px;
  color: #666;
  font-family: 'Barlow', sans-serif;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-links a {
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #aaa;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,0.07); }
.nav-links a.active { color: var(--orange); }
.nav-links a.nav-cta {
  background: var(--orange);
  color: #fff;
  padding: 8px 16px;
}
.nav-links a.nav-cta:hover { background: #a8112c; }
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 12px 24px 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: var(--dark-3);
}
.nav-mobile a {
  font-size: 15px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #aaa;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display: block;
  transition: color var(--transition);
}
.nav-mobile a:last-child { border-bottom: none; color: var(--orange); font-weight: 600; }
.nav-mobile.open { display: flex; }

/* ===== HERO ===== */
#accueil {
  background: var(--dark);
  position: relative;
  overflow: hidden;
  min-height: 580px;
  display: flex;
  align-items: center;
}
/* Hero split 1/3 - 2/3 : voir .hero-bg-full en bas de fichier */

/* hero-pattern supprimé */
.hero-accent-line {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--orange);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 80px 0;
  max-width: 620px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange-light);
  border: 1px solid var(--orange-border);
  color: var(--orange);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 14px;
  border-radius: 4px;
  margin-bottom: 24px;
}
.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--orange);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}
#accueil h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: clamp(36px, 4vw, 48px);
  text-transform: uppercase;
  line-height: 1.0;
  color: #ffffff;
  margin-bottom: 20px;
  text-shadow: 0 2px 16px rgba(0,0,0,0.7), 0 0 40px rgba(0,0,0,0.4);
}
#accueil h1 em {
  color: #D71A3B;
  font-style: normal;
  display: block;
  text-shadow: 0 2px 16px rgba(0,0,0,0.8);
}
.hero-desc {
  font-size: 17px;
  color: rgba(255,255,255,0.78);
  max-width: 500px;
  line-height: 1.65;
  margin-bottom: 36px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 52px;
}
.hero-stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  padding-top: 36px;
  border-top: 1px solid rgba(255,255,255,0.18);
}
.hero-stat-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 34px;
  color: var(--orange);
  line-height: 1;
}
.hero-stat-label {
  font-size: 11px;
  color: rgba(255,255,255,0.50);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-top: 5px;
}

/* ===== BRANDS BAR ===== */
.brands-bar {
  background: #f0ede8;
  border-top: 1px solid var(--gray-border);
  border-bottom: 1px solid var(--gray-border);
}
.brands-inner {
  display: flex;
  align-items: center;
  min-height: 52px;
  gap: 0;
  flex-wrap: nowrap;
  overflow-x: auto;
}
.brands-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #999;
  padding-right: 24px;
  border-right: 1px solid #d5d2cc;
  margin-right: 24px;
  white-space: nowrap;
}
.brand-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #333;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 0 20px 0 0;
  margin-right: 20px;
  border-right: 1px solid #d5d2cc;
}
.brand-item:last-child { border-right: none; }
a.brand-item { transition: background var(--transition); border-radius: var(--radius-sm); }
a.brand-item:hover { background: rgba(0,0,0,0.05); color: #111; }
/* ISO 9001 badge */
.iso-badge {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  text-decoration: none;
  background: #fff;
  border: 1.5px solid #1a1a1a;
  border-radius: 4px;
  padding: 4px 10px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.iso-badge:hover {
  border-color: var(--orange);
  box-shadow: 0 0 0 2px rgba(215,26,59,0.12);
}
.iso-badge-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 15px;
  color: #1a1a1a;
  letter-spacing: 1px;
}
.iso-badge-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 15px;
  color: var(--orange);
  letter-spacing: 0.5px;
}
.iso-badge-year {
  font-family: 'Barlow', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: #888;
  letter-spacing: 0.3px;
  margin-left: 1px;
}
/* ISO badge dark variant (footer) */
.iso-badge-dark {
  background: transparent;
  border-color: #3a3a3a;
}
.iso-badge-dark .iso-badge-label { color: #ccc; }
.iso-badge-dark .iso-badge-year { color: #555; }
.iso-badge-dark:hover { border-color: var(--orange); }
.brand-dot { width: 8px; height: 8px; border-radius: 50%; }

/* ===== PRODUCTS ===== */
#produits { padding: 72px 0; }
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.product-card {
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}
.product-img-wrap {
  height: 200px;
  position: relative;
  overflow: hidden;
}
/* ---- PHOTOS PRODUITS ----
   Pour chaque produit, remplacez la div.img-placeholder par :
     <img src="img/grue-palfinger.jpg" alt="Grue de manutention Palfinger" style="width:100%;height:100%;object-fit:cover;" />
*/
.product-body {
  padding: 20px 22px;
  background: #fff;
}
.product-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 20px;
  text-transform: uppercase;
  color: #D71A3B;
  margin-bottom: 8px;
}
.product-desc {
  font-size: 14px;
  color: var(--gray-text);
  line-height: 1.55;
  margin-bottom: 16px;
}
.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.product-tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #555;
  background: transparent;
  border: 1.5px solid #999;
  padding: 3px 9px;
  border-radius: 6px;
}
.product-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: gap var(--transition);
}
.product-link:hover { gap: 9px; }
.product-link::after { content: '→'; }

/* ===== SERVICES ===== */
#services { padding: 72px 0; background: var(--gray-bg); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.service-card {
  background: #fff;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  padding: 28px 30px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: box-shadow var(--transition);
}
.service-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,0.07); }
.service-icon {
  width: 48px; height: 48px;
  background: var(--orange-light);
  border: 1px solid var(--orange-border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 22px;
  color: var(--orange);
}
.service-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 19px;
  text-transform: uppercase;
  color: var(--dark);
  margin-bottom: 6px;
}
.service-desc {
  font-size: 14px;
  color: var(--gray-text);
  line-height: 1.6;
}

/* ===== GALERIE RÉALISATIONS ===== */
#realisations { padding: 72px 0; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 40px;
}
.gallery-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
}
.gallery-item .img-placeholder {
  height: 200px;
  width: 100%;
  border-radius: 0;
}
.gallery-item:first-child {
  grid-column: span 2;
}
.gallery-item:first-child .img-placeholder { height: 260px; }
/* ---- PHOTOS GALERIE ----
   Pour chaque réalisation, remplacez la div.img-placeholder par :
     <img src="img/realisation-01.jpg" alt="Montage grue sur camion" style="width:100%;height:200px;object-fit:cover;" />
*/
.gallery-caption {
  padding: 10px 14px;
  background: #fff;
  border: 1px solid var(--gray-border);
  border-top: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-size: 13px;
  color: var(--gray-text);
}
.gallery-caption strong {
  display: block;
  font-weight: 600;
  color: var(--dark);
  font-size: 14px;
}

/* ===== PIÈCES DÉTACHÉES ===== */
#pieces { padding: 72px 0; background: var(--dark); }
.pieces-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.pieces-img-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  /* ---- PHOTO MAGASIN ----
     Remplacez la div.img-placeholder par :
       <img src="img/magasin-pieces.jpg" alt="Magasin pièces détachées" style="width:100%;height:360px;object-fit:cover;" />
  */
}
.pieces-img-wrap .img-placeholder { height: 360px; }
.pieces-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: var(--orange);
  margin-bottom: 10px;
}
.pieces-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 36px;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.05;
  margin-bottom: 18px;
}
.pieces-desc {
  font-size: 15px;
  color: #999;
  line-height: 1.7;
  margin-bottom: 28px;
}
.pieces-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}
.pieces-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: #ccc;
}
.pieces-feature::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--orange);
  border-radius: 50%;
  flex-shrink: 0;
}
.pieces-stat {
  display: flex;
  gap: 32px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.pieces-stat-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 30px;
  color: var(--orange);
}
.pieces-stat-label {
  font-size: 12px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 3px;
}

/* ===== CONTACT ===== */
#contact { padding: 72px 0; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  margin-top: 40px;
  align-items: start;
}
.contact-info-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 22px;
  text-transform: uppercase;
  color: var(--dark);
  margin-bottom: 24px;
}
.contact-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 20px;
}
.contact-icon {
  width: 40px; height: 40px;
  background: var(--orange-light);
  border: 1px solid var(--orange-border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
}
.contact-text strong {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--orange);
  margin-bottom: 3px;
}
.contact-text span {
  font-size: 14px;
  color: var(--gray-text);
  line-height: 1.5;
}
.contact-text a { color: var(--gray-text); transition: color var(--transition); }
.contact-text a:hover { color: var(--orange); }
.hours-block {
  margin-top: 28px;
  background: var(--gray-bg);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.hours-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--dark);
  margin-bottom: 14px;
}
.hours-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--gray-text);
  padding: 6px 0;
  border-bottom: 1px solid var(--gray-border);
}
.hours-row:last-child { border-bottom: none; }
.hours-row .closed { color: #bbb; }
.map-block {
  margin-top: 20px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gray-border);
}
/* ---- CARTE GOOGLE MAPS ----
   Remplacez la div.img-placeholder ci-dessous par un iframe Google Maps :
     <iframe
       src="https://www.google.com/maps/embed?pb=!1m18!..."
       width="100%" height="200" style="border:0;" allowfullscreen loading="lazy">
     </iframe>
*/
.map-block .img-placeholder { height: 180px; }
.map-ph-text { font-size: 12px; color: #666; margin-top: 6px; }

/* ===== CONTACT FORM ===== */
.contact-form-wrap {
  background: var(--dark);
  border-radius: var(--radius);
  padding: 32px 34px;
}
.form-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 22px;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 24px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 12px;
}
.form-group label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #777;
}
.form-group input,
.form-group select,
.form-group textarea {
  background: #2a2a2a;
  border: 1px solid #3a3a3a;
  border-radius: var(--radius-sm);
  color: #eee;
  font-family: 'Barlow', sans-serif;
  font-size: 14px;
  padding: 10px 14px;
  outline: none;
  transition: border-color var(--transition);
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--orange);
}
.form-group select option { background: #2a2a2a; color: #eee; }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-submit {
  width: 100%;
  margin-top: 4px;
}
.form-note {
  font-size: 12px;
  color: #555;
  margin-top: 10px;
  text-align: center;
}

/* ===== FOOTER ===== */
footer {
  background: var(--dark-3);
  border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-top {
  padding: 40px 0 32px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}
.footer-logo {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 22px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.footer-logo span { color: var(--orange); }
.footer-about {
  font-size: 13px;
  color: #666;
  line-height: 1.65;
  max-width: 280px;
}
.footer-col-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #555;
  margin-bottom: 14px;
}
.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-links-list a {
  font-size: 13px;
  color: #666;
  transition: color var(--transition);
}
.footer-links-list a:hover { color: var(--orange); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.04);
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-copy {
  font-size: 12px;
  color: #444;
}
.footer-palfinger {
  font-size: 11px;
  color: #444;
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-palfinger::before {
  content: '';
  width: 6px; height: 6px;
  background: #D71A3B;
  border-radius: 50%;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .products-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-item:first-child { grid-column: span 2; }
  .pieces-inner { grid-template-columns: 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
@media (max-width: 600px) {
  #accueil h1 { font-size: 36px; }
  .hero-stats { gap: 24px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item:first-child { grid-column: span 1; }
  .form-row { grid-template-columns: 1fr; }
}

/* ===== CAROUSEL ===== */
#realisations { padding: 72px 0; }
.carousel-wrap {
  position: relative;
  margin-top: 40px;
  user-select: none;
}
.carousel-viewport {
  overflow: hidden;
  border-radius: var(--radius);
}
.carousel-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.4,0,0.2,1);
  will-change: transform;
}
.carousel-slide { min-width: 100%; flex-shrink: 0; }
.carousel-img-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  cursor: zoom-in;
}
.carousel-img-wrap img {
  width: 100%; height: 380px; object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.carousel-img-wrap .img-placeholder { height: 380px; width: 100%; }
.carousel-img-wrap:hover img { transform: scale(1.02); }
.carousel-zoom-hint {
  position: absolute; bottom: 12px; right: 14px;
  background: rgba(0,0,0,0.55); color: #fff;
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.8px;
  padding: 5px 10px; border-radius: 4px;
  display: flex; align-items: center; gap: 5px;
  opacity: 0; transition: opacity 0.2s; pointer-events: none;
}
.carousel-img-wrap:hover .carousel-zoom-hint { opacity: 1; }
.carousel-caption {
  background: #fff; border: 1px solid var(--gray-border); border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 14px 20px; display: flex; align-items: center; gap: 12px;
}
.carousel-caption::before {
  content: ''; width: 3px; height: 32px;
  background: var(--orange); border-radius: 2px; flex-shrink: 0;
}
.carousel-caption strong { font-size: 15px; font-weight: 700; color: var(--dark); }
.carousel-caption span { font-size: 13px; color: var(--gray-text); }
.carousel-btn {
  position: absolute; top: calc(50% - 30px); transform: translateY(-50%);
  z-index: 10; width: 44px; height: 44px;
  background: #fff; border: 1px solid var(--gray-border); border-radius: 50%;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: var(--dark); box-shadow: 0 2px 12px rgba(0,0,0,0.12);
  transition: background 0.18s, color 0.18s, border-color 0.18s, box-shadow 0.18s;
}
.carousel-btn:hover { background: var(--orange); color: #fff; border-color: var(--orange); box-shadow: 0 4px 20px rgba(215,26,59,0.3); }
.carousel-btn--prev { left: -22px; }
.carousel-btn--next { right: -22px; }
.carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.carousel-dot {
  width: 8px; height: 8px; background: var(--gray-border);
  border-radius: 50%; border: none; cursor: pointer; padding: 0;
  transition: background 0.18s, transform 0.18s, width 0.18s;
}
.carousel-dot.active { background: var(--orange); width: 24px; border-radius: 4px; }
.carousel-counter { text-align: center; font-size: 12px; color: var(--gray-text); margin-top: 8px; font-weight: 600; letter-spacing: 0.5px; }
@media (max-width: 600px) {
  .carousel-btn--prev { left: -14px; } .carousel-btn--next { right: -14px; }
  .carousel-btn { width: 36px; height: 36px; }
}

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.92);
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
  animation: lbFadeIn 0.22s ease;
}
.lightbox[hidden] { display: none; }
@keyframes lbFadeIn { from { opacity:0 } to { opacity:1 } }
.lightbox-content { display: flex; flex-direction: column; align-items: center; max-width: 90vw; max-height: 90vh; }
.lightbox-img-wrap {
  max-width: 85vw; max-height: 75vh;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius); overflow: hidden;
  animation: lbZoomIn 0.25s cubic-bezier(0.4,0,0.2,1);
}
@keyframes lbZoomIn { from { transform:scale(0.92);opacity:0 } to { transform:scale(1);opacity:1 } }
.lightbox-img-wrap img { max-width:85vw; max-height:75vh; width:auto; height:auto; object-fit:contain; border-radius:var(--radius); }
.lightbox-img-wrap .img-placeholder { width:640px; height:420px; max-width:85vw; max-height:75vh; }
.lightbox-caption { margin-top:14px; font-size:15px; font-weight:600; color:#fff; text-align:center; opacity:0.9; }
.lightbox-counter { margin-top:6px; font-size:12px; color:#666; font-weight:600; letter-spacing:0.5px; }
.lightbox-close {
  position: fixed; top: 20px; right: 24px;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  color: #fff; font-size: 26px; line-height: 1;
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.18s; z-index: 1010;
}
.lightbox-close:hover { background: var(--orange); border-color: var(--orange); }
.lightbox-nav {
  position: fixed; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  color: #fff; width: 48px; height: 48px; border-radius: 50%;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.18s; z-index: 1010;
}
.lightbox-nav:hover { background: var(--orange); border-color: var(--orange); }
.lightbox-nav--prev { left: 20px; }
.lightbox-nav--next { right: 20px; }

/* ===== FORM STATUS ===== */
.form-status { display:none; align-items:center; gap:10px; padding:12px 16px; border-radius:var(--radius-sm); font-size:14px; font-weight:500; margin-bottom:16px; }
.form-status.success { display:flex; background:rgba(34,197,94,0.12); border:1px solid rgba(34,197,94,0.35); color:#4ade80; }
.form-status.error   { display:flex; background:rgba(215,26,59,0.12);  border:1px solid rgba(215,26,59,0.3);  color:#f87171; }


/* ===== DROPDOWN LOCATION ===== */
.nav-dropdown { position: relative; }

.nav-dropdown-btn {
  background: none;
  border: none;
  font-family: 'Barlow', sans-serif;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #aaa;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color var(--transition), background var(--transition);
}
.nav-dropdown-btn:hover,
.nav-dropdown.open .nav-dropdown-btn {
  color: #fff;
  background: rgba(255,255,255,0.07);
}
.nav-dropdown-arrow {
  transition: transform 0.22s ease;
  flex-shrink: 0;
}
.nav-dropdown.open .nav-dropdown-arrow { transform: rotate(180deg); }

.nav-submenu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: #1f1f1f;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  min-width: 200px;
  list-style: none;
  padding: 6px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 200;
}
.nav-dropdown.open .nav-submenu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* Petite flèche au-dessus du menu */
.nav-submenu::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid rgba(255,255,255,0.1);
}
.nav-submenu::after {
  content: '';
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid #1f1f1f;
}

.nav-submenu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 500;
  color: #bbb;
  text-transform: none;
  letter-spacing: 0;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}
.nav-submenu a:hover {
  background: rgba(215,26,59,0.12);
  color: #fff;
}
.nav-submenu a svg { color: var(--orange); flex-shrink: 0; }

/* Séparateur entre les items */
.nav-submenu li + li { border-top: 1px solid rgba(255,255,255,0.05); }

/* Mobile group */
.nav-mobile-group {
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding-bottom: 4px;
}
.nav-mobile-group-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--orange);
  padding: 10px 0 4px;
}
.nav-mobile-sub {
  font-size: 14px !important;
  color: #888 !important;
  padding: 8px 0 8px 10px !important;
  border-bottom: none !important;
}
.nav-mobile-sub:hover { color: #fff !important; }

/* ===== PRICING PILLS (remorques & plaques) ===== */
.remorque-pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 4px;
}
.price-pill {
  background: var(--dark);
  border-radius: var(--radius-sm);
  padding: 10px 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.price-pill-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #777;
}
.price-pill-val {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 17px;
  color: var(--orange);
}

/* ===== LOADING / EMPTY STATES ===== */
.loading-placeholder {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 24px;
  font-size: 14px;
  color: var(--gray-text);
  background: var(--gray-bg);
  border: 1px dashed var(--gray-border);
  border-radius: var(--radius);
}
.loading-error a { color: var(--orange); font-weight: 600; }

/* ===== CONDITIONS BOX ===== */
.conditions-box {
  margin-top: 32px;
  background: var(--gray-bg);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  padding: 24px 28px;
}
.conditions-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 18px;
  text-transform: uppercase;
  color: var(--dark);
  margin-bottom: 12px;
}
.conditions-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}
.conditions-list li {
  font-size: 14px;
  color: var(--gray-text);
  padding-left: 16px;
  position: relative;
}
.conditions-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 6px; height: 6px;
  background: var(--orange);
  border-radius: 50%;
}
.conditions-list strong { color: var(--dark); font-weight: 700; }
.conditions-note {
  font-size: 12px;
  color: #999;
  font-style: italic;
  border-top: 1px solid var(--gray-border);
  padding-top: 12px;
}

/* Wrapper photo des cartes remorques (généré dynamiquement) */
.remorque-img {
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
}
.remorque-img .img-placeholder {
  border-radius: 0;
}

/* ====================================================
   CALCULATEUR PLAQUES DE ROULAGE
==================================================== */
.plaques-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 40px;
  margin-bottom: 56px;
}

.calc-section {
  background: var(--gray-bg);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  padding: 36px;
  margin-bottom: 32px;
}
.calc-intro {
  font-size: 14px;
  color: var(--gray-text);
  line-height: 1.6;
  max-width: 640px;
  margin-top: 8px;
  margin-bottom: 28px;
}
.calc-intro strong { color: var(--orange); }

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 28px;
  align-items: start;
}

/* ---- Formulaire ---- */
.calc-form {
  background: #fff;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  padding: 24px;
}
.calc-form .form-group { margin-bottom: 16px; }
.calc-form .form-group:last-child { margin-bottom: 0; }
.calc-form label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #999;
  margin-bottom: 6px;
}
.calc-form input,
.calc-form select {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-sm);
  color: var(--dark);
  font-family: 'Barlow', sans-serif;
  font-size: 14px;
  padding: 10px 14px;
  outline: none;
  transition: border-color var(--transition);
  color-scheme: light;
}
.calc-form select option {
  background: #ffffff;
  color: var(--dark);
}
.calc-form input:focus,
.calc-form select:focus { border-color: var(--orange); }

/* ---- Résultats ---- */
.calc-results {
  background: var(--dark);
  border-radius: var(--radius);
  padding: 24px;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}
.calc-results-placeholder {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  font-size: 13px;
  color: #666;
  padding: 32px 16px;
}
.calc-results-placeholder svg { opacity: 0.3; }
.calc-results-placeholder.calc-error { color: #f87171; }

.calc-result-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.calc-result-big {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 52px;
  color: var(--orange);
  line-height: 1;
}
.calc-result-big-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #999;
}
.calc-result-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.calc-result-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 13px;
  color: #aaa;
}
.calc-result-row strong {
  color: #fff;
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}
.calc-result-divider {
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 18px 0;
}
.calc-result-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #fff;
}
.calc-result-total strong {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 26px;
  color: var(--orange);
  letter-spacing: 0;
}
.calc-result-note {
  font-size: 11px;
  color: #555;
  font-style: italic;
  margin-top: 16px;
  line-height: 1.5;
}

/* ---- Schéma de pose ---- */
.calc-schema-wrap {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--gray-border);
}
.calc-schema-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--dark);
  margin-bottom: 14px;
}
.calc-schema-svg {
  background: #fff;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-sm);
  padding: 12px;
}
.calc-schema-legend {
  display: flex;
  gap: 24px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--gray-text);
}
.legend-item { display: flex; align-items: center; gap: 6px; }
.legend-swatch {
  display: inline-block;
  width: 14px; height: 14px;
  border-radius: 3px;
  border: 1.5px solid #D71A3B;
}
.legend-plate { background: rgba(215,26,59,0.10); }
.legend-overlap { background: #1a1a1a; opacity: 0.55; border-color: #1a1a1a; }

@media (max-width: 900px) {
  .calc-grid { grid-template-columns: 1fr; }
  .calc-section { padding: 24px; }
}

/* ===== HERO PLEIN FOND AVEC VOILE (Option A) ===== */
.hero-bg-full {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
/* Couche 1 : assombrissement uniforme doux sur toute la photo */
.hero-overlay-base {
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 8, 0.45);
}
/* Couche 2 : gradient directionnel concentré sur la zone texte */
.hero-overlay-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(8, 8, 8, 0.78) 0%,
    rgba(8, 8, 8, 0.55) 38%,
    rgba(8, 8, 8, 0.15) 65%,
    rgba(8, 8, 8, 0.00) 100%
  );
}

/* hero-content : limiter au tiers gauche */
.hero-content {
  position: relative;
  z-index: 2;
  padding: 80px 0;
  max-width: 560px;
}

/* Stats en ligne horizontale */
.hero-stats {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.15);
  margin-top: 0;
}
.hero-stat-row { display: none; }

/* Logo Palfinger dans le footer */
.footer-palfinger-logo {
  display: inline-block;
  opacity: 0.85;
  transition: opacity var(--transition);
}
.footer-palfinger-logo:hover { opacity: 1; }

/* ===================================================
   BANNIÈRE COOKIES
=================================================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9000;
  background: #1a1a1a;
  border-top: 3px solid var(--orange);
  box-shadow: 0 -4px 32px rgba(0,0,0,0.4);
  transform: translateY(110%);
  opacity: 0;
}
.cookie-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cookie-text {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex: 1;
  min-width: 260px;
}
.cookie-text p {
  font-size: 13px;
  color: #ccc;
  line-height: 1.55;
  margin: 0;
}
.cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.cookie-btn {
  font-family: 'Barlow', sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.cookie-btn:hover { transform: translateY(-1px); }
.cookie-btn--accept {
  background: var(--orange);
  color: #fff;
}
.cookie-btn--accept:hover { background: #a8112c; }
.cookie-btn--decline {
  background: transparent;
  color: #aaa;
  border: 1px solid #444;
}
.cookie-btn--decline:hover { border-color: #888; color: #fff; }

/* ===================================================
   MODALE DÉTAIL COOKIES
=================================================== */
.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 9100;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(3px);
  animation: lbFadeIn 0.2s ease;
}
.cookie-modal[hidden] { display: none; }
.cookie-modal-box {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px;
  max-width: 560px;
  width: calc(100% - 32px);
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.cookie-modal-close {
  position: absolute;
  top: 16px; right: 16px;
  background: none;
  border: none;
  font-size: 22px;
  color: #999;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}
.cookie-modal-close:hover { color: var(--orange); }
.cookie-modal-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 22px;
  text-transform: uppercase;
  color: var(--dark);
  margin-bottom: 16px;
}
.cookie-modal-body p {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 14px;
}
.cookie-table {
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin: 14px 0;
}
.cookie-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.4fr 0.8fr;
  font-size: 12px;
  color: #555;
  padding: 8px 12px;
  border-bottom: 1px solid var(--gray-border);
}
.cookie-row:last-child { border-bottom: none; }
.cookie-row--head {
  background: var(--gray-bg);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--dark);
  font-size: 11px;
}
.cookie-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-border);
}
.cookie-modal-actions .cookie-btn--decline {
  color: #666;
  border-color: #ddd;
}

@media (max-width: 600px) {
  .cookie-inner { flex-direction: column; gap: 14px; }
  .cookie-actions { width: 100%; }
  .cookie-btn { flex: 1; text-align: center; }
  .cookie-row { grid-template-columns: 1fr 1fr; gap: 4px; }
  .cookie-row span:nth-child(3),
  .cookie-row span:nth-child(4) { display: none; }
}
