/* Bagli — thème premium */
:root {
  --bg-deep: #0b002a;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.07);
  --accent: #00ff66;
  --accent-dim: rgba(0, 255, 102, 0.15);
  --coral: #ff4635;
  --white: #ffffff;
  --muted: rgba(255, 255, 255, 0.65);
  --border: rgba(255, 255, 255, 0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --font: "DM Sans", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  background: var(--bg-deep);
  color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.preloader-active {
  overflow: hidden;
}

/* Préchargeur : logo sur vert Bagli (#00FF66) à 70 % d’opacité */
.bagli-preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 255, 102, 0.7);
  transition: opacity 0.48s ease, visibility 0.48s ease;
}

.bagli-preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.bagli-preloader__logo {
  display: block;
  width: min(140px, 36vw);
  height: auto;
  max-height: min(140px, 36vw);
  object-fit: contain;
  filter: drop-shadow(0 8px 32px rgba(11, 0, 42, 0.25));
  animation: bagli-preloader-pulse 1.35s ease-in-out infinite;
}

@keyframes bagli-preloader-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.04);
    opacity: 0.92;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bagli-preloader__logo {
    animation: none;
  }
  .bagli-preloader {
    transition: opacity 0.25s ease, visibility 0.25s ease;
  }
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(0, 255, 102, 0.12), transparent),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(255, 70, 53, 0.08), transparent),
    radial-gradient(ellipse 50% 30% at 0% 80%, rgba(139, 92, 246, 0.06), transparent);
  pointer-events: none;
  z-index: 0;
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--white);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.nav-brand-icon {
  display: block;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: 10px;
}

.nav-brand span {
  background: linear-gradient(135deg, var(--accent), #7cff9e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover {
  color: var(--white);
  background: var(--bg-card);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  padding: 9px 8px;
  gap: 5px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #d3ffe3;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #00cc52);
  color: #0b002a;
  box-shadow: 0 8px 32px rgba(0, 255, 102, 0.25);
}

.btn-primary:hover {
  box-shadow: 0 12px 40px rgba(0, 255, 102, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-coral {
  background: var(--coral);
  color: var(--white);
  box-shadow: 0 8px 28px rgba(255, 70, 53, 0.35);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.875rem;
}

.icon-bagli {
  color: var(--accent);
  background: rgba(0, 255, 102, 0.12);
  border: 1px solid rgba(0, 255, 102, 0.28);
}

.icon-bagli svg {
  width: 24px;
  height: 24px;
  display: block;
}

.home-pro-section {
  margin: 56px auto;
}

.home-pro-head {
  margin-bottom: 18px;
}

.home-pro-head--split {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px 24px;
}

.home-pro-head--split p {
  max-width: 460px;
  text-align: right;
}

.home-pro-head h2 {
  margin: 0 0 8px;
  font-size: clamp(1.55rem, 2.2vw, 2rem);
}

.home-pro-head p {
  margin: 0;
  color: var(--muted);
}

.home-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.home-step-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(145deg, rgba(22, 12, 48, 0.72), rgba(10, 18, 34, 0.72));
  border-radius: 16px;
  padding: 20px;
  min-height: 190px;
}

.home-step-card h3 {
  margin: 0 0 8px;
}

.home-step-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.home-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: #062315;
  background: linear-gradient(135deg, #00ff66, #4dff99);
  margin-bottom: 10px;
}

.home-media-split {
  margin: 56px auto;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 20px;
  align-items: stretch;
}

.home-media-copy {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 18px;
  padding: 24px;
}

.home-media-copy h2 {
  margin: 0 0 10px;
  font-size: clamp(1.55rem, 2.2vw, 2rem);
}

.home-media-copy p {
  margin: 0 0 12px;
  color: var(--muted);
}

.home-checks {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.home-checks li {
  position: relative;
  padding-left: 20px;
  color: rgba(255, 255, 255, 0.88);
}

.home-checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(0, 255, 102, 0.6);
}

.home-media-grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: minmax(220px, 1fr) minmax(160px, auto);
  gap: 14px;
}

.home-media-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
}

.home-media-grid__primary {
  min-height: 260px;
}

.home-media-grid__secondary {
  min-height: 170px;
}

.mobile-app-cta {
  margin: 56px auto;
}

.mobile-app-cta__content {
  border: 1px solid rgba(0, 255, 102, 0.24);
  border-radius: 20px;
  padding: clamp(20px, 3vw, 30px);
  background: linear-gradient(
    145deg,
    rgba(11, 24, 30, 0.92),
    rgba(7, 17, 28, 0.95)
  );
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(0, 255, 102, 0.08) inset;
}

.mobile-app-cta__eyebrow {
  margin: 0 0 8px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #8dffc1;
  font-weight: 700;
}

