/* ============================= */
/* VARIABLES & RESET */
/* ============================= */
:root {
  --accent: #3AAA35;
  --accent-dark: #1f6f1b;
  --bg-main: #05070b;
  --bg-header: #05070b;
  --bg-search: #101319;
  --text-main: #f5f5f5;
  --text-muted: #a6a6a6;
  --border-soft: rgba(255,255,255,0.1);
}

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

h1, h2, h3, .gm-title .gm-e85-title{
  font-family: 'Big Shoulders Display', sans-serif;
}

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

body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ============================= */
/* HEADER */
/* ============================= */

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--bg-header);
  /*border-bottom: 1px solid rgba(255,255,255,0.06);*/
  
}

.nav-bar {
  height: 60px;
  width: 100%;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
}

.logo {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.logo img {
  max-width: 250px;
}

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  padding-right: 20px;
}

.nav-links a {
	
  font-family: 'Big Shoulders Display', sans-serif;
  font-size: 15px;
  font-weight: 900;
  color: #fefefe;
  /*color: #a6a6a6;*/
  position: relative;
  padding-bottom: 3px;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 160ms ease-out;
}

.nav-links a:hover {
  color: #ffffff;
}

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

/* Burger */
.burger {
  width: 24px;
  height: 18px;
  position: relative;
  cursor: pointer;
  display: none;
  flex: 0 0 32px;
}

.burger span {
  position: absolute;
  width: 100%;
  height: 2px;
  left: 0;
  background: #ffffff;
  border-radius: 10px;
}

.burger span:nth-child(1) { top: 2px; }
.burger span:nth-child(2) { top: 8px; }
.burger span:nth-child(3) { top: 14px; }

.burger.open span:nth-child(1) {
  top: 8px;
  transform: rotate(45deg);
}
.burger.open span:nth-child(2) {
  opacity: 0;
}
.burger.open span:nth-child(3) {
  top: 8px;
  transform: rotate(-45deg);
}

/* Menu mobile */
.mobile-menu {
  display: none;
  background: #05070b;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.mobile-menu.open {
  display: block;
}

.mobile-menu ul {
  list-style: none;
  padding: 10px 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #c0c0c0;
}

/* ============================= */
/* RESPONSIVE HEADER */
/* ============================= */

@media (max-width: 1024px) {
  .nav-links {
    display: none;
  }
  .burger {
    display: block;
  }
  .logo img {
    max-width: 230px;
  }
}

@media (max-width: 480px) {
  .logo img {
    max-width: 180px;
  }
}

/* ============================= */
/* HERO */
/* ============================= */

.hero {
  margin-top: 60px;
}

.hero-image-wrapper {
  position: relative;
  height: min(78vh, 540px);
  min-height: 420px;
  overflow: hidden;
  background: #000;
}

@media (max-width: 900px) {
  .hero-image-wrapper {
  position: relative;
  /*height: 45%;*/
  min-height: 420px;
  overflow: hidden;
  background: #000;
  }

.hero-content {
  position: relative;
  z-index: 1;
  height: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 40% 32px 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
} 
}

.hero-image {
  position: absolute;
  inset: 0;
  background: url("header.png")
    center/cover no-repeat;
  transform: scale(1.03);
  filter: saturate(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(5,7,11,0.1),
    rgba(5,7,11,0.95) 90%,
    rgba(5,7,11,1)
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  height: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 40px 32px 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
}

.hero-kicker {
  font-family: "Big Shoulders Display", sans-serif;
  font-size: 25px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.hero-title {
  font-family: "Big Shoulders Display", sans-serif;
  font-size: clamp(32px, 4.6vw, 50px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 10px 28px;
}

/* ============================= */
/* SEARCH BAR */
/* ============================= */

.search-section {
  background: linear-gradient(to top, var(--bg-main) 0%, var(--bg-main) 40%, transparent 100%);
  margin-top: -40px;
  padding: 0 32px 60px;
}

.search-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding-top: 40px;
}

.search-text {
  text-align: center;
  margin-bottom: 18px;
}

.search-card {
  height: 70px;
  display: flex;
  align-items: center;
  background: #1c1f24;
  border-radius: 50px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 15px 35px rgba(0,0,0,0.7);
}

/* Left entry */
.search-left {
  flex: 2.2;
  height: 100%;
  display: flex;
  align-items: center;
  padding-left: 28px;
  background: #2a2d31;
  border-right: 1px solid var(--border-soft);
}

.search-left input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  font-size: 14px;
  color: white;
}

/* Icon block */
.search-icon-block {
  width: 30px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #2a2d31;
  border-right: 1px solid var(--border-soft);
}

/* Selects */
.search-select {
  flex: 1;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 26px;
  border-right: 1px solid var(--border-soft);
  background: #1c1f24;
  position: relative;
}

.search-select select {
  width: 100%;
  background: transparent;
  border: none;
  color: #e4e4e4;
  font-size: 14px;
  appearance: none;
}

.search-select:last-child {
  border-right: none;
}

.search-select::after {
  content: "▾";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
}

/* Responsive search */

@media (max-width: 768px) {
  .search-card {
    flex-direction: column;
    height: auto;
    border-radius: 22px;
    padding: 12px;
  }

  .search-left,
  .search-icon-block,
  .search-select {
    width: 100%;
    height: 48px;
    border-bottom: 1px solid var(--border-soft);
  }

  .search-select:last-child {
    border-bottom: none;
  }
}

/* ============================= */
/* SECTION REPROG */
/* ============================= */

.section-reprog {
  background: #0b0e13;
  padding: 80px 32px 90px;
}

.section-reprog-inner {
  max-width: 1360px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}

.reprog-text {
  max-width: 560px;
}

.reprog-kicker {
  font-family: "Big Shoulders Display", sans-serif;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 14px;
  color: #9fa3aa;
}

.reprog-kicker span {
  color: var(--accent);
}

.reprog-title {
  font-family: "Big Shoulders Display", sans-serif;
  font-size: 32px;
  line-height: 1.04;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.reprog-body {
  font-size: 14px;
  line-height: 1.7;
  color: #c3c6cb;
}

/* Image side */
.reprog-visual {
  max-width: 100%;
}

.reprog-image-wrapper {
  overflow: hidden;
  border-radius: 32px 0 0 32px;
  max-width: 100%;
}

.reprog-image-wrapper img {
  width: 100%;
  object-fit: cover;
}

/* Scroll animations */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 500ms ease-out, transform 500ms ease-out;
}

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

.reveal-right {
  opacity: 0;
  transform: translateX(0);
  transition: opacity 450ms ease-out;
}

.reveal-right.revealed {
  opacity: 1;
  animation: slideInRight 450ms ease-out;
}

@keyframes slideInRight {
  from { transform: translateX(80px); }
  to   { transform: translateX(0); }
}

/* Reprog responsive */
@media (max-width: 1024px) {
  .section-reprog {
    padding: 60px 20px 70px;
  }
  .section-reprog-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .reprog-image-wrapper {
    border-radius: 28px;
  }
}

/* ===== Suggestions live sous la barre de recherche ===== */

.search-suggestions {
  position: relative;
  max-width: 1360px;
  margin: 8px auto 0;
  padding: 0 32px;
  z-index: 20;
}

.search-suggestions-inner {
  background: #15181f;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 18px 40px rgba(0,0,0,0.8);
  padding: 10px 12px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 10px;
}

.suggestion-card {
  background: #1b1f26;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.06);
  padding: 10px 10px 8px;
  cursor: pointer;
  transition: transform 150ms ease-out, border-color 150ms ease-out, box-shadow 150ms ease-out;
}

.suggestion-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 10px 26px rgba(0,0,0,0.7);
}

