
/* Reset & Variables */
:root {
  --primary: #16697A;
  --primary-dark: #0f4d5a;
  --accent: #7A2716;
  --gain-color: #459290;
  --origin-color: #616C6B;
  --text: #1a1a1a;
  --text-light: #666666;
  --text-muted: #999999;
  --text-dark: #303030;
  --bg: #ffffff;
  --bg-light: #f8f8f8;
  --bg-gains: #F5F5F5;
  --border: #e8e8e8;
  --radius: 16px;
  --font: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); font-size: 16px; line-height: 1.5; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* Container - Plus large pour desktop */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 480px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 28px; font-family: var(--font); font-size: 14px; font-weight: 600;
  background: var(--primary); color: #fff; border: none; border-radius: 50px;
  cursor: pointer; transition: all 0.2s; white-space: nowrap;
}
.btn:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn--full { width: 100%; }

/* Header */
.header { position: sticky; top: 0; z-index: 100; background: var(--bg); border-bottom: 1px solid var(--border); }
.header__container { display: flex; align-items: center; justify-content: space-between; max-width: 1200px; margin: 0 auto; padding: 12px 20px; }
.header__menu-btn { display: none; background: none; border: none; cursor: pointer; padding: 8px; color: var(--text); }
.header__logo img { height: 40px; width: auto; }
.header__nav { display: flex; gap: 32px; }
.header__nav a { font-size: 14px; font-weight: 500; color: var(--text); transition: color 0.2s; }
.header__nav a:hover { color: var(--primary); }
.header__actions { display: flex; align-items: center; gap: 16px; }
.header__region { font-size: 12px; color: var(--text-muted); }
.header__lang { font-size: 13px; color: var(--text-light); }
.header__search { background: none; border: none; cursor: pointer; padding: 8px; color: var(--text); }
.header__mobile-nav { display: none; flex-direction: column; padding: 16px 20px; border-top: 1px solid var(--border); }
.header__mobile-nav.is-open { display: flex; }
.header__mobile-nav a { padding: 12px 0; font-size: 15px; border-bottom: 1px solid var(--border); }

