/* ===========================
   AUTOPRO29 — style.css
   Palette: Navy #0D1B2A · Red #C0392B · Light #F0F2F5 · White #FFFFFF
=========================== */

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

:root {
  --navy:      #0D1B2A;
  --navy-mid:  #1A2D42;
  --navy-soft: #263D57;
  --red:       #C0392B;
  --red-light: #E74C3C;
  --light:     #F0F2F5;
  --white:     #FFFFFF;
  --text:      #1C2B3A;
  --text-muted:#5C6F82;
  --border:    rgba(13,27,42,.1);

  --font-display: 'Barlow Condensed', sans-serif;
  --font-body:    'Barlow', sans-serif;

  --radius:    8px;
  --radius-lg: 16px;
  --shadow:    0 4px 24px rgba(13,27,42,.1);
  --shadow-lg: 0 12px 48px rgba(13,27,42,.18);
}

html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text); background: var(--white); overflow-x: hidden; }

.accent { color: var(--red); }
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: var(--radius);
  font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: .5px; text-transform: uppercase;
  text-decoration: none; cursor: pointer; border: 2px solid transparent;
  transition: all .22s ease; white-space: nowrap;
}
.btn--primary { background: var(--red); color: var(--white); border-color: var(--red); }
.btn--primary:hover { background: var(--red-light); border-color: var(--red-light); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(192,57,43,.35); }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.5); }
.btn--ghost:hover { background: rgba(255,255,255,.1); border-color: var(--white); transform: translateY(-2px); }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: var(--white); transform: translateY(-2px); }

/* ===== NAV ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 999;
  background: transparent;
  transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
  padding: 20px 0;
}
.nav.scrolled {
  background: var(--navy);
  box-shadow: 0 2px 20px rgba(0,0,0,.3);
  padding: 12px 0;
}
.nav__inner {
  max-width: 1160px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav__logo img { height: 104px; width: auto; filter: drop-shadow(0 2px 8px rgba(0,0,0,.3)); transition: height .3s; }
.nav.scrolled .nav__logo img { height: 56px; }
.nav__links { display: flex; gap: 32px; }
.nav__links a {
  font-family: var(--font-display); font-weight: 600; font-size: 25px; letter-spacing: .5px; text-transform: uppercase; /* taille de texte a droite du logo */
  color: var(--white); text-decoration: none; opacity: .85;
  transition: opacity .2s, color .2s, font-size .3s;
}
.nav.scrolled .nav__links a { font-size: 15px; }
.nav__links a:hover { opacity: 1; color: var(--red); }
.nav__burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav__burger span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: all .25s; }
.nav__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== HERO ===== */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; padding: 120px 24px 80px;
}
.hero__bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(135deg, rgba(13,27,42,.92) 0%, rgba(13,27,42,.75) 60%, rgba(192,57,43,.25) 100%),
    url('https://images.unsplash.com/photo-1503376780353-7e6692767b70?w=1600&q=80') center/cover no-repeat;
}
.hero__bg::after {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255,255,255,.015) 2px, rgba(255,255,255,.015) 4px);
}
.hero__content { position: relative; z-index: 1; text-align: center; max-width: 760px; }
.hero__eyebrow {
  font-family: var(--font-display); font-size: 13px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase;
  color: var(--red); margin-bottom: 20px;
  display: inline-flex; align-items: center; gap: 10px;
}
.hero__eyebrow::before, .hero__eyebrow::after { content: ''; display: block; width: 28px; height: 1px; background: var(--red); }
.hero__title {
  font-family: var(--font-display); font-size: clamp(52px, 8vw, 96px);
  font-weight: 800; line-height: .95; letter-spacing: -1px; text-transform: uppercase;
  color: var(--white); margin-bottom: 20px;
}
.hero__sub {
  font-size: 16px; color: rgba(255,255,255,.7); margin-bottom: 40px; letter-spacing: .5px;
}
.hero__ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero__scroll {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center;
}
.hero__scroll span {
  display: block; width: 20px; height: 32px;
  border: 2px solid rgba(255,255,255,.4); border-radius: 10px;
}
.hero__scroll span::before {
  content: ''; display: block; width: 4px; height: 8px;
  background: var(--white); border-radius: 2px; margin: 4px auto 0;
  animation: scrollDot 1.8s ease infinite;
}
@keyframes scrollDot { 0%,100%{transform:translateY(0);opacity:1} 80%{transform:translateY(10px);opacity:0} }