/* bloc où on mettra l'image plus tard */
.suggestion-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  background: #fff;
  margin-bottom: 6px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* titre */
.suggestion-title {
  font-size: 13px;
  font-weight: 500;
}

/* sous-ligne (moteur, version…) */
.suggestion-sub {
  font-size: 11px;
  color: var(--text-muted);
}

/* responsive */
@media (max-width: 768px) {
  .search-suggestions {
    padding: 0 20px;
  }
}

.select-display {
  width: 100%;
  cursor: pointer;
  color: #e4e4e4;
}

/* ============================= */
/* PAGE RESULTATS / FICHE MOTEUR */
/* ============================= */

.result-page {
  background: #05070b;
  color: #f5f5f5;
}

/* HERO */

.result-hero {
  padding: 110px 32px 40px;
  background: radial-gradient(circle at top left, rgba(58,170,53,0.25), transparent 55%),
              radial-gradient(circle at bottom right, rgba(0,0,0,0.9), #05070b 60%);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.result-hero-inner {
  max-width: 1360px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}

.result-hero-text {
  max-width: 720px;
}

.result-title {
  font-family: "Big Shoulders Display", sans-serif;
  font-size: clamp(30px, 4vw, 40px);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.result-subtitle {
  font-size: 14px;
  color: #c4c7ce;
  margin-bottom: 16px;
}

.result-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-main {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: #05070b;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.tag-outline {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #c5c8ce;
}

.result-hero-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.result-hero-badge {
  background: rgba(0,0,0,0.6);
  border-radius: 14px;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,0.16);
  font-size: 12px;
  color: #d0d3da;
}

.result-hero-badge strong {
  color: var(--accent);
}

/* Bouton principal */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 20px;
  border-radius: 20px;
  background: linear-gradient(120deg, var(--accent), var(--accent-dark));
  color: #05070b;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

/* STATS */

.result-stats {
  padding: 40px 32px 40px;
  background: #05070b;
}

.result-stats-inner {
  max-width: 1360px;
  margin: 0 auto;
}

.result-stats-header {
  max-width: 720px;
  margin-bottom: 20px;
}

.result-stats-header h2 {
  font-family: "Big Shoulders Display", sans-serif;
  font-size: 20px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.result-stats-header p {
  font-size: 13px;
  color: #a8adb7;
}

.result-stats-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(160px, 1fr);
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.stage-col {
  background: #0d1016;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  padding: 12px 14px;
  min-width: 160px;
}

.stage-title {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #e1e4ea;
  margin-bottom: 10px;
}

.stage-value {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 4px;
}

.stage-label {
  color: #999fac;
}

.stage-number {
  font-weight: 600;
}

.stage-gain {
  margin-top: 8px;
  font-size: 12px;
  color: var(--accent);
}

.stage-gain-ori {
  color: #8b909c;
}

/* EXTRA */

.result-extra {
  padding: 28px 32px 60px;
  background: #05070b;
}

.result-extra-inner {
  max-width: 1360px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.result-extra h3 {
  font-family: "Big Shoulders Display", sans-serif;
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.result-extra p {
  font-size: 13px;
  color: #b3b7c0;
  white-space: pre-line;
}

/* Responsive */

@media (max-width: 900px) {
  .result-hero {
    padding: 90px 20px 30px;
  }
  .result-hero-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .result-hero-side {
    align-items: flex-start;
  }
  .result-stats,
  .result-extra {
    padding: 24px 20px 32px;
  }
}


/* Dimensions cartes  */ 
#facetedPopup .search-suggestions-inner {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 12px;
  padding: 10px;
  max-height: 350px;
  overflow-y: auto;
}

.faceted-card {
  width: 90px;
  height: 110px;
  background: #0d1016;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 8px;
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  transition: all .15s ease;
}

.faceted-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}

.faceted-card .faceted-thumb {
  width: 60px;
  height: 60px;
  background: #11141a;
  border-radius: 8px;
  margin-bottom: 6px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.faceted-card .faceted-title {
  font-size: 12px;
  color: #e1e4ea;
  line-height: 1.2;
}

/* Desktop : cartes modèles en mode "texte centré" */
@media (min-width: 901px) {
  #facetedPopup.popup-models .suggestion-card {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 72px;           /* ajuste si tu veux */
    padding: 10px;
  }

  #facetedPopup.popup-models .suggestion-thumb {
    display: none !important;
  }

  #facetedPopup.popup-models .suggestion-title {
    text-align: center;
    margin: 0 !important;
    font-size: 13px;
    line-height: 1.2;
  }

  #facetedPopup.popup-models .suggestion-sub {
    display: none !important;
  }
}

