/* ==========================================================================
   MECADIAG AUTO - SHIFTECH & MOTORSPORT ARCHITECTURE
   Couleurs : NOIR (#050608), ARGENT (#94a3b8, #cbd5e1), BLANC (#ffffff), ROUGE (#e11d48)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,800;1,900&family=Rajdhani:wght@500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --bg-pitch: #000000;
  --bg-primary: #050608;
  --bg-surface: #0a0c10;
  --bg-card: #0e1117;
  --bg-card-hover: #141822;
  --bg-elevated: #161b26;

  --border-light: rgba(255, 255, 255, 0.08);
  --border-silver: rgba(255, 255, 255, 0.16);
  --border-silver-strong: rgba(255, 255, 255, 0.28);

  --text-white: #ffffff;
  --text-silver: #94a3b8;
  --text-silver-light: #cbd5e1;
  --text-dim: #64748b;

  --red-racing: #e11d48;
  --red-racing-hover: #f43f5e;
  --red-racing-glow: rgba(225, 29, 72, 0.4);

  --font-heading: 'Montserrat', sans-serif;
  --font-tech: 'Rajdhani', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --radius-full: 9999px;

  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: #050608;
  color: var(--text-white);
}

body {
  font-family: var(--font-body);
  background-color: transparent !important;
  color: var(--text-white);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

main, header, footer {
  position: relative;
  z-index: 2;
}

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

/* ==========================================================================
   TOP BAR (SHIFTECH STYLE - FINE HORIZONTALE)
   ========================================================================== */

.topbar-shiftech {
  background: #000000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 7px 24px;
  font-size: 0.82rem;
  font-family: var(--font-tech);
  font-weight: 700;
  letter-spacing: 0.8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-silver);
  position: relative;
  z-index: 1002;
}

.topbar-shiftech .location-tag {
  color: var(--text-white);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.topbar-shiftech .location-tag .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red-racing);
  box-shadow: 0 0 8px var(--red-racing);
  flex-shrink: 0;
}

.location-full {
  display: inline;
}

.location-short {
  display: none;
}

.topbar-shiftech .contact-fast {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}

.topbar-phone-highlight {
  color: #ffffff !important;
  font-family: var(--font-tech);
  font-weight: 800;
  font-size: 0.84rem;
  letter-spacing: 1.2px;
  background: rgba(225, 29, 72, 0.16);
  border: 1px solid var(--red-racing);
  padding: 4px 14px;
  border-radius: var(--radius-sm);
  white-space: nowrap !important;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
}

.topbar-phone-highlight:hover {
  background: var(--red-racing);
  color: #ffffff !important;
  box-shadow: 0 0 14px var(--red-racing-glow);
  transform: translateY(-1px);
}

/* ==========================================================================
   NAVIGATION BAR (SHIFTECH PURE BLACK & SILVER)
   ========================================================================== */

.main-nav {
  position: sticky;
  top: 0;
  width: 100%;
  background: rgba(5, 6, 8, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-silver);
  z-index: 999;
}

.nav-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand img {
  height: 62px;
  width: auto;
  display: block;
  border-radius: 6px;
}

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

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--text-silver-light);
  text-transform: uppercase;
  transition: var(--transition-fast);
  position: relative;
  padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-white);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--red-racing);
  transition: var(--transition-fast);
  box-shadow: 0 0 10px var(--red-racing);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  white-space: nowrap !important;
}

.nav-mobile-action-call {
  display: none !important;
}

.btn-phone-shiftech,
.btn-phone-shiftech-shiftech {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid var(--border-silver);
  color: var(--text-white);
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-family: var(--font-tech);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 1px;
  transition: var(--transition-fast);
  white-space: nowrap !important;
  text-decoration: none;
}

.btn-phone-shiftech:hover,
.btn-phone-shiftech-shiftech:hover {
  border-color: var(--red-racing);
  color: #fff;
  background: rgba(225, 29, 72, 0.1);
}

.btn-devis-red {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--red-racing);
  color: #fff;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition-fast);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px var(--red-racing-glow);
}

