/* ═══════════════════════════════════════════════════════════════
   LANDING PAGE VILLE DYNAMIQUE — Digimoov
   /formation-capacite-transport?ville=bordeaux&date=YYYY-MM-DD
   ═══════════════════════════════════════════════════════════════ */

/* ── Base & Wrapper ── */
.landing-ville {
  overflow-x: hidden;
  color: #202647;
  font-family: inherit;
  line-height: 1.7;
}

.landing-ville section {
  padding: 56px 0;
}

/* ── Scroll Reveal Animation ──
   Content is fully visible by default.
   JS adds .lv-animate to body, which hides elements.
   IntersectionObserver adds .lv-revealed to show them. */
.lv-animate .lv-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}

.lv-animate .lv-reveal.lv-revealed {
  opacity: 1;
  transform: translateY(0);
}

.lv-animate .lv-reveal:nth-child(2) {
  transition-delay: 0.1s;
}
.lv-animate .lv-reveal:nth-child(3) {
  transition-delay: 0.2s;
}
.lv-animate .lv-reveal:nth-child(4) {
  transition-delay: 0.3s;
}

/* ══════════════════════════════════════════════════════════
   BLOC 1 — HERO
   ══════════════════════════════════════════════════════════ */
.lv-hero {
  background: linear-gradient(135deg, #f0f2ff 0%, #e8eafc 100%);
  padding: 80px 0 0;
}

.lv-hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  color: #202647;
  margin-bottom: 12px;
  line-height: 1.2;
}

.lv-hero h2 {
  font-size: 1.35rem;
  font-weight: 600;
  color: #354396;
  margin-bottom: 24px;
}

.lv-hero .lv-hero-text {
  font-size: 1.1rem;
  color: #444;
  margin-bottom: 8px;
}

.lv-hero .lv-stat {
  font-size: 1.1rem;
  font-weight: 700;
  color: #354396;
  margin-bottom: 8px;
}

.lv-trustpilot-text {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 12px;
}

.lv-trustpilot-text a {
  color: #354396;
}

/* Override Trustpilot widget internal centering */
.lv-hero .tp-widget-wrapper {
  text-decoration: underline;
}

/* Countdown wrapper — em-dash + badge; hidden until a date is provided */
.lv-countdown-wrap {
  display: none;
}
.lv-countdown-wrap.countdown-visible {
  display: inline;
}

/* Countdown badge */
#countdown {
  display: inline-block;
  background: #354396;
  color: #fff;
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
}

.lv-hero-img img {
  max-width: 100%;
  max-height: 420px;
  height: auto;
  width: auto;
  margin: 0 auto;
  display: block;
  border-radius: 12px;
  object-fit: contain;
}

/* Hero overlay badge — shown only for generic pool images (fake centres without
   a dedicated monument). Positioned bottom-right so it doesn't obscure the
   illustration's focal point. The wrapper exists solely to anchor the badge. */
.lv-hero-image-wrapper {
  position: relative;
  display: inline-block;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
}
.lv-hero-image-wrapper > img {
  display: block;
  border-radius: 0;
}

.lv-hero-overlay-badge {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  padding: 9px 24px 9px 16px;
  border-radius: 999px;
  background: rgba(53, 67, 150, 0.5);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 4px 18px rgba(53, 67, 150, 0.25);
  color: #fff;
  pointer-events: none;
  z-index: 3;
  white-space: nowrap;
}

.lv-hero-overlay-badge .lv-overlay-pin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.lv-hero-overlay-badge .lv-overlay-pin svg {
  width: 17px;
  height: 17px;
  display: block;
  fill: #fff;
}

.lv-hero-overlay-badge .lv-overlay-city {
  font-family: 'Fraunces', 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  line-height: 1;
}

@media (max-width: 576px) {
  .lv-hero-overlay-badge {
    bottom: 12px;
    padding: 7px 18px 7px 12px;
    gap: 6px;
  }
  .lv-hero-overlay-badge .lv-overlay-pin svg {
    width: 14px;
    height: 14px;
  }
  .lv-hero-overlay-badge .lv-overlay-city {
    font-size: 15px;
  }
}

