/* Mitsubishi Motors Compiègne – Style principal */
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,300;0,400;0,500;0,700;0,900;1,400&display=swap');

:root {
  --blue-dark: #1565C0;
  --blue-mid: #1976D2;
  --blue-light: #1E88E5;
  --blue-pale: #E3F2FD;
  --silver: #B0BEC5;
  --silver-light: #ECEFF1;
  --silver-dark: #78909C;
  --white: #FFFFFF;
  --anthracite: #263238;
  --anthracite-light: #37474F;
  --gray-text: #546E7A;
  --gray-bg: #F5F7FA;
  --yellow-accent: #FFB300;
  --green: #43A047;
  --red: #E53935;
  --shadow: 0 4px 20px rgba(21,101,192,0.12);
  --shadow-hover: 0 8px 32px rgba(21,101,192,0.2);
  --radius: 8px;
  --transition: all 0.3s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Roboto', sans-serif;
  background: var(--white);
  color: var(--anthracite);
  line-height: 1.65;
  overflow-x: hidden;
}

/* ===================== TYPOGRAPHY ===================== */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; font-family: 'Roboto', sans-serif; }
h1 { font-size: clamp(1.9rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); }
p { margin-bottom: 1rem; }
a { color: var(--blue-dark); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--blue-light); }
strong { font-weight: 700; }

/* ===================== LAYOUT ===================== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section-alt { background: var(--gray-bg); }
.section-dark { background: var(--anthracite); color: var(--white); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p { color: var(--silver); }
.section-blue { background: var(--blue-dark); color: var(--white); }
.section-blue h2 { color: var(--white); }
.section-blue p { color: rgba(255,255,255,0.8); }
.section-title { text-align: center; margin-bottom: 3.5rem; }
.section-title h2 { color: var(--anthracite); margin-bottom: 0.75rem; }
.section-title h2 span { color: var(--blue-dark); }
.section-title p { color: var(--gray-text); max-width: 600px; margin: 0 auto; font-size: 1.05rem; }
.section-dark .section-title h2, .section-blue .section-title h2 { color: var(--white); }
.section-dark .section-title p, .section-blue .section-title p { color: rgba(255,255,255,0.75); }

/* ===================== TOP BAR ===================== */
.top-bar {
  background: var(--blue-dark); color: rgba(255,255,255,0.85);
  padding: 0.45rem 0; font-size: 0.82rem;
  display: flex; align-items: center;
}
.top-bar-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 1.5rem;
  display: flex; justify-content: space-between; align-items: center; width: 100%;
}
.top-bar a { color: rgba(255,255,255,0.85); }
.top-bar a:hover { color: var(--white); }
.top-bar-right { display: flex; gap: 1.5rem; }

/* ===================== HEADER ===================== */
#header {
  position: sticky; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--white);
  border-bottom: 3px solid var(--blue-dark);
  box-shadow: 0 2px 12px rgba(21,101,192,0.1);
  transition: var(--transition);
}
#header.scrolled { box-shadow: 0 4px 24px rgba(21,101,192,0.18); }

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.85rem 1.5rem; max-width: 1200px; margin: 0 auto;
}

.logo { display: flex; align-items: center; gap: 0.85rem; }
.logo-icon {
  width: 48px; height: 48px; background: var(--blue-dark);
  border-radius: 6px; display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 900; color: var(--white);
  font-family: 'Roboto', sans-serif; letter-spacing: -0.5px;
  line-height: 1;
}
.logo-text { color: var(--anthracite); font-size: 1.15rem; font-weight: 700; line-height: 1.15; }
.logo-text span { color: var(--blue-dark); display: block; font-size: 0.72rem; font-weight: 400; letter-spacing: 1.5px; text-transform: uppercase; }

nav { display: flex; align-items: center; gap: 0.15rem; }
nav a {
  color: var(--anthracite-light); font-weight: 500; padding: 0.55rem 0.9rem;
  border-radius: var(--radius); font-size: 0.9rem; transition: var(--transition);
}
nav a:hover, nav a.active { color: var(--blue-dark); background: var(--blue-pale); }

.nav-cta {
  background: var(--blue-dark) !important; color: var(--white) !important;
  font-weight: 700 !important; padding: 0.55rem 1.2rem !important;
}
.nav-cta:hover { background: var(--blue-mid) !important; color: var(--white) !important; transform: translateY(-1px); }