.btn-devis-red:hover {
  background: var(--red-racing-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(225, 29, 72, 0.6);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
}

/* ==========================================================================
   SHIFTECH CINEMATIC HERO WITH VEHICLE SEARCH WIDGET
   ========================================================================== */

.hero-shiftech {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding: 80px 24px 100px;
  background: 
    linear-gradient(180deg, rgba(5,6,8,0.7) 0%, rgba(5,6,8,0.92) 80%, #050608 100%),
    linear-gradient(90deg, rgba(5,6,8,0.96) 0%, rgba(5,6,8,0.7) 45%, rgba(5,6,8,0.88) 100%),
    url('https://images.unsplash.com/photo-1617814076367-b759c7d7e738?auto=format&fit=crop&w=1920&q=85') center/cover no-repeat;
  border-bottom: 1px solid var(--border-light);
}

.hero-container-shiftech {
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
}

.hero-shiftech-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #000000;
  border: 1px solid var(--border-silver);
  padding: 6px 16px;
  border-radius: var(--radius-sm);
  font-family: var(--font-tech);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 2px;
  color: var(--text-silver-light);
  margin-bottom: 22px;
}

.hero-shiftech-badge .red-line {
  width: 12px;
  height: 3px;
  background: var(--red-racing);
}

.hero-shiftech-title {
  font-family: var(--font-heading);
  font-size: 3.8rem;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.5px;
  text-transform: uppercase;
  margin-bottom: 22px;
  max-width: 950px;
}

.hero-shiftech-title .text-red {
  color: var(--red-racing);
}

.hero-shiftech-title .text-silver {
  color: #ffffff;
}

.hero-shiftech-sub {
  font-size: 1.18rem;
  color: #ffffff !important;
  max-width: 760px;
  line-height: 1.75;
  margin-bottom: 36px;
  background: rgba(5, 6, 8, 0.72);
  border-left: 3px solid var(--red-racing);
  padding: 16px 22px;
  border-radius: var(--radius-sm);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.95);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.hero-shiftech-sub strong {
  color: #ffffff !important;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: var(--red-racing);
  text-underline-offset: 3px;
}

/* Shiftech Floating Quick Selector Bar */
.shiftech-search-bar {
  background: rgba(10, 12, 16, 0.92);
  border: 1px solid var(--border-silver);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1.2fr auto;
  gap: 14px;
  align-items: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  max-width: 1200px;
}

.search-field {
  display: flex;
  flex-direction: column;
}

.search-field label {
  font-family: var(--font-tech);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.search-select {
  background: #050608;
  border: 1px solid var(--border-light);
  color: #fff;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.92rem;
  outline: none;
  transition: var(--transition-fast);
}

.search-select:focus {
  border-color: var(--red-racing);
}

/* ==========================================================================
   SHIFTECH MULTI-STEP VEHICLE CONFIGURATOR
   ========================================================================== */

.section-padding {
  padding: 90px 24px;
  max-width: 1440px;
  margin: 0 auto;
}

.section-header-shiftech {
  text-align: center;
  max-width: 850px;
  margin: 0 auto 50px;
}

.section-tag-red {
  display: inline-block;
  font-family: var(--font-tech);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--red-racing);
  margin-bottom: 12px;
}

.section-title-shiftech {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  color: #ffffff;
}

.section-desc-shiftech, .section-desc-shiftech-shiftech {
  font-size: 1.05rem;
  color: #f1f5f9;
  line-height: 1.7;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

/* Configurator Category Filter (Tous / Berlines & Sport / Utilitaires Pro) */
.cfg-category-filter {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.cfg-cat-btn {
  background: rgba(15, 18, 24, 0.85);
  border: 1px solid var(--border-silver);
  color: var(--text-silver);
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  font-family: var(--font-tech);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition-fast);
}

.cfg-cat-btn:hover, .cfg-cat-btn.active {
  background: var(--red-racing);
  border-color: var(--red-racing);
  color: #ffffff;
  box-shadow: 0 0 15px rgba(225, 29, 72, 0.4);
}

/* Brand Grid (Shiftech Style) */
.shiftech-brands-bar {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 24px;
}

.shiftech-brand-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 16px 12px;
  color: var(--text-silver-light);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  text-align: center;
  transition: var(--transition-fast);
}

.shiftech-brand-btn:hover, .shiftech-brand-btn.active {
  background: #000000;
  border-color: var(--red-racing);
  color: #ffffff;
  box-shadow: 0 0 15px rgba(225, 29, 72, 0.25);
}

/* Configurator Main Container */
.shiftech-config-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-silver);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9);
}