/* ===== Mobile search block ===== */
/* Par défaut : desktop visible */
.search-desktop { display: block; }
.search-mobile  { display: none; }

/* Mobile */
@media (max-width: 900px) {
  .search-desktop { display: none; }
  .search-mobile  { display: block; }
}



.mobile-fake-input {
  height: 54px;
  border-radius: 999px;
  width: 100%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.10);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  color: #eaeef6;
}

.mobile-fake-placeholder {
  color: rgba(255,255,255,0.75);
  font-size: 14px;
}

.mobile-fake-icon {
  opacity: 0.9;
}

/*.mobile-cta {
  height: 54px;
  border-radius: 999px;
  width: 100%;
  background: linear-gradient(120deg, var(--accent), var(--accent-dark));
  color: #06080c;
  font-weight: 700;
  letter-spacing: .06em;
}*/

.mobile-cta {
  height: 58px;
  border-radius: 999px;
  border: none;
  width: 100%;

  background: linear-gradient(135deg, #3AAA35 0%, #2f8f2b 100%);
  color: #fff;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;

  font-weight: 700;
  font-size: 16px;
  letter-spacing: .02em;

  text-decoration: none;
  margin-bottom: 18px;

  box-shadow:
    0 10px 24px rgba(58,170,53,.35),
    inset 0 0 0 1px rgba(255,255,255,.12);

  transition: transform .12s ease, box-shadow .12s ease;
}

/* ===== Vehicle Modal ===== */
.vehicle-modal {
  position: fixed;
  inset: 0;
  background: #0a0c10;
  z-index: 9999;
  display: none;
}

.vehicle-modal.is-open { display: block; }

.vehicle-modal-top {
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  gap: 10px;
  padding: 14px 14px 8px;
}

.vehicle-modal-back,
.vehicle-modal-close {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: #fff;
}

.vehicle-modal-search input {
  width: 100%;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: #fff;
  padding: 0 14px;
}

.vehicle-modal-head {
  padding: 10px 14px 0;
  text-align: center;
}

.vehicle-step {
  color: var(--accent);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.vehicle-step-title {
  font-family: "Big Shoulders Display", sans-serif;
  font-size: 26px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.vehicle-modal-body {
  padding: 14px;
  overflow: auto;
  height: calc(100vh - 120px);
}

/* Grid cards (brands/models) */
.vehicle-modal-grid .search-suggestions-inner{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

/* Cards (reuse your suggestion-card styles) */
.vehicle-modal-grid .suggestion-card{
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 10px;
}

/* Mobile: neutraliser le layout desktop de .search-section */
@media (max-width: 900px) {
  .search-section.search-mobile {
    position: relative !important;
    inset: auto !important;
    transform: none !important;

    width: 100%;
    max-width: 520px;
    margin: 18px auto 0;
    padding: 0 16px;

    z-index: 3; /* au-dessus du hero */
  }

  /* Si ton hero a un overlay qui passe devant */
  .hero,
  .header-hero,
  .hero-section {
    position: relative;
    z-index: 1;
  }

  /* Desktop caché */
  .search-section.search-desktop {
    display: none !important;
  }
}

/* ===== Mobile menu full screen (Shiftech-like) ===== */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: #0b0e14;
  padding: 14px;
  display: none;
  overflow: auto;
}

.mobile-menu {
  pointer-events: auto;
  z-index: 99999;
}

.mobile-menu * {
  pointer-events: auto;
}

.hero-overlay,
.header-overlay,
.overlay {
  pointer-events: none;
}


.mobile-menu.open { display: block; }

.mobile-menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.mobile-menu-logo img {
  height: 24px;
  width: auto;
  display: block;
}

.mobile-menu-close {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-size: 18px;
}

.mobile-menu-searchbar {
  height: 52px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.72);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  text-decoration: none;
  margin-bottom: 12px;
}

.mobile-menu-searchicon svg {
  width: 18px;
  height: 18px;
  stroke: #fff;
  stroke-width: 2;
  fill: none;
  opacity: .85;
}

.mobile-menu-call {
  height: 56px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 18px;
}

.mobile-menu-nav {
  border-top: 1px solid rgba(255,255,255,0.10);
}

.mobile-menu-item {
  width: 100%;
  background: transparent;
  border: none;
  color: #fff;
  padding: 18px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;

  font-family: "Big Shoulders Display", sans-serif;
  font-size: 20px;
  letter-spacing: .14em;
  text-transform: uppercase;

  border-bottom: 1px solid rgba(255,255,255,0.10);
}

.mobile-menu-item .chev {
  width: 10px;
  height: 10px;
  border-right: 2px solid rgba(255,255,255,0.7);
  border-bottom: 2px solid rgba(255,255,255,0.7);
  transform: rotate(45deg);
  margin-right: 8px;
  transition: transform .15s ease;
}

/* Submenu */
.mobile-submenu {
  display: none;
  padding: 8px 0 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}

.mobile-submenu a {
  display: block;
  padding: 10px 4px;
  text-decoration: none;
  color: rgba(255,255,255,0.78);
  font-size: 14px;
}

.mobile-submenu a:active {
  color: #fff;
}

/* Expanded state */
.mobile-menu-item.is-open .chev {
  transform: rotate(-135deg);
}

.mobile-menu-item.is-open + .mobile-submenu {
  display: block;
}

/* ===== Bouton Appeler GreenMotorsport ===== */
.mobile-menu-call.gm-call {
  height: 58px;
  border-radius: 999px;
  border: none;

  background: linear-gradient(135deg, #3AAA35 0%, #2f8f2b 100%);
  color: #fff;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;

  font-weight: 700;
  font-size: 16px;
  letter-spacing: .02em;

  text-decoration: none;
  margin-bottom: 18px;

  box-shadow:
    0 10px 24px rgba(58,170,53,.35),
    inset 0 0 0 1px rgba(255,255,255,.12);

  transition: transform .12s ease, box-shadow .12s ease;
}

.mobile-menu-call.gm-call:active {
  transform: scale(.98);
  box-shadow:
    0 6px 16px rgba(58,170,53,.35),
    inset 0 0 0 1px rgba(255,255,255,.16);
}

/* Icône téléphone */
.gm-call-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
}

.icon-search {
  width: 18px;
  height: 18px;
  stroke: #ffffff;
  stroke-width: 2;
  fill: none;
  display: block;
}

:root{
  --gm-bg: #FFFFFF;
  --gm-card: #0d1016;
  --gm-card2: #0f131a;
  --gm-border: rgba(255,255,255,.08);
  --gm-text: rgba(255,255,255,.92);
  --gm-muted: rgba(255,255,255,.62);
  --gm-soft: rgba(255,255,255,.06);
  --gm-accent: #3AAA35;
  --gm-accent2: #2f8f2b;
}

/* Page wrapper */
.gm-engine-page{
  background: var(--gm-bg);
  color: var(--gm-text);
  min-height: 100vh;
  padding: 24px 18px 70px;
}

/* Breadcrumb */
.gm-breadcrumb{
  display:flex;
  justify-content:center;
  align-items:center;
  gap: 10px;
  margin: 10px 0 22px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 13px;
  color: rgba(255,255,255,.75);
}
.gm-breadcrumb .sep{ opacity:.35; }
.gm-breadcrumb .accent{ color: var(--gm-accent); }

/* Grid */
.gm-engine-grid{
  max-width: 1200px;
  margin: 0 auto;
  display:grid;
  grid-template-columns: 340px 1fr;
  gap: 18px;
  align-items:start;
}

/* Card base */
.gm-card-reprog{
  background: linear-gradient(180deg, var(--gm-card2), var(--gm-card));
  border: 1px solid var(--gm-border);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}

/* Vehicle card */
.gm-vehicle-card{
  padding: 22px;
  text-align:center;
}
.gm-vehicle-logo{
  width: 110px;
  height: 110px;
  margin: 4px auto 14px;
  border-radius: 18px;
  background: rgba(255,255,255);
  border: 1px solid var(--gm-border);
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}
.gm-vehicle-logo img{
  width: 82px;
  height: 82px;
  object-fit: contain;
}
.gm-vehicle-title{
  font-size: 26px;
  font-weight: 800;
  margin-top: 6px;
}
.gm-vehicle-year{
  font-size: 18px;
  color: rgba(255,255,255,.72);
  margin-top: 6px;
}
.gm-vehicle-sub{
  font-size: 14px;
  color: rgba(255,255,255,.45);
  margin-top: 10px;
}

/* Results card */
.gm-results-card{
  padding: 18px;
}
.gm-results-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.gm-results-head h2{
  margin:0;
  font-size: 20px;
  font-weight: 800;
}
.gm-back{
  color: rgba(255,255,255,.85);
  text-decoration:none;
  font-weight: 700;
}
.gm-back:hover{ color:#fff; }

/* Tabs */
.gm-tabs{
  display:flex;
  gap: 10px;
  padding: 10px 0 14px;
  border-bottom: 1px solid var(--gm-border);
  margin-bottom: 16px;
}
.gm-tab{
  border: 1px solid transparent;
  background: transparent;
  color: rgba(255,255,255,.70);
  font-weight: 800;
  padding: 10px 14px;
  border-radius: 10px;
  cursor:pointer;
}
.gm-tab.is-active{
  background: rgba(58,170,53,.18);
  color: var(--gm-accent);
  border-color: rgba(58,170,53,.25);
}

/* Table */
.gm-table{
  background: rgba(255,255,255,.03);
  border: 1px solid var(--gm-border);
  border-radius: 14px;
  overflow:hidden;
}

.gm-table-head{
  display:grid;
  grid-template-columns: 1fr 1fr 1fr;
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.75);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .10em;
  font-size: 12px;
  padding: 14px 16px;
}
.gm-table-row{
  display:grid;
  grid-template-columns: 1fr 1fr 1fr;
  padding: 16px;
  border-top: 1px solid rgba(255,255,255,.06);
  font-weight: 700;
}
.gm-table-row .label{
  color: rgba(255,255,255,.85);
}
.gm-table-row .pos{
  color: var(--gm-accent);
}
.gm-table-row .accent{
  color: var(--gm-accent);
  font-weight: 900;
}

/* Panels (tab content) */
.gm-panel{ display:none; }
.gm-panel.is-active{ display:block; }

.gm-gain-row{
  background: rgba(255,255,255,.02);
}
.gm-stage-row{
  background: rgba(58,170,53,.08);
}

.gm-price{
  padding: 12px 16px 16px;
  color: rgba(255,255,255,.70);
  border-top: 1px solid rgba(255,255,255,.06);
}
.gm-price b{ color:#fff; }

/* Blocks */
.gm-block{
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.gm-block h3{
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 800;
}

/* Chips */
.gm-chips{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
}
.gm-chip{
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.78);
  font-weight: 700;
  font-size: 13px;
}

/* Responsive */
@media (max-width: 980px){
  .gm-engine-grid{
    grid-template-columns: 1fr;
  }
  .gm-breadcrumb{
    font-size: 12px;
    gap: 8px;
    flex-wrap:wrap;
  }
}

.gm-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-size: 13px;
  cursor: help;
}

.gm-chip-icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
  flex-shrink: 0;
}

.gm-chip-label {
  line-height: 1.2;
}

.gm-tab{
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.gm-tab img,
.gm-tab .gm-tab-ico {
  display: none;
  width: 16px;
  height: 16px;
  object-fit: contain;
  flex-shrink: 0;
}


.gm-engine-grid,
.gm-card,
.gm-results-card,
.gm-vehicle-card {
  min-width: 0; /* important pour éviter le dépassement en grid/flex */
}

@media (max-width: 980px){
  .gm-engine-grid{
    grid-template-columns: 1fr;
    width: 100%;
  }
}

.gm-tabs{
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.gm-tabs::-webkit-scrollbar{ display:none; }

.gm-tab{
  white-space: nowrap;
  flex: 0 0 auto;
}

/* ===== PAGE E85 ===== */
.gm-container{max-width:1200px;margin:0 auto;padding:24px 16px;}
.gm-page{background:#0b0f14;color:#fff;}

.gm-e85-hero{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:20px;
  align-items:stretch;
  margin: 18px 0 18px;
}
@media(max-width: 980px){
  .gm-e85-hero{grid-template-columns:1fr;}
}

.gm-kicker{
  color:#3AAA35;
  letter-spacing:.18em;
  text-transform:uppercase;
  font-weight:700;
  font-size:12px;
  margin-bottom:10px;
}

.gm-title{font-size:48px;line-height:1.05;margin:0 0 10px;}
@media(max-width: 600px){ .gm-title{font-size:36px;} }

.gm-subtitle{opacity:.8;max-width:60ch;margin:0 0 16px;}

.gm-card{
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 18px;
  box-shadow: 0 18px 60px rgba(0,0,0,.35);
}

.gm-card-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:12px;
  padding:18px 18px 0;
}
.gm-card-head h2{margin:0;font-size:22px;}
.gm-muted{opacity:.6;font-size:13px;}

.gm-e85{
	padding-top: 60px;
}

.gm-e85-form{padding-bottom:16px;}
.gm-e85-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:12px;
  padding:14px 18px 10px;
}
@media(max-width: 980px){ .gm-e85-grid{grid-template-columns:1fr 1fr;} }
@media(max-width: 520px){ .gm-e85-grid{grid-template-columns:1fr;} }

.gm-field label{display:block;font-size:13px;opacity:.8;margin:0 0 8px;}
.gm-input{
  width:100%;
  height:46px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.25);
  color:#fff;
  padding:0 14px;
  outline:none;
}
.gm-input:focus{border-color: rgba(58,170,53,.55); box-shadow:0 0 0 3px rgba(58,170,53,.12);}

.gm-inline{display:flex;align-items:center;gap:10px;}
.gm-suffix{opacity:.7;font-weight:700;}

.gm-e85-info{
  padding: 0 18px 14px;
  border-top: 1px solid rgba(255,255,255,.06);
  margin-top: 6px;
  padding-top: 12px;
  opacity:.85;
}

.gm-e85-highlight{
  margin-top: 10px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(58,170,53,.18);
  background: linear-gradient(180deg, rgba(58,170,53,.12), rgba(0,0,0,.18));
  max-width: 520px;
}
.gm-e85-highlight-label{opacity:.75;font-size:13px;margin-bottom:8px;}
.gm-e85-highlight-row{display:flex;align-items:center;gap:14px;}
.gm-input--compact{height:40px;border-radius:10px;}
.gm-e85-highlight-value{
  font-size:34px;font-weight:800;letter-spacing:.02em;
  display:flex;align-items:baseline;gap:6px;
}
.gm-e85-highlight-value small{font-size:16px;opacity:.75;}
.gm-e85-highlight-note{margin-top:6px;opacity:.7;font-size:13px;}

.gm-e85-visual-card{padding:18px;}
.gm-e85-visual-caption{opacity:.65;font-size:12px;margin-top:10px;}

.gm-pump{position:relative; width:100%; max-width:320px; height:260px; margin:0 auto;}
.gm-pump-top{
  position:absolute; inset:0 0 auto 0; height:30px;
  border-radius:16px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
}
.gm-pump-screen{
  position:absolute; left:20px; right:80px; top:50px; height:120px;
  border-radius:16px;
  background: rgba(0,0,0,.30);
  border:1px solid rgba(58,170,53,.25);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
  padding:14px;
}
.gm-pump-screen-title{opacity:.75;font-size:13px;margin-bottom:6px;}
.gm-pump-screen-value{
  font-size:40px;font-weight:900;color:#3AAA35;
  display:flex;align-items:baseline;gap:6px;
}
.gm-pump-screen-value small{font-size:16px;opacity:.7;color:#cfe9cf;}
.gm-pump-nozzle{
  position:absolute; right:10px; top:60px; width:56px; height:56px;
  border-radius:14px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
}
.gm-pump-hose{
  position:absolute; right:38px; top:116px; width:2px; height:120px;
  background: rgba(255,255,255,.10);
  transform: rotate(18deg);
  transform-origin: top;
}

.gm-e85-results{padding: 0 0 12px;}
.gm-e85-table{padding: 14px 18px 16px;}
.gm-e85-thead{
  display:grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap:0;
  background: rgba(58,170,53,.18);
  border:1px solid rgba(58,170,53,.25);
  border-radius: 14px;
  overflow:hidden;
  font-weight:800;
  letter-spacing:.06em;
}
.gm-e85-thead > div{padding:14px 12px;text-align:center;}
.gm-e85-tbody{margin-top:10px;border-radius:14px;overflow:hidden;border:1px solid rgba(255,255,255,.07);}
.gm-e85-row{
  display:grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  background: rgba(255,255,255,.02);
}
.gm-e85-row:nth-child(even){background: rgba(255,255,255,.035);}
.gm-e85-row > div{padding:14px 12px;text-align:center;border-top:1px solid rgba(255,255,255,.06);}
.gm-e85-row:first-child > div{border-top:none;}
.gm-e85-save{color:#3AAA35;font-weight:800;}

.gm-e85-roi{padding:0 0 16px;}
.gm-e85-roi-body{padding:14px 18px 0;}
.gm-e85-roi-stats{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
  margin-top:12px;
}
@media(max-width: 980px){
  .gm-e85-roi-stats{grid-template-columns:1fr;}
}
.gm-roi-stat{
  border-radius:16px;
  border:1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.22);
  padding:14px;
}
.gm-roi-label{opacity:.75;font-size:13px;margin-bottom:6px;}
.gm-roi-value{font-size:28px;font-weight:900;letter-spacing:.02em;}
.gm-roi-accent{
  border-color: rgba(58,170,53,.22);
  background: linear-gradient(180deg, rgba(58,170,53,.10), rgba(0,0,0,.20));
}
.gm-e85-roi-note{
  margin: 12px 0 16px;
  opacity:.7;
  font-size:13px;
  border-top: 1px solid rgba(255,255,255,.06);
  padding-top: 12px;
}

/* ===== HERO PAGE E85 ===== */
.gm-hero{
  position: relative;
  min-height: 52vh;
  display:flex;
  align-items:flex-end;
  background: #0b0f14;
  overflow:hidden;
  margin-top: 60px;
  z-index: 1;
}



.gm-hero--e85{
  background:
    radial-gradient(900px 400px at 20% 20%, rgba(58,170,53,.14), transparent 55%),
    linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.78)),
    url('assets/img/hero-e85.jpg') center/cover no-repeat;
}
.gm-hero-overlay{
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.78));
  z-index: -1;
  pointer-events: none;
}
}
.gm-hero-inner{
  position:relative;
  padding: 42px 16px 34px;
}
.gm-hero-kicker{
  color:#3AAA35;
  letter-spacing:.22em;
  text-transform:uppercase;
  font-weight:800;
  font-size:12px;
  margin-bottom:10px;
}
.gm-hero-title{
  font-size:56px;
  line-height:1.02;
  margin:0 0 12px;
}
.gm-hero-subtitle{
  opacity:.82;
  margin:0;
  max-width: 70ch;
  font-size:18px;
}
@media(max-width: 700px){
  .gm-hero{min-height: 46vh;}
  .gm-hero-title{font-size:40px;}
  .gm-hero-subtitle{font-size:16px;}
}