.mobile-app-cta__content h2 {
  margin: 0 0 10px;
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  letter-spacing: -0.02em;
}

.mobile-app-cta__content p {
  margin: 0;
  color: var(--muted);
  max-width: 780px;
}

.mobile-app-cta__actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mobile-app-cta__hint {
  display: block;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.55);
}

/* Hero vidéo YouTube + overlay bleu nuit Bagli (#0B002A) */
.hero-video-section {
  position: relative;
  min-height: min(88vh, 900px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /* Pleine largeur viewport depuis le conteneur .wrap (CSS Tricks full-bleed) */
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: 8px;
  margin-bottom: 48px;
  border-radius: 0;
}

.hero-video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: #000;
}

.hero-video-bg iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw;
  min-width: 177.77vh;
  min-height: 100vh;
  transform: translate(-50%, -50%);
  border: 0;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  /* Bleu de nuit Bagli avec opacité pour laisser deviner la vidéo */
  background: linear-gradient(
    160deg,
    rgba(11, 0, 42, 0.88) 0%,
    rgba(11, 0, 42, 0.72) 45%,
    rgba(11, 0, 42, 0.85) 100%
  );
  pointer-events: none;
}

.hero-video-content {
  position: relative;
  z-index: 2;
  padding: clamp(48px, 10vw, 100px) 24px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-video-content h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 20px;
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.45);
}

.hero-video-content p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 560px;
  margin: 0 auto 36px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
}

/* Hero classique (autres pages si besoin) */
.hero {
  padding: 80px 0 100px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero p {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Cards */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.card h2,
.card h3 {
  margin-top: 0;
  letter-spacing: -0.02em;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.feature-card {
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: border-color 0.2s, background 0.2s;
}

.feature-card:hover {
  border-color: rgba(0, 255, 102, 0.3);
  background: var(--bg-card-hover);
}

.feature-card .icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}

/* Section carte trajet — pleine largeur, 2 colonnes : texte + carte */
.route-demo-section {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: 48px;
  margin-bottom: 0;
  padding: 0;
}

.route-demo-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  min-height: min(75vh, 720px);
}

.route-demo-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  padding: clamp(28px, 5vw, 56px) clamp(24px, 4vw, 48px);
  background: linear-gradient(
    165deg,
    rgba(11, 0, 42, 0.98) 0%,
    rgba(11, 0, 42, 0.92) 50%,
    rgba(0, 255, 102, 0.06) 100%
  );
  border-right: 1px solid var(--border);
}

.route-demo-copy h2 {
  margin: 0;
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.route-demo-text {
  margin: 0;
  max-width: 38ch;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.route-demo-text strong {
  color: var(--white);
  font-weight: 600;
}

.route-demo-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.route-demo-map-wrap {
  min-height: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.route-map-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  cursor: pointer;
  outline: none;
  overflow: hidden;
}

.route-map-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
  box-shadow: none;
}

.route-map-card__map {
  flex: 1;
  width: 100%;
  min-height: 0;
  height: 100%;
  background: var(--bg-deep);
  perspective: 920px;
  perspective-origin: 50% 42%;
  overflow: hidden;
}

/* MapLibre : perspective + voile bleu nuit (le texte des villes est teinté en JS) */
.route-map-card__map.maplibregl-map {
  font-family: inherit;
  border-radius: 0;
  background: var(--bg-deep);
  transform: rotateX(19deg) scale(1.14) translateZ(0);
  transform-origin: 50% 22%;
  transform-style: preserve-3d;
  filter: saturate(1.1) contrast(1.08);
}

.route-map-card .maplibregl-ctrl button {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(11, 0, 42, 0.92);
  color: var(--white);
}

.route-map-card .maplibregl-ctrl button:hover {
  background: rgba(0, 255, 102, 0.15);
  color: var(--accent);
}

.route-map-card .maplibregl-ctrl-attrib {
  background: rgba(11, 0, 42, 0.75);
  color: var(--muted);
  font-size: 0.65rem;
  max-width: 100%;
}

.route-map-card .maplibregl-ctrl-attrib a {
  color: var(--accent);
}

.route-map-card .maplibregl-ctrl-attrib-button {
  background: rgba(11, 0, 42, 0.92);
}

/* Marqueurs (HTML MapLibre) */
.bagli-map-marker {
  background: transparent !important;
  border: none !important;
}

.bagli-map-marker span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: none;
}