.burger { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.burger span { display: block; width: 24px; height: 2px; background: var(--anthracite); margin: 5px 0; transition: var(--transition); }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===================== HERO ===================== */
.hero {
  min-height: 90vh; display: flex; align-items: center;
  background: url('../img/hero-moto.jpg') center/cover no-repeat;
  position: relative; overflow: hidden; padding: 5rem 0;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(21,101,192,0.85) 0%, rgba(13,71,161,0.8) 50%, rgba(38,50,56,0.9) 100%);
}
.hero-content { position: relative; z-index: 1; max-width: 650px; }
.hero-badge {
  display: inline-block; background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.9);
  font-weight: 500; font-size: 0.8rem; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 0.4rem 1rem; border-radius: 20px; margin-bottom: 1.5rem;
  border: 1px solid rgba(255,255,255,0.2);
}
.hero h1 { color: var(--white); margin-bottom: 1.25rem; }
.hero h1 span { color: var(--silver); display: block; font-weight: 300; font-size: 0.6em; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 0.5rem; }
.hero p { color: rgba(255,255,255,0.8); font-size: 1.1rem; margin-bottom: 2rem; max-width: 520px; }
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-local {
  margin-top: 2.5rem; display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.5rem; background: rgba(255,255,255,0.08);
  border-radius: 10px; border: 1px solid rgba(255,255,255,0.15); max-width: 420px;
}
.hero-local-icon { font-size: 1.8rem; }
.hero-local-text { font-size: 0.9rem; color: rgba(255,255,255,0.85); line-height: 1.4; }
.hero-local-text strong { color: var(--white); display: block; }

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 2rem; border-radius: var(--radius); font-weight: 700;
  font-size: 0.95rem; font-family: 'Roboto', sans-serif;
  border: 2px solid transparent; cursor: pointer; transition: var(--transition);
  text-decoration: none;
}
.btn-primary { background: var(--blue-dark); color: var(--white); border-color: var(--blue-dark); }
.btn-primary:hover { background: var(--blue-mid); border-color: var(--blue-mid); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(21,101,192,0.35); color: var(--white); }
.btn-white { background: var(--white); color: var(--blue-dark); border-color: var(--white); }
.btn-white:hover { background: var(--blue-pale); transform: translateY(-2px); color: var(--blue-dark); }
.btn-outline { background: transparent; color: var(--blue-dark); border-color: var(--blue-dark); }
.btn-outline:hover { background: var(--blue-dark); color: var(--white); transform: translateY(-2px); }
.btn-outline-white { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.6); }
.btn-outline-white:hover { border-color: var(--white); color: var(--white); transform: translateY(-2px); }
.btn-sm { padding: 0.5rem 1.1rem; font-size: 0.85rem; }

/* ===================== STATS ===================== */
.stats-bar { background: var(--blue-dark); padding: 2rem 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; text-align: center; }
.stat-item { padding: 0.5rem; border-right: 1px solid rgba(255,255,255,0.15); }
.stat-item:last-child { border-right: none; }
.stat-number { font-size: 2.2rem; font-weight: 900; color: var(--white); line-height: 1; }
.stat-label { font-size: 0.8rem; font-weight: 500; color: rgba(255,255,255,0.7); text-transform: uppercase; letter-spacing: 1px; margin-top: 0.25rem; }

/* ===================== VEHICULE CARDS ===================== */
.vehicles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.75rem; }
.vehicle-card {
  background: var(--white); border-radius: 12px; overflow: hidden;
  box-shadow: var(--shadow); transition: var(--transition);
  border: 1px solid var(--silver-light);
}
.vehicle-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }

.card-img {
  position: relative; height: 200px; overflow: hidden;
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-mid) 100%);
  display: flex; align-items: center; justify-content: center;
  background-size: cover; background-position: center;
}
.card-img-placeholder { font-size: 4.5rem; opacity: 0.25; }
.card-img[style*="background-image"] .card-img-placeholder { display: none; }
.card-badges { position: absolute; top: 0.75rem; left: 0.75rem; display: flex; gap: 0.4rem; flex-wrap: wrap; }
.badge {
  font-size: 0.68rem; font-weight: 700; padding: 0.2rem 0.55rem;
  border-radius: 4px; text-transform: uppercase; letter-spacing: 0.5px;
}
.badge-neuf { background: var(--blue-dark); color: var(--white); }
.badge-occasion { background: var(--yellow-accent); color: var(--anthracite); }
.badge-certifie { background: var(--green); color: var(--white); }
.badge-promo { background: var(--red); color: var(--white); }
.badge-125 { background: var(--anthracite); color: var(--white); }
.badge-vendu { background: var(--silver-dark); color: var(--white); }

