/*
Theme Name: KM Car
Theme URI: https://kmcar.ma
Author: KmCar
Author URI: https://kmcar.ma
Description: Thème premium KM Car pour la location de voitures au Maroc. Design validé, compatible Elementor, responsive et SEO-friendly.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.1
License: GNU General Public License v2 or later
Text Domain: km-car
*/

/* ============================================
   KMCAR — Premium Car Rental Morocco
   Main Stylesheet
   ============================================ */

/* --- CSS Variables --- */
:root {
  --primary: #111111;
  --secondary: #C8963E;
  --secondary-dark: #A67A2E;
  --secondary-light: #E8C068;
  --gradient-gold: linear-gradient(135deg, #C8963E, #E8C068);
  --background: #F7F7F7;
  --white: #FFFFFF;
  --text: #1A1A1A;
  --muted: #777777;
  --available: #16A34A;
  --unavailable: #D90429;
  --maintenance: #F59E0B;
  --border: #E5E5E5;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --shadow-xl: 0 12px 48px rgba(0,0,0,0.15);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-main: 'Inter', 'Segoe UI', sans-serif;
  --header-height: 80px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  color: var(--text);
  background: var(--background);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

ul, ol {
  list-style: none;
}

button {
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  transition: all var(--transition);
}

input, select {
  font-family: inherit;
  font-size: inherit;
}

/* --- Utilities --- */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

.section--alt {
  background: var(--white);
}

.section-title {
  text-align: center;
  margin-bottom: 56px;
}

.section-title h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-title p {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* --- Animations --- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes whatsappPulse {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.4); }
  70% { box-shadow: 0 0 0 15px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- HEADER --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  transition: box-shadow var(--transition), background var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
  background: rgba(255,255,255,0.98);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header__nav a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  position: relative;
}

.header__nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-gold);
  transition: width var(--transition);
}

.header__nav a:hover::after {
  width: 100%;
}

.header__nav a:hover {
  color: var(--secondary-dark);
}

.header__cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--gradient-gold);
  color: var(--primary);
  font-weight: 700;
}

.btn--primary:hover {
  background: linear-gradient(135deg, #A67A2E, #D4A843);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(200,150,62,0.35);
}

.btn--outline {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border);
}

.btn--outline:hover {
  border-color: var(--secondary);
  background: var(--gradient-gold);
  color: var(--primary);
  font-weight: 700;
}

.btn--white {
  background: var(--white);
  color: var(--primary);
}

.btn--white:hover {
  background: #f0f0f0;
  transform: translateY(-1px);
}

.btn--ghost {
  background: rgba(255,255,255,0.15);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.3);
}

.btn--ghost:hover {
  background: rgba(255,255,255,0.25);
}

.btn--sm {
  padding: 8px 20px;
  font-size: 0.875rem;
}

.btn--lg {
  padding: 16px 36px;
  font-size: 1rem;
}

.btn--whatsapp {
  background: #25D366;
  color: var(--white);
}

.btn--whatsapp:hover {
  background: #1da851;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(37,211,102,0.3);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  background: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  transition: all var(--transition);
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: var(--white);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  z-index: 999;
  transform: translateY(-10px);
  opacity: 0;
  transition: all var(--transition);
}

.mobile-nav.active {
  transform: translateY(0);
  opacity: 1;
}

.mobile-nav a {
  display: block;
  padding: 14px 0;
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.mobile-nav a:last-child {
  border-bottom: none;
}

.mobile-nav .btn {
  width: 100%;
  margin-top: 16px;
}

/* --- HERO --- */
.hero {
  padding-top: calc(var(--header-height) + 60px);
  padding-bottom: 80px;
  background: var(--white);
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero__content {
  animation: slideInLeft 0.8s ease forwards;
}

.hero__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(200,150,62,0.08);
  border: 1px solid rgba(200,150,62,0.2);
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--secondary-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
}

.hero__title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--primary);
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}

.hero__title span {
  color: var(--secondary);
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: 1.125rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 480px;
}

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

.hero__visual {
  position: relative;
  animation: slideInRight 0.8s ease forwards;
}

.hero__image-wrapper {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.hero__image-wrapper img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.hero__floating-card {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-lg);
  animation: float 3s ease-in-out infinite;
}

.hero__floating-card--status {
  bottom: -20px;
  left: -20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero__floating-card--status .status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--available);
  animation: pulse 2s ease-in-out infinite;
}

.hero__floating-card--status .status-text {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}

.hero__floating-card--status .status-sub {
  font-size: 0.75rem;
  color: var(--muted);
}