.bagli-map-marker--start span {
  background: linear-gradient(145deg, var(--coral), #c42e24);
}

.bagli-map-marker--end span {
  background: linear-gradient(145deg, rgba(0, 255, 102, 0.35), rgba(0, 255, 102, 0.12));
  border-color: rgba(0, 255, 102, 0.45);
  color: var(--accent);
}

.bagli-map-marker--parcel {
  filter: none;
}

.bagli-map-marker--parcel span,
.bagli-map-parcel-inner {
  background: rgba(11, 0, 42, 0.95) !important;
  border: 2px solid var(--coral) !important;
  font-size: 1.35rem !important;
  line-height: 1 !important;
}

@media (max-width: 900px) {
  .route-demo-split {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .route-demo-copy {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding-bottom: clamp(24px, 4vw, 40px);
  }

  .route-demo-map-wrap {
    min-height: 55vh;
  }

  .route-map-card {
    min-height: 55vh;
  }
}

@media (max-width: 720px) {
  .route-map-card__map {
    perspective: 1100px;
  }

  .route-map-card__map.maplibregl-map {
    transform: rotateX(11deg) scale(1.06) translateZ(0);
    transform-origin: 50% 26%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .route-map-card__map {
    perspective: none;
  }

  .route-map-card__map.maplibregl-map {
    transform: none;
    filter: saturate(1.05) contrast(1.04);
  }
}

/* Témoignages — carrousel horizontal */
.testimonials-section {
  margin-top: 56px;
  margin-bottom: 48px;
}

.testimonials-section__head {
  text-align: center;
  margin-bottom: 32px;
}

.testimonials-section__head h2 {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.testimonials-section__lead {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.testimonials-carousel {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 1100px;
  margin: 0 auto;
}

.testimonials-track-wrap {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.testimonials-track {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 8px 4px 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.testimonials-track::-webkit-scrollbar {
  height: 6px;
}

.testimonials-track::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

.testimonial-card {
  flex: 0 0 min(100%, 340px);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(165deg, rgba(11, 0, 42, 0.95), rgba(11, 0, 42, 0.75));
  box-shadow: var(--shadow);
}

.testimonial-card__photo img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid rgba(0, 255, 102, 0.35);
}

.testimonial-card__quote {
  margin: 20px 0 0;
  padding: 0;
  border: none;
  font-style: normal;
}

.testimonial-card__quote p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.testimonial-card__name {
  display: block;
  margin-top: 16px;
  font-style: normal;
  font-weight: 700;
  font-size: 1rem;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.testimonials-nav {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(11, 0, 42, 0.9);
  color: var(--white);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s;
}

.testimonials-nav:hover {
  background: rgba(0, 255, 102, 0.12);
  color: var(--accent);
}

@media (max-width: 720px) {
  .testimonials-carousel {
    gap: 8px;
  }

  .testimonials-nav {
    width: 38px;
    height: 38px;
    font-size: 1.25rem;
  }

  .testimonial-card {
    flex-basis: 85vw;
  }
}

/* Forms */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}

@media (max-width: 720px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  color: var(--white);
  font-family: inherit;
  font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.form-group input.input-disabled,
.form-group input:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* Pages connexion / inscription : image large + formulaire (sans carte) */
.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: stretch;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: 16px;
  margin-bottom: 56px;
  min-height: min(calc(100vh - 140px), 920px);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.auth-visual {
  position: relative;
  min-height: 320px;
  background:
    linear-gradient(145deg, rgba(11, 0, 42, 0.92) 0%, rgba(11, 0, 42, 0.65) 40%, rgba(0, 255, 102, 0.12) 100%),
    radial-gradient(ellipse 80% 60% at 20% 30%, rgba(0, 255, 102, 0.15), transparent),
    #0b002a;
}

.auth-visual-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.auth-form-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 5vw, 56px) clamp(28px, 4vw, 48px);
  background: rgba(0, 0, 0, 0.2);
  max-width: 100%;
}

.auth-form-title {
  margin: 0 0 28px;
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.auth-form-footer {
  text-align: center;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.auth-form-footer a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.auth-form-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 960px) {
  .auth-layout {
    grid-template-columns: 1fr;
    min-height: auto;
    margin-top: 8px;
  }

  .auth-visual {
    order: 2;
    min-height: 240px;
    max-height: 42vh;
  }

  .auth-form-panel {
    order: 1;
    padding: 36px 24px 28px;
  }
}

/* Alerts */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.alert-error {
  background: rgba(255, 70, 53, 0.15);
  border: 1px solid rgba(255, 70, 53, 0.4);
  color: #ffb4ab;
}

.alert-success {
  background: rgba(0, 255, 102, 0.12);
  border: 1px solid rgba(0, 255, 102, 0.35);
  color: var(--accent);
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

table.data th,
table.data td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

table.data th {
  background: rgba(0, 0, 0, 0.3);
  font-weight: 600;
  color: var(--muted);
}

table.data tr:last-child td {
  border-bottom: none;
}

table.data tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-admin {
  background: rgba(255, 70, 53, 0.2);
  color: #ff9a8f;
}

.badge-user {
  background: rgba(0, 255, 102, 0.15);
  color: var(--accent);
}

/* Administration & espace membre — barre latérale gauche */
body.page-admin .wrap,
body.page-user .wrap {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

body.page-admin .nav,
body.page-user .nav {
  padding-left: clamp(16px, 3vw, 28px);
  padding-right: clamp(16px, 3vw, 28px);
}

.admin-wrap {
  display: flex;
  align-items: stretch;
  min-height: calc(100vh - 88px);
  width: 100%;
}

.admin-sidebar {
  width: 260px;
  flex-shrink: 0;
  background: linear-gradient(
    180deg,
    rgba(11, 0, 42, 0.98) 0%,
    rgba(11, 0, 42, 0.94) 100%
  );
  border: none;
  display: flex;
  flex-direction: column;
  padding: 20px 0;
}

.admin-sidebar__head {
  padding: 0 20px 20px;
  border: none;
}

.admin-sidebar__title {
  display: block;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.admin-sidebar__sub {
  display: block;
  margin-top: 4px;
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.admin-sidebar__nav {
  flex: 1;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-sidebar__link {
  display: block;
  padding: 12px 14px;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition:
    background 0.2s,
    color 0.2s;
  box-shadow: none;
}

.admin-sidebar__link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
}

.admin-sidebar__link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.admin-sidebar__link.is-active {
  background: rgba(0, 255, 102, 0.14);
  color: var(--accent);
}

.admin-sidebar__link--row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.admin-sidebar__link-text {
  flex: 1;
  min-width: 0;
}

.admin-sidebar__badge {
  flex-shrink: 0;
  min-width: 1.35rem;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  background: #ff3b4a;
  color: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);
}

.admin-sidebar__footer {
  padding: 16px 12px 0;
  border: none;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-sidebar__link--ghost {
  opacity: 0.95;
}

.admin-sidebar__link--logout {
  color: #ff8a7e;
}

.admin-sidebar__link--logout:hover {
  background: rgba(255, 70, 53, 0.12);
  color: var(--coral);
}

.user-sidebar .admin-sidebar__head {
  padding-bottom: 16px;
}

.user-sidebar__identity {
  display: flex;
  align-items: center;
  gap: 14px;
}

.user-sidebar__identity-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.user-sidebar__identity-text .admin-sidebar__title,
.user-sidebar__identity-text .admin-sidebar__sub {
  display: block;
}

.user-sidebar__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(0, 255, 102, 0.25);
}

.user-sidebar__avatar--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 255, 102, 0.12);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.profile-photo-block {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.profile-photo-preview {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
}

.profile-photo-preview__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-photo-preview__placeholder {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(0, 255, 102, 0.1);
}

.profile-photo-fields {
  flex: 1;
  min-width: 200px;
}

.profile-photo-remove {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--muted);
  cursor: pointer;
}

.profile-photo-remove input {
  width: auto;
  margin: 0;
}

.admin-main {
  flex: 1;
  min-width: 0;
  padding: 0 clamp(16px, 3vw, 40px);
}

/* Layout dashboard */
.dashboard {
  padding: 40px 0 80px;
}

.dashboard-header {
  margin-bottom: 32px;
}

.dashboard-header h1 {
  margin: 0 0 8px;
  font-size: 1.75rem;
}

.dashboard-header p {
  margin: 0;
  color: var(--muted);
}

.dashboard-header--with-avatar {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.dashboard-header__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(0, 255, 102, 0.2);
}

.dashboard-header__avatar--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 255, 102, 0.1);
  color: var(--accent);
  font-weight: 700;
  font-size: 1.25rem;
}

.dashboard-header__intro {
  min-width: 0;
  flex: 1;
}

.dashboard-header__meta {
  font-size: 0.95rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.stat-card {
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.stat-card .num {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.stat-card .lbl {
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 8px;
}

footer.site-footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted);
  font-size: 0.875rem;
}

/* Administration — outils supplémentaires */
.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.admin-toolbar__label {
  color: var(--muted);
  font-size: 0.9rem;
  margin-right: 4px;
}

.admin-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 8px;
}

.admin-dash-card .admin-mini-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.admin-mini-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.admin-mini-list li:last-child {
  border-bottom: none;
}

.admin-mini-list__meta {
  display: block;
  width: 100%;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 400;
}

.admin-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.badge-trip {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 8px;
}

.badge-trip--active {
  background: rgba(0, 255, 102, 0.15);
  color: var(--accent);
}

.badge-trip--completed {
  background: rgba(139, 92, 246, 0.2);
  color: #c4b5fd;
}

.badge-trip--cancelled {
  background: rgba(255, 70, 53, 0.15);
  color: #ff9a8f;
}

.admin-select {
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  color: var(--white);
  font-family: inherit;
  font-size: 0.85rem;
  max-width: 150px;
}

.admin-dl {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 20px;
  font-size: 0.95rem;
  align-items: baseline;
}

.admin-dl dt {
  margin: 0;
  color: var(--muted);
  font-weight: 500;
}

.admin-dl dd {
  margin: 0;
  word-break: break-word;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 900px) {
  .admin-wrap {
    flex-direction: column;
    min-height: 0;
  }

  .admin-sidebar {
    width: 100%;
    border: none;
    padding: 12px 0 16px;
  }

  .admin-sidebar__nav {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 8px 10px;
    gap: 6px;
  }

  .admin-sidebar__link {
    padding: 10px 12px;
    font-size: 0.88rem;
  }

  .admin-sidebar__link.is-active {
    background: rgba(0, 255, 102, 0.14);
    color: var(--accent);
  }

  .admin-sidebar__footer {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    padding: 10px 10px 0;
    margin-top: 0;
    border: none;
  }

  .admin-main {
    padding: 0 16px;
  }
}

/* ——— Reveal on scroll ——— */
.reveal {
  --reveal-delay: 0s;
  --reveal-duration: 0.85s;
  --reveal-ease: cubic-bezier(0.22, 1, 0.36, 1);
  opacity: 0;
  transform: translate3d(0, 36px, 0);
  transition:
    opacity var(--reveal-duration) var(--reveal-ease) var(--reveal-delay),
    transform var(--reveal-duration) var(--reveal-ease) var(--reveal-delay);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.reveal-fade {
  transform: translate3d(0, 0, 0);
}

.reveal-fade.is-visible {
  transform: translate3d(0, 0, 0);
}

.reveal-left {
  transform: translate3d(-40px, 0, 0);
}

.reveal-right {
  transform: translate3d(40px, 0, 0);
}

.reveal-scale {
  transform: translate3d(0, 24px, 0) scale(0.96);
}

.reveal-scale.is-visible {
  transform: translate3d(0, 0, 0) scale(1);
}

.reveal-delay-1 {
  --reveal-delay: 0.08s;
}
.reveal-delay-2 {
  --reveal-delay: 0.16s;
}
.reveal-delay-3 {
  --reveal-delay: 0.24s;
}
.reveal-delay-4 {
  --reveal-delay: 0.32s;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Proposer un trajet — grille formulaire */
.trip-offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  align-items: end;
}

.trip-offer-grid__submit {
  grid-column: 1 / -1;
}

@media (min-width: 900px) {
  .trip-offer-grid__submit {
    grid-column: auto;
    align-self: end;
  }
}

.trip-offer-card .form-group input[type='date'] {
  min-height: 48px;
}

.trip-delete-form {
  margin: 0;
  display: inline-block;
}

.trip-delete-btn {
  color: #ff8a7e !important;
  padding: 6px 10px;
  font-size: 0.85rem;
}

.trip-delete-btn:hover {
  background: rgba(255, 70, 53, 0.12) !important;
  color: var(--coral) !important;
}

/* Page annonces */
.annonces-page {
  padding-bottom: 120px;
  padding-top: 16px;
}

/* Bloc héro — panneau vitré */
.annonces-hero-panel {
  position: relative;
  margin-bottom: 48px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(
    135deg,
    rgba(22, 14, 52, 0.85) 0%,
    rgba(11, 0, 42, 0.65) 50%,
    rgba(8, 32, 28, 0.5) 100%
  );
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.annonces-hero-panel__mesh {
  position: absolute;
  inset: 0;
  opacity: 0.45;
  background-image:
    radial-gradient(circle at 18% 22%, rgba(0, 255, 102, 0.22) 0%, transparent 42%),
    radial-gradient(circle at 88% 12%, rgba(255, 70, 53, 0.12) 0%, transparent 38%),
    radial-gradient(circle at 70% 88%, rgba(139, 92, 246, 0.1) 0%, transparent 40%);
  pointer-events: none;
}

.annonces-hero-panel__inner {
  position: relative;
  z-index: 1;
  padding: clamp(28px, 5vw, 44px) clamp(24px, 4vw, 48px);
  max-width: 720px;
}

.annonces-hero-panel__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-bottom: 14px;
}

.annonces-hero__eyebrow {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin: 0;
  font-weight: 700;
}

.annonces-hero__pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(0, 255, 102, 0.12);
  border: 1px solid rgba(0, 255, 102, 0.28);
  letter-spacing: 0.02em;
}

.annonces-hero__title {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.annonces-hero .dashboard-header__meta,
.annonces-hero__lead {
  margin: 0;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.65;
  max-width: 560px;
}

/* État vide */
.annonces-empty {
  text-align: center;
  max-width: 440px;
  margin: 0 auto 48px;
  padding: clamp(36px, 6vw, 52px) 28px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.annonces-empty__visual {
  position: relative;
  width: 88px;
  height: 88px;
  margin: 0 auto 22px;
  display: grid;
  place-items: center;
}

.annonces-empty__orbit {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px dashed rgba(0, 255, 102, 0.25);
  animation: annonces-empty-spin 22s linear infinite;
}

@keyframes annonces-empty-spin {
  to {
    transform: rotate(360deg);
  }
}

.annonces-empty__icon {
  font-size: 2.25rem;
  line-height: 1;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.35));
}

.annonces-empty__title {
  margin: 0 0 10px;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.annonces-empty__text {
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

.annonces-empty__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

@media (prefers-reduced-motion: reduce) {
  .annonces-empty__orbit {
    animation: none;
  }
}

.annonces-grid--premium {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: clamp(20px, 3vw, 32px);
}

/* Carte annonce premium */
.annonce-card--premium {
  position: relative;
  border-radius: 20px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(
    145deg,
    rgba(22, 12, 48, 0.95) 0%,
    rgba(11, 0, 42, 0.92) 45%,
    rgba(8, 20, 35, 0.88) 100%
  );
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(0, 255, 102, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease;
}

.annonce-card--premium:hover {
  transform: translateY(-4px);
  box-shadow:
    0 32px 64px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(0, 255, 102, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.annonce-card__shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    125deg,
    rgba(0, 255, 102, 0.07) 0%,
    transparent 42%,
    rgba(139, 92, 246, 0.06) 100%
  );
  pointer-events: none;
}

.annonce-card--premium > *:not(.annonce-card__shine) {
  position: relative;
  z-index: 1;
}

.annonce-card__header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 22px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.annonce-card__avatar-ring {
  flex-shrink: 0;
  padding: 3px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0, 255, 102, 0.45), rgba(139, 92, 246, 0.35));
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.08);
}

.annonce-card__avatar {
  display: block;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(11, 0, 42, 0.9);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.annonce-card__avatar--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(0, 255, 102, 0.18), rgba(11, 0, 42, 0.95));
  color: var(--accent);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}

.annonce-card__identity {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.annonce-card__name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.annonce-card__wa-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.78);
  word-break: break-all;
  margin-top: 2px;
  padding: 6px 10px 6px 8px;
  border-radius: 10px;
  background: rgba(37, 211, 102, 0.08);
  border: 1px solid rgba(37, 211, 102, 0.18);
  max-width: 100%;
}

.annonce-card__wa-icon {
  flex-shrink: 0;
  opacity: 0.85;
  color: #25d366;
}

.annonce-card__route-block {
  padding: 18px 22px 10px;
}

.annonce-card__route-label {
  margin: 0 0 14px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 600;
}

/* Ligne trajet : pastilles + avion */
.annonce-card__route-strip {
  display: flex;
  align-items: center;
  gap: 10px 14px;
  flex-wrap: wrap;
}

.annonce-card__code-pill {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.25rem;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: rgba(0, 255, 102, 0.1);
  border: 1px solid rgba(0, 255, 102, 0.22);
  box-shadow: 0 0 28px rgba(0, 255, 102, 0.12);
}

.annonce-card__code-pill--to {
  background: rgba(139, 92, 246, 0.12);
  border-color: rgba(139, 92, 246, 0.28);
  color: #c4b5fd;
  box-shadow: 0 0 24px rgba(139, 92, 246, 0.1);
}

.annonce-card__route-line {
  flex: 1;
  display: flex;
  align-items: center;
  min-width: 72px;
  max-width: 160px;
  gap: 0;
}

.annonce-card__route-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(0, 255, 102, 0.5);
  flex-shrink: 0;
}

.annonce-card__route-dot--end {
  background: #a78bfa;
  box-shadow: 0 0 12px rgba(167, 139, 250, 0.45);
}

.annonce-card__route-dash {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, rgba(0, 255, 102, 0.45), rgba(255, 255, 255, 0.12), rgba(167, 139, 250, 0.45));
  min-width: 12px;
}

.annonce-card__route-plane {
  flex-shrink: 0;
  display: flex;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 -4px;
  z-index: 1;
}

.annonce-card__route-plane svg {
  display: block;
}

.annonce-card__route-full {
  margin: 14px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}

.annonce-card__route-full-sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
}

.annonce-card__route-full-line {
  flex: 1 1 40%;
  min-width: 0;
}

.annonce-card__specs {
  margin: 0;
  padding: 14px 22px 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.annonce-card__spec {
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.annonce-card--premium:hover .annonce-card__spec {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.28);
}

.annonce-card__spec dt {
  margin: 0 0 4px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 600;
}

.annonce-card__spec dd {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}

.annonce-card__spec--price dd {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.annonce-card__footer-meta {
  padding: 10px 22px 14px;
  margin-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.annonce-card__posted {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.36);
  letter-spacing: 0.02em;
}

.annonce-card__actions {
  padding: 16px 22px 22px;
  margin-top: auto;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.18));
  border-radius: 0 0 18px 18px;
}

.annonce-card__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 15px 20px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 0.96rem;
  text-decoration: none;
  color: #050014;
  background: linear-gradient(135deg, #00ff66 0%, #2ee59d 55%, #22c55e 100%);
  box-shadow:
    0 12px 32px rgba(0, 255, 102, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}

.annonce-card__cta:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow:
    0 16px 40px rgba(0, 255, 102, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  color: #030010;
}

.annonce-card__cta-icon {
  font-size: 1.05rem;
}

.annonce-card__no-wa {
  display: block;
  text-align: center;
  font-size: 0.88rem;
  color: var(--muted);
  padding: 12px;
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.2);
}

.trip-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(0, 255, 102, 0.22);
  background: rgba(0, 255, 102, 0.1);
  color: #8bffbf;
}