.cfg-top-controls {
  background: #000000;
  border-bottom: 1px solid var(--border-light);
  padding: 16px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.cfg-stage-selector {
  display: flex;
  gap: 8px;
}

.cfg-stage-tab {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  color: var(--text-silver);
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-family: var(--font-tech);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.cfg-stage-tab.active, .cfg-stage-tab:hover {
  background: var(--red-racing);
  border-color: var(--red-racing);
  color: #fff;
  box-shadow: 0 0 14px var(--red-racing-glow);
}

.cfg-content-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 36px;
  padding: 36px;
}

/* Vehicle Presentation Left */
.cfg-visual-card {
  display: flex;
  flex-direction: column;
}

.cfg-car-photo {
  position: relative;
  width: 100%;
  height: 230px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 18px;
  border: 1px solid var(--border-silver);
}

.cfg-car-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.cfg-car-photo:hover img {
  transform: scale(1.04);
}

.cfg-stage-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0, 0, 0, 0.9);
  border: 1px solid var(--red-racing);
  color: #fff;
  font-family: var(--font-tech);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
}

.cfg-model-name {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 4px;
}

.cfg-engine-name {
  color: var(--text-dim);
  font-size: 0.92rem;
  margin-bottom: 18px;
}

/* Specs Table (Shiftech Signature) */
.shiftech-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 22px;
}

.shiftech-table th {
  text-align: left;
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-silver);
  font-family: var(--font-tech);
}

.shiftech-table td {
  padding: 12px;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border-light);
}

.shiftech-table .td-label {
  color: var(--text-silver);
  font-weight: 600;
}

.shiftech-table .td-orig {
  color: #94a3b8;
  font-weight: 700;
  font-family: var(--font-tech);
  font-size: 1.1rem;
}

.shiftech-table .td-reprog {
  color: #ffffff;
  font-weight: 800;
  font-family: var(--font-tech);
  font-size: 1.2rem;
}

.shiftech-table .td-diff {
  color: var(--red-racing);
  font-weight: 900;
  font-family: var(--font-tech);
  font-size: 1.15rem;
}

.cfg-booking-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #000000;
  padding: 18px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-silver);
}

.cfg-price-val {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 900;
  color: #ffffff;
}

/* Dyno Graph Right */
.cfg-graph-wrapper {
  display: flex;
  flex-direction: column;
}

.graph-top-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.graph-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.graph-legend {
  display: flex;
  gap: 16px;
  font-family: var(--font-tech);
  font-size: 0.85rem;
  font-weight: 700;
}

.graph-legend .item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.graph-legend .dot-orig { width: 12px; height: 3px; background: #64748b; }
.graph-legend .dot-hp { width: 12px; height: 3px; background: var(--red-racing); }
.graph-legend .dot-nm { width: 12px; height: 3px; background: #ffffff; }

#dyno-chart-pro {
  width: 100%;
  height: 290px;
  background: #000000;
  border: 1px solid var(--border-silver);
  border-radius: var(--radius-sm);
  display: block;
}

/* Technical & Legal Disclaimer Callout */
.simulator-disclaimer-box {
  background: rgba(12, 14, 18, 0.95);
  border: 1px solid rgba(225, 29, 72, 0.4);
  border-left: 4px solid var(--red-racing);
  border-radius: var(--radius-sm);
  padding: 22px 28px;
  margin: 28px 24px 24px;
  color: var(--text-silver);
  font-size: 0.92rem;
  line-height: 1.65;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.disclaimer-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.disclaimer-header .disclaimer-icon {
  color: var(--red-racing);
  font-size: 1.25rem;
  display: inline-flex;
}

.disclaimer-intro {
  margin-bottom: 12px;
  color: var(--text-silver-light);
}

.disclaimer-intro strong {
  color: #ffffff;
}

.disclaimer-params-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 18px;
  margin: 14px 0 16px;
  padding: 14px 18px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
}

.disclaimer-param-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--text-silver);
}

.disclaimer-param-item .bullet-red {
  color: var(--red-racing);
  font-weight: 900;
  line-height: 1.3;
}

.disclaimer-param-item strong {
  color: #ffffff;
}

.disclaimer-commitment {
  padding-top: 10px;
  border-top: 1px solid var(--border-light);
  font-size: 0.85rem;
  color: var(--text-silver-light);
}

.disclaimer-commitment strong {
  color: #ffffff;
}