/* Dynamic city name placeholder. The NBSP comes from CSS so the separator
   is preserved even when (a) the parent is a flex container that strips
   trailing whitespace, or (b) the JS substitution doesn't run (unknown ville). */
.ville-name::before {
  content: '\00a0';
}

/* ── CTA Buttons ── */
.landing-ville .btn-alpha {
  background-color: #354396;
  color: #fff !important;
  border: 2px solid #354396;
  padding: 10px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.landing-ville .btn-alpha:hover {
  background-color: transparent;
  color: #354396 !important;
}

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

.btn-alpha.lv-pulse {
  animation: lv-pulse 2.5s ease-in-out infinite;
}

.btn-alpha.lv-pulse:hover {
  animation: none;
}

/* Trust logos: uses .center-logo from style-landing.min.css (same as homepage) */

/* ══════════════════════════════════════════════════════════
   NEARBY CITIES PILLS
   ══════════════════════════════════════════════════════════ */
.lv-pills-section {
  padding: 0 0 20px !important;
  background: linear-gradient(135deg, #f0f2ff 0%, #e8eafc 100%);
}

/* Reduce gap between pills and trust logos */
.lv-pills-section + section {
  padding-top: 0 !important;
}

.lv-pills-section + section .center-logo {
  margin-top: 0 !important;
}

.lv-pills-wrapper {
  text-align: center;
}

.lv-pills-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #8b90b0;
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

.lv-pills-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.lv-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #354396;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(53, 67, 150, 0.12);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(53, 67, 150, 0.06);
}

.lv-pill:hover {
  background: #354396;
  color: #fff;
  border-color: #354396;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(53, 67, 150, 0.25);
  text-decoration: none;
}

/* ══════════════════════════════════════════════════════════
   TRANSPORT REIMBURSEMENT SECTION + ELIGIBILITY POPUP
   ══════════════════════════════════════════════════════════ */
.lv-eligibility {
  padding: 32px 0 !important;
  background: #f8f9fc;
}

.lv-eligibility-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border: 1.5px solid #86efac;
  border-radius: 14px;
  padding: 24px 32px;
  max-width: 800px;
  margin: 0 auto;
}

.lv-eligibility-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  color: #166534;
}