.trip-status-pill--completed {
  border-color: rgba(100, 181, 246, 0.24);
  background: rgba(100, 181, 246, 0.12);
  color: #9fd6ff;
}

.trip-status-pill--cancelled {
  border-color: rgba(255, 138, 101, 0.26);
  background: rgba(255, 138, 101, 0.14);
  color: #ffc0ad;
}

.trip-delete-form {
  margin-top: 10px;
}

.trip-delete-form .trip-delete-btn {
  width: 100%;
}

/* Chat interne */
.chat-layout {
  display: grid;
  grid-template-columns: minmax(260px, 320px) 1fr;
  gap: 18px;
}

.chat-list,
.chat-main {
  min-height: 72vh;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(12, 16, 30, 0.72);
  backdrop-filter: blur(10px);
}

.chat-thread-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chat-thread-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--white);
  transition: background 0.18s ease, border-color 0.18s ease;
}

.chat-thread-link:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.16);
}

.chat-thread-link.is-active {
  border-color: rgba(0, 255, 102, 0.45);
  background: rgba(0, 255, 102, 0.12);
}

.chat-thread-link.has-unread {
  border-color: rgba(0, 255, 102, 0.35);
}

.chat-thread-link.has-unread .chat-thread-avatar {
  box-shadow: 0 0 0 2px rgba(0, 255, 102, 0.55);
}

