:root {
  --bg-main: #020617;
  --bg-alt: #030712;
  --bg-light: #0b1220;
  --gold: #facc15;
  --gold-soft: #eab308;
  --text-main: #e5e7eb;
  --text-muted: #9ca3af;
  --border-soft: #1f2937;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  color: var(--text-main);
  background: radial-gradient(circle at top, #111827 0, #020617 55%);
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section { padding: 3rem 0; }
.section-dark { background: linear-gradient(180deg, #020617 0%, #030712 100%); }
.section-light { background: #020617; }

.section-title {
  font-size: 1.7rem;
  margin-bottom: 0.75rem;
}
.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin-top: 0.4rem;
}
.section-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 34rem;
}

/* HERO */
.hero {
  position: relative;
  padding: 3.5rem 0 3.2rem;
  background-image:
    linear-gradient(120deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.75)),
    url("images/aeroport-rennes.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, #020617);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.2fr);
  gap: 2.5rem;
  align-items: flex-start;
}
.hero-text {
  max-width: 34rem;
  backdrop-filter: blur(8px);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.82), rgba(15, 23, 42, 0.65));
  border-radius: 1rem;
  padding: 1.4rem 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
}
.hero-tag {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--gold);
  margin-bottom: 0.9rem;
}
.hero-title {
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  margin: 0 0 0.75rem;
}
.hero-title span { color: var(--gold); }
.hero-subtitle {
  color: var(--text-muted);
  font-size: 0.96rem;
  margin-bottom: 1.5rem;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

/* Buttons */
.btn {
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  transition: background 0.15s ease, border-color 0.15s ease,
    transform 0.1s ease, color 0.15s ease;
  background: transparent;
  color: var(--text-main);
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
  color: #020617;
  font-weight: 600;
}
.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}
.btn-ghost {
  border-color: rgba(148, 163, 184, 0.5);
  color: var(--text-muted);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.btn.full { width: 100%; }
.btn.small { padding: 0.4rem 0.9rem; font-size: 0.8rem; }

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
}
.badge {
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--text-muted);
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #22c55e;
}

/* Booking card */
.booking-card {
  background: radial-gradient(circle at top left, #111827 0, #020617 55%);
  border-radius: 1.1rem;
  border: 1px solid rgba(55, 65, 81, 0.9);
  padding: 1.4rem 1.35rem 1.2rem;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
}
.booking-title {
  font-size: 1.1rem;
  margin: 0 0 0.8rem;
}
.trip-type {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 0.9rem;
  font-size: 0.86rem;
}
.trip-type label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
}
.field {
  margin-bottom: 0.7rem;
  font-size: 0.86rem;
}
.field label {
  display: block;
  margin-bottom: 0.18rem;
  color: var(--text-muted);
}
.field input,
.field select,
.contact-form input,
.contact-form textarea {
  width: 100%;
  border-radius: 0.55rem;
  border: 1px solid rgba(55, 65, 81, 0.9);
  background: rgba(15, 23, 42, 0.95);
  padding: 0.55rem 0.7rem;
  color: var(--text-main);
  font-size: 0.9rem;
  outline: none;
}
.field input::placeholder,
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #6b7280;
}
.field input:focus,
.field select:focus,
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(250, 204, 21, 0.25);
}
.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}
.price-result {
  margin-top: 0.6rem;
  font-size: 0.86rem;
  color: var(--text-muted);
}
.trust-strip {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(31, 41, 55, 0.9);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.trust-title {
  font-weight: 600;
  color: var(--text-main);
}
.stars {
  color: var(--gold);
  font-size: 0.9rem;
  margin: 0.15rem 0;
}

/* Cards & features */
.cards-grid {
  margin-top: 1.6rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
}
.card {
  background: radial-gradient(circle at top, #020617 0, #020617 45%, #030712 100%);
  border-radius: 0.9rem;
  border: 1px solid rgba(55, 65, 81, 0.9);
  padding: 1.05rem 1.1rem;
  font-size: 0.9rem;
}
.card h3 { margin: 0 0 0.5rem; font-size: 1rem; }

.features-grid {
  margin-top: 1.6rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
}
.feature {
  border-radius: 0.9rem;
  border: 1px solid rgba(55, 65, 81, 0.7);
  padding: 0.9rem 1rem;
  background: #020617;
  font-size: 0.9rem;
}
.feature-icon {
  display: inline-flex;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  background: rgba(250, 204, 21, 0.08);
  color: var(--gold);
  margin-bottom: 0.4rem;
}

/* Blog */
.blog-grid {
  margin-top: 1.6rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.blog-card {
  background: #020617;
  border-radius: 0.9rem;
  border: 1px solid rgba(55, 65, 81, 0.85);
  padding: 1rem 1.1rem;
  font-size: 0.9rem;
}
.blog-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin-bottom: 0.35rem;
}
.blog-card h3 { margin: 0 0 0.45rem; font-size: 1rem; }
.blog-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: var(--gold);
  text-decoration: none;
}
.blog-link::after { content: "→"; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: flex-start;
}
.contact-form { margin-top: 1rem; }
.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}
.contact-info {
  font-size: 0.9rem;
  margin-top: 2.4rem;
  color: var(--text-muted);
}
.contact-info a {
  color: var(--gold);
  text-decoration: none;
}