.hero__floating-card--stats {
  top: 20px;
  right: -20px;
  text-align: center;
}

.hero__floating-card--stats .stat-number {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--secondary);
}

.hero__floating-card--stats .stat-label {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 500;
}

/* --- FLEET / CARS SECTION --- */
.fleet__filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-tab {
  padding: 10px 20px;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  background: var(--white);
  color: var(--muted);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all var(--transition);
}

.filter-tab:hover,
.filter-tab.active {
  background: var(--gradient-gold);
  color: var(--primary);
  border-color: var(--secondary);
  font-weight: 700;
}

.filter-price {
  display: flex;
  align-items: center;
  gap: 12px;
}

.filter-price label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
}

.filter-price input {
  width: 100px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  outline: none;
  transition: border-color var(--transition);
}

.filter-price input:focus {
  border-color: var(--secondary);
}

/* --- Mobile compact filter bar (hidden on desktop) --- */
.fleet__mobile-filterbar {
  display: none;
}

/* --- FILTER BOTTOM SHEET (mobile) --- */
.filters-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1200;
  background: var(--white);
  border-radius: 20px 20px 0 0;
  padding: 20px 24px calc(24px + env(safe-area-inset-bottom, 0px));
  transform: translateY(100%);
  transition: transform 0.3s ease;
  box-shadow: 0 -8px 40px rgba(0,0,0,0.15);
  max-height: 90vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.filters-sheet.active {
  transform: translateY(0);
}

.filters-sheet__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1199;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.filters-sheet__backdrop.active {
  opacity: 1;
  pointer-events: all;
}

.filters-sheet__handle {
  width: 40px;
  height: 4px;
  border-radius: 4px;
  background: var(--border);
  margin: 0 auto 16px;
}

.filters-sheet__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.filters-sheet__header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

.filters-sheet__close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--background);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--muted);
}

.filters-sheet__close:hover {
  background: var(--border);
  color: var(--text);
}

.filters-sheet__group {
  margin-bottom: 24px;
}

.filters-sheet__group-title {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.filters-sheet__options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filters-sheet__chip {
  padding: 10px 18px;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  background: var(--white);
  color: var(--text);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all var(--transition);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.filters-sheet__chip:hover {
  border-color: var(--secondary);
}

.filters-sheet__chip.active {
  background: var(--gradient-gold);
  color: var(--primary);
  border-color: var(--secondary);
  font-weight: 700;
}

.filters-sheet__price {
  display: flex;
  gap: 12px;
  align-items: center;
}

.filters-sheet__price input {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  outline: none;
  min-height: 44px;
  transition: border-color var(--transition);
}

.filters-sheet__price input:focus {
  border-color: var(--secondary);
}

.filters-sheet__price span {
  color: var(--muted);
  flex-shrink: 0;
}

.filters-sheet__actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.filters-sheet__actions .btn {
  flex: 1;
  min-height: 50px;
}

.fleet__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* --- VEHICLE CARD --- */
.vehicle-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all var(--transition);
  position: relative;
}

.vehicle-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.vehicle-card__image {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}
.vehicle-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.vehicle-card:hover .vehicle-card__image img {
  transform: scale(1.05);
}

.vehicle-card__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  z-index: 2;
}

.vehicle-card__badge--available {
  background: rgba(22,163,74,0.12);
  color: var(--available);
}

.vehicle-card__badge--rented {
  background: rgba(217,4,41,0.12);
  color: var(--unavailable);
}

.vehicle-card__badge--maintenance {
  background: rgba(245,158,11,0.12);
  color: var(--maintenance);
}

.vehicle-card__body {
  padding: 20px;
}

.vehicle-card__brand {
  font-size: 0.8125rem;
  color: var(--muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.vehicle-card__name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.vehicle-card__year {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 12px;
}

.vehicle-card__price {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--secondary-dark);
  margin-bottom: 16px;
}

.vehicle-card__price span {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--muted);
}

.vehicle-card__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.vehicle-card__spec {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--background);
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  color: var(--muted);
  font-weight: 500;
}

.vehicle-card__spec i {
  font-size: 0.875rem;
  color: var(--primary);
}

.vehicle-card__status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  margin-bottom: 16px;
}

.vehicle-card__status-text {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 600;
}

.vehicle-card__status-text--available {
  color: var(--available);
}

.vehicle-card__status-text--rented {
  color: var(--unavailable);
}

.vehicle-card__status-text--maintenance {
  color: var(--maintenance);
}