.chat-thread-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(0, 255, 102, 0.85), rgba(11, 0, 42, 0.92));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.84rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 10px 18px rgba(0, 255, 102, 0.22);
}

.chat-thread-avatar--lg {
  width: 48px;
  height: 48px;
  font-size: 0.92rem;
}

.chat-thread-content {
  min-width: 0;
  flex: 1;
}

.chat-thread-route,
.chat-thread-last {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
  margin-top: 4px;
}

.chat-main {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-main-head {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 14px 14px 12px;
  margin: -24px -24px 12px;
  background: rgba(255, 255, 255, 0.03);
}

.chat-main-head__identity {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-messages {
  flex: 1;
  min-height: 280px;
  max-height: 62vh;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 8px 8px 10px 2px;
}

.chat-bubble {
  max-width: min(78%, 540px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 18px 18px 18px 8px;
  padding: 10px 12px 9px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

.chat-bubble.is-mine {
  align-self: flex-end;
  background: linear-gradient(135deg, rgba(0, 255, 102, 0.22), rgba(0, 255, 102, 0.12));
  border-color: rgba(0, 255, 102, 0.45);
  border-radius: 18px 18px 8px 18px;
  color: var(--white);
}

.chat-bubble__meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 0.78rem;
  margin-bottom: 6px;
}

.chat-bubble.is-mine .chat-bubble__meta,
.chat-bubble.is-mine p {
  color: var(--white);
}

.chat-bubble p {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

.chat-attachment {
  margin-top: 8px;
}

.chat-attachment__image {
  display: block;
  max-width: min(280px, 100%);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.chat-attachment__video {
  display: block;
  width: min(320px, 100%);
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #000;
}

.chat-attachment__pdf {
  display: inline-block;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--white);
  background: rgba(255, 255, 255, 0.03);
}

.chat-form {
  margin-top: 10px;
  display: grid;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(11, 0, 42, 0.55);
  position: sticky;
  bottom: 0;
}

.chat-emoji-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chat-emoji-btn {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  font-size: 1rem;
  line-height: 1;
  padding: 8px;
  cursor: pointer;
}

.chat-emoji-btn:hover {
  background: rgba(0, 255, 102, 0.1);
  border-color: rgba(0, 255, 102, 0.3);
}

.chat-form textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.22);
  color: var(--white);
  padding: 12px;
  font-family: inherit;
  resize: vertical;
}

.chat-upload-row {
  display: grid;
  gap: 6px;
}

.chat-upload-label {
  font-size: 0.9rem;
  color: var(--muted);
}

.chat-file-hint {
  color: var(--muted);
  font-size: 0.82rem;
}

/* Validation / paiement / code service (chat) */
.chat-service-panel {
  margin: 0 -24px 12px;
  padding: 18px 20px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(145deg, rgba(0, 255, 102, 0.09) 0%, rgba(11, 0, 42, 0.35) 55%, rgba(11, 0, 42, 0.2) 100%);
  border-radius: 0;
}

.chat-service-panel__intro {
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.chat-service-eyebrow {
  margin: 0 0 6px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(0, 255, 102, 0.85);
}

.chat-service-lead {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 500;
  max-width: 42rem;
}

.chat-service-track {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
}

@media (max-width: 640px) {
  .chat-service-track {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

.chat-service-track__step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  margin: 0;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.12);
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

@media (min-width: 641px) {
  .chat-service-track__step:not(:last-child) {
    margin-right: 8px;
  }
}

.chat-service-track__marker {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
  color: rgba(255, 255, 255, 0.55);
  border: 2px solid rgba(255, 255, 255, 0.18);
  background: rgba(11, 0, 42, 0.5);
}

.chat-service-track__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.chat-service-track__title {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.chat-service-track__desc {
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--muted);
}

.chat-service-track__step.is-upcoming {
  opacity: 0.72;
}

.chat-service-track__step.is-upcoming .chat-service-track__marker {
  border-style: dashed;
}

.chat-service-track__step.is-await {
  border-color: rgba(255, 193, 94, 0.35);
  background: rgba(255, 193, 94, 0.06);
  box-shadow: 0 0 0 1px rgba(255, 193, 94, 0.08);
}

.chat-service-track__step.is-await .chat-service-track__marker {
  border-color: rgba(255, 193, 94, 0.55);
  color: #ffc55e;
}

.chat-service-track__step.is-current {
  border-color: rgba(0, 255, 102, 0.45);
  background: rgba(0, 255, 102, 0.08);
  box-shadow: 0 0 24px rgba(0, 255, 102, 0.08);
}

.chat-service-track__step.is-current .chat-service-track__marker {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 12px rgba(0, 255, 102, 0.25);
}

.chat-service-track__step.is-current .chat-service-track__title {
  color: var(--accent);
}

.chat-service-track__step.is-done {
  border-color: rgba(0, 255, 102, 0.28);
  background: rgba(0, 255, 102, 0.06);
}

.chat-service-track__step.is-done .chat-service-track__marker {
  border-color: rgba(0, 255, 102, 0.55);
  background: rgba(0, 255, 102, 0.2);
  color: var(--accent);
  font-size: 0.72rem;
}

.chat-service-track__step.is-done .chat-service-track__title {
  color: rgba(255, 255, 255, 0.9);
}

.chat-service-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.chat-service-hint {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
}

.chat-service-disclaimer {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--muted);
}

.chat-service-wait {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--muted);
}

.chat-service-wait--neutral {
  color: rgba(255, 255, 255, 0.82);
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.chat-service-code-box {
  margin-top: 10px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(0, 255, 102, 0.35);
  background: rgba(11, 0, 42, 0.55);
}

.chat-service-code-label {
  margin: 0 0 6px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.chat-service-code-value {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--accent);
  word-break: break-all;
}

@media (max-width: 980px) {
  .home-media-split {
    grid-template-columns: 1fr;
  }

  .home-pro-head--split {
    display: block;
  }

  .home-pro-head--split p {
    text-align: left;
    max-width: none;
  }

  .home-steps-grid {
    grid-template-columns: 1fr;
  }

  .chat-layout {
    grid-template-columns: 1fr;
  }

  .chat-list,
  .chat-main {
    min-height: 0;
  }
}

@media (max-width: 480px) {
  .annonce-card__specs {
    grid-template-columns: 1fr;
  }

  .annonce-card__route-line {
    max-width: none;
    width: 100%;
    margin: 6px 0;
  }

  .annonce-card__route-strip {
    flex-direction: column;
    align-items: stretch;
  }

  .annonce-card__code-pill {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .nav {
    position: relative;
    flex-direction: row;
    gap: 10px;
    align-items: center;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(11, 0, 42, 0.98);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.45);
    z-index: 50;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    width: 100%;
  }
}