/* Social links */
.social-links {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--text-main);
}
.social-link span.icon { font-size: 1rem; }

/* Cookies bar */
.cookie-bar {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  padding: 0.8rem 1.1rem;
  background: rgba(15, 23, 42, 0.97);
  border-top: 1px solid rgba(55, 65, 81, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  z-index: 40;
}
.cookie-actions { display: flex; gap: 0.4rem; }

/* Footer */
.footer {
  background: #020617;
  border-top: 1px solid rgba(31, 41, 55, 0.8);
  padding: 1rem 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* LIGHT THEME */
body.light-theme {
  --text-main: #111827;
  --text-muted: #4b5563;
  background: #f3f4f6;
  color: var(--text-main);
}
body.light-theme .header {
  background: rgba(249, 250, 251, 0.92);
  border-bottom: 1px solid #e5e7eb;
}
body.light-theme .logo-sub { color: #d97706; }
body.light-theme .nav a { color: #4b5563; }
body.light-theme .nav a:hover {
  color: #111827;
  background: #e5e7eb;
}
body.light-theme .nav-phone { color: #b45309; }

body.light-theme .hero {
  background-image:
    linear-gradient(120deg, rgba(249, 250, 251, 0.92), rgba(249, 250, 251, 0.6)),
    url("images/aeroport-rennes.jpg");
  background-size: cover;
  background-position: center;
}
body.light-theme .hero-text {
  background: rgba(255, 255, 255, 0.92);
  border-color: #e5e7eb;
}
body.light-theme .section-dark,
body.light-theme .section-light {
  background: #f9fafb;
}
body.light-theme .booking-card,
body.light-theme .card,
body.light-theme .feature,
body.light-theme .blog-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 18px 40px rgba(148, 163, 184, 0.25);
}
body.light-theme .contact-info { color: #4b5563; }
body.light-theme .field input,
body.light-theme .field select,
body.light-theme .contact-form input,
body.light-theme .contact-form textarea {
  background: #ffffff;
  border: 1px solid #d1d5db;
  color: #111827;
}
body.light-theme .field input::placeholder,
body.light-theme .contact-form input::placeholder,
body.light-theme .contact-form textarea::placeholder {
  color: #9ca3af;
}
body.light-theme .cookie-bar {
  background: #111827;
  color: #e5e7eb;
  border-top-color: #020617;
}
body.light-theme .footer {
  background: #f9fafb;
  border-top-color: #e5e7eb;
}
body.light-theme .footer-inner { color: #6b7280; }
body.light-theme .theme-toggle {
  background: #fefce8;
  border-color: #facc15;
}
body.light-theme .social-link {
  border-color: #d1d5db;
  color: #111827;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .booking-card { max-width: 420px; margin-inline: auto; }
  .header-inner { flex-wrap: wrap; gap: 0.5rem; }
  .nav { justify-content: center; order: 3; }
  .nav ul { justify-content: center; }
  .logo { order: 1; }
  .nav-phone { order: 2; }
  .hero-text { margin-bottom: 1.5rem; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .section { padding: 2.4rem 0; }
  .hero { padding-top: 2.6rem; }
  .cookie-bar { align-items: stretch; }
}
/* CAR SLIDER */
.car-slider {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin: 2rem auto;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(148,163,184,0.25);
  box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

.car-slide { display: none; width: 100%; }
.car-slide.active { display: block; }

.car-slide img {
  width: 100%;
  display: block;
  border-radius: 14px;
}

.car-prev,
.car-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(15,23,42,0.7);
  border: 1px solid rgba(148,163,184,0.3);
  color: #facc15;
  font-size: 1.6rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  transition: 0.2s;
}
.car-prev:hover,
.car-next:hover {
  background: rgba(15,23,42,0.9);
}
.car-prev { left: 10px; }
.car-next { right: 10px; }

/* LOGO LIGHT / DARK */
.logo-img {
  width: 150px;
  height: auto;
  display: none;
}
body.light-theme .logo-light { display: block; }
body:not(.light-theme) .logo-dark { display: block; }

/* HEADER – DESKTOP (PC) */
.header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(14px);
  background: rgba(2, 6, 23, 0.92);
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1.25rem;
  gap: 1.5rem;
}

/* logo container */
.logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

/* center nav on desktop */
.nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
}
.nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
}
.nav a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  transition: color 0.15s ease, background 0.15s ease;
}
.nav a:hover {
  color: #f9fafb;
  background: rgba(148, 163, 184, 0.18);
}

/* right side (phone + theme + burger) */
.header-right {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.nav-phone {
  font-size: 0.9rem;
  color: var(--gold);
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

/* theme toggle */
.theme-toggle {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  cursor: pointer;
  margin-left: 0.4rem;
  color: var(--text-main);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}
.theme-toggle:hover {
  transform: translateY(-1px);
  border-color: var(--gold);
}

/* hamburger button – hidden on desktop */
.menu-toggle {
  display: none;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.6);
  background: transparent;
  color: var(--text-main);
  cursor: pointer;
}

/* ===== HEADER MOBILE LAYOUT (PHONE) ===== */
/* ===== HEADER MOBILE LAYOUT (ONLY PHONE) ===== */
@media (max-width: 768px) {

  /* header يبقى flex */
  .header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 0.8rem;
    position: sticky;
    top: 0;
    z-index: 30;
  }

  /* logo فالنص */
  .logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  /* bloc dyal lymen: theme + menu + téléphone */
  .header-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: nowrap;        /* باش مايتكسروش فوق بعضهم */
  }

  /* ترتيب داخليا: sun → burger → téléphone */
  .theme-toggle { order: 1; }

  .menu-toggle {
    order: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
  }

  .nav-phone {
    order: 3;
    font-size: 0.85rem;
    white-space: nowrap;      /* يبقى فسطرو ومايطيحش تحت */
  }

  /* menu كيطيح لتحت ملي header.menu-open */
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    background: rgba(2, 6, 23, 0.97);
    padding: 0.8rem 1rem;
    border-bottom: 1px solid rgba(31, 41, 55, 0.9);
    justify-content: flex-start;
  }

  .nav ul {
    flex-direction: column;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
  }

  .header.menu-open .nav {
    display: flex;
  }
}

/* Fix: no border under header */
.header {
  border-bottom: none;
}

body.light-theme .header {
  border-bottom: none;
}
@media (max-width: 768px) {
  .nav-phone {
    display: none !important;
  }
}
/* ====== FIX HEADER DESKTOP + MOBILE CLEAN ====== */

/* Desktop header (PC) - نفس الستايل اللي عندك دابا */
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(2, 6, 23, 0.92);
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1.25rem;
  gap: 1.5rem;
}

