/* ===================================================================
   Taxi de Juziers — Feuille de style
   Palette : bleu nuit (identité du logo) + jaune taxi
=================================================================== */

:root {
  --navy-900: #060b16;
  --navy-800: #0b1a33;
  --navy-700: #123057;
  --blue-600: #1c4fa8;
  --blue-500: #2f6fd8;
  --blue-300: #8fb6ee;

  --yellow-500: #ffc42e;
  --yellow-400: #ffd257;
  --yellow-300: #ffe28f;

  --bg: #070d18;
  --bg-alt: #0b1526;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 196, 46, 0.4);

  --text: #eef3fb;
  --text-soft: #aab9d1;
  --text-muted: #7386a3;

  --gradient: linear-gradient(120deg, var(--yellow-400), var(--yellow-500));
  --gradient-blue: linear-gradient(120deg, var(--blue-300), var(--blue-500));
  --gradient-soft: linear-gradient(135deg, rgba(255, 196, 46, 0.14), rgba(47, 111, 216, 0.1));

  --shadow: 0 12px 32px -16px rgba(3, 10, 25, 0.65);
  --shadow-sm: 0 2px 8px -2px rgba(3, 10, 25, 0.4);

  --radius: 14px;
  --radius-sm: 10px;
  --container: 1180px;

  --font-display: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

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

img { max-width: 100%; display: block; }
.icon-inline { width: 1.1em; height: 1.1em; flex-shrink: 0; vertical-align: -0.15em; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.14; letter-spacing: -0.02em; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }

.text-gradient { color: var(--yellow-400); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-display);
  font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--yellow-400);
  margin-bottom: .9rem;
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; border-radius: 2px;
  background: var(--gradient);
}

.section { padding: clamp(3.5rem, 7vw, 6.5rem) 0; }
.section__head { max-width: 640px; margin-bottom: 3rem; }
.section__title { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: .8rem; }
.section__sub { color: var(--text-soft); font-size: 1.05rem; }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--border); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .95rem 1.7rem;
  font-family: var(--font-display); font-weight: 700; font-size: .95rem;
  border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: border-color .2s ease, background .2s ease, filter .2s ease, transform .2s cubic-bezier(.34,1.56,.64,1);
  white-space: nowrap;
}
.btn--primary {
  background: var(--gradient); color: #1a1200;
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { filter: brightness(1.06); }
.btn--ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--border-strong); background: var(--surface-2); }
.btn--full { width: 100%; }
.btn--sm { padding: .7rem 1.3rem; font-size: .85rem; }
.btn:focus-visible { outline: 2px solid var(--yellow-400); outline-offset: 2px; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset-inline: 0; top: 0; z-index: 100;
  padding: 1.1rem 0;
  transition: padding .3s ease, background .3s ease, box-shadow .3s ease;
}
.header.scrolled {
  padding: .7rem 0;
  background: rgba(7, 13, 24, 0.85);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px -18px rgba(0,0,0,.6);
  border-bottom: 1px solid var(--border);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .7rem; font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; }
.brand__plate {
  width: 44px; height: 44px; border-radius: 12px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.brand__logo { width: 100%; height: 100%; object-fit: contain; }
.brand__logo-fallback { font-size: 1.4rem; }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav a {
  font-weight: 600; font-size: .95rem; color: var(--text-soft);
  transition: color .2s ease;
}
.nav a:hover { color: var(--text); }

.header__actions { display: flex; align-items: center; gap: .8rem; }
.phone-cta {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-display); font-weight: 700; font-size: .95rem;
  color: var(--text);
}
.phone-cta__icon {
  width: 34px; height: 34px; border-radius: 999px;
  background: var(--gradient); color: #1a1200;
  display: flex; align-items: center; justify-content: center;
}

.burger {
  display: none; width: 42px; height: 42px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--border);
  align-items: center; justify-content: center; gap: 4px; flex-direction: column;
  cursor: pointer;
}
.burger span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }
.nav.open ~ .burger span:nth-child(1),
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(5.5rem, 10vw, 6.5rem) 0 clamp(4rem, 8vw, 6rem);
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 70%;
  background: radial-gradient(60% 60% at 30% 20%, rgba(255,196,46,.14), transparent 70%),
              radial-gradient(50% 50% at 80% 10%, rgba(47,111,216,.22), transparent 70%);
  pointer-events: none;
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.hero__badge {
  display: inline-flex; align-items: center; gap: .6rem;
  background: var(--surface); border: 1px solid var(--border-strong);
  padding: .5rem 1rem; border-radius: 999px; font-size: .85rem; font-weight: 700;
  margin-bottom: 1.4rem;
}
.hero__badge-icon {
  width: 20px; height: 20px; border-radius: 999px; flex-shrink: 0;
  background: var(--gradient); color: #1a1200;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .7rem; font-weight: 900;
}
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); margin-bottom: 1.1rem; }
.hero__sub { color: var(--text-soft); font-size: 1.12rem; max-width: 540px; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.4rem; }
.hero__stats { display: flex; flex-wrap: wrap; gap: 1.6rem; }
.hero__stat { display: flex; flex-direction: column; }
.hero__stat strong { font-family: var(--font-display); font-size: 1.3rem; }
.hero__stat span { color: var(--text-muted); font-size: .82rem; }