@media (max-width: 768px) {
  .disclaimer-params-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   SERVICES GRID (SHIFTECH / MOTORSPORT)
   ========================================================================== */

.services-grid-shiftech {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.service-card-shiftech {
  background: rgba(8, 10, 15, 0.96) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: var(--radius-md);
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.92);
}

.service-card-shiftech:hover {
  border-color: var(--red-racing) !important;
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(225, 29, 72, 0.25);
  background: rgba(12, 16, 24, 0.98) !important;
}

.service-num {
  font-family: var(--font-tech);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--red-racing);
  margin-bottom: 14px;
}

.service-title-shiftech {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: #fff;
}

.service-text-shiftech {
  font-size: 0.95rem;
  color: var(--text-silver);
  line-height: 1.7;
  margin-bottom: 22px;
  flex-grow: 1;
}

.service-price-shiftech {
  font-family: var(--font-tech);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

.service-link-shiftech {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-white);
  letter-spacing: 1px;
  transition: var(--transition-fast);
}

.service-link-shiftech:hover {
  color: var(--red-racing);
  gap: 12px;
}

/* ==========================================================================
   BANC D'ESSAI 4X4 FACILITY SECTION
   ========================================================================== */

.banc-facility-banner {
  background: 
    linear-gradient(90deg, rgba(0, 0, 0, 0.96) 0%, rgba(0, 0, 0, 0.8) 50%, rgba(0, 0, 0, 0.95) 100%),
    url('https://images.unsplash.com/photo-1503376780353-7e6692767b70?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
  border: 1px solid var(--border-silver);
  border-radius: var(--radius-md);
  padding: 60px 48px;
}

/* ==========================================================================
   OPTIONS & CODING GRID
   ========================================================================== */

.options-grid-shiftech {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.option-box {
  background: #000000;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 24px 20px;
  transition: var(--transition-fast);
}

.option-box:hover {
  border-color: var(--red-racing);
  transform: translateY(-3px);
}

.option-box h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  margin: 12px 0 8px;
}

.option-box p {
  font-size: 0.88rem;
  color: var(--text-silver);
  line-height: 1.6;
}

/* ==========================================================================
   E85 SIMULATOR & ZONE 100KM
   ========================================================================== */

.e85-calc-shiftech {
  background: var(--bg-surface);
  border: 1px solid var(--border-silver);
  border-radius: var(--radius-md);
  padding: 40px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.custom-slider-silver {
  width: 100%;
  height: 6px;
  background: #1f2937;
  border-radius: 3px;
  outline: none;
  -webkit-appearance: none;
}

.custom-slider-silver::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid var(--red-racing);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(225, 29, 72, 0.5);
}

.zone-container-shiftech {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  align-items: center;
}

/* Radar 100km */
.radar-shiftech-box {
  position: relative;
  background: #000000;
  border: 1px solid var(--border-silver);
  border-radius: var(--radius-md);
  padding: 30px;
  overflow: hidden;
}

.radar-circle-bg {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: 440px;
  margin: 0 auto;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.radar-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  pointer-events: none;
}

.ring-25 { width: 30%; height: 30%; }
.ring-50 { width: 55%; height: 55%; }
.ring-100 { width: 85%; height: 85%; border-color: rgba(225, 29, 72, 0.35); }

.radar-sweep {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 75%, rgba(225, 29, 72, 0.2) 100%);
  animation: radarRotate 6s linear infinite;
  pointer-events: none;
}

@keyframes radarRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.radar-hub-miramas {
  background: var(--red-racing);
  color: #fff;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 0.95rem;
  letter-spacing: 1.5px;
  box-shadow: 0 0 20px var(--red-racing-glow);
  z-index: 5;
}

.radar-city-pin {
  position: absolute;
  z-index: 4;
  background: rgba(14, 17, 23, 0.9);
  border: 1px solid var(--border-silver);
  color: #fff;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-family: var(--font-tech);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
}

