/* =========================================================
   Vocarz — page vitrine racine
   Mobile-first. Palette provisoire, à ajuster sur le logo réel.
   ========================================================= */

:root {
  --navy: #0B1F3A;
  --navy-light: #14294f;
  --accent-green: #77E101;
  --accent-green-dark: #6BCB01;
  --accent-blue: #3B82C4;
  --bg: #F7F9FC;
  --white: #FFFFFF;
  --text: #1A1F2B;
  --text-muted: #5A6578;
  --border: #E2E6ED;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius: 10px;
  --shadow: 0 2px 10px rgba(11, 31, 58, 0.08);
  --shadow-lg: 0 8px 30px rgba(11, 31, 58, 0.12);
  --header-h: 64px;
  --topbar-h: 40px;
  --whatsapp-green: #25D366;
}

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.6em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent-blue);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- bascule de langue (data-lang) ---------- */
[data-lang] { display: none; }
html.lang-fr [data-lang="fr"] { display: revert; }
html.lang-en [data-lang="en"] { display: revert; }

/* ---------- boutons ---------- */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--accent-blue);
  color: var(--white);
}
.btn-primary:hover { background: #2f6ea8; }

.btn-accent {
  background: var(--accent-green);
  color: var(--navy);
}
.btn-accent:hover { background: var(--accent-green-dark); }

.btn-header { padding: 6px 10px; font-size: 0.72rem; white-space: nowrap; }
.btn-large { padding: 15px 30px; font-size: 1.05rem; }
.btn-small { padding: 8px 16px; font-size: 0.9rem; }

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  color: var(--whatsapp-green);
  border-color: var(--whatsapp-green);
}
.btn-whatsapp:hover {
  background: var(--whatsapp-green);
  color: var(--white);
}

.btn-outline {
  background: var(--white);
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}

/* ---------- bouton whatsapp flottant ---------- */
.whatsapp-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 95;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--whatsapp-green);
  color: var(--white);
  box-shadow: var(--shadow-lg);
  transition: transform 0.15s ease;
}
.whatsapp-fab:hover { transform: scale(1.06); }

/* ---------- bandeau utilitaire ---------- */
.top-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--topbar-h);
  background: var(--accent-blue);
  color: var(--white);
  z-index: 101;
  font-size: 0.8rem;
}
.top-bar-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.top-bar-info {
  display: flex;
  align-items: center;
  gap: 18px;
  overflow-x: auto;
  white-space: nowrap;
}
.top-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--white);
  text-decoration: none;
}
.top-bar-item svg { flex-shrink: 0; }
.top-bar-address, .top-bar-hours { display: none; }
.top-bar-social {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.top-bar-social a { color: var(--white); display: inline-flex; }

/* ---------- header ---------- */
.site-header {
  position: fixed;
  top: var(--topbar-h); left: 0; right: 0;
  height: var(--header-h);
  background: var(--navy);
  z-index: 100;
  box-shadow: none;
  transition: box-shadow 0.15s ease;
}
.site-header.is-scrolled {
  box-shadow: var(--shadow);
}
.header-inner {
  height: 100%;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.logo {
  display: inline-flex;
  align-items: center;
  color: var(--white);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.logo-img {
  height: 28px;
  width: auto;
  display: block;
}
.header-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.lang-toggle {
  display: flex;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius);
  overflow: hidden;
}
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  color: var(--white);
  border: none;
  padding: 5px 7px;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}
.lang-btn[aria-pressed="true"] {
  background: var(--accent-blue);
}
.lang-flag {
  font-size: 1rem;
  line-height: 1;
}

@media (max-width: 399px) {
  .lang-flag { display: none; }
  .lang-btn { padding: 5px 6px; }
}

main { padding-top: calc(var(--header-h) + var(--topbar-h)); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(11, 31, 58, 0.92) 0%, rgba(11, 31, 58, 0.55) 100%),
    url('../img/hero.jpg') center/cover no-repeat;
  color: var(--white);
  min-height: 72vh;
  display: flex;
  align-items: center;
  padding: 64px 0 56px;
}
.hero-inner { width: 100%; position: relative; z-index: 2; }

/* voiture qui traverse le hero, sous le texte, en boucle discrète */
.hero-car-track {
  position: absolute;
  left: 0;
  bottom: 30px;
  width: 100%;
  height: 40px;
  z-index: 1;
  pointer-events: none;
  overflow: visible;
}
.hero-car {
  position: absolute;
  top: 50%;
  left: 0;
  width: 70px;
  height: auto;
  opacity: 0.3;
  transform: translate(-100px, -50%);
  animation: hero-car-drive 18s linear infinite;
}
@keyframes hero-car-drive {
  from { transform: translate(-100px, -50%); }
  to   { transform: translate(calc(100vw + 40px), -50%); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-car { animation: none; left: -200px; }
}
@media (max-width: 599px) {
  .hero-car { width: 45px; }
  .hero-car-track { bottom: 20px; height: 28px; }
}
.hero h1 {
  font-size: 1.9rem;
  max-width: 20ch;
}
.hero-price-badge {
  display: inline-block;
  background: var(--accent-green);
  color: var(--navy);
  font-weight: 700;
  font-size: 1.15rem;
  padding: 8px 18px;
  border-radius: 999px;
  margin: 14px 0;
}
.hero-subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.85);
  max-width: 52ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}