.lv-eligibility-content {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.lv-eligibility-text {
  font-size: 1rem;
  font-weight: 600;
  color: #166534;
  line-height: 1.5;
  margin: 0;
  flex: 1;
  min-width: 200px;
}

.lv-eligibility-btn {
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Eligibility Modal (matches training-hours-modal design system) ── */
.lv-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation: lv-modal-fade-in 0.3s ease forwards;
}

@keyframes lv-modal-fade-in {
  to {
    opacity: 1;
  }
}

.lv-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.lv-modal-dialog {
  position: relative;
  background: #fff;
  border-radius: 20px;
  max-width: 460px;
  width: 94%;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
  transform: translateY(40px) scale(0.95);
  animation: lv-modal-slide-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes lv-modal-slide-in {
  to {
    transform: translateY(0) scale(1);
  }
}

/* Header with gradient */
.lv-modal-header {
  background: linear-gradient(135deg, #354396 0%, #4a5bb8 100%);
  color: #fff;
  padding: 26px 28px 24px;
  position: relative;
}

.lv-modal-header-content {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-right: 48px;
}

.lv-modal-header-icon {
  font-size: 26px;
  opacity: 1;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lv-modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff !important;
  margin: 0 0 4px 0;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.lv-modal-subtitle {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.92) !important;
  margin: 0;
  line-height: 1.4;
}

/* Close button — round, top-right */
.lv-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid transparent;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  line-height: 1;
  padding: 0;
}

.lv-modal-close:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

/* Body */
.lv-modal-body {
  padding: 28px 28px 32px;
}

.lv-modal-body-text {
  font-size: 0.95rem;
  color: #374151;
  line-height: 1.6;
  margin: 0 0 22px 0;
}

.lv-modal-input-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: stretch;
}

.lv-modal-input {
  flex: 1 1 200px;
  min-width: 0;
  padding: 12px 18px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  outline: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  background: #f9fafb;
}

.lv-modal-input:focus {
  border-color: #354396;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(53, 67, 150, 0.12);
}

.lv-modal-input::placeholder {
  color: #9ca3af;
  font-weight: 400;
}

.lv-modal-body .btn-alpha {
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 0.9rem;
  white-space: nowrap;
}

/* Eligibility result (inside modal body) */
.lv-elig-result {
  margin-top: 20px;
  padding: 16px 20px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.5;
  animation: lv-result-appear 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes lv-result-appear {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.lv-elig-result .fa {
  margin-right: 8px;
  font-size: 1rem;
}

.lv-elig-result-success {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border-left: 4px solid #16a34a;
  color: #166534;
}

.lv-elig-result-info {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-left: 4px solid #3b82f6;
  color: #1e3a5f;
}

.lv-elig-result-error {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border-left: 4px solid #ef4444;
  color: #991b1b;
  font-weight: 500;
}

/* ══════════════════════════════════════════════════════════
   BLOC 2 — 4 STEPS TIMELINE
   ══════════════════════════════════════════════════════════ */
.lv-steps {
  background: #f8f9fc;
}

.lv-steps-title {
  text-align: center;
  margin-bottom: 48px;
}

.lv-steps-title h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #202647;
}

.lv-steps-grid {
  display: flex;
  justify-content: center;
  gap: 24px;
  position: relative;
}

.lv-steps-grid::before {
  content: '';
  position: absolute;
  top: 26px;
  left: calc(12.5% + 26px);
  right: calc(12.5% + 26px);
  height: 3px;
  background: linear-gradient(90deg, #354396 0%, #7b8cde 100%);
  z-index: 0;
}

.lv-step-card {
  flex: 1;
  max-width: 240px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.lv-step-number {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #354396 !important;
  color: #fff !important;
  font-size: 1.3rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 4px 12px rgba(53, 67, 150, 0.3);
  border: 3px solid #f8f9fc;
}

.lv-step-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #202647;
  margin-bottom: 8px;
}

.lv-step-card p {
  font-size: 0.92rem;
  color: #555;
  line-height: 1.5;
}

/* ══════════════════════════════════════════════════════════
   BLOC 3a — SCOOTER IMAGE + TEXT
   ══════════════════════════════════════════════════════════ */
.lv-image-text {
  padding: 56px 0 !important;
  overflow: hidden;
  background: #fff;
}

.lv-image-cover {
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
}

.lv-image-cover img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

.lv-image-text-content {
  padding: 24px 0 24px 40px;
}

.lv-image-text-content h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #202647;
  margin-bottom: 20px;
  line-height: 1.3;
}

.lv-image-text-content p {
  font-size: 1rem;
  color: #555;
  line-height: 1.7;
}

/* ══════════════════════════════════════════════════════════
   BLOC 3b — PROFILE CARDS
   ══════════════════════════════════════════════════════════ */
.lv-profiles {
  background: #f8f9fc;
}

.lv-profile-card {
  background: #fff;
  border-radius: 12px;
  padding: 36px 28px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  height: 100%;
}

.lv-profile-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(53, 67, 150, 0.12);
}

.lv-profile-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.lv-profile-icon img {
  width: 56px;
  height: 56px;
}

.lv-profile-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #202647;
  margin-bottom: 12px;
}

.lv-profile-card p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
}

/* ══════════════════════════════════════════════════════════
   BLOC 4 — SESSION DE BIENVENUE CTA (compact, left-aligned)
   ══════════════════════════════════════════════════════════ */
.lv-bienvenue {
  background: #354396 !important;
  background-image: linear-gradient(135deg, #354396 0%, #4a5bb8 100%) !important;
  color: #fff !important;
  padding: 48px 0 !important;
  text-align: center;
}

.lv-bienvenue h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: #fff !important;
}

.lv-bienvenue p {
  font-size: 1rem;
  opacity: 0.9;
  max-width: 650px;
  margin: 0 auto 24px;
  line-height: 1.7;
  color: #fff !important;
}

.lv-bienvenue-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: nowrap;
}

.lv-bienvenue .btn-white {
  background: #fff !important;
  color: #354396 !important;
  border: 2px solid #fff;
  padding: 10px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
  text-decoration: none !important;
}

.lv-bienvenue .btn-white:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  color: #fff !important;
  border-color: #fff;
}