/* ===== MINI BAND ===== */
.gm-e85band{margin-top:-18px; position:relative; z-index:5;}
.gm-e85band-card{
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  box-shadow: 0 18px 60px rgba(0,0,0,.35);
  padding: 16px;
  display:flex;
  gap:14px;
  align-items:stretch;
}
.gm-e85band-left{flex: 1.1;}
.gm-e85band-kicker{
  color:#3AAA35;
  letter-spacing:.18em;
  text-transform:uppercase;
  font-weight:800;
  font-size:11px;
  margin-bottom:8px;
}
.gm-e85band-title{font-size:22px;font-weight:900;margin:0 0 6px;}
.gm-e85band-sub{opacity:.75;font-size:13px;max-width:60ch;}

.gm-e85band-controls{
  flex: 1;
  display:grid;
  grid-template-columns: 1fr 1fr 1.15fr;
  gap:10px;
  align-items:end;
}
.gm-e85band-label{opacity:.7;font-size:12px;margin:0 0 6px;}
.gm-e85band-result{
  border-radius:16px;
  border:1px solid rgba(58,170,53,.22);
  background: linear-gradient(180deg, rgba(58,170,53,.10), rgba(0,0,0,.18));
  padding:12px 12px 10px;
}
.gm-e85band-result-label{opacity:.8;font-size:12px;margin-bottom:6px;}
.gm-e85band-result-value{
  font-size:28px;
  font-weight:900;
  color:#3AAA35;
  display:flex;
  align-items:baseline;
  gap:6px;
}
.gm-e85band-result-value small{font-size:14px;opacity:.75;color:#cfe9cf;}
.gm-e85band-result-note{margin-top:6px;opacity:.7;font-size:12px;color:#fff;}

@media(max-width: 900px){
  .gm-e85band-card{flex-direction:column;}
  .gm-e85band-controls{grid-template-columns: 1fr 1fr; }
  .gm-e85band-result{grid-column: 1 / -1;}
}
@media(max-width: 520px){
  .gm-e85band-controls{grid-template-columns: 1fr;}
}

/* ===== ARTICLE SECTIONS (quinconce) ===== */
.gm-article{padding: 22px 16px 50px;}
.gm-split{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 18px;
  align-items:center;
  padding: 22px 0;
}
.gm-split--reverse{
  grid-template-columns: .95fr 1.05fr;
}
.gm-split--reverse .gm-split-text{order:2;}
.gm-split--reverse .gm-split-media{order:1;}

@media(max-width: 980px){
  .gm-split, .gm-split--reverse{grid-template-columns:1fr;}
  .gm-split--reverse .gm-split-text{order:1;}
  .gm-split--reverse .gm-split-media{order:2;}
}

.gm-h2{font-size:34px;margin:8px 0 10px;line-height:1.1;}
.gm-p{opacity:.82;line-height:1.65;margin:0 0 10px;max-width:70ch;}

.gm-media-card{
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 18px;
  overflow:hidden;
  box-shadow: 0 18px 60px rgba(0,0,0,.35);
}
.gm-media{
  width:100%;
  aspect-ratio: 16 / 10;
  background: center/cover no-repeat;
  filter: saturate(1.05) contrast(1.02);
}

/* ===== REVEAL (si pas déjà dans ton CSS) ===== */
.reveal{
  opacity:0;
  transform: translateY(16px);
  transition: opacity .55s ease, transform .55s ease;
  will-change: transform, opacity;
}
.reveal.is-visible{
  opacity:1;
  transform: translateY(0);
}
.reveal-left{transform: translateX(-42px); }
.reveal-right{transform: translateX(42px); }
.reveal-left.is-visible,
.reveal-right.is-visible{transform: translateX(0); }

.gm-e85band-cta{
  margin-top:10px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;

  padding:8px 12px;
  border-radius:10px;

  background: linear-gradient(180deg, #3AAA35, #2f8f2b);
  color:#0b0f14;
  font-weight:800;
  font-size:12px;
  text-decoration:none;

  transition: transform .15s ease, box-shadow .15s ease;
  box-shadow: 0 6px 18px rgba(58,170,53,.25);
}

.gm-e85band-cta:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(58,170,53,.35);
}

/* ===== HERO MULTIMEDIA ===== */
.gm-hero--mm{
  background:
    radial-gradient(900px 400px at 20% 22%, rgba(58,170,53,.14), transparent 55%),
    linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.80)),
    url('assets/img/hero-mm.jpg') center/cover no-repeat;
}