/* ===== STATS ===== */
.stats {
  background: var(--navy);
  padding: 40px 24px;
}
.stats__inner {
  max-width: 700px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center; gap: 0; flex-wrap: wrap;
}
.stat { text-align: center; padding: 16px 40px; }
.stat__num {
  font-family: var(--font-display); font-size: 52px; font-weight: 800; color: var(--white); line-height: 1;
}
.stat__plus { font-family: var(--font-display); font-size: 32px; font-weight: 700; color: var(--red); }
.stat__label { display: block; font-size: 12px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,.5); margin-top: 4px; }
.stat__divider { width: 1px; height: 60px; background: rgba(255,255,255,.12); }

/* ===== SECTIONS SHARED ===== */
.section__eyebrow {
  font-family: var(--font-display); font-size: 12px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase;
  color: var(--red); margin-bottom: 10px;
}
.section__title {
  font-family: var(--font-display); font-size: clamp(36px, 5vw, 56px);
  font-weight: 800; text-transform: uppercase; line-height: 1; margin-bottom: 56px; color: var(--navy);
}

/* ===== SERVICES ===== */
.services { padding: 100px 0; background: var(--light); }
.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.service-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 36px 28px; border: 1.5px solid var(--border);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  opacity: 0; transform: translateY(24px);
}
.service-card.visible { opacity: 1; transform: none; transition: opacity .5s ease, transform .5s ease, box-shadow .25s ease, border-color .25s ease; }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--red); }
.service-card--wide { grid-column: span 2; display: flex; flex-direction: column; align-items: flex-start; }
.service-card__icon {
  width: 52px; height: 52px; color: var(--red); margin-bottom: 20px;
}
.service-card h3 {
  font-family: var(--font-display); font-size: 22px; font-weight: 700; text-transform: uppercase;
  color: var(--navy); margin-bottom: 10px;
}
.service-card p { font-size: 14px; color: var(--text-muted); line-height: 1.65; flex: 1; }
.service-card .btn { margin-top: 24px; }

/* ===== VEHICULES ===== */
.vehicules { padding: 100px 0; background: var(--white); }

.vehicules__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.veh-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  display: flex;
  flex-direction: column;
}
.veh-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--red); }

.veh-card__img-wrap {
  position: relative;
  overflow: hidden;
  height: 210px;
}
.veh-card__img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.veh-card:hover .veh-card__img-wrap img { transform: scale(1.04); }

.veh-card__badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--red); color: var(--white);
  font-family: var(--font-display); font-size: 11px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 4px 10px; border-radius: 4px;
}
.veh-card__badge--reserved {
  background: var(--navy-soft);
}