/* Hero */
.hero { width: 100%; background: linear-gradient(to right, #e8e8e8, #f8f8f8); }
.hero__image { width: 100%; height: auto; max-height: 400px; object-fit: cover; object-position: center; }

/* Vehicle Section */
.vehicle-section { padding: 48px 20px; }
.vehicle-header { text-align: center; margin-bottom: 40px; }

/* H1 - Titre principal - Style comme "Pourquoi faire un Stage 1" */
.vehicle-header__title { 
  font-size: 36px; 
  font-weight: 700; 
  color: var(--primary); 
  margin-bottom: 12px;
  line-height: 1.2;
}

/* Subtitle avec chiffres en gras */
.vehicle-header__subtitle { 
  font-size: 22px; 
  font-weight: 400; 
  color: var(--text); 
  margin-bottom: 32px; 
}
.highlight { 
  color: var(--primary); 
  font-weight: 700; 
}

.vehicle-header__name { font-size: 22px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.vehicle-header__details { font-size: 15px; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.5px; }

/* Services */
.services-title {
  text-align: center;
  font-size: 22px;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 40px;
  margin-bottom: 24px;
}
.services-list { display: flex; flex-direction: column; gap: 12px; }

/* Service Card - Plus large avec meilleure gestion du layout */
.service-card { 
  display: grid; 
  grid-template-columns: 180px 1fr 180px; 
  gap: 24px; 
  align-items: center; 
  padding: 20px 28px; 
  background: var(--bg); 
  border: 1px solid var(--border); 
  border-radius: var(--radius); 
}
.service-card--simple { grid-template-columns: 180px 1fr 180px; }
.service-card__header { text-align: left; }

/* Nom du service - Plus gros et en gras */
.service-card__name { 
  font-size: 20px; 
  font-weight: 700; 
  color: var(--primary); 
  text-transform: uppercase; 
  margin-bottom: 6px; 
  letter-spacing: 0.5px; 
}

/* Prix en couleur accent #7A2716 */
.service-card__price { 
  font-size: 20px; 
  font-weight: 600; 
  color: var(--accent); 
}

/* Prix "Sur demande" pour SCR */
.service-card__price--on-request {
  font-size: 18px;
  font-weight: 500;
  font-style: italic;
  color: var(--accent);
  white-space: nowrap;
}

.service-card__desc { font-size: 14px; color: var(--text-light); line-height: 1.6; }
.service-card__cta { text-align: right; flex-shrink: 0; }

/* Bloc des gains - conteneur flex */
.service-card__gains { 
  display: flex; 
  gap: 16px;
  flex: 1;
  min-width: 0;
}

/* Chaque gain dans son propre cadre */
.gain { 
  flex: 1;
  text-align: center;
  background: #FAFAFA;
  border-radius: 10px;
  padding: 14px 16px;
  min-width: 0;
}
.gain__label { 
  display: block; 
  font-size: 15px; 
  font-weight: 600; 
  color: var(--text); 
  margin-bottom: 10px; 
}
.gain__labels, .gain__values { 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  gap: 6px; 
  margin-bottom: 6px; 
}

/* Labels Origine / Stage 1 */
.gain__labels { 
  font-size: 13px; 
  text-transform: uppercase; 
  letter-spacing: 0.3px; 
}
.gain__labels span:first-child { color: var(--origin-color); }
.gain__labels span:last-child { color: var(--accent); font-weight: 600; }

/* Valeurs */
.gain__values { font-size: 16px; white-space: nowrap; }
.gain__original { font-weight: 500; color: var(--origin-color); }
.gain__arrow { color: var(--primary); margin: 0 6px; font-weight: 600; }
.gain__tuned { font-weight: 600; color: var(--accent); }

/* Delta +XX en vert */
.gain__delta { 
  display: block; 
  font-size: 14px; 
  font-weight: 600; 
  color: var(--gain-color); 
  margin-top: 4px; 
}

/* No Services */
.no-services { text-align: center; padding: 48px 24px; background: var(--bg-light); border-radius: var(--radius); }
.no-services h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; color: var(--text); }
.no-services p { font-size: 14px; color: var(--text-light); margin-bottom: 24px; max-width: 400px; margin-left: auto; margin-right: auto; }

/* Reassurance */
.reassurance { padding: 60px 20px; background: var(--bg); }
.reassurance__title { text-align: center; font-size: 24px; font-weight: 600; margin-bottom: 48px; }
.reassurance__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-bottom: 40px; }
.reassurance__item { text-align: center; }
.reassurance__icon { margin-bottom: 16px; }
.reassurance__icon img { width: 80px; height: 80px; margin: 0 auto; object-fit: contain; }
.reassurance__item h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.reassurance__item p { font-size: 14px; color: var(--text-light); line-height: 1.6; }
.reassurance__cta { text-align: center; }

/* Products Section - Style comme homepage Alpes Reprog */
.products-section { padding: 60px 20px; background: var(--bg-light); }
.products-section__title { 
  text-align: center; 
  font-size: 24px; 
  font-weight: 700; 
  color: var(--text); 
  margin-bottom: 40px; 
}
.products-carousel { position: relative; }
.products-carousel.has-arrows { padding: 0 50px; }
.products-carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--bg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: all 0.2s;
  z-index: 2;
}
.products-carousel__arrow:hover { border-color: var(--primary); color: var(--primary); }
.products-carousel__arrow--prev { left: 0; }
.products-carousel__arrow--next { right: 0; }

/* Products Grid - Centrer quand moins de 4 produits */
.products-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.products-grid::-webkit-scrollbar { display: none; }

/* Product Card - Sans border-radius */
.product-card {
  flex: 0 0 calc(25% - 12px);
  max-width: calc(25% - 12px);
  scroll-snap-align: start;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s;
}
.product-card:hover { transform: translateY(-4px); }
.product-card__image {
  position: relative;
  aspect-ratio: 1;
  border-radius: 0;
  overflow: hidden;
  margin-bottom: 12px;
  background: var(--bg);
}
.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-card__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e8e8e8 0%, #f5f5f5 100%);
}
.product-card__title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  text-align: center;
  line-height: 1.4;
}

