/* ============================================================
   TAXI4PATTES v2 - Design Premium
   Palette du logo : vert forêt #0A4D28, lime #6FB327, encre #222
   Transitions : View Transitions API, scroll-driven, glass, 3D
   ============================================================ */

:root {
  --primary: #0A4D28;
  --primary-dark: #07361C;
  --primary-light: #146B3A;
  --lime: #6FB327;
  --lime-light: #8CCB3F;
  --lime-soft: #E8F3E0;

  --ink: #121A21;
  --muted: #5C6B63;
  --border: #E3E9E0;

  --bg: #FFFFFF;
  --bg-soft: #F5F8F2;
  --bg-tint: #EFF5E7;

  --success: #27ae60;
  --danger: #c0392b;
  --warn-bg: #FDF6E3;

  --radius: 18px;
  --radius-lg: 28px;
  --ring: 0 0 0 1px rgba(10, 77, 40, 0.12);
  --ring-lime: 0 0 0 1px rgba(111, 179, 39, 0.35);
  --shadow-sm: 0 2px 10px rgba(10, 77, 40, 0.07);
  --shadow-md: 0 10px 34px rgba(10, 77, 40, 0.12);
  --shadow-lg: 0 24px 70px rgba(10, 58, 47, 0.22);

  --font: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, 'Cascadia Mono', 'JetBrains Mono', Consolas, monospace;

  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- View Transitions API (navigation dernière génération) ---------- */
@view-transition { navigation: auto; }

::view-transition-old(root) {
  animation: vt-out 0.35s var(--ease-out) both;
}
::view-transition-new(root) {
  animation: vt-in 0.45s var(--ease-out) both;
}
@keyframes vt-out {
  to { opacity: 0; transform: translateY(12px) scale(0.985); filter: blur(4px); }
}
@keyframes vt-in {
  from { opacity: 0; transform: translateY(-14px) scale(1.01); filter: blur(4px); }
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: var(--font); }

::selection { background: var(--lime); color: #fff; }

/* ============================================================
   NAVIGATION (verre dépoli)
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid rgba(10, 77, 40, 0.08);
  transition: box-shadow 0.35s ease, background 0.35s ease;
}
.nav.scrolled {
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 8px 30px rgba(10, 77, 40, 0.08);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 13px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  font-weight: 800; font-size: 1.4rem;
  letter-spacing: -0.8px; color: var(--primary);
}
.brand .brand-emblem {
  width: 44px; height: 44px; border-radius: 50%;
  overflow: hidden; flex-shrink: 0;
  border: 2px solid var(--lime);
  box-shadow: 0 4px 14px rgba(111, 179, 39, 0.35);
  transition: transform 0.4s var(--ease-spring);
}
.brand:hover .brand-emblem { transform: rotate(-8deg) scale(1.06); }
.brand .brand-emblem img { width: 100%; height: 100%; object-fit: cover; }
.brand .brand-name { display: flex; flex-direction: column; line-height: 1.1; }
.brand .brand-name small {
  font-size: 0.6rem; font-weight: 700; letter-spacing: 2.2px;
  color: var(--lime); text-transform: uppercase;
}

.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-links a {
  padding: 9px 16px; border-radius: 100px;
  font-weight: 650; font-size: 0.95rem;
  color: var(--ink); position: relative;
  transition: all 0.3s ease;
}
.nav-links a:hover { color: var(--primary); background: var(--bg-soft); }
.nav-links a.active { color: var(--primary); background: var(--bg-soft); }
.nav-links a.active::after {
  content: ''; position: absolute; left: 50%; bottom: 3px;
  transform: translateX(-50%);
  width: 18px; height: 3px; border-radius: 2px;
  background: var(--lime);
}
.nav-links a.btn-nav {
  background: var(--primary); color: #fff;
  padding: 11px 22px;
  box-shadow: 0 6px 18px rgba(10, 77, 40, 0.28);
}
.nav-links a.btn-nav:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(10, 77, 40, 0.34);
}

/* ============================================================
   BOUTONS (pill, shine)
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 32px;
  border-radius: 100px;
  font-weight: 750; font-size: 1rem;
  border: none; cursor: pointer;
  position: relative; overflow: hidden;
  transition: all 0.35s var(--ease-spring);
}
.btn:active { transform: scale(0.96); }

.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 24px rgba(10, 77, 40, 0.3); }
.btn-primary:hover { background: var(--primary-light); transform: translateY(-3px); box-shadow: 0 14px 34px rgba(10, 77, 40, 0.38); }

.btn-lime { background: var(--lime); color: #07361C; box-shadow: 0 8px 24px rgba(111, 179, 39, 0.4); }
.btn-lime:hover { background: var(--lime-light); transform: translateY(-3px); box-shadow: 0 14px 34px rgba(111, 179, 39, 0.5); }

.btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.4); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.7); transform: translateY(-3px); }

.btn-outline { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; transform: translateY(-3px); box-shadow: 0 10px 24px rgba(15,77,62,0.25); }

.btn-white { background: #fff; color: var(--primary-dark); box-shadow: 0 8px 24px rgba(0,0,0,0.15); }
.btn-white:hover { background: var(--lime-soft); transform: translateY(-3px); }

.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { filter: brightness(1.08); transform: translateY(-3px); }

.btn-lg { padding: 18px 40px; font-size: 1.08rem; }
.btn-block { width: 100%; }

/* Effet shine au survol */
.btn::before {
  content: '';
  position: absolute; top: 0; left: -80%;
  width: 50%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}
.btn:hover::before { left: 130%; }

.btn.loading { pointer-events: none; }
.spinner {
  width: 20px; height: 20px;
  border: 2.5px solid rgba(255,255,255,0.3);
  border-top-color: #fff; border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
}
.btn.loading .spinner { display: inline-block; }
.btn.loading .btn-text { opacity: 0.75; }

/* ============================================================
   HERO (sombre, logo en vedette)
   ============================================================ */
.hero {
  position: relative;
  /* Fond : photo de transport (husky en caisse IATA) + voile vert fonce degressive
     pour que le texte blanc reste parfaitement lisible. */
  background-image:
    radial-gradient(ellipse 60% 50% at 85% 10%, rgba(111, 179, 39, 0.20), transparent 60%),
    radial-gradient(ellipse 50% 40% at 10% 90%, rgba(111, 179, 39, 0.10), transparent 55%),
    radial-gradient(ellipse 58% 74% at 6% 52%, rgba(4, 30, 16, 0.46), transparent 64%),
    linear-gradient(100deg, rgba(4, 34, 18, 0.94) 0%, rgba(5, 40, 21, 0.85) 26%, rgba(6, 30, 22, 0.40) 50%, rgba(6, 24, 20, 0.14) 72%, rgba(8, 24, 24, 0.04) 100%),
    url('/img/hero-fond.jpg');
  background-size: auto, auto, auto, auto, cover;
  /* la photo ressort davantage a droite ; le voile vert protege le texte a gauche */
  background-position: center, center, center, center, 50% 42%;
  background-repeat: no-repeat;
  background-color: #07361C;
  color: #fff;
  padding: 90px 24px 130px;
  overflow: hidden;
}
/* MOBILE-HERO-FOND : voile plus uniforme sur petit ecran */
@media (max-width: 900px) {
  .hero {
    background-image:
      linear-gradient(180deg, rgba(6, 46, 24, 0.94) 0%, rgba(7, 54, 28, 0.88) 45%, rgba(8, 60, 32, 0.72) 100%),
      url('/img/hero-fond.jpg');
    background-size: auto, cover;
    background-position: center, 30% 30%;
    background-repeat: no-repeat;
  }
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black, transparent 75%);
  pointer-events: none;
}
/* Pattes flottantes décoratives */
.hero-paws { position: absolute; inset: 0; pointer-events: none; }
.hero-paws span {
  position: absolute;
  font-size: 2rem; opacity: 0.1;
  animation: floatPaw 9s ease-in-out infinite;
}
.hero-paws span:nth-child(1) { top: 12%; left: 6%; animation-delay: 0s; }
.hero-paws span:nth-child(2) { top: 65%; left: 14%; animation-delay: 2s; font-size: 1.4rem; }
.hero-paws span:nth-child(3) { top: 20%; right: 8%; animation-delay: 4s; font-size: 1.6rem; }
.hero-paws span:nth-child(4) { bottom: 15%; right: 16%; animation-delay: 1.5s; }
.hero-paws span:nth-child(5) { top: 45%; left: 45%; animation-delay: 3s; font-size: 1.3rem; }

.hero-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 60px; align-items: center;
  position: relative; z-index: 2;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.22);
  backdrop-filter: blur(8px);
  padding: 9px 20px; border-radius: 100px;
  font-size: 0.85rem; font-weight: 650;
  margin-bottom: 26px;
  animation: fadeDown 0.7s var(--ease-out) both;
}
.hero-badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 0 rgba(140,184,46,0.6);
  animation: ping 2s infinite;
}
.hero-badge i { color: var(--lime); }