/* Boutons hero */
.gm-hero-actions{ margin-top: 16px; display:flex; gap:10px; flex-wrap:wrap; }

.gm-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding: 10px 14px;
  border-radius: 12px;
  text-decoration:none;
  font-weight:900;
  letter-spacing:.02em;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color:#fff;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  box-shadow: 0 16px 50px rgba(0,0,0,.35);
}

.gm-btn:hover{ transform: translateY(-1px); border-color: rgba(255,255,255,.18); }

.gm-btn-primary{
  background: linear-gradient(180deg, #3AAA35, #2f8f2b);
  border-color: rgba(58,170,53,.35);
  color:#0b0f14;
  box-shadow: 0 18px 55px rgba(58,170,53,.22);
}

.gm-btn-primary:hover{
  box-shadow: 0 22px 70px rgba(58,170,53,.30);
}
/* ================= FOOTER ================= */

.gm-footer{
  margin-top: 120px;
  background:
    radial-gradient(600px 300px at 20% 0%, rgba(58,170,53,.10), transparent 60%),
    #0b0f14;
  border-top: 1px solid rgba(255,255,255,.06);
  color: #cfd3da;
}

.gm-footer-inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px 40px;
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 40px;
}

/* Colonnes */
.gm-footer-col h4{
  color:#fff;
  margin-bottom:14px;
  font-weight:900;
  letter-spacing:.03em;
}