/* Footer */
.footer { padding: 40px 20px; border-top: 1px solid var(--border); text-align: center; }
.footer__social { display: flex; justify-content: center; gap: 16px; margin-bottom: 24px; }
.footer__social a { color: var(--text); transition: color 0.2s; }
.footer__social a:hover { color: var(--primary); }
.footer__copy { font-size: 12px; color: var(--text-muted); margin-bottom: 16px; }
.footer__links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 24px; }
.footer__links a { font-size: 12px; color: var(--text-light); }
.footer__links a:hover { color: var(--primary); }

/* Error Page */
.error-page { min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px 20px; }
.error-page h1 { font-size: 28px; margin-bottom: 16px; }
.error-page p { color: var(--text-light); margin-bottom: 24px; }

/* ============================================
   RESPONSIVE - LARGE DESKTOP (1200px+)
   ============================================ */
@media (min-width: 1200px) {
  .container { max-width: 1200px; }
  .service-card { grid-template-columns: 200px 1fr 200px; gap: 32px; padding: 24px 32px; }
  .service-card--simple { grid-template-columns: 200px 1fr 200px; }
}

/* ============================================
   RESPONSIVE - TABLET
   ============================================ */
@media (max-width: 900px) {
  .service-card, .service-card--simple { grid-template-columns: 140px 1fr auto; gap: 16px; padding: 16px 20px; }
  .service-card__gains { gap: 12px; }
  .reassurance__grid { gap: 24px; }
  
  /* Products tablet - 3 colonnes */
  .product-card {
    flex: 0 0 calc(33.333% - 11px);
    max-width: calc(33.333% - 11px);
  }
}

/* ============================================
   RESPONSIVE - MOBILE
   ============================================ */
@media (max-width: 768px) {
  .header__menu-btn { display: block; }
  .header__nav { display: none; }
  .header__logo img { height: 32px; }
  .header__region { display: none; }
  
  .hero__image { max-height: 280px; }
  
  .vehicle-section { padding: 32px 16px; }
  .vehicle-header__title { font-size: 28px; }
  .vehicle-header__subtitle { font-size: 18px; margin-bottom: 24px; }
  .vehicle-header__name { font-size: 20px; }
  
  .services-title { font-size: 18px; margin-top: 32px; margin-bottom: 20px; }
  
  .service-card, .service-card--simple {
    grid-template-columns: 1fr; gap: 16px; text-align: center; padding: 20px 16px;
  }
  .service-card__header { text-align: center; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
  .service-card__gains { 
    flex-direction: column;
    gap: 12px; 
  }
  .gain {
    padding: 14px;
  }
  .service-card__cta { text-align: center; padding-top: 8px; }
  .service-card__cta .btn { width: 100%; }
  
  .reassurance { padding: 40px 16px; }
  .reassurance__title { font-size: 20px; margin-bottom: 32px; }
  .reassurance__grid { grid-template-columns: 1fr; gap: 32px; }
  
  .footer__links { flex-direction: column; gap: 8px; }
  
  /* Products responsive - 2 colonnes */
  .products-section { padding: 40px 16px; }
  .products-section__title { font-size: 20px; margin-bottom: 24px; }
  .products-carousel.has-arrows { padding: 0; }
  .products-carousel__arrow { display: none; }
  .product-card {
    flex: 0 0 calc(50% - 8px);
    max-width: calc(50% - 8px);
  }
}

/* ============================================
   RESPONSIVE - SMALL MOBILE
   ============================================ */
@media (max-width: 400px) {
  .vehicle-header__title { font-size: 24px; }
  .vehicle-header__subtitle { font-size: 16px; }
  .gain__values { font-size: 14px; }
  .service-card__name { font-size: 18px; }
  .service-card__price { font-size: 18px; }
}