.hero h1 {
  font-size: clamp(2.3rem, 5vw, 3.9rem);
  line-height: 1.06; font-weight: 800;
  letter-spacing: -2.5px;
  margin-bottom: 22px;
  animation: fadeDown 0.7s 0.1s var(--ease-out) both;
}
.hero h1 .accent {
  color: var(--lime);
  position: relative;
  white-space: nowrap;
}
.hero h1 .accent::after {
  content: '';
  position: absolute; left: 0; bottom: 4px;
  width: 100%; height: 10px;
  background: rgba(140,184,46,0.35);
  border-radius: 4px; z-index: -1;
}
.hero p.lead {
  font-size: 1.12rem; opacity: 0.88;
  max-width: 520px; margin-bottom: 36px;
  animation: fadeDown 0.7s 0.2s var(--ease-out) both;
}
.hero-actions {
  display: flex; gap: 16px; flex-wrap: wrap;
  animation: fadeDown 0.7s 0.3s var(--ease-out) both;
}
.hero-actions .btn { padding-left: 34px; padding-right: 34px; }

.hero-stats {
  display: flex; gap: 44px; margin-top: 52px;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.16);
  animation: fadeDown 0.7s 0.4s var(--ease-out) both;
}
.hero-stats .stat b {
  display: block; font-size: 1.9rem; font-weight: 800;
  color: var(--lime); letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
}
.hero-stats .stat span { font-size: 0.84rem; opacity: 0.78; }

/* Logo en vedette */
.hero-visual {
  display: flex; justify-content: center;
  animation: fadeUp 0.9s 0.35s var(--ease-out) both;
}
.hero-logo-wrap { position: relative; }
.hero-logo-ring {
  width: 340px; height: 340px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--lime);
  box-shadow:
    0 0 0 12px rgba(140,184,46,0.12),
    0 0 0 24px rgba(140,184,46,0.06),
    0 30px 70px rgba(0,0,0,0.4);
  animation: logoFloat 6s ease-in-out infinite;
  transition: transform 0.5s var(--ease-spring);
}
.hero-logo-wrap:hover .hero-logo-ring { transform: scale(1.03) rotate(1deg); }
.hero-logo-ring img { width: 100%; height: 100%; object-fit: cover; }

.hero-float-card {
  position: absolute; bottom: 18px; left: -30px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  color: var(--ink);
  padding: 14px 20px; border-radius: 18px;
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 12px;
  animation: floatY 5s ease-in-out infinite;
}
.hero-float-card .fc-icon {
  width: 44px; height: 44px;
  background: var(--lime-soft); color: var(--primary);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
}
.hero-float-card b { display: block; color: var(--primary); font-size: 0.93rem; }
.hero-float-card span { font-size: 0.78rem; color: var(--muted); }

/* ============================================================
   MARQUEE (bande défilante)
   ============================================================ */
.marquee {
  background: var(--lime);
  color: #07361C;
  overflow: hidden;
  padding: 13px 0;
  white-space: nowrap;
  position: relative;
}
.marquee-track {
  display: inline-flex; gap: 48px;
  animation: marquee 26s linear infinite;
  font-weight: 800; font-size: 0.95rem;
  letter-spacing: 1.5px; text-transform: uppercase;
}
.marquee-track span { display: inline-flex; align-items: center; gap: 12px; }
.marquee-track i { width: 16px; height: 16px; }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 100px 24px; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section.alt { background: var(--bg-soft); }