.radar-city-pin:hover {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

.city-salon { top: 28%; right: 28%; }
.city-istres { bottom: 32%; left: 32%; }
.city-aix { top: 40%; right: 12%; }
.city-marseille { bottom: 15%; right: 20%; }
.city-arles { top: 48%; left: 16%; }
.city-avignon { top: 12%; left: 30%; }
.city-martigues { bottom: 22%; left: 45%; }
.city-nimes { top: 22%; left: 8%; }

.city-tag-silver {
  background: #000000;
  border: 1px solid var(--border-light);
  color: var(--text-silver);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  transition: var(--transition-fast);
}

.city-tag-silver:hover {
  border-color: var(--red-racing);
  color: #fff;
}

/* ==========================================================================
   FOOTER (PURE BLACK & PLATINUM)
   ========================================================================== */

.main-footer-shiftech {
  background: #000000;
  border-top: 1px solid var(--border-silver);
  padding: 70px 24px 30px;
}

.footer-container-shiftech {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-title-shiftech {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
  color: #ffffff;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links-list a {
  color: var(--text-silver);
  font-size: 0.92rem;
  transition: var(--transition-fast);
}

.footer-links-list a:hover {
  color: var(--text-white);
  padding-left: 4px;
}

.footer-bottom-shiftech {
  max-width: 1440px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* Floating Actions */
.floating-cta-container {
  display: none !important;
}

.float-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.4rem;
  box-shadow: 0 8px 25px rgba(0,0,0,0.6);
  transition: var(--transition-fast);
  border: 1px solid var(--border-silver);
}

.float-btn:hover {
  transform: scale(1.1);
}

.float-btn-phone {
  background: var(--red-racing);
  box-shadow: 0 8px 25px var(--red-racing-glow);
}

.float-btn-wa {
  background: #10b981;
}

/* ==========================================================================
   TABLE RESPONSIVE WRAPPER & QUALITY INDICATORS GRID
   ========================================================================== */
.table-responsive-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  background: rgba(0, 0, 0, 0.4);
}

.cfg-indicators-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 20px;
}

/* ==========================================================================
   FOOTER SECTEUR 100 KM BANNER & CITY PILLS
   ========================================================================== */
.footer-secteur-banner {
  background: linear-gradient(180deg, rgba(15, 18, 24, 0.98) 0%, rgba(8, 10, 14, 0.98) 100%);
  border: 1px solid var(--border-silver);
  border-radius: var(--radius-md);
  padding: 36px 32px;
  margin-bottom: 48px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.footer-secteur-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--red-racing), transparent);
}

.footer-secteur-badge {
  display: inline-block;
  background: rgba(225, 29, 72, 0.15);
  border: 1px solid var(--red-racing);
  color: var(--red-racing);
  padding: 5px 16px;
  border-radius: 999px;
  font-family: var(--font-tech);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.footer-secteur-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 900;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.footer-secteur-desc {
  max-width: 800px;
  margin: 0 auto 24px;
  color: var(--text-silver);
  font-size: 0.96rem;
  line-height: 1.65;
}

.footer-secteur-cities-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  max-width: 960px;
  margin: 0 auto;
}

.footer-city-pill {
  background: #000000;
  border: 1px solid var(--border-light);
  color: var(--text-silver-light);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font-tech);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition-fast);
}

.footer-city-pill:hover {
  background: var(--red-racing);
  border-color: var(--red-racing);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(225, 29, 72, 0.35);
  transform: translateY(-2px);
}

.btn-footer-secteur {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #000000;
  border: 1px solid var(--red-racing);
  color: #ffffff;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-tech);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  transition: var(--transition-smooth);
  box-shadow: 0 0 20px rgba(225, 29, 72, 0.25);
}

.btn-footer-secteur:hover {
  background: var(--red-racing);
  color: #ffffff;
  box-shadow: 0 0 30px var(--red-racing-glow);
  transform: translateY(-2px);
}