/* logo */
.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  width: 150px;
  height: auto;
}

/* nav center */
.nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
}

.nav ul {
  list-style: none;
  display: flex;
  gap: 1.4rem;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
  flex-wrap: wrap;
  justify-content: center;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  transition: color 0.15s ease, background 0.15s ease;
}

.nav a:hover {
  color: #f9fafb;
  background: rgba(148, 163, 184, 0.18);
}

/* right side: phone + theme + burger */
.header-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-phone {
  font-size: 0.9rem;
  color: var(--gold);
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

/* theme button */
.theme-toggle,
.menu-toggle {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: transparent;
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  border-color: var(--gold);
}

/* hamburger hidden on desktop */
.menu-toggle {
  display: none;
}

/* ================== MOBILE (≤ 768px) ================== */
@media (max-width: 768px) {

  /* header row */
  .header {
    padding: 0.55rem 0.9rem;
    justify-content: space-between;
  }

  /* logo يسار (عادي) */
  .logo {
    position: static;
    transform: none;
  }

  /* bloc ديال اليمين: theme + burger (الرقم غانخبيه فالموبايل) */
  .header-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: nowrap;
  }

  /* نخبي النميرو فالتلفون باش ما يخربقش الheader */
  .nav-phone {
    display: none;
  }

  /* hamburger يبان */
  .menu-toggle {
    display: inline-flex;
    font-size: 18px;
  }

  /* nav كيولي dropdown تحت الهيدر */
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    background: rgba(2, 6, 23, 0.97);
    padding: 0.8rem 1rem;
    border-bottom: 1px solid rgba(31, 41, 55, 0.9);
    justify-content: flex-start;
  }

  .nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.55rem;
    margin: 0;
    padding: 0;
  }

  .nav a {
    width: 100%;
    display: block;
    padding: 0.4rem 0.6rem;
    border-radius: 0.6rem;
  }

  /* ملي كيكليكي المستخدم على ☰، script.js kaydir .menu-open */
  .header.menu-open .nav {
    display: flex;
  }
}
/* ====================== MOBILE HEADER FIX ====================== */
@media (max-width: 768px) {

  /* HEADER */
  .header {
    display: flex;
    align-items: center;
    justify-content: space-between !important;
    padding: 0.55rem 0.9rem;
    position: sticky;
    top: 0;
    z-index: 50;
  }

  /* LOGO → LEFT */
  .logo {
    margin-right: auto;
    order: 1;
    position: static;
    transform: none;
  }

  /* RIGHT SIDE → theme + burger */
  .header-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    order: 2;
  }

  .theme-toggle {
    order: 1;
  }

  .menu-toggle {
    display: inline-flex;
    font-size: 18px;
    order: 2; /* burger كيجي آخر واحد فاليمين */
  }

  /* hide phone on mobile */
  .nav-phone {
    display: none !important;
  }

  /* NAV MENU */
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    background: rgba(2, 6, 23, 0.97);
    padding: 1rem;
    border-bottom: 1px solid rgba(31, 41, 55, 0.9);
    flex-direction: column;
    gap: 0.6rem;
  }

  .nav ul {
    flex-direction: column;
    gap: 0.55rem;
    margin: 0;
    padding: 0;
  }

  .header.menu-open .nav {
    display: flex;
  }
}
