/* ==========================================================
   RAMM Location — Glassmorphism theme
   ========================================================== */

:root{
  --navy:        #0b1a3a;
  --navy-deep:   #060f24;
  --accent:      #E11D2E;
  --accent-2:    #FF4A5A;
  --white:       #ffffff;
  --ink:         #12203a;
  --muted:       #5b6b85;

  --glass-bg:      rgba(255,255,255,0.55);
  --glass-bg-dark: rgba(11,26,58,0.42);
  --glass-border:  rgba(255,255,255,0.65);
  --glass-border-dark: rgba(255,255,255,0.22);
  --glass-shadow:  0 12px 40px rgba(11,26,58,0.16);

  --heading: var(--navy);
  --page-bg: #eef2f8;

  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;

  --font: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
}

:root[data-theme="dark"]{
  --ink:    #dde3f0;
  --muted:  #93a1bd;
  --heading:#f4f7fb;
  --page-bg:#0a1120;
  --glass-bg:     rgba(20,29,50,0.6);
  --glass-border: rgba(255,255,255,0.1);
  --glass-shadow: 0 12px 40px rgba(0,0,0,0.5);
}

*{ box-sizing: border-box; }
html{
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}
:root{ color-scheme: light; }
:root[data-theme="dark"]{ color-scheme: dark; }
button, a, .pill, .faq-q{ touch-action: manipulation; }

body{
  margin:0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--page-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 0.3s ease, color 0.3s ease;
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration:none; }
button{ font-family: inherit; cursor:pointer; }
input, select, textarea{ font-family: inherit; }