/* ==========================================================================
   RESPONSIVE ENCADREMENT & MOBILE OPTIMIZATIONS (1024px / 768px)
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-shiftech-title { font-size: 2.8rem; }
  .shiftech-search-bar { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .shiftech-brands-bar { grid-template-columns: repeat(4, 1fr); gap: 10px; }
  .cfg-content-grid { grid-template-columns: 1fr; gap: 24px; padding: 22px; }
  .services-grid-shiftech { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .options-grid-shiftech { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .e85-calc-shiftech { grid-template-columns: 1fr; gap: 24px; }
  .zone-container-shiftech { grid-template-columns: 1fr; gap: 28px; }
  .footer-container-shiftech-shiftech { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .footer-secteur-banner { padding: 28px 20px; }
}

@media (max-width: 768px) {
  /* Prevent horizontal scroll */
  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
  }

  .section-padding {
    padding: 45px 14px;
  }

  /* Header & Navigation */
  .nav-links, .nav-actions { display: none !important; }
  .mobile-menu-toggle { display: block; }

  .topbar-shiftech {
    font-size: 0.75rem;
    padding: 6px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    white-space: nowrap !important;
  }

  .topbar-shiftech .location-tag {
    font-size: 0.72rem;
    letter-spacing: 0.5px;
    white-space: nowrap !important;
  }

  .location-full { display: none !important; }
  .location-short { display: inline !important; }

  .topbar-shiftech .topbar-phone-highlight {
    padding: 3px 9px;
    font-size: 0.76rem;
    letter-spacing: 0.6px;
    white-space: nowrap !important;
    flex-shrink: 0;
  }

  .floating-cta-container {
    display: none !important;
  }

  /* Hero & Search Encadrement */
  .hero-shiftech { padding-top: 50px; padding-bottom: 40px; }
  .hero-shiftech-title { font-size: 2.1rem; line-height: 1.15; }
  .hero-shiftech-sub {
    font-size: 0.98rem;
    padding: 12px 16px;
    margin-bottom: 28px;
    color: #ffffff !important;
  }
  .shiftech-search-bar {
    grid-template-columns: 1fr;
    padding: 12px;
    gap: 10px;
    border-radius: var(--radius-sm);
  }

  /* Brands & Category Filter */
  .cfg-category-filter { gap: 6px; }
  .cfg-cat-btn { padding: 7px 12px; font-size: 0.78rem; flex: 1; text-align: center; }
  .shiftech-brands-bar { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .shiftech-brand-btn { padding: 12px 8px; font-size: 0.8rem; letter-spacing: 0.5px; }

  /* Configurator Panel Encadrement */
  .shiftech-config-panel {
    border-radius: var(--radius-sm);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.9);
  }

  .cfg-top-controls {
    padding: 14px 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .cfg-top-controls > div {
    max-width: 100% !important;
    width: 100%;
    flex-direction: column;
    align-items: stretch !important;
    gap: 8px !important;
  }

  .cfg-stage-selector {
    width: 100%;
    display: flex;
    gap: 4px;
  }

  .cfg-stage-tab {
    flex: 1;
    padding: 9px 4px;
    font-size: 0.75rem;
    text-align: center;
  }

  .cfg-content-grid {
    padding: 14px 10px;
    gap: 18px;
  }

  .cfg-visual-card {
    padding: 12px 10px;
  }

  .cfg-model-name { font-size: 1.35rem; }
  .cfg-engine-name { font-size: 0.84rem; margin-bottom: 12px; }

  .shiftech-table th, .shiftech-table td {
    padding: 9px 6px;
    font-size: 0.82rem;
  }

  .cfg-booking-bar {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 12px;
    padding: 14px 12px;
  }

  .cfg-booking-bar #btn-cfg-book {
    width: 100%;
    justify-content: center;
  }

  .cfg-graph-wrapper {
    padding: 12px 10px;
  }

  #dyno-chart-pro {
    height: 240px;
  }

  .cfg-indicators-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .simulator-disclaimer-box {
    margin: 14px 10px 14px;
    padding: 16px 12px;
    font-size: 0.86rem;
  }

  .disclaimer-params-grid {
    grid-template-columns: 1fr;
    padding: 10px 12px;
    gap: 8px;
  }

  /* Radar 100km Encadrement */
  .radar-shiftech-box {
    padding: 16px 10px;
  }

  .radar-circle-bg {
    max-height: 290px;
  }

  .radar-hub-miramas {
    padding: 6px 12px;
    font-size: 0.78rem;
    letter-spacing: 1px;
  }

  .radar-city-pin {
    padding: 2px 6px;
    font-size: 0.72rem;
  }

  /* Services & Options Grid */
  .services-grid-shiftech { grid-template-columns: 1fr; gap: 16px; }
  .options-grid-shiftech { grid-template-columns: 1fr; gap: 14px; }
  .banc-facility-banner { padding: 28px 16px; }

  /* Footer */
  .footer-container-shiftech-shiftech { grid-template-columns: 1fr; gap: 24px; }
  .footer-secteur-banner { padding: 22px 14px; margin-bottom: 30px; }
  .footer-secteur-title { font-size: 1.35rem; }
  .footer-city-pill { padding: 5px 10px; font-size: 0.78rem; }
  .btn-footer-secteur { width: 100%; justify-content: center; font-size: 0.85rem; padding: 12px 14px; }
}


/* ==========================================================================
   DYNAMIC SCROLL-LINKED CAR BACKGROUND (MERCEDES-AMG, BMW M, PORSCHE, MUSTANG)
   Ultra-smooth cinematic crossfade, zero-flicker z-index layering & Ken Burns
   ========================================================================== */

.dynamic-bg-stage {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background-color: #050608;
}