.lv-bienvenue .btn-white-outline {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
  border: 2px solid #fff;
  padding: 10px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
  text-decoration: none !important;
}

.lv-bienvenue .btn-white-outline:hover {
  background: #fff !important;
  color: #354396 !important;
}

/* ══════════════════════════════════════════════════════════
   BLOC 5 — FAQ ACCORDION (centered, light gray bg)
   ══════════════════════════════════════════════════════════ */
.lv-faq {
  background: #f8f9fc;
}

.lv-faq-title {
  text-align: center;
  margin-bottom: 32px;
}

.lv-faq-title h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #202647;
}

.lv-faq .accordion {
  max-width: 800px;
  margin: 0 auto;
}

.lv-faq .accordion-item {
  border: 1px solid #e0e2ea;
  border-radius: 8px !important;
  margin-bottom: 10px;
  overflow: hidden;
  background: #fff;
}

.lv-faq .accordion-button {
  font-size: 1rem;
  font-weight: 600;
  color: #202647;
  padding: 16px 20px;
  background: #fff;
  box-shadow: none !important;
}

.lv-faq .accordion-button:not(.collapsed) {
  background: #f0f2ff;
  color: #354396;
}

.lv-faq .accordion-button::after {
  transition: transform 0.3s ease;
}

.lv-faq .accordion-body {
  padding: 12px 20px 16px;
  font-size: 0.95rem;
  color: #444;
  line-height: 1.7;
}

/* ══════════════════════════════════════════════════════════
   BLOC 7 — PARTNERS (simple, tight, trust bar)
   ══════════════════════════════════════════════════════════ */
.lv-partners {
  background: #f8f9fc;
  padding: 48px 0 !important;
}

.lv-partners h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #202647;
  margin-bottom: 32px;
}

.lv-partners-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 48px;
}

.lv-partners-row a {
  display: flex;
  align-items: center;
}

.lv-partners-row img {
  height: 90px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════ */
@media (max-width: 991px) {
  .lv-hero h1 {
    font-size: 2.2rem;
  }
  .lv-hero h2 {
    font-size: 1.15rem;
  }

  .lv-hero-img {
    margin-top: 32px;
    text-align: center;
  }

  .lv-image-text-content {
    padding: 24px 0 24px 24px;
  }
}

@media (max-width: 767px) {
  .landing-ville section {
    padding: 40px 0;
  }

  .lv-hero {
    padding: 56px 0 40px;
    text-align: center;
  }

  .lv-hero h1 {
    font-size: 1.8rem;
  }

  /* Pills responsive */
  .lv-pills-container {
    gap: 8px;
  }

  .lv-pill {
    font-size: 0.82rem;
    padding: 6px 14px;
  }

  /* Eligibility card responsive */
  .lv-eligibility-card {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }

  .lv-eligibility-content {
    flex-direction: column;
  }

  /* Modal responsive */
  .lv-modal-header {
    padding: 18px 20px;
  }

  .lv-modal-header-icon {
    font-size: 26px;
  }

  .lv-modal-title {
    font-size: 1rem;
  }

  .lv-modal-body {
    padding: 20px;
  }

  .lv-modal-input-row {
    flex-direction: column;
  }

  /* Steps → vertical */
  .lv-steps-grid {
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }

  .lv-steps-grid::before {
    display: none;
  }

  .lv-step-card {
    max-width: 100%;
  }

  /* Scooter image section */
  .lv-image-text-content {
    padding: 24px 0 0;
  }

  .lv-image-text-content h2 {
    font-size: 1.5rem;
  }

  /* Bienvenue */
  .lv-bienvenue-buttons {
    flex-direction: column;
  }

  /* FAQ */
  .lv-faq .accordion-button {
    font-size: 0.9rem;
    padding: 14px 16px;
  }
}

@media (max-width: 575px) {
  .lv-hero h1 {
    font-size: 1.5rem;
  }

  .landing-ville .btn-alpha,
  .lv-bienvenue .btn-white,
  .lv-bienvenue .btn-white-outline {
    padding: 12px 24px;
    font-size: 0.95rem;
    width: 100%;
    text-align: center;
  }
}