.hero__visual {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); background: var(--surface);
  aspect-ratio: 4 / 3; box-shadow: var(--shadow);
}
.hero__visual img { width: 100%; height: 100%; object-fit: cover; }
.hero__visual-fallback {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: .8rem; text-align: center; padding: 2rem;
  background: linear-gradient(160deg, var(--navy-800), var(--navy-900));
}
.hero__visual-fallback .icon { font-size: 3.2rem; }
.hero__visual-fallback p { color: var(--text-muted); font-size: .9rem; max-width: 220px; }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); align-items: start; gap: 1.4rem; }
.service-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.8rem; transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.service-card:hover { border-color: var(--border-strong); background: var(--surface-2); }
.service-card--featured {
  grid-column: span 2;
  background: var(--gradient-soft);
  border-color: var(--border-strong);
  display: flex; flex-direction: column; justify-content: center;
}
.service-card--featured h3 { font-size: 1.3rem; }
.service-card--featured .service-card__icon {
  background: var(--gradient); border-color: transparent; color: #1a1200;
}
.service-card__icon {
  width: 44px; height: 44px; border-radius: 12px; margin-bottom: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  background: var(--gradient-soft); border: 1px solid var(--border); color: var(--yellow-400);
}
.service-card__icon svg { width: 22px; height: 22px; }
.service-card h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.service-card p { color: var(--text-soft); font-size: .92rem; }

/* ---------- Véhicule ---------- */
.vehicle { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.vehicle__media {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border);
  aspect-ratio: 16/11; background: var(--surface); box-shadow: var(--shadow);
}
.vehicle__media img { width: 100%; height: 100%; object-fit: cover; }
.vehicle__media-fallback {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: .7rem; background: linear-gradient(160deg, var(--navy-800), var(--navy-900));
  color: var(--text-muted); text-align: center; padding: 2rem;
}
.vehicle__features { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.6rem; }
.vehicle__feature { display: flex; gap: .7rem; align-items: flex-start; }
.vehicle__feature .icon { color: var(--yellow-400); font-size: 1.1rem; line-height: 1.4; }
.vehicle__feature span.label { font-weight: 600; font-size: .92rem; }

/* ---------- Zone desservie ---------- */
.zone { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.zone__card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2.2rem; box-shadow: var(--shadow);
}
.zone__card h3 { font-size: 1.3rem; margin-bottom: 1rem; }
.zone__list { display: flex; flex-direction: column; gap: .8rem; }
.zone__list li { display: flex; gap: .6rem; align-items: flex-start; color: var(--text-soft); font-size: .95rem; }
.zone__list .icon { color: var(--yellow-400); flex-shrink: 0; }

/* ---------- Avis ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); align-items: start; gap: 1.4rem; margin-bottom: 2.4rem; }
.testi-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.8rem; display: flex; flex-direction: column; gap: 1rem;
}
.testi-card__stars { color: var(--yellow-400); letter-spacing: .1em; }
.testi-card p { color: var(--text-soft); font-size: .95rem; font-style: italic; }
.testi-card__author { font-weight: 700; font-size: .9rem; }
.testi-card__author span { display: block; font-weight: 400; color: var(--text-muted); font-size: .8rem; }
.testi-empty {
  text-align: center; color: var(--text-muted); padding: 2rem; border: 1px dashed var(--border);
  border-radius: var(--radius); margin-bottom: 2.4rem; font-size: .95rem;
}
.testi-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem;
  background: var(--gradient-soft); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.6rem 2rem;
}
.testi-cta p { color: var(--text-soft); font-size: .92rem; }
.testi-cta strong { display: block; font-size: 1.05rem; margin-bottom: .2rem; }

/* Avis modal / panneau */
.avis-panel {
  position: fixed; inset: 0; z-index: 200; display: none;
  align-items: center; justify-content: center; padding: 1.5rem;
  background: rgba(3, 7, 16, 0.75); backdrop-filter: blur(6px);
}
.avis-panel.open { display: flex; }
.avis-panel__box {
  width: min(100%, 520px); max-height: 90vh; overflow-y: auto;
  background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2rem; box-shadow: var(--shadow); position: relative;
}
.avis-panel__close {
  position: absolute; top: 1rem; right: 1rem; width: 36px; height: 36px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  cursor: pointer; font-size: 1.1rem;
}
.avis-panel h3 { font-size: 1.3rem; margin-bottom: .4rem; }
.avis-panel__note { color: var(--text-muted); font-size: .85rem; margin-bottom: 1.4rem; }
.star-select { display: flex; gap: .4rem; margin-bottom: .3rem; }
.star-select button {
  width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text-muted); cursor: pointer; font-size: 1.1rem;
  transition: color .2s ease, border-color .2s ease;
}
.star-select button.active { color: var(--yellow-400); border-color: var(--border-strong); }