.section-head { text-align: center; max-width: 660px; margin: 0 auto 60px; }
.section-head .kicker {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--primary);
  background: var(--lime-soft);
  padding: 7px 18px; border-radius: 100px;
  font-weight: 750; text-transform: uppercase;
  letter-spacing: 2px; font-size: 0.75rem;
  margin-bottom: 16px;
}
.section-head h2 {
  font-size: clamp(1.9rem, 3.8vw, 2.7rem);
  color: var(--primary-dark);
  font-weight: 800; letter-spacing: -1.5px;
  margin-bottom: 14px;
}
.section-head p { color: var(--muted); font-size: 1.06rem; }

/* ============================================================
   CARTES (3D tilt + anneaux)
   ============================================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  perspective: 1200px;
}
.card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--ring), var(--shadow-sm);
  padding: 38px 30px;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: box-shadow 0.4s ease, transform 0.15s ease;
  will-change: transform;
}
.card:hover { box-shadow: var(--ring-lime), var(--shadow-md); }
.card::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--lime), var(--primary));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.45s var(--ease-out);
}
.card:hover::after { transform: scaleX(1); }

.card-icon {
  width: 64px; height: 64px;
  background: var(--lime-soft); color: var(--primary);
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
  transition: all 0.4s var(--ease-spring);
}
.card-icon i { width: 30px; height: 30px; }
.card:hover .card-icon {
  background: var(--primary); color: var(--lime);
  transform: scale(1.08) rotate(-6deg);
  box-shadow: 0 10px 24px rgba(15,77,62,0.3);
}
.card h3 { color: var(--primary-dark); font-size: 1.22rem; font-weight: 800; letter-spacing: -0.4px; margin-bottom: 10px; }
.card .card-sep { width: 46px; height: 3px; background: var(--lime); border-radius: 2px; margin-bottom: 14px; transition: width 0.4s ease; }
.card:hover .card-sep { width: 74px; }
.card p { color: var(--muted); font-size: 0.95rem; }

/* ============================================================
   VALEURS (reprise du logo : sécurité, bien-être, respect)
   ============================================================ */
.values-band {
  background: linear-gradient(160deg, #07361C, #0A4D28 60%, #135A48);
  color: #fff; padding: 90px 24px;
  position: relative; overflow: hidden;
}
.values-band::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 40% 45% at 50% 0%, rgba(140,184,46,0.16), transparent 65%);
}
.values-inner { max-width: 1200px; margin: 0 auto; position: relative; z-index: 2; }
.values-head { text-align: center; margin-bottom: 56px; }
.values-head .kicker {
  display: inline-block; color: var(--lime);
  font-weight: 750; text-transform: uppercase; letter-spacing: 2.5px; font-size: 0.78rem;
  background: rgba(140,184,46,0.12); border: 1px solid rgba(140,184,46,0.3);
  padding: 7px 18px; border-radius: 100px; margin-bottom: 16px;
}
.values-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); font-weight: 800; letter-spacing: -1.2px; }

.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.value-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  transition: all 0.4s var(--ease-spring);
}
.value-card:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-8px);
  border-color: rgba(140,184,46,0.5);
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}
.value-card .v-icon {
  width: 72px; height: 72px; margin: 0 auto 20px;
  background: rgba(140,184,46,0.15);
  border: 1.5px solid var(--lime);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--lime);
  transition: transform 0.5s var(--ease-spring);
}
.value-card:hover .v-icon { transform: rotateY(180deg); }
.value-card .v-icon i { width: 34px; height: 34px; }
.value-card h3 { font-size: 1.15rem; margin-bottom: 4px; letter-spacing: -0.3px; }
.value-card .v-sub { color: var(--lime); font-weight: 750; font-size: 0.88rem; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 12px; }
.value-card p { font-size: 0.9rem; opacity: 0.75; }

/* ============================================================
   ÉTAPES
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; counter-reset: step; }
.step {
  background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--ring), var(--shadow-sm);
  padding: 32px 26px; position: relative;
  transition: all 0.4s var(--ease-spring);
}
.step:hover { transform: translateY(-8px); box-shadow: var(--ring-lime), var(--shadow-md); }
.step-num {
  counter-increment: step;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--primary); color: var(--lime);
  font-weight: 800; font-size: 1.25rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  box-shadow: 0 0 0 6px var(--lime-soft);
  transition: all 0.4s var(--ease-spring);
}
.step:hover .step-num { background: var(--lime); color: var(--primary-dark); box-shadow: 0 0 0 6px rgba(140,184,46,0.2); }
.step-num::after { content: counter(step); }
.step h4 { color: var(--primary-dark); margin-bottom: 8px; font-weight: 800; }
.step p { color: var(--muted); font-size: 0.9rem; }

/* ============================================================
   CTA final
   ============================================================ */
.cta {
  background: var(--bg-soft);
  border: 2px dashed rgba(140,184,46,0.6);
  border-radius: 32px;
  padding: 70px 44px; text-align: center;
  position: relative; overflow: hidden;
}
.cta::before, .cta::after {
  content: '🐾'; position: absolute;
  font-size: 8rem; opacity: 0.05;
}
.cta::before { left: -20px; top: -30px; transform: rotate(-20deg); }
.cta::after { right: -20px; bottom: -40px; transform: rotate(160deg); }
.cta h2 { color: var(--primary-dark); font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; letter-spacing: -1px; margin-bottom: 12px; }
.cta p { color: var(--muted); margin-bottom: 32px; font-size: 1.06rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #07361C; color: rgba(255,255,255,0.82);
  padding: 70px 24px 28px;
  position: relative;
}
.footer::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--lime), var(--primary-light), var(--lime));
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1.3fr 0.8fr 1fr;
  gap: 56px; padding-bottom: 46px;
}
.footer-brand .logo-badge {
  width: 170px; margin-bottom: 18px;
  background: #fff; border-radius: 18px; padding: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  transition: transform 0.4s var(--ease-spring);
}
.footer-brand .logo-badge:hover { transform: translateY(-4px) rotate(-1deg); }
.footer-brand .logo-badge img { width: 100%; }
.footer p { font-size: 0.92rem; line-height: 1.75; opacity: 0.75; }
.footer h4 {
  color: var(--lime); font-size: 1rem; margin-bottom: 20px;
  text-transform: uppercase; letter-spacing: 1.8px; font-weight: 750;
}
.footer-links li { margin-bottom: 12px; }
.footer-links a {
  font-size: 0.94rem; opacity: 0.8;
  display: inline-flex; align-items: center; gap: 8px;
  transition: all 0.3s ease;
}
.footer-links a i { width: 15px; height: 15px; color: var(--lime); opacity: 0.6; }
.footer-links a:hover { opacity: 1; color: var(--lime); transform: translateX(5px); }
.footer-contact li {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 14px; font-size: 0.94rem;
}
.footer-contact i { width: 18px; height: 18px; color: var(--lime); flex-shrink: 0; }
.footer-contact a:hover { color: var(--lime); }