.card-body { padding: 1.25rem; }
.card-brand { font-size: 0.75rem; font-weight: 700; color: var(--blue-dark); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 0.25rem; }
.card-title { font-size: 1.1rem; font-weight: 700; color: var(--anthracite); margin-bottom: 0.75rem; }
.card-specs { display: flex; gap: 0.75rem; margin-bottom: 0.85rem; flex-wrap: wrap; }
.spec-item { display: flex; align-items: center; gap: 0.3rem; font-size: 0.82rem; color: var(--gray-text); }
.card-price { display: flex; align-items: baseline; gap: 0.75rem; margin-bottom: 1rem; }
.price-old { font-size: 0.95rem; color: var(--silver-dark); text-decoration: line-through; }
.price-current { font-size: 1.45rem; font-weight: 800; color: var(--blue-dark); }
.card-cta { width: 100%; text-align: center; justify-content: center; }

/* ===================== SERVICE CARDS ===================== */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.5rem; }
.service-card {
  background: var(--white); border-radius: 12px; padding: 2rem;
  text-align: center; box-shadow: var(--shadow); transition: var(--transition);
  border-bottom: 4px solid transparent;
}
.service-card:hover { transform: translateY(-4px); border-bottom-color: var(--blue-dark); box-shadow: var(--shadow-hover); }
.service-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.service-card h3 { font-size: 1.05rem; margin-bottom: 0.6rem; color: var(--anthracite); }
.service-card p { color: var(--gray-text); font-size: 0.9rem; margin: 0; }

/* ===================== PAGE HERO ===================== */
.page-hero {
  background-image: url('../img/road-driving.jpg');
  background-size: cover; background-position: center; background-repeat: no-repeat;
  padding: 100px 0 60px; text-align: center; position: relative;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(21,101,192,0.88) 0%, rgba(13,71,161,0.92) 100%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); margin-bottom: 0.75rem; }
.page-hero p { color: rgba(255,255,255,0.8); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }
.breadcrumb { display: flex; gap: 0.5rem; align-items: center; justify-content: center; margin-bottom: 1.25rem; font-size: 0.82rem; }
.breadcrumb a { color: rgba(255,255,255,0.7); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { color: rgba(255,255,255,0.5); }
.breadcrumb .sep { color: rgba(255,255,255,0.35); }

/* ===================== ATELIER / ENTRETIEN ===================== */
.atelier-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.5rem; }
.atelier-item {
  background: var(--white); border-radius: 12px; padding: 1.75rem;
  box-shadow: var(--shadow); display: flex; gap: 1.25rem; align-items: flex-start;
}
.atelier-icon { font-size: 2rem; flex-shrink: 0; }
.atelier-item h4 { color: var(--anthracite); font-size: 1rem; margin-bottom: 0.4rem; }
.atelier-item p { color: var(--gray-text); font-size: 0.88rem; margin: 0; }

/* ===================== TARIFS ENTRETIEN ===================== */
.tarifs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.tarif-item {
  background: var(--white); border-radius: 8px; padding: 1.25rem;
  text-align: center; border: 1px solid var(--silver-light);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.tarif-item .tarif-label { font-size: 0.85rem; color: var(--gray-text); margin-bottom: 0.5rem; }
.tarif-item .tarif-price { font-size: 1.35rem; font-weight: 700; color: var(--blue-dark); }
.tarif-item .tarif-note { font-size: 0.75rem; color: var(--silver-dark); margin-top: 0.25rem; }

/* ===================== FAQ ===================== */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--silver-light); }
.faq-question {
  width: 100%; background: none; border: none; text-align: left;
  padding: 1.2rem 0; display: flex; justify-content: space-between; align-items: center;
  font-family: 'Roboto', sans-serif; font-size: 1rem; font-weight: 500;
  color: var(--anthracite); cursor: pointer; transition: var(--transition);
}
.faq-question:hover { color: var(--blue-dark); }
.faq-icon { font-size: 1.2rem; transition: var(--transition); color: var(--blue-dark); }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-answer-inner { padding: 0 0 1.25rem; color: var(--gray-text); font-size: 0.95rem; line-height: 1.7; }