.dynamic-bg-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0;
  z-index: 1;
  transition: opacity 2.0s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
  filter: brightness(0.92) contrast(1.15);
  transform: scale(1.02);
  animation: cinematicDrift 32s ease-in-out infinite alternate;
  animation-play-state: running;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Incoming active car: transitions smoothly to 100% opacity on top layer */
.dynamic-bg-slide.active {
  opacity: 1;
  z-index: 3;
}

/* Outgoing car: stays fully opaque underneath until incoming completes fade */
.dynamic-bg-slide.fading-out {
  opacity: 1;
  z-index: 2;
}

/* Continuous Cinematic Motion (Ken Burns Pan & Drift) - runs continuously without reset */
@keyframes cinematicDrift {
  0% {
    transform: scale(1.02) translate3d(0, 0, 0);
  }
  50% {
    transform: scale(1.06) translate3d(-1.2%, -0.8%, 0);
  }
  100% {
    transform: scale(1.03) translate3d(0.8%, -0.4%, 0);
  }
}

/* Semi-transparent Dark Vignette: keeps car details clearly visible while guaranteeing text readability */
.dynamic-bg-stage::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    linear-gradient(180deg, rgba(5, 6, 8, 0.58) 0%, rgba(5, 6, 8, 0.70) 45%, rgba(5, 6, 8, 0.88) 100%),
    radial-gradient(circle at 75% 35%, rgba(225, 29, 72, 0.06) 0%, transparent 60%);
  pointer-events: none;
  z-index: 10;
}

/* Floating indicator in bottom-left for currently highlighted car */
.car-scene-pill {
  position: fixed;
  bottom: 24px;
  left: 24px;
  background: rgba(0, 0, 0, 0.88);
  border: 1px solid var(--border-silver);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-family: var(--font-tech);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--text-silver-light);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 99;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.8);
  transition: opacity 0.5s ease;
}

.car-scene-pill .pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red-racing);
  box-shadow: 0 0 8px var(--red-racing);
}

.car-scene-pill strong {
  color: #ffffff;
  transition: opacity 0.3s ease;
}

/* Make section backgrounds translucent so the dynamic car shows through */
.hero-shiftech {
  background: transparent !important;
}

.section-padding {
  position: relative;
  z-index: 1;
}

.shiftech-config-panel, .banc-facility-banner, .e85-calc-shiftech, .radar-shiftech-box {
  background: rgba(10, 12, 16, 0.9) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}


/* ==========================================================================
   SECTION RÉPARATION ÉLECTRONIQUE (ECU, BOITIER FRM/RFM, COMPTEURS)
   ========================================================================== */

.reparation-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 36px;
}