.footer-bottom {
  max-width: 1200px; margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
  font-size: 0.82rem; opacity: 0.6;
}

/* ============================================================
   FORMULAIRES
   ============================================================ */
.form-card {
  background: #fff; border-radius: 28px;
  box-shadow: var(--ring), var(--shadow-md);
  max-width: 640px; margin: 0 auto; overflow: hidden;
}
.form-head {
  background: linear-gradient(140deg, #07361C, #0A4D28);
  color: #fff; padding: 30px 36px;
  display: flex; align-items: center; gap: 16px;
}
.form-head .fh-icon {
  width: 52px; height: 52px; border-radius: 16px;
  background: rgba(140,184,46,0.18);
  border: 1px solid rgba(140,184,46,0.4);
  display: flex; align-items: center; justify-content: center;
  color: var(--lime); flex-shrink: 0;
}
.form-head .fh-icon i { width: 26px; height: 26px; }
.form-head h2 { font-size: 1.3rem; letter-spacing: -0.5px; }
.form-head p { font-size: 0.88rem; opacity: 0.8; margin-top: 2px; }

.form-body { padding: 34px 36px; }
.form-group { margin-bottom: 22px; }
.form-group label {
  display: block; font-weight: 700; font-size: 0.9rem;
  color: var(--ink); margin-bottom: 8px;
}
.form-group label .req { color: var(--lime); }
.form-control {
  width: 100%; padding: 14px 18px;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  font-size: 1rem; font-family: var(--font);
  background: var(--bg-soft); color: var(--ink);
  transition: all 0.3s ease;
}
.form-control:focus {
  outline: none; border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(140,184,46,0.18);
}
select.form-control { appearance: none; cursor: pointer; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.route-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: end; }
.route-arrow {
  text-align: center; padding-bottom: 12px;
  color: var(--lime); display: flex; justify-content: center;
}
.route-arrow i { width: 26px; height: 26px; }

.price-box {
  background: var(--lime-soft);
  border: 2px solid var(--lime);
  border-radius: 18px; padding: 20px 26px;
  display: flex; align-items: center; justify-content: space-between;
  margin: 26px 0;
}
.price-box .price-label { font-weight: 750; color: var(--primary-dark); }
.price-box .price-label small { display: block; font-weight: 500; color: var(--muted); font-size: 0.8rem; }
.price-box .price-value { font-size: 2.1rem; font-weight: 800; color: var(--primary); letter-spacing: -1px; }

.secure-note {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 18px; font-size: 0.85rem; color: var(--muted);
}
.secure-note i { width: 15px; height: 15px; color: var(--success); }

.alert {
  padding: 14px 18px; border-radius: 14px;
  font-size: 0.95rem; font-weight: 600;
  margin-bottom: 20px; display: none;
  animation: fadeDown 0.4s ease both;
}
.alert.show { display: block; }
.alert-error { background: #FDEBEA; color: #b3261e; border: 1px solid #f5c6c2; }
.alert-success { background: #E8F8EF; color: #1e7d46; border: 1px solid #bfe8cf; }
.alert-info { background: var(--lime-soft); color: var(--primary); border: 1px solid #cfe3a8; }

/* ============================================================
   SUIVI
   ============================================================ */
.tracking-hero {
  background:
    radial-gradient(ellipse 50% 60% at 80% 0%, rgba(140,184,46,0.2), transparent 60%),
    linear-gradient(150deg, #07361C, #0A4D28);
  color: #fff; padding: 76px 24px 100px; text-align: center;
  position: relative; overflow: hidden;
}
.tracking-hero .th-icon {
  width: 72px; height: 72px; margin: 0 auto 18px;
  background: rgba(140,184,46,0.15); border: 1.5px solid var(--lime);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--lime);
  animation: floatY 4s ease-in-out infinite;
}
.tracking-hero .th-icon i { width: 34px; height: 34px; }
.tracking-hero h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 800; letter-spacing: -1.5px; margin-bottom: 10px; }
.tracking-hero p { opacity: 0.85; }

.tracking-search {
  max-width: 600px; margin: -52px auto 0;
  position: relative; z-index: 5;
  background: #fff; border-radius: 100px;
  box-shadow: var(--shadow-lg), var(--ring);
  padding: 10px 10px 10px 26px;
  display: flex; gap: 12px; align-items: center;
}
.tracking-search i { width: 22px; height: 22px; color: var(--lime); flex-shrink: 0; }
.tracking-search input {
  flex: 1; border: none; padding: 12px 4px;
  font-size: 1.05rem; font-family: var(--mono);
  text-transform: uppercase; letter-spacing: 1.5px; font-weight: 700;
  color: var(--primary); background: transparent;
}
.tracking-search input:focus { outline: none; }
.tracking-search input::placeholder { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--muted); }

.tracking-result { max-width: 760px; margin: 56px auto 0; display: none; }
.tracking-result.show { display: block; animation: fadeUp 0.6s var(--ease-out) both; }

.result-card {
  background: #fff; border-radius: 28px;
  box-shadow: var(--ring), var(--shadow-md); overflow: hidden;
}
.rc-head {
  background: linear-gradient(140deg, #07361C, #0A4D28);
  color: #fff; padding: 26px 32px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.rc-head h2 { font-size: 1.2rem; display: flex; align-items: center; gap: 10px; }
.rc-head h2 i { width: 22px; height: 22px; color: var(--lime); }
.tracking-code {
  background: rgba(140,184,46,0.15);
  border: 1.5px dashed var(--lime);
  color: var(--lime);
  padding: 9px 18px; border-radius: 100px;
  font-family: var(--mono); font-weight: 800;
  letter-spacing: 2px; font-size: 1.02rem;
}
.rc-body { padding: 32px; }

.timeline { position: relative; padding: 6px 0 18px; }
.timeline::before {
  content: '';
  position: absolute; left: 22px; top: 28px; bottom: 28px;
  width: 3px; background: var(--border); border-radius: 2px;
}
.tl-step {
  position: relative; padding: 10px 0 10px 64px;
  opacity: 0.45; transition: opacity 0.5s ease;
}
.tl-step .tl-dot {
  position: absolute; left: 10px; top: 16px;
  width: 27px; height: 27px; border-radius: 50%;
  background: #fff; border: 3px solid var(--border);
  transition: all 0.4s ease;
}
.tl-step .tl-label { font-weight: 700; color: var(--ink); }
.tl-step.done { opacity: 1; }
.tl-step.done .tl-dot {
  background: var(--primary); border-color: var(--primary);
  box-shadow: 0 0 0 5px rgba(15,77,62,0.12);
}
.tl-step.done .tl-dot::after {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A9CE4A' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/14px no-repeat;
}
.tl-step.current { opacity: 1; }
.tl-step.current .tl-dot {
  border-color: var(--lime); background: var(--lime);
  box-shadow: 0 0 0 0 rgba(140,184,46,0.5);
  animation: pulse-ring 1.8s infinite;
}
.tl-step.current .tl-label { color: var(--primary); font-weight: 800; }

.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 26px; }
.info-box {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 16px; padding: 18px 22px;
  transition: all 0.3s ease;
}
.info-box:hover { border-color: rgba(140,184,46,0.6); }
.info-box .ib-label {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.74rem; text-transform: uppercase;
  letter-spacing: 1.2px; color: var(--muted); font-weight: 750;
  margin-bottom: 4px;
}
.info-box .ib-label i { width: 13px; height: 13px; color: var(--lime); }
.info-box .ib-value { font-weight: 750; color: var(--ink); font-size: 1.02rem; }
.info-box.alert-box { background: var(--warn-bg); border-color: var(--lime); }

/* ============================================================
   ADMIN
   ============================================================ */
.admin-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; }
.admin-card {
  background: #fff; border-radius: 24px;
  box-shadow: var(--ring), var(--shadow-sm); overflow: hidden;
}
.ac-head {
  background: linear-gradient(140deg, #07361C, #0A4D28);
  color: #fff; padding: 20px 26px;
  display: flex; align-items: center; gap: 12px;
}
.ac-head .ah-icon {
  width: 38px; height: 38px; border-radius: 12px;
  background: rgba(140,184,46,0.15); border: 1px solid rgba(140,184,46,0.35);
  display: flex; align-items: center; justify-content: center;
  color: var(--lime);
}
.ac-head .ah-icon i { width: 20px; height: 20px; }
.ac-head h2 { font-size: 1.08rem; }
.ac-body { padding: 26px; }

.generated-box {
  background: var(--lime-soft);
  border: 2px dashed var(--lime);
  border-radius: 16px; padding: 18px; text-align: center;
  margin-top: 18px; display: none;
}
.generated-box.show { display: block; animation: fadeUp 0.5s var(--ease-out) both; }
.tracking-code-lg {
  font-size: 1.55rem; font-weight: 800;
  color: var(--primary); letter-spacing: 2px;
  font-family: var(--mono);
  cursor: pointer; display: inline-block;
  transition: transform 0.2s ease;
}
.tracking-code-lg:hover { transform: scale(1.05); }
.copy-hint { font-size: 0.78rem; color: var(--muted); margin-top: 6px; display: flex; align-items: center; justify-content: center; gap: 5px; }
.copy-hint i { width: 12px; height: 12px; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
thead th {
  background: var(--primary); color: #fff;
  padding: 13px 16px; text-align: left;
  font-weight: 750; font-size: 0.78rem;
  text-transform: uppercase; letter-spacing: 1px;
  white-space: nowrap;
}
thead th:first-child { border-radius: 12px 0 0 0; }
thead th:last-child { border-radius: 0 12px 0 0; }
tbody td { padding: 13px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tbody tr { transition: background 0.25s ease; }
tbody tr:hover { background: var(--bg-soft); }
tbody tr:last-child td { border-bottom: none; }

.status-pill {
  display: inline-block; padding: 5px 13px; border-radius: 100px;
  font-size: 0.76rem; font-weight: 750;
}
.status-pill.pending { background: var(--warn-bg); color: #8a6d1a; }
.status-pill.route { background: var(--lime-soft); color: var(--primary); }
.status-pill.done { background: #E8F8EF; color: #1e7d46; }
.status-pill.payment { background: #FDEBEA; color: #b3261e; }

.status-select {
  padding: 8px 12px; border: 1.5px solid var(--border);
  border-radius: 10px; font-size: 0.85rem;
  font-family: var(--font); background: #fff;
  color: var(--ink); cursor: pointer;
  min-width: 150px; max-width: 190px;
  transition: border-color 0.3s ease;
}
.status-select:focus { outline: none; border-color: var(--primary); }

.login-card {
  max-width: 430px; margin: 90px auto;
  background: #fff; border-radius: 28px;
  box-shadow: var(--ring), var(--shadow-md); overflow: hidden;
}
.login-head {
  background: linear-gradient(140deg, #07361C, #0A4D28);
  color: #fff; padding: 36px; text-align: center;
}
.login-head .lock-icon {
  width: 66px; height: 66px; margin: 0 auto 14px;
  background: rgba(140,184,46,0.15); border: 1.5px solid var(--lime);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--lime);
  animation: floatY 4s ease-in-out infinite;
}
.login-head .lock-icon i { width: 30px; height: 30px; }
.login-head h2 { font-size: 1.35rem; }
.login-head p { opacity: 0.75; font-size: 0.88rem; margin-top: 4px; }
.login-body { padding: 32px; }

/* ============================================================
   ANIMATIONS & REVEAL
   ============================================================ */
.reveal {
  opacity: 0; transform: translateY(34px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  will-change: opacity, transform;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
/* REVEAL-SECOURS : sans JavaScript, le contenu doit rester lisible */
@media (scripting: none) { .reveal { opacity: 1; transform: none; } }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Scroll-driven animations (Chrome 115+) avec fallback JS */
@supports (animation-timeline: view()) {
  .reveal-sd {
    opacity: 0;
    animation: sd-reveal linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 35%;
  }
  @keyframes sd-reveal {
    from { opacity: 0; transform: translateY(44px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
  }
}


/* LISIBILITE-SUR-PHOTO : le fond de l'accueil est une photo, on protege les textes */
.hero h1, .hero .lead { text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45); }
.hero .hero-badge { background: rgba(6, 32, 18, 0.45); backdrop-filter: blur(6px); }
.hero .btn-ghost { background: rgba(4, 24, 13, 0.34); border-color: rgba(255, 255, 255, 0.62); }
.hero .btn-ghost:hover { background: rgba(255, 255, 255, 0.16); }
.hero .stat span { text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5); }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes floatPaw {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-26px) rotate(12deg); }
}
@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(140,184,46,0.6); }
  75%, 100% { box-shadow: 0 0 0 14px rgba(140,184,46,0); }
}
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(140,184,46,0.45); }
  70% { box-shadow: 0 0 0 14px rgba(140,184,46,0); }
  100% { box-shadow: 0 0 0 0 rgba(140,184,46,0); }
}

.payment-loader { text-align: center; padding: 50px 30px; display: none; }
.payment-loader.show { display: block; animation: fadeUp 0.5s ease both; }
.big-spinner {
  width: 56px; height: 56px; margin: 0 auto 22px;
  border: 4px solid var(--lime-soft);
  border-top-color: var(--primary); border-radius: 50%;
  animation: spin 0.85s linear infinite;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 56px; }
  .hero { padding: 70px 24px 110px; }
  .hero-logo-ring { width: 260px; height: 260px; }
  .values-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .steps { grid-template-columns: 1fr 1fr; }
  .admin-layout { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .info-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav-links a { padding: 8px 12px; font-size: 0.85rem; }
  .nav-links a.btn-nav { display: none; }
  .steps { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .route-row { grid-template-columns: 1fr; }
  .route-arrow { transform: rotate(90deg); padding: 4px 0; }
  .tracking-search { border-radius: 22px; flex-direction: column; padding: 18px; }
  .tracking-search input { width: 100%; text-align: center; }
  .tracking-search .btn { width: 100%; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .hero-float-card { left: 8px; bottom: -14px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .form-body { padding: 24px 20px; }
  .rc-body { padding: 22px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .reveal, .reveal-sd { opacity: 1; transform: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none !important; }
}



/* ============================================================
   TAXI4PATTES v3 - Styles complémentaires
   ============================================================ */

/* ---------- Barre de progression de livraison ---------- */
.progress-wrap { margin: 26px 0 8px; }
.progress-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 10px;
}
.progress-head .ph-label { font-weight: 800; color: var(--primary-dark); font-size: 0.95rem; }
.progress-head .ph-pct {
  font-weight: 800; color: var(--lime); font-size: 1.3rem;
  font-variant-numeric: tabular-nums; letter-spacing: -1px;
}
.progress-track {
  height: 26px; border-radius: 100px;
  background: var(--bg-soft);
  border: 1.5px solid var(--border);
  position: relative;
}
.progress-fill {
  height: 100%; width: 0;
  border-radius: 100px;
  background: linear-gradient(90deg, var(--lime), var(--primary));
  background-size: 200% 100%;
  transition: width 1.1s var(--ease-out);
  position: relative;
}
.progress-fill::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: 100px;
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,0.35) 50%, transparent 70%);
  background-size: 200% 100%;
  animation: shimmer-bar 2.2s linear infinite;
}
/* Points de repère des étapes sur la barre */
.progress-markers { position: absolute; inset: 0; pointer-events: none; }
.pm-dot {
  position: absolute; top: 50%;
  transform: translate(-50%, -50%);
  width: 18px; height: 18px; border-radius: 50%;
  background: #fff;
  border: 3.5px solid var(--border);
  transition: all 0.35s ease;
  z-index: 2;
}
.pm-dot.done { background: var(--primary); border-color: #fff; box-shadow: 0 0 0 3px var(--primary); }
.pm-dot.current {
  background: var(--lime); border-color: #fff;
  box-shadow: 0 0 0 4px rgba(140,184,46,0.4);
  animation: pulse-ring 1.8s infinite;
  width: 22px; height: 22px;
}
/* Libellés des étapes sous la barre */
.progress-labels {
  display: flex; justify-content: space-between;
  margin-top: 12px; gap: 2px;
}
.pl-label {
  font-size: 0.62rem; font-weight: 700;
  color: var(--muted); text-align: center;
  max-width: 74px; line-height: 1.25;
  transition: color 0.3s ease;
}
.pl-label.done { color: var(--primary); }
.pl-label.current { color: var(--primary-dark); font-weight: 800; transform: scale(1.05); }
@media (max-width: 640px) {
  .progress-track { height: 22px; }
  .pl-label { font-size: 0.52rem; max-width: 44px; }
  .pm-dot { width: 14px; height: 14px; border-width: 2.5px; }
  .pm-dot.current { width: 18px; height: 18px; }
}
@keyframes shimmer-bar {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

/* ---------- Bandeau urgence passeport ---------- */
.passport-alert {
  display: flex; align-items: center; gap: 14px;
  background: #FDF2F0;
  border: 2px solid #e74c3c;
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 24px;
  animation: fadeDown 0.5s ease both;
}
.passport-alert .pa-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  background: #e74c3c; color: #fff;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
}
.passport-alert .pa-icon i { width: 24px; height: 24px; }
.passport-alert b { color: #c0392b; font-size: 1rem; display: block; }
.passport-alert p { color: #843029; font-size: 0.88rem; }

/* ---------- Blocs expéditeur / destinataire (suivi) ---------- */
.people-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 26px; }
.person-box {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 16px; padding: 18px 22px;
  transition: border-color 0.3s ease;
}
.person-box:hover { border-color: rgba(140,184,46,0.6); }
.person-box .pb-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.76rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--primary); margin-bottom: 12px;
}
.person-box .pb-title i { width: 15px; height: 15px; color: var(--lime); }
.person-box .pb-name { font-weight: 800; color: var(--ink); font-size: 1.05rem; margin-bottom: 4px; }
.person-box .pb-line {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.85rem; color: var(--muted); margin-top: 4px;
}
.person-box .pb-line i { width: 13px; height: 13px; color: var(--lime); flex-shrink: 0; }

/* ---------- Section réservation de cage (suivi) ---------- */
.cage-section {
  margin-top: 30px;
  background: linear-gradient(140deg, #07361C, #0A4D28);
  border-radius: 20px; padding: 28px 30px;
  color: #fff;
  position: relative; overflow: hidden;
}
.cage-section::before {
  content: 'PAW';
  position: absolute; right: -10px; bottom: -30px;
  font-size: 7rem; opacity: 0.08;
  transform: rotate(-15deg);
}
.cage-section .cs-title {
  display: flex; align-items: center; gap: 12px;
  font-size: 1.15rem; font-weight: 800; margin-bottom: 6px;
}
.cage-section .cs-title i { width: 26px; height: 26px; color: var(--lime); }
.cage-section p { font-size: 0.92rem; opacity: 0.85; margin-bottom: 20px; }
.cage-section .cs-price { color: var(--lime); font-weight: 800; font-size: 1.4rem; }
.cage-section .btn { margin-top: 4px; }
.cage-paid {
  display: flex; align-items: center; gap: 14px;
  background: rgba(39, 174, 96, 0.15);
  border: 1.5px solid var(--success);
  border-radius: 14px; padding: 16px 20px;
  margin-top: 30px;
}
.cage-paid .cp-icon {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--success); color: #fff;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.cage-paid .cp-icon i { width: 24px; height: 24px; }
.cage-paid b { color: #1e7d46; display: block; }
.cage-paid span { font-size: 0.85rem; color: var(--muted); }

/* ---------- Formulaire admin : blocs expéditeur/destinataire ---------- */
.person-block {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 20px;
  margin-bottom: 18px;
}
.person-block .pb-head {
  display: flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: 0.82rem;
  text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--primary); margin-bottom: 14px;
}
.person-block .pb-head i { width: 16px; height: 16px; color: var(--lime); }
.person-block .form-row { margin-bottom: 0; }

/* Case à cocher option passeport */
.check-option { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.check-option input[type="checkbox"] {
  width: 22px; height: 22px; margin-top: 2px; flex-shrink: 0;
  accent-color: #e74c3c;
  cursor: pointer;
}
.check-option b { color: #c0392b; font-size: 0.95rem; }
.check-option span { font-size: 0.83rem; color: var(--muted); display: block; }

/* Bouton télécharger PDF */
.btn-pdf { background: #c0392b; color: #fff; }
.btn-pdf:hover { filter: brightness(1.1); transform: translateY(-2px); }
.pdf-actions { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }

/* ---------- Dropdown des étapes (admin) ---------- */
.steps-popover { position: relative; display: inline-block; }
.steps-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px; border-radius: 100px;
  border: 1.5px solid var(--primary); background: #fff;
  color: var(--primary); font-weight: 700; font-size: 0.82rem;
  cursor: pointer; font-family: var(--font);
  transition: all 0.25s ease;
}
.steps-btn:hover { background: var(--primary); color: #fff; }
.steps-menu {
  position: absolute; right: 0; top: calc(100% + 8px);
  background: #fff; border-radius: 16px;
  box-shadow: var(--shadow-lg), var(--ring);
  padding: 10px; min-width: 250px; z-index: 50;
  display: none;
}
.steps-menu.open { display: block; animation: fadeDown 0.25s ease both; }
.steps-menu .sm-title {
  font-size: 0.72rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 1.2px; color: var(--muted);
  padding: 6px 10px 8px;
}
.step-check {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 10px;
  cursor: pointer; font-size: 0.88rem;
  transition: background 0.2s ease;
}
.step-check:hover { background: var(--bg-soft); }
.step-check input[type="checkbox"] {
  width: 18px; height: 18px; flex-shrink: 0; cursor: pointer;
  accent-color: var(--lime);
}
.step-check .sc-num {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--bg-soft); border: 1.5px solid var(--border);
  color: var(--muted); font-size: 0.72rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.step-check.done { font-weight: 700; color: var(--primary-dark); }
.step-check.done .sc-num { background: var(--lime); border-color: var(--lime); color: #fff; }

/* Bouton PDF dans le tableau */
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 10px;
  border: 1.5px solid var(--border); background: #fff;
  color: var(--primary); cursor: pointer;
  transition: all 0.25s ease;
}
.icon-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.icon-btn i { width: 16px; height: 16px; }

@media (max-width: 640px) {
  .people-grid { grid-template-columns: 1fr; }
}


/* ---------- Suivi rapide sur l'accueil ---------- */
.quick-track {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--ring), var(--shadow-md);
  padding: 34px 38px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 30px; flex-wrap: wrap;
}
.quick-track h3 { color: var(--primary-dark); font-size: 1.3rem; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 4px; }
.quick-track p { color: var(--muted); font-size: 0.92rem; }
.qt-form { display: flex; gap: 10px; flex: 1; max-width: 480px; min-width: 300px; }
.qt-form input {
  flex: 1; padding: 14px 20px;
  border: 1.5px solid var(--border); border-radius: 100px;
  font-family: var(--mono); font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: var(--primary);
  background: var(--bg-soft); font-size: 0.95rem;
  transition: all 0.3s ease;
}
.qt-form input:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(140,184,46,0.18);
  background: #fff;
}
.qt-form input::placeholder { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--muted); }
.qt-form .btn { white-space: nowrap; }
@media (max-width: 640px) {
  .quick-track { padding: 26px 22px; }
  .qt-form { flex-direction: column; max-width: none; min-width: 0; width: 100%; }
  .qt-form .btn { width: 100%; }
}



/* ============================================================
   TAXI4PATTES - Corrections Responsive v2
   ============================================================ */

/* MENU-TABLETTE : entre 1024 et 1180 px on serre l'espacement pour eviter tout debordement */
@media (min-width: 1025px) and (max-width: 1180px) {
  .nav-links { gap: 2px; }
  .nav-links a { padding: 9px 11px; font-size: 0.92rem; }
  .nav-links a.btn-nav { padding: 9px 15px; }
  .brand .brand-name { font-size: 1rem; }
}

/* ---------- Bouton hamburger (mobile) ---------- */
.nav-burger {
  display: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--primary);
  align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
}
.nav-burger:hover { background: var(--bg-soft); }
.nav-burger i { width: 22px; height: 22px; }

@media (max-width: 1024px) {
  .nav-burger { display: flex; }
  .nav-links {
    position: absolute; top: calc(100% + 6px); left: 12px; right: 12px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
    padding: 12px;
    flex-direction: column; align-items: stretch;
    gap: 4px;
    display: none;
    z-index: 200;
  }
  .nav-links.open { display: flex; animation: fadeDown 0.25s ease both; }
  .nav-links a {
    padding: 13px 16px;
    border-radius: 12px;
    font-size: 1rem;
    text-align: center;
  }
  .nav-links a.active { background: var(--bg-soft); }
  .nav-links a.btn-nav { display: flex; justify-content: center; }
  .nav-links a.active::after { display: none; }
}

/* ---------- Stats hero sur mobile ---------- */
@media (max-width: 640px) {
  .hero-stats { gap: 18px; flex-wrap: wrap; }
  .hero-stats .stat b { font-size: 1.5rem; }
  .hero-stats .stat span { font-size: 0.74rem; }
  .hero h1 { letter-spacing: -1.2px; }
}

/* ---------- Barre de progression : 9 étapes sur mobile ---------- */
@media (max-width: 640px) {
  .progress-labels { gap: 0; justify-content: center; }
  .pl-label { display: none; }
  .pl-label.current {
    display: block;
    font-size: 0.74rem;
    max-width: none;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    text-align: center;
    margin: 0 auto;
    color: var(--primary-dark);
  }
  .pl-label.danger.current { color: #c0392b; }
  .progress-head .ph-label { font-size: 0.85rem; }
  .progress-head .ph-pct { font-size: 1.1rem; }
  .rc-body { padding: 20px 14px; }
}


/* Étape urgence : style rouge quand active */
.pl-label.danger { color: #c0392b; font-weight: 800; }
.pm-dot.danger { background: #e74c3c; border-color: #fff; box-shadow: 0 0 0 3px #e74c3c; }
.pm-dot.danger.current {
  background: #e74c3c; border-color: #fff;
  box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.4);
  animation: pulse-ring-red 1.8s infinite;
}
@keyframes pulse-ring-red {
  0% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.45); }
  70% { box-shadow: 0 0 0 14px rgba(231, 76, 60, 0); }
  100% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0); }
}





/* ============================================================
   TAXI4PATTES - Section Assurance (urgence)
   ============================================================ */

.btn-danger {
  background: #e74c3c; color: #fff;
  box-shadow: 0 8px 24px rgba(231, 76, 60, 0.35);
}
.btn-danger:hover {
  background: #c0392b;
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(231, 76, 60, 0.45);
}

.insurance-section {
  margin-top: 30px;
  background: linear-gradient(140deg, #7f1d1d, #b91c1c);
  border-radius: 20px; padding: 26px 28px;
  color: #fff;
  position: relative; overflow: hidden;
  border: 2px solid rgba(255,255,255,0.15);
}
.insurance-section::before {
  content: '!';
  position: absolute; right: 6px; top: -28px;
  font-size: 10rem; font-weight: 800; opacity: 0.08;
}
.insurance-section .is-title {
  display: flex; align-items: center; gap: 12px;
  font-size: 1.12rem; font-weight: 800; margin-bottom: 6px;
}
.insurance-section .is-title i { width: 24px; height: 24px; color: #f5b342; }
.insurance-section p { font-size: 0.9rem; opacity: 0.9; margin-bottom: 18px; }

.insurance-card {
  margin-top: 18px;
  background: #fff;
  border: 2px solid #e74c3c;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  animation: fadeUp 0.4s var(--ease-out) both;
}
.insurance-card .ic-head {
  background: linear-gradient(140deg, #b91c1c, #e74c3c);
  color: #fff; padding: 20px 24px;
  display: flex; align-items: center; gap: 14px;
}
.insurance-card .ic-head .ic-icon {
  width: 46px; height: 46px; border-radius: 14px;
  background: rgba(255,255,255,0.18);
  display: flex; align-items: center; justify-content: center;
  color: #f5b342; flex-shrink: 0;
}
.insurance-card .ic-head .ic-icon i { width: 24px; height: 24px; }
.insurance-card .ic-head h3 { font-size: 1.08rem; }
.insurance-card .ic-head p { font-size: 0.82rem; opacity: 0.85; margin-top: 2px; }
.insurance-card .ic-body { padding: 24px; }


/* ============================================================
   TAXI4PATTES - Onglets admin (Créer / Expéditions)
   ============================================================ */

.admin-tabs {
  display: flex; gap: 12px; justify-content: center;
  margin-bottom: 34px; flex-wrap: wrap;
}
.tab-btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 30px; border-radius: 100px;
  border: 1.5px solid var(--border); background: #fff;
  font-weight: 750; font-size: 0.97rem;
  color: var(--muted); cursor: pointer; font-family: var(--font);
  transition: all 0.3s ease;
}
.tab-btn i { width: 18px; height: 18px; }
.tab-btn:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.tab-btn.active {
  background: var(--primary); color: #fff; border-color: var(--primary);
  box-shadow: 0 10px 26px rgba(10, 77, 40, 0.3);
}
.tab-btn.active i { color: var(--lime); }

.admin-view { animation: fadeUp 0.4s var(--ease-out) both; }

@media (max-width: 640px) {
  .admin-tabs { flex-direction: column; align-items: stretch; padding: 0 10px; }
  .tab-btn { justify-content: center; }
}