.vehicle-card__status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.vehicle-card__status-dot--available {
  background: var(--available);
}

.vehicle-card__status-dot--rented {
  background: var(--unavailable);
}

.vehicle-card__status-dot--maintenance {
  background: var(--maintenance);
}

.vehicle-card__availability {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 16px;
  padding: 10px 14px;
  background: var(--background);
  border-radius: var(--radius-sm);
  line-height: 1.5;
}

.vehicle-card__actions {
  display: flex;
  gap: 10px;
}

.vehicle-card__actions .btn {
  flex: 1;
}

/* --- WHY US --- */
.why-us__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.why-us__card {
  text-align: center;
  padding: 40px 24px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.why-us__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.why-us__icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: rgba(200,150,62,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.5rem;
  color: var(--secondary-dark);
}

.why-us__card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.why-us__card p {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.6;
}

/* --- HOW IT WORKS --- */
.how-it-works__timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.how-it-works__step {
  text-align: center;
  position: relative;
  padding: 0 16px;
}

.how-it-works__step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gradient-gold);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0 auto 20px;
  position: relative;
  z-index: 2;
}

.how-it-works__step h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.how-it-works__step p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
}

/* Connector line */
.how-it-works__timeline::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 15%;
  right: 15%;
  height: 2px;
  background: var(--border);
  z-index: 1;
}

/* --- CTA BANNER --- */
.cta-banner {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
}

.cta-banner__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(17,17,17,0.85), rgba(17,17,17,0.7));
  z-index: 1;
}

.cta-banner__image {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.cta-banner__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-banner .container {
  position: relative;
  z-index: 2;
  text-align: center;
}

.cta-banner h2 {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.cta-banner p {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 36px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.cta-banner__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- TESTIMONIALS --- */
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.testimonial-card__stars {
  color: #F59E0B;
  font-size: 1rem;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.testimonial-card__text {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonial-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--background);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--secondary);
  font-size: 1.125rem;
}

.testimonial-card__info h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--primary);
}

.testimonial-card__info p {
  font-size: 0.8125rem;
  color: var(--muted);
}

/* --- FAQ --- */
.faq__list {
  max-width: 760px;
  margin: 0 auto;
}

.faq__item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  background: var(--white);
  overflow: hidden;
  transition: all var(--transition);
}

.faq__item.active {
  border-color: var(--secondary);
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  transition: color var(--transition);
  gap: 16px;
}

.faq__question:hover {
  color: var(--secondary);
}

.faq__question i {
  font-size: 0.875rem;
  transition: transform var(--transition);
  flex-shrink: 0;
}

.faq__item.active .faq__question i {
  transform: rotate(180deg);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq__item.active .faq__answer {
  max-height: 300px;
}

.faq__answer-inner {
  padding: 0 24px 20px;
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.7;
}

/* --- FOOTER --- */
.footer {
  background: var(--primary);
  color: rgba(255,255,255,0.7);
  padding: 80px 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer__brand h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
}

.footer__brand h3 span {
  color: var(--secondary);
}

.footer__brand p {
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

.footer__social {
  display: flex;
  gap: 12px;
}

.footer__social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: all var(--transition);
}

.footer__social a:hover {
  background: var(--gradient-gold);
  color: var(--primary);
}

.footer__col h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
}

.footer__col ul li {
  margin-bottom: 12px;
}

.footer__col ul li a {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}

.footer__col ul li a:hover {
  color: var(--white);
}

.footer__col .contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 0.9375rem;
}

.footer__col .contact-item i {
  margin-top: 4px;
  color: var(--secondary);
  width: 16px;
}

.footer__bottom {
  padding: 24px 0;
  text-align: center;
  font-size: 0.875rem;
}

/* --- WHATSAPP FLOAT --- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.75rem;
  box-shadow: 0 4px 24px rgba(37,211,102,0.35);
  z-index: 900;
  transition: all var(--transition);
  animation: whatsappPulse 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 32px rgba(37,211,102,0.45);
}

.whatsapp-float .tooltip {
  position: absolute;
  right: 72px;
  background: var(--white);
  color: var(--text);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.whatsapp-float:hover .tooltip {
  opacity: 1;
}

/* --- MOBILE BOTTOM BAR --- */
.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  z-index: 950;
  padding: 10px 16px;
  gap: 10px;
}

.mobile-bottom-bar a,
.mobile-bottom-bar button {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
}

.mobile-bottom-bar .bar-whatsapp {
  background: #25D366;
  color: var(--white);
}

.mobile-bottom-bar .bar-call {
  background: var(--primary);
  color: var(--white);
}