/* ---------- Formulaires ---------- */
.field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { font-size: .85rem; font-weight: 600; color: var(--text-soft); }
.field input, .field select, .field textarea {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: .8rem 1rem; color: var(--text); font-family: var(--font-body); font-size: .95rem;
  transition: border-color .2s ease, background .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--border-strong); background: var(--surface-2);
  box-shadow: 0 0 0 3px rgba(255, 196, 46, 0.15);
}
.field input.invalid, .field select.invalid, .field textarea.invalid { border-color: #ff6b6b; }
.consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .82rem; color: var(--text-muted); margin-bottom: 1.2rem; cursor: pointer; }
.consent input { margin-top: .2rem; }
.consent.invalid { color: #ff6b6b; }
.consent a { text-decoration: underline; color: var(--text-soft); }
.form__note { min-height: 1.4em; font-size: .88rem; margin-top: .6rem; }
.form__note.ok { color: #4ade80; }
.form__note.err { color: #ff6b6b; }

/* ---------- Réservation / Contact ---------- */
.contact { display: grid; grid-template-columns: .8fr 1.2fr; gap: 3rem; align-items: start; }
.contact__list { display: flex; flex-direction: column; gap: 1.2rem; margin-top: 1.6rem; }
.contact__list li { display: flex; gap: .9rem; align-items: flex-start; }
.contact__icon { font-size: 1.3rem; color: var(--yellow-400); }
.contact__list a { font-weight: 700; }
.contact__list a:hover { color: var(--yellow-400); }
.contact__muted { color: var(--text-muted); font-weight: 400; }
.contact__form {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2rem; box-shadow: var(--shadow);
}

/* ---------- Footer ---------- */
.footer { padding: 3.5rem 0 2rem; border-top: 1px solid var(--border); background: var(--bg-alt); }
.footer__inner { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2.4rem; margin-bottom: 2.4rem; }
.footer__brand { display: flex; flex-direction: column; gap: 1rem; }
.footer__brand p { color: var(--text-soft); font-size: .9rem; max-width: 320px; }
.footer__badge { display: inline-flex; align-items: center; gap: .5rem; font-size: .8rem; color: var(--text-muted); }
.footer__col h4 { font-size: .95rem; margin-bottom: 1rem; }
.footer__col a { display: block; color: var(--text-soft); font-size: .9rem; margin-bottom: .7rem; }
.footer__col a:hover { color: var(--text); }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  padding-top: 1.6rem; border-top: 1px solid var(--border);
  color: var(--text-muted); font-size: .82rem;
}
.footer__bottom a { color: var(--text-muted); }
.footer__bottom a:hover { color: var(--text); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- Curseur : halo qui suit la souris ---------- */
.cursor-glow {
  position: fixed; top: 0; left: 0; width: 480px; height: 480px; margin: -240px 0 0 -240px;
  border-radius: 50%; background: radial-gradient(circle, rgba(255, 196, 46, 0.10), transparent 70%);
  pointer-events: none; z-index: 5; opacity: 0; transition: opacity .4s ease;
  will-change: transform;
}
body.cursor-active .cursor-glow { opacity: 1; }

/* ---------- Effet "spotlight" au survol (cartes) ---------- */
.spotlight { position: relative; overflow: hidden; }
.spotlight::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 196, 46, 0.14), transparent 70%);
  opacity: 0; transition: opacity .35s ease; pointer-events: none;
}
.spotlight:hover::before { opacity: 1; }
.spotlight > * { position: relative; z-index: 1; }

/* ---------- Pages légales ---------- */
.legal-page { padding: clamp(6rem, 10vw, 8rem) 0 5rem; }
.legal-back { display: inline-block; margin-bottom: 2rem; color: var(--text-soft); font-weight: 600; }
.legal-back:hover { color: var(--text); }
.legal-page h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: .5rem; }
.legal-updated { color: var(--text-muted); font-size: .85rem; margin-bottom: 2rem; }
.legal-page h2 { font-size: 1.15rem; margin-top: 2rem; margin-bottom: .7rem; }
.legal-page p, .legal-page li { color: var(--text-soft); font-size: .95rem; margin-bottom: .5rem; }
.legal-page ul { padding-left: 1.2rem; list-style: disc; margin-bottom: 1rem; }
.legal-page a { text-decoration: underline; }
.legal-page .todo { color: var(--yellow-400); font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero__inner, .vehicle, .zone, .contact { grid-template-columns: 1fr; }
  .hero__visual { order: -1; max-width: 420px; margin-inline: auto; }
  .services-grid, .testi-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav { position: fixed; inset: 72px 1rem auto; background: var(--bg-alt); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1.2rem; flex-direction: column; align-items: flex-start; gap: 1rem;
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease;
    box-shadow: var(--shadow); }
  .nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .burger { display: flex; }
  .header__actions .phone-cta span.label { display: none; }
  .services-grid, .testi-grid { grid-template-columns: 1fr; }
  .service-card--featured { grid-column: auto; }
  .field-row { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .vehicle__features { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .cursor-glow { display: none; }
  .spotlight::before { display: none; }
  .btn { transition: none; }
}