.gm-footer-col ul{
  list-style:none;
  padding:0;
  margin:0;
}

.gm-footer-col li{
  margin-bottom:8px;
  font-size:14px;
}

.gm-footer-col a{
  color:#cfd3da;
  text-decoration:none;
  transition:.15s;
}
.gm-footer-col a:hover{
  color:#3AAA35;
}

/* Logo */
.gm-footer-logo img{
  height:32px;
  margin-bottom:12px;
}

.gm-footer-desc{
  font-size:14px;
  line-height:1.6;
  color:#aeb4bf;
}

/* Contact */
.gm-footer-contact li{
  display:flex;
  align-items:center;
  gap:6px;
}

/* Socials */
.gm-footer-socials{
  margin-top:14px;
  display:flex;
  gap:10px;
}
.gm-footer-socials a{
  width:32px;
  height:32px;
  border-radius:8px;
  background:rgba(255,255,255,.05);
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
  font-size:12px;
  transition:.15s;
}
.gm-footer-socials a:hover{
  background:#3AAA35;
  color:#0b0f14;
}

/* Bas footer */
.gm-footer-bottom{
  border-top:1px solid rgba(255,255,255,.06);
  padding:16px 20px;
  font-size:12px;
  color:#9aa1ad;
  display:flex;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:10px;
  max-width:1200px;
  margin:0 auto;
}
.gm-footer-bottom a{
  color:#9aa1ad;
}
.gm-footer-bottom a:hover{
  color:#3AAA35;
}