.mobile-bottom-bar .bar-reserve {
  background: var(--secondary);
  color: var(--white);
}

/* --- MODAL / RESERVATION --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--white);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal {
  transform: translateY(0) scale(1);
}

.modal__header {
  padding: 24px 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal__header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

.modal__close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--background);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--muted);
}

.modal__close:hover {
  background: var(--border);
  color: var(--text);
}

.modal__body {
  padding: 24px 28px;
}

.modal__vehicle {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--background);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}

.modal__vehicle img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.modal__vehicle-info h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
}

.modal__vehicle-info p {
  font-size: 0.875rem;
  color: var(--secondary);
  font-weight: 600;
}

.modal__form-group {
  margin-bottom: 20px;
}

.modal__form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
}

.modal__form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  outline: none;
  transition: border-color var(--transition);
}

.modal__form-group input:focus {
  border-color: var(--secondary);
}

.modal__footer {
  padding: 0 28px 24px;
  display: flex;
  gap: 12px;
}

.modal__footer .btn {
  flex: 1;
}

/* --- NO RESULTS --- */
.fleet__no-results {
  text-align: center;
  padding: 60px 20px;
  display: none;
}

.fleet__no-results.show {
  display: block;
}

.fleet__no-results i {
  font-size: 3rem;
  color: var(--border);
  margin-bottom: 16px;
}

.fleet__no-results h3 {
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 8px;
}

.fleet__no-results p {
  color: var(--muted);
}

/* ============================================
   RESPONSIVE — TABLET (768px–1024px)
   ============================================ */
@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero__title {
    font-size: 2.75rem;
  }

  .hero__visual {
    max-width: 600px;
    margin: 0 auto;
  }

  .fleet__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-us__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablet: horizontal scroll chips, never break layout */
@media (min-width: 768px) and (max-width: 1024px) {
  .filter-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
    max-width: 100%;
  }

  .filter-tabs::-webkit-scrollbar {
    display: none;
  }

  .filter-tab {
    flex-shrink: 0;
    white-space: nowrap;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 68px;
  }

  .section {
    padding: 64px 0;
  }

  .section-title h2 {
    font-size: 1.875rem;
  }

  .header__nav,
  .header__cta .btn--outline {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-nav {
    display: block;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--header-height) + 32px);
    padding-bottom: 48px;
  }

  .hero__title {
    font-size: 2rem;
  }

  .hero__subtitle {
    font-size: 1rem;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .hero__image-wrapper img {
    height: 280px;
  }

  .hero__floating-card--status {
    bottom: -10px;
    left: -10px;
    padding: 12px 16px;
  }

  .hero__floating-card--stats {
    top: 10px;
    right: -10px;
    padding: 12px 16px;
  }

  .fleet__grid {
    grid-template-columns: 1fr;
  }

  .why-us__grid {
    grid-template-columns: 1fr;
  }

  .how-it-works__timeline {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .how-it-works__timeline::before {
    display: none;
  }

  .cta-banner h2 {
    font-size: 1.875rem;
  }

  .testimonials__grid {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .mobile-bottom-bar {
    display: flex;
  }

  .whatsapp-float {
    bottom: 80px;
  }
}

/* ============================================
   MOBILE — Filters become Bottom Sheet
   ============================================ */
@media (max-width: 767px) {
  /* Hide desktop horizontal filter bar */
  .fleet__filters {
    display: none;
  }

  /* Show compact bar: [Filtrer] [Tous] */
  .fleet__mobile-filterbar {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 24px;
  }

  .fleet__mobile-filterbar .btn {
    flex: 1;
    min-height: 50px;
    justify-content: center;
    border-radius: 12px;
  }
}

@media (max-width: 390px) {
  .container {
    padding: 0 16px;
  }

  .hero__title {
    font-size: 1.75rem;
  }

  .vehicle-card__body {
    padding: 16px;
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.875rem;
  }
}

/* --- Count badge --- */
.fleet__count {
  font-size: 0.9375rem;
  color: var(--muted);
  margin-bottom: 24px;
}

.fleet__count strong {
  color: var(--primary);
}

/* --- Vehicle card image stable ratio (avoid layout shift) --- */
@media (max-width: 767px) {
  .vehicle-card__image {
    aspect-ratio: 16 / 10;
  }

  .vehicle-card__spec {
    padding: 8px 14px;
    min-height: 40px;
  }

  .vehicle-card__actions .btn {
    min-height: 48px;
  }

  .filters-sheet__chip {
    min-height: 46px;
  }
}