:focus-visible{
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

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

/* ---------- Ambient background (fixed, behind everything) ---------- */
.bg-scene{
  position: fixed;
  top:0; right:0; bottom:0; left:0;
  z-index: -1;
  overflow: hidden;
  background: linear-gradient(180deg, #dbe6f5 0%, #eef2f8 22%, #eef2f8 100%);
}
.bg-photo{
  position:absolute; top:0; right:0; bottom:0; left:0;
  background: linear-gradient(160deg, rgba(11,26,58,0.06), rgba(225,29,46,0.05));
}
.bg-blob{
  position:absolute;
  border-radius:50%;
  filter: blur(90px);
  opacity:0.5;
}
.blob-orange{
  width:520px; height:520px;
  top:-120px; right:-120px;
  background: radial-gradient(circle, rgba(225,29,46,0.55), transparent 70%);
}
.blob-navy{
  width:620px; height:620px;
  top:900px; left:-200px;
  background: radial-gradient(circle, rgba(11,26,58,0.35), transparent 70%);
}
.bg-grain{
  position:absolute; top:0; right:0; bottom:0; left:0;
  background-image: radial-gradient(rgba(255,255,255,0.4) 1px, transparent 1px);
  background-size: 3px 3px;
  opacity:0.25;
}

/* ---------- Reusable glass surface ---------- */
.glass{
  background: var(--glass-bg);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight:600;
  font-size:0.95rem;
  border: none;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn svg{ flex-shrink:0; transition: transform 0.2s ease; }
.btn:hover svg{ transform: translateX(3px); }

.btn-primary{
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: #fff;
  box-shadow: 0 10px 24px rgba(225,29,46,0.38);
}
.btn-primary:hover{ transform: translateY(-2px); box-shadow: 0 14px 30px rgba(225,29,46,0.46); }

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

.btn-glass{
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(11,26,58,0.14);
  color: var(--heading);
}
.btn-glass:hover{ background: rgba(255,255,255,0.8); transform: translateY(-2px); }

.btn-glass-light{
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.4);
  color: #fff;
}
.btn-glass-light:hover{ background: rgba(255,255,255,0.28); transform: translateY(-2px); }

.btn-whatsapp{
  background: linear-gradient(135deg, #35d16a, #25c258);
  color:#fff;
  box-shadow: 0 10px 24px rgba(37,194,88,0.4);
}
.btn-whatsapp:hover{ transform: translateY(-2px); }

.btn-block{ width:100%; }
.btn-text{
  background:none; border:none; color: var(--muted);
  padding: 10px; font-weight:500; text-decoration: underline;
  display:block; margin: 14px auto 0; text-align:center;
}

/* ==========================================================
   HEADER
   ========================================================== */
.site-header{
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 1320px;
  z-index: 200;
  border-radius: var(--radius-lg);
}
.header-inner{
  max-width: none;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 20px;
  padding: 10px 20px;
}
.brand{
  display:flex; align-items:center; gap:10px;
  flex-shrink:0;
}
.brand-logo{ height:50px; width:auto; }
.brand-text{ display:none !important; }
.brand-text{ display:flex; flex-direction:column; line-height:1.1; }
.brand-name{ font-weight:800; font-size:1.05rem; color: var(--heading); letter-spacing:0.2px; }
.brand-dot{ color: var(--accent); }
.brand-tagline{ font-size:0.62rem; letter-spacing:0.06em; color: var(--muted); font-weight:500; }

.main-nav{
  display:flex; align-items:center; gap: 28px;
}
.nav-link{
  font-size:0.92rem; font-weight:500; color: var(--ink);
  position:relative; padding: 6px 2px;
}
.nav-link.active{ color: var(--heading); font-weight:600; }
.nav-link.active::after{
  content:""; position:absolute; left:0; right:0; bottom:-4px;
  height:3px; border-radius:3px; background: var(--accent);
}
.nav-link:hover{ color: var(--accent); }
.nav-cta{ display:none; }

.header-actions{ display:flex; align-items:center; gap:14px; }
.theme-toggle{
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
  width:38px; height:38px; border-radius:50%; border:none; padding:0;
  background: rgba(11,26,58,0.08); color: var(--navy);
  transition: background 0.2s ease, color 0.2s ease;
}
.theme-toggle:hover{ background: rgba(11,26,58,0.14); }
.theme-toggle .icon-moon{ display:none; }
[data-theme="dark"] .theme-toggle{ background: rgba(255,255,255,0.1); color:#f4f7fb; }
[data-theme="dark"] .theme-toggle:hover{ background: rgba(255,255,255,0.18); }
[data-theme="dark"] .theme-toggle .icon-sun{ display:none; }
[data-theme="dark"] .theme-toggle .icon-moon{ display:block; }
.header-phone{
  display:flex; align-items:center; gap:8px;
  font-size:0.88rem; font-weight:500; color: var(--heading);
}
.header-phone svg{ color: var(--accent); }

.hamburger{
  display:none; flex-direction:column; justify-content:center; gap:5px;
  width:36px; height:36px; background:none; border:none;
}
.hamburger span{
  display:block; height:2px; width:22px; background: var(--heading); border-radius:2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.hamburger.open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2){ opacity:0; }
.hamburger.open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================
   HERO — photo plein écran, texte à gauche
   ========================================================== */
.hero{
  position: relative; isolation: isolate;
  min-height: 100vh; min-height: 100svh;
  padding: 120px 0 64px;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.hero-media{
  position: absolute; top:0; right:0; bottom:0; left:0;
  z-index: -1;
  border-radius: 0 0 48px 48px;
  overflow: hidden;
  background: #0b1a3a;
}
.hero-media picture{ display:block; width:100%; height:100%; }
.hero-media img{ display:block; width:100%; height:100%; object-fit: cover; object-position: center center; }
.hero-scrim{
  position:absolute; top:0; right:0; bottom:0; left:0;
  background:
    linear-gradient(100deg, rgba(6,15,36,0.82) 0%, rgba(6,15,36,0.5) 38%, rgba(6,15,36,0.06) 68%),
    linear-gradient(0deg, rgba(6,15,36,0.6) 0%, rgba(6,15,36,0.05) 45%);
}
.hero-inner{ position:relative; display:flex; flex-direction:column; align-items:flex-start; gap:26px; min-width:0; }
.hero-card{ max-width: 700px; min-width:0; color:#fff; }
.eyebrow-pill{
  display:inline-block; padding:6px 16px; border-radius:999px;
  background: var(--accent); color:#fff;
  font-size:0.72rem; font-weight:700; letter-spacing:0.08em; margin-bottom:18px;
}
.hero-title{
  font-size: clamp(2.1rem, 4.2vw, 3.3rem); font-weight:800; line-height:1.1;
  margin:0 0 14px; color:#fff;
}
.hero-title .accent{ color: var(--accent-2); }
.hero-subhead{ font-size:1.15rem; font-weight:600; margin:0 0 12px; color:#fff; }
.hero-body{ font-size:0.98rem; line-height:1.65; color: rgba(255,255,255,0.88); margin:0; max-width:500px; }
.hero-card .hero-title, .hero-card .hero-subhead, .hero-card .hero-body{ text-shadow: 0 3px 18px rgba(0,0,0,0.45); }
.hero-actions{ display:flex; gap:14px; flex-wrap:wrap; }
.hero-actions .btn-glass{ background: rgba(255,255,255,0.86); color: var(--navy); }
.hero-card.reveal{ animation-delay:0.1s; }

@media (max-width: 720px){
  .hero{ padding: 96px 0 28px; }
  .hero-scrim{
    background:
      linear-gradient(180deg, rgba(6,15,36,0.0) 38%, rgba(6,15,36,0.88) 100%);
  }
  .hero-media{ border-radius: 0 0 32px 32px; }
  .hero-inner{ gap:18px; }
  .eyebrow-pill, .hero-body{ display:none; }
  .hero-title{ font-size: clamp(1.9rem, 8.4vw, 2.6rem); margin-bottom:8px; }
  .hero-subhead{ font-size:1rem; margin:0; }
  .hero-actions{ width:100%; }
  .hero-actions .btn{ flex:1 1 auto; }
}
@media (max-width: 380px){
  .hero-actions .btn{ width:100%; }
}
@media (max-height: 480px) and (orientation: landscape){
  .hero{ min-height: 0; padding-top: 90px; }
}

/* ==========================================================
   SECTIONS (generic)
   ========================================================== */
.section{ padding: 90px 0; }
.eyebrow{
  display:block; color: var(--accent); font-weight:600; font-size:0.85rem; margin-bottom:10px;
}
.eyebrow-light{ color: var(--accent-2); }
.section-head{
  display:flex; align-items:flex-end; justify-content:space-between; gap:24px;
  margin-bottom: 42px; flex-wrap:wrap;
}
.section-head.center{ justify-content:center; text-align:center; flex-direction:column; align-items:center; }
.section-head h2{
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  font-weight:800; color: var(--heading); margin:0; line-height:1.25;
}
.link-arrow{
  display:inline-flex; align-items:center; gap:6px;
  font-weight:600; color: var(--heading); font-size:0.92rem;
  flex-shrink:0;
}
.link-arrow svg{ color: var(--accent); transition: transform 0.2s ease; }
.link-arrow:hover svg{ transform: translateX(4px); }

/* ---------- Filter pills ---------- */
.filter-pills{ display:flex; gap:12px; flex-wrap:wrap; margin-bottom: 34px; }
.pill{
  padding: 11px 22px;
  border-radius:999px;
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(11,26,58,0.12);
  font-weight:500; font-size:0.9rem; color: var(--ink);
  transition: all 0.2s ease;
}
.pill:hover{ border-color: var(--accent); }
.pill.active{
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color:#fff; border-color: transparent;
  box-shadow: 0 8px 20px rgba(225,29,46,0.35);
}

/* ---------- Vehicle grid / cards ---------- */
.vehicle-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}
.vehicle-card{
  min-width: 0;
  border-radius: var(--radius-lg);
  padding: 20px;
  display:flex; flex-direction:column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.vehicle-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 20px 46px rgba(11,26,58,0.2);
}
.vehicle-photo{
  position: relative;
  width: 100%;
  min-width: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #fff;
  padding: 0;
  margin-bottom: 16px;
  display:flex; align-items:center; justify-content:center;
  cursor: zoom-in;
}
.vehicle-photo img{
  display:block;
  width: 100%;
  height: 100%;
  min-width: 0;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: inherit;
}
.vehicle-zoom-hint{
  position:absolute; right:10px; bottom:10px;
  width:30px; height:30px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  background: rgba(11,26,58,0.78); color:#fff;
  box-shadow: 0 4px 12px rgba(11,26,58,0.25);
  transition: transform 0.2s ease, background 0.2s ease;
}
.vehicle-photo:hover .vehicle-zoom-hint{ background: var(--accent); transform: scale(1.08); }

/* ---------- Image lightbox ---------- */
.lightbox-overlay{
  position: fixed; top:0; right:0; bottom:0; left:0; z-index: 500;
  display:flex; align-items:center; justify-content:center;
  padding: 32px;
  background: rgba(6,15,30,0.88);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity:0; visibility:hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.lightbox-overlay.open{ opacity:1; visibility:visible; }
.lightbox-img{
  max-width: 92vw; max-width: min(92vw, 900px); max-height: 88vh; max-height: 88dvh;
  width:auto; height:auto; object-fit:contain;
  border-radius: var(--radius-md);
  box-shadow: 0 30px 80px rgba(0,0,0,0.45);
  background: #fff;
  transform: scale(0.96);
  transition: transform 0.25s ease;
}
.lightbox-overlay.open .lightbox-img{ transform: scale(1); }
.lightbox-close{
  position:absolute; top:18px; right:18px;
  width:42px; height:42px; border-radius:50%; border:none;
  display:flex; align-items:center; justify-content:center;
  background: rgba(255,255,255,0.14); color:#fff;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.lightbox-close:hover{ background: var(--accent); }
.vehicle-name{ font-size:1.15rem; font-weight:700; color: var(--heading); margin: 0 0 8px; }
.vehicle-specs{ display:flex; gap:14px; flex-wrap:wrap; margin-bottom:14px; }
.vehicle-specs span{
  display:flex; align-items:center; gap:5px;
  font-size:0.8rem; color: var(--muted); font-weight:500;
}
.vehicle-specs svg{ color: var(--accent); flex-shrink:0; }
.vehicle-price{ margin-bottom:16px; font-size:0.9rem; color: var(--muted); }
.vehicle-price strong{ color: var(--heading); font-size:1.2rem; font-weight:800; }
.vehicle-card .btn{ margin-top:auto; }

/* ==========================================================
   WHY CHOOSE US
   ========================================================== */
.why-panel{
  position:relative;
  border-radius: var(--radius-lg);
  overflow:hidden;
  padding: 56px 48px;
  min-height: 420px;
  display:flex; align-items:center;
}
.why-photo{
  position:absolute; top:0; right:0; bottom:0; left:0; width:100%; height:100%; object-fit:cover; z-index:-2;
}
.why-scrim{
  position:absolute; top:0; right:0; bottom:0; left:0; z-index:-1;
  background: linear-gradient(115deg, rgba(6,15,36,0.88) 20%, rgba(6,15,36,0.55) 55%, rgba(6,15,36,0.25) 100%);
}
.why-content{ max-width:640px; color:#fff; }
.why-title{ font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight:800; margin: 0 0 30px; line-height:1.25; }
.why-features{
  display:grid; grid-template-columns: repeat(2, 1fr); gap: 20px 28px; margin-bottom: 34px;
}
.why-feature{ display:flex; align-items:center; gap:12px; font-size:0.92rem; font-weight:500; line-height:1.35; }
.why-icon{
  width:42px; height:42px; border-radius:50%; flex-shrink:0;
  background: rgba(255,255,255,0.22);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  display:flex; align-items:center; justify-content:center;
  border: 1px solid rgba(255,255,255,0.35);
}

/* ==========================================================
   ABOUT
   ========================================================== */
.about-grid{
  display:grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items:center;
}
.about-media{ border-radius: var(--radius-lg); overflow:hidden; box-shadow: var(--glass-shadow); }
.about-media img{ width:100%; height:100%; object-fit:cover; aspect-ratio: 4/5; object-position: 50% 62%; }
.about-content h2{ font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight:800; color: var(--heading); margin: 0 0 18px; line-height:1.3; }
.about-content p{ color: var(--muted); line-height:1.75; margin: 0 0 32px; }
.about-stats{ display:flex; gap:16px; flex-wrap:wrap; }
.stat{
  border-radius: var(--radius-md); padding: 20px 26px; flex:1; min-width:130px; text-align:center;
}
.stat strong{ display:block; font-size:1.6rem; font-weight:800; color: var(--accent); margin-bottom:4px; }
.stat span{ font-size:0.82rem; color: var(--muted); font-weight:500; }

/* ==========================================================
   TESTIMONIALS
   ========================================================== */
.testimonial-grid{ display:grid; grid-template-columns: repeat(3,1fr); gap:26px; }
.testimonial-card{ border-radius: var(--radius-lg); padding: 30px; }
.stars{ color: var(--accent); letter-spacing:2px; margin-bottom:16px; font-size:0.95rem; }
.testimonial-card p{ color: var(--ink); line-height:1.7; margin: 0 0 22px; font-size:0.95rem; }
.testimonial-author{ display:flex; align-items:center; gap:12px; }
.avatar{
  width:42px; height:42px; border-radius:50%; color:#fff; font-weight:700; font-size:0.85rem;
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.testimonial-author strong{ display:block; font-size:0.92rem; color: var(--heading); }
.testimonial-author span{ font-size:0.8rem; color: var(--muted); }

/* ==========================================================
   FAQ
   ========================================================== */
.faq-list{ display:flex; flex-direction:column; gap:14px; max-width: 820px; }
.faq-item{ border-radius: var(--radius-md); overflow:hidden; }
.faq-q{
  width:100%; display:flex; align-items:center; justify-content:space-between;
  padding: 20px 26px; background:none; border:none; text-align:left;
  font-size:1rem; font-weight:600; color: var(--heading);
}
.faq-q svg{ color: var(--accent); flex-shrink:0; transition: transform 0.25s ease; }
.faq-item.open .faq-q svg{ transform: rotate(45deg); }
.faq-a{
  max-height:0; overflow:hidden; transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 26px;
}
.faq-item.open .faq-a{ max-height:200px; padding: 0 26px 22px; }
.faq-a p{ margin:0; color: var(--muted); line-height:1.65; font-size:0.92rem; }

/* ==========================================================
   WHATSAPP CTA
   ========================================================== */
.wa-panel{
  position:relative; border-radius: var(--radius-lg); overflow:hidden;
  padding: 60px 40px; text-align:center; min-height: 340px;
  display:flex; align-items:center; justify-content:center;
}
.wa-photo{ position:absolute; top:0; right:0; bottom:0; left:0; width:100%; height:100%; object-fit:cover; z-index:-2; }
.wa-scrim{ position:absolute; top:0; right:0; bottom:0; left:0; z-index:-1; background: linear-gradient(180deg, rgba(6,15,36,0.75), rgba(6,15,36,0.6)); }
.wa-content{ max-width: 560px; margin: 0 auto; color:#fff; }
.wa-icon{
  width:64px; height:64px; border-radius:50%; margin: 0 auto 22px;
  background: rgba(37,194,88,0.9);
  display:flex; align-items:center; justify-content:center; color:#fff;
}
.wa-content h2{ font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight:800; margin: 0 0 14px; line-height:1.35; }
.wa-content p{ color: rgba(255,255,255,0.85); margin: 0 0 28px; }

/* ==========================================================
   FOOTER
   ========================================================== */
.site-footer{
  margin: 40px 16px 16px;
  border-radius: var(--radius-lg);
  padding: 48px 0 24px;
}
.footer-grid{
  display:grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px;
  padding-bottom: 32px; border-bottom: 1px solid rgba(11,26,58,0.1);
}
.footer-logo{ height:64px; width:auto; margin-bottom:10px; }
.footer-brand p{ color: var(--muted); font-size:0.85rem; margin:0; }
.footer-contact p{ margin: 0 0 12px; font-size:0.9rem; color: var(--ink); display:flex; align-items:center; gap:8px; }
.footer-contact svg{ color: var(--accent); flex-shrink:0; }
.footer-heading{ font-weight:700; color: var(--heading); margin: 0 0 14px; }
.social-icons{ display:flex; gap:10px; }
.social-icon{
  width:38px; height:38px; border-radius:50%;
  background: rgba(11,26,58,0.06);
  display:flex; align-items:center; justify-content:center;
  color: var(--heading); transition: all 0.2s ease;
}
.social-icon:hover{ background: var(--accent); color:#fff; transform: translateY(-2px); }

.footer-bottom{
  display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px;
  padding-top: 20px; font-size:0.82rem; color: var(--muted);
}
.footer-links{ display:flex; gap:20px; }
.footer-links a:hover{ color: var(--accent); }

/* ==========================================================
   BOOKING MODAL
   ========================================================== */
.modal-overlay{
  position:fixed; top:0; right:0; bottom:0; left:0; z-index:1000;
  background: rgba(6,15,36,0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display:flex; align-items:center; justify-content:center;
  padding: 20px;
  opacity:0; pointer-events:none;
  transition: opacity 0.25s ease;
}
.modal-overlay.open{ opacity:1; pointer-events:auto; }

.modal{
  width:100%; max-width: 640px;
  max-height: 88vh;
  max-height: 88dvh;
  overflow-y:auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  border-radius: var(--radius-lg);
  padding: 40px 40px 34px;
  position:relative;
  background: rgba(255,255,255,0.85);
  transform: translateY(20px) scale(0.98);
  transition: transform 0.25s ease;
}
.modal-overlay.open .modal{ transform: translateY(0) scale(1); }

.modal-close{
  position:absolute; top:20px; right:20px;
  width:36px; height:36px; border-radius:50%;
  background: rgba(11,26,58,0.06); border:none; color: var(--heading);
  display:flex; align-items:center; justify-content:center;
}
.modal-close:hover{ background: rgba(11,26,58,0.12); }

.modal h3{ font-size:1.4rem; font-weight:800; color: var(--heading); margin: 0 0 8px; }
.modal-sub{ color: var(--muted); font-size:0.9rem; margin: 0 0 26px; line-height:1.5; }

.form-row{ display:grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-field{ display:flex; flex-direction:column; margin-bottom: 16px; }
.form-row .form-field{ margin-bottom:0; }
.form-field label{ font-size:0.82rem; font-weight:600; color: var(--heading); margin-bottom:6px; }
.form-field input, .form-field select, .form-field textarea{
  padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1px solid rgba(11,26,58,0.15);
  background: rgba(255,255,255,0.7);
  font-size:0.92rem; color: var(--ink);
  transition: border-color 0.2s ease;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus{
  border-color: var(--accent); outline:none;
}
.form-field textarea{ resize: vertical; }
.field-error{ font-size:0.76rem; color:#d64545; min-height:16px; margin-top:4px; }
.form-field.invalid input, .form-field.invalid select{ border-color:#d64545; }

.price-summary{
  border-radius: var(--radius-md); padding: 18px 22px; margin: 22px 0;
  background: rgba(11,26,58,0.05);
}
.price-row{ display:flex; justify-content:space-between; padding: 6px 0; font-size:0.9rem; color: var(--muted); }
.price-row.total{ border-top: 1px solid rgba(11,26,58,0.1); margin-top:6px; padding-top:12px; font-size:1rem; }
.price-row.total strong{ color: var(--accent); font-size:1.25rem; }
.price-row strong{ color: var(--heading); }

.success-icon{
  width:70px; height:70px; border-radius:50%; margin: 0 auto 20px;
  background: rgba(37,194,88,0.14); color:#25c258;
  display:flex; align-items:center; justify-content:center;
}
#bookingSuccessView{ text-align:center; }
.success-actions{ display:flex; flex-direction:column; gap:12px; margin-top: 24px; }

/* ==========================================================
   REVEAL ANIMATION (single orchestrated hero entrance)
   ========================================================== */
.reveal{
  animation: revealUp 0.7s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes revealUp{
  from{ opacity:0; transform: translateY(24px); }
  to{ opacity:1; transform: translateY(0); }
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 1024px){
  .vehicle-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why-features{ grid-template-columns: 1fr 1fr; }
  .about-grid{ gap: 40px; }
  .testimonial-grid{ grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px){
  .main-nav{
    position:absolute; top: calc(100% + 12px); left:0; right:0;
    flex-direction:column; align-items:stretch; gap:0;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    padding: 10px;
    display:none;
  }
  .main-nav.open{ display:flex; }
  .nav-link{ padding: 14px 16px; border-radius: 10px; }
  .nav-link:hover{ background: rgba(225,29,46,0.08); }
  .nav-link.active::after{ display:none; }
  .nav-cta{
    display:inline-flex; justify-content:center; width:100%;
    margin-top:10px;
  }
  .hamburger{ display:flex; }

  .brand-text{ display:none; }
  .brand-logo{ height:42px; }
  .header-actions{ gap:8px; }
  .header-actions .btn-primary{ display:none; }
  .header-phone{
    display:flex; width:38px; height:38px; flex-shrink:0;
    align-items:center; justify-content:center;
    border-radius:50%; background: rgba(11,26,58,0.08);
  }
  .header-phone span{ display:none; }



  .about-grid{ grid-template-columns: 1fr; }
  .about-media img{ aspect-ratio: 5/6; object-position: 50% 60%; }
}

@media (max-width: 720px){
  .vehicle-grid{ grid-template-columns: minmax(0, 1fr); }
  .testimonial-grid{ grid-template-columns: 1fr; }
  .why-features{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr; gap: 28px; }
  .form-row{ grid-template-columns: 1fr; }
  .section{ padding: 60px 0; }
  .site-header{ top:10px; width: calc(100% - 20px); }
  .header-inner{ padding: 8px 14px; }
}

@media (max-width: 480px){
  .btn{ padding: 12px 20px; font-size:0.88rem; }
  .footer-bottom{ flex-direction:column; align-items:flex-start; }
}


/* ==========================================================
   LANGUAGE SWITCHER + ACCESSIBLE RESPONSIVE POLISH
   ========================================================== */
.language-switcher{ display:flex; align-items:center; gap:4px; padding:4px 7px; border:1px solid rgba(11,26,58,.12); border-radius:999px; background:rgba(255,255,255,.45); }
.lang-btn{ border:0; background:transparent; color:var(--muted); font:700 .72rem var(--font); padding:5px 6px; border-radius:999px; }
.lang-btn.active{ background:var(--navy); color:#fff; }
.lang-separator{ color:var(--muted); font-size:.7rem; }
@media (max-width: 1100px){ .header-inner{ gap:12px; } .main-nav{ gap:18px; } .header-actions{ gap:8px; } .header-phone span{ display:none; } }
@media (max-width: 900px){ .language-switcher{ order:1; } .header-actions .btn-primary{ order:2; } .hamburger{ order:3; } }
@media (max-width: 720px){
  .container{ padding-left:18px; padding-right:18px; }
  .site-header{ width:calc(100% - 18px); top:9px; }
  .header-inner{ padding:7px 10px; gap:6px; }
  .brand-logo{ height:38px; }
  .brand-name{ font-size:.92rem; }
  .brand-tagline{ font-size:.52rem; }
  .language-switcher{ padding:2px 4px; }
  .lang-btn{ font-size:.65rem; padding:4px 5px; }
  .header-actions .btn-primary{ padding:9px 12px; font-size:.72rem; }
}
[dir="rtl"]{ font-family: var(--font), Tahoma, Arial, sans-serif; }
[dir="rtl"] .main-nav{ direction:rtl; }
[dir="rtl"] .nav-link.active::after{ left:0; right:0; }
[dir="rtl"] .hero-card, [dir="rtl"] .about-content, [dir="rtl"] .why-content, [dir="rtl"] .section-head, [dir="rtl"] .faq-q, [dir="rtl"] .modal{ text-align:right; }
[dir="rtl"] .hero-actions{ justify-content:flex-start; }
[dir="rtl"] .link-arrow svg, [dir="rtl"] .btn svg{ transform:scaleX(-1); }
[dir="rtl"] .btn:hover svg{ transform:scaleX(-1) translateX(3px); }
[dir="rtl"] .faq-q{ flex-direction:row-reverse; }
[dir="rtl"] .footer-bottom{ direction:rtl; }

/* ==========================================================
   DARK MODE — surface overrides for elements with a
   hardcoded light background (not sitting on a photo)
   ========================================================== */
[data-theme="dark"] .language-switcher{
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.14);
}
[data-theme="dark"] .pill{
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.12);
}
[data-theme="dark"] .modal{
  background: rgba(16,24,42,0.92);
}
[data-theme="dark"] .form-field input,
[data-theme="dark"] .form-field select,
[data-theme="dark"] .form-field textarea{
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.14);
}
[data-theme="dark"] .modal-close{
  background: rgba(255,255,255,0.08);
}
[data-theme="dark"] .modal-close:hover{ background: rgba(255,255,255,0.16); }
[data-theme="dark"] .social-icon{ background: rgba(255,255,255,0.08); }
[data-theme="dark"] .price-summary{ background: rgba(255,255,255,0.05); }
[data-theme="dark"] .footer-grid{ border-bottom-color: rgba(255,255,255,0.1); }
[data-theme="dark"] .vehicle-photo{ background:#fff; }
[data-theme="dark"] .lightbox-img{ background: #12203a; }
[data-theme="dark"] .why-icon{ background: rgba(255,255,255,0.1); }
[data-theme="dark"] .hero-actions .btn-glass{ background: rgba(255,255,255,0.12); color:#fff; }
[data-theme="dark"] .bg-scene{
  background: linear-gradient(180deg, #0d1730 0%, #0a1120 22%, #0a1120 100%);
}
[data-theme="dark"] .bg-photo{
  background: linear-gradient(160deg, rgba(255,255,255,0.05), rgba(225,29,46,0.06));
}
[data-theme="dark"] .blob-orange{
  background: radial-gradient(circle, rgba(225,29,46,0.32), transparent 70%);
}
[data-theme="dark"] .blob-navy{
  background: radial-gradient(circle, rgba(70,120,210,0.3), transparent 70%);
}
[data-theme="dark"] .bg-grain{ opacity:0.12; }
@media (max-width: 900px){
  [data-theme="dark"] .header-phone{ background: rgba(255,255,255,0.08); }
  [data-theme="dark"] .main-nav{ background: rgba(16,24,42,0.94); }
}

/* logo lisible en mode sombre */
[data-theme="dark"] .brand-logo, [data-theme="dark"] .footer-logo{
  background:#fff; border-radius:12px; padding:3px 8px;
}


/* ==========================================================
   COMPATIBILITÉ iOS / ANDROID / TABLETTE / PC
   ========================================================== */
/* iOS : 16px mini dans les champs = pas de zoom automatique au focus */
.form-field input, .form-field select, .form-field textarea{
  font-size:16px; width:100%; min-width:0; min-height:46px;
  -webkit-appearance:none; appearance:none; border-radius: var(--radius-sm);
}
.form-field textarea{ min-height:90px; }
.form-field select{
  padding-right:38px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23E11D2E' stroke-width='3'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:right 14px center;
}
[dir="rtl"] .form-field select{ padding-right:14px; padding-left:38px; background-position:left 14px center; }
.form-field input[type="date"]{ display:block; text-align:left; line-height:1.2; }
[dir="rtl"] .form-field input[type="date"]{ text-align:right; }
.form-field input[type="date"]::-webkit-date-and-time-value{ text-align:inherit; min-height:1.2em; }
.form-field{ min-width:0; }
.form-row > .form-field{ min-width:0; }

/* Boutons un peu plus grands au doigt */
.lang-btn{ min-height:30px; min-width:32px; }
.hamburger, .theme-toggle, .modal-close, .lightbox-close{ min-width:38px; min-height:38px; }
.faq-q{ min-height:52px; }

/* Survols : uniquement avec une souris (évite les effets « collés » sur téléphone/tablette) */
@media (hover: none){
  .vehicle-card:hover{ transform:none; box-shadow: var(--glass-shadow); }
  .btn-primary:hover, .btn-glass:hover, .btn-glass-light:hover, .btn-whatsapp:hover{ transform:none; }
  .btn:hover svg, .link-arrow:hover svg{ transform:none; }
  .social-icon:hover{ transform:none; }
}

/* Écrans très étroits (iPhone SE, petits Android) */
@media (max-width: 380px){
  .container{ padding-left:14px; padding-right:14px; }
  .modal{ padding:30px 18px 24px; }
  .header-actions{ gap:5px; }
  .brand-logo{ height:34px; }
}

/* Tablettes en portrait (iPad, Galaxy Tab) */
@media (min-width: 721px) and (max-width: 900px){
  .vehicle-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Paysage téléphone (faible hauteur) */
@media (max-height: 480px) and (orientation: landscape){
  .modal{ max-height:94vh; }
}

/* Grands écrans */
@media (min-width: 1600px){
  .container{ max-width:1400px; }
}

/* Police arabe : repli système sur iOS / Android */
[dir="rtl"]{ font-family: var(--font), "Segoe UI", Tahoma, "Noto Sans Arabic", "Geeza Pro", Arial, sans-serif; }

/* ==========================================================
   CORRECTIF iOS / Safari (WebKit) — débordement des images
   dans les cartes véhicules
   1) min-width:0 sur la carte et tous ses parents flex/grid :
      WebKit utilise sinon la largeur intrinsèque de l'image
      comme taille minimale et fait déborder la carte.
   2) conteneur d'image : width 100% + 16/9 + overflow hidden
   3) image : 100% x 100%, object-fit: contain, flex-shrink: 0
   ========================================================== */
.container,
.vehicle-grid,
.vehicle-grid > *,
.vehicle-card,
.vehicle-photo{ min-width: 0; }

.vehicle-card{ max-width: 100%; }

.vehicle-photo{ width:100%; aspect-ratio:16 / 9; overflow:hidden; }
.vehicle-photo img{ width:100%; height:100%; object-fit:contain; flex-shrink:0; }

/* Anciens Safari (< 15) sans aspect-ratio : ratio 16/9 par padding-bottom */
@supports not (aspect-ratio: 16 / 9){
  .vehicle-photo{ height:0; padding-bottom:56.25%; }
  .vehicle-photo img{ position:absolute; top:0; left:0; width:100%; height:100%; }
}
/* Spécifications des cartes */
.vehicle-specs svg{ width:14px; height:14px; }

/* Pied de page : bloc « Nous trouver » + réseaux sociaux */
.footer-social .footer-heading-2{ margin-top: 22px; }
.footer-social .social-icons{ flex-wrap: wrap; }

.footer-contact a{ display:inline-flex; align-items:center; gap:8px; }

/* Conditions de location (km, caution, géolocalisation) */
.vehicles-note{
  display:inline-block; margin: -4px 0 22px; padding: 12px 18px;
  border-radius: 14px; background: rgba(225,29,46,0.08); border: 1px solid rgba(225,29,46,0.2);
  color: var(--heading); font-weight:600; font-size:0.92rem; line-height:1.5;
}

/* Lien TikTok (Suivez-nous) */
.social-link{ display:inline-flex; align-items:center; gap:10px; color: var(--heading); font-weight:600; font-size:0.9rem; }
.social-link:hover .social-icon{ background: var(--accent); color:#fff; transform: translateY(-2px); }

/* Encadré remarque (FAQ) */
.faq-note{ max-width:820px; margin-top:18px; padding:18px 24px; border-radius: var(--radius-md); border-inline-start:4px solid var(--accent); }
.faq-note-title{ display:flex; align-items:center; gap:8px; margin:0 0 10px; font-weight:700; color: var(--heading); }
.faq-note-title svg{ color: var(--accent); flex-shrink:0; }
.faq-note ul{ margin:0; padding-inline-start:20px; color: var(--muted); font-size:0.92rem; line-height:1.65; }
.faq-note li + li{ margin-top:6px; }

/* Crédit BeghDev (pied de page) */
.made-by-wrap{ display:flex; justify-content:center; padding: 4px 0 22px; }
.made-by{ display:inline-flex; align-items:center; gap:10px; font-size:0.82rem; color: var(--muted); opacity:0.9; transition: opacity 0.2s ease, transform 0.2s ease; }
.made-by img{ width:28px; height:28px; border-radius:8px; display:block; }
.made-by strong{ color: var(--heading); font-weight:700; }
.made-by:hover{ opacity:1; transform: translateY(-1px); }