/* ===== Responsive ===== */
@media(max-width:900px){
  .gm-footer-inner{
    grid-template-columns: 1fr 1fr;
  }
}

@media(max-width:520px){
  .gm-footer-inner{
    grid-template-columns: 1fr;
    text-align:center;
  }

  .gm-footer-socials{
    justify-content:center;
  }

  .gm-footer-bottom{
    flex-direction:column;
    align-items:center;
    text-align:center;
  }
}

/* ===== HERO Antipollution ===== */
.gm-hero--ap{
  background:
    radial-gradient(900px 420px at 18% 22%, rgba(58,170,53,.14), transparent 58%),
    linear-gradient(180deg, rgba(0,0,0,.22), rgba(0,0,0,.82)),
    url('assets/img/hero-antipollution.jpg') center/cover no-repeat;
}

/* petit lien dans le texte */
.gm-link{
  color:#3AAA35;
  text-decoration:none;
  font-weight:800;
}
.gm-link:hover{ text-decoration: underline; }

/* (au cas où) assure-toi que l’overlay ne bloque pas les clics menu */
.gm-hero-overlay{ pointer-events:none; }

/* ===== HERO Reprogrammation ===== */
.gm-hero--reprog{
  background:
    radial-gradient(900px 420px at 18% 24%, rgba(58,170,53,.14), transparent 58%),
    linear-gradient(180deg, rgba(0,0,0,.22), rgba(0,0,0,.84)),
    url('assets/img/hero-reprog.jpg') center/cover no-repeat;
}

/* on laisse de la place au moteur dans le hero */
.gm-hero-inner--reprog{
  padding-bottom: 26px;
}

/* Sur mobile, le moteur doit être bien visible */
@media(max-width: 700px){
  .gm-hero-inner--reprog{
    padding-bottom: 18px;
  }
  .gm-article--reprog{ padding-top: 10px; }
}

/* ===== HERO Codage ===== */
.gm-hero--coding{
  background:
    radial-gradient(900px 420px at 18% 24%, rgba(58,170,53,.14), transparent 58%),
    linear-gradient(180deg, rgba(0,0,0,.22), rgba(0,0,0,.84)),
    url('assets/img/hero-coding.jpg') center/cover no-repeat;
}

.gm-hero-inner--coding{ padding-bottom: 26px; }

/* Encart hero */
.gm-hero-box{
  margin-top: 18px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  box-shadow: 0 18px 60px rgba(0,0,0,.35);
  padding: 16px;
}

.gm-coding-search{
  display:flex;
  gap:14px;
  align-items:stretch;
}
.gm-coding-search-left{ flex: 1.1; }
.gm-coding-kicker{
  color:#3AAA35;
  letter-spacing:.18em;
  text-transform:uppercase;
  font-weight:800;
  font-size:11px;
  margin-bottom:8px;
}
.gm-coding-title{ font-size:22px; font-weight:900; margin:0 0 6px; }
.gm-coding-sub{ opacity:.75; font-size:13px; max-width:60ch; }

.gm-coding-form{
  flex: 1;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:10px;
  align-items:end;
}

.gm-coding-label{ opacity:.7; font-size:12px; margin:0 0 6px; }

.gm-coding-select{
  width:100%;
  height:44px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.25);
  color:#fff;
  padding:0 12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  font-weight:900;
  cursor:pointer;
}
.gm-coding-select:disabled{
  opacity:.45;
  cursor:not-allowed;
}
.gm-coding-caret{opacity:.75;font-weight:900;}