/* ===================== CONTACT ===================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 3rem; }
.contact-block { margin-bottom: 2rem; }
.contact-block h3 { color: var(--anthracite); margin-bottom: 1rem; font-size: 1.05rem; border-bottom: 2px solid var(--blue-pale); padding-bottom: 0.5rem; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 0.85rem; }
.contact-item-icon { font-size: 1.2rem; margin-top: 0.1rem; flex-shrink: 0; }
.contact-item-text { font-size: 0.92rem; color: var(--gray-text); line-height: 1.5; }
.contact-item-text strong { color: var(--anthracite); display: block; }

.contact-form { background: var(--white); border-radius: 16px; padding: 2.5rem; box-shadow: var(--shadow); border-top: 4px solid var(--blue-dark); }
.contact-form h3 { color: var(--anthracite); margin-bottom: 0.5rem; }
.contact-form > p { color: var(--gray-text); margin-bottom: 1.75rem; font-size: 0.9rem; }

.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; color: var(--anthracite); font-size: 0.82rem; font-weight: 500; margin-bottom: 0.4rem; text-transform: uppercase; letter-spacing: 0.8px; }
.form-group select, .form-group input[type="text"], .form-group input[type="email"],
.form-group input[type="tel"], .form-group textarea {
  width: 100%; background: var(--gray-bg); border: 1px solid #CFD8DC;
  color: var(--anthracite); padding: 0.75rem 1rem; border-radius: var(--radius);
  font-family: 'Roboto', sans-serif; font-size: 0.95rem; transition: var(--transition);
}
.form-group select:focus, .form-group input:focus, .form-group textarea:focus {
  outline: none; border-color: var(--blue-dark); background: var(--white); box-shadow: 0 0 0 3px rgba(21,101,192,0.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-submit-note { font-size: 0.78rem; color: var(--silver-dark); margin-top: 0.75rem; }

/* ===================== OCCASIONS CERTIFIÉES ===================== */
.certif-banner {
  background: url('../img/suv-dark.jpg') center/cover no-repeat;
  padding: 3rem 0; text-align: center; position: relative;
}
.certif-banner::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(21,101,192,0.88), rgba(13,71,161,0.92));
}
.certif-banner .container { position: relative; z-index: 1; }
.certif-banner h2 { color: var(--white); margin-bottom: 0.75rem; }
.certif-banner p { color: rgba(255,255,255,0.8); max-width: 600px; margin: 0 auto 1.5rem; }

/* ===================== PICARDIE LOCAL ===================== */
.local-card {
  background: var(--white); border-radius: 12px; padding: 2rem;
  box-shadow: var(--shadow); border-left: 5px solid var(--blue-dark);
}
.local-card h3 { color: var(--blue-dark); margin-bottom: 0.75rem; font-size: 1.1rem; }
.local-card p { color: var(--gray-text); font-size: 0.92rem; margin: 0; }
.local-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; }

/* ===================== ANIMATIONS ===================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ===================== FOOTER ===================== */
footer {
  background: var(--anthracite); color: var(--silver); padding: 4rem 0 2rem;
  border-top: 4px solid var(--blue-dark);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 3rem; }
.footer-brand p { font-size: 0.88rem; margin-top: 1rem; line-height: 1.7; max-width: 280px; color: var(--silver); }
.footer-col h4 { color: var(--white); font-size: 0.88rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 1.25rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul li a { color: var(--silver); font-size: 0.88rem; transition: var(--transition); }
.footer-col ul li a:hover { color: var(--white); }
.footer-logo-wrap { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.footer-logo-wrap .logo-icon { width: 40px; height: 40px; font-size: 0.9rem; }
.footer-logo-wrap .logo-text { font-size: 1rem; color: var(--white); }
.footer-logo-wrap .logo-text span { color: var(--silver); }
.footer-bottom {
  border-top: 1px solid #37474F; padding-top: 2rem;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem; font-size: 0.82rem;
}

/* ===================== 404 ===================== */
.error-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; background: var(--blue-dark); }
.error-code { font-size: 8rem; font-weight: 900; color: rgba(255,255,255,0.2); line-height: 1; margin-bottom: 0.5rem; }
.error-page h2 { color: var(--white); font-size: 1.8rem; margin-bottom: 1rem; }
.error-page p { color: rgba(255,255,255,0.7); max-width: 420px; margin: 0 auto 2rem; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .top-bar-inner { flex-direction: column; gap: 0.25rem; }
  nav { display: none; position: fixed; top: 73px; left: 0; right: 0; bottom: 0; background: var(--anthracite); flex-direction: column; padding: 2rem; gap: 0.5rem; overflow-y: auto; z-index: 999; }
  nav.open { display: flex; }
  nav a { font-size: 1.05rem; padding: 0.85rem 1rem; border-bottom: 1px solid #37474F; color: var(--silver); }
  .burger { display: block; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero-btns { flex-direction: column; }
  .btn { justify-content: center; }
  .hero { min-height: auto; padding: 5rem 0 3rem; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-right: none; }
}