.veh-card__body {
  padding: 22px 24px 24px;
  display: flex; flex-direction: column; gap: 10px; flex: 1;
}
.veh-card__title {
  font-family: var(--font-display); font-size: 22px;
  font-weight: 800; text-transform: uppercase; color: var(--navy); line-height: 1.1;
}
.veh-card__specs {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.veh-card__specs span {
  font-size: 12px; font-weight: 600; color: var(--text-muted);
  background: var(--light); border-radius: 4px; padding: 3px 8px;
}
.veh-card__desc {
  font-size: 13px; color: var(--text-muted); line-height: 1.6; flex: 1;
}
.veh-card__footer {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-top: 8px;
}
.veh-card__price {
  font-family: var(--font-display); font-size: 28px;
  font-weight: 800; color: var(--red);
}

/* Message aucun véhicule */
.vehicules__empty {
  background: var(--light); border-radius: var(--radius-lg); border: 2px dashed rgba(13,27,42,.15);
  padding: 72px 40px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.veh-placeholder__title {
  font-family: var(--font-display); font-size: 26px; font-weight: 700; text-transform: uppercase; color: var(--navy);
}
.veh-placeholder__sub { font-size: 15px; color: var(--text-muted); max-width: 460px; line-height: 1.65; }

/* ===== ECU REPROGRAMMATION ===== */
.ecu { padding: 100px 0; background: var(--light); }
.ecu__intro {
  font-size: 15px; color: var(--text-muted); margin-bottom: 36px;
  max-width: 580px; line-height: 1.65;
}
.ecu__iframe-wrap {
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); border: 1px solid var(--border);
  overflow: hidden;
}
.ecu__iframe-wrap iframe {
  display: block;
  width: 100%;
  min-height: 600px;
  border: none;
}
.ecu__disclaimer {
  margin-top: 16px; font-size: 12px; color: var(--text-muted); font-style: italic;
}

/* ===== PROCESS ===== */
.process { background: var(--navy); padding: 100px 0; }
.process .section__eyebrow { color: rgba(255,255,255,.5); }
.process .section__title { color: var(--white); }
.process__steps {
  display: flex; align-items: flex-start; gap: 24px; flex-wrap: wrap;
}
.process__step {
  flex: 1; min-width: 200px; background: var(--navy-mid);
  border-radius: var(--radius-lg); padding: 36px 28px;
  border: 1px solid rgba(255,255,255,.07);
}
.process__num {
  font-family: var(--font-display); font-size: 56px; font-weight: 800;
  color: var(--red); opacity: .3; line-height: 1; margin-bottom: 16px;
}
.process__step h3 {
  font-family: var(--font-display); font-size: 20px; font-weight: 700; text-transform: uppercase;
  color: var(--white); margin-bottom: 10px;
}
.process__step p { font-size: 14px; color: rgba(255,255,255,.55); line-height: 1.65; }
.process__arrow {
  font-size: 28px; color: var(--red); opacity: .5;
  align-self: center; padding-top: 40px; flex-shrink: 0;
}

/* ===== CONTACT ===== */
.contact { padding: 100px 0; background: var(--light); }

.contact__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}

.contact-item {
  display: flex; align-items: flex-start; gap: 16px;
  background: var(--white); border-radius: var(--radius-lg); padding: 24px 28px;
  border: 1px solid var(--border); transition: box-shadow .2s ease, transform .2s ease;
}
.contact-item:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.contact-item__icon {
  width: 44px; height: 44px; flex-shrink: 0;
  background: rgba(192,57,43,.08); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; color: var(--red);
}
.contact-item__icon svg { width: 22px; height: 22px; }
.contact-item__text { display: flex; flex-direction: column; gap: 4px; }
.contact-item__label { font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--text-muted); }
.contact-item__value { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--navy); text-decoration: none; }
a.contact-item__value:hover { color: var(--red); }
.contact-item__note { font-size: 12px; color: var(--text-muted); }

.contact__actions {
  display: flex; gap: 16px; flex-wrap: wrap;
}

/* ===== FOOTER ===== */
.footer { background: var(--navy); padding: 48px 0 32px; }
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.footer__logo img { height: 60px; opacity: .9; }
.footer__links { display: flex; gap: 32px; }
.footer__links a {
  font-family: var(--font-display); font-size: 13px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase;
  color: rgba(255,255,255,.5); text-decoration: none; transition: color .2s;
}
.footer__links a:hover { color: var(--white); }
.footer__copy { font-size: 12px; color: rgba(255,255,255,.3); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .service-card--wide { grid-column: span 2; }
  .contact__cards { grid-template-columns: 1fr; }
  .vehicules__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav__links { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: var(--navy); flex-direction: column; align-items: center; justify-content: center; gap: 40px; z-index: 998; }
  .nav__links.open { display: flex; }
  .nav__links a { font-size: 28px; }
  .nav__burger { display: flex; z-index: 1000; }
  .services__grid { grid-template-columns: 1fr; }
  .service-card--wide { grid-column: span 1; }
  .process__steps { flex-direction: column; }
  .process__arrow { transform: rotate(90deg); align-self: center; padding-top: 0; }
  .form__row { grid-template-columns: 1fr; }
  .stat__divider { display: none; }
  .stat { padding: 16px 24px; }
  .contact__form-wrap { padding: 28px 20px; }
  .hero__title { font-size: 52px; }
  .vehicules__grid { grid-template-columns: 1fr; }
  .veh-card__footer { flex-direction: column; align-items: flex-start; gap: 12px; }
}
@media (max-width: 480px) {
  .hero__ctas { flex-direction: column; align-items: center; }
  .btn { width: 100%; justify-content: center; max-width: 280px; }
}

/* ===== REVEAL ANIMATION ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