/* Popup simple */
.gm-coding-popup{
  display:none;
  margin-top: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.35);
  overflow:hidden;
}
.gm-coding-popup.is-open{ display:block; }

.gm-coding-popup-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 12px 12px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.gm-coding-popup-title{font-weight:900;letter-spacing:.02em;}
.gm-coding-popup-close{
  width:34px;height:34px;border-radius:10px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
  color:#fff;
  cursor:pointer;
}

.gm-coding-popup-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:10px;
  padding:12px;
}
@media(max-width: 900px){
  .gm-coding-search{flex-direction:column;}
  .gm-coding-form{grid-template-columns:1fr;}
  .gm-coding-popup-grid{grid-template-columns: repeat(2,1fr);}
}

.gm-coding-card{
  border-radius:14px;
  border:1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  padding:12px;
  text-align:center;
  font-weight:900;
  cursor:pointer;
}
.gm-coding-card:hover{
  border-color: rgba(58,170,53,.22);
}

/* évite que l’overlay bloque les clics */
.gm-hero-overlay{ pointer-events:none; }

.gm-coding-popup-grid{
  display:grid;
  grid-template-columns: repeat(6, minmax(90px, 1fr));
  gap:12px;
  padding:12px;
}

@media(max-width: 980px){
  .gm-coding-popup-grid{ grid-template-columns: repeat(4, minmax(90px, 1fr)); }
}
@media(max-width: 560px){
  .gm-coding-popup-grid{ grid-template-columns: repeat(3, minmax(90px, 1fr)); }
}

/* Carte */
.gm-coding-card{
  border-radius:16px;
  border:1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  padding:10px;
  cursor:pointer;
  display:flex;
  flex-direction:column;
  gap:10px;
  min-height: 110px;
}

.gm-coding-card:hover{ border-color: rgba(58,170,53,.22); }

.gm-coding-thumb{
  width:100%;
  aspect-ratio: 1 / 1;
  border-radius:12px;
  background: rgba(255,255,255);
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}

.gm-coding-thumb img{
  width: 78%;
  height: 78%;
  object-fit: contain;
  display:block;
}

.gm-coding-name{
  font-weight:900;
  font-size:13px;
  line-height:1.1;
  color:#fff;
  text-align:left;
  word-break: break-word;
}

/* ===== Page Codages ===== */
.gm-codes-hero{
  position:relative;
  padding: 90px 0 28px;
  overflow:hidden;
}
.gm-codes-hero-bg{
  position:absolute; inset:0;
  background:
    radial-gradient(900px 420px at 18% 20%, rgba(58,170,53,.14), transparent 60%),
    linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.92)),
    url('assets/img/hero-coding.jpg') center/cover no-repeat;
  transform: scale(1.02);
}
.gm-codes-hero-inner{ position:relative; z-index:1; }

.gm-codes-kicker{
  color:#3AAA35;
  letter-spacing:.18em;
  text-transform:uppercase;
  font-weight:900;
  font-size:12px;
  margin-bottom:10px;
}
.gm-codes-title{
  margin:0 0 10px;
  font-weight:900;
  font-size: clamp(28px, 4vw, 44px);
  line-height:1.05;
}
.gm-codes-title span{ color:#fff; }
.gm-codes-sub{
  margin:0;
  opacity:.78;
  max-width: 75ch;
}

.gm-codes-wrap{
  padding: 18px 0 60px;
  display:grid;
  gap: 18px;
}

.gm-codes-car{
  display:grid;
  grid-template-columns: 340px 1fr;
  gap: 16px;
  align-items: stretch;
  padding: 16px;
}

.gm-codes-car-media{
  border-radius: 16px;
  overflow:hidden;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  min-height: 220px;
}
.gm-codes-car-media img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}
.gm-codes-car-media-fallback{
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  opacity:.6;
}

.gm-codes-car-info{
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap:12px;
}
.gm-codes-car-name{
  font-size: 24px;
  font-weight: 900;
}
.gm-codes-car-detail{
  opacity:.75;
  margin-top:-6px;
}

.gm-codes-actions{
  display:flex;
  gap:10px;
  flex-wrap: wrap;
}

.gm-btn{
  height:44px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
  color:#fff;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
  text-decoration:none;
}
.gm-btn-primary{
  border-color: rgba(58,170,53,.25);
  background: linear-gradient(180deg, rgba(58,170,53,.22), rgba(58,170,53,.08));
}
.gm-btn-ghost{
  background: rgba(0,0,0,.25);
}

.gm-codes-list{ padding: 16px; }
.gm-codes-grid{
  margin-top: 12px;
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 12px;
}

.gm-code-item{
  text-align:left;
  border-radius:16px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  color:#fff;
  cursor:pointer;
}
.gm-code-item:hover{
  border-color: rgba(58,170,53,.22);
}
.gm-code-item-title{ font-weight:900; margin-bottom:6px; }
.gm-code-item-desc{ opacity:.75; font-size: 13px; line-height:1.35; }

.gm-muted{ opacity:.7; }

@media(max-width: 900px){
  .gm-codes-car{ grid-template-columns: 1fr; }
  .gm-codes-grid{ grid-template-columns: 1fr; }
}

.gm-codes-grid--dynamic{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 12px;
  margin-top: 12px;
}

.gm-code-card{
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  overflow:hidden;
  display:flex;
  flex-direction:column;
  /*min-height: 140px;*/
}

.gm-code-card-thumb{
  height: 140px;
  background: rgba(0,0,0,.25);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.gm-code-card-thumb img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}

.gm-code-card-body{
  padding: 12px;
  display:flex;
  flex-direction:column;
  gap: 8px;
}

.gm-code-card-title{
  font-weight: 900;
  line-height: 1.15;
}

.gm-code-card-desc{
  opacity: .78;
  font-size: 13px;
  line-height: 1.35;
}

@media(max-width: 900px){
  .gm-codes-grid--dynamic{ grid-template-columns: 1fr; }
  .gm-code-card-thumb{ height: 160px; }
}