/* ---------- sections génériques ---------- */
.section { padding: 56px 0; }
.section h1,
.section h2 {
  font-size: 1.6rem;
  text-align: center;
  margin-bottom: 36px;
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

/* ---------- cartes "pourquoi Vocarz" ---------- */
.why-vocarz { background: var(--white); }
.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: left;
}
.feature-icon {
  color: var(--accent-blue);
  margin-bottom: 12px;
}
.feature-card h3 { font-size: 1.1rem; }
.feature-card p { color: var(--text-muted); margin: 0; }

.badge-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
}
.badge-pill {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ---------- blog / conseils voyage ---------- */
.blog { background: var(--white); }
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.blog-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  text-align: left;
  display: flex;
  flex-direction: column;
}
.blog-illustration {
  height: 150px;
  flex-shrink: 0;
  width: 100%;
  object-fit: cover;
  display: block;
}
.blog-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.blog-card-body h3 { font-size: 1.1rem; margin: 0 0 8px; }
.blog-card-body p { color: var(--text-muted); margin: 0 0 16px; flex-grow: 1; }
.blog-link {
  color: var(--accent-blue);
  font-weight: 600;
  text-decoration: none;
  align-self: flex-start;
}
.blog-link:hover { text-decoration: underline; }
.blog-cta { text-align: center; margin-top: 32px; }

/* ---------- nos voitures disponibles ---------- */
.our-cars { background: var(--bg); }
.cars-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.car-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 20px 0 20px;
}
.car-name {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 20px 12px;
}
.car-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(59, 130, 196, 0.12);
  color: var(--accent-blue);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  margin: 0 20px 16px;
}
.car-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 16px;
  margin: 0 20px 18px;
  width: calc(100% - 40px);
}
.car-spec-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.car-spec-item svg { color: var(--accent-blue); flex-shrink: 0; }
.car-photo {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  object-position: center center;
  margin-bottom: 20px;
}
.car-card .btn-small {
  display: block;
  width: calc(100% - 40px);
  margin: 0 20px;
  text-align: center;
}
.car-card .btn-accent {
  background: var(--white);
  color: var(--navy);
  border-color: var(--navy);
  font-weight: 700;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.car-card .btn-accent:hover {
  background: var(--navy);
  color: var(--white);
}

/* ---------- avis clients ---------- */
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin: 0;
  box-shadow: var(--shadow);
}
.stars {
  color: #E8A93A;
  font-size: 1.1rem;
  letter-spacing: 2px;
  margin-bottom: 10px;
}
.testimonial-card blockquote { margin: 0 0 14px; }
.testimonial-card p { color: var(--text); font-style: italic; }
.testimonial-card figcaption {
  display: flex;
  flex-direction: column;
  font-style: normal;
}
.reviewer-name { font-weight: 700; }
.reviewer-origin { color: var(--text-muted); font-size: 0.9rem; }

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px 20px;
}
.faq-item summary {
  cursor: pointer;
  padding: 16px 0;
  font-weight: 600;
  list-style: none;
  position: relative;
  padding-right: 28px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 14px;
  font-size: 1.3rem;
  color: var(--accent-blue);
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p {
  color: var(--text-muted);
  padding-bottom: 16px;
}

/* ---------- vidéo témoignages ---------- */
.video-testimonials { background: var(--white); }
.video-testimonials .section-intro {
  text-align: center;
  color: var(--text-muted);
  margin: -20px 0 32px;
}
.testimonial-video {
  display: block;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 9 / 16;
  margin: 0 auto;
  background: var(--navy);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.85);
  padding: 48px 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
.footer-col h3 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 14px;
}
.footer-col p { color: rgba(255,255,255,0.7); }
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col a { text-decoration: none; color: rgba(255,255,255,0.8); }
.footer-col a:hover { color: var(--white); }
.logo-footer { display: inline-block; margin-bottom: 12px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 40px;
  padding: 18px 20px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}

/* ---------- responsive ---------- */
@media (min-width: 600px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .cars-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 2.4rem; }
}

@media (min-width: 900px) {
  .header-inner { gap: 12px; }
  .logo-img { height: 40px; }
  .header-actions { gap: 10px; }
  .lang-btn { padding: 8px 12px; font-size: 0.85rem; gap: 6px; }
  .btn-header { padding: 10px 18px; font-size: 0.95rem; }
  .card-grid { grid-template-columns: repeat(4, 1fr); }
  .why-vocarz .card-grid { grid-template-columns: repeat(3, 1fr); }
  .testimonials .card-grid { grid-template-columns: repeat(2, 1fr); }
  .cars-grid { grid-template-columns: repeat(3, 1fr); }
  .blog-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-inner { grid-template-columns: repeat(5, 1fr); }
  .hero { min-height: 88vh; }
  .hero h1 { font-size: 2.8rem; }
  .hero-subtitle { font-size: 1.15rem; }
  .top-bar-address, .top-bar-hours { display: inline-flex; }
}