.reparation-card {
  background: rgba(10, 12, 18, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition-smooth);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.reparation-card:hover {
  border-color: var(--red-racing);
  box-shadow: 0 16px 45px rgba(225, 29, 72, 0.15);
  transform: translateY(-4px);
}

.rep-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.rep-icon {
  font-size: 2.2rem;
  line-height: 1;
}

.rep-badge {
  font-family: var(--font-tech);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: rgba(225, 29, 72, 0.15);
  border: 1px solid var(--red-racing);
  color: #ffffff;
}

.reparation-card h3 {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 14px;
}

.rep-symptoms {
  background: rgba(5, 6, 8, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 18px;
}

.rep-symptoms strong {
  display: block;
  font-family: var(--font-tech);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--red-racing);
  margin-bottom: 8px;
}

.rep-symptoms ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.rep-symptoms li {
  font-size: 0.88rem;
  color: var(--text-silver-light);
  line-height: 1.5;
  margin-bottom: 6px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.rep-symptoms li::before {
  content: '⚠️';
  font-size: 0.8rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.rep-desc {
  font-size: 0.94rem;
  color: var(--text-silver);
  line-height: 1.65;
  margin-bottom: 24px;
  flex-grow: 1;
}

.rep-action {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  gap: 14px;
  flex-wrap: wrap;
}

.rep-price {
  font-family: var(--font-tech);
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
}

/* Shipping Banner */
.rep-shipping-banner {
  margin-top: 36px;
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.14) 0%, rgba(10, 12, 18, 0.95) 100%);
  border: 1px solid var(--red-racing);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.shipping-content-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.shipping-icon {
  font-size: 2.8rem;
  flex-shrink: 0;
}

.shipping-info h4 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
}

.shipping-info p {
  font-size: 0.92rem;
  color: var(--text-silver);
  line-height: 1.5;
  margin: 0;
}

.shipping-cta {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
  align-items: center;
}

@media (max-width: 900px) {
  .reparation-cards-grid {
    grid-template-columns: 1fr;
  }
  .rep-shipping-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  .shipping-content-left {
    flex-direction: column;
    align-items: flex-start;
  }
  .shipping-cta {
    width: 100%;
    flex-direction: column;
  }
  .shipping-cta a {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   LABORATOIRE & IMAGES DE CALCULATEURS / SOUDURE / REPROG
   ========================================================================== */

.hero-electronique-banner {
  position: relative;
  padding: 85px 24px 60px;
  background: linear-gradient(180deg, rgba(5,6,8,0.74) 0%, rgba(5,6,8,0.92) 100%),
              url('../images/precision-soldering-hands.jpg') center 40% / cover no-repeat;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  text-align: center;
}

.hero-electronique-banner::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 50% 40%, rgba(225, 29, 72, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.lab-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 10px;
}

.lab-photo-card {
  position: relative;
  height: 280px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.8);
  transition: var(--transition-smooth);
}

.lab-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
  filter: brightness(0.85) contrast(1.1);
}

.lab-photo-card:hover {
  border-color: var(--red-racing);
  box-shadow: 0 16px 45px rgba(225, 29, 72, 0.25);
  transform: translateY(-4px);
}

.lab-photo-card:hover img {
  transform: scale(1.08);
  filter: brightness(1) contrast(1.15);
}

.lab-photo-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 18px;
  background: linear-gradient(180deg, transparent 0%, rgba(5, 6, 8, 0.94) 70%, #050608 100%);
  z-index: 2;
}

.lab-badge {
  display: inline-block;
  font-family: var(--font-tech);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--red-racing);
  margin-bottom: 6px;
  background: rgba(225, 29, 72, 0.15);
  border: 1px solid rgba(225, 29, 72, 0.4);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

.lab-photo-overlay h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 5px;
  line-height: 1.25;
}

.lab-photo-overlay p {
  font-size: 0.82rem;
  color: var(--text-silver);
  line-height: 1.4;
  margin: 0;
}

@media (max-width: 1024px) {
  .lab-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 580px) {
  .lab-gallery-grid {
    grid-template-columns: 1fr;
  }
  .lab-photo-card {
    height: 240px;
  }
}


/* ==========================================================================
   CINEMATIC INTRO SPLASH OVERLAY (LANCEMENT DU SITE EN GRAND)
   ========================================================================== */

.site-intro-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at 50% 50%, #0d111a 0%, #050608 65%, #000000 100%);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.site-intro-overlay.fade-out {
  opacity: 0;
  transform: scale(1.05);
  pointer-events: none;
}

.intro-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px;
  max-width: 900px;
  width: 90vw;
}

.intro-status-hud {
  font-family: var(--font-tech);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-silver);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}

.intro-status-hud .hud-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red-racing);
  box-shadow: 0 0 10px var(--red-racing);
  animation: hudBlink 1s infinite alternate;
}

@keyframes hudBlink {
  0% { opacity: 0.4; }
  100% { opacity: 1; }
}

.intro-logo-stage {
  max-width: 760px;
  width: 100%;
  margin-bottom: 28px;
  filter: drop-shadow(0 15px 40px rgba(0, 0, 0, 0.95)) drop-shadow(0 0 35px rgba(225, 29, 72, 0.25));
}

@keyframes introLogoReveal {
  0% {
    opacity: 0;
    transform: scale(0.92) translateY(12px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.intro-logo-img {
  width: 100%;
  height: auto;
  display: block;
}

.intro-progress-bar {
  width: 320px;
  max-width: 80vw;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 18px;
  position: relative;
}

.intro-progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--red-racing), #ff4d6d, #ffffff);
  box-shadow: 0 0 12px var(--red-racing);
  border-radius: var(--radius-full);
  transition: width 1.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.intro-sub-tech {
  font-family: var(--font-tech);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: var(--text-silver);
  text-transform: uppercase;
}

.btn-skip-intro {
  position: absolute;
  top: 24px;
  right: 28px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-silver);
  font-family: var(--font-tech);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
  z-index: 100000;
}

.btn-skip-intro:hover {
  background: var(--red-racing);
  color: #fff;
  border-color: var(--red-racing);
  box-shadow: 0 0 14px var(--red-racing-glow);
}
